blob: b48552c3ac995e25eea7c0005785588e2052031f [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000567 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000601 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000636 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000671 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000706 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000741 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000781 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000816 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000851 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000889 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000927 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
957 }
958 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000959 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
989 }
990 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000991 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
1021 }
1022 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001023 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
1053 }
1054 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001055 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
1085 }
1086 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001087 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
1117 }
1118 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001119 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001136 .tested = TEST_UNTESTED,
1137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
1156 }
1157 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001159 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
1167 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001168 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ032,
1171 .total_size = 4096,
1172 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001173 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .tested = TEST_UNTESTED,
1176 .probe = probe_spi_rdid,
1177 .probe_timing = TIMING_ZERO,
1178 .block_erasers =
1179 {
1180 {
1181 .eraseblocks = { { 4 * 1024, 1024 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 64 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 64 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 4096 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 4096 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001197 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001198 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001201 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001202 },
1203
1204 {
1205 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001206 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A29002B,
1210 .total_size = 256,
1211 .page_size = 64 * 1024,
1212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1213 .tested = TEST_UNTESTED,
1214 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001215 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001216 .block_erasers =
1217 {
1218 {
1219 .eraseblocks = {
1220 {16 * 1024, 1},
1221 {8 * 1024, 2},
1222 {32 * 1024, 1},
1223 {64 * 1024, 3},
1224 },
1225 .block_erase = erase_sector_jedec,
1226 }, {
1227 .eraseblocks = { {256 * 1024, 1} },
1228 .block_erase = erase_chip_block_jedec,
1229 },
1230 },
1231 .write = write_jedec_1,
1232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001233 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001234 },
1235
1236 {
1237 .vendor = "AMIC",
1238 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001239 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001240 .manufacture_id = AMIC_ID_NOPREFIX,
1241 .model_id = AMIC_A29002T,
1242 .total_size = 256,
1243 .page_size = 64 * 1024,
1244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001245 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001246 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001247 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001248 .block_erasers =
1249 {
1250 {
1251 .eraseblocks = {
1252 {64 * 1024, 3},
1253 {32 * 1024, 1},
1254 {8 * 1024, 2},
1255 {16 * 1024, 1},
1256 },
1257 .block_erase = erase_sector_jedec,
1258 }, {
1259 .eraseblocks = { {256 * 1024, 1} },
1260 .block_erase = erase_chip_block_jedec,
1261 },
1262 },
1263 .write = write_jedec_1,
1264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001265 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001266 },
1267
1268 {
1269 .vendor = "AMIC",
1270 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001271 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001272 .manufacture_id = AMIC_ID_NOPREFIX,
1273 .model_id = AMIC_A29040B,
1274 .total_size = 512,
1275 .page_size = 64 * 1024,
1276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1277 .tested = TEST_UNTESTED,
1278 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001279 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 .block_erasers =
1281 {
1282 {
1283 .eraseblocks = { {64 * 1024, 8} },
1284 .block_erase = erase_sector_jedec,
1285 }, {
1286 .eraseblocks = { {512 * 1024, 1} },
1287 .block_erase = erase_chip_block_jedec,
1288 },
1289 },
1290 .write = write_jedec_1,
1291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001292 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001293 },
1294
1295 {
1296 .vendor = "AMIC",
1297 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001298 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001299 .manufacture_id = AMIC_ID_NOPREFIX,
1300 .model_id = AMIC_A49LF040A,
1301 .total_size = 512,
1302 .page_size = 64 * 1024,
1303 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001305 .probe = probe_jedec,
1306 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1307 .block_erasers =
1308 {
1309 {
1310 .eraseblocks = { {64 * 1024, 8} },
1311 .block_erase = erase_block_jedec,
1312 }, {
1313 .eraseblocks = { {512 * 1024, 1} },
1314 .block_erase = erase_chip_block_jedec,
1315 }
1316 },
1317 .unlock = unlock_49fl00x,
1318 .write = write_jedec_1,
1319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001320 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 },
1322
1323 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001324 .vendor = "Atmel",
1325 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001326 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001328 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001329 .total_size = 256,
1330 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001331 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001333 .tested = TEST_UNTESTED,
1334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001335 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001336 .block_erasers =
1337 {
1338 {
1339 .eraseblocks = { {4 * 1024, 64} },
1340 .block_erase = spi_block_erase_20,
1341 }, {
1342 .eraseblocks = { {32 * 1024, 8} },
1343 .block_erase = spi_block_erase_52,
1344 }, {
1345 .eraseblocks = { {64 * 1024, 4} },
1346 .block_erase = spi_block_erase_d8,
1347 }, {
1348 .eraseblocks = { {256 * 1024, 1} },
1349 .block_erase = spi_block_erase_60,
1350 }, {
1351 .eraseblocks = { {256 * 1024, 1} },
1352 .block_erase = spi_block_erase_c7,
1353 }
1354 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001355 .printlock = spi_prettyprint_status_register_at25df,
1356 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001358 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001359 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001360 },
1361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001362 {
1363 .vendor = "Atmel",
1364 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001366 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001367 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001368 .total_size = 512,
1369 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001370 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001371 .tested = TEST_UNTESTED,
1372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001373 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001374 .block_erasers =
1375 {
1376 {
1377 .eraseblocks = { {4 * 1024, 128} },
1378 .block_erase = spi_block_erase_20,
1379 }, {
1380 .eraseblocks = { {32 * 1024, 16} },
1381 .block_erase = spi_block_erase_52,
1382 }, {
1383 .eraseblocks = { {64 * 1024, 8} },
1384 .block_erase = spi_block_erase_d8,
1385 }, {
1386 .eraseblocks = { {512 * 1024, 1} },
1387 .block_erase = spi_block_erase_60,
1388 }, {
1389 .eraseblocks = { {512 * 1024, 1} },
1390 .block_erase = spi_block_erase_c7,
1391 }
1392 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001393 .printlock = spi_prettyprint_status_register_at25df,
1394 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001396 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001397 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001398 },
1399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001400 {
1401 .vendor = "Atmel",
1402 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001403 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001404 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001405 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001406 .total_size = 1024,
1407 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001408 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001409 .tested = TEST_UNTESTED,
1410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001411 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001412 .block_erasers =
1413 {
1414 {
1415 .eraseblocks = { {4 * 1024, 256} },
1416 .block_erase = spi_block_erase_20,
1417 }, {
1418 .eraseblocks = { {32 * 1024, 32} },
1419 .block_erase = spi_block_erase_52,
1420 }, {
1421 .eraseblocks = { {64 * 1024, 16} },
1422 .block_erase = spi_block_erase_d8,
1423 }, {
1424 .eraseblocks = { {1024 * 1024, 1} },
1425 .block_erase = spi_block_erase_60,
1426 }, {
1427 .eraseblocks = { {1024 * 1024, 1} },
1428 .block_erase = spi_block_erase_c7,
1429 }
1430 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001431 .printlock = spi_prettyprint_status_register_at25df,
1432 .unlock = spi_disable_blockprotect_at25df,
1433 .write = spi_chip_write_256,
1434 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001435 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 },
1437
1438 {
1439 .vendor = "Atmel",
1440 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001441 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001442 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001443 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001444 .total_size = 1024,
1445 .page_size = 256,
1446 .feature_bits = FEATURE_WRSR_WREN,
1447 .tested = TEST_UNTESTED,
1448 .probe = probe_spi_rdid,
1449 .probe_timing = TIMING_ZERO,
1450 .block_erasers =
1451 {
1452 {
1453 .eraseblocks = { {4 * 1024, 256} },
1454 .block_erase = spi_block_erase_20,
1455 }, {
1456 .eraseblocks = { {32 * 1024, 32} },
1457 .block_erase = spi_block_erase_52,
1458 }, {
1459 .eraseblocks = { {64 * 1024, 16} },
1460 .block_erase = spi_block_erase_d8,
1461 }, {
1462 .eraseblocks = { {1024 * 1024, 1} },
1463 .block_erase = spi_block_erase_60,
1464 }, {
1465 .eraseblocks = { {1024 * 1024, 1} },
1466 .block_erase = spi_block_erase_c7,
1467 }
1468 },
1469 .printlock = spi_prettyprint_status_register_at25df_sec,
1470 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001471 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001472 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001473 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001474 },
1475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001476 {
1477 .vendor = "Atmel",
1478 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001481 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .total_size = 2048,
1483 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001484 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001485 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001487 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001488 .block_erasers =
1489 {
1490 {
1491 .eraseblocks = { {4 * 1024, 512} },
1492 .block_erase = spi_block_erase_20,
1493 }, {
1494 .eraseblocks = { {32 * 1024, 64} },
1495 .block_erase = spi_block_erase_52,
1496 }, {
1497 .eraseblocks = { {64 * 1024, 32} },
1498 .block_erase = spi_block_erase_d8,
1499 }, {
1500 .eraseblocks = { {2 * 1024 * 1024, 1} },
1501 .block_erase = spi_block_erase_60,
1502 }, {
1503 .eraseblocks = { {2 * 1024 * 1024, 1} },
1504 .block_erase = spi_block_erase_c7,
1505 }
1506 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001507 .printlock = spi_prettyprint_status_register_at25df_sec,
1508 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001509 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001512 },
1513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001514 {
1515 .vendor = "Atmel",
1516 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001517 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001518 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001519 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .total_size = 4096,
1521 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001522 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001525 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001526 .block_erasers =
1527 {
1528 {
1529 .eraseblocks = { {4 * 1024, 1024} },
1530 .block_erase = spi_block_erase_20,
1531 }, {
1532 .eraseblocks = { {32 * 1024, 128} },
1533 .block_erase = spi_block_erase_52,
1534 }, {
1535 .eraseblocks = { {64 * 1024, 64} },
1536 .block_erase = spi_block_erase_d8,
1537 }, {
1538 .eraseblocks = { {4 * 1024 * 1024, 1} },
1539 .block_erase = spi_block_erase_60,
1540 }, {
1541 .eraseblocks = { {4 * 1024 * 1024, 1} },
1542 .block_erase = spi_block_erase_c7,
1543 }
1544 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001545 .printlock = spi_prettyprint_status_register_at25df,
1546 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001547 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001548 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001550 },
1551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 {
1553 .vendor = "Atmel",
1554 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001555 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001556 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001557 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .total_size = 4096,
1559 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001560 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00001562 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001564 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001565 .block_erasers =
1566 {
1567 {
1568 .eraseblocks = { {4 * 1024, 1024} },
1569 .block_erase = spi_block_erase_20,
1570 }, {
1571 .eraseblocks = { {32 * 1024, 128} },
1572 .block_erase = spi_block_erase_52,
1573 }, {
1574 .eraseblocks = { {64 * 1024, 64} },
1575 .block_erase = spi_block_erase_d8,
1576 }, {
1577 .eraseblocks = { {4 * 1024 * 1024, 1} },
1578 .block_erase = spi_block_erase_60,
1579 }, {
1580 .eraseblocks = { {4 * 1024 * 1024, 1} },
1581 .block_erase = spi_block_erase_c7,
1582 }
1583 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .printlock = spi_prettyprint_status_register_at25df_sec,
1585 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001589 },
1590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 {
1592 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001593 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001596 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .total_size = 8192,
1598 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001600 .tested = TEST_UNTESTED,
1601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001602 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001603 .block_erasers =
1604 {
1605 {
1606 .eraseblocks = { {4 * 1024, 2048} },
1607 .block_erase = spi_block_erase_20,
1608 }, {
1609 .eraseblocks = { {32 * 1024, 256} },
1610 .block_erase = spi_block_erase_52,
1611 }, {
1612 .eraseblocks = { {64 * 1024, 128} },
1613 .block_erase = spi_block_erase_d8,
1614 }, {
1615 .eraseblocks = { {8 * 1024 * 1024, 1} },
1616 .block_erase = spi_block_erase_60,
1617 }, {
1618 .eraseblocks = { {8 * 1024 * 1024, 1} },
1619 .block_erase = spi_block_erase_c7,
1620 }
1621 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001622 .printlock = spi_prettyprint_status_register_at25df_sec,
1623 .unlock = spi_disable_blockprotect_at25df_sec,
1624 .write = spi_chip_write_256,
1625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001626 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001627 },
1628
1629 {
1630 .vendor = "Atmel",
1631 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001632 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001633 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001634 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001635 .total_size = 2048,
1636 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001637 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001639 .tested = TEST_UNTESTED,
1640 .probe = probe_spi_rdid,
1641 .probe_timing = TIMING_ZERO,
1642 .block_erasers =
1643 {
1644 {
1645 .eraseblocks = { {4 * 1024, 512} },
1646 .block_erase = spi_block_erase_20,
1647 }, {
1648 .eraseblocks = { {32 * 1024, 64} },
1649 .block_erase = spi_block_erase_52,
1650 }, {
1651 .eraseblocks = { {64 * 1024, 32} },
1652 .block_erase = spi_block_erase_d8,
1653 }, {
1654 .eraseblocks = { {2 * 1024 * 1024, 1} },
1655 .block_erase = spi_block_erase_60,
1656 }, {
1657 .eraseblocks = { {2 * 1024 * 1024, 1} },
1658 .block_erase = spi_block_erase_c7,
1659 }
1660 },
1661 .printlock = spi_prettyprint_status_register_at25df_sec,
1662 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001663 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001665 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001666 },
1667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 {
1669 .vendor = "Atmel",
1670 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001673 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001674 .total_size = 64,
1675 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001676 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .tested = TEST_UNTESTED,
1679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001680 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001681 .block_erasers =
1682 {
1683 {
1684 .eraseblocks = { {4 * 1024, 16} },
1685 .block_erase = spi_block_erase_20,
1686 }, {
1687 .eraseblocks = { {32 * 1024, 2} },
1688 .block_erase = spi_block_erase_52,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 2} },
1691 .block_erase = spi_block_erase_d8,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 1} },
1694 .block_erase = spi_block_erase_60,
1695 }, {
1696 .eraseblocks = { {64 * 1024, 1} },
1697 .block_erase = spi_block_erase_c7,
1698 }
1699 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001700 .printlock = spi_prettyprint_status_register_at25f,
1701 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001702 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001703 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001704 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001705 },
1706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001707 {
1708 .vendor = "Atmel",
1709 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001710 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001712 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001713 .total_size = 128,
1714 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001715 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .tested = TEST_UNTESTED,
1717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001718 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001719 .block_erasers =
1720 {
1721 {
1722 .eraseblocks = { {4 * 1024, 32} },
1723 .block_erase = spi_block_erase_20,
1724 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001725 .eraseblocks = { {4 * 1024, 32} },
1726 .block_erase = spi_block_erase_d7,
1727 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001728 .eraseblocks = { {32 * 1024, 4} },
1729 .block_erase = spi_block_erase_52,
1730 }, {
1731 .eraseblocks = { {32 * 1024, 4} },
1732 .block_erase = spi_block_erase_d8,
1733 }, {
1734 .eraseblocks = { {128 * 1024, 1} },
1735 .block_erase = spi_block_erase_60,
1736 }, {
1737 .eraseblocks = { {128 * 1024, 1} },
1738 .block_erase = spi_block_erase_c7,
1739 }
1740 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001741 .printlock = spi_prettyprint_status_register_at25fs010,
1742 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001743 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001745 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001746 },
1747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001748 {
1749 .vendor = "Atmel",
1750 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001751 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001752 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001753 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 .total_size = 512,
1755 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001756 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .tested = TEST_UNTESTED,
1758 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001759 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001760 .block_erasers =
1761 {
1762 {
1763 .eraseblocks = { {4 * 1024, 128} },
1764 .block_erase = spi_block_erase_20,
1765 }, {
1766 .eraseblocks = { {64 * 1024, 8} },
1767 .block_erase = spi_block_erase_52,
1768 }, {
1769 .eraseblocks = { {64 * 1024, 8} },
1770 .block_erase = spi_block_erase_d8,
1771 }, {
1772 .eraseblocks = { {512 * 1024, 1} },
1773 .block_erase = spi_block_erase_60,
1774 }, {
1775 .eraseblocks = { {512 * 1024, 1} },
1776 .block_erase = spi_block_erase_c7,
1777 }
1778 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001779 .printlock = spi_prettyprint_status_register_at25fs040,
1780 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001781 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001782 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001783 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001784 },
1785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001786 {
1787 .vendor = "Atmel",
1788 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001789 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001790 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001791 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001792 .total_size = 512,
1793 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001794 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001795 .tested = TEST_UNTESTED,
1796 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001797 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001798 .block_erasers =
1799 {
1800 {
1801 .eraseblocks = { {4 * 1024, 128} },
1802 .block_erase = spi_block_erase_20,
1803 }
1804 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001805 .write = NULL /* Incompatible Page write */,
1806 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001807 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001808 },
1809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 {
1811 .vendor = "Atmel",
1812 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001813 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001815 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001816 .total_size = 1024,
1817 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001818 .feature_bits = FEATURE_WRSR_WREN,
1819 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001820 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001821 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001822 .block_erasers =
1823 {
1824 {
1825 .eraseblocks = { {4 * 1024, 256} },
1826 .block_erase = spi_block_erase_20,
1827 }, {
1828 .eraseblocks = { {32 * 1024, 32} },
1829 .block_erase = spi_block_erase_52,
1830 }, {
1831 .eraseblocks = { {64 * 1024, 16} },
1832 .block_erase = spi_block_erase_d8,
1833 }, {
1834 .eraseblocks = { {1024 * 1024, 1} },
1835 .block_erase = spi_block_erase_60,
1836 }, {
1837 .eraseblocks = { {1024 * 1024, 1} },
1838 .block_erase = spi_block_erase_c7,
1839 }
1840 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001841 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001842 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001843 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001844 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001845 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001846 },
1847
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001848 {
1849 .vendor = "Atmel",
1850 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001851 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001852 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001853 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001854 .total_size = 2048,
1855 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001856 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001857 .tested = TEST_UNTESTED,
1858 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001859 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001860 .block_erasers =
1861 {
1862 {
1863 .eraseblocks = { {4 * 1024, 512} },
1864 .block_erase = spi_block_erase_20,
1865 }, {
1866 .eraseblocks = { {32 * 1024, 64} },
1867 .block_erase = spi_block_erase_52,
1868 }, {
1869 .eraseblocks = { {64 * 1024, 32} },
1870 .block_erase = spi_block_erase_d8,
1871 }, {
1872 .eraseblocks = { {2 * 1024 * 1024, 1} },
1873 .block_erase = spi_block_erase_60,
1874 }, {
1875 .eraseblocks = { {2 * 1024 * 1024, 1} },
1876 .block_erase = spi_block_erase_c7,
1877 }
1878 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001879 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001884 },
1885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001886 {
1887 .vendor = "Atmel",
1888 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 2048,
1893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001894 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001895 .tested = TEST_UNTESTED,
1896 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001897 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001898 .block_erasers =
1899 {
1900 {
1901 .eraseblocks = { {4 * 1024, 512} },
1902 .block_erase = spi_block_erase_20,
1903 }, {
1904 .eraseblocks = { {32 * 1024, 64} },
1905 .block_erase = spi_block_erase_52,
1906 }, {
1907 .eraseblocks = { {64 * 1024, 32} },
1908 .block_erase = spi_block_erase_d8,
1909 }, {
1910 .eraseblocks = { {2 * 1024 * 1024, 1} },
1911 .block_erase = spi_block_erase_60,
1912 }, {
1913 .eraseblocks = { {2 * 1024 * 1024, 1} },
1914 .block_erase = spi_block_erase_c7,
1915 }
1916 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001917 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001918 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001919 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001920 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001921 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001922 },
1923
1924 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001925 /*{
1926 .vendor = "Atmel",
1927 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001928 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001929 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001930 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001931 .total_size = 4096,
1932 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001933 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 .tested = TEST_UNTESTED,
1935 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001936 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001937 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001938 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001939 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001940 .read = spi_chip_read,
1941 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 {
1944 .vendor = "Atmel",
1945 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001946 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001947 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001948 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001949 .total_size = 512,
1950 .page_size = 256,
1951 .tested = TEST_UNTESTED,
Steven Zakulec3603a282012-05-02 20:07:57 +00001952 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001953 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001954 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001955 .block_erasers =
1956 {
1957 {
1958 .eraseblocks = { {4 * 1024, 128} },
1959 .block_erase = spi_block_erase_20,
1960 }, {
1961 .eraseblocks = { {32 * 1024, 16} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {64 * 1024, 8} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {512 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {512 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001974 .write = NULL /* Incompatible Page write */,
1975 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001976 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001977 },
1978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001979 {
1980 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001981 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001982 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001983 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001984 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001985 .total_size = 64,
1986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001987 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00001988 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001989 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001990 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 1} },
1995 .block_erase = erase_chip_block_jedec,
1996 }
1997 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001998 .write = write_jedec,
1999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002000 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002001 },
2002
2003 {
2004 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002005 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002006 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002007 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002008 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002009 .total_size = 128,
2010 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002011 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002012 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002013 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002014 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {128 * 1024, 1} },
2019 .block_erase = erase_chip_block_jedec,
2020 }
2021 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002022 .write = write_jedec, /* FIXME */
2023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002024 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002025 },
2026
2027 {
2028 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002030 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002031 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002032 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 .total_size = 256,
2034 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002035 .feature_bits = FEATURE_LONG_RESET,
2036 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002037 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002038 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002039 .block_erasers =
2040 {
2041 {
2042 .eraseblocks = { {256 * 1024, 1} },
2043 .block_erase = erase_chip_block_jedec,
2044 }
2045 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 512,
2058 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002059 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002060 .tested = TEST_UNTESTED,
2061 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002062 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {512 * 1024, 1} },
2067 .block_erase = erase_chip_block_jedec,
2068 }
2069 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002070 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002072 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002073 },
2074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002075 {
2076 .vendor = "Atmel",
2077 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002078 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002079 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002080 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002081 .total_size = 16896 /* No power of two sizes */,
2082 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002083 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 .tested = TEST_BAD_READ,
2085 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002086 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 .write = NULL /* Incompatible Page write */,
2088 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002089 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002090 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002092 {
2093 .vendor = "Atmel",
2094 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002095 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002096 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002097 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002098 .total_size = 128 /* Size can only be determined from status register */,
2099 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002100 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .tested = TEST_BAD_READ,
2102 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002103 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002104 .write = NULL,
2105 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002106 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002107 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 {
2110 .vendor = "Atmel",
2111 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002112 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002114 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002115 .total_size = 256 /* Size can only be determined from status register */,
2116 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002117 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002118 .tested = TEST_BAD_READ,
2119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002120 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 .write = NULL,
2122 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002123 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002124 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002125
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002126 {
2127 .vendor = "Atmel",
2128 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002129 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002130 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002131 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002132 .total_size = 512 /* Size can only be determined from status register */,
2133 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002134 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .tested = TEST_BAD_READ,
2136 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002137 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 .write = NULL,
2139 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002140 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002141 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002142
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 {
2144 .vendor = "Atmel",
2145 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002146 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002148 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002149 .total_size = 1024 /* Size can only be determined from status register */,
2150 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002151 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002152 .tested = TEST_BAD_READ,
2153 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002154 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .write = NULL,
2156 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002157 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002158 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002160 {
2161 .vendor = "Atmel",
2162 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002163 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002164 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002165 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002166 .total_size = 2048 /* Size can only be determined from status register */,
2167 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002168 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002169 .tested = TEST_BAD_READ,
2170 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002171 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .write = NULL,
2173 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002174 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002175 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002176
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 {
2178 .vendor = "Atmel",
2179 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002180 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002182 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002183 .total_size = 4224 /* No power of two sizes */,
2184 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002185 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .tested = TEST_BAD_READ,
2187 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002188 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .write = NULL,
2190 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002191 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002192 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 {
2195 .vendor = "Atmel",
2196 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002197 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002199 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002200 .total_size = 4096 /* Size can only be determined from status register */,
2201 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002202 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002203 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002204 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 .tested = TEST_BAD_READ,
2206 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002207 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002208 .write = NULL,
2209 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002210 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002211 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002213 {
2214 .vendor = "Atmel",
2215 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002216 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002217 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002218 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002219 .total_size = 8192 /* Size can only be determined from status register */,
2220 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002221 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002222 .tested = TEST_BAD_READ,
2223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002224 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002225 .write = NULL,
2226 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002227 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002228 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 {
2231 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002232 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002233 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002234 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002235 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002236 .total_size = 64,
2237 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002238 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002239 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002240 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002241 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002242 .block_erasers =
2243 {
2244 {
2245 .eraseblocks = { {64 * 1024, 1} },
2246 .block_erase = erase_chip_block_jedec,
2247 }
2248 },
Sean Nelson35727f72010-01-28 23:55:12 +00002249 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002250 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002251 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002252 },
2253
2254 {
2255 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002256 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002257 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002258 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002259 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .total_size = 256,
2261 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002262 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002263 .tested = TEST_UNTESTED,
2264 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002265 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002266 .block_erasers =
2267 {
2268 {
2269 .eraseblocks = {
2270 {16 * 1024, 1},
2271 {8 * 1024, 2},
2272 {96 * 1024, 1},
2273 {128 * 1024, 1},
2274 },
2275 .block_erase = erase_sector_jedec,
2276 }, {
2277 .eraseblocks = { {256 * 1024, 1} },
2278 .block_erase = erase_chip_block_jedec,
2279 }
2280 },
Sean Nelson35727f72010-01-28 23:55:12 +00002281 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002282 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002284 },
2285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .total_size = 256,
2293 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002294 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002295 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002297 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002298 .block_erasers =
2299 {
2300 {
2301 .eraseblocks = {
2302 {128 * 1024, 1},
2303 {96 * 1024, 1},
2304 {8 * 1024, 2},
2305 {16 * 1024, 1},
2306 },
2307 .block_erase = erase_sector_jedec,
2308 }, {
2309 .eraseblocks = { {256 * 1024, 1} },
2310 .block_erase = erase_chip_block_jedec,
2311 }
2312 },
Sean Nelson35727f72010-01-28 23:55:12 +00002313 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002315 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002316 },
2317
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002318 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002319 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002320 .name = "AT49F020",
2321 .bustype = BUS_PARALLEL,
2322 .manufacture_id = ATMEL_ID,
2323 .model_id = ATMEL_AT49F020,
2324 .total_size = 256,
2325 .page_size = 256,
2326 .feature_bits = FEATURE_EITHER_RESET,
2327 .tested = TEST_OK_PRE,
2328 .probe = probe_jedec,
2329 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2330 .block_erasers =
2331 {
2332 {
2333 .eraseblocks = { {256 * 1024, 1} },
2334 .block_erase = erase_chip_block_jedec,
2335 }
2336 /* Chip features an optional permanent write protection
2337 * of the first 8 kB. The erase function is the same as
2338 * above, but 00000H to 01FFFH will not be erased.
2339 * FIXME: add another eraser when partial erasers are
2340 * supported.
2341 */
2342 },
2343 .printlock = printlock_at49f,
2344 .write = write_jedec_1,
2345 .read = read_memmapped,
2346 .voltage = {4500, 5500},
2347 },
2348
2349 {
2350 .vendor = "Atmel",
2351 .name = "AT49F040",
2352 .bustype = BUS_PARALLEL,
2353 .manufacture_id = ATMEL_ID,
2354 .model_id = ATMEL_AT49F040,
2355 .total_size = 512,
2356 .page_size = 512,
2357 .feature_bits = FEATURE_EITHER_RESET,
2358 .tested = TEST_UNTESTED,
2359 .probe = probe_jedec,
2360 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2361 .block_erasers =
2362 {
2363 {
2364 .eraseblocks = { {512 * 1024, 1} },
2365 .block_erase = erase_chip_block_jedec,
2366 }
2367 /* Chip features an optional permanent write protection
2368 * of the first 16 kB. The erase function is the same as
2369 * above, but 00000H to 03FFFH will not be erased.
2370 * FIXME: add another eraser when partial erasers are
2371 * supported.
2372 */
2373 },
2374 .printlock = printlock_at49f,
2375 .write = write_jedec_1,
2376 .read = read_memmapped,
2377 .voltage = {4500, 5500},
2378 },
2379
2380 {
2381 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002382 .name = "AT49LH002",
2383 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2384 .manufacture_id = ATMEL_ID,
2385 .model_id = ATMEL_AT49LH002,
2386 .total_size = 256,
2387 .page_size = 0, /* unused */
2388 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2389 .tested = TEST_UNTESTED,
2390 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2391 .probe_timing = TIMING_FIXME,
2392 .block_erasers =
2393 {
2394 {
2395 .eraseblocks = {
2396 {64 * 1024, 3},
2397 {32 * 1024, 1},
2398 {8 * 1024, 2},
2399 {16 * 1024, 1},
2400 },
2401 .block_erase = erase_block_82802ab,
2402 }, {
2403 .eraseblocks = {
2404 {64 * 1024, 4},
2405 },
2406 .block_erase = NULL, /* TODO: Implement. */
2407 },
2408 },
2409 .printlock = NULL, /* TODO */
2410 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2411 .write = write_82802ab,
2412 .read = read_memmapped,
2413 .voltage = {3000, 3600},
2414 },
2415
2416 {
Andrew Morganca081462011-09-13 22:05:44 +00002417 .vendor = "Catalyst",
2418 .name = "CAT28F512",
2419 .bustype = BUS_PARALLEL,
2420 .manufacture_id = CATALYST_ID,
2421 .model_id = CATALYST_CAT28F512,
2422 .total_size = 64,
2423 .page_size = 0, /* unused */
2424 .feature_bits = 0,
2425 .tested = TEST_OK_PR,
2426 .probe = probe_jedec, /* FIXME! */
2427 .probe_timing = TIMING_ZERO,
2428 .block_erasers =
2429 {
2430 {
2431 .eraseblocks = { {64 * 1024, 1} },
2432 .block_erase = NULL, /* TODO */
2433 },
2434 },
2435 .write = NULL, /* TODO */
2436 .read = read_memmapped,
2437 .voltage = {4500, 5500},
2438 },
2439
2440 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002441 .vendor = "Bright",
2442 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002443 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002444 .manufacture_id = BRIGHT_ID,
2445 .model_id = BRIGHT_BM29F040,
2446 .total_size = 512,
2447 .page_size = 64 * 1024,
2448 .feature_bits = FEATURE_EITHER_RESET,
2449 .tested = TEST_OK_PR,
2450 .probe = probe_jedec,
2451 .probe_timing = TIMING_ZERO,
2452 .block_erasers =
2453 {
2454 {
2455 .eraseblocks = { {64 * 1024, 8} },
2456 .block_erase = erase_sector_jedec,
2457 }, {
2458 .eraseblocks = { {512 * 1024, 1} },
2459 .block_erase = erase_chip_block_jedec,
2460 },
2461 },
2462 .write = write_jedec_1,
2463 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002464 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002465 },
2466
2467 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002468 .vendor = "EMST",
2469 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002470 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002471 .manufacture_id = EMST_ID,
2472 .model_id = EMST_F49B002UA,
2473 .total_size = 256,
2474 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002475 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002476 .tested = TEST_UNTESTED,
2477 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002478 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002479 .block_erasers =
2480 {
2481 {
2482 .eraseblocks = {
2483 {128 * 1024, 1},
2484 {96 * 1024, 1},
2485 {8 * 1024, 2},
2486 {16 * 1024, 1},
2487 },
2488 .block_erase = erase_sector_jedec,
2489 }, {
2490 .eraseblocks = { {256 * 1024, 1} },
2491 .block_erase = erase_chip_block_jedec,
2492 }
2493 },
Sean Nelson35727f72010-01-28 23:55:12 +00002494 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002496 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002497 },
2498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002499 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002500 .vendor = "EMST",
2501 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002502 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002503 .manufacture_id = EMST_ID,
2504 .model_id = EMST_F25L008A,
2505 .total_size = 1024,
2506 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002507 .feature_bits = FEATURE_WRSR_EITHER,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002508 .tested = TEST_UNTESTED,
2509 .probe = probe_spi_rdid,
2510 .probe_timing = TIMING_ZERO,
2511 .block_erasers =
2512 {
2513 {
2514 .eraseblocks = { {4 * 1024, 256} },
2515 .block_erase = spi_block_erase_20,
2516 }, {
2517 .eraseblocks = { {64 * 1024, 16} },
2518 .block_erase = spi_block_erase_d8,
2519 }, {
2520 .eraseblocks = { {1024 * 1024, 1} },
2521 .block_erase = spi_block_erase_60,
2522 }, {
2523 .eraseblocks = { {1024 * 1024, 1} },
2524 .block_erase = spi_block_erase_c7,
2525 }
2526 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002527 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002528 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002529 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002530 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002531 },
2532
2533 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002534 .vendor = "Eon",
2535 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002536 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002537 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002538 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002539 .total_size = 64,
2540 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002541 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002542 .tested = TEST_UNTESTED,
2543 .probe = probe_spi_rdid,
2544 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002545 .block_erasers =
2546 {
2547 {
2548 .eraseblocks = {
2549 {4 * 1024, 2},
2550 {8 * 1024, 1},
2551 {16 * 1024, 1},
2552 {32 * 1024, 1},
2553 },
2554 .block_erase = spi_block_erase_d8,
2555 }, {
2556 .eraseblocks = { {64 * 1024, 1} },
2557 .block_erase = spi_block_erase_c7,
2558 }
2559 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002560 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002561 .write = spi_chip_write_256,
2562 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002563 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002564 },
2565
2566 {
2567 .vendor = "Eon",
2568 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002569 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002570 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002571 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002572 .total_size = 64,
2573 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002574 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002575 .tested = TEST_UNTESTED,
2576 .probe = probe_spi_rdid,
2577 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002578 .block_erasers =
2579 {
2580 {
2581 .eraseblocks = {
2582 {32 * 1024, 1},
2583 {16 * 1024, 1},
2584 {8 * 1024, 1},
2585 {4 * 1024, 2},
2586 },
2587 .block_erase = spi_block_erase_d8,
2588 }, {
2589 .eraseblocks = { {64 * 1024, 1} },
2590 .block_erase = spi_block_erase_c7,
2591 }
2592 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002593 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002594 .write = spi_chip_write_256,
2595 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002596 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002597 },
2598
2599 {
2600 .vendor = "Eon",
2601 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002602 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002603 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002604 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002605 .total_size = 128,
2606 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002607 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002608 .tested = TEST_UNTESTED,
2609 .probe = probe_spi_rdid,
2610 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002611 .block_erasers =
2612 {
2613 {
2614 .eraseblocks = {
2615 {4 * 1024, 2},
2616 {8 * 1024, 1},
2617 {16 * 1024, 1},
2618 {32 * 1024, 3},
2619 },
2620 .block_erase = spi_block_erase_d8,
2621 }, {
2622 .eraseblocks = { {128 * 1024, 1} },
2623 .block_erase = spi_block_erase_c7,
2624 }
2625 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002626 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002627 .write = spi_chip_write_256,
2628 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002629 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002630 },
2631
2632 {
2633 .vendor = "Eon",
2634 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002635 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002636 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002637 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002638 .total_size = 128,
2639 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002640 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002641 .tested = TEST_UNTESTED,
2642 .probe = probe_spi_rdid,
2643 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002644 .block_erasers =
2645 {
2646 {
2647 .eraseblocks = {
2648 {32 * 1024, 3},
2649 {16 * 1024, 1},
2650 {8 * 1024, 1},
2651 {4 * 1024, 2},
2652 },
2653 .block_erase = spi_block_erase_d8,
2654 }, {
2655 .eraseblocks = { {128 * 1024, 1} },
2656 .block_erase = spi_block_erase_c7,
2657 }
2658 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002659 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002660 .write = spi_chip_write_256,
2661 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002662 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002663 },
2664
2665 {
2666 .vendor = "Eon",
2667 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002668 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002669 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002670 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002671 .total_size = 256,
2672 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002673 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002674 .tested = TEST_UNTESTED,
2675 .probe = probe_spi_rdid,
2676 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002677 .block_erasers =
2678 {
2679 {
2680 .eraseblocks = {
2681 {4 * 1024, 2},
2682 {8 * 1024, 1},
2683 {16 * 1024, 1},
2684 {32 * 1024, 1},
2685 {64 * 1024, 3}
2686 },
2687 .block_erase = spi_block_erase_d8,
2688 }, {
2689 .eraseblocks = { {256 * 1024, 1} },
2690 .block_erase = spi_block_erase_c7,
2691 }
2692 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002693 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002694 .write = spi_chip_write_256,
2695 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002696 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002697 },
2698
2699 {
2700 .vendor = "Eon",
2701 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002702 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002703 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002704 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002705 .total_size = 256,
2706 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002707 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002708 .tested = TEST_UNTESTED,
2709 .probe = probe_spi_rdid,
2710 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002711 .block_erasers =
2712 {
2713 {
2714 .eraseblocks = {
2715 {64 * 1024, 3},
2716 {32 * 1024, 1},
2717 {16 * 1024, 1},
2718 {8 * 1024, 1},
2719 {4 * 1024, 2},
2720 },
2721 .block_erase = spi_block_erase_d8,
2722 }, {
2723 .eraseblocks = { {256 * 1024, 1} },
2724 .block_erase = spi_block_erase_c7,
2725 }
2726 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002727 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002728 .write = spi_chip_write_256,
2729 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002730 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002731 },
2732
2733 {
2734 .vendor = "Eon",
2735 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002736 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002737 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002738 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002739 .total_size = 512,
2740 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002741 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002742 .tested = TEST_UNTESTED,
2743 .probe = probe_spi_rdid,
2744 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002745 .block_erasers =
2746 {
2747 {
2748 .eraseblocks = {
2749 {4 * 1024, 2},
2750 {8 * 1024, 1},
2751 {16 * 1024, 1},
2752 {32 * 1024, 1},
2753 {64 * 1024, 7}
2754 },
2755 .block_erase = spi_block_erase_d8,
2756 }, {
2757 .eraseblocks = { {512 * 1024, 1} },
2758 .block_erase = spi_block_erase_c7,
2759 }
2760 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002761 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002762 .write = spi_chip_write_256,
2763 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002764 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002765 },
2766
2767 {
2768 .vendor = "Eon",
2769 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002770 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002771 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002772 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002773 .total_size = 512,
2774 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002775 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002776 .tested = TEST_UNTESTED,
2777 .probe = probe_spi_rdid,
2778 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002779 .block_erasers =
2780 {
2781 {
2782 .eraseblocks = {
2783 {64 * 1024, 7},
2784 {32 * 1024, 1},
2785 {16 * 1024, 1},
2786 {8 * 1024, 1},
2787 {4 * 1024, 2},
2788 },
2789 .block_erase = spi_block_erase_d8,
2790 }, {
2791 .eraseblocks = { {512 * 1024, 1} },
2792 .block_erase = spi_block_erase_c7,
2793 }
2794 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002795 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002796 .write = spi_chip_write_256,
2797 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002798 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002799 },
2800
2801 {
2802 .vendor = "Eon",
2803 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002804 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002805 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002806 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002807 .total_size = 1024,
2808 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002809 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002810 .tested = TEST_UNTESTED,
2811 .probe = probe_spi_rdid,
2812 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002813 .block_erasers =
2814 {
2815 {
2816 .eraseblocks = {
2817 {4 * 1024, 2},
2818 {8 * 1024, 1},
2819 {16 * 1024, 1},
2820 {32 * 1024, 1},
2821 {64 * 1024, 15}
2822 },
2823 .block_erase = spi_block_erase_d8,
2824 }, {
2825 .eraseblocks = { {1024 * 1024, 1} },
2826 .block_erase = spi_block_erase_c7,
2827 }
2828 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002829 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002830 .write = spi_chip_write_256,
2831 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002832 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002833 },
2834
2835 {
2836 .vendor = "Eon",
2837 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002838 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002839 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002840 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002841 .total_size = 1024,
2842 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002843 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002844 .tested = TEST_UNTESTED,
2845 .probe = probe_spi_rdid,
2846 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002847 .block_erasers =
2848 {
2849 {
2850 .eraseblocks = {
2851 {64 * 1024, 15},
2852 {32 * 1024, 1},
2853 {16 * 1024, 1},
2854 {8 * 1024, 1},
2855 {4 * 1024, 2},
2856 },
2857 .block_erase = spi_block_erase_d8,
2858 }, {
2859 .eraseblocks = { {1024 * 1024, 1} },
2860 .block_erase = spi_block_erase_c7,
2861 }
2862 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002863 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002864 .write = spi_chip_write_256,
2865 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002866 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002867 },
2868
2869 {
2870 .vendor = "Eon",
2871 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002872 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002873 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002874 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002875 .total_size = 2048,
2876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002878 .tested = TEST_UNTESTED,
2879 .probe = probe_spi_rdid,
2880 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002881 .block_erasers =
2882 {
2883 {
2884 .eraseblocks = {
2885 {4 * 1024, 2},
2886 {8 * 1024, 1},
2887 {16 * 1024, 1},
2888 {32 * 1024, 1},
2889 {64 * 1024, 31},
2890 },
2891 .block_erase = spi_block_erase_d8,
2892 }, {
2893 .eraseblocks = { {2 * 1024 * 1024, 1} },
2894 .block_erase = spi_block_erase_c7,
2895 }
2896 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002897 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002898 .write = spi_chip_write_256,
2899 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002900 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002901 },
2902
2903 {
2904 .vendor = "Eon",
2905 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002906 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002908 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002909 .total_size = 2048,
2910 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002911 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002912 .tested = TEST_UNTESTED,
2913 .probe = probe_spi_rdid,
2914 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002915 .block_erasers =
2916 {
2917 {
2918 .eraseblocks = {
2919 {64 * 1024, 31},
2920 {32 * 1024, 1},
2921 {16 * 1024, 1},
2922 {8 * 1024, 1},
2923 {4 * 1024, 2},
2924 },
2925 .block_erase = spi_block_erase_d8,
2926 }, {
2927 .eraseblocks = { {2 * 1024 * 1024, 1} },
2928 .block_erase = spi_block_erase_c7,
2929 }
2930 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002932 .write = spi_chip_write_256,
2933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002934 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002935 },
2936
2937 {
2938 .vendor = "Eon",
2939 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002942 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002943 .total_size = 4096,
2944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002946 .tested = TEST_UNTESTED,
2947 .probe = probe_spi_rdid,
2948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002949 .block_erasers =
2950 {
2951 {
2952 .eraseblocks = {
2953 {4 * 1024, 2},
2954 {8 * 1024, 1},
2955 {16 * 1024, 1},
2956 {32 * 1024, 1},
2957 {64 * 1024, 63},
2958 },
2959 .block_erase = spi_block_erase_d8,
2960 }, {
2961 .eraseblocks = { {4 * 1024 * 1024, 1} },
2962 .block_erase = spi_block_erase_c7,
2963 }
2964 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002965 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002966 .write = spi_chip_write_256,
2967 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002968 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002969 },
2970
2971 {
2972 .vendor = "Eon",
2973 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002974 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002975 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002976 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002977 .total_size = 4096,
2978 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002979 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002980 .tested = TEST_UNTESTED,
2981 .probe = probe_spi_rdid,
2982 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002983 .block_erasers =
2984 {
2985 {
2986 .eraseblocks = {
2987 {64 * 1024, 63},
2988 {32 * 1024, 1},
2989 {16 * 1024, 1},
2990 {8 * 1024, 1},
2991 {4 * 1024, 2},
2992 },
2993 .block_erase = spi_block_erase_d8,
2994 }, {
2995 .eraseblocks = { {4 * 1024 * 1024, 1} },
2996 .block_erase = spi_block_erase_c7,
2997 }
2998 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002999 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003000 .write = spi_chip_write_256,
3001 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003002 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003003 },
3004
3005 {
3006 .vendor = "Eon",
3007 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003008 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003009 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003010 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003011 .total_size = 8192,
3012 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003013 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003014 .tested = TEST_UNTESTED,
3015 .probe = probe_spi_rdid,
3016 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003017 .block_erasers =
3018 {
3019 {
3020 .eraseblocks = {
3021 {4 * 1024, 2},
3022 {8 * 1024, 1},
3023 {16 * 1024, 1},
3024 {32 * 1024, 1},
3025 {64 * 1024, 127},
3026 },
3027 .block_erase = spi_block_erase_d8,
3028 }, {
3029 .eraseblocks = { {8 * 1024 * 1024, 1} },
3030 .block_erase = spi_block_erase_c7,
3031 }
3032 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003033 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003034 .write = spi_chip_write_256,
3035 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003036 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003037 },
3038
3039 {
3040 .vendor = "Eon",
3041 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003042 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003043 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003044 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003045 .total_size = 8192,
3046 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003047 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003048 .tested = TEST_UNTESTED,
3049 .probe = probe_spi_rdid,
3050 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003051 .block_erasers =
3052 {
3053 {
3054 .eraseblocks = {
3055 {64 * 1024, 127},
3056 {32 * 1024, 1},
3057 {16 * 1024, 1},
3058 {8 * 1024, 1},
3059 {4 * 1024, 2},
3060 },
3061 .block_erase = spi_block_erase_d8,
3062 }, {
3063 .eraseblocks = { {8 * 1024 * 1024, 1} },
3064 .block_erase = spi_block_erase_c7,
3065 }
3066 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003067 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003068 .write = spi_chip_write_256,
3069 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003070 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003071 },
3072
3073 {
3074 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003075 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003076 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003077 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003078 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003079 .total_size = 64,
3080 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003081 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003082 .tested = TEST_UNTESTED,
3083 .probe = probe_spi_rdid,
3084 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003085 .block_erasers =
3086 {
3087 {
3088 .eraseblocks = { {4 * 1024, 16} },
3089 .block_erase = spi_block_erase_20,
3090 }, {
3091 .eraseblocks = { {32 * 1024, 2} },
3092 .block_erase = spi_block_erase_d8,
3093 }, {
3094 .eraseblocks = { {32 * 1024, 2} },
3095 .block_erase = spi_block_erase_52,
3096 }, {
3097 .eraseblocks = { {64 * 1024, 1} },
3098 .block_erase = spi_block_erase_60,
3099 }, {
3100 .eraseblocks = { {64 * 1024, 1} },
3101 .block_erase = spi_block_erase_c7,
3102 }
3103 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003104 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003105 .write = spi_chip_write_256,
3106 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003107 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003108 },
3109
3110 {
3111 .vendor = "Eon",
3112 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003113 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003114 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003115 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003116 .total_size = 128,
3117 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003118 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003119 .tested = TEST_UNTESTED,
3120 .probe = probe_spi_rdid,
3121 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003122 .block_erasers =
3123 {
3124 {
3125 .eraseblocks = { {4 * 1024, 32} },
3126 .block_erase = spi_block_erase_20,
3127 }, {
3128 .eraseblocks = { {32 * 1024, 4} },
3129 .block_erase = spi_block_erase_d8,
3130 }, {
3131 .eraseblocks = { {32 * 1024, 4} },
3132 .block_erase = spi_block_erase_52,
3133 }, {
3134 .eraseblocks = { {128 * 1024, 1} },
3135 .block_erase = spi_block_erase_60,
3136 }, {
3137 .eraseblocks = { {128 * 1024, 1} },
3138 .block_erase = spi_block_erase_c7,
3139 }
3140 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003141 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003142 .write = spi_chip_write_256,
3143 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003144 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003145 },
3146
3147 {
3148 .vendor = "Eon",
3149 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003150 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003151 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003152 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003153 .total_size = 256,
3154 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003155 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003156 .tested = TEST_UNTESTED,
3157 .probe = probe_spi_rdid,
3158 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003159 .block_erasers =
3160 {
3161 {
3162 .eraseblocks = { {4 * 1024, 64} },
3163 .block_erase = spi_block_erase_20,
3164 }, {
3165 .eraseblocks = { {64 * 1024, 4} },
3166 .block_erase = spi_block_erase_d8,
3167 }, {
3168 .eraseblocks = { {64 * 1024, 4} },
3169 .block_erase = spi_block_erase_52,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = spi_block_erase_60,
3173 }, {
3174 .eraseblocks = { {256 * 1024, 1} },
3175 .block_erase = spi_block_erase_c7,
3176 }
3177 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003178 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003179 .write = spi_chip_write_256,
3180 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003181 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003182 },
3183
3184 {
3185 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003186 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003187 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003188 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003189 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003190 .total_size = 512,
3191 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003192 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003193 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .probe = probe_spi_rdid,
3195 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003196 .block_erasers =
3197 {
3198 {
Sean Nelson54596372010-01-09 05:30:14 +00003199 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003200 .block_erase = spi_block_erase_20,
3201 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003202 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003203 .block_erase = spi_block_erase_d8,
3204 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003205 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003206 .block_erase = spi_block_erase_60,
3207 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003208 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003209 .block_erase = spi_block_erase_c7,
3210 },
3211 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003212 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003213 .write = spi_chip_write_256,
3214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003215 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003216 },
3217
3218 {
3219 .vendor = "Eon",
3220 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003221 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003222 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003223 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003224 .total_size = 1024,
3225 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003226 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003227 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003228 .probe = probe_spi_rdid,
3229 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003230 .block_erasers =
3231 {
3232 {
3233 .eraseblocks = { {4 * 1024, 256} },
3234 .block_erase = spi_block_erase_20,
3235 }, {
3236 .eraseblocks = { {64 * 1024, 16} },
3237 .block_erase = spi_block_erase_d8,
3238 }, {
3239 .eraseblocks = { {1024 * 1024, 1} },
3240 .block_erase = spi_block_erase_60,
3241 }, {
3242 .eraseblocks = { {1024 * 1024, 1} },
3243 .block_erase = spi_block_erase_c7,
3244 }
3245 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003246 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003247 .write = spi_chip_write_256,
3248 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003249 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003250 },
3251
3252 {
3253 .vendor = "Eon",
3254 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003255 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003256 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003257 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003258 .total_size = 2048,
3259 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003260 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003261 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003262 .probe = probe_spi_rdid,
3263 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003264 .block_erasers =
3265 {
3266 {
3267 .eraseblocks = { {4 * 1024, 512} },
3268 .block_erase = spi_block_erase_20,
3269 }, {
3270 .eraseblocks = { {64 * 1024, 32} },
3271 .block_erase = spi_block_erase_d8,
3272 }, {
3273 .eraseblocks = { {2 * 1024 * 1024, 1} },
3274 .block_erase = spi_block_erase_60,
3275 }, {
3276 .eraseblocks = { {2 * 1024 * 1024, 1} },
3277 .block_erase = spi_block_erase_c7,
3278 }
3279 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003280 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003281 .write = spi_chip_write_256,
3282 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003283 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003284 },
3285
3286 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003287 .vendor = "Eon",
3288 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003289 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003290 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003291 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003292 .total_size = 4096,
3293 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003294 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003295 .tested = TEST_UNTESTED,
3296 .probe = probe_spi_rdid,
3297 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003298 .block_erasers =
3299 {
3300 {
3301 .eraseblocks = { {4 * 1024, 1024} },
3302 .block_erase = spi_block_erase_20,
3303 }, {
3304 .eraseblocks = { {64 * 1024, 64} },
3305 .block_erase = spi_block_erase_d8,
3306 }, {
3307 .eraseblocks = { {4 * 1024 * 1024, 1} },
3308 .block_erase = spi_block_erase_60,
3309 }, {
3310 .eraseblocks = { {4 * 1024 * 1024, 1} },
3311 .block_erase = spi_block_erase_c7,
3312 }
3313 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003314 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003315 .write = spi_chip_write_256,
3316 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003317 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003318 },
3319
3320 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003321 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003322 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003323 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003324 .manufacture_id = EON_ID_NOPREFIX,
3325 .model_id = EON_EN25Q40,
3326 .total_size = 512,
3327 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003328 /* OTP: 256B total; enter 0x3A */
3329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003330 .tested = TEST_UNTESTED,
3331 .probe = probe_spi_rdid,
3332 .probe_timing = TIMING_ZERO,
3333 .block_erasers =
3334 {
3335 {
3336 .eraseblocks = { {4 * 1024, 128} },
3337 .block_erase = spi_block_erase_20,
3338 }, {
3339 .eraseblocks = { {64 * 1024, 8} },
3340 .block_erase = spi_block_erase_d8,
3341 }, {
3342 .eraseblocks = { {512 * 1024, 1} },
3343 .block_erase = spi_block_erase_60,
3344 }, {
3345 .eraseblocks = { {512 * 1024, 1} },
3346 .block_erase = spi_block_erase_c7,
3347 }
3348 },
3349 .unlock = spi_disable_blockprotect,
3350 .write = spi_chip_write_256,
3351 .read = spi_chip_read,
3352 .voltage = {2700, 3600},
3353 },
3354
3355 {
3356 .vendor = "Eon",
3357 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003358 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003359 .manufacture_id = EON_ID_NOPREFIX,
3360 .model_id = EON_EN25Q80,
3361 .total_size = 1024,
3362 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003363 /* OTP: 256B total; enter 0x3A */
3364 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003365 .tested = TEST_UNTESTED,
3366 .probe = probe_spi_rdid,
3367 .probe_timing = TIMING_ZERO,
3368 .block_erasers =
3369 {
3370 {
3371 .eraseblocks = { {4 * 1024, 256} },
3372 .block_erase = spi_block_erase_20,
3373 }, {
3374 .eraseblocks = { {64 * 1024, 16} },
3375 .block_erase = spi_block_erase_d8,
3376 }, {
3377 .eraseblocks = { {1024 * 1024, 1} },
3378 .block_erase = spi_block_erase_60,
3379 }, {
3380 .eraseblocks = { {1024 * 1024, 1} },
3381 .block_erase = spi_block_erase_c7,
3382 }
3383 },
3384 .unlock = spi_disable_blockprotect,
3385 .write = spi_chip_write_256,
3386 .read = spi_chip_read,
3387 .voltage = {2700, 3600},
3388 },
3389
3390 {
3391 /* Note: EN25D16 is an evil twin which shares the model ID
3392 but has different write protection capabilities */
3393 .vendor = "Eon",
3394 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003395 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003396 .manufacture_id = EON_ID_NOPREFIX,
3397 .model_id = EON_EN25Q16,
3398 .total_size = 2048,
3399 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003400 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003402 .tested = TEST_UNTESTED,
3403 .probe = probe_spi_rdid,
3404 .probe_timing = TIMING_ZERO,
3405 .block_erasers =
3406 {
3407 {
3408 .eraseblocks = { {4 * 1024, 512} },
3409 .block_erase = spi_block_erase_20,
3410 }, {
3411 .eraseblocks = { {64 * 1024, 32} },
3412 .block_erase = spi_block_erase_d8,
3413 }, {
3414 /* not supported by Q16 version */
3415 .eraseblocks = { {64 * 1024, 32} },
3416 .block_erase = spi_block_erase_52,
3417 }, {
3418 .eraseblocks = { {2 * 1024 * 1024, 1} },
3419 .block_erase = spi_block_erase_60,
3420 }, {
3421 .eraseblocks = { {2 * 1024 * 1024, 1} },
3422 .block_erase = spi_block_erase_c7,
3423 }
3424 },
3425 .unlock = spi_disable_blockprotect,
3426 .write = spi_chip_write_256,
3427 .read = spi_chip_read,
3428 .voltage = {2700, 3600},
3429 },
3430
3431 {
3432 .vendor = "Eon",
3433 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003434 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003435 .manufacture_id = EON_ID_NOPREFIX,
3436 .model_id = EON_EN25Q32,
3437 .total_size = 4096,
3438 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003439 /* OTP: 512B total; enter 0x3A */
3440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003441 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003442 .probe = probe_spi_rdid,
3443 .probe_timing = TIMING_ZERO,
3444 .block_erasers =
3445 {
3446 {
3447 .eraseblocks = { {4 * 1024, 1024} },
3448 .block_erase = spi_block_erase_20,
3449 }, {
3450 .eraseblocks = { {64 * 1024, 64} },
3451 .block_erase = spi_block_erase_d8,
3452 }, {
3453 .eraseblocks = { {4 * 1024 * 1024, 1} },
3454 .block_erase = spi_block_erase_60,
3455 }, {
3456 .eraseblocks = { {4 * 1024 * 1024, 1} },
3457 .block_erase = spi_block_erase_c7,
3458 }
3459 },
3460 .unlock = spi_disable_blockprotect,
3461 .write = spi_chip_write_256,
3462 .read = spi_chip_read,
3463 .voltage = {2700, 3600},
3464 },
3465
3466 {
3467 .vendor = "Eon",
3468 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003469 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003470 .manufacture_id = EON_ID_NOPREFIX,
3471 .model_id = EON_EN25Q64,
3472 .total_size = 8192,
3473 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003474 /* OTP: 512B total; enter 0x3A */
3475 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003476 .tested = TEST_UNTESTED,
3477 .probe = probe_spi_rdid,
3478 .probe_timing = TIMING_ZERO,
3479 .block_erasers =
3480 {
3481 {
3482 .eraseblocks = { {4 * 1024, 2048} },
3483 .block_erase = spi_block_erase_20,
3484 }, {
3485 .eraseblocks = { {64 * 1024, 128} },
3486 .block_erase = spi_block_erase_d8,
3487 }, {
3488 .eraseblocks = { {8 * 1024 * 1024, 1} },
3489 .block_erase = spi_block_erase_60,
3490 }, {
3491 .eraseblocks = { {8 * 1024 * 1024, 1} },
3492 .block_erase = spi_block_erase_c7,
3493 }
3494 },
3495 .unlock = spi_disable_blockprotect,
3496 .write = spi_chip_write_256,
3497 .read = spi_chip_read,
3498 .voltage = {2700, 3600},
3499 },
3500
3501 {
3502 .vendor = "Eon",
3503 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003504 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003505 .manufacture_id = EON_ID_NOPREFIX,
3506 .model_id = EON_EN25Q128,
3507 .total_size = 16384,
3508 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003509 /* OTP: 512B total; enter 0x3A */
3510 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003511 .tested = TEST_UNTESTED,
3512 .probe = probe_spi_rdid,
3513 .probe_timing = TIMING_ZERO,
3514 .block_erasers =
3515 {
3516 {
3517 .eraseblocks = { {4 * 1024, 4096} },
3518 .block_erase = spi_block_erase_20,
3519 }, {
3520 .eraseblocks = { {64 * 1024, 256} },
3521 .block_erase = spi_block_erase_d8,
3522 }, {
3523 .eraseblocks = { {16 * 1024 * 1024, 1} },
3524 .block_erase = spi_block_erase_60,
3525 }, {
3526 .eraseblocks = { {16 * 1024 * 1024, 1} },
3527 .block_erase = spi_block_erase_c7,
3528 }
3529 },
3530 .unlock = spi_disable_blockprotect,
3531 .write = spi_chip_write_256,
3532 .read = spi_chip_read,
3533 },
3534
3535 {
3536 .vendor = "Eon",
3537 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003538 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003539 .manufacture_id = EON_ID_NOPREFIX,
3540 .model_id = EON_EN25QH16,
3541 .total_size = 2048,
3542 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003543 /* supports SFDP */
3544 /* OTP: 512B total; enter 0x3A */
3545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003546 .tested = TEST_UNTESTED,
3547 .probe = probe_spi_rdid,
3548 .probe_timing = TIMING_ZERO,
3549 .block_erasers =
3550 {
3551 {
3552 .eraseblocks = { {4 * 1024, 512} },
3553 .block_erase = spi_block_erase_20,
3554 }, {
3555 .eraseblocks = { {64 * 1024, 32} },
3556 .block_erase = spi_block_erase_d8,
3557 }, {
3558 .eraseblocks = { {1024 * 2048, 1} },
3559 .block_erase = spi_block_erase_60,
3560 }, {
3561 .eraseblocks = { {1024 * 2048, 1} },
3562 .block_erase = spi_block_erase_c7,
3563 }
3564 },
3565 .unlock = spi_disable_blockprotect,
3566 .write = spi_chip_write_256,
3567 .read = spi_chip_read,
3568 .voltage = {2700, 3600},
3569 },
3570
3571 {
3572 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003573 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003574 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003575 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003576 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003577 .total_size = 128,
3578 .page_size = 128,
3579 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003580 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003581 .probe = probe_jedec,
3582 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = { {16 * 1024, 8} },
3587 .block_erase = erase_sector_jedec,
3588 },
3589 {
3590 .eraseblocks = { {128 * 1024, 1} },
3591 .block_erase = erase_chip_block_jedec,
3592 },
3593 },
3594 .write = write_jedec_1,
3595 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003596 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003597 },
3598
3599 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003600 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003601 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003602 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003603 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003604 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003605 .total_size = 256,
3606 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003607 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003608 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003609 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003610 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003611 .block_erasers =
3612 {
3613 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003614 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003615 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003616 {8 * 1024, 2},
3617 {32 * 1024, 1},
3618 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003619 },
3620 .block_erase = erase_sector_jedec,
3621 }, {
3622 .eraseblocks = { {256 * 1024, 1} },
3623 .block_erase = erase_chip_block_jedec,
3624 },
3625 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003626 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003628 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003629 },
3630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003631 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003632 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003633 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003634 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003635 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003636 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003637 .total_size = 256,
3638 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003639 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003640 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003641 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003642 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003643 .block_erasers =
3644 {
3645 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003646 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003647 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003648 {32 * 1024, 1},
3649 {8 * 1024, 2},
3650 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003651 },
3652 .block_erase = erase_sector_jedec,
3653 }, {
3654 .eraseblocks = { {256 * 1024, 1} },
3655 .block_erase = erase_chip_block_jedec,
3656 },
3657 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003658 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003660 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003661 },
3662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003663 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003664 .vendor = "Eon",
3665 .name = "EN29LV640B",
3666 .bustype = BUS_PARALLEL,
3667 .manufacture_id = EON_ID,
3668 .model_id = EON_EN29LV640B,
3669 .total_size = 8192,
3670 .page_size = 8192,
3671 .feature_bits = 0,
3672 .tested = TEST_OK_PREW,
3673 .probe = probe_en29lv640b,
3674 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3675 .block_erasers =
3676 {
3677 {
3678 .eraseblocks = {
3679 {8 * 1024, 8},
3680 {64 * 1024, 127},
3681 },
3682 .block_erase = block_erase_en29lv640b,
3683 }, {
3684 .eraseblocks = { {8 * 1024 * 1024, 1} },
3685 .block_erase = block_erase_chip_en29lv640b,
3686 },
3687 },
3688 .write = write_en29lv640b,
3689 .read = read_memmapped,
3690 .voltage = {2700, 3600},
3691 },
3692
3693 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003694 .vendor = "Fujitsu",
3695 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003697 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003698 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003699 .total_size = 512,
3700 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003701 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003702 .tested = TEST_UNTESTED,
3703 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003704 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003705 .block_erasers =
3706 {
3707 {
3708 .eraseblocks = {
3709 {16 * 1024, 1},
3710 {8 * 1024, 2},
3711 {32 * 1024, 1},
3712 {64 * 1024, 7},
3713 },
Sean Nelson35727f72010-01-28 23:55:12 +00003714 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003715 }, {
3716 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003717 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003718 },
3719 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003720 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003722 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003723 },
3724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003725 {
3726 .vendor = "Fujitsu",
3727 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003728 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003729 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003730 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003731 .total_size = 512,
3732 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003733 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003734 .tested = TEST_UNTESTED,
3735 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003736 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003737 .block_erasers =
3738 {
3739 {
3740 .eraseblocks = {
3741 {64 * 1024, 7},
3742 {32 * 1024, 1},
3743 {8 * 1024, 2},
3744 {16 * 1024, 1},
3745 },
Sean Nelson35727f72010-01-28 23:55:12 +00003746 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003747 }, {
3748 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003749 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003750 },
3751 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003752 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003754 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003755 },
3756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003757 {
Sean Nelson35727f72010-01-28 23:55:12 +00003758 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003759 .vendor = "Fujitsu",
3760 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003761 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003762 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003763 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003764 .total_size = 512,
3765 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003766 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003767 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003768 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003769 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003770 .block_erasers =
3771 {
3772 {
3773 .eraseblocks = {
3774 {16 * 1024, 1},
3775 {8 * 1024, 2},
3776 {32 * 1024, 1},
3777 {64 * 1024, 7},
3778 },
3779 .block_erase = block_erase_m29f400bt,
3780 }, {
3781 .eraseblocks = { {512 * 1024, 1} },
3782 .block_erase = block_erase_chip_m29f400bt,
3783 },
3784 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003785 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003786 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003787 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003788 },
3789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003790 {
3791 .vendor = "Fujitsu",
3792 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003793 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003794 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003795 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003796 .total_size = 512,
3797 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003798 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003799 .tested = TEST_UNTESTED,
3800 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003801 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003802 .block_erasers =
3803 {
3804 {
3805 .eraseblocks = {
3806 {64 * 1024, 7},
3807 {32 * 1024, 1},
3808 {8 * 1024, 2},
3809 {16 * 1024, 1},
3810 },
3811 .block_erase = block_erase_m29f400bt,
3812 }, {
3813 .eraseblocks = { {512 * 1024, 1} },
3814 .block_erase = block_erase_chip_m29f400bt,
3815 },
3816 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003817 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003818 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003819 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003820 },
3821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003822 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003823 .vendor = "GigaDevice",
3824 .name = "GD25Q20",
3825 .bustype = BUS_SPI,
3826 .manufacture_id = GIGADEVICE_ID,
3827 .model_id = GIGADEVICE_GD25Q20,
3828 .total_size = 256,
3829 .page_size = 256,
3830 .feature_bits = FEATURE_WRSR_WREN,
3831 .tested = TEST_UNTESTED,
3832 .probe = probe_spi_rdid,
3833 .probe_timing = TIMING_ZERO,
3834 .block_erasers =
3835 {
3836 {
3837 .eraseblocks = { {4 * 1024, 64} },
3838 .block_erase = spi_block_erase_20,
3839 }, {
3840 .eraseblocks = { {32 * 1024, 8} },
3841 .block_erase = spi_block_erase_52,
3842 }, {
3843 .eraseblocks = { {64 * 1024, 4} },
3844 .block_erase = spi_block_erase_d8,
3845 }, {
3846 .eraseblocks = { {256 * 1024, 1} },
3847 .block_erase = spi_block_erase_60,
3848 }, {
3849 .eraseblocks = { {256 * 1024, 1} },
3850 .block_erase = spi_block_erase_c7,
3851 }
3852 },
3853 .unlock = spi_disable_blockprotect,
3854 .write = spi_chip_write_256,
3855 .read = spi_chip_read,
3856 .voltage = {2700, 3600},
3857 },
3858
3859 {
3860 .vendor = "GigaDevice",
3861 .name = "GD25Q40",
3862 .bustype = BUS_SPI,
3863 .manufacture_id = GIGADEVICE_ID,
3864 .model_id = GIGADEVICE_GD25Q40,
3865 .total_size = 512,
3866 .page_size = 256,
3867 .feature_bits = FEATURE_WRSR_WREN,
3868 .tested = TEST_UNTESTED,
3869 .probe = probe_spi_rdid,
3870 .probe_timing = TIMING_ZERO,
3871 .block_erasers =
3872 {
3873 {
3874 .eraseblocks = { {4 * 1024, 128} },
3875 .block_erase = spi_block_erase_20,
3876 }, {
3877 .eraseblocks = { {32 * 1024, 16} },
3878 .block_erase = spi_block_erase_52,
3879 }, {
3880 .eraseblocks = { {64 * 1024, 8} },
3881 .block_erase = spi_block_erase_d8,
3882 }, {
3883 .eraseblocks = { {512 * 1024, 1} },
3884 .block_erase = spi_block_erase_60,
3885 }, {
3886 .eraseblocks = { {512 * 1024, 1} },
3887 .block_erase = spi_block_erase_c7,
3888 }
3889 },
3890 .unlock = spi_disable_blockprotect,
3891 .write = spi_chip_write_256,
3892 .read = spi_chip_read,
3893 .voltage = {2700, 3600},
3894 },
3895
3896 {
3897 .vendor = "GigaDevice",
3898 .name = "GD25Q80",
3899 .bustype = BUS_SPI,
3900 .manufacture_id = GIGADEVICE_ID,
3901 .model_id = GIGADEVICE_GD25Q80,
3902 .total_size = 1024,
3903 .page_size = 256,
3904 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3906 .tested = TEST_OK_PREW,
3907 .probe = probe_spi_rdid,
3908 .probe_timing = TIMING_ZERO,
3909 .block_erasers =
3910 {
3911 {
3912 .eraseblocks = { {4 * 1024, 256} },
3913 .block_erase = spi_block_erase_20,
3914 }, {
3915 .eraseblocks = { {32 * 1024, 32} },
3916 .block_erase = spi_block_erase_52,
3917 }, {
3918 .eraseblocks = { {64 * 1024, 16} },
3919 .block_erase = spi_block_erase_d8,
3920 }, {
3921 .eraseblocks = { {1024 * 1024, 1} },
3922 .block_erase = spi_block_erase_60,
3923 }, {
3924 .eraseblocks = { {1024 * 1024, 1} },
3925 .block_erase = spi_block_erase_c7,
3926 }
3927 },
3928 .unlock = spi_disable_blockprotect,
3929 .write = spi_chip_write_256,
3930 .read = spi_chip_read,
3931 .voltage = {2700, 3600},
3932 },
3933
3934 {
3935 .vendor = "GigaDevice",
3936 .name = "GD25Q16",
3937 .bustype = BUS_SPI,
3938 .manufacture_id = GIGADEVICE_ID,
3939 .model_id = GIGADEVICE_GD25Q16,
3940 .total_size = 2048,
3941 .page_size = 256,
3942 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3943 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3944 .tested = TEST_UNTESTED,
3945 .probe = probe_spi_rdid,
3946 .probe_timing = TIMING_ZERO,
3947 .block_erasers =
3948 {
3949 {
3950 .eraseblocks = { {4 * 1024, 512} },
3951 .block_erase = spi_block_erase_20,
3952 }, {
3953 .eraseblocks = { {32 * 1024, 64} },
3954 .block_erase = spi_block_erase_52,
3955 }, {
3956 .eraseblocks = { {64 * 1024, 32} },
3957 .block_erase = spi_block_erase_d8,
3958 }, {
3959 .eraseblocks = { {2 * 1024 * 1024, 1} },
3960 .block_erase = spi_block_erase_60,
3961 }, {
3962 .eraseblocks = { {2 * 1024 * 1024, 1} },
3963 .block_erase = spi_block_erase_c7,
3964 }
3965 },
3966 .unlock = spi_disable_blockprotect,
3967 .write = spi_chip_write_256,
3968 .read = spi_chip_read,
3969 .voltage = {2700, 3600},
3970 },
3971
3972 {
3973 .vendor = "GigaDevice",
3974 .name = "GD25Q32",
3975 .bustype = BUS_SPI,
3976 .manufacture_id = GIGADEVICE_ID,
3977 .model_id = GIGADEVICE_GD25Q32,
3978 .total_size = 4096,
3979 .page_size = 256,
3980 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3981 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3982 .tested = TEST_UNTESTED,
3983 .probe = probe_spi_rdid,
3984 .probe_timing = TIMING_ZERO,
3985 .block_erasers =
3986 {
3987 {
3988 .eraseblocks = { {4 * 1024, 1024} },
3989 .block_erase = spi_block_erase_20,
3990 }, {
3991 .eraseblocks = { {32 * 1024, 128} },
3992 .block_erase = spi_block_erase_52,
3993 }, {
3994 .eraseblocks = { {64 * 1024, 64} },
3995 .block_erase = spi_block_erase_d8,
3996 }, {
3997 .eraseblocks = { {4 * 1024 * 1024, 1} },
3998 .block_erase = spi_block_erase_60,
3999 }, {
4000 .eraseblocks = { {4 * 1024 * 1024, 1} },
4001 .block_erase = spi_block_erase_c7,
4002 }
4003 },
4004 .unlock = spi_disable_blockprotect,
4005 .write = spi_chip_write_256,
4006 .read = spi_chip_read,
4007 .voltage = {2700, 3600},
4008 },
4009
4010 {
4011 .vendor = "GigaDevice",
4012 .name = "GD25Q64",
4013 .bustype = BUS_SPI,
4014 .manufacture_id = GIGADEVICE_ID,
4015 .model_id = GIGADEVICE_GD25Q64,
4016 .total_size = 8192,
4017 .page_size = 256,
4018 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4019 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4020 .tested = TEST_UNTESTED,
4021 .probe = probe_spi_rdid,
4022 .probe_timing = TIMING_ZERO,
4023 .block_erasers =
4024 {
4025 {
4026 .eraseblocks = { {4 * 1024, 2048} },
4027 .block_erase = spi_block_erase_20,
4028 }, {
4029 .eraseblocks = { {32 * 1024, 256} },
4030 .block_erase = spi_block_erase_52,
4031 }, {
4032 .eraseblocks = { {64 * 1024, 128} },
4033 .block_erase = spi_block_erase_d8,
4034 }, {
4035 .eraseblocks = { {8 * 1024 * 1024, 1} },
4036 .block_erase = spi_block_erase_60,
4037 }, {
4038 .eraseblocks = { {8 * 1024 * 1024, 1} },
4039 .block_erase = spi_block_erase_c7,
4040 }
4041 },
4042 .unlock = spi_disable_blockprotect,
4043 .write = spi_chip_write_256,
4044 .read = spi_chip_read,
4045 },
4046
4047 {
4048 .vendor = "GigaDevice",
4049 .name = "GD25Q128",
4050 .bustype = BUS_SPI,
4051 .manufacture_id = GIGADEVICE_ID,
4052 .model_id = GIGADEVICE_GD25Q128,
4053 .total_size = 16384,
4054 .page_size = 256,
4055 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4056 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4057 .tested = TEST_UNTESTED,
4058 .probe = probe_spi_rdid,
4059 .probe_timing = TIMING_ZERO,
4060 .block_erasers =
4061 {
4062 {
4063 .eraseblocks = { {4 * 1024, 4096} },
4064 .block_erase = spi_block_erase_20,
4065 }, {
4066 .eraseblocks = { {32 * 1024, 512} },
4067 .block_erase = spi_block_erase_52,
4068 }, {
4069 .eraseblocks = { {64 * 1024, 256} },
4070 .block_erase = spi_block_erase_d8,
4071 }, {
4072 .eraseblocks = { {16 * 1024 * 1024, 1} },
4073 .block_erase = spi_block_erase_60,
4074 }, {
4075 .eraseblocks = { {16 * 1024 * 1024, 1} },
4076 .block_erase = spi_block_erase_c7,
4077 }
4078 },
4079 .unlock = spi_disable_blockprotect,
4080 .write = spi_chip_write_256,
4081 .read = spi_chip_read,
4082 },
4083
4084 {
David Borgc96a8bd2010-06-21 16:12:22 +00004085 .vendor = "Hyundai",
4086 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004087 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004088 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004089 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004090 .total_size = 256,
4091 .page_size = 256 * 1024,
4092 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004093 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004094 .probe = probe_jedec,
4095 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4096 .block_erasers =
4097 {
4098 {
4099 .eraseblocks = {
4100 {64 * 1024, 3},
4101 {32 * 1024, 1},
4102 {8 * 1024, 2},
4103 {16 * 1024, 1},
4104 },
4105 .block_erase = erase_sector_jedec,
4106 }, {
4107 .eraseblocks = { {256 * 1024, 1} },
4108 .block_erase = erase_chip_block_jedec,
4109 },
4110 },
4111 .write = write_jedec_1,
4112 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004113 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004114 },
4115
4116 {
4117 .vendor = "Hyundai",
4118 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004119 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004120 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004121 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004122 .total_size = 256,
4123 .page_size = 256 * 1024,
4124 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4125 .tested = TEST_UNTESTED,
4126 .probe = probe_jedec,
4127 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = {
4132 {16 * 1024, 1},
4133 {8 * 1024, 2},
4134 {32 * 1024, 1},
4135 {64 * 1024, 3},
4136 },
4137 .block_erase = erase_sector_jedec,
4138 }, {
4139 .eraseblocks = { {256 * 1024, 1} },
4140 .block_erase = erase_chip_block_jedec,
4141 },
4142 },
4143 .write = write_jedec_1,
4144 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004145 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004146 },
4147
4148 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004149 .vendor = "Hyundai",
4150 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004151 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004152 .manufacture_id = HYUNDAI_ID,
4153 .model_id = HYUNDAI_HY29F040A,
4154 .total_size = 512,
4155 .page_size = 64 * 1024,
4156 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4157 .tested = TEST_UNTESTED,
4158 .probe = probe_jedec,
4159 .probe_timing = TIMING_ZERO,
4160 .block_erasers =
4161 {
4162 {
4163 .eraseblocks = { {64 * 1024, 8} },
4164 .block_erase = erase_sector_jedec,
4165 }, {
4166 .eraseblocks = { {512 * 1024, 1} },
4167 .block_erase = erase_chip_block_jedec,
4168 },
4169 },
4170 .write = write_jedec_1,
4171 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004172 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004173 },
4174
4175 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004176 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004177 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004178 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004179 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004180 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004181 .total_size = 128,
4182 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004183 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004184 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004185 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = {
4190 {8 * 1024, 1},
4191 {4 * 1024, 2},
4192 {112 * 1024, 1},
4193 },
Sean Nelson28accc22010-03-19 18:47:06 +00004194 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004195 },
4196 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004197 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004198 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004199 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004200 },
4201
4202 {
4203 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004204 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004205 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004206 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004207 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004208 .total_size = 128,
4209 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004210 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004211 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004212 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004213 .block_erasers =
4214 {
4215 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004216 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004217 {112 * 1024, 1},
4218 {4 * 1024, 2},
4219 {8 * 1024, 1},
4220 },
Sean Nelson28accc22010-03-19 18:47:06 +00004221 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004222 },
4223 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004224 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004226 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004227 },
4228
4229 {
4230 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004231 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004232 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004233 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004234 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004235 .total_size = 256,
4236 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004237 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004238 .probe = probe_82802ab,
4239 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4240 .block_erasers =
4241 {
4242 {
4243 .eraseblocks = {
4244 {128 * 1024, 1},
4245 {96 * 1024, 1},
4246 {8 * 1024, 2},
4247 {16 * 1024, 1},
4248 },
4249 .block_erase = erase_block_82802ab,
4250 },
4251 },
4252 .write = write_82802ab,
4253 .read = read_memmapped,
4254 },
4255
4256 {
4257 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004258 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004259 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004260 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004261 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004262 .total_size = 512,
4263 .page_size = 256,
4264 .tested = TEST_UNTESTED,
4265 .probe = probe_82802ab,
4266 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004267 .block_erasers =
4268 {
4269 {
4270 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004271 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004272 },
4273 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004274 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004275 .write = write_82802ab,
4276 .read = read_memmapped,
4277 },
4278
4279 {
4280 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004281 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004282 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004283 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004284 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004285 .total_size = 512,
4286 .page_size = 128 * 1024, /* maximal block size */
4287 .tested = TEST_UNTESTED,
4288 .probe = probe_82802ab,
4289 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4290 .block_erasers =
4291 {
4292 {
4293 .eraseblocks = {
4294 {16 * 1024, 1},
4295 {8 * 1024, 2},
4296 {96 * 1024, 1},
4297 {128 * 1024, 3},
4298 },
4299 .block_erase = erase_block_82802ab,
4300 },
4301 },
4302 .write = write_82802ab,
4303 .read = read_memmapped,
4304 },
4305
4306 {
4307 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004308 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004309 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004310 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004311 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004312 .total_size = 512,
4313 .page_size = 128 * 1024, /* maximal block size */
4314 .tested = TEST_UNTESTED,
4315 .probe = probe_82802ab,
4316 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4317 .block_erasers =
4318 {
4319 {
4320 .eraseblocks = {
4321 {128 * 1024, 3},
4322 {96 * 1024, 1},
4323 {8 * 1024, 2},
4324 {16 * 1024, 1},
4325 },
4326 .block_erase = erase_block_82802ab,
4327 },
4328 },
4329 .write = write_82802ab,
4330 .read = read_memmapped,
4331 },
4332
4333 {
4334 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004335 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004336 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004337 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004338 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004339 .total_size = 512,
4340 .page_size = 128 * 1024, /* maximal block size */
4341 .feature_bits = FEATURE_ADDR_SHIFTED,
4342 .tested = TEST_UNTESTED,
4343 .probe = probe_82802ab,
4344 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4345 .block_erasers =
4346 {
4347 {
4348 .eraseblocks = {
4349 {16 * 1024, 1},
4350 {8 * 1024, 2},
4351 {96 * 1024, 1},
4352 {128 * 1024, 3},
4353 },
4354 .block_erase = erase_block_82802ab,
4355 },
4356 },
4357 .write = write_82802ab,
4358 .read = read_memmapped,
4359 },
4360
4361 {
4362 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004363 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004364 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004365 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004366 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004367 .total_size = 512,
4368 .page_size = 128 * 1024, /* maximal block size */
4369 .feature_bits = FEATURE_ADDR_SHIFTED,
4370 .tested = TEST_UNTESTED,
4371 .probe = probe_82802ab,
4372 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4373 .block_erasers =
4374 {
4375 {
4376 .eraseblocks = {
4377 {128 * 1024, 3},
4378 {96 * 1024, 1},
4379 {8 * 1024, 2},
4380 {16 * 1024, 1},
4381 },
4382 .block_erase = erase_block_82802ab,
4383 },
4384 },
4385 .write = write_82802ab,
4386 .read = read_memmapped,
4387 },
4388
4389 {
4390 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004391 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004392 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004393 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004394 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004395 .total_size = 512,
4396 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004397 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004398 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004399 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004400 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004405 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004406 },
4407 },
Sean Nelson28accc22010-03-19 18:47:06 +00004408 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004409 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004411 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004412 },
4413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004414 {
4415 .vendor = "Intel",
4416 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004417 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004418 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004419 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004420 .total_size = 1024,
4421 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004422 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004423 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004424 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004425 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004426 .block_erasers =
4427 {
4428 {
4429 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004430 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004431 },
4432 },
Sean Nelson28accc22010-03-19 18:47:06 +00004433 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004434 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004436 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004437 },
4438
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004439 {
4440 .vendor = "Macronix",
4441 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004442 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004443 .manufacture_id = MACRONIX_ID,
4444 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004445 .total_size = 64,
4446 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004447 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004448 .tested = TEST_UNTESTED,
4449 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004450 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004451 .block_erasers =
4452 {
4453 {
4454 .eraseblocks = { {4 * 1024, 16} },
4455 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004456 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004457 .eraseblocks = { {64 * 1024, 1} },
4458 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004459 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004460 .eraseblocks = { {64 * 1024, 1} },
4461 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004462 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004463 .eraseblocks = { {64 * 1024, 1} },
4464 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004465 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004466 .eraseblocks = { {64 * 1024, 1} },
4467 .block_erase = spi_block_erase_c7,
4468 },
4469 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004470 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004471 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004472 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004473 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004474 },
4475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004476 {
4477 .vendor = "Macronix",
4478 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004479 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004480 .manufacture_id = MACRONIX_ID,
4481 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004482 .total_size = 128,
4483 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004484 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004485 .tested = TEST_UNTESTED,
4486 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004487 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004488 .block_erasers =
4489 {
4490 {
4491 .eraseblocks = { {4 * 1024, 32} },
4492 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004493 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004494 .eraseblocks = { {64 * 1024, 2} },
4495 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004496 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004497 .eraseblocks = { {128 * 1024, 1} },
4498 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004499 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004500 .eraseblocks = { {128 * 1024, 1} },
4501 .block_erase = spi_block_erase_c7,
4502 },
4503 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004504 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004505 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004506 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004507 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004508 },
4509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004510 {
4511 .vendor = "Macronix",
4512 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004513 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004514 .manufacture_id = MACRONIX_ID,
4515 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004516 .total_size = 256,
4517 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004518 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004519 .tested = TEST_UNTESTED,
4520 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004521 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004522 .block_erasers =
4523 {
4524 {
4525 .eraseblocks = { {4 * 1024, 64} },
4526 .block_erase = spi_block_erase_20,
4527 }, {
4528 .eraseblocks = { {64 * 1024, 4} },
4529 .block_erase = spi_block_erase_52,
4530 }, {
4531 .eraseblocks = { {64 * 1024, 4} },
4532 .block_erase = spi_block_erase_d8,
4533 }, {
4534 .eraseblocks = { {256 * 1024, 1} },
4535 .block_erase = spi_block_erase_60,
4536 }, {
4537 .eraseblocks = { {256 * 1024, 1} },
4538 .block_erase = spi_block_erase_c7,
4539 },
4540 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004541 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004542 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004543 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004544 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004545 },
4546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004547 {
4548 .vendor = "Macronix",
4549 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004550 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004551 .manufacture_id = MACRONIX_ID,
4552 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004553 .total_size = 512,
4554 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004555 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004556 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004557 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004558 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004559 .block_erasers =
4560 {
4561 {
4562 .eraseblocks = { {4 * 1024, 128} },
4563 .block_erase = spi_block_erase_20,
4564 }, {
4565 .eraseblocks = { {64 * 1024, 8} },
4566 .block_erase = spi_block_erase_52,
4567 }, {
4568 .eraseblocks = { {64 * 1024, 8} },
4569 .block_erase = spi_block_erase_d8,
4570 }, {
4571 .eraseblocks = { {512 * 1024, 1} },
4572 .block_erase = spi_block_erase_60,
4573 }, {
4574 .eraseblocks = { {512 * 1024, 1} },
4575 .block_erase = spi_block_erase_c7,
4576 },
4577 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004578 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004579 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004580 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004581 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004582 },
4583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004584 {
4585 .vendor = "Macronix",
4586 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004587 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004588 .manufacture_id = MACRONIX_ID,
4589 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004590 .total_size = 1024,
4591 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004592 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004593 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004594 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004595 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004596 .block_erasers =
4597 {
4598 {
4599 .eraseblocks = { {4 * 1024, 256} },
4600 .block_erase = spi_block_erase_20,
4601 }, {
4602 .eraseblocks = { {64 * 1024, 16} },
4603 .block_erase = spi_block_erase_52,
4604 }, {
4605 .eraseblocks = { {64 * 1024, 16} },
4606 .block_erase = spi_block_erase_d8,
4607 }, {
4608 .eraseblocks = { {1024 * 1024, 1} },
4609 .block_erase = spi_block_erase_60,
4610 }, {
4611 .eraseblocks = { {1024 * 1024, 1} },
4612 .block_erase = spi_block_erase_c7,
4613 },
4614 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004615 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004616 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004617 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004618 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004619 },
4620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004621 {
4622 .vendor = "Macronix",
4623 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004624 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004625 .manufacture_id = MACRONIX_ID,
4626 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004627 .total_size = 2048,
4628 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004629 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004630 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004631 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004632 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004633 .block_erasers =
4634 {
4635 {
4636 .eraseblocks = { {4 * 1024, 512} },
4637 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4638 }, {
4639 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4640 .block_erase = spi_block_erase_52,
4641 }, {
4642 .eraseblocks = { {64 * 1024, 32} },
4643 .block_erase = spi_block_erase_d8,
4644 }, {
4645 .eraseblocks = { {2 * 1024 * 1024, 1} },
4646 .block_erase = spi_block_erase_60,
4647 }, {
4648 .eraseblocks = { {2 * 1024 * 1024, 1} },
4649 .block_erase = spi_block_erase_c7,
4650 },
4651 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004652 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004653 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004654 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004655 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004656 },
4657
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004658 {
4659 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004660 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004661 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004662 .manufacture_id = MACRONIX_ID,
4663 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004664 .total_size = 2048,
4665 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004666 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004667 .tested = TEST_UNTESTED,
4668 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004669 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004670 .block_erasers =
4671 {
4672 {
4673 .eraseblocks = { {4 * 1024, 512} },
4674 .block_erase = spi_block_erase_20,
4675 }, {
4676 .eraseblocks = { {64 * 1024, 32} },
4677 .block_erase = spi_block_erase_d8,
4678 }, {
4679 .eraseblocks = { {2 * 1024 * 1024, 1} },
4680 .block_erase = spi_block_erase_60,
4681 }, {
4682 .eraseblocks = { {2 * 1024 * 1024, 1} },
4683 .block_erase = spi_block_erase_c7,
4684 }
4685 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004686 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004687 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004688 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004689 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004690 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004691
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004692 {
4693 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004694 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004695 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004696 .manufacture_id = MACRONIX_ID,
4697 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004698 .total_size = 2048,
4699 .page_size = 256,
4700 .feature_bits = FEATURE_WRSR_WREN,
4701 .tested = TEST_UNTESTED,
4702 .probe = probe_spi_rdid,
4703 .probe_timing = TIMING_ZERO,
4704 .block_erasers =
4705 {
4706 {
4707 .eraseblocks = { {4 * 1024, 512} },
4708 .block_erase = spi_block_erase_20,
4709 }, {
4710 .eraseblocks = { {64 * 1024, 32} },
4711 .block_erase = spi_block_erase_d8,
4712 }, {
4713 .eraseblocks = { {2 * 1024 * 1024, 1} },
4714 .block_erase = spi_block_erase_60,
4715 }, {
4716 .eraseblocks = { {2 * 1024 * 1024, 1} },
4717 .block_erase = spi_block_erase_c7,
4718 }
4719 },
4720 .unlock = spi_disable_blockprotect,
4721 .write = spi_chip_write_256,
4722 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004723 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004724 },
4725
4726 {
4727 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004728 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004729 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004730 .manufacture_id = MACRONIX_ID,
4731 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004732 .total_size = 4096,
4733 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004734 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004735 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004736 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004737 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004738 .block_erasers =
4739 {
4740 {
4741 .eraseblocks = { {4 * 1024, 1024} },
4742 .block_erase = spi_block_erase_20,
4743 }, {
4744 .eraseblocks = { {4 * 1024, 1024} },
4745 .block_erase = spi_block_erase_d8,
4746 }, {
4747 .eraseblocks = { {4 * 1024 * 1024, 1} },
4748 .block_erase = spi_block_erase_60,
4749 }, {
4750 .eraseblocks = { {4 * 1024 * 1024, 1} },
4751 .block_erase = spi_block_erase_c7,
4752 },
4753 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004754 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004755 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004756 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004757 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004758 },
4759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004760 {
4761 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004762 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004763 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004764 .manufacture_id = MACRONIX_ID,
4765 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004766 .total_size = 4096,
4767 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004768 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004769 .tested = TEST_UNTESTED,
4770 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004771 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004772 .block_erasers =
4773 {
4774 {
4775 .eraseblocks = { {4 * 1024, 1024} },
4776 .block_erase = spi_block_erase_20,
4777 }, {
4778 .eraseblocks = { {64 * 1024, 64} },
4779 .block_erase = spi_block_erase_d8,
4780 }, {
4781 .eraseblocks = { {4 * 1024 * 1024, 1} },
4782 .block_erase = spi_block_erase_60,
4783 }, {
4784 .eraseblocks = { {4 * 1024 * 1024, 1} },
4785 .block_erase = spi_block_erase_c7,
4786 }
4787 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004788 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004789 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004790 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004791 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004792 },
4793
4794 {
4795 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004796 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004797 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004798 .manufacture_id = MACRONIX_ID,
4799 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004800 .total_size = 8192,
4801 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004802 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00004803 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004804 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004805 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004806 .block_erasers =
4807 {
4808 {
4809 .eraseblocks = { {64 * 1024, 128} },
4810 .block_erase = spi_block_erase_20,
4811 }, {
4812 .eraseblocks = { {64 * 1024, 128} },
4813 .block_erase = spi_block_erase_d8,
4814 }, {
4815 .eraseblocks = { {8 * 1024 * 1024, 1} },
4816 .block_erase = spi_block_erase_60,
4817 }, {
4818 .eraseblocks = { {8 * 1024 * 1024, 1} },
4819 .block_erase = spi_block_erase_c7,
4820 }
4821 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004822 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004823 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004824 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004825 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004826 },
4827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004828 {
4829 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004830 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004831 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004832 .manufacture_id = MACRONIX_ID,
4833 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004834 .total_size = 16384,
4835 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004836 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004837 .tested = TEST_UNTESTED,
4838 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004839 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004840 .block_erasers =
4841 {
4842 {
4843 .eraseblocks = { {4 * 1024, 4096} },
4844 .block_erase = spi_block_erase_20,
4845 }, {
4846 .eraseblocks = { {64 * 1024, 256} },
4847 .block_erase = spi_block_erase_d8,
4848 }, {
4849 .eraseblocks = { {16 * 1024 * 1024, 1} },
4850 .block_erase = spi_block_erase_60,
4851 }, {
4852 .eraseblocks = { {16 * 1024 * 1024, 1} },
4853 .block_erase = spi_block_erase_c7,
4854 }
4855 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004856 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004857 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004858 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004859 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004860 },
4861
4862 {
4863 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004864 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004865 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004866 .manufacture_id = MACRONIX_ID,
4867 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004868 .total_size = 128,
4869 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004870 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4871 .tested = TEST_UNTESTED,
4872 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004873 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004874 .block_erasers =
4875 {
4876 {
4877 .eraseblocks = {
4878 {8 * 1024, 1},
4879 {4 * 1024, 2},
4880 {8 * 1024, 2},
4881 {32 * 1024, 1},
4882 {64 * 1024, 1},
4883 },
Sean Nelson35727f72010-01-28 23:55:12 +00004884 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004885 }, {
4886 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004887 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004888 }
4889 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004890 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004892 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004893 },
4894
4895 {
4896 .vendor = "Macronix",
4897 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004898 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004899 .manufacture_id = MACRONIX_ID,
4900 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004901 .total_size = 128,
4902 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004904 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004905 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004907 .block_erasers =
4908 {
4909 {
4910 .eraseblocks = {
4911 {64 * 1024, 1},
4912 {32 * 1024, 1},
4913 {8 * 1024, 2},
4914 {4 * 1024, 2},
4915 {8 * 1024, 1},
4916 },
Sean Nelson35727f72010-01-28 23:55:12 +00004917 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004918 }, {
4919 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004920 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004921 }
4922 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004923 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004925 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004926 },
4927
4928 {
4929 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004930 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004931 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004932 .manufacture_id = MACRONIX_ID,
4933 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004934 .total_size = 256,
4935 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004936 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004937 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004938 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004939 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004940 .block_erasers =
4941 {
4942 {
4943 .eraseblocks = {
4944 {16 * 1024, 1},
4945 {8 * 1024, 2},
4946 {32 * 1024, 1},
4947 {64 * 1024, 3},
4948 },
Sean Nelson35727f72010-01-28 23:55:12 +00004949 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004950 }, {
4951 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004952 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004953 },
4954 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004955 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004957 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004958 },
4959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004960 {
4961 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004962 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004963 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004964 .manufacture_id = MACRONIX_ID,
4965 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004966 .total_size = 256,
4967 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004968 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004969 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004970 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004971 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004972 .block_erasers =
4973 {
4974 {
4975 .eraseblocks = {
4976 {64 * 1024, 3},
4977 {32 * 1024, 1},
4978 {8 * 1024, 2},
4979 {16 * 1024, 1},
4980 },
Sean Nelson35727f72010-01-28 23:55:12 +00004981 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004982 }, {
4983 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004984 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004985 },
4986 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004989 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004990 },
4991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004992 {
4993 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004994 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004995 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004996 .manufacture_id = MACRONIX_ID,
4997 .model_id = MACRONIX_MX29F040,
4998 .total_size = 512,
4999 .page_size = 64 * 1024,
5000 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5001 .tested = TEST_UNTESTED,
5002 .probe = probe_jedec,
5003 .probe_timing = TIMING_ZERO,
5004 .block_erasers =
5005 {
5006 {
5007 .eraseblocks = { {64 * 1024, 8} },
5008 .block_erase = erase_sector_jedec,
5009 }, {
5010 .eraseblocks = { {512 * 1024, 1} },
5011 .block_erase = erase_chip_block_jedec,
5012 },
5013 },
5014 .write = write_jedec_1,
5015 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005016 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005017 },
5018
5019 {
5020 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005021 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005022 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005023 .manufacture_id = MACRONIX_ID,
5024 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005025 .total_size = 512,
5026 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005027 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5028 .tested = TEST_UNTESTED,
5029 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005030 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005031 .block_erasers =
5032 {
5033 {
5034 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005035 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005036 }, {
5037 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005038 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005039 },
5040 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005041 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005043 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005044 },
5045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005046 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005047 .vendor = "MoselVitelic",
5048 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005049 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005050 .manufacture_id = SYNCMOS_MVC_ID,
5051 .model_id = MVC_V29C51000B,
5052 .total_size = 64,
5053 .page_size = 512,
5054 .feature_bits = FEATURE_EITHER_RESET,
5055 .tested = TEST_UNTESTED,
5056 .probe = probe_jedec,
5057 .probe_timing = TIMING_ZERO,
5058 .block_erasers =
5059 {
5060 {
5061 .eraseblocks = { {512, 128} },
5062 .block_erase = erase_sector_jedec,
5063 }, {
5064 .eraseblocks = { {64 * 1024, 1} },
5065 .block_erase = erase_chip_block_jedec,
5066 },
5067 },
5068 .write = write_jedec_1,
5069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005070 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005071 },
5072
5073 {
5074 .vendor = "MoselVitelic",
5075 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005076 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005077 .manufacture_id = SYNCMOS_MVC_ID,
5078 .model_id = MVC_V29C51000T,
5079 .total_size = 64,
5080 .page_size = 512,
5081 .feature_bits = FEATURE_EITHER_RESET,
5082 .tested = TEST_UNTESTED,
5083 .probe = probe_jedec,
5084 .probe_timing = TIMING_ZERO,
5085 .block_erasers =
5086 {
5087 {
5088 .eraseblocks = { {512, 128} },
5089 .block_erase = erase_sector_jedec,
5090 }, {
5091 .eraseblocks = { {64 * 1024, 1} },
5092 .block_erase = erase_chip_block_jedec,
5093 },
5094 },
5095 .write = write_jedec_1,
5096 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005097 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005098 },
5099
5100 {
5101 .vendor = "MoselVitelic",
5102 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005103 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005104 .manufacture_id = SYNCMOS_MVC_ID,
5105 .model_id = MVC_V29C51400B,
5106 .total_size = 512,
5107 .page_size = 1024,
5108 .feature_bits = FEATURE_EITHER_RESET,
5109 .tested = TEST_UNTESTED,
5110 .probe = probe_jedec,
5111 .probe_timing = TIMING_ZERO,
5112 .block_erasers =
5113 {
5114 {
5115 .eraseblocks = { {1024, 512} },
5116 .block_erase = erase_sector_jedec,
5117 }, {
5118 .eraseblocks = { {512 * 1024, 1} },
5119 .block_erase = erase_chip_block_jedec,
5120 },
5121 },
5122 .write = write_jedec_1,
5123 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005124 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005125 },
5126
5127 {
5128 .vendor = "MoselVitelic",
5129 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005130 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005131 .manufacture_id = SYNCMOS_MVC_ID,
5132 .model_id = MVC_V29C51400T,
5133 .total_size = 512,
5134 .page_size = 1024,
5135 .feature_bits = FEATURE_EITHER_RESET,
5136 .tested = TEST_UNTESTED,
5137 .probe = probe_jedec,
5138 .probe_timing = TIMING_ZERO,
5139 .block_erasers =
5140 {
5141 {
5142 .eraseblocks = { {1024, 512} },
5143 .block_erase = erase_sector_jedec,
5144 }, {
5145 .eraseblocks = { {512 * 1024, 1} },
5146 .block_erase = erase_chip_block_jedec,
5147 },
5148 },
5149 .write = write_jedec_1,
5150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005151 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005152 },
5153
5154 {
5155 .vendor = "MoselVitelic",
5156 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005157 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005158 .manufacture_id = SYNCMOS_MVC_ID,
5159 .model_id = MVC_V29LC51000,
5160 .total_size = 64,
5161 .page_size = 512,
5162 .feature_bits = FEATURE_EITHER_RESET,
5163 .tested = TEST_UNTESTED,
5164 .probe = probe_jedec,
5165 .probe_timing = TIMING_ZERO,
5166 .block_erasers =
5167 {
5168 {
5169 .eraseblocks = { {512, 128} },
5170 .block_erase = erase_sector_jedec,
5171 }, {
5172 .eraseblocks = { {64 * 1024, 1} },
5173 .block_erase = erase_chip_block_jedec,
5174 },
5175 },
5176 .write = write_jedec_1,
5177 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005178 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005179 },
5180
5181 {
5182 .vendor = "MoselVitelic",
5183 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005184 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005185 .manufacture_id = SYNCMOS_MVC_ID,
5186 .model_id = MVC_V29LC51001,
5187 .total_size = 128,
5188 .page_size = 512,
5189 .feature_bits = FEATURE_EITHER_RESET,
5190 .tested = TEST_UNTESTED,
5191 .probe = probe_jedec,
5192 .probe_timing = TIMING_ZERO,
5193 .block_erasers =
5194 {
5195 {
5196 .eraseblocks = { {512, 256} },
5197 .block_erase = erase_sector_jedec,
5198 }, {
5199 .eraseblocks = { {128 * 1024, 1} },
5200 .block_erase = erase_chip_block_jedec,
5201 },
5202 },
5203 .write = write_jedec_1,
5204 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005205 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005206 },
5207
5208 {
5209 .vendor = "MoselVitelic",
5210 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005211 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005212 .manufacture_id = SYNCMOS_MVC_ID,
5213 .model_id = MVC_V29LC51002,
5214 .total_size = 256,
5215 .page_size = 512,
5216 .feature_bits = FEATURE_EITHER_RESET,
5217 .tested = TEST_UNTESTED,
5218 .probe = probe_jedec,
5219 .probe_timing = TIMING_ZERO,
5220 .block_erasers =
5221 {
5222 {
5223 .eraseblocks = { {512, 512} },
5224 .block_erase = erase_sector_jedec,
5225 }, {
5226 .eraseblocks = { {256 * 1024, 1} },
5227 .block_erase = erase_chip_block_jedec,
5228 },
5229 },
5230 .write = write_jedec_1,
5231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005232 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005233 },
5234
5235 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005236 .vendor = "Numonyx",
5237 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005238 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005239 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005240 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005241 .total_size = 128,
5242 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005243 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005244 .tested = TEST_UNTESTED,
5245 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005246 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005247 .block_erasers =
5248 {
5249 {
5250 .eraseblocks = { {4 * 1024, 32} },
5251 .block_erase = spi_block_erase_20,
5252 }, {
5253 .eraseblocks = { {64 * 1024, 2} },
5254 .block_erase = spi_block_erase_d8,
5255 }, {
5256 .eraseblocks = { {128 * 1024, 1} },
5257 .block_erase = spi_block_erase_c7,
5258 }
5259 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005260 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005261 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005262 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005263 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005264 },
5265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005266 {
5267 .vendor = "Numonyx",
5268 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005269 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005270 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005271 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005272 .total_size = 256,
5273 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005274 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005275 .tested = TEST_UNTESTED,
5276 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005277 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005278 .block_erasers =
5279 {
5280 {
5281 .eraseblocks = { {4 * 1024, 64} },
5282 .block_erase = spi_block_erase_20,
5283 }, {
5284 .eraseblocks = { {64 * 1024, 4} },
5285 .block_erase = spi_block_erase_d8,
5286 }, {
5287 .eraseblocks = { {256 * 1024, 1} },
5288 .block_erase = spi_block_erase_c7,
5289 }
5290 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005291 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005292 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005293 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005294 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005295 },
5296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005297 {
5298 .vendor = "Numonyx",
5299 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005300 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005301 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005302 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005303 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005304 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005305 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005306 .tested = TEST_UNTESTED,
5307 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005308 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005309 .block_erasers =
5310 {
5311 {
5312 .eraseblocks = { {4 * 1024, 128} },
5313 .block_erase = spi_block_erase_20,
5314 }, {
5315 .eraseblocks = { {64 * 1024, 8} },
5316 .block_erase = spi_block_erase_d8,
5317 }, {
5318 .eraseblocks = { {512 * 1024, 1} },
5319 .block_erase = spi_block_erase_c7,
5320 }
5321 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005322 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005323 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005324 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005325 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005326 },
5327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005328 {
5329 .vendor = "Numonyx",
5330 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005331 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005332 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005333 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005334 .total_size = 1024,
5335 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005336 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005337 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005338 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005339 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005340 .block_erasers =
5341 {
5342 {
5343 .eraseblocks = { {4 * 1024, 256} },
5344 .block_erase = spi_block_erase_20,
5345 }, {
5346 .eraseblocks = { {64 * 1024, 16} },
5347 .block_erase = spi_block_erase_d8,
5348 }, {
5349 .eraseblocks = { {1024 * 1024, 1} },
5350 .block_erase = spi_block_erase_c7,
5351 }
5352 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005353 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005354 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005355 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005356 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005357 },
5358
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005359 {
5360 .vendor = "Numonyx",
5361 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005362 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005363 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005364 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005365 .total_size = 2048,
5366 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005367 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005368 .tested = TEST_UNTESTED,
5369 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005370 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005371 .block_erasers =
5372 {
5373 {
5374 .eraseblocks = { {4 * 1024, 512} },
5375 .block_erase = spi_block_erase_20,
5376 }, {
5377 .eraseblocks = { {64 * 1024, 32} },
5378 .block_erase = spi_block_erase_d8,
5379 }, {
5380 .eraseblocks = { {2 * 1024 * 1024, 1} },
5381 .block_erase = spi_block_erase_c7,
5382 }
5383 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005384 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005385 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005386 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005387 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005388 },
5389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005390 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005391 .vendor = "Numonyx",
5392 .name = "N25Q064",
5393 .bustype = BUS_SPI,
5394 .manufacture_id = ST_ID,
5395 .model_id = ST_N25Q064,
5396 .total_size = 8192,
5397 .page_size = 256,
5398 .tested = TEST_OK_PREW,
5399 .probe = probe_spi_rdid,
5400 .probe_timing = TIMING_ZERO,
5401 .block_erasers =
5402 {
5403 {
5404 .eraseblocks = { {4 * 1024, 2048 } },
5405 .block_erase = spi_block_erase_20,
5406 }, {
5407 .eraseblocks = { {64 * 1024, 128} },
5408 .block_erase = spi_block_erase_d8,
5409 }, {
5410 .eraseblocks = { {8 * 1024 * 1024, 1} },
5411 .block_erase = spi_block_erase_c7,
5412 }
5413 },
5414 .unlock = spi_disable_blockprotect,
5415 .write = spi_chip_write_256,
5416 .read = spi_chip_read,
5417 },
5418
5419 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005420 .vendor = "PMC",
5421 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005423 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005424 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005425 .total_size = 128,
5426 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005427 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005428 .tested = TEST_UNTESTED,
5429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005430 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005431 .block_erasers =
5432 {
5433 {
5434 .eraseblocks = { {4 * 1024, 32} },
5435 .block_erase = spi_block_erase_d7,
5436 }, {
5437 .eraseblocks = { {32 * 1024, 4} },
5438 .block_erase = spi_block_erase_d8,
5439 }, {
5440 .eraseblocks = { {128 * 1024, 1} },
5441 .block_erase = spi_block_erase_c7,
5442 }
5443 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005444 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005445 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005446 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005447 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005448 },
5449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005450 {
5451 .vendor = "PMC",
5452 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005453 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005454 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005455 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005456 .total_size = 2048,
5457 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005458 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005459 .tested = TEST_UNTESTED,
5460 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005461 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005462 .block_erasers =
5463 {
5464 {
5465 .eraseblocks = { {4 * 1024, 512} },
5466 .block_erase = spi_block_erase_d7,
5467 }, {
5468 .eraseblocks = { {4 * 1024, 512} },
5469 .block_erase = spi_block_erase_20,
5470 }, {
5471 .eraseblocks = { {64 * 1024, 32} },
5472 .block_erase = spi_block_erase_d8,
5473 }, {
5474 .eraseblocks = { {2 * 1024 * 1024, 1} },
5475 .block_erase = spi_block_erase_60,
5476 }, {
5477 .eraseblocks = { {2 * 1024 * 1024, 1} },
5478 .block_erase = spi_block_erase_c7,
5479 }
5480 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005481 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005482 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005483 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005484 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005485 },
5486
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005487 {
5488 .vendor = "PMC",
5489 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005490 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005491 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005492 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005493 .total_size = 256,
5494 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005495 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005496 .tested = TEST_UNTESTED,
5497 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005498 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005499 .block_erasers =
5500 {
5501 {
5502 .eraseblocks = { {4 * 1024, 64} },
5503 .block_erase = spi_block_erase_d7,
5504 }, {
5505 .eraseblocks = { {64 * 1024, 4} },
5506 .block_erase = spi_block_erase_d8,
5507 }, {
5508 .eraseblocks = { {256 * 1024, 1} },
5509 .block_erase = spi_block_erase_c7,
5510 }
5511 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005512 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005513 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005514 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005515 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005516 },
5517
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005518 {
5519 .vendor = "PMC",
5520 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005521 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005522 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005523 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005524 .total_size = 512,
5525 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005526 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00005527 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005528 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005529 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005530 .block_erasers =
5531 {
5532 {
5533 .eraseblocks = { {4 * 1024, 128} },
5534 .block_erase = spi_block_erase_d7,
5535 }, {
5536 .eraseblocks = { {64 * 1024, 8} },
5537 .block_erase = spi_block_erase_d8,
5538 }, {
5539 .eraseblocks = { {512 * 1024, 1} },
5540 .block_erase = spi_block_erase_c7,
5541 }
5542 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005543 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005544 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005545 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005546 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005547 },
5548
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005549 {
5550 .vendor = "PMC",
5551 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005552 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005553 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005554 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005555 .total_size = 1024,
5556 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005557 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005558 .tested = TEST_UNTESTED,
5559 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005560 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005561 .block_erasers =
5562 {
5563 {
5564 .eraseblocks = { {4 * 1024, 256} },
5565 .block_erase = spi_block_erase_d7,
5566 }, {
5567 .eraseblocks = { {4 * 1024, 256} },
5568 .block_erase = spi_block_erase_20,
5569 }, {
5570 .eraseblocks = { {64 * 1024, 16} },
5571 .block_erase = spi_block_erase_d8,
5572 }, {
5573 .eraseblocks = { {1024 * 1024, 1} },
5574 .block_erase = spi_block_erase_60,
5575 }, {
5576 .eraseblocks = { {1024 * 1024, 1} },
5577 .block_erase = spi_block_erase_c7,
5578 }
5579 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005580 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005581 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005582 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005583 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005584 },
5585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005586 {
5587 .vendor = "PMC",
5588 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005589 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005590 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005591 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005592 .total_size = 64,
5593 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005594 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005595 .tested = TEST_UNTESTED,
5596 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005597 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005598 .block_erasers =
5599 {
5600 {
5601 .eraseblocks = { {4 * 1024, 16} },
5602 .block_erase = spi_block_erase_d7,
5603 }, {
5604 .eraseblocks = { {32 * 1024, 2} },
5605 .block_erase = spi_block_erase_d8,
5606 }, {
5607 .eraseblocks = { {64 * 1024, 1} },
5608 .block_erase = spi_block_erase_c7,
5609 }
5610 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005611 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005612 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005613 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005614 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005615 },
5616
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005617 {
5618 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005619 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005620 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005621 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005622 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005623 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005624 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005625 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005626 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005627 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005628 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005629 .block_erasers =
5630 {
5631 {
5632 .eraseblocks = {
5633 {128 * 1024, 1},
5634 {96 * 1024, 1},
5635 {8 * 1024, 2},
5636 {16 * 1024, 1},
5637 },
Sean Nelson35727f72010-01-28 23:55:12 +00005638 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005639 }, {
5640 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005641 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005642 },
5643 },
Sean Nelson35727f72010-01-28 23:55:12 +00005644 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005646 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005647 },
5648
5649 {
5650 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005651 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005652 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005653 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005654 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005655 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005656 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005657 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005658 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005659 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005660 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005661 .block_erasers =
5662 {
5663 {
5664 .eraseblocks = {
5665 {16 * 1024, 1},
5666 {8 * 1024, 2},
5667 {96 * 1024, 1},
5668 {128 * 1024, 1},
5669 },
Sean Nelson35727f72010-01-28 23:55:12 +00005670 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005671 }, {
5672 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005673 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005674 },
5675 },
Sean Nelson35727f72010-01-28 23:55:12 +00005676 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005677 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005678 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005679 },
5680
5681 {
5682 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005683 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005684 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005685 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005686 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005687 .total_size = 128,
5688 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005689 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005690 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005691 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005692 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005693 .block_erasers =
5694 {
5695 {
5696 .eraseblocks = { {4 * 1024, 32} },
5697 .block_erase = erase_sector_jedec,
5698 }, {
5699 .eraseblocks = { {64 * 1024, 2} },
5700 .block_erase = erase_block_jedec,
5701 }, {
5702 .eraseblocks = { {128 * 1024, 1} },
5703 .block_erase = erase_chip_block_jedec,
5704 }
5705 },
Sean Nelson35727f72010-01-28 23:55:12 +00005706 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005708 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005709 },
5710
5711 {
5712 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005713 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005714 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005715 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005716 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005717 .total_size = 256,
5718 .page_size = 4096,
5719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5720 .tested = TEST_UNTESTED,
5721 .probe = probe_jedec,
5722 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = { {4 * 1024, 64} },
5727 .block_erase = erase_sector_jedec,
5728 }, {
5729 .eraseblocks = { {64 * 1024, 4} },
5730 .block_erase = erase_block_jedec,
5731 }, {
5732 .eraseblocks = { {256 * 1024, 1} },
5733 .block_erase = erase_chip_block_jedec,
5734 }
5735 },
5736 .write = write_jedec_1,
5737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005738 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005739 },
5740
5741 {
5742 .vendor = "PMC",
5743 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005744 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005745 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005746 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005747 .total_size = 512,
5748 .page_size = 4096,
5749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005750 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005751 .probe = probe_jedec,
5752 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5753 .block_erasers =
5754 {
5755 {
5756 .eraseblocks = { {4 * 1024, 128} },
5757 .block_erase = erase_sector_jedec,
5758 }, {
5759 .eraseblocks = { {64 * 1024, 8} },
5760 .block_erase = erase_block_jedec,
5761 }, {
5762 .eraseblocks = { {512 * 1024, 1} },
5763 .block_erase = erase_chip_block_jedec,
5764 }
5765 },
5766 .write = write_jedec_1,
5767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005768 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005769 },
5770
5771 {
5772 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005773 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005774 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005775 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005776 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005777 .total_size = 256,
5778 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005779 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005780 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005781 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005782 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005783 .block_erasers =
5784 {
5785 {
5786 .eraseblocks = { {4 * 1024, 64} },
5787 .block_erase = erase_sector_jedec,
5788 }, {
5789 .eraseblocks = { {16 * 1024, 16} },
5790 .block_erase = erase_block_jedec,
5791 }, {
5792 .eraseblocks = { {256 * 1024, 1} },
5793 .block_erase = erase_chip_block_jedec,
5794 }
5795 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005796 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005797 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005799 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005800 },
5801
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005802 {
5803 .vendor = "PMC",
5804 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005805 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005806 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005807 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005808 .total_size = 512,
5809 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005810 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005811 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005812 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005813 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005814 .block_erasers =
5815 {
5816 {
5817 .eraseblocks = { {4 * 1024, 128} },
5818 .block_erase = erase_sector_jedec,
5819 }, {
5820 .eraseblocks = { {64 * 1024, 8} },
5821 .block_erase = erase_block_jedec,
5822 }, {
5823 .eraseblocks = { {512 * 1024, 1} },
5824 .block_erase = erase_chip_block_jedec,
5825 }
5826 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005827 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005828 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005829 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005830 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005831 },
5832
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005833 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005834 .vendor = "Sanyo",
5835 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005836 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005837 .manufacture_id = SANYO_ID,
5838 .model_id = SANYO_LE25FW203A,
5839 .total_size = 2048,
5840 .page_size = 256,
5841 .tested = TEST_UNTESTED,
5842 .probe = probe_spi_rdid,
5843 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005844 .block_erasers =
5845 {
5846 {
5847 .eraseblocks = { {64 * 1024, 32} },
5848 .block_erase = spi_block_erase_d8,
5849 }, {
5850 .eraseblocks = { {2 * 1024 * 1024, 1} },
5851 .block_erase = spi_block_erase_c7,
5852 }
5853 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005854 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005855 .write = spi_chip_write_256,
5856 .read = spi_chip_read,
5857 },
5858
5859 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005860 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005861 .name = "LH28F008BJT-BTLZ1",
5862 .bustype = BUS_PARALLEL,
5863 .manufacture_id = SHARP_ID,
5864 .model_id = SHARP_LH28F008BJxxPB,
5865 .total_size = 1024,
5866 .page_size = 64 * 1024,
5867 .tested = TEST_OK_PREW,
5868 .probe = probe_82802ab,
5869 .probe_timing = TIMING_ZERO,
5870 .block_erasers =
5871 {
5872 {
5873 .eraseblocks = {
5874 {8 * 1024, 8},
5875 {64 * 1024, 15}
5876 },
5877 .block_erase = erase_block_82802ab,
5878 }, {
5879 .eraseblocks = { {1024 * 1024, 1} },
5880 .block_erase = erase_sector_49lfxxxc,
5881 }
5882 },
5883 .unlock = unlock_lh28f008bjt,
5884 .write = write_82802ab,
5885 .read = read_memmapped,
5886 .voltage = {2700, 3600},
5887 },
5888
5889 {
5890 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005891 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005892 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005893 .manufacture_id = SHARP_ID,
5894 .model_id = SHARP_LHF00L04,
5895 .total_size = 1024,
5896 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005897 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005898 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005899 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005900 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005901 .block_erasers =
5902 {
5903 {
5904 .eraseblocks = {
5905 {64 * 1024, 15},
5906 {8 * 1024, 8}
5907 },
Sean Nelson28accc22010-03-19 18:47:06 +00005908 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005909 }, {
5910 .eraseblocks = {
5911 {1024 * 1024, 1}
5912 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005913 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005914 },
5915 },
Sean Nelson28accc22010-03-19 18:47:06 +00005916 .unlock = unlock_82802ab,
5917 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005919 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005920 },
5921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005922 {
5923 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005924 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005925 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005926 .manufacture_id = SPANSION_ID,
5927 .model_id = SPANSION_S25FL004A,
5928 .total_size = 512,
5929 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005930 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00005931 .tested = TEST_UNTESTED,
5932 .probe = probe_spi_rdid,
5933 .probe_timing = TIMING_ZERO,
5934 .block_erasers =
5935 {
5936 {
5937 .eraseblocks = { {64 * 1024, 8} },
5938 .block_erase = spi_block_erase_d8,
5939 }, {
5940 .eraseblocks = { {512 * 1024, 1} },
5941 .block_erase = spi_block_erase_c7,
5942 }
5943 },
5944 .unlock = spi_disable_blockprotect,
5945 .write = spi_chip_write_256,
5946 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005947 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005948 },
5949
5950 {
5951 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005952 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005953 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005954 .manufacture_id = SPANSION_ID,
5955 .model_id = SPANSION_S25FL008A,
5956 .total_size = 1024,
5957 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005958 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005959 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005960 .probe = probe_spi_rdid,
5961 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005962 .block_erasers =
5963 {
5964 {
5965 .eraseblocks = { {64 * 1024, 16} },
5966 .block_erase = spi_block_erase_d8,
5967 }, {
5968 .eraseblocks = { {1024 * 1024, 1} },
5969 .block_erase = spi_block_erase_c7,
5970 }
5971 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005972 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005973 .write = spi_chip_write_256,
5974 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005975 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005976 },
5977
5978 {
5979 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005980 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005981 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005982 .manufacture_id = SPANSION_ID,
5983 .model_id = SPANSION_S25FL016A,
5984 .total_size = 2048,
5985 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005986 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005987 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005988 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005989 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005990 .block_erasers =
5991 {
5992 {
5993 .eraseblocks = { {64 * 1024, 32} },
5994 .block_erase = spi_block_erase_d8,
5995 }, {
5996 .eraseblocks = { {2 * 1024 * 1024, 1} },
5997 .block_erase = spi_block_erase_c7,
5998 }
5999 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006000 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006001 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006003 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006004 },
6005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006006 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006007 .vendor = "Spansion",
6008 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006009 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006010 .manufacture_id = SPANSION_ID,
6011 .model_id = SPANSION_S25FL032A,
6012 .total_size = 4096,
6013 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006014 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006015 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006016 .probe = probe_spi_rdid,
6017 .probe_timing = TIMING_ZERO,
6018 .block_erasers =
6019 {
6020 {
6021 .eraseblocks = { {64 * 1024, 64} },
6022 .block_erase = spi_block_erase_d8,
6023 }, {
6024 .eraseblocks = { {4 * 1024 * 1024, 1} },
6025 .block_erase = spi_block_erase_c7,
6026 }
6027 },
6028 .unlock = spi_disable_blockprotect,
6029 .write = spi_chip_write_256,
6030 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006031 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006032 },
6033
6034 {
6035 .vendor = "Spansion",
6036 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006037 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006038 .manufacture_id = SPANSION_ID,
6039 .model_id = SPANSION_S25FL064A,
6040 .total_size = 8192,
6041 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006042 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006043 .tested = TEST_OK_PREW,
6044 .probe = probe_spi_rdid,
6045 .probe_timing = TIMING_ZERO,
6046 .block_erasers =
6047 {
6048 {
6049 .eraseblocks = { {64 * 1024, 128} },
6050 .block_erase = spi_block_erase_d8,
6051 }, {
6052 .eraseblocks = { {8 * 1024 * 1024, 1} },
6053 .block_erase = spi_block_erase_c7,
6054 }
6055 },
6056 .unlock = spi_disable_blockprotect,
6057 .write = spi_chip_write_256,
6058 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006059 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006060 },
6061
6062 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006063 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006064 .name = "SST25LF040A",
6065 .bustype = BUS_SPI,
6066 .manufacture_id = SST_ID,
6067 .model_id = SST_SST25VF040_REMS,
6068 .total_size = 512,
6069 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006070 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006071 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006072 .probe = probe_spi_res2,
6073 .probe_timing = TIMING_ZERO,
6074 .block_erasers =
6075 {
6076 {
6077 .eraseblocks = { {4 * 1024, 128} },
6078 .block_erase = spi_block_erase_20,
6079 }, {
6080 .eraseblocks = { {32 * 1024, 16} },
6081 .block_erase = spi_block_erase_52,
6082 }, {
6083 .eraseblocks = { {512 * 1024, 1} },
6084 .block_erase = spi_block_erase_60,
6085 },
6086 },
6087 .unlock = spi_disable_blockprotect,
6088 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6089 .read = spi_chip_read,
6090 .voltage = {3000, 3600},
6091 },
6092
6093 {
6094 .vendor = "SST",
6095 .name = "SST25LF080A",
6096 .bustype = BUS_SPI,
6097 .manufacture_id = SST_ID,
6098 .model_id = SST_SST25VF080_REMS,
6099 .total_size = 1024,
6100 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006101 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006102 .tested = TEST_UNTESTED,
6103 .probe = probe_spi_res2,
6104 .probe_timing = TIMING_ZERO,
6105 .block_erasers =
6106 {
6107 {
6108 .eraseblocks = { {4 * 1024, 256} },
6109 .block_erase = spi_block_erase_20,
6110 }, {
6111 .eraseblocks = { {32 * 1024, 32} },
6112 .block_erase = spi_block_erase_52,
6113 }, {
6114 .eraseblocks = { {1024 * 1024, 1} },
6115 .block_erase = spi_block_erase_60,
6116 },
6117 },
6118 .unlock = spi_disable_blockprotect,
6119 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6120 .read = spi_chip_read,
6121 .voltage = {3000, 3600},
6122 },
6123
6124 {
6125 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006126 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006127 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006128 .manufacture_id = SST_ID,
6129 .model_id = SST_SST25VF010_REMS,
6130 .total_size = 128,
6131 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006132 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006133 .tested = TEST_OK_PREW,
6134 .probe = probe_spi_rems,
6135 .probe_timing = TIMING_ZERO,
6136 .block_erasers =
6137 {
6138 {
6139 .eraseblocks = { {4 * 1024, 32} },
6140 .block_erase = spi_block_erase_20,
6141 }, {
6142 .eraseblocks = { {32 * 1024, 4} },
6143 .block_erase = spi_block_erase_52,
6144 }, {
6145 .eraseblocks = { {128 * 1024, 1} },
6146 .block_erase = spi_block_erase_60,
6147 },
6148 },
6149 .unlock = spi_disable_blockprotect,
6150 .write = spi_chip_write_1,
6151 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006152 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006153 },
6154
6155 {
6156 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006157 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006158 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006159 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006160 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006161 .total_size = 2048,
6162 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006163 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006164 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006165 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006166 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006167 .block_erasers =
6168 {
6169 {
6170 .eraseblocks = { {4 * 1024, 512} },
6171 .block_erase = spi_block_erase_20,
6172 }, {
6173 .eraseblocks = { {32 * 1024, 64} },
6174 .block_erase = spi_block_erase_52,
6175 }, {
6176 .eraseblocks = { {64 * 1024, 32} },
6177 .block_erase = spi_block_erase_d8,
6178 }, {
6179 .eraseblocks = { {2 * 1024 * 1024, 1} },
6180 .block_erase = spi_block_erase_60,
6181 }, {
6182 .eraseblocks = { {2 * 1024 * 1024, 1} },
6183 .block_erase = spi_block_erase_c7,
6184 },
6185 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006186 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006187 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006189 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006190 },
6191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 {
6193 .vendor = "SST",
6194 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006195 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006197 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006198 .total_size = 4096,
6199 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006200 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006201 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006202 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006203 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006204 .block_erasers =
6205 {
6206 {
6207 .eraseblocks = { {4 * 1024, 1024} },
6208 .block_erase = spi_block_erase_20,
6209 }, {
6210 .eraseblocks = { {32 * 1024, 128} },
6211 .block_erase = spi_block_erase_52,
6212 }, {
6213 .eraseblocks = { {64 * 1024, 64} },
6214 .block_erase = spi_block_erase_d8,
6215 }, {
6216 .eraseblocks = { {4 * 1024 * 1024, 1} },
6217 .block_erase = spi_block_erase_60,
6218 }, {
6219 .eraseblocks = { {4 * 1024 * 1024, 1} },
6220 .block_erase = spi_block_erase_c7,
6221 },
6222 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006223 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006224 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006225 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006226 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006227 },
6228
6229 {
6230 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006231 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006232 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006233 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006234 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006235 .total_size = 8192,
6236 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006237 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006238 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006239 .probe = probe_spi_rdid,
6240 .probe_timing = TIMING_ZERO,
6241 .block_erasers =
6242 {
6243 {
6244 .eraseblocks = { {4 * 1024, 2048} },
6245 .block_erase = spi_block_erase_20,
6246 }, {
6247 .eraseblocks = { {32 * 1024, 256} },
6248 .block_erase = spi_block_erase_52,
6249 }, {
6250 .eraseblocks = { {64 * 1024, 128} },
6251 .block_erase = spi_block_erase_d8,
6252 }, {
6253 .eraseblocks = { {8 * 1024 * 1024, 1} },
6254 .block_erase = spi_block_erase_60,
6255 }, {
6256 .eraseblocks = { {8 * 1024 * 1024, 1} },
6257 .block_erase = spi_block_erase_c7,
6258 },
6259 },
6260 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006261 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006262 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006263 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006264 },
6265
6266 {
6267 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006268 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006269 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006270 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006271 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006272 .total_size = 512,
6273 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006274 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006275 .tested = TEST_OK_PR,
6276 .probe = probe_spi_rems,
6277 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006278 .block_erasers =
6279 {
6280 {
6281 .eraseblocks = { {4 * 1024, 128} },
6282 .block_erase = spi_block_erase_20,
6283 }, {
6284 .eraseblocks = { {32 * 1024, 16} },
6285 .block_erase = spi_block_erase_52,
6286 }, {
6287 .eraseblocks = { {512 * 1024, 1} },
6288 .block_erase = spi_block_erase_60,
6289 },
6290 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006291 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006292 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006293 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006294 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006295 },
6296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 {
6298 .vendor = "SST",
6299 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006300 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006301 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006302 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006303 .total_size = 512,
6304 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006305 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006306 .tested = TEST_UNTESTED,
6307 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006308 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006309 .block_erasers =
6310 {
6311 {
6312 .eraseblocks = { {4 * 1024, 128} },
6313 .block_erase = spi_block_erase_20,
6314 }, {
6315 .eraseblocks = { {32 * 1024, 16} },
6316 .block_erase = spi_block_erase_52,
6317 }, {
6318 .eraseblocks = { {64 * 1024, 8} },
6319 .block_erase = spi_block_erase_d8,
6320 }, {
6321 .eraseblocks = { {512 * 1024, 1} },
6322 .block_erase = spi_block_erase_60,
6323 }, {
6324 .eraseblocks = { {512 * 1024, 1} },
6325 .block_erase = spi_block_erase_c7,
6326 },
6327 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006328 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006329 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006330 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006331 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006332 },
6333
6334 {
6335 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006336 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006337 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006338 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006339 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006340 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006341 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006342 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00006343 .tested = TEST_OK_PR,
6344 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006345 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006346 .block_erasers =
6347 {
6348 {
6349 .eraseblocks = { {4 * 1024, 128} },
6350 .block_erase = spi_block_erase_20,
6351 }, {
6352 .eraseblocks = { {32 * 1024, 16} },
6353 .block_erase = spi_block_erase_52,
6354 }, {
6355 .eraseblocks = { {64 * 1024, 8} },
6356 .block_erase = spi_block_erase_d8,
6357 }, {
6358 .eraseblocks = { {512 * 1024, 1} },
6359 .block_erase = spi_block_erase_60,
6360 }, {
6361 .eraseblocks = { {512 * 1024, 1} },
6362 .block_erase = spi_block_erase_c7,
6363 },
6364 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006365 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006366 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006367 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006368 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006369 },
6370
6371 {
6372 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006373 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006374 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006375 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006376 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006377 .total_size = 1024,
6378 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006379 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00006380 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006381 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006382 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006383 .block_erasers =
6384 {
6385 {
6386 .eraseblocks = { {4 * 1024, 256} },
6387 .block_erase = spi_block_erase_20,
6388 }, {
6389 .eraseblocks = { {32 * 1024, 32} },
6390 .block_erase = spi_block_erase_52,
6391 }, {
6392 .eraseblocks = { {64 * 1024, 16} },
6393 .block_erase = spi_block_erase_d8,
6394 }, {
6395 .eraseblocks = { {1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_60,
6397 }, {
6398 .eraseblocks = { {1024 * 1024, 1} },
6399 .block_erase = spi_block_erase_c7,
6400 },
6401 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006402 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006403 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006404 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006405 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006406 },
6407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006408 {
6409 .vendor = "SST",
6410 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006411 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006412 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006413 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006414 .total_size = 512,
6415 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006416 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006417 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006418 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006419 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006420 .block_erasers =
6421 {
6422 {
6423 .eraseblocks = { {128, 4096} },
6424 .block_erase = erase_sector_28sf040,
6425 }, {
6426 .eraseblocks = { {512 * 1024, 1} },
6427 .block_erase = erase_chip_28sf040,
6428 }
6429 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006430 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006431 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006432 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006433 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006434 },
6435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006436 {
6437 .vendor = "SST",
6438 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006439 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006440 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006441 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006442 .total_size = 128,
6443 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006444 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006445 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006446 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006447 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006448 .block_erasers =
6449 {
6450 {
6451 .eraseblocks = { {128 * 1024, 1} },
6452 .block_erase = erase_chip_block_jedec,
6453 }
6454 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006455 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006457 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006458 },
6459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006460 {
6461 .vendor = "SST",
6462 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006463 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006464 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006465 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006466 .total_size = 128,
6467 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006468 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006469 .tested = TEST_UNTESTED,
6470 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006471 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006472 .block_erasers =
6473 {
6474 {
6475 .eraseblocks = { {128 * 1024, 1} },
6476 .block_erase = erase_chip_block_jedec,
6477 }
6478 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006479 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006481 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006482 },
6483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006484 {
6485 .vendor = "SST",
6486 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006487 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006488 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006489 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006490 .total_size = 256,
6491 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006492 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006493 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006494 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006495 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006496 .block_erasers =
6497 {
6498 {
6499 .eraseblocks = { {256 * 1024, 1} },
6500 .block_erase = erase_chip_block_jedec,
6501 }
6502 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006503 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006505 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006506 },
6507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006508 {
6509 .vendor = "SST",
6510 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006511 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006512 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006513 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006514 .total_size = 256,
6515 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006516 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006517 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006518 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006519 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006520 .block_erasers =
6521 {
6522 {
6523 .eraseblocks = { {256 * 1024, 1} },
6524 .block_erase = erase_chip_block_jedec,
6525 }
6526 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006527 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006528 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006529 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006530 },
6531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006532 {
6533 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006534 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006535 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006536 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006537 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006538 .total_size = 64,
6539 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006540 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006541 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006542 .probe = probe_jedec,
6543 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006544 .block_erasers =
6545 {
6546 {
6547 .eraseblocks = { {4 * 1024, 16} },
6548 .block_erase = erase_sector_jedec,
6549 }, {
6550 .eraseblocks = { {64 * 1024, 1} },
6551 .block_erase = erase_chip_block_jedec,
6552 }
6553 },
Sean Nelson35727f72010-01-28 23:55:12 +00006554 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006555 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006556 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006557 },
6558
6559 {
6560 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006561 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006562 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006563 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006564 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006565 .total_size = 128,
6566 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006567 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006568 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006569 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006570 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006571 .block_erasers =
6572 {
6573 {
6574 .eraseblocks = { {4 * 1024, 32} },
6575 .block_erase = erase_sector_jedec,
6576 }, {
6577 .eraseblocks = { {128 * 1024, 1} },
6578 .block_erase = erase_chip_block_jedec,
6579 }
6580 },
Sean Nelson35727f72010-01-28 23:55:12 +00006581 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006583 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006584 },
6585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006586 {
6587 .vendor = "SST",
6588 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006589 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006590 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006591 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006592 .total_size = 256,
6593 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006594 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006595 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006596 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006597 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006598 .block_erasers =
6599 {
6600 {
6601 .eraseblocks = { {4 * 1024, 64} },
6602 .block_erase = erase_sector_jedec,
6603 }, {
6604 .eraseblocks = { {256 * 1024, 1} },
6605 .block_erase = erase_chip_block_jedec,
6606 }
6607 },
Sean Nelson35727f72010-01-28 23:55:12 +00006608 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006609 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006610 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006611 },
6612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006613 {
6614 .vendor = "SST",
6615 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006616 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006617 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006618 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006619 .total_size = 512,
6620 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006621 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006622 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006623 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006624 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006625 .block_erasers =
6626 {
6627 {
6628 .eraseblocks = { {4 * 1024, 128} },
6629 .block_erase = erase_sector_jedec,
6630 }, {
6631 .eraseblocks = { {512 * 1024, 1} },
6632 .block_erase = erase_chip_block_jedec,
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 = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006638 },
6639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006640 {
6641 .vendor = "SST",
6642 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006644 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006645 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006646 .total_size = 64,
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, 16} },
6656 .block_erase = erase_sector_jedec,
6657 }, {
6658 .eraseblocks = { {64 * 1024, 1} },
6659 .block_erase = erase_chip_block_jedec,
6660 }
6661 },
Sean Nelson35727f72010-01-28 23:55:12 +00006662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006664 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006665 },
6666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006667 {
6668 .vendor = "SST",
6669 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006670 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006671 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006672 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006673 .total_size = 128,
6674 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006675 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006676 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006677 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006678 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006679 .block_erasers =
6680 {
6681 {
6682 .eraseblocks = { {4 * 1024, 32} },
6683 .block_erase = erase_sector_jedec,
6684 }, {
6685 .eraseblocks = { {128 * 1024, 1} },
6686 .block_erase = erase_chip_block_jedec,
6687 }
6688 },
Sean Nelson35727f72010-01-28 23:55:12 +00006689 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006690 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006691 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006692 },
6693
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006694 {
6695 .vendor = "SST",
6696 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006697 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006698 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006699 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006700 .total_size = 256,
6701 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006702 .feature_bits = FEATURE_EITHER_RESET,
6703 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006704 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006705 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006706 .block_erasers =
6707 {
6708 {
6709 .eraseblocks = { {4 * 1024, 64} },
6710 .block_erase = erase_sector_jedec,
6711 }, {
6712 .eraseblocks = { {256 * 1024, 1} },
6713 .block_erase = erase_chip_block_jedec,
6714 }
6715 },
Sean Nelson35727f72010-01-28 23:55:12 +00006716 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006717 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006718 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006719 },
6720
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006721 {
6722 .vendor = "SST",
6723 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006724 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006725 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006726 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006727 .total_size = 512,
6728 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006729 .feature_bits = FEATURE_EITHER_RESET,
6730 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006731 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006732 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006733 .block_erasers =
6734 {
6735 {
6736 .eraseblocks = { {4 * 1024, 128} },
6737 .block_erase = erase_sector_jedec,
6738 }, {
6739 .eraseblocks = { {512 * 1024, 1} },
6740 .block_erase = erase_chip_block_jedec,
6741 }
6742 },
Sean Nelson35727f72010-01-28 23:55:12 +00006743 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006745 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006746 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006748 {
6749 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006750 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006751 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006752 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006753 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006754 .total_size = 1024,
6755 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006756 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006757 .tested = TEST_UNTESTED,
6758 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006759 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006760 .block_erasers =
6761 {
6762 {
6763 .eraseblocks = { {4 * 1024, 256} },
6764 .block_erase = erase_sector_jedec,
6765 }, {
6766 .eraseblocks = { {64 * 1024, 16} },
6767 .block_erase = erase_block_jedec,
6768 }, {
6769 .eraseblocks = { {1024 * 1024, 1} },
6770 .block_erase = erase_chip_block_jedec,
6771 }
6772 },
Sean Nelson35727f72010-01-28 23:55:12 +00006773 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006774 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006775 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006776 },
6777
6778 {
6779 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006780 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006781 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006782 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006783 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006784 .total_size = 256,
6785 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006786 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006787 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006788 .probe = probe_jedec,
6789 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006790 .block_erasers =
6791 {
6792 {
6793 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006794 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006795 }, {
6796 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006797 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006798 }, {
6799 .eraseblocks = { {256 * 1024, 1} },
6800 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6801 }
6802 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006803 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006804 .unlock = unlock_sst_fwhub,
6805 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006806 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006807 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006808 },
6809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006810 {
6811 .vendor = "SST",
6812 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006813 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006814 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006815 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006816 .total_size = 384,
6817 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006818 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006819 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006820 .probe = probe_jedec,
6821 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006822 .block_erasers =
6823 {
6824 {
6825 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006826 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006827 }, {
6828 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006829 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006830 }, {
6831 .eraseblocks = { {384 * 1024, 1} },
6832 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6833 }
6834 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006835 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006836 .unlock = unlock_sst_fwhub,
6837 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006838 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006839 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006840 },
6841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006842 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006843 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6844 * and is only honored for 64k block erase, but not 4k sector erase.
6845 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006846 .vendor = "SST",
6847 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006848 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006849 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006850 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006851 .total_size = 512,
6852 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006853 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006854 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006855 .probe = probe_jedec,
6856 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006857 .block_erasers =
6858 {
6859 {
6860 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006861 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006862 }, {
6863 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006864 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006865 }, {
6866 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006867 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006868 },
6869 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006870 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006871 .unlock = unlock_sst_fwhub,
6872 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006873 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006874 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006875 },
6876
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006877 {
6878 .vendor = "SST",
6879 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006880 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006881 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006882 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006883 .total_size = 512,
6884 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006885 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006886 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006887 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006888 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006889 .block_erasers =
6890 {
6891 {
6892 .eraseblocks = { {4 * 1024, 128} },
6893 .block_erase = erase_sector_49lfxxxc,
6894 }, {
6895 .eraseblocks = {
6896 {64 * 1024, 7},
6897 {32 * 1024, 1},
6898 {8 * 1024, 2},
6899 {16 * 1024, 1},
6900 },
Sean Nelson69e58112010-03-23 17:10:28 +00006901 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006902 }
6903 },
Sean Nelson69e58112010-03-23 17:10:28 +00006904 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006905 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006907 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006908 },
6909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006910 {
6911 .vendor = "SST",
6912 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006913 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006914 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006915 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006916 .total_size = 1024,
6917 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006918 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006919 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006920 .probe = probe_jedec,
6921 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006922 .block_erasers =
6923 {
6924 {
6925 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006926 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006927 }, {
6928 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006929 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006930 }, {
6931 .eraseblocks = { {1024 * 1024, 1} },
6932 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6933 }
6934 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006935 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006936 .unlock = unlock_sst_fwhub,
6937 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006938 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006939 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006940 },
6941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006942 {
6943 .vendor = "SST",
6944 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006945 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006946 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006947 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006948 .total_size = 1024,
6949 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006950 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006951 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006952 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006953 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006954 .block_erasers =
6955 {
6956 {
6957 .eraseblocks = { {4 * 1024, 256} },
6958 .block_erase = erase_sector_49lfxxxc,
6959 }, {
6960 .eraseblocks = {
6961 {64 * 1024, 15},
6962 {32 * 1024, 1},
6963 {8 * 1024, 2},
6964 {16 * 1024, 1},
6965 },
Sean Nelson69e58112010-03-23 17:10:28 +00006966 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006967 }
6968 },
Sean Nelson69e58112010-03-23 17:10:28 +00006969 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006970 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006972 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006973 },
6974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006975 {
6976 .vendor = "SST",
6977 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006978 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006980 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006981 .total_size = 2048,
6982 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006983 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00006984 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006985 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006986 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006987 .block_erasers =
6988 {
6989 {
6990 .eraseblocks = { {4 * 1024, 512} },
6991 .block_erase = erase_sector_49lfxxxc,
6992 }, {
6993 .eraseblocks = {
6994 {64 * 1024, 31},
6995 {32 * 1024, 1},
6996 {8 * 1024, 2},
6997 {16 * 1024, 1},
6998 },
Sean Nelson69e58112010-03-23 17:10:28 +00006999 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007000 }
7001 },
Sean Nelson69e58112010-03-23 17:10:28 +00007002 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007003 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007004 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007005 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007006 },
7007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007008 {
7009 .vendor = "SST",
7010 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007011 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007012 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007013 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007014 .total_size = 256,
7015 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007016 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007017 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007018 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007019 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007020 .block_erasers =
7021 {
7022 {
7023 .eraseblocks = { {4 * 1024, 64} },
7024 .block_erase = erase_sector_jedec,
7025 }, {
7026 .eraseblocks = { {16 * 1024, 16} },
7027 .block_erase = erase_block_jedec,
7028 }, {
7029 .eraseblocks = { {256 * 1024, 1} },
7030 .block_erase = NULL,
7031 }
7032 },
Sean Nelson35727f72010-01-28 23:55:12 +00007033 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007034 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007035 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007036 },
7037
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007038 {
7039 .vendor = "SST",
7040 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007041 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007042 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007043 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007044 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007045 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007046 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007047 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007048 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007049 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007050 .block_erasers =
7051 {
7052 {
7053 .eraseblocks = { {4 * 1024, 64} },
7054 .block_erase = erase_sector_jedec,
7055 }, {
7056 .eraseblocks = { {16 * 1024, 16} },
7057 .block_erase = erase_block_jedec,
7058 }, {
7059 .eraseblocks = { {256 * 1024, 1} },
7060 .block_erase = NULL,
7061 }
7062 },
Sean Nelson35727f72010-01-28 23:55:12 +00007063 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007064 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007065 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007066 },
7067
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007068 {
7069 .vendor = "SST",
7070 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007071 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007072 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007073 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007074 .total_size = 512,
7075 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007076 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007077 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007079 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007080 .block_erasers =
7081 {
7082 {
7083 .eraseblocks = { {4 * 1024, 128} },
7084 .block_erase = erase_sector_jedec,
7085 }, {
7086 .eraseblocks = { {64 * 1024, 8} },
7087 .block_erase = erase_block_jedec,
7088 }, {
7089 .eraseblocks = { {512 * 1024, 1} },
7090 .block_erase = NULL,
7091 }
7092 },
Sean Nelson35727f72010-01-28 23:55:12 +00007093 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007094 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007095 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007096 },
7097
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007098 {
7099 .vendor = "SST",
7100 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007101 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007102 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007103 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007104 .total_size = 512,
7105 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007106 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007107 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007108 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007109 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007110 .block_erasers =
7111 {
7112 {
7113 .eraseblocks = { {4 * 1024, 128} },
7114 .block_erase = erase_sector_jedec,
7115 }, {
7116 .eraseblocks = { {64 * 1024, 8} },
7117 .block_erase = erase_block_jedec,
7118 }, {
7119 .eraseblocks = { {512 * 1024, 1} },
7120 .block_erase = NULL,
7121 }
7122 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007123 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007124 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007126 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007127 },
7128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007129 {
7130 .vendor = "SST",
7131 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007132 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007133 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007134 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007135 .total_size = 1024,
7136 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007137 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007139 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007140 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007141 .block_erasers =
7142 {
7143 {
7144 .eraseblocks = { {4 * 1024, 256} },
7145 .block_erase = erase_sector_jedec,
7146 }, {
7147 .eraseblocks = { {64 * 1024, 16} },
7148 .block_erase = erase_block_jedec,
7149 }, {
7150 .eraseblocks = { {1024 * 1024, 1} },
7151 .block_erase = NULL,
7152 }
7153 },
Sean Nelson35727f72010-01-28 23:55:12 +00007154 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007155 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007156 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007157 },
7158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007159 {
7160 .vendor = "SST",
7161 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007162 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007163 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007164 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007165 .total_size = 2048,
7166 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007167 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007168 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007169 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007170 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007171 .block_erasers =
7172 {
7173 {
7174 .eraseblocks = { {4 * 1024, 512} },
7175 .block_erase = erase_sector_49lfxxxc,
7176 }, {
7177 .eraseblocks = {
7178 {64 * 1024, 31},
7179 {32 * 1024, 1},
7180 {8 * 1024, 2},
7181 {16 * 1024, 1},
7182 },
Sean Nelson69e58112010-03-23 17:10:28 +00007183 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007184 }
7185 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007186 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007187 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007189 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007190 },
7191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007192 {
7193 .vendor = "ST",
7194 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007195 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007196 .manufacture_id = ST_ID,
7197 .model_id = ST_M25P05A,
7198 .total_size = 64,
7199 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007200 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007201 .tested = TEST_UNTESTED,
7202 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007203 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007204 .block_erasers =
7205 {
7206 {
7207 .eraseblocks = { {32 * 1024, 2} },
7208 .block_erase = spi_block_erase_d8,
7209 }, {
7210 .eraseblocks = { {64 * 1024, 1} },
7211 .block_erase = spi_block_erase_c7,
7212 }
7213 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007214 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007215 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007216 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007217 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007218 },
7219
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007220 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7221 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007222 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007223 * only is successful if RDID does not work.
7224 */
7225 {
7226 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007227 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007228 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007229 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007230 .model_id = ST_M25P05_RES,
7231 .total_size = 64,
7232 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007233 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007234 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007235 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007236 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007237 .block_erasers =
7238 {
7239 {
7240 .eraseblocks = { {32 * 1024, 2} },
7241 .block_erase = spi_block_erase_d8,
7242 }, {
7243 .eraseblocks = { {64 * 1024, 1} },
7244 .block_erase = spi_block_erase_c7,
7245 }
7246 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007247 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007248 .write = spi_chip_write_1, /* 128 */
7249 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007250 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007251 },
7252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007253 {
7254 .vendor = "ST",
7255 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007256 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007257 .manufacture_id = ST_ID,
7258 .model_id = ST_M25P10A,
7259 .total_size = 128,
7260 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007261 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007262 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007263 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007264 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007265 .block_erasers =
7266 {
7267 {
7268 .eraseblocks = { {32 * 1024, 4} },
7269 .block_erase = spi_block_erase_d8,
7270 }, {
7271 .eraseblocks = { {128 * 1024, 1} },
7272 .block_erase = spi_block_erase_c7,
7273 }
7274 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007276 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007277 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007278 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007279 },
7280
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007281 /* The ST M25P10 has the same problem as the M25P05. */
7282 {
7283 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007284 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007285 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007286 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007287 .model_id = ST_M25P10_RES,
7288 .total_size = 128,
7289 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007290 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007291 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007292 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007293 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007294 .block_erasers =
7295 {
7296 {
7297 .eraseblocks = { {32 * 1024, 4} },
7298 .block_erase = spi_block_erase_d8,
7299 }, {
7300 .eraseblocks = { {128 * 1024, 1} },
7301 .block_erase = spi_block_erase_c7,
7302 }
7303 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007304 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007305 .write = spi_chip_write_1, /* 128 */
7306 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007307 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007308 },
7309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007310 {
7311 .vendor = "ST",
7312 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007313 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007314 .manufacture_id = ST_ID,
7315 .model_id = ST_M25P20,
7316 .total_size = 256,
7317 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007318 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007319 .tested = TEST_UNTESTED,
7320 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007321 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007322 .block_erasers =
7323 {
7324 {
7325 .eraseblocks = { {64 * 1024, 4} },
7326 .block_erase = spi_block_erase_d8,
7327 }, {
7328 .eraseblocks = { {256 * 1024, 1} },
7329 .block_erase = spi_block_erase_c7,
7330 }
7331 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007332 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007333 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007334 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007335 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007336 },
7337
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007338 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007339 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007340 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007341 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007342 .manufacture_id = ST_ID,
7343 .model_id = ST_M25P40,
7344 .total_size = 512,
7345 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007346 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007347 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007349 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007350 .block_erasers =
7351 {
7352 {
7353 .eraseblocks = { {64 * 1024, 8} },
7354 .block_erase = spi_block_erase_d8,
7355 }, {
7356 .eraseblocks = { {512 * 1024, 1} },
7357 .block_erase = spi_block_erase_c7,
7358 }
7359 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007360 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007361 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007362 .read = spi_chip_read,
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 = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007369 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007370 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007371 .model_id = ST_M25P40_RES,
7372 .total_size = 512,
7373 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007374 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007375 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007376 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007377 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007378 .block_erasers =
7379 {
7380 {
7381 .eraseblocks = { {64 * 1024, 8} },
7382 .block_erase = spi_block_erase_d8,
7383 }, {
7384 .eraseblocks = { {512 * 1024, 1} },
7385 .block_erase = spi_block_erase_c7,
7386 }
7387 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007388 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007389 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007390 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007391 },
7392
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007393 {
7394 .vendor = "ST",
7395 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007396 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007397 .manufacture_id = ST_ID,
7398 .model_id = ST_M25P80,
7399 .total_size = 1024,
7400 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007401 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007402 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007403 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007404 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007405 .block_erasers =
7406 {
7407 {
7408 .eraseblocks = { {64 * 1024, 16} },
7409 .block_erase = spi_block_erase_d8,
7410 }, {
7411 .eraseblocks = { {1024 * 1024, 1} },
7412 .block_erase = spi_block_erase_c7,
7413 }
7414 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007416 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007417 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007418 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007419 },
7420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007421 {
7422 .vendor = "ST",
7423 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007424 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007425 .manufacture_id = ST_ID,
7426 .model_id = ST_M25P16,
7427 .total_size = 2048,
7428 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007429 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007430 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007431 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007432 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007433 .block_erasers =
7434 {
7435 {
7436 .eraseblocks = { {64 * 1024, 32} },
7437 .block_erase = spi_block_erase_d8,
7438 }, {
7439 .eraseblocks = { {2 * 1024 * 1024, 1} },
7440 .block_erase = spi_block_erase_c7,
7441 }
7442 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007443 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007444 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007445 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007446 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007447 },
7448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007449 {
7450 .vendor = "ST",
7451 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007452 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007453 .manufacture_id = ST_ID,
7454 .model_id = ST_M25P32,
7455 .total_size = 4096,
7456 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007457 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007458 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007459 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007460 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007461 .block_erasers =
7462 {
7463 {
7464 .eraseblocks = { {64 * 1024, 64} },
7465 .block_erase = spi_block_erase_d8,
7466 }, {
7467 .eraseblocks = { {4 * 1024 * 1024, 1} },
7468 .block_erase = spi_block_erase_c7,
7469 }
7470 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007471 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007472 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007473 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007474 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007475 },
7476
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007477 {
7478 .vendor = "ST",
7479 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007480 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007481 .manufacture_id = ST_ID,
7482 .model_id = ST_M25P64,
7483 .total_size = 8192,
7484 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007485 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007486 .tested = TEST_UNTESTED,
7487 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007488 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007489 .block_erasers =
7490 {
7491 {
7492 .eraseblocks = { {64 * 1024, 128} },
7493 .block_erase = spi_block_erase_d8,
7494 }, {
7495 .eraseblocks = { {8 * 1024 * 1024, 1} },
7496 .block_erase = spi_block_erase_c7,
7497 }
7498 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007499 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007500 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007501 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007502 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007503 },
7504
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007505 {
7506 .vendor = "ST",
7507 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007508 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007509 .manufacture_id = ST_ID,
7510 .model_id = ST_M25P128,
7511 .total_size = 16384,
7512 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007513 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007514 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007515 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007516 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007517 .block_erasers =
7518 {
7519 {
7520 .eraseblocks = { {256 * 1024, 64} },
7521 .block_erase = spi_block_erase_d8,
7522 }, {
7523 .eraseblocks = { {16 * 1024 * 1024, 1} },
7524 .block_erase = spi_block_erase_c7,
7525 }
7526 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007527 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007528 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007529 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007530 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007531 },
7532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007533 {
7534 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007535 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007536 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007537 .manufacture_id = ST_ID,
7538 .model_id = ST_M25PX16,
7539 .total_size = 2048,
7540 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007541 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00007542 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007543 .tested = TEST_OK_PREW,
7544 .probe = probe_spi_rdid,
7545 .probe_timing = TIMING_ZERO,
7546 .block_erasers =
7547 {
7548 {
7549 .eraseblocks = { { 4 * 1024, 512 } },
7550 .block_erase = spi_block_erase_20,
7551 }, {
7552 .eraseblocks = { {64 * 1024, 32} },
7553 .block_erase = spi_block_erase_d8,
7554 }, {
7555 .eraseblocks = { {2 * 1024 * 1024, 1} },
7556 .block_erase = spi_block_erase_c7,
7557 }
7558 },
7559 .unlock = spi_disable_blockprotect,
7560 .write = spi_chip_write_256,
7561 .read = spi_chip_read,
7562 },
7563
7564 {
7565 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007566 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007567 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007568 .manufacture_id = ST_ID,
7569 .model_id = ST_M25PX32,
7570 .total_size = 4096,
7571 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007572 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007573 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007574 .probe = probe_spi_rdid,
7575 .probe_timing = TIMING_ZERO,
7576 .block_erasers =
7577 {
7578 {
7579 .eraseblocks = { { 4 * 1024, 1024 } },
7580 .block_erase = spi_block_erase_20,
7581 }, {
7582 .eraseblocks = { {64 * 1024, 64} },
7583 .block_erase = spi_block_erase_d8,
7584 }, {
7585 .eraseblocks = { {4 * 1024 * 1024, 1} },
7586 .block_erase = spi_block_erase_c7,
7587 }
7588 },
7589 .unlock = spi_disable_blockprotect,
7590 .write = spi_chip_write_256,
7591 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007592 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007593 },
7594
7595 {
7596 .vendor = "ST",
7597 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007598 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007599 .manufacture_id = ST_ID,
7600 .model_id = ST_M25PX64,
7601 .total_size = 8192,
7602 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007603 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007604 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007605 .probe = probe_spi_rdid,
7606 .probe_timing = TIMING_ZERO,
7607 .block_erasers =
7608 {
7609 {
7610 .eraseblocks = { { 4 * 1024, 2048 } },
7611 .block_erase = spi_block_erase_20,
7612 }, {
7613 .eraseblocks = { {64 * 1024, 128} },
7614 .block_erase = spi_block_erase_d8,
7615 }, {
7616 .eraseblocks = { {8 * 1024 * 1024, 1} },
7617 .block_erase = spi_block_erase_c7,
7618 }
7619 },
7620 .unlock = spi_disable_blockprotect,
7621 .write = spi_chip_write_256,
7622 .read = spi_chip_read,
7623 },
7624
7625 {
7626 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007627 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007628 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007629 .manufacture_id = ST_ID,
7630 .model_id = ST_M29F002B,
7631 .total_size = 256,
7632 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007633 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007634 .tested = TEST_UNTESTED,
7635 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007636 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007637 .block_erasers =
7638 {
7639 {
7640 .eraseblocks = {
7641 {16 * 1024, 1},
7642 {8 * 1024, 2},
7643 {32 * 1024, 1},
7644 {64 * 1024, 3},
7645 },
7646 .block_erase = erase_sector_jedec,
7647 }, {
7648 .eraseblocks = { {256 * 1024, 1} },
7649 .block_erase = erase_chip_block_jedec,
7650 }
7651 },
Sean Nelson35727f72010-01-28 23:55:12 +00007652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007653 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007654 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007655 },
7656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007657 {
7658 .vendor = "ST",
7659 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007660 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007661 .manufacture_id = ST_ID,
7662 .model_id = ST_M29F002T,
7663 .total_size = 256,
7664 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007665 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7666 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007667 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007668 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007669 .block_erasers =
7670 {
7671 {
7672 .eraseblocks = {
7673 {64 * 1024, 3},
7674 {32 * 1024, 1},
7675 {8 * 1024, 2},
7676 {16 * 1024, 1},
7677 },
7678 .block_erase = erase_sector_jedec,
7679 }, {
7680 .eraseblocks = { {256 * 1024, 1} },
7681 .block_erase = erase_chip_block_jedec,
7682 }
7683 },
Sean Nelson35727f72010-01-28 23:55:12 +00007684 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007685 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007686 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007687 },
7688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007689 {
7690 .vendor = "ST",
7691 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007692 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007693 .manufacture_id = ST_ID,
7694 .model_id = ST_M29F040B,
7695 .total_size = 512,
7696 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007697 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7698 .tested = TEST_UNTESTED,
7699 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007700 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007701 .block_erasers =
7702 {
7703 {
7704 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007705 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007706 }, {
7707 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007708 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007709 }
7710 },
Sean Nelson35727f72010-01-28 23:55:12 +00007711 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007713 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007714 },
7715
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007716 {
Sean Nelson35727f72010-01-28 23:55:12 +00007717 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007718 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007719 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007720 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007721 .manufacture_id = ST_ID,
7722 .model_id = ST_M29F400BB,
7723 .total_size = 512,
7724 .page_size = 64 * 1024,
7725 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007726 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007727 .probe = probe_m29f400bt,
7728 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7729 .block_erasers =
7730 {
7731 {
7732 .eraseblocks = {
7733 {16 * 1024, 1},
7734 {8 * 1024, 2},
7735 {32 * 1024, 1},
7736 {64 * 1024, 7},
7737 },
7738 .block_erase = block_erase_m29f400bt,
7739 }, {
7740 .eraseblocks = { {512 * 1024, 1} },
7741 .block_erase = block_erase_chip_m29f400bt,
7742 }
7743 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007744 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007745 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007746 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007747 },
7748 {
7749 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7750 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007751 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007752 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007753 .manufacture_id = ST_ID,
7754 .model_id = ST_M29F400BT,
7755 .total_size = 512,
7756 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007757 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007758 .tested = TEST_UNTESTED,
7759 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007760 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007761 .block_erasers =
7762 {
7763 {
7764 .eraseblocks = {
7765 {64 * 1024, 7},
7766 {32 * 1024, 1},
7767 {8 * 1024, 2},
7768 {16 * 1024, 1},
7769 },
7770 .block_erase = block_erase_m29f400bt,
7771 }, {
7772 .eraseblocks = { {512 * 1024, 1} },
7773 .block_erase = block_erase_chip_m29f400bt,
7774 }
7775 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007776 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007777 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007778 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007779 },
7780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007781 {
7782 .vendor = "ST",
7783 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007784 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007785 .manufacture_id = ST_ID,
7786 .model_id = ST_M29W010B,
7787 .total_size = 128,
7788 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007789 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007790 .tested = TEST_UNTESTED,
7791 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007792 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007793 .block_erasers =
7794 {
7795 {
7796 .eraseblocks = { {16 * 1024, 8}, },
7797 .block_erase = erase_sector_jedec,
7798 }, {
7799 .eraseblocks = { {128 * 1024, 1} },
7800 .block_erase = erase_chip_block_jedec,
7801 }
7802 },
Sean Nelson35727f72010-01-28 23:55:12 +00007803 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007805 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007806 },
7807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007808 {
7809 .vendor = "ST",
7810 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007811 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007812 .manufacture_id = ST_ID,
7813 .model_id = ST_M29W040B,
7814 .total_size = 512,
7815 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007816 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007817 .tested = TEST_UNTESTED,
7818 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007819 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007820 .block_erasers =
7821 {
7822 {
7823 .eraseblocks = { {64 * 1024, 8}, },
7824 .block_erase = erase_sector_jedec,
7825 }, {
7826 .eraseblocks = { {512 * 1024, 1} },
7827 .block_erase = erase_chip_block_jedec,
7828 }
7829 },
Sean Nelson35727f72010-01-28 23:55:12 +00007830 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007832 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007833 },
7834
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007835 {
7836 .vendor = "ST",
7837 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007838 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007839 .manufacture_id = ST_ID,
7840 .model_id = ST_M29W512B,
7841 .total_size = 64,
7842 .page_size = 64 * 1024,
7843 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007844 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007845 .probe = probe_jedec,
7846 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007847 .block_erasers =
7848 {
7849 {
7850 .eraseblocks = { {64 * 1024, 1} },
7851 .block_erase = erase_chip_block_jedec,
7852 }
7853 },
7854 .write = write_jedec_1,
7855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007856 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007857 },
7858
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007859 {
7860 .vendor = "ST",
7861 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007862 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007863 .manufacture_id = ST_ID,
7864 .model_id = ST_M50FLW040A,
7865 .total_size = 512,
7866 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007867 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007868 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007869 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007870 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007871 .block_erasers =
7872 {
7873 {
Sean Nelson329bde72010-01-19 16:39:19 +00007874 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007875 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007876 {64 * 1024, 5}, /* block */
7877 {4 * 1024, 16}, /* sector */
7878 {4 * 1024, 16}, /* sector */
7879 },
7880 .block_erase = NULL,
7881 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007882 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007883 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007884 }
7885 },
Sean Nelson28accc22010-03-19 18:47:06 +00007886 .unlock = unlock_stm50flw0x0x,
7887 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007889 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007890 },
7891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007892 {
7893 .vendor = "ST",
7894 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007895 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007896 .manufacture_id = ST_ID,
7897 .model_id = ST_M50FLW040B,
7898 .total_size = 512,
7899 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007900 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007901 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007902 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007903 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007904 .block_erasers =
7905 {
7906 {
Sean Nelson329bde72010-01-19 16:39:19 +00007907 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007908 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007909 {4 * 1024, 16}, /* sector */
7910 {64 * 1024, 5}, /* block */
7911 {4 * 1024, 16}, /* sector */
7912 },
7913 .block_erase = NULL,
7914 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007915 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007916 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007917 }
7918 },
Sean Nelson28accc22010-03-19 18:47:06 +00007919 .unlock = unlock_stm50flw0x0x,
7920 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007922 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007923 },
7924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007925 {
7926 .vendor = "ST",
7927 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007928 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007929 .manufacture_id = ST_ID,
7930 .model_id = ST_M50FLW080A,
7931 .total_size = 1024,
7932 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007933 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007934 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007935 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007936 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007937 .block_erasers =
7938 {
7939 {
Sean Nelson329bde72010-01-19 16:39:19 +00007940 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007941 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007942 {64 * 1024, 13}, /* block */
7943 {4 * 1024, 16}, /* sector */
7944 {4 * 1024, 16}, /* sector */
7945 },
7946 .block_erase = NULL,
7947 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007948 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007949 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007950 }
7951 },
Sean Nelson28accc22010-03-19 18:47:06 +00007952 .unlock = unlock_stm50flw0x0x,
7953 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007954 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007955 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007956 },
7957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007958 {
7959 .vendor = "ST",
7960 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007961 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007962 .manufacture_id = ST_ID,
7963 .model_id = ST_M50FLW080B,
7964 .total_size = 1024,
7965 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007966 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007967 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007968 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007969 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007970 .block_erasers =
7971 {
7972 {
Sean Nelson329bde72010-01-19 16:39:19 +00007973 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007974 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007975 {4 * 1024, 16}, /* sector */
7976 {64 * 1024, 13}, /* block */
7977 {4 * 1024, 16}, /* sector */
7978 },
7979 .block_erase = NULL,
7980 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007981 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007982 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007983 }
7984 },
Sean Nelson28accc22010-03-19 18:47:06 +00007985 .unlock = unlock_stm50flw0x0x,
7986 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007988 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007989 },
7990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007991 {
7992 .vendor = "ST",
7993 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007994 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007995 .manufacture_id = ST_ID,
7996 .model_id = ST_M50FW002,
7997 .total_size = 256,
7998 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007999 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008000 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008001 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008002 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008003 .block_erasers =
8004 {
8005 {
8006 .eraseblocks = {
8007 {64 * 1024, 3},
8008 {32 * 1024, 1},
8009 {8 * 1024, 2},
8010 {16 * 1024, 1},
8011 },
Sean Nelson28accc22010-03-19 18:47:06 +00008012 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008013 }
8014 },
Sean Nelson28accc22010-03-19 18:47:06 +00008015 .unlock = unlock_stm50flw0x0x,
8016 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008017 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008018 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008019 },
8020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008021 {
8022 .vendor = "ST",
8023 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008024 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008025 .manufacture_id = ST_ID,
8026 .model_id = ST_M50FW016,
8027 .total_size = 2048,
8028 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008029 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008030 .tested = TEST_UNTESTED,
8031 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008032 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008033 .block_erasers =
8034 {
8035 {
8036 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008037 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008038 }
8039 },
Sean Nelson28accc22010-03-19 18:47:06 +00008040 .unlock = unlock_stm50flw0x0x,
8041 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008043 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008044 },
8045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008046 {
8047 .vendor = "ST",
8048 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008049 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008050 .manufacture_id = ST_ID,
8051 .model_id = ST_M50FW040,
8052 .total_size = 512,
8053 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008054 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008055 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008056 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008057 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008058 .block_erasers =
8059 {
8060 {
8061 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008062 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008063 }
8064 },
Sean Nelson28accc22010-03-19 18:47:06 +00008065 .unlock = unlock_stm50flw0x0x,
8066 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008067 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008068 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008069 },
8070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008071 {
8072 .vendor = "ST",
8073 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008074 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008075 .manufacture_id = ST_ID,
8076 .model_id = ST_M50FW080,
8077 .total_size = 1024,
8078 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008079 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008080 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008081 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008082 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008083 .block_erasers =
8084 {
8085 {
8086 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008087 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008088 }
8089 },
Sean Nelson28accc22010-03-19 18:47:06 +00008090 .unlock = unlock_stm50flw0x0x,
8091 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008093 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008094 },
8095
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008096 {
8097 .vendor = "ST",
8098 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008099 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008100 .manufacture_id = ST_ID,
8101 .model_id = ST_M50LPW116,
8102 .total_size = 2048,
8103 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008104 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008105 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008106 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008107 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008108 .block_erasers =
8109 {
8110 {
8111 .eraseblocks = {
8112 {4 * 1024, 16},
8113 {64 * 1024, 30},
8114 {32 * 1024, 1},
8115 {8 * 1024, 2},
8116 {16 * 1024, 1},
8117 },
Sean Nelson28accc22010-03-19 18:47:06 +00008118 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008119 }
8120 },
Sean Nelson28accc22010-03-19 18:47:06 +00008121 .unlock = unlock_stm50flw0x0x,
8122 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008123 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008124 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008125 },
8126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008127 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008128 .vendor = "SyncMOS/MoselVitelic",
8129 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008130 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008131 .manufacture_id = SYNCMOS_MVC_ID,
8132 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008133 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008134 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008135 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008136 .tested = TEST_UNTESTED,
8137 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008138 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008139 .block_erasers =
8140 {
8141 {
8142 .eraseblocks = { {512, 256} },
8143 .block_erase = erase_sector_jedec,
8144 }, {
8145 .eraseblocks = { {128 * 1024, 1} },
8146 .block_erase = erase_chip_block_jedec,
8147 },
8148 },
Sean Nelson35727f72010-01-28 23:55:12 +00008149 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008151 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008152 },
8153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008154 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008155 .vendor = "SyncMOS/MoselVitelic",
8156 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008157 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008158 .manufacture_id = SYNCMOS_MVC_ID,
8159 .model_id = SM_MVC_29C51001T,
8160 .total_size = 128,
8161 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008162 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008163 .tested = TEST_UNTESTED,
8164 .probe = probe_jedec,
8165 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8166 .block_erasers =
8167 {
8168 {
8169 .eraseblocks = { {512, 256} },
8170 .block_erase = erase_sector_jedec,
8171 }, {
8172 .eraseblocks = { {128 * 1024, 1} },
8173 .block_erase = erase_chip_block_jedec,
8174 },
8175 },
8176 .write = write_jedec_1,
8177 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008178 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008179 },
8180
8181 {
8182 .vendor = "SyncMOS/MoselVitelic",
8183 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008184 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008185 .manufacture_id = SYNCMOS_MVC_ID,
8186 .model_id = SM_MVC_29C51002B,
8187 .total_size = 256,
8188 .page_size = 512,
8189 .feature_bits = FEATURE_EITHER_RESET,
8190 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008191 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008192 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008193 .block_erasers =
8194 {
8195 {
8196 .eraseblocks = { {512, 512} },
8197 .block_erase = erase_sector_jedec,
8198 }, {
8199 .eraseblocks = { {256 * 1024, 1} },
8200 .block_erase = erase_chip_block_jedec,
8201 },
8202 },
Sean Nelson35727f72010-01-28 23:55:12 +00008203 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008204 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008205 },
8206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008207 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008208 .vendor = "SyncMOS/MoselVitelic",
8209 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008210 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008211 .manufacture_id = SYNCMOS_MVC_ID,
8212 .model_id = SM_MVC_29C51002T,
8213 .total_size = 256,
8214 .page_size = 512,
8215 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008216 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008217 .probe = probe_jedec,
8218 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8219 .block_erasers =
8220 {
8221 {
8222 .eraseblocks = { {512, 512} },
8223 .block_erase = erase_sector_jedec,
8224 }, {
8225 .eraseblocks = { {256 * 1024, 1} },
8226 .block_erase = erase_chip_block_jedec,
8227 },
8228 },
8229 .write = write_jedec_1,
8230 .read = read_memmapped,
8231 },
8232
8233 {
8234 .vendor = "SyncMOS/MoselVitelic",
8235 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008236 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008237 .manufacture_id = SYNCMOS_MVC_ID,
8238 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008239 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008240 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008241 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008242 .tested = TEST_UNTESTED,
8243 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008244 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008245 .block_erasers =
8246 {
8247 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008248 .eraseblocks = { {1024, 512} },
8249 .block_erase = erase_sector_jedec,
8250 }, {
8251 .eraseblocks = { {512 * 1024, 1} },
8252 .block_erase = erase_chip_block_jedec,
8253 },
8254 },
8255 .write = write_jedec_1,
8256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008257 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008258 },
8259
8260 {
8261 .vendor = "SyncMOS/MoselVitelic",
8262 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008263 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008264 .manufacture_id = SYNCMOS_MVC_ID,
8265 .model_id = SM_MVC_29C51004T,
8266 .total_size = 512,
8267 .page_size = 1024,
8268 .feature_bits = FEATURE_EITHER_RESET,
8269 .tested = TEST_UNTESTED,
8270 .probe = probe_jedec,
8271 .probe_timing = TIMING_ZERO,
8272 .block_erasers =
8273 {
8274 {
8275 .eraseblocks = { {1024, 512} },
8276 .block_erase = erase_sector_jedec,
8277 }, {
8278 .eraseblocks = { {512 * 1024, 1} },
8279 .block_erase = erase_chip_block_jedec,
8280 },
8281 },
8282 .write = write_jedec_1,
8283 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008284 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008285 },
8286
8287 {
8288 .vendor = "SyncMOS/MoselVitelic",
8289 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008290 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008291 .manufacture_id = SYNCMOS_MVC_ID,
8292 .model_id = SM_MVC_29C31004B,
8293 .total_size = 512,
8294 .page_size = 1024,
8295 .feature_bits = FEATURE_EITHER_RESET,
8296 .tested = TEST_UNTESTED,
8297 .probe = probe_jedec,
8298 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8299 .block_erasers =
8300 {
8301 {
8302 .eraseblocks = { {1024, 512} },
8303 .block_erase = erase_sector_jedec,
8304 }, {
8305 .eraseblocks = { {512 * 1024, 1} },
8306 .block_erase = erase_chip_block_jedec,
8307 },
8308 },
8309 .write = write_jedec_1,
8310 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008311 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008312 },
8313
8314 {
8315 .vendor = "SyncMOS/MoselVitelic",
8316 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008317 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008318 .manufacture_id = SYNCMOS_MVC_ID,
8319 .model_id = SM_MVC_29C31004T,
8320 .total_size = 512,
8321 .page_size = 1024,
8322 .feature_bits = FEATURE_EITHER_RESET,
8323 .tested = TEST_UNTESTED,
8324 .probe = probe_jedec,
8325 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8326 .block_erasers =
8327 {
8328 {
8329 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008330 .block_erase = erase_sector_jedec,
8331 }, {
8332 .eraseblocks = { {512 * 1024, 1} },
8333 .block_erase = erase_chip_block_jedec,
8334 },
8335 },
Sean Nelson35727f72010-01-28 23:55:12 +00008336 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008338 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008339 },
8340
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008341 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008342 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008343 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008344 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008345 .manufacture_id = TI_OLD_ID,
8346 .model_id = TI_TMS29F002RB,
8347 .total_size = 256,
8348 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008349 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008350 .tested = TEST_UNTESTED,
8351 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008352 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008353 .block_erasers =
8354 {
8355 {
8356 .eraseblocks = {
8357 {16 * 1024, 1},
8358 {8 * 1024, 2},
8359 {32 * 1024, 1},
8360 {64 * 1024, 3},
8361 },
8362 .block_erase = erase_sector_jedec,
8363 }, {
8364 .eraseblocks = { {256 * 1024, 1} },
8365 .block_erase = erase_chip_block_jedec,
8366 },
8367 },
Sean Nelson35727f72010-01-28 23:55:12 +00008368 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008369 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008370 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008371 },
8372
8373 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008374 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008375 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008376 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008377 .manufacture_id = TI_OLD_ID,
8378 .model_id = TI_TMS29F002RT,
8379 .total_size = 256,
8380 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008381 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008382 .tested = TEST_UNTESTED,
8383 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008384 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008385 .block_erasers =
8386 {
8387 {
8388 .eraseblocks = {
8389 {64 * 1024, 3},
8390 {32 * 1024, 1},
8391 {8 * 1024, 2},
8392 {16 * 1024, 1},
8393 },
8394 .block_erase = erase_sector_jedec,
8395 }, {
8396 .eraseblocks = { {256 * 1024, 1} },
8397 .block_erase = erase_chip_block_jedec,
8398 },
8399 },
Sean Nelson35727f72010-01-28 23:55:12 +00008400 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008401 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008402 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008403 },
8404
8405 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008406 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008407 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008408 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008409 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008410 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008411 .total_size = 1024,
8412 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008413 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8414 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008415 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008416 .probe = probe_spi_rdid,
8417 .probe_timing = TIMING_ZERO,
8418 .block_erasers =
8419 {
8420 {
8421 .eraseblocks = { {4 * 1024, 256} },
8422 .block_erase = spi_block_erase_20,
8423 }, {
8424 .eraseblocks = { {32 * 1024, 32} },
8425 .block_erase = spi_block_erase_52,
8426 }, {
8427 .eraseblocks = { {64 * 1024, 16} },
8428 .block_erase = spi_block_erase_d8,
8429 }, {
8430 .eraseblocks = { {1024 * 1024, 1} },
8431 .block_erase = spi_block_erase_60,
8432 }, {
8433 .eraseblocks = { {1024 * 1024, 1} },
8434 .block_erase = spi_block_erase_c7,
8435 }
8436 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008437 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008438 .write = spi_chip_write_256,
8439 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008440 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008441 },
8442
8443 {
8444 .vendor = "Winbond",
8445 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008446 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008447 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008448 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008449 .total_size = 2048,
8450 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008451 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8452 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008453 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008454 .probe = probe_spi_rdid,
8455 .probe_timing = TIMING_ZERO,
8456 .block_erasers =
8457 {
8458 {
8459 .eraseblocks = { {4 * 1024, 512} },
8460 .block_erase = spi_block_erase_20,
8461 }, {
8462 .eraseblocks = { {32 * 1024, 64} },
8463 .block_erase = spi_block_erase_52,
8464 }, {
8465 .eraseblocks = { {64 * 1024, 32} },
8466 .block_erase = spi_block_erase_d8,
8467 }, {
8468 .eraseblocks = { {2 * 1024 * 1024, 1} },
8469 .block_erase = spi_block_erase_60,
8470 }, {
8471 .eraseblocks = { {2 * 1024 * 1024, 1} },
8472 .block_erase = spi_block_erase_c7,
8473 }
8474 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008475 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008476 .write = spi_chip_write_256,
8477 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008478 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008479 },
8480
8481 {
8482 .vendor = "Winbond",
8483 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008484 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008485 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008486 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008487 .total_size = 4096,
8488 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008489 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008491 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008492 .probe = probe_spi_rdid,
8493 .probe_timing = TIMING_ZERO,
8494 .block_erasers =
8495 {
8496 {
8497 .eraseblocks = { {4 * 1024, 1024} },
8498 .block_erase = spi_block_erase_20,
8499 }, {
8500 .eraseblocks = { {32 * 1024, 128} },
8501 .block_erase = spi_block_erase_52,
8502 }, {
8503 .eraseblocks = { {64 * 1024, 64} },
8504 .block_erase = spi_block_erase_d8,
8505 }, {
8506 .eraseblocks = { {4 * 1024 * 1024, 1} },
8507 .block_erase = spi_block_erase_60,
8508 }, {
8509 .eraseblocks = { {4 * 1024 * 1024, 1} },
8510 .block_erase = spi_block_erase_c7,
8511 }
8512 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008513 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008514 .write = spi_chip_write_256,
8515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008516 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008517 },
8518
8519 {
8520 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008521 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008522 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008523 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008524 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008525 .total_size = 8192,
8526 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008527 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008529 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008530 .probe = probe_spi_rdid,
8531 .probe_timing = TIMING_ZERO,
8532 .block_erasers =
8533 {
8534 {
8535 .eraseblocks = { {4 * 1024, 2048} },
8536 .block_erase = spi_block_erase_20,
8537 }, {
8538 .eraseblocks = { {32 * 1024, 256} },
8539 .block_erase = spi_block_erase_52,
8540 }, {
8541 .eraseblocks = { {64 * 1024, 128} },
8542 .block_erase = spi_block_erase_d8,
8543 }, {
8544 .eraseblocks = { {8 * 1024 * 1024, 1} },
8545 .block_erase = spi_block_erase_60,
8546 }, {
8547 .eraseblocks = { {8 * 1024 * 1024, 1} },
8548 .block_erase = spi_block_erase_c7,
8549 }
8550 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008551 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008552 .write = spi_chip_write_256,
8553 .read = spi_chip_read,
8554 },
8555
8556 {
8557 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008558 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008559 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008560 .manufacture_id = WINBOND_NEX_ID,
8561 .model_id = WINBOND_NEX_W25Q128,
8562 .total_size = 16384,
8563 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008564 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008566 .tested = TEST_OK_PROBE,
8567 .probe = probe_spi_rdid,
8568 .probe_timing = TIMING_ZERO,
8569 .block_erasers =
8570 {
8571 {
8572 .eraseblocks = { {4 * 1024, 4096} },
8573 .block_erase = spi_block_erase_20,
8574 }, {
8575 .eraseblocks = { {32 * 1024, 512} },
8576 .block_erase = spi_block_erase_52,
8577 }, {
8578 .eraseblocks = { {64 * 1024, 256} },
8579 .block_erase = spi_block_erase_d8,
8580 }, {
8581 .eraseblocks = { {16 * 1024 * 1024, 1} },
8582 .block_erase = spi_block_erase_60,
8583 }, {
8584 .eraseblocks = { {16 * 1024 * 1024, 1} },
8585 .block_erase = spi_block_erase_c7,
8586 }
8587 },
8588 .unlock = spi_disable_blockprotect,
8589 .write = spi_chip_write_256,
8590 .read = spi_chip_read,
8591 },
8592
8593 {
8594 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008595 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008596 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008597 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008598 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008599 .total_size = 128,
8600 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008601 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008602 .tested = TEST_UNTESTED,
8603 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008604 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008605 .block_erasers =
8606 {
8607 {
8608 .eraseblocks = { {4 * 1024, 32} },
8609 .block_erase = spi_block_erase_20,
8610 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008611 .eraseblocks = { {64 * 1024, 2} },
8612 .block_erase = spi_block_erase_d8,
8613 }, {
8614 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008615 .block_erase = spi_block_erase_c7,
8616 }
8617 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008618 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008619 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008620 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008621 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008622 },
8623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008624 {
8625 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008626 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008627 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008628 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008629 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008630 .total_size = 256,
8631 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008632 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .tested = TEST_UNTESTED,
8634 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008635 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008636 .block_erasers =
8637 {
8638 {
8639 .eraseblocks = { {4 * 1024, 64} },
8640 .block_erase = spi_block_erase_20,
8641 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008642 .eraseblocks = { {64 * 1024, 4} },
8643 .block_erase = spi_block_erase_d8,
8644 }, {
8645 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008646 .block_erase = spi_block_erase_c7,
8647 }
8648 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008649 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008650 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008651 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008652 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008653 },
8654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008655 {
8656 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008657 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008659 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008660 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008661 .total_size = 512,
8662 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008663 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008664 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008666 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008667 .block_erasers =
8668 {
8669 {
8670 .eraseblocks = { {4 * 1024, 128} },
8671 .block_erase = spi_block_erase_20,
8672 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008673 .eraseblocks = { {64 * 1024, 8} },
8674 .block_erase = spi_block_erase_d8,
8675 }, {
8676 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008677 .block_erase = spi_block_erase_c7,
8678 }
8679 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008680 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008681 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008683 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008684 },
8685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008686 {
8687 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008688 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008689 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008690 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008691 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008692 .total_size = 1024,
8693 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008694 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008695 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008696 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008697 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008698 .block_erasers =
8699 {
8700 {
8701 .eraseblocks = { {4 * 1024, 256} },
8702 .block_erase = spi_block_erase_20,
8703 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008704 .eraseblocks = { {64 * 1024, 16} },
8705 .block_erase = spi_block_erase_d8,
8706 }, {
8707 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008708 .block_erase = spi_block_erase_c7,
8709 }
8710 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008711 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008712 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008713 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008714 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008715 },
8716
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008717 {
8718 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008719 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008720 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008721 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008722 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008723 .total_size = 2048,
8724 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008725 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008726 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008727 .probe = probe_spi_rdid,
8728 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008729 .block_erasers =
8730 {
8731 {
8732 .eraseblocks = { {4 * 1024, 512} },
8733 .block_erase = spi_block_erase_20,
8734 }, {
8735 .eraseblocks = { {32 * 1024, 64} },
8736 .block_erase = spi_block_erase_52,
8737 }, {
8738 .eraseblocks = { {64 * 1024, 32} },
8739 .block_erase = spi_block_erase_d8,
8740 }, {
8741 .eraseblocks = { {2 * 1024 * 1024, 1} },
8742 .block_erase = spi_block_erase_60,
8743 }, {
8744 .eraseblocks = { {2 * 1024 * 1024, 1} },
8745 .block_erase = spi_block_erase_c7,
8746 }
8747 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008748 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008749 .write = spi_chip_write_256,
8750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008751 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008752 },
8753
8754 {
8755 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008756 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008757 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008758 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008759 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008760 .total_size = 4096,
8761 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008762 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008763 .tested = TEST_OK_PROBE,
8764 .probe = probe_spi_rdid,
8765 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008766 .block_erasers =
8767 {
8768 {
8769 .eraseblocks = { {4 * 1024, 1024} },
8770 .block_erase = spi_block_erase_20,
8771 }, {
8772 .eraseblocks = { {32 * 1024, 128} },
8773 .block_erase = spi_block_erase_52,
8774 }, {
8775 .eraseblocks = { {64 * 1024, 64} },
8776 .block_erase = spi_block_erase_d8,
8777 }, {
8778 .eraseblocks = { {4 * 1024 * 1024, 1} },
8779 .block_erase = spi_block_erase_60,
8780 }, {
8781 .eraseblocks = { {4 * 1024 * 1024, 1} },
8782 .block_erase = spi_block_erase_c7,
8783 }
8784 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008785 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008786 .write = spi_chip_write_256,
8787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008788 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008789 },
8790
8791 {
8792 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008793 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008794 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008795 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008796 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008797 .total_size = 8192,
8798 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008799 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008800 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008801 .probe = probe_spi_rdid,
8802 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008803 .block_erasers =
8804 {
8805 {
8806 .eraseblocks = { {4 * 1024, 2048} },
8807 .block_erase = spi_block_erase_20,
8808 }, {
8809 .eraseblocks = { {32 * 1024, 256} },
8810 .block_erase = spi_block_erase_52,
8811 }, {
8812 .eraseblocks = { {64 * 1024, 128} },
8813 .block_erase = spi_block_erase_d8,
8814 }, {
8815 .eraseblocks = { {8 * 1024 * 1024, 1} },
8816 .block_erase = spi_block_erase_60,
8817 }, {
8818 .eraseblocks = { {8 * 1024 * 1024, 1} },
8819 .block_erase = spi_block_erase_c7,
8820 }
8821 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008822 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008823 .write = spi_chip_write_256,
8824 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008825 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008826 },
8827
8828 {
8829 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008830 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008831 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008832 .manufacture_id = WINBOND_ID,
8833 .model_id = WINBOND_W29C010,
8834 .total_size = 128,
8835 .page_size = 128,
8836 .feature_bits = FEATURE_LONG_RESET,
8837 .tested = TEST_OK_PRE,
8838 .probe = probe_w29ee011,
8839 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8840 .block_erasers =
8841 {
8842 {
8843 .eraseblocks = { {128 * 1024, 1} },
8844 .block_erase = erase_chip_block_jedec,
8845 }
8846 },
8847 .write = write_jedec,
8848 .read = read_memmapped,
8849 },
8850
8851 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8852 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008853 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008854 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008855 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008856 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 .total_size = 128,
8858 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008859 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008860 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008861 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008862 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008863 .block_erasers =
8864 {
8865 {
8866 .eraseblocks = { {128 * 1024, 1} },
8867 .block_erase = erase_chip_block_jedec,
8868 }
8869 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008870 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008871 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008872 },
8873
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008874 {
8875 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008876 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008877 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008878 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008879 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008880 .total_size = 256,
8881 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008882 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008883 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008884 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008885 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008886 .block_erasers =
8887 {
8888 {
8889 .eraseblocks = { {256 * 1024, 1} },
8890 .block_erase = erase_chip_block_jedec,
8891 }
8892 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008893 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008894 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008895 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008896 },
8897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008898 {
8899 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008900 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008901 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008902 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008903 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008904 .total_size = 512,
8905 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008906 .feature_bits = FEATURE_LONG_RESET,
8907 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008908 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008909 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008910 .block_erasers =
8911 {
8912 {
8913 .eraseblocks = { {512 * 1024, 1} },
8914 .block_erase = erase_chip_block_jedec,
8915 }
8916 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008917 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008919 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008920 },
8921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008922 {
8923 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008924 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008925 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008926 .manufacture_id = WINBOND_ID,
8927 .model_id = WINBOND_W39L040,
8928 .total_size = 512,
8929 .page_size = 64 * 1024,
8930 .feature_bits = FEATURE_EITHER_RESET,
8931 .tested = TEST_OK_PR,
8932 .probe = probe_jedec,
8933 .probe_timing = 10,
8934 .block_erasers =
8935 {
8936 {
8937 .eraseblocks = { {4 * 1024, 128} },
8938 .block_erase = erase_block_jedec,
8939 }, {
8940 .eraseblocks = { {64 * 1024, 8} },
8941 .block_erase = erase_sector_jedec,
8942 }, {
8943 .eraseblocks = { {512 * 1024, 1} },
8944 .block_erase = erase_chip_block_jedec,
8945 }
8946 },
8947 .printlock = printlock_w39l040,
8948 .write = write_jedec_1,
8949 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008950 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008951 },
8952
8953 {
8954 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008955 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008956 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008957 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008958 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008959 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008960 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008961 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008962 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008963 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00008964 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008965 .block_erasers =
8966 {
8967 {
8968 .eraseblocks = { {64 * 1024, 8} },
8969 .block_erase = erase_sector_jedec,
8970 }, {
8971 .eraseblocks = { {512 * 1024, 1} },
8972 .block_erase = erase_chip_block_jedec,
8973 }
8974 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008975 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008976 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008977 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008978 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008979 },
8980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 {
8982 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008983 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008984 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008985 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008986 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008987 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008988 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008989 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008990 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008991 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00008992 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008993 .block_erasers =
8994 {
8995 {
8996 .eraseblocks = { {64 * 1024, 8} },
8997 .block_erase = erase_sector_jedec,
8998 }, {
8999 .eraseblocks = { {512 * 1024, 1} },
9000 .block_erase = erase_chip_block_jedec,
9001 }
9002 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009003 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009004 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009006 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009007 },
9008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009009 {
9010 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009011 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009012 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009013 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009014 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009015 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009016 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009017 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009018 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009019 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009020 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009021 .block_erasers =
9022 {
9023 {
9024 .eraseblocks = { {64 * 1024, 8} },
9025 .block_erase = erase_sector_jedec,
9026 }, {
9027 .eraseblocks = { {512 * 1024, 1} },
9028 .block_erase = erase_chip_block_jedec,
9029 }
9030 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009031 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009034 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009035 },
9036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009037 {
9038 .vendor = "Winbond",
9039 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009040 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009041 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009042 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009043 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009044 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009045 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009046 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009047 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009048 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009049 .block_erasers =
9050 {
9051 {
9052 .eraseblocks = { {4 * 1024, 128} },
9053 .block_erase = erase_block_jedec,
9054 }, {
9055 .eraseblocks = { {64 * 1024, 8} },
9056 .block_erase = erase_sector_jedec,
9057 }, {
9058 .eraseblocks = { {512 * 1024, 1} },
9059 .block_erase = erase_chip_block_jedec,
9060 }
9061 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009062 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00009063 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00009064 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009066 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009067 },
9068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009069 {
9070 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009071 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009072 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009073 .manufacture_id = WINBOND_ID,
9074 .model_id = WINBOND_W39V040B,
9075 .total_size = 512,
9076 .page_size = 64 * 1024,
9077 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009078 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009079 .probe = probe_jedec,
9080 .probe_timing = 10,
9081 .block_erasers =
9082 {
9083 {
9084 .eraseblocks = { {64 * 1024, 8} },
9085 .block_erase = erase_sector_jedec,
9086 }, {
9087 .eraseblocks = { {512 * 1024, 1} },
9088 .block_erase = erase_chip_block_jedec,
9089 }
9090 },
9091 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00009092 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009093 .write = write_jedec_1,
9094 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009095 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009096 },
9097
9098 {
9099 .vendor = "Winbond",
9100 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009101 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009102 .manufacture_id = WINBOND_ID,
9103 .model_id = WINBOND_W39V040C,
9104 .total_size = 512,
9105 .page_size = 64 * 1024,
9106 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009107 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009108 .probe = probe_jedec,
9109 .probe_timing = 10,
9110 .block_erasers =
9111 {
9112 {
9113 .eraseblocks = { {64 * 1024, 8} },
9114 .block_erase = erase_sector_jedec,
9115 }, {
9116 .eraseblocks = { {512 * 1024, 1} },
9117 .block_erase = erase_chip_block_jedec,
9118 }
9119 },
9120 .printlock = printlock_w39v040fc,
9121 .write = write_jedec_1,
9122 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009123 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009124 },
9125
9126 {
9127 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009128 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009129 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009130 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009131 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009132 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009133 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009134 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009135 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009136 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009137 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009138 .block_erasers =
9139 {
9140 {
9141 .eraseblocks = { {64 * 1024, 16} },
9142 .block_erase = erase_sector_jedec,
9143 }, {
9144 .eraseblocks = { {1024 * 1024, 1} },
9145 .block_erase = erase_chip_block_jedec,
9146 }
9147 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009148 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009149 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009151 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009152 },
9153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009154 {
9155 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009156 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009157 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009158 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009159 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009160 .total_size = 256,
9161 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009162 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009163 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009164 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009165 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009166 .block_erasers =
9167 {
9168 {
9169 .eraseblocks = {
9170 {128 * 1024, 1},
9171 {96 * 1024, 1},
9172 {8 * 1024, 2},
9173 {16 * 1024, 1},
9174 },
9175 .block_erase = erase_sector_jedec,
9176 }, {
9177 .eraseblocks = { {256 * 1024, 1} },
9178 .block_erase = erase_chip_block_jedec,
9179 }
9180 },
Sean Nelson35727f72010-01-28 23:55:12 +00009181 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009183 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009184 },
9185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009186 {
9187 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009188 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009189 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009190 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009191 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009192 .total_size = 256,
9193 .page_size = 128,
9194 .feature_bits = FEATURE_EITHER_RESET,
9195 .tested = TEST_OK_PROBE,
9196 .probe = probe_jedec,
9197 .probe_timing = 10,
9198 .block_erasers =
9199 {
9200 {
9201 .eraseblocks = { {256 * 1024, 1} },
9202 .block_erase = erase_chip_block_jedec,
9203 }
9204 },
9205 .write = write_jedec_1,
9206 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009207 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009208 },
9209
9210 {
9211 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009212 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009213 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009214 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009215 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009216 .total_size = 256,
9217 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009218 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009219 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009220 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009221 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009222 .block_erasers =
9223 {
9224 {
9225 .eraseblocks = {
9226 {64 * 1024, 3},
9227 {32 * 1024, 1},
9228 {8 * 1024, 2},
9229 {16 * 1024, 1},
9230 },
9231 .block_erase = erase_sector_jedec,
9232 }, {
9233 .eraseblocks = { {256 * 1024, 1} },
9234 .block_erase = erase_chip_block_jedec,
9235 }
9236 },
Sean Nelson35727f72010-01-28 23:55:12 +00009237 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009239 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009240 },
9241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009242 {
9243 .vendor = "Winbond",
9244 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009245 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009246 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009247 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009248 .total_size = 256,
9249 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009250 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009251 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009252 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009253 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009254 .block_erasers =
9255 {
9256 {
9257 .eraseblocks = {
9258 {64 * 1024, 3},
9259 {32 * 1024, 1},
9260 {8 * 1024, 2},
9261 {16 * 1024, 1},
9262 },
9263 .block_erase = erase_sector_jedec,
9264 }, {
9265 .eraseblocks = { {256 * 1024, 1} },
9266 .block_erase = erase_chip_block_jedec,
9267 }
9268 },
Sean Nelson35727f72010-01-28 23:55:12 +00009269 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009270 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009271 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009272 },
9273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009274 {
9275 .vendor = "Winbond",
9276 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009277 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009278 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009279 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009280 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009281 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009282 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009283 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009284 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009285 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009286 .block_erasers =
9287 {
9288 {
9289 .eraseblocks = { {64 * 1024, 16}, },
9290 .block_erase = erase_sector_jedec,
9291 }, {
9292 .eraseblocks = { {1024 * 1024, 1} },
9293 .block_erase = erase_chip_block_jedec,
9294 }
9295 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009296 .printlock = printlock_w39v080fa,
9297 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009298 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009299 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009300 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009301 },
9302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009303 {
9304 .vendor = "Winbond",
9305 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009306 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009307 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009308 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009309 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009310 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009311 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009312 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009313 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009314 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009315 .block_erasers =
9316 {
9317 {
9318 .eraseblocks = { {64 * 1024, 8}, },
9319 .block_erase = erase_sector_jedec,
9320 }, {
9321 .eraseblocks = { {512 * 1024, 1} },
9322 .block_erase = erase_chip_block_jedec,
9323 }
9324 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009325 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009326 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009327 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009328 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009329 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009330
9331 {
9332 .vendor = "Unknown",
9333 .name = "SFDP-capable chip",
9334 .bustype = BUS_SPI,
9335 .manufacture_id = GENERIC_MANUF_ID,
9336 .model_id = SFDP_DEVICE_ID,
9337 /* We present our own "report this" text hence we do not
9338 * want the default "This flash part has status UNTESTED..."
9339 * text to be printed. */
9340 .tested = TEST_OK_PREW,
9341 .probe = probe_spi_sfdp,
9342 .unlock = spi_disable_blockprotect, /* is this safe? */
9343 .read = spi_chip_read,
9344 /* FIXME: some vendor extensions define this */
9345 .voltage = {},
9346 /* Everything below will be set by the probing function. */
9347 .write = NULL,
9348 .total_size = 0,
9349 .page_size = 0,
9350 .feature_bits = 0,
9351 .block_erasers = {},
9352 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009354 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009355 .vendor = "Programmer",
9356 .name = "Opaque flash chip",
9357 .bustype = BUS_PROG,
9358 .manufacture_id = PROGMANUF_ID,
9359 .model_id = PROGDEV_ID,
9360 .total_size = 0,
9361 .page_size = 256,
9362 /* probe is assumed to work, rest will be filled in by probe */
9363 .tested = TEST_OK_PROBE,
9364 .probe = probe_opaque,
9365 /* eraseblock sizes will be set by the probing function */
9366 .block_erasers =
9367 {
9368 {
9369 .block_erase = erase_opaque,
9370 }
9371 },
9372 .write = write_opaque,
9373 .read = read_opaque,
9374 },
9375
9376 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009377 .vendor = "AMIC",
9378 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009379 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009380 .manufacture_id = AMIC_ID,
9381 .model_id = GENERIC_DEVICE_ID,
9382 .total_size = 0,
9383 .page_size = 256,
9384 .tested = TEST_BAD_PREW,
9385 .probe = probe_spi_rdid4,
9386 .probe_timing = TIMING_ZERO,
9387 .write = NULL,
9388 .read = NULL,
9389 },
9390
9391 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009392 .vendor = "Atmel",
9393 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009395 .manufacture_id = ATMEL_ID,
9396 .model_id = GENERIC_DEVICE_ID,
9397 .total_size = 0,
9398 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009399 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009400 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009401 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009402 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009403 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009404 },
9405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009406 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009407 .vendor = "Eon",
9408 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009409 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009410 .manufacture_id = EON_ID_NOPREFIX,
9411 .model_id = GENERIC_DEVICE_ID,
9412 .total_size = 0,
9413 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009414 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009416 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009417 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009418 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009419 },
9420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009421 {
9422 .vendor = "Macronix",
9423 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009424 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009425 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009426 .model_id = GENERIC_DEVICE_ID,
9427 .total_size = 0,
9428 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009429 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009430 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009431 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009432 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009433 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009434 },
9435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009436 {
9437 .vendor = "PMC",
9438 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009439 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009440 .manufacture_id = PMC_ID,
9441 .model_id = GENERIC_DEVICE_ID,
9442 .total_size = 0,
9443 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009444 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009445 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009446 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009447 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009448 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009449 },
9450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009451 {
9452 .vendor = "SST",
9453 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009454 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009455 .manufacture_id = SST_ID,
9456 .model_id = GENERIC_DEVICE_ID,
9457 .total_size = 0,
9458 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009459 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009460 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009461 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009462 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009463 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009464 },
9465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009466 {
9467 .vendor = "ST",
9468 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009469 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009470 .manufacture_id = ST_ID,
9471 .model_id = GENERIC_DEVICE_ID,
9472 .total_size = 0,
9473 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009474 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009475 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009476 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009477 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009478 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009479 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009480
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009481 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009482 .vendor = "Sanyo",
9483 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009484 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009485 .manufacture_id = SANYO_ID,
9486 .model_id = GENERIC_DEVICE_ID,
9487 .total_size = 0,
9488 .page_size = 256,
9489 .tested = TEST_BAD_PREW,
9490 .probe = probe_spi_rdid,
9491 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009492 .write = NULL,
9493 .read = NULL,
9494 },
9495
9496 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009497 .vendor = "Generic",
9498 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009499 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009500 .manufacture_id = GENERIC_MANUF_ID,
9501 .model_id = GENERIC_DEVICE_ID,
9502 .total_size = 0,
9503 .page_size = 256,
9504 .tested = TEST_BAD_PREW,
9505 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009506 .write = NULL,
9507 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009508
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009509 {
9510 .vendor = "Generic",
9511 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009512 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009513 .manufacture_id = GENERIC_MANUF_ID,
9514 .model_id = GENERIC_DEVICE_ID,
9515 .total_size = 0,
9516 .page_size = 256,
9517 .tested = TEST_BAD_PREW,
9518 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009519 .write = NULL,
9520 },
9521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009522 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009523};