blob: c6bff8d97fc3adf45d14f8ebc5ac2585ad13fdce [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",
1582 .name = "AT25DF641",
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,
1970 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001971 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001972 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001973 .block_erasers =
1974 {
1975 {
1976 .eraseblocks = { {64 * 1024, 1} },
1977 .block_erase = erase_chip_block_jedec,
1978 }
1979 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001980 .write = write_jedec,
1981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001982 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001983 },
1984
1985 {
1986 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001987 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001988 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001989 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001990 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001991 .total_size = 128,
1992 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001993 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001994 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001995 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001996 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001997 .block_erasers =
1998 {
1999 {
2000 .eraseblocks = { {128 * 1024, 1} },
2001 .block_erase = erase_chip_block_jedec,
2002 }
2003 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002004 .write = write_jedec, /* FIXME */
2005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002006 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002007 },
2008
2009 {
2010 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002011 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002012 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002014 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .total_size = 256,
2016 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002017 .feature_bits = FEATURE_LONG_RESET,
2018 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002020 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002021 .block_erasers =
2022 {
2023 {
2024 .eraseblocks = { {256 * 1024, 1} },
2025 .block_erase = erase_chip_block_jedec,
2026 }
2027 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002030 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002031 },
2032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 {
2034 .vendor = "Atmel",
2035 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002037 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002038 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002039 .total_size = 512,
2040 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002041 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002042 .tested = TEST_UNTESTED,
2043 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002044 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002045 .block_erasers =
2046 {
2047 {
2048 .eraseblocks = { {512 * 1024, 1} },
2049 .block_erase = erase_chip_block_jedec,
2050 }
2051 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002052 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002053 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002054 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002055 },
2056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 {
2058 .vendor = "Atmel",
2059 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002062 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002063 .total_size = 16896 /* No power of two sizes */,
2064 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .tested = TEST_BAD_READ,
2066 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002067 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .write = NULL /* Incompatible Page write */,
2069 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002070 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002071 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002073 {
2074 .vendor = "Atmel",
2075 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002076 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002077 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002078 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002079 .total_size = 128 /* Size can only be determined from status register */,
2080 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002081 .tested = TEST_BAD_READ,
2082 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002083 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 .write = NULL,
2085 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002087 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002095 .total_size = 256 /* Size can only be determined from status register */,
2096 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 .tested = TEST_BAD_READ,
2098 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002099 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002100 .write = NULL,
2101 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002102 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002103 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 {
2106 .vendor = "Atmel",
2107 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002108 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002110 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002111 .total_size = 512 /* Size can only be determined from status register */,
2112 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .tested = TEST_BAD_READ,
2114 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002115 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002116 .write = NULL,
2117 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002118 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002119 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 {
2122 .vendor = "Atmel",
2123 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002124 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002125 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002126 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002127 .total_size = 1024 /* Size can only be determined from status register */,
2128 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 .tested = TEST_BAD_READ,
2130 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002131 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002132 .write = NULL,
2133 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002134 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002135 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 {
2138 .vendor = "Atmel",
2139 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002140 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002141 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002142 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002143 .total_size = 2048 /* Size can only be determined from status register */,
2144 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .tested = TEST_BAD_READ,
2146 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002147 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002148 .write = NULL,
2149 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002150 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002151 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002153 {
2154 .vendor = "Atmel",
2155 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002156 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002157 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002158 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002159 .total_size = 4224 /* No power of two sizes */,
2160 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .tested = TEST_BAD_READ,
2162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002163 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002164 .write = NULL,
2165 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002166 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002167 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002169 {
2170 .vendor = "Atmel",
2171 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002172 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002174 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002175 .total_size = 4096 /* Size can only be determined from status register */,
2176 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002177 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2178 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 .tested = TEST_BAD_READ,
2180 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002181 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .write = NULL,
2183 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002184 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002185 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002186
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002187 {
2188 .vendor = "Atmel",
2189 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002190 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002191 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002192 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002193 .total_size = 8192 /* Size can only be determined from status register */,
2194 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 .tested = TEST_BAD_READ,
2196 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002197 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .write = NULL,
2199 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002200 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002201 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002202
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002203 {
2204 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002205 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002206 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002207 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002208 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002209 .total_size = 64,
2210 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002211 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002212 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002215 .block_erasers =
2216 {
2217 {
2218 .eraseblocks = { {64 * 1024, 1} },
2219 .block_erase = erase_chip_block_jedec,
2220 }
2221 },
Sean Nelson35727f72010-01-28 23:55:12 +00002222 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002224 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002225 },
2226
2227 {
2228 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002229 .name = "AT49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002230 .bustype = BUS_PARALLEL,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002231 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002232 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002233 .total_size = 256,
2234 .page_size = 256,
2235 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002236 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002237 .probe = probe_jedec,
2238 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2239 .block_erasers =
2240 {
2241 {
2242 .eraseblocks = { {256 * 1024, 1} },
2243 .block_erase = erase_chip_block_jedec,
2244 }
2245 },
2246 .write = write_jedec_1,
2247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002248 .voltage = {4500, 5500},
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002249 },
2250
2251 {
2252 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002255 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002256 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002257 .total_size = 256,
2258 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002259 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .tested = TEST_UNTESTED,
2261 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002262 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002263 .block_erasers =
2264 {
2265 {
2266 .eraseblocks = {
2267 {16 * 1024, 1},
2268 {8 * 1024, 2},
2269 {96 * 1024, 1},
2270 {128 * 1024, 1},
2271 },
2272 .block_erase = erase_sector_jedec,
2273 }, {
2274 .eraseblocks = { {256 * 1024, 1} },
2275 .block_erase = erase_chip_block_jedec,
2276 }
2277 },
Sean Nelson35727f72010-01-28 23:55:12 +00002278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002280 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002281 },
2282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002283 {
2284 .vendor = "Atmel",
2285 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002286 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002287 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002288 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002289 .total_size = 256,
2290 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002291 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002292 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002294 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002295 .block_erasers =
2296 {
2297 {
2298 .eraseblocks = {
2299 {128 * 1024, 1},
2300 {96 * 1024, 1},
2301 {8 * 1024, 2},
2302 {16 * 1024, 1},
2303 },
2304 .block_erase = erase_sector_jedec,
2305 }, {
2306 .eraseblocks = { {256 * 1024, 1} },
2307 .block_erase = erase_chip_block_jedec,
2308 }
2309 },
Sean Nelson35727f72010-01-28 23:55:12 +00002310 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002312 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002313 },
2314
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002315 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002316 .vendor = "Atmel",
2317 .name = "AT49LH002",
2318 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2319 .manufacture_id = ATMEL_ID,
2320 .model_id = ATMEL_AT49LH002,
2321 .total_size = 256,
2322 .page_size = 0, /* unused */
2323 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2324 .tested = TEST_UNTESTED,
2325 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2326 .probe_timing = TIMING_FIXME,
2327 .block_erasers =
2328 {
2329 {
2330 .eraseblocks = {
2331 {64 * 1024, 3},
2332 {32 * 1024, 1},
2333 {8 * 1024, 2},
2334 {16 * 1024, 1},
2335 },
2336 .block_erase = erase_block_82802ab,
2337 }, {
2338 .eraseblocks = {
2339 {64 * 1024, 4},
2340 },
2341 .block_erase = NULL, /* TODO: Implement. */
2342 },
2343 },
2344 .printlock = NULL, /* TODO */
2345 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2346 .write = write_82802ab,
2347 .read = read_memmapped,
2348 .voltage = {3000, 3600},
2349 },
2350
2351 {
Andrew Morganca081462011-09-13 22:05:44 +00002352 .vendor = "Catalyst",
2353 .name = "CAT28F512",
2354 .bustype = BUS_PARALLEL,
2355 .manufacture_id = CATALYST_ID,
2356 .model_id = CATALYST_CAT28F512,
2357 .total_size = 64,
2358 .page_size = 0, /* unused */
2359 .feature_bits = 0,
2360 .tested = TEST_OK_PR,
2361 .probe = probe_jedec, /* FIXME! */
2362 .probe_timing = TIMING_ZERO,
2363 .block_erasers =
2364 {
2365 {
2366 .eraseblocks = { {64 * 1024, 1} },
2367 .block_erase = NULL, /* TODO */
2368 },
2369 },
2370 .write = NULL, /* TODO */
2371 .read = read_memmapped,
2372 .voltage = {4500, 5500},
2373 },
2374
2375 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002376 .vendor = "Bright",
2377 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002378 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002379 .manufacture_id = BRIGHT_ID,
2380 .model_id = BRIGHT_BM29F040,
2381 .total_size = 512,
2382 .page_size = 64 * 1024,
2383 .feature_bits = FEATURE_EITHER_RESET,
2384 .tested = TEST_OK_PR,
2385 .probe = probe_jedec,
2386 .probe_timing = TIMING_ZERO,
2387 .block_erasers =
2388 {
2389 {
2390 .eraseblocks = { {64 * 1024, 8} },
2391 .block_erase = erase_sector_jedec,
2392 }, {
2393 .eraseblocks = { {512 * 1024, 1} },
2394 .block_erase = erase_chip_block_jedec,
2395 },
2396 },
2397 .write = write_jedec_1,
2398 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002399 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002400 },
2401
2402 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 .vendor = "EMST",
2404 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002405 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002406 .manufacture_id = EMST_ID,
2407 .model_id = EMST_F49B002UA,
2408 .total_size = 256,
2409 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002410 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .tested = TEST_UNTESTED,
2412 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002413 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002414 .block_erasers =
2415 {
2416 {
2417 .eraseblocks = {
2418 {128 * 1024, 1},
2419 {96 * 1024, 1},
2420 {8 * 1024, 2},
2421 {16 * 1024, 1},
2422 },
2423 .block_erase = erase_sector_jedec,
2424 }, {
2425 .eraseblocks = { {256 * 1024, 1} },
2426 .block_erase = erase_chip_block_jedec,
2427 }
2428 },
Sean Nelson35727f72010-01-28 23:55:12 +00002429 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002431 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002432 },
2433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002434 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002435 .vendor = "EMST",
2436 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002437 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002438 .manufacture_id = EMST_ID,
2439 .model_id = EMST_F25L008A,
2440 .total_size = 1024,
2441 .page_size = 256,
2442 .tested = TEST_UNTESTED,
2443 .probe = probe_spi_rdid,
2444 .probe_timing = TIMING_ZERO,
2445 .block_erasers =
2446 {
2447 {
2448 .eraseblocks = { {4 * 1024, 256} },
2449 .block_erase = spi_block_erase_20,
2450 }, {
2451 .eraseblocks = { {64 * 1024, 16} },
2452 .block_erase = spi_block_erase_d8,
2453 }, {
2454 .eraseblocks = { {1024 * 1024, 1} },
2455 .block_erase = spi_block_erase_60,
2456 }, {
2457 .eraseblocks = { {1024 * 1024, 1} },
2458 .block_erase = spi_block_erase_c7,
2459 }
2460 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002461 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002462 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002463 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002464 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002465 },
2466
2467 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002468 .vendor = "Eon",
2469 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002470 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002471 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002472 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002473 .total_size = 64,
2474 .page_size = 256,
2475 .tested = TEST_UNTESTED,
2476 .probe = probe_spi_rdid,
2477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002478 .block_erasers =
2479 {
2480 {
2481 .eraseblocks = {
2482 {4 * 1024, 2},
2483 {8 * 1024, 1},
2484 {16 * 1024, 1},
2485 {32 * 1024, 1},
2486 },
2487 .block_erase = spi_block_erase_d8,
2488 }, {
2489 .eraseblocks = { {64 * 1024, 1} },
2490 .block_erase = spi_block_erase_c7,
2491 }
2492 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002493 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002494 .write = spi_chip_write_256,
2495 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002496 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002497 },
2498
2499 {
2500 .vendor = "Eon",
2501 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002502 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002503 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002504 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002505 .total_size = 64,
2506 .page_size = 256,
2507 .tested = TEST_UNTESTED,
2508 .probe = probe_spi_rdid,
2509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002510 .block_erasers =
2511 {
2512 {
2513 .eraseblocks = {
2514 {32 * 1024, 1},
2515 {16 * 1024, 1},
2516 {8 * 1024, 1},
2517 {4 * 1024, 2},
2518 },
2519 .block_erase = spi_block_erase_d8,
2520 }, {
2521 .eraseblocks = { {64 * 1024, 1} },
2522 .block_erase = spi_block_erase_c7,
2523 }
2524 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002525 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002526 .write = spi_chip_write_256,
2527 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002528 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002529 },
2530
2531 {
2532 .vendor = "Eon",
2533 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002534 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002535 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002536 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002537 .total_size = 128,
2538 .page_size = 256,
2539 .tested = TEST_UNTESTED,
2540 .probe = probe_spi_rdid,
2541 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002542 .block_erasers =
2543 {
2544 {
2545 .eraseblocks = {
2546 {4 * 1024, 2},
2547 {8 * 1024, 1},
2548 {16 * 1024, 1},
2549 {32 * 1024, 3},
2550 },
2551 .block_erase = spi_block_erase_d8,
2552 }, {
2553 .eraseblocks = { {128 * 1024, 1} },
2554 .block_erase = spi_block_erase_c7,
2555 }
2556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002557 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002558 .write = spi_chip_write_256,
2559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002560 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002561 },
2562
2563 {
2564 .vendor = "Eon",
2565 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002566 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002567 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002568 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002569 .total_size = 128,
2570 .page_size = 256,
2571 .tested = TEST_UNTESTED,
2572 .probe = probe_spi_rdid,
2573 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002574 .block_erasers =
2575 {
2576 {
2577 .eraseblocks = {
2578 {32 * 1024, 3},
2579 {16 * 1024, 1},
2580 {8 * 1024, 1},
2581 {4 * 1024, 2},
2582 },
2583 .block_erase = spi_block_erase_d8,
2584 }, {
2585 .eraseblocks = { {128 * 1024, 1} },
2586 .block_erase = spi_block_erase_c7,
2587 }
2588 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002589 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002590 .write = spi_chip_write_256,
2591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002592 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002593 },
2594
2595 {
2596 .vendor = "Eon",
2597 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002599 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002601 .total_size = 256,
2602 .page_size = 256,
2603 .tested = TEST_UNTESTED,
2604 .probe = probe_spi_rdid,
2605 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002606 .block_erasers =
2607 {
2608 {
2609 .eraseblocks = {
2610 {4 * 1024, 2},
2611 {8 * 1024, 1},
2612 {16 * 1024, 1},
2613 {32 * 1024, 1},
2614 {64 * 1024, 3}
2615 },
2616 .block_erase = spi_block_erase_d8,
2617 }, {
2618 .eraseblocks = { {256 * 1024, 1} },
2619 .block_erase = spi_block_erase_c7,
2620 }
2621 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002622 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002623 .write = spi_chip_write_256,
2624 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002625 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002626 },
2627
2628 {
2629 .vendor = "Eon",
2630 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002631 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002632 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002633 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002634 .total_size = 256,
2635 .page_size = 256,
2636 .tested = TEST_UNTESTED,
2637 .probe = probe_spi_rdid,
2638 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002639 .block_erasers =
2640 {
2641 {
2642 .eraseblocks = {
2643 {64 * 1024, 3},
2644 {32 * 1024, 1},
2645 {16 * 1024, 1},
2646 {8 * 1024, 1},
2647 {4 * 1024, 2},
2648 },
2649 .block_erase = spi_block_erase_d8,
2650 }, {
2651 .eraseblocks = { {256 * 1024, 1} },
2652 .block_erase = spi_block_erase_c7,
2653 }
2654 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002655 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002656 .write = spi_chip_write_256,
2657 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002658 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002659 },
2660
2661 {
2662 .vendor = "Eon",
2663 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002664 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002665 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002666 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002667 .total_size = 512,
2668 .page_size = 256,
2669 .tested = TEST_UNTESTED,
2670 .probe = probe_spi_rdid,
2671 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002672 .block_erasers =
2673 {
2674 {
2675 .eraseblocks = {
2676 {4 * 1024, 2},
2677 {8 * 1024, 1},
2678 {16 * 1024, 1},
2679 {32 * 1024, 1},
2680 {64 * 1024, 7}
2681 },
2682 .block_erase = spi_block_erase_d8,
2683 }, {
2684 .eraseblocks = { {512 * 1024, 1} },
2685 .block_erase = spi_block_erase_c7,
2686 }
2687 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002688 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002689 .write = spi_chip_write_256,
2690 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002691 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002692 },
2693
2694 {
2695 .vendor = "Eon",
2696 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002697 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002698 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002699 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002700 .total_size = 512,
2701 .page_size = 256,
2702 .tested = TEST_UNTESTED,
2703 .probe = probe_spi_rdid,
2704 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002705 .block_erasers =
2706 {
2707 {
2708 .eraseblocks = {
2709 {64 * 1024, 7},
2710 {32 * 1024, 1},
2711 {16 * 1024, 1},
2712 {8 * 1024, 1},
2713 {4 * 1024, 2},
2714 },
2715 .block_erase = spi_block_erase_d8,
2716 }, {
2717 .eraseblocks = { {512 * 1024, 1} },
2718 .block_erase = spi_block_erase_c7,
2719 }
2720 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002721 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002722 .write = spi_chip_write_256,
2723 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002724 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002725 },
2726
2727 {
2728 .vendor = "Eon",
2729 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002730 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002731 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002732 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002733 .total_size = 1024,
2734 .page_size = 256,
2735 .tested = TEST_UNTESTED,
2736 .probe = probe_spi_rdid,
2737 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002738 .block_erasers =
2739 {
2740 {
2741 .eraseblocks = {
2742 {4 * 1024, 2},
2743 {8 * 1024, 1},
2744 {16 * 1024, 1},
2745 {32 * 1024, 1},
2746 {64 * 1024, 15}
2747 },
2748 .block_erase = spi_block_erase_d8,
2749 }, {
2750 .eraseblocks = { {1024 * 1024, 1} },
2751 .block_erase = spi_block_erase_c7,
2752 }
2753 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002754 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002755 .write = spi_chip_write_256,
2756 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002757 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002758 },
2759
2760 {
2761 .vendor = "Eon",
2762 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002763 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002764 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002765 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002766 .total_size = 1024,
2767 .page_size = 256,
2768 .tested = TEST_UNTESTED,
2769 .probe = probe_spi_rdid,
2770 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002771 .block_erasers =
2772 {
2773 {
2774 .eraseblocks = {
2775 {64 * 1024, 15},
2776 {32 * 1024, 1},
2777 {16 * 1024, 1},
2778 {8 * 1024, 1},
2779 {4 * 1024, 2},
2780 },
2781 .block_erase = spi_block_erase_d8,
2782 }, {
2783 .eraseblocks = { {1024 * 1024, 1} },
2784 .block_erase = spi_block_erase_c7,
2785 }
2786 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002787 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002788 .write = spi_chip_write_256,
2789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002790 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002791 },
2792
2793 {
2794 .vendor = "Eon",
2795 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002796 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002797 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002798 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002799 .total_size = 2048,
2800 .page_size = 256,
2801 .tested = TEST_UNTESTED,
2802 .probe = probe_spi_rdid,
2803 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002804 .block_erasers =
2805 {
2806 {
2807 .eraseblocks = {
2808 {4 * 1024, 2},
2809 {8 * 1024, 1},
2810 {16 * 1024, 1},
2811 {32 * 1024, 1},
2812 {64 * 1024, 31},
2813 },
2814 .block_erase = spi_block_erase_d8,
2815 }, {
2816 .eraseblocks = { {2 * 1024 * 1024, 1} },
2817 .block_erase = spi_block_erase_c7,
2818 }
2819 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002820 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002821 .write = spi_chip_write_256,
2822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002823 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002824 },
2825
2826 {
2827 .vendor = "Eon",
2828 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002829 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002830 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002831 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002832 .total_size = 2048,
2833 .page_size = 256,
2834 .tested = TEST_UNTESTED,
2835 .probe = probe_spi_rdid,
2836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002837 .block_erasers =
2838 {
2839 {
2840 .eraseblocks = {
2841 {64 * 1024, 31},
2842 {32 * 1024, 1},
2843 {16 * 1024, 1},
2844 {8 * 1024, 1},
2845 {4 * 1024, 2},
2846 },
2847 .block_erase = spi_block_erase_d8,
2848 }, {
2849 .eraseblocks = { {2 * 1024 * 1024, 1} },
2850 .block_erase = spi_block_erase_c7,
2851 }
2852 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002854 .write = spi_chip_write_256,
2855 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002856 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002857 },
2858
2859 {
2860 .vendor = "Eon",
2861 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002862 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002863 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002864 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002865 .total_size = 4096,
2866 .page_size = 256,
2867 .tested = TEST_UNTESTED,
2868 .probe = probe_spi_rdid,
2869 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002870 .block_erasers =
2871 {
2872 {
2873 .eraseblocks = {
2874 {4 * 1024, 2},
2875 {8 * 1024, 1},
2876 {16 * 1024, 1},
2877 {32 * 1024, 1},
2878 {64 * 1024, 63},
2879 },
2880 .block_erase = spi_block_erase_d8,
2881 }, {
2882 .eraseblocks = { {4 * 1024 * 1024, 1} },
2883 .block_erase = spi_block_erase_c7,
2884 }
2885 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002886 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002887 .write = spi_chip_write_256,
2888 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002889 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002890 },
2891
2892 {
2893 .vendor = "Eon",
2894 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002895 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002896 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002897 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002898 .total_size = 4096,
2899 .page_size = 256,
2900 .tested = TEST_UNTESTED,
2901 .probe = probe_spi_rdid,
2902 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002903 .block_erasers =
2904 {
2905 {
2906 .eraseblocks = {
2907 {64 * 1024, 63},
2908 {32 * 1024, 1},
2909 {16 * 1024, 1},
2910 {8 * 1024, 1},
2911 {4 * 1024, 2},
2912 },
2913 .block_erase = spi_block_erase_d8,
2914 }, {
2915 .eraseblocks = { {4 * 1024 * 1024, 1} },
2916 .block_erase = spi_block_erase_c7,
2917 }
2918 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002919 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002920 .write = spi_chip_write_256,
2921 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002922 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002923 },
2924
2925 {
2926 .vendor = "Eon",
2927 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002928 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002929 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002930 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002931 .total_size = 8192,
2932 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002933 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002934 .tested = TEST_UNTESTED,
2935 .probe = probe_spi_rdid,
2936 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002937 .block_erasers =
2938 {
2939 {
2940 .eraseblocks = {
2941 {4 * 1024, 2},
2942 {8 * 1024, 1},
2943 {16 * 1024, 1},
2944 {32 * 1024, 1},
2945 {64 * 1024, 127},
2946 },
2947 .block_erase = spi_block_erase_d8,
2948 }, {
2949 .eraseblocks = { {8 * 1024 * 1024, 1} },
2950 .block_erase = spi_block_erase_c7,
2951 }
2952 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002953 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002954 .write = spi_chip_write_256,
2955 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002956 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002957 },
2958
2959 {
2960 .vendor = "Eon",
2961 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002962 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002963 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002964 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002965 .total_size = 8192,
2966 .page_size = 256,
2967 .tested = TEST_UNTESTED,
2968 .probe = probe_spi_rdid,
2969 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002970 .block_erasers =
2971 {
2972 {
2973 .eraseblocks = {
2974 {64 * 1024, 127},
2975 {32 * 1024, 1},
2976 {16 * 1024, 1},
2977 {8 * 1024, 1},
2978 {4 * 1024, 2},
2979 },
2980 .block_erase = spi_block_erase_d8,
2981 }, {
2982 .eraseblocks = { {8 * 1024 * 1024, 1} },
2983 .block_erase = spi_block_erase_c7,
2984 }
2985 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002986 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002987 .write = spi_chip_write_256,
2988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002989 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002990 },
2991
2992 {
2993 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002994 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002995 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002996 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002997 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002998 .total_size = 64,
2999 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003000 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003001 .tested = TEST_UNTESTED,
3002 .probe = probe_spi_rdid,
3003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003004 .block_erasers =
3005 {
3006 {
3007 .eraseblocks = { {4 * 1024, 16} },
3008 .block_erase = spi_block_erase_20,
3009 }, {
3010 .eraseblocks = { {32 * 1024, 2} },
3011 .block_erase = spi_block_erase_d8,
3012 }, {
3013 .eraseblocks = { {32 * 1024, 2} },
3014 .block_erase = spi_block_erase_52,
3015 }, {
3016 .eraseblocks = { {64 * 1024, 1} },
3017 .block_erase = spi_block_erase_60,
3018 }, {
3019 .eraseblocks = { {64 * 1024, 1} },
3020 .block_erase = spi_block_erase_c7,
3021 }
3022 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003023 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003024 .write = spi_chip_write_256,
3025 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003026 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003027 },
3028
3029 {
3030 .vendor = "Eon",
3031 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003032 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003033 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003034 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003035 .total_size = 128,
3036 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003037 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003038 .tested = TEST_UNTESTED,
3039 .probe = probe_spi_rdid,
3040 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003041 .block_erasers =
3042 {
3043 {
3044 .eraseblocks = { {4 * 1024, 32} },
3045 .block_erase = spi_block_erase_20,
3046 }, {
3047 .eraseblocks = { {32 * 1024, 4} },
3048 .block_erase = spi_block_erase_d8,
3049 }, {
3050 .eraseblocks = { {32 * 1024, 4} },
3051 .block_erase = spi_block_erase_52,
3052 }, {
3053 .eraseblocks = { {128 * 1024, 1} },
3054 .block_erase = spi_block_erase_60,
3055 }, {
3056 .eraseblocks = { {128 * 1024, 1} },
3057 .block_erase = spi_block_erase_c7,
3058 }
3059 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003060 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003061 .write = spi_chip_write_256,
3062 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003063 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003064 },
3065
3066 {
3067 .vendor = "Eon",
3068 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003069 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003070 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003071 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003072 .total_size = 256,
3073 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003074 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003075 .tested = TEST_UNTESTED,
3076 .probe = probe_spi_rdid,
3077 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003078 .block_erasers =
3079 {
3080 {
3081 .eraseblocks = { {4 * 1024, 64} },
3082 .block_erase = spi_block_erase_20,
3083 }, {
3084 .eraseblocks = { {64 * 1024, 4} },
3085 .block_erase = spi_block_erase_d8,
3086 }, {
3087 .eraseblocks = { {64 * 1024, 4} },
3088 .block_erase = spi_block_erase_52,
3089 }, {
3090 .eraseblocks = { {256 * 1024, 1} },
3091 .block_erase = spi_block_erase_60,
3092 }, {
3093 .eraseblocks = { {256 * 1024, 1} },
3094 .block_erase = spi_block_erase_c7,
3095 }
3096 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003098 .write = spi_chip_write_256,
3099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003100 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003101 },
3102
3103 {
3104 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003105 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003106 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003108 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003109 .total_size = 512,
3110 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003111 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003112 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003113 .probe = probe_spi_rdid,
3114 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003115 .block_erasers =
3116 {
3117 {
Sean Nelson54596372010-01-09 05:30:14 +00003118 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003119 .block_erase = spi_block_erase_20,
3120 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003121 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003122 .block_erase = spi_block_erase_d8,
3123 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003124 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003125 .block_erase = spi_block_erase_60,
3126 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003127 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003128 .block_erase = spi_block_erase_c7,
3129 },
3130 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003131 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003132 .write = spi_chip_write_256,
3133 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003134 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 },
3136
3137 {
3138 .vendor = "Eon",
3139 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003140 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003141 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003142 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003143 .total_size = 1024,
3144 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003145 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003146 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003147 .probe = probe_spi_rdid,
3148 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .block_erasers =
3150 {
3151 {
3152 .eraseblocks = { {4 * 1024, 256} },
3153 .block_erase = spi_block_erase_20,
3154 }, {
3155 .eraseblocks = { {64 * 1024, 16} },
3156 .block_erase = spi_block_erase_d8,
3157 }, {
3158 .eraseblocks = { {1024 * 1024, 1} },
3159 .block_erase = spi_block_erase_60,
3160 }, {
3161 .eraseblocks = { {1024 * 1024, 1} },
3162 .block_erase = spi_block_erase_c7,
3163 }
3164 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003166 .write = spi_chip_write_256,
3167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003168 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003169 },
3170
3171 {
3172 .vendor = "Eon",
3173 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003174 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003175 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003176 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003177 .total_size = 2048,
3178 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003179 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003180 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003181 .probe = probe_spi_rdid,
3182 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003183 .block_erasers =
3184 {
3185 {
3186 .eraseblocks = { {4 * 1024, 512} },
3187 .block_erase = spi_block_erase_20,
3188 }, {
3189 .eraseblocks = { {64 * 1024, 32} },
3190 .block_erase = spi_block_erase_d8,
3191 }, {
3192 .eraseblocks = { {2 * 1024 * 1024, 1} },
3193 .block_erase = spi_block_erase_60,
3194 }, {
3195 .eraseblocks = { {2 * 1024 * 1024, 1} },
3196 .block_erase = spi_block_erase_c7,
3197 }
3198 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003200 .write = spi_chip_write_256,
3201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003202 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003203 },
3204
3205 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003206 .vendor = "Eon",
3207 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003208 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003209 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003210 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003211 .total_size = 4096,
3212 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003213 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003214 .tested = TEST_UNTESTED,
3215 .probe = probe_spi_rdid,
3216 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003217 .block_erasers =
3218 {
3219 {
3220 .eraseblocks = { {4 * 1024, 1024} },
3221 .block_erase = spi_block_erase_20,
3222 }, {
3223 .eraseblocks = { {64 * 1024, 64} },
3224 .block_erase = spi_block_erase_d8,
3225 }, {
3226 .eraseblocks = { {4 * 1024 * 1024, 1} },
3227 .block_erase = spi_block_erase_60,
3228 }, {
3229 .eraseblocks = { {4 * 1024 * 1024, 1} },
3230 .block_erase = spi_block_erase_c7,
3231 }
3232 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003233 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003234 .write = spi_chip_write_256,
3235 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003236 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003237 },
3238
3239 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003240 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003241 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003242 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003243 .manufacture_id = EON_ID_NOPREFIX,
3244 .model_id = EON_EN25Q40,
3245 .total_size = 512,
3246 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003247 /* OTP: 256B total; enter 0x3A */
3248 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003249 .tested = TEST_UNTESTED,
3250 .probe = probe_spi_rdid,
3251 .probe_timing = TIMING_ZERO,
3252 .block_erasers =
3253 {
3254 {
3255 .eraseblocks = { {4 * 1024, 128} },
3256 .block_erase = spi_block_erase_20,
3257 }, {
3258 .eraseblocks = { {64 * 1024, 8} },
3259 .block_erase = spi_block_erase_d8,
3260 }, {
3261 .eraseblocks = { {512 * 1024, 1} },
3262 .block_erase = spi_block_erase_60,
3263 }, {
3264 .eraseblocks = { {512 * 1024, 1} },
3265 .block_erase = spi_block_erase_c7,
3266 }
3267 },
3268 .unlock = spi_disable_blockprotect,
3269 .write = spi_chip_write_256,
3270 .read = spi_chip_read,
3271 .voltage = {2700, 3600},
3272 },
3273
3274 {
3275 .vendor = "Eon",
3276 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003277 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003278 .manufacture_id = EON_ID_NOPREFIX,
3279 .model_id = EON_EN25Q80,
3280 .total_size = 1024,
3281 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003282 /* OTP: 256B total; enter 0x3A */
3283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003284 .tested = TEST_UNTESTED,
3285 .probe = probe_spi_rdid,
3286 .probe_timing = TIMING_ZERO,
3287 .block_erasers =
3288 {
3289 {
3290 .eraseblocks = { {4 * 1024, 256} },
3291 .block_erase = spi_block_erase_20,
3292 }, {
3293 .eraseblocks = { {64 * 1024, 16} },
3294 .block_erase = spi_block_erase_d8,
3295 }, {
3296 .eraseblocks = { {1024 * 1024, 1} },
3297 .block_erase = spi_block_erase_60,
3298 }, {
3299 .eraseblocks = { {1024 * 1024, 1} },
3300 .block_erase = spi_block_erase_c7,
3301 }
3302 },
3303 .unlock = spi_disable_blockprotect,
3304 .write = spi_chip_write_256,
3305 .read = spi_chip_read,
3306 .voltage = {2700, 3600},
3307 },
3308
3309 {
3310 /* Note: EN25D16 is an evil twin which shares the model ID
3311 but has different write protection capabilities */
3312 .vendor = "Eon",
3313 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003314 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003315 .manufacture_id = EON_ID_NOPREFIX,
3316 .model_id = EON_EN25Q16,
3317 .total_size = 2048,
3318 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003319 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003321 .tested = TEST_UNTESTED,
3322 .probe = probe_spi_rdid,
3323 .probe_timing = TIMING_ZERO,
3324 .block_erasers =
3325 {
3326 {
3327 .eraseblocks = { {4 * 1024, 512} },
3328 .block_erase = spi_block_erase_20,
3329 }, {
3330 .eraseblocks = { {64 * 1024, 32} },
3331 .block_erase = spi_block_erase_d8,
3332 }, {
3333 /* not supported by Q16 version */
3334 .eraseblocks = { {64 * 1024, 32} },
3335 .block_erase = spi_block_erase_52,
3336 }, {
3337 .eraseblocks = { {2 * 1024 * 1024, 1} },
3338 .block_erase = spi_block_erase_60,
3339 }, {
3340 .eraseblocks = { {2 * 1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_c7,
3342 }
3343 },
3344 .unlock = spi_disable_blockprotect,
3345 .write = spi_chip_write_256,
3346 .read = spi_chip_read,
3347 .voltage = {2700, 3600},
3348 },
3349
3350 {
3351 .vendor = "Eon",
3352 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003353 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003354 .manufacture_id = EON_ID_NOPREFIX,
3355 .model_id = EON_EN25Q32,
3356 .total_size = 4096,
3357 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003358 /* OTP: 512B total; enter 0x3A */
3359 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003360 .tested = TEST_UNTESTED,
3361 .probe = probe_spi_rdid,
3362 .probe_timing = TIMING_ZERO,
3363 .block_erasers =
3364 {
3365 {
3366 .eraseblocks = { {4 * 1024, 1024} },
3367 .block_erase = spi_block_erase_20,
3368 }, {
3369 .eraseblocks = { {64 * 1024, 64} },
3370 .block_erase = spi_block_erase_d8,
3371 }, {
3372 .eraseblocks = { {4 * 1024 * 1024, 1} },
3373 .block_erase = spi_block_erase_60,
3374 }, {
3375 .eraseblocks = { {4 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_c7,
3377 }
3378 },
3379 .unlock = spi_disable_blockprotect,
3380 .write = spi_chip_write_256,
3381 .read = spi_chip_read,
3382 .voltage = {2700, 3600},
3383 },
3384
3385 {
3386 .vendor = "Eon",
3387 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003388 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003389 .manufacture_id = EON_ID_NOPREFIX,
3390 .model_id = EON_EN25Q64,
3391 .total_size = 8192,
3392 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003393 /* OTP: 512B total; enter 0x3A */
3394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003395 .tested = TEST_UNTESTED,
3396 .probe = probe_spi_rdid,
3397 .probe_timing = TIMING_ZERO,
3398 .block_erasers =
3399 {
3400 {
3401 .eraseblocks = { {4 * 1024, 2048} },
3402 .block_erase = spi_block_erase_20,
3403 }, {
3404 .eraseblocks = { {64 * 1024, 128} },
3405 .block_erase = spi_block_erase_d8,
3406 }, {
3407 .eraseblocks = { {8 * 1024 * 1024, 1} },
3408 .block_erase = spi_block_erase_60,
3409 }, {
3410 .eraseblocks = { {8 * 1024 * 1024, 1} },
3411 .block_erase = spi_block_erase_c7,
3412 }
3413 },
3414 .unlock = spi_disable_blockprotect,
3415 .write = spi_chip_write_256,
3416 .read = spi_chip_read,
3417 .voltage = {2700, 3600},
3418 },
3419
3420 {
3421 .vendor = "Eon",
3422 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003424 .manufacture_id = EON_ID_NOPREFIX,
3425 .model_id = EON_EN25Q128,
3426 .total_size = 16384,
3427 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003428 /* OTP: 512B total; enter 0x3A */
3429 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003430 .tested = TEST_UNTESTED,
3431 .probe = probe_spi_rdid,
3432 .probe_timing = TIMING_ZERO,
3433 .block_erasers =
3434 {
3435 {
3436 .eraseblocks = { {4 * 1024, 4096} },
3437 .block_erase = spi_block_erase_20,
3438 }, {
3439 .eraseblocks = { {64 * 1024, 256} },
3440 .block_erase = spi_block_erase_d8,
3441 }, {
3442 .eraseblocks = { {16 * 1024 * 1024, 1} },
3443 .block_erase = spi_block_erase_60,
3444 }, {
3445 .eraseblocks = { {16 * 1024 * 1024, 1} },
3446 .block_erase = spi_block_erase_c7,
3447 }
3448 },
3449 .unlock = spi_disable_blockprotect,
3450 .write = spi_chip_write_256,
3451 .read = spi_chip_read,
3452 },
3453
3454 {
3455 .vendor = "Eon",
3456 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003457 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003458 .manufacture_id = EON_ID_NOPREFIX,
3459 .model_id = EON_EN25QH16,
3460 .total_size = 2048,
3461 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003462 /* supports SFDP */
3463 /* OTP: 512B total; enter 0x3A */
3464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003465 .tested = TEST_UNTESTED,
3466 .probe = probe_spi_rdid,
3467 .probe_timing = TIMING_ZERO,
3468 .block_erasers =
3469 {
3470 {
3471 .eraseblocks = { {4 * 1024, 512} },
3472 .block_erase = spi_block_erase_20,
3473 }, {
3474 .eraseblocks = { {64 * 1024, 32} },
3475 .block_erase = spi_block_erase_d8,
3476 }, {
3477 .eraseblocks = { {1024 * 2048, 1} },
3478 .block_erase = spi_block_erase_60,
3479 }, {
3480 .eraseblocks = { {1024 * 2048, 1} },
3481 .block_erase = spi_block_erase_c7,
3482 }
3483 },
3484 .unlock = spi_disable_blockprotect,
3485 .write = spi_chip_write_256,
3486 .read = spi_chip_read,
3487 .voltage = {2700, 3600},
3488 },
3489
3490 {
3491 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003492 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003493 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003494 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003495 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003496 .total_size = 128,
3497 .page_size = 128,
3498 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003499 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003500 .probe = probe_jedec,
3501 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3502 .block_erasers =
3503 {
3504 {
3505 .eraseblocks = { {16 * 1024, 8} },
3506 .block_erase = erase_sector_jedec,
3507 },
3508 {
3509 .eraseblocks = { {128 * 1024, 1} },
3510 .block_erase = erase_chip_block_jedec,
3511 },
3512 },
3513 .write = write_jedec_1,
3514 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003515 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003516 },
3517
3518 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003519 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003521 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003522 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003523 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003524 .total_size = 256,
3525 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003526 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003527 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003528 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003529 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003530 .block_erasers =
3531 {
3532 {
3533 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003534 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003535 {8 * 1024, 2},
3536 {32 * 1024, 1},
3537 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003538 },
3539 .block_erase = erase_sector_jedec,
3540 }, {
3541 .eraseblocks = { {256 * 1024, 1} },
3542 .block_erase = erase_chip_block_jedec,
3543 },
3544 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003545 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003547 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003548 },
3549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003550 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003551 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003552 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003553 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003554 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003555 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003556 .total_size = 256,
3557 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003558 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003559 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003560 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003562 .block_erasers =
3563 {
3564 {
3565 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003566 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003567 {32 * 1024, 1},
3568 {8 * 1024, 2},
3569 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003570 },
3571 .block_erase = erase_sector_jedec,
3572 }, {
3573 .eraseblocks = { {256 * 1024, 1} },
3574 .block_erase = erase_chip_block_jedec,
3575 },
3576 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003577 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003579 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003580 },
3581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003582 {
3583 .vendor = "Fujitsu",
3584 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003585 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003586 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003587 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003588 .total_size = 512,
3589 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003591 .tested = TEST_UNTESTED,
3592 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003593 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003594 .block_erasers =
3595 {
3596 {
3597 .eraseblocks = {
3598 {16 * 1024, 1},
3599 {8 * 1024, 2},
3600 {32 * 1024, 1},
3601 {64 * 1024, 7},
3602 },
Sean Nelson35727f72010-01-28 23:55:12 +00003603 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003604 }, {
3605 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003606 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003607 },
3608 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003609 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003611 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003612 },
3613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003614 {
3615 .vendor = "Fujitsu",
3616 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003617 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003618 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003619 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003620 .total_size = 512,
3621 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003622 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003623 .tested = TEST_UNTESTED,
3624 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003625 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003626 .block_erasers =
3627 {
3628 {
3629 .eraseblocks = {
3630 {64 * 1024, 7},
3631 {32 * 1024, 1},
3632 {8 * 1024, 2},
3633 {16 * 1024, 1},
3634 },
Sean Nelson35727f72010-01-28 23:55:12 +00003635 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003636 }, {
3637 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003638 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003639 },
3640 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003641 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003642 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003643 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003644 },
3645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003646 {
Sean Nelson35727f72010-01-28 23:55:12 +00003647 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003648 .vendor = "Fujitsu",
3649 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003651 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003652 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003653 .total_size = 512,
3654 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003655 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003656 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003657 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003658 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003659 .block_erasers =
3660 {
3661 {
3662 .eraseblocks = {
3663 {16 * 1024, 1},
3664 {8 * 1024, 2},
3665 {32 * 1024, 1},
3666 {64 * 1024, 7},
3667 },
3668 .block_erase = block_erase_m29f400bt,
3669 }, {
3670 .eraseblocks = { {512 * 1024, 1} },
3671 .block_erase = block_erase_chip_m29f400bt,
3672 },
3673 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003674 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003675 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003676 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003677 },
3678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003679 {
3680 .vendor = "Fujitsu",
3681 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003682 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003683 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003684 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003685 .total_size = 512,
3686 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003687 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003688 .tested = TEST_UNTESTED,
3689 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003690 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003691 .block_erasers =
3692 {
3693 {
3694 .eraseblocks = {
3695 {64 * 1024, 7},
3696 {32 * 1024, 1},
3697 {8 * 1024, 2},
3698 {16 * 1024, 1},
3699 },
3700 .block_erase = block_erase_m29f400bt,
3701 }, {
3702 .eraseblocks = { {512 * 1024, 1} },
3703 .block_erase = block_erase_chip_m29f400bt,
3704 },
3705 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003706 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003708 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003709 },
3710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003711 {
David Borgc96a8bd2010-06-21 16:12:22 +00003712 .vendor = "Hyundai",
3713 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003714 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003715 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003716 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003717 .total_size = 256,
3718 .page_size = 256 * 1024,
3719 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003720 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003721 .probe = probe_jedec,
3722 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3723 .block_erasers =
3724 {
3725 {
3726 .eraseblocks = {
3727 {64 * 1024, 3},
3728 {32 * 1024, 1},
3729 {8 * 1024, 2},
3730 {16 * 1024, 1},
3731 },
3732 .block_erase = erase_sector_jedec,
3733 }, {
3734 .eraseblocks = { {256 * 1024, 1} },
3735 .block_erase = erase_chip_block_jedec,
3736 },
3737 },
3738 .write = write_jedec_1,
3739 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003740 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003741 },
3742
3743 {
3744 .vendor = "Hyundai",
3745 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003746 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003747 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003748 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003749 .total_size = 256,
3750 .page_size = 256 * 1024,
3751 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3752 .tested = TEST_UNTESTED,
3753 .probe = probe_jedec,
3754 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3755 .block_erasers =
3756 {
3757 {
3758 .eraseblocks = {
3759 {16 * 1024, 1},
3760 {8 * 1024, 2},
3761 {32 * 1024, 1},
3762 {64 * 1024, 3},
3763 },
3764 .block_erase = erase_sector_jedec,
3765 }, {
3766 .eraseblocks = { {256 * 1024, 1} },
3767 .block_erase = erase_chip_block_jedec,
3768 },
3769 },
3770 .write = write_jedec_1,
3771 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003772 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003773 },
3774
3775 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003776 .vendor = "Hyundai",
3777 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003778 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003779 .manufacture_id = HYUNDAI_ID,
3780 .model_id = HYUNDAI_HY29F040A,
3781 .total_size = 512,
3782 .page_size = 64 * 1024,
3783 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3784 .tested = TEST_UNTESTED,
3785 .probe = probe_jedec,
3786 .probe_timing = TIMING_ZERO,
3787 .block_erasers =
3788 {
3789 {
3790 .eraseblocks = { {64 * 1024, 8} },
3791 .block_erase = erase_sector_jedec,
3792 }, {
3793 .eraseblocks = { {512 * 1024, 1} },
3794 .block_erase = erase_chip_block_jedec,
3795 },
3796 },
3797 .write = write_jedec_1,
3798 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003799 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003800 },
3801
3802 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003803 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003804 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003805 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003806 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003807 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003808 .total_size = 128,
3809 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003810 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003811 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003812 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003813 .block_erasers =
3814 {
3815 {
3816 .eraseblocks = {
3817 {8 * 1024, 1},
3818 {4 * 1024, 2},
3819 {112 * 1024, 1},
3820 },
Sean Nelson28accc22010-03-19 18:47:06 +00003821 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003822 },
3823 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003824 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003826 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003827 },
3828
3829 {
3830 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003831 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003832 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003833 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003834 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003835 .total_size = 128,
3836 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003837 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003838 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003839 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003840 .block_erasers =
3841 {
3842 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003843 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003844 {112 * 1024, 1},
3845 {4 * 1024, 2},
3846 {8 * 1024, 1},
3847 },
Sean Nelson28accc22010-03-19 18:47:06 +00003848 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003849 },
3850 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003851 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003853 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003854 },
3855
3856 {
3857 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003858 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003859 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003860 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003861 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003862 .total_size = 256,
3863 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003864 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003865 .probe = probe_82802ab,
3866 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3867 .block_erasers =
3868 {
3869 {
3870 .eraseblocks = {
3871 {128 * 1024, 1},
3872 {96 * 1024, 1},
3873 {8 * 1024, 2},
3874 {16 * 1024, 1},
3875 },
3876 .block_erase = erase_block_82802ab,
3877 },
3878 },
3879 .write = write_82802ab,
3880 .read = read_memmapped,
3881 },
3882
3883 {
3884 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003885 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003886 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003887 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003888 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003889 .total_size = 512,
3890 .page_size = 256,
3891 .tested = TEST_UNTESTED,
3892 .probe = probe_82802ab,
3893 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003894 .block_erasers =
3895 {
3896 {
3897 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003898 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003899 },
3900 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003901 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003902 .write = write_82802ab,
3903 .read = read_memmapped,
3904 },
3905
3906 {
3907 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003908 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003909 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003910 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003911 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003912 .total_size = 512,
3913 .page_size = 128 * 1024, /* maximal block size */
3914 .tested = TEST_UNTESTED,
3915 .probe = probe_82802ab,
3916 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3917 .block_erasers =
3918 {
3919 {
3920 .eraseblocks = {
3921 {16 * 1024, 1},
3922 {8 * 1024, 2},
3923 {96 * 1024, 1},
3924 {128 * 1024, 3},
3925 },
3926 .block_erase = erase_block_82802ab,
3927 },
3928 },
3929 .write = write_82802ab,
3930 .read = read_memmapped,
3931 },
3932
3933 {
3934 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003935 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003936 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003937 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003938 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003939 .total_size = 512,
3940 .page_size = 128 * 1024, /* maximal block size */
3941 .tested = TEST_UNTESTED,
3942 .probe = probe_82802ab,
3943 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3944 .block_erasers =
3945 {
3946 {
3947 .eraseblocks = {
3948 {128 * 1024, 3},
3949 {96 * 1024, 1},
3950 {8 * 1024, 2},
3951 {16 * 1024, 1},
3952 },
3953 .block_erase = erase_block_82802ab,
3954 },
3955 },
3956 .write = write_82802ab,
3957 .read = read_memmapped,
3958 },
3959
3960 {
3961 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003962 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003963 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003964 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003965 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003966 .total_size = 512,
3967 .page_size = 128 * 1024, /* maximal block size */
3968 .feature_bits = FEATURE_ADDR_SHIFTED,
3969 .tested = TEST_UNTESTED,
3970 .probe = probe_82802ab,
3971 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3972 .block_erasers =
3973 {
3974 {
3975 .eraseblocks = {
3976 {16 * 1024, 1},
3977 {8 * 1024, 2},
3978 {96 * 1024, 1},
3979 {128 * 1024, 3},
3980 },
3981 .block_erase = erase_block_82802ab,
3982 },
3983 },
3984 .write = write_82802ab,
3985 .read = read_memmapped,
3986 },
3987
3988 {
3989 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003990 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003991 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003992 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003993 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003994 .total_size = 512,
3995 .page_size = 128 * 1024, /* maximal block size */
3996 .feature_bits = FEATURE_ADDR_SHIFTED,
3997 .tested = TEST_UNTESTED,
3998 .probe = probe_82802ab,
3999 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4000 .block_erasers =
4001 {
4002 {
4003 .eraseblocks = {
4004 {128 * 1024, 3},
4005 {96 * 1024, 1},
4006 {8 * 1024, 2},
4007 {16 * 1024, 1},
4008 },
4009 .block_erase = erase_block_82802ab,
4010 },
4011 },
4012 .write = write_82802ab,
4013 .read = read_memmapped,
4014 },
4015
4016 {
4017 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004018 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004019 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004020 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004021 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004022 .total_size = 512,
4023 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004024 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004025 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004026 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004027 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004028 .block_erasers =
4029 {
4030 {
4031 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004032 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004033 },
4034 },
Sean Nelson28accc22010-03-19 18:47:06 +00004035 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004036 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004037 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004038 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004039 },
4040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004041 {
4042 .vendor = "Intel",
4043 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004044 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004045 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004046 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004047 .total_size = 1024,
4048 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004049 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004050 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004051 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004052 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004053 .block_erasers =
4054 {
4055 {
4056 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004057 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004058 },
4059 },
Sean Nelson28accc22010-03-19 18:47:06 +00004060 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004061 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004063 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004064 },
4065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004066 {
4067 .vendor = "Macronix",
4068 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004069 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004070 .manufacture_id = MACRONIX_ID,
4071 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004072 .total_size = 64,
4073 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004074 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004075 .tested = TEST_UNTESTED,
4076 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004077 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004078 .block_erasers =
4079 {
4080 {
4081 .eraseblocks = { {4 * 1024, 16} },
4082 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004083 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004084 .eraseblocks = { {64 * 1024, 1} },
4085 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004086 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004087 .eraseblocks = { {64 * 1024, 1} },
4088 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004089 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004090 .eraseblocks = { {64 * 1024, 1} },
4091 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004092 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004093 .eraseblocks = { {64 * 1024, 1} },
4094 .block_erase = spi_block_erase_c7,
4095 },
4096 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004098 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004100 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004101 },
4102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004103 {
4104 .vendor = "Macronix",
4105 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004106 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004107 .manufacture_id = MACRONIX_ID,
4108 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004109 .total_size = 128,
4110 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004111 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004112 .tested = TEST_UNTESTED,
4113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004114 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004115 .block_erasers =
4116 {
4117 {
4118 .eraseblocks = { {4 * 1024, 32} },
4119 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004120 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004121 .eraseblocks = { {64 * 1024, 2} },
4122 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004123 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004124 .eraseblocks = { {128 * 1024, 1} },
4125 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004126 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004127 .eraseblocks = { {128 * 1024, 1} },
4128 .block_erase = spi_block_erase_c7,
4129 },
4130 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004131 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004132 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004133 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004134 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004135 },
4136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004137 {
4138 .vendor = "Macronix",
4139 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004140 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004141 .manufacture_id = MACRONIX_ID,
4142 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004143 .total_size = 256,
4144 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004145 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004146 .tested = TEST_UNTESTED,
4147 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004148 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004149 .block_erasers =
4150 {
4151 {
4152 .eraseblocks = { {4 * 1024, 64} },
4153 .block_erase = spi_block_erase_20,
4154 }, {
4155 .eraseblocks = { {64 * 1024, 4} },
4156 .block_erase = spi_block_erase_52,
4157 }, {
4158 .eraseblocks = { {64 * 1024, 4} },
4159 .block_erase = spi_block_erase_d8,
4160 }, {
4161 .eraseblocks = { {256 * 1024, 1} },
4162 .block_erase = spi_block_erase_60,
4163 }, {
4164 .eraseblocks = { {256 * 1024, 1} },
4165 .block_erase = spi_block_erase_c7,
4166 },
4167 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004168 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004169 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004170 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004171 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004172 },
4173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004174 {
4175 .vendor = "Macronix",
4176 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004177 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004178 .manufacture_id = MACRONIX_ID,
4179 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004180 .total_size = 512,
4181 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004182 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004183 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004184 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004185 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = { {4 * 1024, 128} },
4190 .block_erase = spi_block_erase_20,
4191 }, {
4192 .eraseblocks = { {64 * 1024, 8} },
4193 .block_erase = spi_block_erase_52,
4194 }, {
4195 .eraseblocks = { {64 * 1024, 8} },
4196 .block_erase = spi_block_erase_d8,
4197 }, {
4198 .eraseblocks = { {512 * 1024, 1} },
4199 .block_erase = spi_block_erase_60,
4200 }, {
4201 .eraseblocks = { {512 * 1024, 1} },
4202 .block_erase = spi_block_erase_c7,
4203 },
4204 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004205 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004206 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004207 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004208 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004209 },
4210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004211 {
4212 .vendor = "Macronix",
4213 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004214 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004215 .manufacture_id = MACRONIX_ID,
4216 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004217 .total_size = 1024,
4218 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004219 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004221 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004222 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004223 .block_erasers =
4224 {
4225 {
4226 .eraseblocks = { {4 * 1024, 256} },
4227 .block_erase = spi_block_erase_20,
4228 }, {
4229 .eraseblocks = { {64 * 1024, 16} },
4230 .block_erase = spi_block_erase_52,
4231 }, {
4232 .eraseblocks = { {64 * 1024, 16} },
4233 .block_erase = spi_block_erase_d8,
4234 }, {
4235 .eraseblocks = { {1024 * 1024, 1} },
4236 .block_erase = spi_block_erase_60,
4237 }, {
4238 .eraseblocks = { {1024 * 1024, 1} },
4239 .block_erase = spi_block_erase_c7,
4240 },
4241 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004242 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004243 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004244 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004245 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004246 },
4247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004248 {
4249 .vendor = "Macronix",
4250 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004251 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004252 .manufacture_id = MACRONIX_ID,
4253 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004254 .total_size = 2048,
4255 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004256 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004259 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004260 .block_erasers =
4261 {
4262 {
4263 .eraseblocks = { {4 * 1024, 512} },
4264 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4265 }, {
4266 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4267 .block_erase = spi_block_erase_52,
4268 }, {
4269 .eraseblocks = { {64 * 1024, 32} },
4270 .block_erase = spi_block_erase_d8,
4271 }, {
4272 .eraseblocks = { {2 * 1024 * 1024, 1} },
4273 .block_erase = spi_block_erase_60,
4274 }, {
4275 .eraseblocks = { {2 * 1024 * 1024, 1} },
4276 .block_erase = spi_block_erase_c7,
4277 },
4278 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004279 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004280 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004282 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004283 },
4284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004285 {
4286 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004287 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004288 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004289 .manufacture_id = MACRONIX_ID,
4290 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004291 .total_size = 2048,
4292 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004293 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004294 .tested = TEST_UNTESTED,
4295 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004296 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004297 .block_erasers =
4298 {
4299 {
4300 .eraseblocks = { {4 * 1024, 512} },
4301 .block_erase = spi_block_erase_20,
4302 }, {
4303 .eraseblocks = { {64 * 1024, 32} },
4304 .block_erase = spi_block_erase_d8,
4305 }, {
4306 .eraseblocks = { {2 * 1024 * 1024, 1} },
4307 .block_erase = spi_block_erase_60,
4308 }, {
4309 .eraseblocks = { {2 * 1024 * 1024, 1} },
4310 .block_erase = spi_block_erase_c7,
4311 }
4312 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004313 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004314 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004315 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004316 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004317 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004318
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004319 {
4320 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004321 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004322 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004323 .manufacture_id = MACRONIX_ID,
4324 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004325 .total_size = 2048,
4326 .page_size = 256,
4327 .feature_bits = FEATURE_WRSR_WREN,
4328 .tested = TEST_UNTESTED,
4329 .probe = probe_spi_rdid,
4330 .probe_timing = TIMING_ZERO,
4331 .block_erasers =
4332 {
4333 {
4334 .eraseblocks = { {4 * 1024, 512} },
4335 .block_erase = spi_block_erase_20,
4336 }, {
4337 .eraseblocks = { {64 * 1024, 32} },
4338 .block_erase = spi_block_erase_d8,
4339 }, {
4340 .eraseblocks = { {2 * 1024 * 1024, 1} },
4341 .block_erase = spi_block_erase_60,
4342 }, {
4343 .eraseblocks = { {2 * 1024 * 1024, 1} },
4344 .block_erase = spi_block_erase_c7,
4345 }
4346 },
4347 .unlock = spi_disable_blockprotect,
4348 .write = spi_chip_write_256,
4349 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004350 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004351 },
4352
4353 {
4354 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004355 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004356 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004357 .manufacture_id = MACRONIX_ID,
4358 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004359 .total_size = 4096,
4360 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004361 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004362 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004363 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004364 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004365 .block_erasers =
4366 {
4367 {
4368 .eraseblocks = { {4 * 1024, 1024} },
4369 .block_erase = spi_block_erase_20,
4370 }, {
4371 .eraseblocks = { {4 * 1024, 1024} },
4372 .block_erase = spi_block_erase_d8,
4373 }, {
4374 .eraseblocks = { {4 * 1024 * 1024, 1} },
4375 .block_erase = spi_block_erase_60,
4376 }, {
4377 .eraseblocks = { {4 * 1024 * 1024, 1} },
4378 .block_erase = spi_block_erase_c7,
4379 },
4380 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004381 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004382 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004383 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004384 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004385 },
4386
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004387 {
4388 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004389 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004390 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004391 .manufacture_id = MACRONIX_ID,
4392 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004393 .total_size = 4096,
4394 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004395 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004396 .tested = TEST_UNTESTED,
4397 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004398 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004399 .block_erasers =
4400 {
4401 {
4402 .eraseblocks = { {4 * 1024, 1024} },
4403 .block_erase = spi_block_erase_20,
4404 }, {
4405 .eraseblocks = { {64 * 1024, 64} },
4406 .block_erase = spi_block_erase_d8,
4407 }, {
4408 .eraseblocks = { {4 * 1024 * 1024, 1} },
4409 .block_erase = spi_block_erase_60,
4410 }, {
4411 .eraseblocks = { {4 * 1024 * 1024, 1} },
4412 .block_erase = spi_block_erase_c7,
4413 }
4414 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004416 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004417 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004418 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004419 },
4420
4421 {
4422 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004423 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004424 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004425 .manufacture_id = MACRONIX_ID,
4426 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004427 .total_size = 8192,
4428 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004429 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00004430 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004431 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004432 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004433 .block_erasers =
4434 {
4435 {
4436 .eraseblocks = { {64 * 1024, 128} },
4437 .block_erase = spi_block_erase_20,
4438 }, {
4439 .eraseblocks = { {64 * 1024, 128} },
4440 .block_erase = spi_block_erase_d8,
4441 }, {
4442 .eraseblocks = { {8 * 1024 * 1024, 1} },
4443 .block_erase = spi_block_erase_60,
4444 }, {
4445 .eraseblocks = { {8 * 1024 * 1024, 1} },
4446 .block_erase = spi_block_erase_c7,
4447 }
4448 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004449 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004450 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004451 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004452 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004453 },
4454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004455 {
4456 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004457 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004458 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004459 .manufacture_id = MACRONIX_ID,
4460 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004461 .total_size = 16384,
4462 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004463 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004464 .tested = TEST_UNTESTED,
4465 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004466 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004467 .block_erasers =
4468 {
4469 {
4470 .eraseblocks = { {4 * 1024, 4096} },
4471 .block_erase = spi_block_erase_20,
4472 }, {
4473 .eraseblocks = { {64 * 1024, 256} },
4474 .block_erase = spi_block_erase_d8,
4475 }, {
4476 .eraseblocks = { {16 * 1024 * 1024, 1} },
4477 .block_erase = spi_block_erase_60,
4478 }, {
4479 .eraseblocks = { {16 * 1024 * 1024, 1} },
4480 .block_erase = spi_block_erase_c7,
4481 }
4482 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004483 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004484 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004485 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004486 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004487 },
4488
4489 {
4490 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004491 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004492 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004493 .manufacture_id = MACRONIX_ID,
4494 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004495 .total_size = 128,
4496 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004497 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4498 .tested = TEST_UNTESTED,
4499 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004500 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004501 .block_erasers =
4502 {
4503 {
4504 .eraseblocks = {
4505 {8 * 1024, 1},
4506 {4 * 1024, 2},
4507 {8 * 1024, 2},
4508 {32 * 1024, 1},
4509 {64 * 1024, 1},
4510 },
Sean Nelson35727f72010-01-28 23:55:12 +00004511 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004512 }, {
4513 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004514 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004515 }
4516 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004517 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004518 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004519 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004520 },
4521
4522 {
4523 .vendor = "Macronix",
4524 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004525 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004526 .manufacture_id = MACRONIX_ID,
4527 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004528 .total_size = 128,
4529 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004530 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004531 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004532 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004534 .block_erasers =
4535 {
4536 {
4537 .eraseblocks = {
4538 {64 * 1024, 1},
4539 {32 * 1024, 1},
4540 {8 * 1024, 2},
4541 {4 * 1024, 2},
4542 {8 * 1024, 1},
4543 },
Sean Nelson35727f72010-01-28 23:55:12 +00004544 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004545 }, {
4546 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004547 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004548 }
4549 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004550 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004551 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004552 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004553 },
4554
4555 {
4556 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004557 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004558 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004559 .manufacture_id = MACRONIX_ID,
4560 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004561 .total_size = 256,
4562 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004563 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004564 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004565 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004566 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004567 .block_erasers =
4568 {
4569 {
4570 .eraseblocks = {
4571 {16 * 1024, 1},
4572 {8 * 1024, 2},
4573 {32 * 1024, 1},
4574 {64 * 1024, 3},
4575 },
Sean Nelson35727f72010-01-28 23:55:12 +00004576 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004577 }, {
4578 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004579 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004580 },
4581 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004582 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004584 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004585 },
4586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004587 {
4588 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004589 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004590 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004591 .manufacture_id = MACRONIX_ID,
4592 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004593 .total_size = 256,
4594 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004595 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004596 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004597 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004598 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004599 .block_erasers =
4600 {
4601 {
4602 .eraseblocks = {
4603 {64 * 1024, 3},
4604 {32 * 1024, 1},
4605 {8 * 1024, 2},
4606 {16 * 1024, 1},
4607 },
Sean Nelson35727f72010-01-28 23:55:12 +00004608 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004609 }, {
4610 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004611 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004612 },
4613 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004614 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004615 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004616 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004617 },
4618
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004619 {
4620 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004621 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004622 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004623 .manufacture_id = MACRONIX_ID,
4624 .model_id = MACRONIX_MX29F040,
4625 .total_size = 512,
4626 .page_size = 64 * 1024,
4627 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4628 .tested = TEST_UNTESTED,
4629 .probe = probe_jedec,
4630 .probe_timing = TIMING_ZERO,
4631 .block_erasers =
4632 {
4633 {
4634 .eraseblocks = { {64 * 1024, 8} },
4635 .block_erase = erase_sector_jedec,
4636 }, {
4637 .eraseblocks = { {512 * 1024, 1} },
4638 .block_erase = erase_chip_block_jedec,
4639 },
4640 },
4641 .write = write_jedec_1,
4642 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004643 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004644 },
4645
4646 {
4647 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004648 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004649 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004650 .manufacture_id = MACRONIX_ID,
4651 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004652 .total_size = 512,
4653 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004654 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4655 .tested = TEST_UNTESTED,
4656 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004657 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004658 .block_erasers =
4659 {
4660 {
4661 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004662 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004663 }, {
4664 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004665 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004666 },
4667 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004668 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004669 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004670 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004671 },
4672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004673 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004674 .vendor = "MoselVitelic",
4675 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004676 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004677 .manufacture_id = SYNCMOS_MVC_ID,
4678 .model_id = MVC_V29C51000B,
4679 .total_size = 64,
4680 .page_size = 512,
4681 .feature_bits = FEATURE_EITHER_RESET,
4682 .tested = TEST_UNTESTED,
4683 .probe = probe_jedec,
4684 .probe_timing = TIMING_ZERO,
4685 .block_erasers =
4686 {
4687 {
4688 .eraseblocks = { {512, 128} },
4689 .block_erase = erase_sector_jedec,
4690 }, {
4691 .eraseblocks = { {64 * 1024, 1} },
4692 .block_erase = erase_chip_block_jedec,
4693 },
4694 },
4695 .write = write_jedec_1,
4696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004697 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004698 },
4699
4700 {
4701 .vendor = "MoselVitelic",
4702 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004703 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004704 .manufacture_id = SYNCMOS_MVC_ID,
4705 .model_id = MVC_V29C51000T,
4706 .total_size = 64,
4707 .page_size = 512,
4708 .feature_bits = FEATURE_EITHER_RESET,
4709 .tested = TEST_UNTESTED,
4710 .probe = probe_jedec,
4711 .probe_timing = TIMING_ZERO,
4712 .block_erasers =
4713 {
4714 {
4715 .eraseblocks = { {512, 128} },
4716 .block_erase = erase_sector_jedec,
4717 }, {
4718 .eraseblocks = { {64 * 1024, 1} },
4719 .block_erase = erase_chip_block_jedec,
4720 },
4721 },
4722 .write = write_jedec_1,
4723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004724 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004725 },
4726
4727 {
4728 .vendor = "MoselVitelic",
4729 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004730 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004731 .manufacture_id = SYNCMOS_MVC_ID,
4732 .model_id = MVC_V29C51400B,
4733 .total_size = 512,
4734 .page_size = 1024,
4735 .feature_bits = FEATURE_EITHER_RESET,
4736 .tested = TEST_UNTESTED,
4737 .probe = probe_jedec,
4738 .probe_timing = TIMING_ZERO,
4739 .block_erasers =
4740 {
4741 {
4742 .eraseblocks = { {1024, 512} },
4743 .block_erase = erase_sector_jedec,
4744 }, {
4745 .eraseblocks = { {512 * 1024, 1} },
4746 .block_erase = erase_chip_block_jedec,
4747 },
4748 },
4749 .write = write_jedec_1,
4750 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004751 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004752 },
4753
4754 {
4755 .vendor = "MoselVitelic",
4756 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004757 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004758 .manufacture_id = SYNCMOS_MVC_ID,
4759 .model_id = MVC_V29C51400T,
4760 .total_size = 512,
4761 .page_size = 1024,
4762 .feature_bits = FEATURE_EITHER_RESET,
4763 .tested = TEST_UNTESTED,
4764 .probe = probe_jedec,
4765 .probe_timing = TIMING_ZERO,
4766 .block_erasers =
4767 {
4768 {
4769 .eraseblocks = { {1024, 512} },
4770 .block_erase = erase_sector_jedec,
4771 }, {
4772 .eraseblocks = { {512 * 1024, 1} },
4773 .block_erase = erase_chip_block_jedec,
4774 },
4775 },
4776 .write = write_jedec_1,
4777 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004778 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004779 },
4780
4781 {
4782 .vendor = "MoselVitelic",
4783 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004784 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004785 .manufacture_id = SYNCMOS_MVC_ID,
4786 .model_id = MVC_V29LC51000,
4787 .total_size = 64,
4788 .page_size = 512,
4789 .feature_bits = FEATURE_EITHER_RESET,
4790 .tested = TEST_UNTESTED,
4791 .probe = probe_jedec,
4792 .probe_timing = TIMING_ZERO,
4793 .block_erasers =
4794 {
4795 {
4796 .eraseblocks = { {512, 128} },
4797 .block_erase = erase_sector_jedec,
4798 }, {
4799 .eraseblocks = { {64 * 1024, 1} },
4800 .block_erase = erase_chip_block_jedec,
4801 },
4802 },
4803 .write = write_jedec_1,
4804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004805 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004806 },
4807
4808 {
4809 .vendor = "MoselVitelic",
4810 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004811 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004812 .manufacture_id = SYNCMOS_MVC_ID,
4813 .model_id = MVC_V29LC51001,
4814 .total_size = 128,
4815 .page_size = 512,
4816 .feature_bits = FEATURE_EITHER_RESET,
4817 .tested = TEST_UNTESTED,
4818 .probe = probe_jedec,
4819 .probe_timing = TIMING_ZERO,
4820 .block_erasers =
4821 {
4822 {
4823 .eraseblocks = { {512, 256} },
4824 .block_erase = erase_sector_jedec,
4825 }, {
4826 .eraseblocks = { {128 * 1024, 1} },
4827 .block_erase = erase_chip_block_jedec,
4828 },
4829 },
4830 .write = write_jedec_1,
4831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004832 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004833 },
4834
4835 {
4836 .vendor = "MoselVitelic",
4837 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004838 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004839 .manufacture_id = SYNCMOS_MVC_ID,
4840 .model_id = MVC_V29LC51002,
4841 .total_size = 256,
4842 .page_size = 512,
4843 .feature_bits = FEATURE_EITHER_RESET,
4844 .tested = TEST_UNTESTED,
4845 .probe = probe_jedec,
4846 .probe_timing = TIMING_ZERO,
4847 .block_erasers =
4848 {
4849 {
4850 .eraseblocks = { {512, 512} },
4851 .block_erase = erase_sector_jedec,
4852 }, {
4853 .eraseblocks = { {256 * 1024, 1} },
4854 .block_erase = erase_chip_block_jedec,
4855 },
4856 },
4857 .write = write_jedec_1,
4858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004859 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004860 },
4861
4862 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004863 .vendor = "Numonyx",
4864 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004865 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004866 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004867 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004868 .total_size = 128,
4869 .page_size = 256,
4870 .tested = TEST_UNTESTED,
4871 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004872 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004873 .block_erasers =
4874 {
4875 {
4876 .eraseblocks = { {4 * 1024, 32} },
4877 .block_erase = spi_block_erase_20,
4878 }, {
4879 .eraseblocks = { {64 * 1024, 2} },
4880 .block_erase = spi_block_erase_d8,
4881 }, {
4882 .eraseblocks = { {128 * 1024, 1} },
4883 .block_erase = spi_block_erase_c7,
4884 }
4885 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004886 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004887 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004888 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004889 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004890 },
4891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004892 {
4893 .vendor = "Numonyx",
4894 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004895 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004896 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004897 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004898 .total_size = 256,
4899 .page_size = 256,
4900 .tested = TEST_UNTESTED,
4901 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004902 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004903 .block_erasers =
4904 {
4905 {
4906 .eraseblocks = { {4 * 1024, 64} },
4907 .block_erase = spi_block_erase_20,
4908 }, {
4909 .eraseblocks = { {64 * 1024, 4} },
4910 .block_erase = spi_block_erase_d8,
4911 }, {
4912 .eraseblocks = { {256 * 1024, 1} },
4913 .block_erase = spi_block_erase_c7,
4914 }
4915 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004916 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004917 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004919 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004920 },
4921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004922 {
4923 .vendor = "Numonyx",
4924 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004925 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004926 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004927 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004928 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004929 .page_size = 256,
4930 .tested = TEST_UNTESTED,
4931 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004932 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = { {4 * 1024, 128} },
4937 .block_erase = spi_block_erase_20,
4938 }, {
4939 .eraseblocks = { {64 * 1024, 8} },
4940 .block_erase = spi_block_erase_d8,
4941 }, {
4942 .eraseblocks = { {512 * 1024, 1} },
4943 .block_erase = spi_block_erase_c7,
4944 }
4945 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004946 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004947 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004948 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004949 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004950 },
4951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004952 {
4953 .vendor = "Numonyx",
4954 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004955 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004956 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004957 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004958 .total_size = 1024,
4959 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004960 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004961 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004962 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = { {4 * 1024, 256} },
4967 .block_erase = spi_block_erase_20,
4968 }, {
4969 .eraseblocks = { {64 * 1024, 16} },
4970 .block_erase = spi_block_erase_d8,
4971 }, {
4972 .eraseblocks = { {1024 * 1024, 1} },
4973 .block_erase = spi_block_erase_c7,
4974 }
4975 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004976 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004977 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004978 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004980 },
4981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004982 {
4983 .vendor = "Numonyx",
4984 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004985 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004986 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004987 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004988 .total_size = 2048,
4989 .page_size = 256,
4990 .tested = TEST_UNTESTED,
4991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004992 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004993 .block_erasers =
4994 {
4995 {
4996 .eraseblocks = { {4 * 1024, 512} },
4997 .block_erase = spi_block_erase_20,
4998 }, {
4999 .eraseblocks = { {64 * 1024, 32} },
5000 .block_erase = spi_block_erase_d8,
5001 }, {
5002 .eraseblocks = { {2 * 1024 * 1024, 1} },
5003 .block_erase = spi_block_erase_c7,
5004 }
5005 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005006 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005007 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005008 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005009 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005010 },
5011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005012 {
5013 .vendor = "PMC",
5014 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005015 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005016 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005017 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005018 .total_size = 128,
5019 .page_size = 256,
5020 .tested = TEST_UNTESTED,
5021 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005022 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005023 .block_erasers =
5024 {
5025 {
5026 .eraseblocks = { {4 * 1024, 32} },
5027 .block_erase = spi_block_erase_d7,
5028 }, {
5029 .eraseblocks = { {32 * 1024, 4} },
5030 .block_erase = spi_block_erase_d8,
5031 }, {
5032 .eraseblocks = { {128 * 1024, 1} },
5033 .block_erase = spi_block_erase_c7,
5034 }
5035 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005037 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005038 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005039 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005040 },
5041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005042 {
5043 .vendor = "PMC",
5044 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005045 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005046 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005047 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005048 .total_size = 2048,
5049 .page_size = 256,
5050 .tested = TEST_UNTESTED,
5051 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005052 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005053 .block_erasers =
5054 {
5055 {
5056 .eraseblocks = { {4 * 1024, 512} },
5057 .block_erase = spi_block_erase_d7,
5058 }, {
5059 .eraseblocks = { {4 * 1024, 512} },
5060 .block_erase = spi_block_erase_20,
5061 }, {
5062 .eraseblocks = { {64 * 1024, 32} },
5063 .block_erase = spi_block_erase_d8,
5064 }, {
5065 .eraseblocks = { {2 * 1024 * 1024, 1} },
5066 .block_erase = spi_block_erase_60,
5067 }, {
5068 .eraseblocks = { {2 * 1024 * 1024, 1} },
5069 .block_erase = spi_block_erase_c7,
5070 }
5071 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005072 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005073 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005074 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005075 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005076 },
5077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005078 {
5079 .vendor = "PMC",
5080 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005081 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005082 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005083 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005084 .total_size = 256,
5085 .page_size = 256,
5086 .tested = TEST_UNTESTED,
5087 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005088 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005089 .block_erasers =
5090 {
5091 {
5092 .eraseblocks = { {4 * 1024, 64} },
5093 .block_erase = spi_block_erase_d7,
5094 }, {
5095 .eraseblocks = { {64 * 1024, 4} },
5096 .block_erase = spi_block_erase_d8,
5097 }, {
5098 .eraseblocks = { {256 * 1024, 1} },
5099 .block_erase = spi_block_erase_c7,
5100 }
5101 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005106 },
5107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005108 {
5109 .vendor = "PMC",
5110 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005111 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005112 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005113 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .total_size = 512,
5115 .page_size = 256,
Stefan Tauner716e0982011-07-25 20:38:52 +00005116 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005117 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005118 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005119 .block_erasers =
5120 {
5121 {
5122 .eraseblocks = { {4 * 1024, 128} },
5123 .block_erase = spi_block_erase_d7,
5124 }, {
5125 .eraseblocks = { {64 * 1024, 8} },
5126 .block_erase = spi_block_erase_d8,
5127 }, {
5128 .eraseblocks = { {512 * 1024, 1} },
5129 .block_erase = spi_block_erase_c7,
5130 }
5131 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005132 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005133 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005134 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005135 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005136 },
5137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 {
5139 .vendor = "PMC",
5140 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005141 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005142 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005143 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005144 .total_size = 1024,
5145 .page_size = 256,
5146 .tested = TEST_UNTESTED,
5147 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005148 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = { {4 * 1024, 256} },
5153 .block_erase = spi_block_erase_d7,
5154 }, {
5155 .eraseblocks = { {4 * 1024, 256} },
5156 .block_erase = spi_block_erase_20,
5157 }, {
5158 .eraseblocks = { {64 * 1024, 16} },
5159 .block_erase = spi_block_erase_d8,
5160 }, {
5161 .eraseblocks = { {1024 * 1024, 1} },
5162 .block_erase = spi_block_erase_60,
5163 }, {
5164 .eraseblocks = { {1024 * 1024, 1} },
5165 .block_erase = spi_block_erase_c7,
5166 }
5167 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005168 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005169 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005170 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005171 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005172 },
5173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005174 {
5175 .vendor = "PMC",
5176 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005177 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005178 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005179 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005180 .total_size = 64,
5181 .page_size = 256,
5182 .tested = TEST_UNTESTED,
5183 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005184 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005185 .block_erasers =
5186 {
5187 {
5188 .eraseblocks = { {4 * 1024, 16} },
5189 .block_erase = spi_block_erase_d7,
5190 }, {
5191 .eraseblocks = { {32 * 1024, 2} },
5192 .block_erase = spi_block_erase_d8,
5193 }, {
5194 .eraseblocks = { {64 * 1024, 1} },
5195 .block_erase = spi_block_erase_c7,
5196 }
5197 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005198 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005199 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005200 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005201 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005202 },
5203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005204 {
5205 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005206 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005207 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005208 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005209 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005210 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005211 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005213 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005214 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005215 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005216 .block_erasers =
5217 {
5218 {
5219 .eraseblocks = {
5220 {128 * 1024, 1},
5221 {96 * 1024, 1},
5222 {8 * 1024, 2},
5223 {16 * 1024, 1},
5224 },
Sean Nelson35727f72010-01-28 23:55:12 +00005225 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005226 }, {
5227 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005228 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005229 },
5230 },
Sean Nelson35727f72010-01-28 23:55:12 +00005231 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005233 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005234 },
5235
5236 {
5237 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005238 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005239 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005240 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005241 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005242 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005243 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005245 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005246 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005247 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005248 .block_erasers =
5249 {
5250 {
5251 .eraseblocks = {
5252 {16 * 1024, 1},
5253 {8 * 1024, 2},
5254 {96 * 1024, 1},
5255 {128 * 1024, 1},
5256 },
Sean Nelson35727f72010-01-28 23:55:12 +00005257 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005258 }, {
5259 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005260 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005261 },
5262 },
Sean Nelson35727f72010-01-28 23:55:12 +00005263 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005265 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005266 },
5267
5268 {
5269 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005270 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005271 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005272 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005273 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005274 .total_size = 128,
5275 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005277 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005278 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005279 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005280 .block_erasers =
5281 {
5282 {
5283 .eraseblocks = { {4 * 1024, 32} },
5284 .block_erase = erase_sector_jedec,
5285 }, {
5286 .eraseblocks = { {64 * 1024, 2} },
5287 .block_erase = erase_block_jedec,
5288 }, {
5289 .eraseblocks = { {128 * 1024, 1} },
5290 .block_erase = erase_chip_block_jedec,
5291 }
5292 },
Sean Nelson35727f72010-01-28 23:55:12 +00005293 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005295 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005296 },
5297
5298 {
5299 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005300 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005301 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005302 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005303 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005304 .total_size = 256,
5305 .page_size = 4096,
5306 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5307 .tested = TEST_UNTESTED,
5308 .probe = probe_jedec,
5309 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5310 .block_erasers =
5311 {
5312 {
5313 .eraseblocks = { {4 * 1024, 64} },
5314 .block_erase = erase_sector_jedec,
5315 }, {
5316 .eraseblocks = { {64 * 1024, 4} },
5317 .block_erase = erase_block_jedec,
5318 }, {
5319 .eraseblocks = { {256 * 1024, 1} },
5320 .block_erase = erase_chip_block_jedec,
5321 }
5322 },
5323 .write = write_jedec_1,
5324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005325 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005326 },
5327
5328 {
5329 .vendor = "PMC",
5330 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005331 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005332 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005333 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005334 .total_size = 512,
5335 .page_size = 4096,
5336 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005337 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005338 .probe = probe_jedec,
5339 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5340 .block_erasers =
5341 {
5342 {
5343 .eraseblocks = { {4 * 1024, 128} },
5344 .block_erase = erase_sector_jedec,
5345 }, {
5346 .eraseblocks = { {64 * 1024, 8} },
5347 .block_erase = erase_block_jedec,
5348 }, {
5349 .eraseblocks = { {512 * 1024, 1} },
5350 .block_erase = erase_chip_block_jedec,
5351 }
5352 },
5353 .write = write_jedec_1,
5354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005355 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005356 },
5357
5358 {
5359 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005360 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005361 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005362 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005363 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005364 .total_size = 256,
5365 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005366 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005367 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005368 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005369 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005370 .block_erasers =
5371 {
5372 {
5373 .eraseblocks = { {4 * 1024, 64} },
5374 .block_erase = erase_sector_jedec,
5375 }, {
5376 .eraseblocks = { {16 * 1024, 16} },
5377 .block_erase = erase_block_jedec,
5378 }, {
5379 .eraseblocks = { {256 * 1024, 1} },
5380 .block_erase = erase_chip_block_jedec,
5381 }
5382 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005383 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005384 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005385 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005386 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005387 },
5388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005389 {
5390 .vendor = "PMC",
5391 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005392 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005393 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005394 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005395 .total_size = 512,
5396 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005397 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005398 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005399 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005400 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005401 .block_erasers =
5402 {
5403 {
5404 .eraseblocks = { {4 * 1024, 128} },
5405 .block_erase = erase_sector_jedec,
5406 }, {
5407 .eraseblocks = { {64 * 1024, 8} },
5408 .block_erase = erase_block_jedec,
5409 }, {
5410 .eraseblocks = { {512 * 1024, 1} },
5411 .block_erase = erase_chip_block_jedec,
5412 }
5413 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005414 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005415 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005416 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005417 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005418 },
5419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005420 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005421 .vendor = "Sanyo",
5422 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005423 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005424 .manufacture_id = SANYO_ID,
5425 .model_id = SANYO_LE25FW203A,
5426 .total_size = 2048,
5427 .page_size = 256,
5428 .tested = TEST_UNTESTED,
5429 .probe = probe_spi_rdid,
5430 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005431 .block_erasers =
5432 {
5433 {
5434 .eraseblocks = { {64 * 1024, 32} },
5435 .block_erase = spi_block_erase_d8,
5436 }, {
5437 .eraseblocks = { {2 * 1024 * 1024, 1} },
5438 .block_erase = spi_block_erase_c7,
5439 }
5440 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005441 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005442 .write = spi_chip_write_256,
5443 .read = spi_chip_read,
5444 },
5445
5446 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005447 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005448 .name = "LH28F008BJT-BTLZ1",
5449 .bustype = BUS_PARALLEL,
5450 .manufacture_id = SHARP_ID,
5451 .model_id = SHARP_LH28F008BJxxPB,
5452 .total_size = 1024,
5453 .page_size = 64 * 1024,
5454 .tested = TEST_OK_PREW,
5455 .probe = probe_82802ab,
5456 .probe_timing = TIMING_ZERO,
5457 .block_erasers =
5458 {
5459 {
5460 .eraseblocks = {
5461 {8 * 1024, 8},
5462 {64 * 1024, 15}
5463 },
5464 .block_erase = erase_block_82802ab,
5465 }, {
5466 .eraseblocks = { {1024 * 1024, 1} },
5467 .block_erase = erase_sector_49lfxxxc,
5468 }
5469 },
5470 .unlock = unlock_lh28f008bjt,
5471 .write = write_82802ab,
5472 .read = read_memmapped,
5473 .voltage = {2700, 3600},
5474 },
5475
5476 {
5477 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005478 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005479 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005480 .manufacture_id = SHARP_ID,
5481 .model_id = SHARP_LHF00L04,
5482 .total_size = 1024,
5483 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005484 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005485 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005486 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005487 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005488 .block_erasers =
5489 {
5490 {
5491 .eraseblocks = {
5492 {64 * 1024, 15},
5493 {8 * 1024, 8}
5494 },
Sean Nelson28accc22010-03-19 18:47:06 +00005495 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005496 }, {
5497 .eraseblocks = {
5498 {1024 * 1024, 1}
5499 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005500 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005501 },
5502 },
Sean Nelson28accc22010-03-19 18:47:06 +00005503 .unlock = unlock_82802ab,
5504 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005505 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005506 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005507 },
5508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005509 {
5510 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005511 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005512 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005513 .manufacture_id = SPANSION_ID,
5514 .model_id = SPANSION_S25FL004A,
5515 .total_size = 512,
5516 .page_size = 256,
5517 .tested = TEST_UNTESTED,
5518 .probe = probe_spi_rdid,
5519 .probe_timing = TIMING_ZERO,
5520 .block_erasers =
5521 {
5522 {
5523 .eraseblocks = { {64 * 1024, 8} },
5524 .block_erase = spi_block_erase_d8,
5525 }, {
5526 .eraseblocks = { {512 * 1024, 1} },
5527 .block_erase = spi_block_erase_c7,
5528 }
5529 },
5530 .unlock = spi_disable_blockprotect,
5531 .write = spi_chip_write_256,
5532 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005533 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005534 },
5535
5536 {
5537 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005538 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005539 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005540 .manufacture_id = SPANSION_ID,
5541 .model_id = SPANSION_S25FL008A,
5542 .total_size = 1024,
5543 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005544 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005545 .probe = probe_spi_rdid,
5546 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005547 .block_erasers =
5548 {
5549 {
5550 .eraseblocks = { {64 * 1024, 16} },
5551 .block_erase = spi_block_erase_d8,
5552 }, {
5553 .eraseblocks = { {1024 * 1024, 1} },
5554 .block_erase = spi_block_erase_c7,
5555 }
5556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005557 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005558 .write = spi_chip_write_256,
5559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005560 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005561 },
5562
5563 {
5564 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005565 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005567 .manufacture_id = SPANSION_ID,
5568 .model_id = SPANSION_S25FL016A,
5569 .total_size = 2048,
5570 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005571 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005573 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005574 .block_erasers =
5575 {
5576 {
5577 .eraseblocks = { {64 * 1024, 32} },
5578 .block_erase = spi_block_erase_d8,
5579 }, {
5580 .eraseblocks = { {2 * 1024 * 1024, 1} },
5581 .block_erase = spi_block_erase_c7,
5582 }
5583 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005584 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005585 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005586 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005587 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005588 },
5589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005590 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005591 .vendor = "Spansion",
5592 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005593 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005594 .manufacture_id = SPANSION_ID,
5595 .model_id = SPANSION_S25FL032A,
5596 .total_size = 4096,
5597 .page_size = 256,
5598 .tested = TEST_UNTESTED,
5599 .probe = probe_spi_rdid,
5600 .probe_timing = TIMING_ZERO,
5601 .block_erasers =
5602 {
5603 {
5604 .eraseblocks = { {64 * 1024, 64} },
5605 .block_erase = spi_block_erase_d8,
5606 }, {
5607 .eraseblocks = { {4 * 1024 * 1024, 1} },
5608 .block_erase = spi_block_erase_c7,
5609 }
5610 },
5611 .unlock = spi_disable_blockprotect,
5612 .write = spi_chip_write_256,
5613 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005614 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005615 },
5616
5617 {
5618 .vendor = "Spansion",
5619 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005620 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005621 .manufacture_id = SPANSION_ID,
5622 .model_id = SPANSION_S25FL064A,
5623 .total_size = 8192,
5624 .page_size = 256,
5625 .tested = TEST_OK_PREW,
5626 .probe = probe_spi_rdid,
5627 .probe_timing = TIMING_ZERO,
5628 .block_erasers =
5629 {
5630 {
5631 .eraseblocks = { {64 * 1024, 128} },
5632 .block_erase = spi_block_erase_d8,
5633 }, {
5634 .eraseblocks = { {8 * 1024 * 1024, 1} },
5635 .block_erase = spi_block_erase_c7,
5636 }
5637 },
5638 .unlock = spi_disable_blockprotect,
5639 .write = spi_chip_write_256,
5640 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005641 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005642 },
5643
5644 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005645 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00005646 .name = "SST25LF040A",
5647 .bustype = BUS_SPI,
5648 .manufacture_id = SST_ID,
5649 .model_id = SST_SST25VF040_REMS,
5650 .total_size = 512,
5651 .page_size = 256,
Uwe Hermann4335ec82011-09-07 20:20:25 +00005652 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00005653 .probe = probe_spi_res2,
5654 .probe_timing = TIMING_ZERO,
5655 .block_erasers =
5656 {
5657 {
5658 .eraseblocks = { {4 * 1024, 128} },
5659 .block_erase = spi_block_erase_20,
5660 }, {
5661 .eraseblocks = { {32 * 1024, 16} },
5662 .block_erase = spi_block_erase_52,
5663 }, {
5664 .eraseblocks = { {512 * 1024, 1} },
5665 .block_erase = spi_block_erase_60,
5666 },
5667 },
5668 .unlock = spi_disable_blockprotect,
5669 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5670 .read = spi_chip_read,
5671 .voltage = {3000, 3600},
5672 },
5673
5674 {
5675 .vendor = "SST",
5676 .name = "SST25LF080A",
5677 .bustype = BUS_SPI,
5678 .manufacture_id = SST_ID,
5679 .model_id = SST_SST25VF080_REMS,
5680 .total_size = 1024,
5681 .page_size = 256,
5682 .tested = TEST_UNTESTED,
5683 .probe = probe_spi_res2,
5684 .probe_timing = TIMING_ZERO,
5685 .block_erasers =
5686 {
5687 {
5688 .eraseblocks = { {4 * 1024, 256} },
5689 .block_erase = spi_block_erase_20,
5690 }, {
5691 .eraseblocks = { {32 * 1024, 32} },
5692 .block_erase = spi_block_erase_52,
5693 }, {
5694 .eraseblocks = { {1024 * 1024, 1} },
5695 .block_erase = spi_block_erase_60,
5696 },
5697 },
5698 .unlock = spi_disable_blockprotect,
5699 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5700 .read = spi_chip_read,
5701 .voltage = {3000, 3600},
5702 },
5703
5704 {
5705 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005706 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005707 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00005708 .manufacture_id = SST_ID,
5709 .model_id = SST_SST25VF010_REMS,
5710 .total_size = 128,
5711 .page_size = 256,
5712 .tested = TEST_OK_PREW,
5713 .probe = probe_spi_rems,
5714 .probe_timing = TIMING_ZERO,
5715 .block_erasers =
5716 {
5717 {
5718 .eraseblocks = { {4 * 1024, 32} },
5719 .block_erase = spi_block_erase_20,
5720 }, {
5721 .eraseblocks = { {32 * 1024, 4} },
5722 .block_erase = spi_block_erase_52,
5723 }, {
5724 .eraseblocks = { {128 * 1024, 1} },
5725 .block_erase = spi_block_erase_60,
5726 },
5727 },
5728 .unlock = spi_disable_blockprotect,
5729 .write = spi_chip_write_1,
5730 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005731 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00005732 },
5733
5734 {
5735 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005736 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005737 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005738 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005739 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005740 .total_size = 2048,
5741 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00005742 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005743 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005744 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005745 .block_erasers =
5746 {
5747 {
5748 .eraseblocks = { {4 * 1024, 512} },
5749 .block_erase = spi_block_erase_20,
5750 }, {
5751 .eraseblocks = { {32 * 1024, 64} },
5752 .block_erase = spi_block_erase_52,
5753 }, {
5754 .eraseblocks = { {64 * 1024, 32} },
5755 .block_erase = spi_block_erase_d8,
5756 }, {
5757 .eraseblocks = { {2 * 1024 * 1024, 1} },
5758 .block_erase = spi_block_erase_60,
5759 }, {
5760 .eraseblocks = { {2 * 1024 * 1024, 1} },
5761 .block_erase = spi_block_erase_c7,
5762 },
5763 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005764 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005765 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005766 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005767 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005768 },
5769
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005770 {
5771 .vendor = "SST",
5772 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005773 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005774 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005775 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005776 .total_size = 4096,
5777 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00005778 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005779 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005780 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005781 .block_erasers =
5782 {
5783 {
5784 .eraseblocks = { {4 * 1024, 1024} },
5785 .block_erase = spi_block_erase_20,
5786 }, {
5787 .eraseblocks = { {32 * 1024, 128} },
5788 .block_erase = spi_block_erase_52,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 64} },
5791 .block_erase = spi_block_erase_d8,
5792 }, {
5793 .eraseblocks = { {4 * 1024 * 1024, 1} },
5794 .block_erase = spi_block_erase_60,
5795 }, {
5796 .eraseblocks = { {4 * 1024 * 1024, 1} },
5797 .block_erase = spi_block_erase_c7,
5798 },
5799 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005800 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005801 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005802 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005803 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005804 },
5805
5806 {
5807 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005808 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005809 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005810 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005811 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005812 .total_size = 8192,
5813 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00005814 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005815 .probe = probe_spi_rdid,
5816 .probe_timing = TIMING_ZERO,
5817 .block_erasers =
5818 {
5819 {
5820 .eraseblocks = { {4 * 1024, 2048} },
5821 .block_erase = spi_block_erase_20,
5822 }, {
5823 .eraseblocks = { {32 * 1024, 256} },
5824 .block_erase = spi_block_erase_52,
5825 }, {
5826 .eraseblocks = { {64 * 1024, 128} },
5827 .block_erase = spi_block_erase_d8,
5828 }, {
5829 .eraseblocks = { {8 * 1024 * 1024, 1} },
5830 .block_erase = spi_block_erase_60,
5831 }, {
5832 .eraseblocks = { {8 * 1024 * 1024, 1} },
5833 .block_erase = spi_block_erase_c7,
5834 },
5835 },
5836 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005837 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005838 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005839 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005840 },
5841
5842 {
5843 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005844 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005845 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005846 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005847 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005848 .total_size = 512,
5849 .page_size = 256,
5850 .tested = TEST_OK_PR,
5851 .probe = probe_spi_rems,
5852 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005853 .block_erasers =
5854 {
5855 {
5856 .eraseblocks = { {4 * 1024, 128} },
5857 .block_erase = spi_block_erase_20,
5858 }, {
5859 .eraseblocks = { {32 * 1024, 16} },
5860 .block_erase = spi_block_erase_52,
5861 }, {
5862 .eraseblocks = { {512 * 1024, 1} },
5863 .block_erase = spi_block_erase_60,
5864 },
5865 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005866 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005867 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005868 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005869 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005870 },
5871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005872 {
5873 .vendor = "SST",
5874 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005875 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005876 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005877 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005878 .total_size = 512,
5879 .page_size = 256,
5880 .tested = TEST_UNTESTED,
5881 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005882 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005883 .block_erasers =
5884 {
5885 {
5886 .eraseblocks = { {4 * 1024, 128} },
5887 .block_erase = spi_block_erase_20,
5888 }, {
5889 .eraseblocks = { {32 * 1024, 16} },
5890 .block_erase = spi_block_erase_52,
5891 }, {
5892 .eraseblocks = { {64 * 1024, 8} },
5893 .block_erase = spi_block_erase_d8,
5894 }, {
5895 .eraseblocks = { {512 * 1024, 1} },
5896 .block_erase = spi_block_erase_60,
5897 }, {
5898 .eraseblocks = { {512 * 1024, 1} },
5899 .block_erase = spi_block_erase_c7,
5900 },
5901 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005902 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005903 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00005904 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005905 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00005906 },
5907
5908 {
5909 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005910 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005911 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005912 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005913 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005914 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005915 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005916 .tested = TEST_OK_PR,
5917 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005918 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005919 .block_erasers =
5920 {
5921 {
5922 .eraseblocks = { {4 * 1024, 128} },
5923 .block_erase = spi_block_erase_20,
5924 }, {
5925 .eraseblocks = { {32 * 1024, 16} },
5926 .block_erase = spi_block_erase_52,
5927 }, {
5928 .eraseblocks = { {64 * 1024, 8} },
5929 .block_erase = spi_block_erase_d8,
5930 }, {
5931 .eraseblocks = { {512 * 1024, 1} },
5932 .block_erase = spi_block_erase_60,
5933 }, {
5934 .eraseblocks = { {512 * 1024, 1} },
5935 .block_erase = spi_block_erase_c7,
5936 },
5937 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005938 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005939 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00005940 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005941 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00005942 },
5943
5944 {
5945 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005946 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005947 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005948 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005949 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005950 .total_size = 1024,
5951 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00005952 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005953 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005954 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005955 .block_erasers =
5956 {
5957 {
5958 .eraseblocks = { {4 * 1024, 256} },
5959 .block_erase = spi_block_erase_20,
5960 }, {
5961 .eraseblocks = { {32 * 1024, 32} },
5962 .block_erase = spi_block_erase_52,
5963 }, {
5964 .eraseblocks = { {64 * 1024, 16} },
5965 .block_erase = spi_block_erase_d8,
5966 }, {
5967 .eraseblocks = { {1024 * 1024, 1} },
5968 .block_erase = spi_block_erase_60,
5969 }, {
5970 .eraseblocks = { {1024 * 1024, 1} },
5971 .block_erase = spi_block_erase_c7,
5972 },
5973 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005974 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005975 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005976 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005977 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005978 },
5979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005980 {
5981 .vendor = "SST",
5982 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005983 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005984 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005985 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005986 .total_size = 512,
5987 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005988 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005989 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005990 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005991 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005992 .block_erasers =
5993 {
5994 {
5995 .eraseblocks = { {128, 4096} },
5996 .block_erase = erase_sector_28sf040,
5997 }, {
5998 .eraseblocks = { {512 * 1024, 1} },
5999 .block_erase = erase_chip_28sf040,
6000 }
6001 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006002 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006003 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006004 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006005 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006006 },
6007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 {
6009 .vendor = "SST",
6010 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006011 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006012 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006013 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006014 .total_size = 128,
6015 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006016 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006017 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006018 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006019 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006020 .block_erasers =
6021 {
6022 {
6023 .eraseblocks = { {128 * 1024, 1} },
6024 .block_erase = erase_chip_block_jedec,
6025 }
6026 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006027 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006029 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006030 },
6031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006032 {
6033 .vendor = "SST",
6034 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006035 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006036 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006037 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006038 .total_size = 128,
6039 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006040 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006041 .tested = TEST_UNTESTED,
6042 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006043 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006044 .block_erasers =
6045 {
6046 {
6047 .eraseblocks = { {128 * 1024, 1} },
6048 .block_erase = erase_chip_block_jedec,
6049 }
6050 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006051 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006052 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006053 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006054 },
6055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006056 {
6057 .vendor = "SST",
6058 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006059 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006060 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006061 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006062 .total_size = 256,
6063 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006064 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006065 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006066 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006067 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006068 .block_erasers =
6069 {
6070 {
6071 .eraseblocks = { {256 * 1024, 1} },
6072 .block_erase = erase_chip_block_jedec,
6073 }
6074 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006075 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006076 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006077 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006078 },
6079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006080 {
6081 .vendor = "SST",
6082 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006083 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006084 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006085 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006086 .total_size = 256,
6087 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006088 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006089 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006090 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006091 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006092 .block_erasers =
6093 {
6094 {
6095 .eraseblocks = { {256 * 1024, 1} },
6096 .block_erase = erase_chip_block_jedec,
6097 }
6098 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006099 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006101 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006102 },
6103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006104 {
6105 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006106 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006107 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006108 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006109 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006110 .total_size = 64,
6111 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006112 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006113 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006114 .probe = probe_jedec,
6115 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006116 .block_erasers =
6117 {
6118 {
6119 .eraseblocks = { {4 * 1024, 16} },
6120 .block_erase = erase_sector_jedec,
6121 }, {
6122 .eraseblocks = { {64 * 1024, 1} },
6123 .block_erase = erase_chip_block_jedec,
6124 }
6125 },
Sean Nelson35727f72010-01-28 23:55:12 +00006126 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006127 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006128 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006129 },
6130
6131 {
6132 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006133 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006134 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006135 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006136 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006137 .total_size = 128,
6138 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006139 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006140 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006141 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006142 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006143 .block_erasers =
6144 {
6145 {
6146 .eraseblocks = { {4 * 1024, 32} },
6147 .block_erase = erase_sector_jedec,
6148 }, {
6149 .eraseblocks = { {128 * 1024, 1} },
6150 .block_erase = erase_chip_block_jedec,
6151 }
6152 },
Sean Nelson35727f72010-01-28 23:55:12 +00006153 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006155 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006156 },
6157
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 {
6159 .vendor = "SST",
6160 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006161 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006162 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006163 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006164 .total_size = 256,
6165 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006166 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006167 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006168 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006169 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006170 .block_erasers =
6171 {
6172 {
6173 .eraseblocks = { {4 * 1024, 64} },
6174 .block_erase = erase_sector_jedec,
6175 }, {
6176 .eraseblocks = { {256 * 1024, 1} },
6177 .block_erase = erase_chip_block_jedec,
6178 }
6179 },
Sean Nelson35727f72010-01-28 23:55:12 +00006180 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006181 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006182 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006183 },
6184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006185 {
6186 .vendor = "SST",
6187 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006188 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006189 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006190 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006191 .total_size = 512,
6192 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006193 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006195 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006196 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006197 .block_erasers =
6198 {
6199 {
6200 .eraseblocks = { {4 * 1024, 128} },
6201 .block_erase = erase_sector_jedec,
6202 }, {
6203 .eraseblocks = { {512 * 1024, 1} },
6204 .block_erase = erase_chip_block_jedec,
6205 }
6206 },
Sean Nelson35727f72010-01-28 23:55:12 +00006207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006210 },
6211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006212 {
6213 .vendor = "SST",
6214 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006215 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006216 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006217 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006218 .total_size = 64,
6219 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006220 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006221 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006222 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006223 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006224 .block_erasers =
6225 {
6226 {
6227 .eraseblocks = { {4 * 1024, 16} },
6228 .block_erase = erase_sector_jedec,
6229 }, {
6230 .eraseblocks = { {64 * 1024, 1} },
6231 .block_erase = erase_chip_block_jedec,
6232 }
6233 },
Sean Nelson35727f72010-01-28 23:55:12 +00006234 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006235 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006236 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006237 },
6238
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006239 {
6240 .vendor = "SST",
6241 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006242 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006243 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006244 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006245 .total_size = 128,
6246 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006247 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006248 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006249 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006250 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = { {4 * 1024, 32} },
6255 .block_erase = erase_sector_jedec,
6256 }, {
6257 .eraseblocks = { {128 * 1024, 1} },
6258 .block_erase = erase_chip_block_jedec,
6259 }
6260 },
Sean Nelson35727f72010-01-28 23:55:12 +00006261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006263 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006264 },
6265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006266 {
6267 .vendor = "SST",
6268 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006269 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006270 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006271 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006272 .total_size = 256,
6273 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006274 .feature_bits = FEATURE_EITHER_RESET,
6275 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006276 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006277 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006278 .block_erasers =
6279 {
6280 {
6281 .eraseblocks = { {4 * 1024, 64} },
6282 .block_erase = erase_sector_jedec,
6283 }, {
6284 .eraseblocks = { {256 * 1024, 1} },
6285 .block_erase = erase_chip_block_jedec,
6286 }
6287 },
Sean Nelson35727f72010-01-28 23:55:12 +00006288 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006290 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006291 },
6292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006293 {
6294 .vendor = "SST",
6295 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006298 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006299 .total_size = 512,
6300 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006301 .feature_bits = FEATURE_EITHER_RESET,
6302 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006303 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006304 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006305 .block_erasers =
6306 {
6307 {
6308 .eraseblocks = { {4 * 1024, 128} },
6309 .block_erase = erase_sector_jedec,
6310 }, {
6311 .eraseblocks = { {512 * 1024, 1} },
6312 .block_erase = erase_chip_block_jedec,
6313 }
6314 },
Sean Nelson35727f72010-01-28 23:55:12 +00006315 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006317 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006318 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006320 {
6321 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006322 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006323 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006324 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006325 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006326 .total_size = 1024,
6327 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006328 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006329 .tested = TEST_UNTESTED,
6330 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006331 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006332 .block_erasers =
6333 {
6334 {
6335 .eraseblocks = { {4 * 1024, 256} },
6336 .block_erase = erase_sector_jedec,
6337 }, {
6338 .eraseblocks = { {64 * 1024, 16} },
6339 .block_erase = erase_block_jedec,
6340 }, {
6341 .eraseblocks = { {1024 * 1024, 1} },
6342 .block_erase = erase_chip_block_jedec,
6343 }
6344 },
Sean Nelson35727f72010-01-28 23:55:12 +00006345 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006347 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006348 },
6349
6350 {
6351 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006352 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006353 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006354 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006355 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006356 .total_size = 256,
6357 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006358 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006359 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006360 .probe = probe_jedec,
6361 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006362 .block_erasers =
6363 {
6364 {
6365 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006366 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006367 }, {
6368 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006369 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006370 }, {
6371 .eraseblocks = { {256 * 1024, 1} },
6372 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6373 }
6374 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006375 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006376 .unlock = unlock_sst_fwhub,
6377 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006378 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006379 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006380 },
6381
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006382 {
6383 .vendor = "SST",
6384 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006385 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006386 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006387 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006388 .total_size = 384,
6389 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006390 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006391 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006392 .probe = probe_jedec,
6393 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006394 .block_erasers =
6395 {
6396 {
6397 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006398 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006399 }, {
6400 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006401 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006402 }, {
6403 .eraseblocks = { {384 * 1024, 1} },
6404 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6405 }
6406 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006407 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006408 .unlock = unlock_sst_fwhub,
6409 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006411 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006412 },
6413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006414 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006415 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6416 * and is only honored for 64k block erase, but not 4k sector erase.
6417 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006418 .vendor = "SST",
6419 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006420 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006421 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006422 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006423 .total_size = 512,
6424 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006425 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006426 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006427 .probe = probe_jedec,
6428 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006429 .block_erasers =
6430 {
6431 {
6432 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006433 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006434 }, {
6435 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006436 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006437 }, {
6438 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006439 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006440 },
6441 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006442 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006443 .unlock = unlock_sst_fwhub,
6444 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006446 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006447 },
6448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006449 {
6450 .vendor = "SST",
6451 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006452 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006454 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006455 .total_size = 512,
6456 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006457 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006459 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006460 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006461 .block_erasers =
6462 {
6463 {
6464 .eraseblocks = { {4 * 1024, 128} },
6465 .block_erase = erase_sector_49lfxxxc,
6466 }, {
6467 .eraseblocks = {
6468 {64 * 1024, 7},
6469 {32 * 1024, 1},
6470 {8 * 1024, 2},
6471 {16 * 1024, 1},
6472 },
Sean Nelson69e58112010-03-23 17:10:28 +00006473 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006474 }
6475 },
Sean Nelson69e58112010-03-23 17:10:28 +00006476 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006477 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006479 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006480 },
6481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006482 {
6483 .vendor = "SST",
6484 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006485 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006486 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006487 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006488 .total_size = 1024,
6489 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006490 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006491 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006492 .probe = probe_jedec,
6493 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006494 .block_erasers =
6495 {
6496 {
6497 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006498 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006499 }, {
6500 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006501 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006502 }, {
6503 .eraseblocks = { {1024 * 1024, 1} },
6504 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6505 }
6506 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006507 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006508 .unlock = unlock_sst_fwhub,
6509 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006511 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006512 },
6513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006514 {
6515 .vendor = "SST",
6516 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006517 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006518 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006519 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006520 .total_size = 1024,
6521 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006522 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006523 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006524 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006525 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 256} },
6530 .block_erase = erase_sector_49lfxxxc,
6531 }, {
6532 .eraseblocks = {
6533 {64 * 1024, 15},
6534 {32 * 1024, 1},
6535 {8 * 1024, 2},
6536 {16 * 1024, 1},
6537 },
Sean Nelson69e58112010-03-23 17:10:28 +00006538 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006539 }
6540 },
Sean Nelson69e58112010-03-23 17:10:28 +00006541 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006542 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006544 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006545 },
6546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006547 {
6548 .vendor = "SST",
6549 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006550 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006551 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006552 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006553 .total_size = 2048,
6554 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006555 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006556 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006557 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006558 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006559 .block_erasers =
6560 {
6561 {
6562 .eraseblocks = { {4 * 1024, 512} },
6563 .block_erase = erase_sector_49lfxxxc,
6564 }, {
6565 .eraseblocks = {
6566 {64 * 1024, 31},
6567 {32 * 1024, 1},
6568 {8 * 1024, 2},
6569 {16 * 1024, 1},
6570 },
Sean Nelson69e58112010-03-23 17:10:28 +00006571 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006572 }
6573 },
Sean Nelson69e58112010-03-23 17:10:28 +00006574 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006575 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006577 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006578 },
6579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006580 {
6581 .vendor = "SST",
6582 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006583 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006584 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006585 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006586 .total_size = 256,
6587 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006588 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006589 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006590 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006591 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006592 .block_erasers =
6593 {
6594 {
6595 .eraseblocks = { {4 * 1024, 64} },
6596 .block_erase = erase_sector_jedec,
6597 }, {
6598 .eraseblocks = { {16 * 1024, 16} },
6599 .block_erase = erase_block_jedec,
6600 }, {
6601 .eraseblocks = { {256 * 1024, 1} },
6602 .block_erase = NULL,
6603 }
6604 },
Sean Nelson35727f72010-01-28 23:55:12 +00006605 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006606 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006607 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006608 },
6609
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006610 {
6611 .vendor = "SST",
6612 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006613 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006614 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006615 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006616 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006617 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006618 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006619 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006620 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006621 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006622 .block_erasers =
6623 {
6624 {
6625 .eraseblocks = { {4 * 1024, 64} },
6626 .block_erase = erase_sector_jedec,
6627 }, {
6628 .eraseblocks = { {16 * 1024, 16} },
6629 .block_erase = erase_block_jedec,
6630 }, {
6631 .eraseblocks = { {256 * 1024, 1} },
6632 .block_erase = NULL,
6633 }
6634 },
Sean Nelson35727f72010-01-28 23:55:12 +00006635 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006637 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006638 },
6639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006640 {
6641 .vendor = "SST",
6642 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006643 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006644 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006645 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006646 .total_size = 512,
6647 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006648 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006649 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006650 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006651 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006652 .block_erasers =
6653 {
6654 {
6655 .eraseblocks = { {4 * 1024, 128} },
6656 .block_erase = erase_sector_jedec,
6657 }, {
6658 .eraseblocks = { {64 * 1024, 8} },
6659 .block_erase = erase_block_jedec,
6660 }, {
6661 .eraseblocks = { {512 * 1024, 1} },
6662 .block_erase = NULL,
6663 }
6664 },
Sean Nelson35727f72010-01-28 23:55:12 +00006665 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006667 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006668 },
6669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006670 {
6671 .vendor = "SST",
6672 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006673 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006674 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006675 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006676 .total_size = 512,
6677 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006678 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006679 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006680 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006681 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006682 .block_erasers =
6683 {
6684 {
6685 .eraseblocks = { {4 * 1024, 128} },
6686 .block_erase = erase_sector_jedec,
6687 }, {
6688 .eraseblocks = { {64 * 1024, 8} },
6689 .block_erase = erase_block_jedec,
6690 }, {
6691 .eraseblocks = { {512 * 1024, 1} },
6692 .block_erase = NULL,
6693 }
6694 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006695 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006696 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006698 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006699 },
6700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006701 {
6702 .vendor = "SST",
6703 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006704 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006705 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006706 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006707 .total_size = 1024,
6708 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006709 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00006710 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006711 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006712 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006713 .block_erasers =
6714 {
6715 {
6716 .eraseblocks = { {4 * 1024, 256} },
6717 .block_erase = erase_sector_jedec,
6718 }, {
6719 .eraseblocks = { {64 * 1024, 16} },
6720 .block_erase = erase_block_jedec,
6721 }, {
6722 .eraseblocks = { {1024 * 1024, 1} },
6723 .block_erase = NULL,
6724 }
6725 },
Sean Nelson35727f72010-01-28 23:55:12 +00006726 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006728 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006729 },
6730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006731 {
6732 .vendor = "SST",
6733 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006734 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006735 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006736 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006737 .total_size = 2048,
6738 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006739 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006740 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006741 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006742 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006743 .block_erasers =
6744 {
6745 {
6746 .eraseblocks = { {4 * 1024, 512} },
6747 .block_erase = erase_sector_49lfxxxc,
6748 }, {
6749 .eraseblocks = {
6750 {64 * 1024, 31},
6751 {32 * 1024, 1},
6752 {8 * 1024, 2},
6753 {16 * 1024, 1},
6754 },
Sean Nelson69e58112010-03-23 17:10:28 +00006755 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006756 }
6757 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006758 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006759 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006760 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006761 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006762 },
6763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006764 {
6765 .vendor = "ST",
6766 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006768 .manufacture_id = ST_ID,
6769 .model_id = ST_M25P05A,
6770 .total_size = 64,
6771 .page_size = 256,
6772 .tested = TEST_UNTESTED,
6773 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006774 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006775 .block_erasers =
6776 {
6777 {
6778 .eraseblocks = { {32 * 1024, 2} },
6779 .block_erase = spi_block_erase_d8,
6780 }, {
6781 .eraseblocks = { {64 * 1024, 1} },
6782 .block_erase = spi_block_erase_c7,
6783 }
6784 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006786 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006788 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006789 },
6790
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006791 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6792 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006793 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006794 * only is successful if RDID does not work.
6795 */
6796 {
6797 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006798 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006799 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006800 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006801 .model_id = ST_M25P05_RES,
6802 .total_size = 64,
6803 .page_size = 256,
6804 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006805 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006806 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006807 .block_erasers =
6808 {
6809 {
6810 .eraseblocks = { {32 * 1024, 2} },
6811 .block_erase = spi_block_erase_d8,
6812 }, {
6813 .eraseblocks = { {64 * 1024, 1} },
6814 .block_erase = spi_block_erase_c7,
6815 }
6816 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006817 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006818 .write = spi_chip_write_1, /* 128 */
6819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006820 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006821 },
6822
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006823 {
6824 .vendor = "ST",
6825 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006826 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006827 .manufacture_id = ST_ID,
6828 .model_id = ST_M25P10A,
6829 .total_size = 128,
6830 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006831 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006832 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006833 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006834 .block_erasers =
6835 {
6836 {
6837 .eraseblocks = { {32 * 1024, 4} },
6838 .block_erase = spi_block_erase_d8,
6839 }, {
6840 .eraseblocks = { {128 * 1024, 1} },
6841 .block_erase = spi_block_erase_c7,
6842 }
6843 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006844 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006845 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006848 },
6849
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006850 /* The ST M25P10 has the same problem as the M25P05. */
6851 {
6852 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006853 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006854 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006855 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006856 .model_id = ST_M25P10_RES,
6857 .total_size = 128,
6858 .page_size = 256,
6859 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006860 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006861 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006862 .block_erasers =
6863 {
6864 {
6865 .eraseblocks = { {32 * 1024, 4} },
6866 .block_erase = spi_block_erase_d8,
6867 }, {
6868 .eraseblocks = { {128 * 1024, 1} },
6869 .block_erase = spi_block_erase_c7,
6870 }
6871 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006872 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006873 .write = spi_chip_write_1, /* 128 */
6874 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006875 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006876 },
6877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006878 {
6879 .vendor = "ST",
6880 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006881 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006882 .manufacture_id = ST_ID,
6883 .model_id = ST_M25P20,
6884 .total_size = 256,
6885 .page_size = 256,
6886 .tested = TEST_UNTESTED,
6887 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006888 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006889 .block_erasers =
6890 {
6891 {
6892 .eraseblocks = { {64 * 1024, 4} },
6893 .block_erase = spi_block_erase_d8,
6894 }, {
6895 .eraseblocks = { {256 * 1024, 1} },
6896 .block_erase = spi_block_erase_c7,
6897 }
6898 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006899 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006900 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006901 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006902 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006903 },
6904
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006905 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006906 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006907 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006908 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006909 .manufacture_id = ST_ID,
6910 .model_id = ST_M25P40,
6911 .total_size = 512,
6912 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006913 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006914 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006915 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006916 .block_erasers =
6917 {
6918 {
6919 .eraseblocks = { {64 * 1024, 8} },
6920 .block_erase = spi_block_erase_d8,
6921 }, {
6922 .eraseblocks = { {512 * 1024, 1} },
6923 .block_erase = spi_block_erase_c7,
6924 }
6925 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006926 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006927 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006928 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006929 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006930 },
6931
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006932 {
6933 .vendor = "ST",
6934 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006935 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006936 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006937 .model_id = ST_M25P40_RES,
6938 .total_size = 512,
6939 .page_size = 256,
6940 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006941 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006942 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006943 .block_erasers =
6944 {
6945 {
6946 .eraseblocks = { {64 * 1024, 8} },
6947 .block_erase = spi_block_erase_d8,
6948 }, {
6949 .eraseblocks = { {512 * 1024, 1} },
6950 .block_erase = spi_block_erase_c7,
6951 }
6952 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006953 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006954 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006955 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006956 },
6957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006958 {
6959 .vendor = "ST",
6960 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006961 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006962 .manufacture_id = ST_ID,
6963 .model_id = ST_M25P80,
6964 .total_size = 1024,
6965 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006966 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006967 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006968 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006969 .block_erasers =
6970 {
6971 {
6972 .eraseblocks = { {64 * 1024, 16} },
6973 .block_erase = spi_block_erase_d8,
6974 }, {
6975 .eraseblocks = { {1024 * 1024, 1} },
6976 .block_erase = spi_block_erase_c7,
6977 }
6978 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006979 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006980 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006981 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006982 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006983 },
6984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006985 {
6986 .vendor = "ST",
6987 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006988 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006989 .manufacture_id = ST_ID,
6990 .model_id = ST_M25P16,
6991 .total_size = 2048,
6992 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006993 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006994 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006995 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006996 .block_erasers =
6997 {
6998 {
6999 .eraseblocks = { {64 * 1024, 32} },
7000 .block_erase = spi_block_erase_d8,
7001 }, {
7002 .eraseblocks = { {2 * 1024 * 1024, 1} },
7003 .block_erase = spi_block_erase_c7,
7004 }
7005 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007006 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007007 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007008 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007009 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007010 },
7011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007012 {
7013 .vendor = "ST",
7014 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007015 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007016 .manufacture_id = ST_ID,
7017 .model_id = ST_M25P32,
7018 .total_size = 4096,
7019 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007020 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007021 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007022 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007023 .block_erasers =
7024 {
7025 {
7026 .eraseblocks = { {64 * 1024, 64} },
7027 .block_erase = spi_block_erase_d8,
7028 }, {
7029 .eraseblocks = { {4 * 1024 * 1024, 1} },
7030 .block_erase = spi_block_erase_c7,
7031 }
7032 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007033 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007034 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007035 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007036 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007037 },
7038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 {
7040 .vendor = "ST",
7041 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007042 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007043 .manufacture_id = ST_ID,
7044 .model_id = ST_M25P64,
7045 .total_size = 8192,
7046 .page_size = 256,
7047 .tested = TEST_UNTESTED,
7048 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007049 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007050 .block_erasers =
7051 {
7052 {
7053 .eraseblocks = { {64 * 1024, 128} },
7054 .block_erase = spi_block_erase_d8,
7055 }, {
7056 .eraseblocks = { {8 * 1024 * 1024, 1} },
7057 .block_erase = spi_block_erase_c7,
7058 }
7059 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007060 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007061 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007062 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007063 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007064 },
7065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007066 {
7067 .vendor = "ST",
7068 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007069 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007070 .manufacture_id = ST_ID,
7071 .model_id = ST_M25P128,
7072 .total_size = 16384,
7073 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007074 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007075 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007076 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007077 .block_erasers =
7078 {
7079 {
7080 .eraseblocks = { {256 * 1024, 64} },
7081 .block_erase = spi_block_erase_d8,
7082 }, {
7083 .eraseblocks = { {16 * 1024 * 1024, 1} },
7084 .block_erase = spi_block_erase_c7,
7085 }
7086 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007087 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007088 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007089 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007090 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007091 },
7092
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007093 {
7094 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007095 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007096 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007097 .manufacture_id = ST_ID,
7098 .model_id = ST_M25PX16,
7099 .total_size = 2048,
7100 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007101 /* OTP: 64B total; read 0x4B; write 0x42 */
7102 .feature_bits = FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007103 .tested = TEST_OK_PREW,
7104 .probe = probe_spi_rdid,
7105 .probe_timing = TIMING_ZERO,
7106 .block_erasers =
7107 {
7108 {
7109 .eraseblocks = { { 4 * 1024, 512 } },
7110 .block_erase = spi_block_erase_20,
7111 }, {
7112 .eraseblocks = { {64 * 1024, 32} },
7113 .block_erase = spi_block_erase_d8,
7114 }, {
7115 .eraseblocks = { {2 * 1024 * 1024, 1} },
7116 .block_erase = spi_block_erase_c7,
7117 }
7118 },
7119 .unlock = spi_disable_blockprotect,
7120 .write = spi_chip_write_256,
7121 .read = spi_chip_read,
7122 },
7123
7124 {
7125 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007126 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007127 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007128 .manufacture_id = ST_ID,
7129 .model_id = ST_M25PX32,
7130 .total_size = 4096,
7131 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007132 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007133 .probe = probe_spi_rdid,
7134 .probe_timing = TIMING_ZERO,
7135 .block_erasers =
7136 {
7137 {
7138 .eraseblocks = { { 4 * 1024, 1024 } },
7139 .block_erase = spi_block_erase_20,
7140 }, {
7141 .eraseblocks = { {64 * 1024, 64} },
7142 .block_erase = spi_block_erase_d8,
7143 }, {
7144 .eraseblocks = { {4 * 1024 * 1024, 1} },
7145 .block_erase = spi_block_erase_c7,
7146 }
7147 },
7148 .unlock = spi_disable_blockprotect,
7149 .write = spi_chip_write_256,
7150 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007151 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007152 },
7153
7154 {
7155 .vendor = "ST",
7156 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007157 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007158 .manufacture_id = ST_ID,
7159 .model_id = ST_M25PX64,
7160 .total_size = 8192,
7161 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007162 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007163 .probe = probe_spi_rdid,
7164 .probe_timing = TIMING_ZERO,
7165 .block_erasers =
7166 {
7167 {
7168 .eraseblocks = { { 4 * 1024, 2048 } },
7169 .block_erase = spi_block_erase_20,
7170 }, {
7171 .eraseblocks = { {64 * 1024, 128} },
7172 .block_erase = spi_block_erase_d8,
7173 }, {
7174 .eraseblocks = { {8 * 1024 * 1024, 1} },
7175 .block_erase = spi_block_erase_c7,
7176 }
7177 },
7178 .unlock = spi_disable_blockprotect,
7179 .write = spi_chip_write_256,
7180 .read = spi_chip_read,
7181 },
7182
7183 {
7184 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007185 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007186 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007187 .manufacture_id = ST_ID,
7188 .model_id = ST_M29F002B,
7189 .total_size = 256,
7190 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007191 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007192 .tested = TEST_UNTESTED,
7193 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007194 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007195 .block_erasers =
7196 {
7197 {
7198 .eraseblocks = {
7199 {16 * 1024, 1},
7200 {8 * 1024, 2},
7201 {32 * 1024, 1},
7202 {64 * 1024, 3},
7203 },
7204 .block_erase = erase_sector_jedec,
7205 }, {
7206 .eraseblocks = { {256 * 1024, 1} },
7207 .block_erase = erase_chip_block_jedec,
7208 }
7209 },
Sean Nelson35727f72010-01-28 23:55:12 +00007210 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007211 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007212 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007213 },
7214
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007215 {
7216 .vendor = "ST",
7217 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007218 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007219 .manufacture_id = ST_ID,
7220 .model_id = ST_M29F002T,
7221 .total_size = 256,
7222 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007223 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7224 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007225 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007226 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007227 .block_erasers =
7228 {
7229 {
7230 .eraseblocks = {
7231 {64 * 1024, 3},
7232 {32 * 1024, 1},
7233 {8 * 1024, 2},
7234 {16 * 1024, 1},
7235 },
7236 .block_erase = erase_sector_jedec,
7237 }, {
7238 .eraseblocks = { {256 * 1024, 1} },
7239 .block_erase = erase_chip_block_jedec,
7240 }
7241 },
Sean Nelson35727f72010-01-28 23:55:12 +00007242 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007243 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007244 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007245 },
7246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007247 {
7248 .vendor = "ST",
7249 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007250 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007251 .manufacture_id = ST_ID,
7252 .model_id = ST_M29F040B,
7253 .total_size = 512,
7254 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007255 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7256 .tested = TEST_UNTESTED,
7257 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007258 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007259 .block_erasers =
7260 {
7261 {
7262 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007263 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007264 }, {
7265 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007266 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007267 }
7268 },
Sean Nelson35727f72010-01-28 23:55:12 +00007269 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007270 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007271 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007272 },
7273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007274 {
Sean Nelson35727f72010-01-28 23:55:12 +00007275 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007276 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007277 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007278 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007279 .manufacture_id = ST_ID,
7280 .model_id = ST_M29F400BB,
7281 .total_size = 512,
7282 .page_size = 64 * 1024,
7283 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007284 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007285 .probe = probe_m29f400bt,
7286 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7287 .block_erasers =
7288 {
7289 {
7290 .eraseblocks = {
7291 {16 * 1024, 1},
7292 {8 * 1024, 2},
7293 {32 * 1024, 1},
7294 {64 * 1024, 7},
7295 },
7296 .block_erase = block_erase_m29f400bt,
7297 }, {
7298 .eraseblocks = { {512 * 1024, 1} },
7299 .block_erase = block_erase_chip_m29f400bt,
7300 }
7301 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007302 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007304 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007305 },
7306 {
7307 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7308 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007309 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007310 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007311 .manufacture_id = ST_ID,
7312 .model_id = ST_M29F400BT,
7313 .total_size = 512,
7314 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007315 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007316 .tested = TEST_UNTESTED,
7317 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007318 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007319 .block_erasers =
7320 {
7321 {
7322 .eraseblocks = {
7323 {64 * 1024, 7},
7324 {32 * 1024, 1},
7325 {8 * 1024, 2},
7326 {16 * 1024, 1},
7327 },
7328 .block_erase = block_erase_m29f400bt,
7329 }, {
7330 .eraseblocks = { {512 * 1024, 1} },
7331 .block_erase = block_erase_chip_m29f400bt,
7332 }
7333 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007334 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007335 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007336 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007337 },
7338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007339 {
7340 .vendor = "ST",
7341 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007342 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007343 .manufacture_id = ST_ID,
7344 .model_id = ST_M29W010B,
7345 .total_size = 128,
7346 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007347 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007348 .tested = TEST_UNTESTED,
7349 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007350 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007351 .block_erasers =
7352 {
7353 {
7354 .eraseblocks = { {16 * 1024, 8}, },
7355 .block_erase = erase_sector_jedec,
7356 }, {
7357 .eraseblocks = { {128 * 1024, 1} },
7358 .block_erase = erase_chip_block_jedec,
7359 }
7360 },
Sean Nelson35727f72010-01-28 23:55:12 +00007361 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007362 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007363 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007364 },
7365
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007366 {
7367 .vendor = "ST",
7368 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007369 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007370 .manufacture_id = ST_ID,
7371 .model_id = ST_M29W040B,
7372 .total_size = 512,
7373 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007375 .tested = TEST_UNTESTED,
7376 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007377 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007378 .block_erasers =
7379 {
7380 {
7381 .eraseblocks = { {64 * 1024, 8}, },
7382 .block_erase = erase_sector_jedec,
7383 }, {
7384 .eraseblocks = { {512 * 1024, 1} },
7385 .block_erase = erase_chip_block_jedec,
7386 }
7387 },
Sean Nelson35727f72010-01-28 23:55:12 +00007388 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007389 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007390 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007391 },
7392
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007393 {
7394 .vendor = "ST",
7395 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007396 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007397 .manufacture_id = ST_ID,
7398 .model_id = ST_M29W512B,
7399 .total_size = 64,
7400 .page_size = 64 * 1024,
7401 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007402 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007403 .probe = probe_jedec,
7404 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007405 .block_erasers =
7406 {
7407 {
7408 .eraseblocks = { {64 * 1024, 1} },
7409 .block_erase = erase_chip_block_jedec,
7410 }
7411 },
7412 .write = write_jedec_1,
7413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007414 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007415 },
7416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007417 {
7418 .vendor = "ST",
7419 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007420 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007421 .manufacture_id = ST_ID,
7422 .model_id = ST_M50FLW040A,
7423 .total_size = 512,
7424 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007425 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007426 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007427 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007428 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007429 .block_erasers =
7430 {
7431 {
Sean Nelson329bde72010-01-19 16:39:19 +00007432 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007433 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007434 {64 * 1024, 5}, /* block */
7435 {4 * 1024, 16}, /* sector */
7436 {4 * 1024, 16}, /* sector */
7437 },
7438 .block_erase = NULL,
7439 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007440 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007441 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007442 }
7443 },
Sean Nelson28accc22010-03-19 18:47:06 +00007444 .unlock = unlock_stm50flw0x0x,
7445 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007447 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007448 },
7449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007450 {
7451 .vendor = "ST",
7452 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007453 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007454 .manufacture_id = ST_ID,
7455 .model_id = ST_M50FLW040B,
7456 .total_size = 512,
7457 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007458 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007459 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007460 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007461 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007462 .block_erasers =
7463 {
7464 {
Sean Nelson329bde72010-01-19 16:39:19 +00007465 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007466 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007467 {4 * 1024, 16}, /* sector */
7468 {64 * 1024, 5}, /* block */
7469 {4 * 1024, 16}, /* sector */
7470 },
7471 .block_erase = NULL,
7472 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007473 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007474 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007475 }
7476 },
Sean Nelson28accc22010-03-19 18:47:06 +00007477 .unlock = unlock_stm50flw0x0x,
7478 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007480 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007481 },
7482
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007483 {
7484 .vendor = "ST",
7485 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007486 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007487 .manufacture_id = ST_ID,
7488 .model_id = ST_M50FLW080A,
7489 .total_size = 1024,
7490 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007491 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007492 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007493 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007494 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007495 .block_erasers =
7496 {
7497 {
Sean Nelson329bde72010-01-19 16:39:19 +00007498 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007499 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007500 {64 * 1024, 13}, /* block */
7501 {4 * 1024, 16}, /* sector */
7502 {4 * 1024, 16}, /* sector */
7503 },
7504 .block_erase = NULL,
7505 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007506 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007507 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007508 }
7509 },
Sean Nelson28accc22010-03-19 18:47:06 +00007510 .unlock = unlock_stm50flw0x0x,
7511 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007513 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007514 },
7515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007516 {
7517 .vendor = "ST",
7518 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007519 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007520 .manufacture_id = ST_ID,
7521 .model_id = ST_M50FLW080B,
7522 .total_size = 1024,
7523 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007524 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007525 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007526 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007527 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007528 .block_erasers =
7529 {
7530 {
Sean Nelson329bde72010-01-19 16:39:19 +00007531 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007532 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007533 {4 * 1024, 16}, /* sector */
7534 {64 * 1024, 13}, /* block */
7535 {4 * 1024, 16}, /* sector */
7536 },
7537 .block_erase = NULL,
7538 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007539 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007540 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007541 }
7542 },
Sean Nelson28accc22010-03-19 18:47:06 +00007543 .unlock = unlock_stm50flw0x0x,
7544 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007545 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007546 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007547 },
7548
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007549 {
7550 .vendor = "ST",
7551 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007552 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007553 .manufacture_id = ST_ID,
7554 .model_id = ST_M50FW002,
7555 .total_size = 256,
7556 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007557 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007558 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007559 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007560 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007561 .block_erasers =
7562 {
7563 {
7564 .eraseblocks = {
7565 {64 * 1024, 3},
7566 {32 * 1024, 1},
7567 {8 * 1024, 2},
7568 {16 * 1024, 1},
7569 },
Sean Nelson28accc22010-03-19 18:47:06 +00007570 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007571 }
7572 },
Sean Nelson28accc22010-03-19 18:47:06 +00007573 .unlock = unlock_stm50flw0x0x,
7574 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007576 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007577 },
7578
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007579 {
7580 .vendor = "ST",
7581 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007582 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007583 .manufacture_id = ST_ID,
7584 .model_id = ST_M50FW016,
7585 .total_size = 2048,
7586 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007587 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007588 .tested = TEST_UNTESTED,
7589 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007590 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007591 .block_erasers =
7592 {
7593 {
7594 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007595 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007596 }
7597 },
Sean Nelson28accc22010-03-19 18:47:06 +00007598 .unlock = unlock_stm50flw0x0x,
7599 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007601 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007602 },
7603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007604 {
7605 .vendor = "ST",
7606 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007607 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007608 .manufacture_id = ST_ID,
7609 .model_id = ST_M50FW040,
7610 .total_size = 512,
7611 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007612 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007613 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007614 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007615 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007616 .block_erasers =
7617 {
7618 {
7619 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007620 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007621 }
7622 },
Sean Nelson28accc22010-03-19 18:47:06 +00007623 .unlock = unlock_stm50flw0x0x,
7624 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007626 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007627 },
7628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007629 {
7630 .vendor = "ST",
7631 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007632 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007633 .manufacture_id = ST_ID,
7634 .model_id = ST_M50FW080,
7635 .total_size = 1024,
7636 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007637 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007638 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007639 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007640 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007641 .block_erasers =
7642 {
7643 {
7644 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007645 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007646 }
7647 },
Sean Nelson28accc22010-03-19 18:47:06 +00007648 .unlock = unlock_stm50flw0x0x,
7649 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007650 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007651 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007652 },
7653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007654 {
7655 .vendor = "ST",
7656 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007657 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007658 .manufacture_id = ST_ID,
7659 .model_id = ST_M50LPW116,
7660 .total_size = 2048,
7661 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007662 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007663 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007664 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007665 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007666 .block_erasers =
7667 {
7668 {
7669 .eraseblocks = {
7670 {4 * 1024, 16},
7671 {64 * 1024, 30},
7672 {32 * 1024, 1},
7673 {8 * 1024, 2},
7674 {16 * 1024, 1},
7675 },
Sean Nelson28accc22010-03-19 18:47:06 +00007676 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007677 }
7678 },
Sean Nelson28accc22010-03-19 18:47:06 +00007679 .unlock = unlock_stm50flw0x0x,
7680 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007682 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007683 },
7684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007685 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007686 .vendor = "SyncMOS/MoselVitelic",
7687 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007688 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007689 .manufacture_id = SYNCMOS_MVC_ID,
7690 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007691 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007692 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007693 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007694 .tested = TEST_UNTESTED,
7695 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007696 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007697 .block_erasers =
7698 {
7699 {
7700 .eraseblocks = { {512, 256} },
7701 .block_erase = erase_sector_jedec,
7702 }, {
7703 .eraseblocks = { {128 * 1024, 1} },
7704 .block_erase = erase_chip_block_jedec,
7705 },
7706 },
Sean Nelson35727f72010-01-28 23:55:12 +00007707 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007709 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007710 },
7711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007712 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007713 .vendor = "SyncMOS/MoselVitelic",
7714 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007715 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007716 .manufacture_id = SYNCMOS_MVC_ID,
7717 .model_id = SM_MVC_29C51001T,
7718 .total_size = 128,
7719 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007720 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007721 .tested = TEST_UNTESTED,
7722 .probe = probe_jedec,
7723 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7724 .block_erasers =
7725 {
7726 {
7727 .eraseblocks = { {512, 256} },
7728 .block_erase = erase_sector_jedec,
7729 }, {
7730 .eraseblocks = { {128 * 1024, 1} },
7731 .block_erase = erase_chip_block_jedec,
7732 },
7733 },
7734 .write = write_jedec_1,
7735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007736 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007737 },
7738
7739 {
7740 .vendor = "SyncMOS/MoselVitelic",
7741 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007742 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007743 .manufacture_id = SYNCMOS_MVC_ID,
7744 .model_id = SM_MVC_29C51002B,
7745 .total_size = 256,
7746 .page_size = 512,
7747 .feature_bits = FEATURE_EITHER_RESET,
7748 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007749 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007751 .block_erasers =
7752 {
7753 {
7754 .eraseblocks = { {512, 512} },
7755 .block_erase = erase_sector_jedec,
7756 }, {
7757 .eraseblocks = { {256 * 1024, 1} },
7758 .block_erase = erase_chip_block_jedec,
7759 },
7760 },
Sean Nelson35727f72010-01-28 23:55:12 +00007761 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007762 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007763 },
7764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007765 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007766 .vendor = "SyncMOS/MoselVitelic",
7767 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007768 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007769 .manufacture_id = SYNCMOS_MVC_ID,
7770 .model_id = SM_MVC_29C51002T,
7771 .total_size = 256,
7772 .page_size = 512,
7773 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007774 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007775 .probe = probe_jedec,
7776 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7777 .block_erasers =
7778 {
7779 {
7780 .eraseblocks = { {512, 512} },
7781 .block_erase = erase_sector_jedec,
7782 }, {
7783 .eraseblocks = { {256 * 1024, 1} },
7784 .block_erase = erase_chip_block_jedec,
7785 },
7786 },
7787 .write = write_jedec_1,
7788 .read = read_memmapped,
7789 },
7790
7791 {
7792 .vendor = "SyncMOS/MoselVitelic",
7793 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007794 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007795 .manufacture_id = SYNCMOS_MVC_ID,
7796 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007797 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007798 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007799 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007800 .tested = TEST_UNTESTED,
7801 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007802 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007803 .block_erasers =
7804 {
7805 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007806 .eraseblocks = { {1024, 512} },
7807 .block_erase = erase_sector_jedec,
7808 }, {
7809 .eraseblocks = { {512 * 1024, 1} },
7810 .block_erase = erase_chip_block_jedec,
7811 },
7812 },
7813 .write = write_jedec_1,
7814 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007815 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007816 },
7817
7818 {
7819 .vendor = "SyncMOS/MoselVitelic",
7820 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007821 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007822 .manufacture_id = SYNCMOS_MVC_ID,
7823 .model_id = SM_MVC_29C51004T,
7824 .total_size = 512,
7825 .page_size = 1024,
7826 .feature_bits = FEATURE_EITHER_RESET,
7827 .tested = TEST_UNTESTED,
7828 .probe = probe_jedec,
7829 .probe_timing = TIMING_ZERO,
7830 .block_erasers =
7831 {
7832 {
7833 .eraseblocks = { {1024, 512} },
7834 .block_erase = erase_sector_jedec,
7835 }, {
7836 .eraseblocks = { {512 * 1024, 1} },
7837 .block_erase = erase_chip_block_jedec,
7838 },
7839 },
7840 .write = write_jedec_1,
7841 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007842 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007843 },
7844
7845 {
7846 .vendor = "SyncMOS/MoselVitelic",
7847 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007848 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007849 .manufacture_id = SYNCMOS_MVC_ID,
7850 .model_id = SM_MVC_29C31004B,
7851 .total_size = 512,
7852 .page_size = 1024,
7853 .feature_bits = FEATURE_EITHER_RESET,
7854 .tested = TEST_UNTESTED,
7855 .probe = probe_jedec,
7856 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7857 .block_erasers =
7858 {
7859 {
7860 .eraseblocks = { {1024, 512} },
7861 .block_erase = erase_sector_jedec,
7862 }, {
7863 .eraseblocks = { {512 * 1024, 1} },
7864 .block_erase = erase_chip_block_jedec,
7865 },
7866 },
7867 .write = write_jedec_1,
7868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007869 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007870 },
7871
7872 {
7873 .vendor = "SyncMOS/MoselVitelic",
7874 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007875 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007876 .manufacture_id = SYNCMOS_MVC_ID,
7877 .model_id = SM_MVC_29C31004T,
7878 .total_size = 512,
7879 .page_size = 1024,
7880 .feature_bits = FEATURE_EITHER_RESET,
7881 .tested = TEST_UNTESTED,
7882 .probe = probe_jedec,
7883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7884 .block_erasers =
7885 {
7886 {
7887 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007888 .block_erase = erase_sector_jedec,
7889 }, {
7890 .eraseblocks = { {512 * 1024, 1} },
7891 .block_erase = erase_chip_block_jedec,
7892 },
7893 },
Sean Nelson35727f72010-01-28 23:55:12 +00007894 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007896 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007897 },
7898
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007899 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007900 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007901 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007902 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007903 .manufacture_id = TI_OLD_ID,
7904 .model_id = TI_TMS29F002RB,
7905 .total_size = 256,
7906 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007907 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007908 .tested = TEST_UNTESTED,
7909 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007910 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007911 .block_erasers =
7912 {
7913 {
7914 .eraseblocks = {
7915 {16 * 1024, 1},
7916 {8 * 1024, 2},
7917 {32 * 1024, 1},
7918 {64 * 1024, 3},
7919 },
7920 .block_erase = erase_sector_jedec,
7921 }, {
7922 .eraseblocks = { {256 * 1024, 1} },
7923 .block_erase = erase_chip_block_jedec,
7924 },
7925 },
Sean Nelson35727f72010-01-28 23:55:12 +00007926 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007928 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007929 },
7930
7931 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007932 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007933 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007934 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007935 .manufacture_id = TI_OLD_ID,
7936 .model_id = TI_TMS29F002RT,
7937 .total_size = 256,
7938 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007939 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007940 .tested = TEST_UNTESTED,
7941 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007942 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007943 .block_erasers =
7944 {
7945 {
7946 .eraseblocks = {
7947 {64 * 1024, 3},
7948 {32 * 1024, 1},
7949 {8 * 1024, 2},
7950 {16 * 1024, 1},
7951 },
7952 .block_erase = erase_sector_jedec,
7953 }, {
7954 .eraseblocks = { {256 * 1024, 1} },
7955 .block_erase = erase_chip_block_jedec,
7956 },
7957 },
Sean Nelson35727f72010-01-28 23:55:12 +00007958 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007959 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007960 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007961 },
7962
7963 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007964 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007965 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007966 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007967 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007968 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007969 .total_size = 1024,
7970 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007971 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
7972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00007973 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007974 .probe = probe_spi_rdid,
7975 .probe_timing = TIMING_ZERO,
7976 .block_erasers =
7977 {
7978 {
7979 .eraseblocks = { {4 * 1024, 256} },
7980 .block_erase = spi_block_erase_20,
7981 }, {
7982 .eraseblocks = { {32 * 1024, 32} },
7983 .block_erase = spi_block_erase_52,
7984 }, {
7985 .eraseblocks = { {64 * 1024, 16} },
7986 .block_erase = spi_block_erase_d8,
7987 }, {
7988 .eraseblocks = { {1024 * 1024, 1} },
7989 .block_erase = spi_block_erase_60,
7990 }, {
7991 .eraseblocks = { {1024 * 1024, 1} },
7992 .block_erase = spi_block_erase_c7,
7993 }
7994 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007995 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007996 .write = spi_chip_write_256,
7997 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007998 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007999 },
8000
8001 {
8002 .vendor = "Winbond",
8003 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008004 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008005 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008006 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008007 .total_size = 2048,
8008 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008009 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008011 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008012 .probe = probe_spi_rdid,
8013 .probe_timing = TIMING_ZERO,
8014 .block_erasers =
8015 {
8016 {
8017 .eraseblocks = { {4 * 1024, 512} },
8018 .block_erase = spi_block_erase_20,
8019 }, {
8020 .eraseblocks = { {32 * 1024, 64} },
8021 .block_erase = spi_block_erase_52,
8022 }, {
8023 .eraseblocks = { {64 * 1024, 32} },
8024 .block_erase = spi_block_erase_d8,
8025 }, {
8026 .eraseblocks = { {2 * 1024 * 1024, 1} },
8027 .block_erase = spi_block_erase_60,
8028 }, {
8029 .eraseblocks = { {2 * 1024 * 1024, 1} },
8030 .block_erase = spi_block_erase_c7,
8031 }
8032 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008033 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008034 .write = spi_chip_write_256,
8035 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008036 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008037 },
8038
8039 {
8040 .vendor = "Winbond",
8041 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008042 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008043 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008044 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008045 .total_size = 4096,
8046 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008047 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008049 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008050 .probe = probe_spi_rdid,
8051 .probe_timing = TIMING_ZERO,
8052 .block_erasers =
8053 {
8054 {
8055 .eraseblocks = { {4 * 1024, 1024} },
8056 .block_erase = spi_block_erase_20,
8057 }, {
8058 .eraseblocks = { {32 * 1024, 128} },
8059 .block_erase = spi_block_erase_52,
8060 }, {
8061 .eraseblocks = { {64 * 1024, 64} },
8062 .block_erase = spi_block_erase_d8,
8063 }, {
8064 .eraseblocks = { {4 * 1024 * 1024, 1} },
8065 .block_erase = spi_block_erase_60,
8066 }, {
8067 .eraseblocks = { {4 * 1024 * 1024, 1} },
8068 .block_erase = spi_block_erase_c7,
8069 }
8070 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008071 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008072 .write = spi_chip_write_256,
8073 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008074 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008075 },
8076
8077 {
8078 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008079 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008080 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008081 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008082 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008083 .total_size = 8192,
8084 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008085 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008087 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008088 .probe = probe_spi_rdid,
8089 .probe_timing = TIMING_ZERO,
8090 .block_erasers =
8091 {
8092 {
8093 .eraseblocks = { {4 * 1024, 2048} },
8094 .block_erase = spi_block_erase_20,
8095 }, {
8096 .eraseblocks = { {32 * 1024, 256} },
8097 .block_erase = spi_block_erase_52,
8098 }, {
8099 .eraseblocks = { {64 * 1024, 128} },
8100 .block_erase = spi_block_erase_d8,
8101 }, {
8102 .eraseblocks = { {8 * 1024 * 1024, 1} },
8103 .block_erase = spi_block_erase_60,
8104 }, {
8105 .eraseblocks = { {8 * 1024 * 1024, 1} },
8106 .block_erase = spi_block_erase_c7,
8107 }
8108 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008109 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008110 .write = spi_chip_write_256,
8111 .read = spi_chip_read,
8112 },
8113
8114 {
8115 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008116 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008117 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008118 .manufacture_id = WINBOND_NEX_ID,
8119 .model_id = WINBOND_NEX_W25Q128,
8120 .total_size = 16384,
8121 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008122 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8123 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008124 .tested = TEST_OK_PROBE,
8125 .probe = probe_spi_rdid,
8126 .probe_timing = TIMING_ZERO,
8127 .block_erasers =
8128 {
8129 {
8130 .eraseblocks = { {4 * 1024, 4096} },
8131 .block_erase = spi_block_erase_20,
8132 }, {
8133 .eraseblocks = { {32 * 1024, 512} },
8134 .block_erase = spi_block_erase_52,
8135 }, {
8136 .eraseblocks = { {64 * 1024, 256} },
8137 .block_erase = spi_block_erase_d8,
8138 }, {
8139 .eraseblocks = { {16 * 1024 * 1024, 1} },
8140 .block_erase = spi_block_erase_60,
8141 }, {
8142 .eraseblocks = { {16 * 1024 * 1024, 1} },
8143 .block_erase = spi_block_erase_c7,
8144 }
8145 },
8146 .unlock = spi_disable_blockprotect,
8147 .write = spi_chip_write_256,
8148 .read = spi_chip_read,
8149 },
8150
8151 {
8152 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008153 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008154 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008155 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008156 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008157 .total_size = 128,
8158 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008159 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008160 .tested = TEST_UNTESTED,
8161 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008162 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008163 .block_erasers =
8164 {
8165 {
8166 .eraseblocks = { {4 * 1024, 32} },
8167 .block_erase = spi_block_erase_20,
8168 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008169 .eraseblocks = { {64 * 1024, 2} },
8170 .block_erase = spi_block_erase_d8,
8171 }, {
8172 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008173 .block_erase = spi_block_erase_c7,
8174 }
8175 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008176 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008177 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008178 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008179 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008180 },
8181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008182 {
8183 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008184 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008185 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008186 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008187 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008188 .total_size = 256,
8189 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008190 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008191 .tested = TEST_UNTESTED,
8192 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008193 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008194 .block_erasers =
8195 {
8196 {
8197 .eraseblocks = { {4 * 1024, 64} },
8198 .block_erase = spi_block_erase_20,
8199 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008200 .eraseblocks = { {64 * 1024, 4} },
8201 .block_erase = spi_block_erase_d8,
8202 }, {
8203 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008204 .block_erase = spi_block_erase_c7,
8205 }
8206 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008207 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008208 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008209 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008210 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008211 },
8212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008213 {
8214 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008215 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008216 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008217 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008218 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008219 .total_size = 512,
8220 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008221 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008222 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008224 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008225 .block_erasers =
8226 {
8227 {
8228 .eraseblocks = { {4 * 1024, 128} },
8229 .block_erase = spi_block_erase_20,
8230 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008231 .eraseblocks = { {64 * 1024, 8} },
8232 .block_erase = spi_block_erase_d8,
8233 }, {
8234 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008235 .block_erase = spi_block_erase_c7,
8236 }
8237 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008238 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008239 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008240 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008241 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008242 },
8243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008244 {
8245 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008246 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008248 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008249 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008250 .total_size = 1024,
8251 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008252 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008253 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008255 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008256 .block_erasers =
8257 {
8258 {
8259 .eraseblocks = { {4 * 1024, 256} },
8260 .block_erase = spi_block_erase_20,
8261 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008262 .eraseblocks = { {64 * 1024, 16} },
8263 .block_erase = spi_block_erase_d8,
8264 }, {
8265 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008266 .block_erase = spi_block_erase_c7,
8267 }
8268 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008269 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008270 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008271 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008272 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008273 },
8274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008275 {
8276 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008277 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008278 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008279 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008280 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008281 .total_size = 2048,
8282 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008283 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008284 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008285 .probe = probe_spi_rdid,
8286 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008287 .block_erasers =
8288 {
8289 {
8290 .eraseblocks = { {4 * 1024, 512} },
8291 .block_erase = spi_block_erase_20,
8292 }, {
8293 .eraseblocks = { {32 * 1024, 64} },
8294 .block_erase = spi_block_erase_52,
8295 }, {
8296 .eraseblocks = { {64 * 1024, 32} },
8297 .block_erase = spi_block_erase_d8,
8298 }, {
8299 .eraseblocks = { {2 * 1024 * 1024, 1} },
8300 .block_erase = spi_block_erase_60,
8301 }, {
8302 .eraseblocks = { {2 * 1024 * 1024, 1} },
8303 .block_erase = spi_block_erase_c7,
8304 }
8305 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008306 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008307 .write = spi_chip_write_256,
8308 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008309 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008310 },
8311
8312 {
8313 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008314 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008315 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008316 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008317 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008318 .total_size = 4096,
8319 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008320 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008321 .tested = TEST_OK_PROBE,
8322 .probe = probe_spi_rdid,
8323 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008324 .block_erasers =
8325 {
8326 {
8327 .eraseblocks = { {4 * 1024, 1024} },
8328 .block_erase = spi_block_erase_20,
8329 }, {
8330 .eraseblocks = { {32 * 1024, 128} },
8331 .block_erase = spi_block_erase_52,
8332 }, {
8333 .eraseblocks = { {64 * 1024, 64} },
8334 .block_erase = spi_block_erase_d8,
8335 }, {
8336 .eraseblocks = { {4 * 1024 * 1024, 1} },
8337 .block_erase = spi_block_erase_60,
8338 }, {
8339 .eraseblocks = { {4 * 1024 * 1024, 1} },
8340 .block_erase = spi_block_erase_c7,
8341 }
8342 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008343 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008344 .write = spi_chip_write_256,
8345 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008346 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008347 },
8348
8349 {
8350 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008351 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008352 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008353 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008354 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008355 .total_size = 8192,
8356 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008357 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008358 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008359 .probe = probe_spi_rdid,
8360 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008361 .block_erasers =
8362 {
8363 {
8364 .eraseblocks = { {4 * 1024, 2048} },
8365 .block_erase = spi_block_erase_20,
8366 }, {
8367 .eraseblocks = { {32 * 1024, 256} },
8368 .block_erase = spi_block_erase_52,
8369 }, {
8370 .eraseblocks = { {64 * 1024, 128} },
8371 .block_erase = spi_block_erase_d8,
8372 }, {
8373 .eraseblocks = { {8 * 1024 * 1024, 1} },
8374 .block_erase = spi_block_erase_60,
8375 }, {
8376 .eraseblocks = { {8 * 1024 * 1024, 1} },
8377 .block_erase = spi_block_erase_c7,
8378 }
8379 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008380 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008381 .write = spi_chip_write_256,
8382 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008383 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008384 },
8385
8386 {
8387 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008388 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008389 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008390 .manufacture_id = WINBOND_ID,
8391 .model_id = WINBOND_W29C010,
8392 .total_size = 128,
8393 .page_size = 128,
8394 .feature_bits = FEATURE_LONG_RESET,
8395 .tested = TEST_OK_PRE,
8396 .probe = probe_w29ee011,
8397 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8398 .block_erasers =
8399 {
8400 {
8401 .eraseblocks = { {128 * 1024, 1} },
8402 .block_erase = erase_chip_block_jedec,
8403 }
8404 },
8405 .write = write_jedec,
8406 .read = read_memmapped,
8407 },
8408
8409 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8410 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008411 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008412 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008413 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008414 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008415 .total_size = 128,
8416 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008417 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008419 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008420 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008421 .block_erasers =
8422 {
8423 {
8424 .eraseblocks = { {128 * 1024, 1} },
8425 .block_erase = erase_chip_block_jedec,
8426 }
8427 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008428 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008429 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008430 },
8431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008432 {
8433 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008434 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008435 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008436 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008437 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008438 .total_size = 256,
8439 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008440 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008441 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008442 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008443 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008444 .block_erasers =
8445 {
8446 {
8447 .eraseblocks = { {256 * 1024, 1} },
8448 .block_erase = erase_chip_block_jedec,
8449 }
8450 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008451 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008453 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008454 },
8455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008456 {
8457 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008458 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008459 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008460 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008461 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008462 .total_size = 512,
8463 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008464 .feature_bits = FEATURE_LONG_RESET,
8465 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008466 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008467 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008468 .block_erasers =
8469 {
8470 {
8471 .eraseblocks = { {512 * 1024, 1} },
8472 .block_erase = erase_chip_block_jedec,
8473 }
8474 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008475 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008477 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008478 },
8479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008480 {
8481 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008482 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008483 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008484 .manufacture_id = WINBOND_ID,
8485 .model_id = WINBOND_W39L040,
8486 .total_size = 512,
8487 .page_size = 64 * 1024,
8488 .feature_bits = FEATURE_EITHER_RESET,
8489 .tested = TEST_OK_PR,
8490 .probe = probe_jedec,
8491 .probe_timing = 10,
8492 .block_erasers =
8493 {
8494 {
8495 .eraseblocks = { {4 * 1024, 128} },
8496 .block_erase = erase_block_jedec,
8497 }, {
8498 .eraseblocks = { {64 * 1024, 8} },
8499 .block_erase = erase_sector_jedec,
8500 }, {
8501 .eraseblocks = { {512 * 1024, 1} },
8502 .block_erase = erase_chip_block_jedec,
8503 }
8504 },
8505 .printlock = printlock_w39l040,
8506 .write = write_jedec_1,
8507 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008508 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008509 },
8510
8511 {
8512 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008513 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008514 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008515 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008516 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008517 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008518 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008519 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008520 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008521 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00008522 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008523 .block_erasers =
8524 {
8525 {
8526 .eraseblocks = { {64 * 1024, 8} },
8527 .block_erase = erase_sector_jedec,
8528 }, {
8529 .eraseblocks = { {512 * 1024, 1} },
8530 .block_erase = erase_chip_block_jedec,
8531 }
8532 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008533 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008534 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008535 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008536 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008537 },
8538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008539 {
8540 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008541 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008542 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008543 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008544 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008545 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008546 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008547 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008548 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008549 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00008550 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008551 .block_erasers =
8552 {
8553 {
8554 .eraseblocks = { {64 * 1024, 8} },
8555 .block_erase = erase_sector_jedec,
8556 }, {
8557 .eraseblocks = { {512 * 1024, 1} },
8558 .block_erase = erase_chip_block_jedec,
8559 }
8560 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008561 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008562 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008563 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008564 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008565 },
8566
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008567 {
8568 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008569 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008570 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008571 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008572 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008573 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008574 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008575 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008576 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008577 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008578 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008579 .block_erasers =
8580 {
8581 {
8582 .eraseblocks = { {64 * 1024, 8} },
8583 .block_erase = erase_sector_jedec,
8584 }, {
8585 .eraseblocks = { {512 * 1024, 1} },
8586 .block_erase = erase_chip_block_jedec,
8587 }
8588 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008589 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008592 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008593 },
8594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008595 {
8596 .vendor = "Winbond",
8597 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008598 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008599 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008600 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008601 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008602 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008603 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008605 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008606 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008607 .block_erasers =
8608 {
8609 {
8610 .eraseblocks = { {4 * 1024, 128} },
8611 .block_erase = erase_block_jedec,
8612 }, {
8613 .eraseblocks = { {64 * 1024, 8} },
8614 .block_erase = erase_sector_jedec,
8615 }, {
8616 .eraseblocks = { {512 * 1024, 1} },
8617 .block_erase = erase_chip_block_jedec,
8618 }
8619 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008620 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008621 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008622 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008623 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008624 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008625 },
8626
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008627 {
8628 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008629 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008630 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008631 .manufacture_id = WINBOND_ID,
8632 .model_id = WINBOND_W39V040B,
8633 .total_size = 512,
8634 .page_size = 64 * 1024,
8635 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008636 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008637 .probe = probe_jedec,
8638 .probe_timing = 10,
8639 .block_erasers =
8640 {
8641 {
8642 .eraseblocks = { {64 * 1024, 8} },
8643 .block_erase = erase_sector_jedec,
8644 }, {
8645 .eraseblocks = { {512 * 1024, 1} },
8646 .block_erase = erase_chip_block_jedec,
8647 }
8648 },
8649 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008650 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008651 .write = write_jedec_1,
8652 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008653 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008654 },
8655
8656 {
8657 .vendor = "Winbond",
8658 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008659 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008660 .manufacture_id = WINBOND_ID,
8661 .model_id = WINBOND_W39V040C,
8662 .total_size = 512,
8663 .page_size = 64 * 1024,
8664 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008665 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008666 .probe = probe_jedec,
8667 .probe_timing = 10,
8668 .block_erasers =
8669 {
8670 {
8671 .eraseblocks = { {64 * 1024, 8} },
8672 .block_erase = erase_sector_jedec,
8673 }, {
8674 .eraseblocks = { {512 * 1024, 1} },
8675 .block_erase = erase_chip_block_jedec,
8676 }
8677 },
8678 .printlock = printlock_w39v040fc,
8679 .write = write_jedec_1,
8680 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008681 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008682 },
8683
8684 {
8685 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008686 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008687 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008688 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008689 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008690 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008691 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008692 .feature_bits = FEATURE_EITHER_RESET,
8693 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008694 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008695 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008696 .block_erasers =
8697 {
8698 {
8699 .eraseblocks = { {64 * 1024, 16} },
8700 .block_erase = erase_sector_jedec,
8701 }, {
8702 .eraseblocks = { {1024 * 1024, 1} },
8703 .block_erase = erase_chip_block_jedec,
8704 }
8705 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008706 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008707 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008709 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008710 },
8711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008712 {
8713 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008714 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008715 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008716 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008717 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008718 .total_size = 256,
8719 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008720 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008721 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008722 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008723 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008724 .block_erasers =
8725 {
8726 {
8727 .eraseblocks = {
8728 {128 * 1024, 1},
8729 {96 * 1024, 1},
8730 {8 * 1024, 2},
8731 {16 * 1024, 1},
8732 },
8733 .block_erase = erase_sector_jedec,
8734 }, {
8735 .eraseblocks = { {256 * 1024, 1} },
8736 .block_erase = erase_chip_block_jedec,
8737 }
8738 },
Sean Nelson35727f72010-01-28 23:55:12 +00008739 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008740 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008741 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008742 },
8743
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008744 {
8745 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008746 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008747 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008748 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008749 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008750 .total_size = 256,
8751 .page_size = 128,
8752 .feature_bits = FEATURE_EITHER_RESET,
8753 .tested = TEST_OK_PROBE,
8754 .probe = probe_jedec,
8755 .probe_timing = 10,
8756 .block_erasers =
8757 {
8758 {
8759 .eraseblocks = { {256 * 1024, 1} },
8760 .block_erase = erase_chip_block_jedec,
8761 }
8762 },
8763 .write = write_jedec_1,
8764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008765 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008766 },
8767
8768 {
8769 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008770 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008771 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008772 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008773 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008774 .total_size = 256,
8775 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008776 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008777 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008778 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008779 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008780 .block_erasers =
8781 {
8782 {
8783 .eraseblocks = {
8784 {64 * 1024, 3},
8785 {32 * 1024, 1},
8786 {8 * 1024, 2},
8787 {16 * 1024, 1},
8788 },
8789 .block_erase = erase_sector_jedec,
8790 }, {
8791 .eraseblocks = { {256 * 1024, 1} },
8792 .block_erase = erase_chip_block_jedec,
8793 }
8794 },
Sean Nelson35727f72010-01-28 23:55:12 +00008795 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008797 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008798 },
8799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008800 {
8801 .vendor = "Winbond",
8802 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008803 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008804 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008805 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 .total_size = 256,
8807 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008808 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008809 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008811 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008812 .block_erasers =
8813 {
8814 {
8815 .eraseblocks = {
8816 {64 * 1024, 3},
8817 {32 * 1024, 1},
8818 {8 * 1024, 2},
8819 {16 * 1024, 1},
8820 },
8821 .block_erase = erase_sector_jedec,
8822 }, {
8823 .eraseblocks = { {256 * 1024, 1} },
8824 .block_erase = erase_chip_block_jedec,
8825 }
8826 },
Sean Nelson35727f72010-01-28 23:55:12 +00008827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008829 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008830 },
8831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008832 {
8833 .vendor = "Winbond",
8834 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008835 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008836 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008837 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008838 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008839 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008840 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008841 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008842 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008843 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008844 .block_erasers =
8845 {
8846 {
8847 .eraseblocks = { {64 * 1024, 16}, },
8848 .block_erase = erase_sector_jedec,
8849 }, {
8850 .eraseblocks = { {1024 * 1024, 1} },
8851 .block_erase = erase_chip_block_jedec,
8852 }
8853 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008854 .printlock = printlock_w39v080fa,
8855 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00008856 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008857 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008858 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008859 },
8860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008861 {
8862 .vendor = "Winbond",
8863 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008864 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008865 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008866 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008867 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008868 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008869 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008870 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008871 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008872 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008873 .block_erasers =
8874 {
8875 {
8876 .eraseblocks = { {64 * 1024, 8}, },
8877 .block_erase = erase_sector_jedec,
8878 }, {
8879 .eraseblocks = { {512 * 1024, 1} },
8880 .block_erase = erase_chip_block_jedec,
8881 }
8882 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008883 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00008884 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008885 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008886 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008887 },
8888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008889 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00008890 .vendor = "Programmer",
8891 .name = "Opaque flash chip",
8892 .bustype = BUS_PROG,
8893 .manufacture_id = PROGMANUF_ID,
8894 .model_id = PROGDEV_ID,
8895 .total_size = 0,
8896 .page_size = 256,
8897 /* probe is assumed to work, rest will be filled in by probe */
8898 .tested = TEST_OK_PROBE,
8899 .probe = probe_opaque,
8900 /* eraseblock sizes will be set by the probing function */
8901 .block_erasers =
8902 {
8903 {
8904 .block_erase = erase_opaque,
8905 }
8906 },
8907 .write = write_opaque,
8908 .read = read_opaque,
8909 },
8910
8911 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008912 .vendor = "AMIC",
8913 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008914 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008915 .manufacture_id = AMIC_ID,
8916 .model_id = GENERIC_DEVICE_ID,
8917 .total_size = 0,
8918 .page_size = 256,
8919 .tested = TEST_BAD_PREW,
8920 .probe = probe_spi_rdid4,
8921 .probe_timing = TIMING_ZERO,
8922 .write = NULL,
8923 .read = NULL,
8924 },
8925
8926 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008927 .vendor = "Atmel",
8928 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008929 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008930 .manufacture_id = ATMEL_ID,
8931 .model_id = GENERIC_DEVICE_ID,
8932 .total_size = 0,
8933 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008934 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008935 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008936 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008937 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008938 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008939 },
8940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008941 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00008942 .vendor = "Eon",
8943 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008944 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008945 .manufacture_id = EON_ID_NOPREFIX,
8946 .model_id = GENERIC_DEVICE_ID,
8947 .total_size = 0,
8948 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008949 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008951 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008952 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008953 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008954 },
8955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008956 {
8957 .vendor = "Macronix",
8958 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008959 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008960 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008961 .model_id = GENERIC_DEVICE_ID,
8962 .total_size = 0,
8963 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008964 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008965 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008966 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008968 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008969 },
8970
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008971 {
8972 .vendor = "PMC",
8973 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008974 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008975 .manufacture_id = PMC_ID,
8976 .model_id = GENERIC_DEVICE_ID,
8977 .total_size = 0,
8978 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008979 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008981 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008982 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008983 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008984 },
8985
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008986 {
8987 .vendor = "SST",
8988 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008989 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008990 .manufacture_id = SST_ID,
8991 .model_id = GENERIC_DEVICE_ID,
8992 .total_size = 0,
8993 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008994 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008995 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008996 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008997 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008998 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008999 },
9000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009001 {
9002 .vendor = "ST",
9003 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009004 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009005 .manufacture_id = ST_ID,
9006 .model_id = GENERIC_DEVICE_ID,
9007 .total_size = 0,
9008 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009009 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009010 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009011 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009012 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009013 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009014 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009015
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009016 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009017 .vendor = "Sanyo",
9018 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009019 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009020 .manufacture_id = SANYO_ID,
9021 .model_id = GENERIC_DEVICE_ID,
9022 .total_size = 0,
9023 .page_size = 256,
9024 .tested = TEST_BAD_PREW,
9025 .probe = probe_spi_rdid,
9026 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009027 .write = NULL,
9028 .read = NULL,
9029 },
9030
9031 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009032 .vendor = "Generic",
9033 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009034 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009035 .manufacture_id = GENERIC_MANUF_ID,
9036 .model_id = GENERIC_DEVICE_ID,
9037 .total_size = 0,
9038 .page_size = 256,
9039 .tested = TEST_BAD_PREW,
9040 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009041 .write = NULL,
9042 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009043
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009044 {
9045 .vendor = "Generic",
9046 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009047 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009048 .manufacture_id = GENERIC_MANUF_ID,
9049 .model_id = GENERIC_DEVICE_ID,
9050 .total_size = 0,
9051 .page_size = 256,
9052 .tested = TEST_BAD_PREW,
9053 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009054 .write = NULL,
9055 },
9056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009057 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009058};