blob: 937abd3a3fe57337223100bb85d0958e930b5b11 [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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
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,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
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,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001195 }
Dan Lenski11617122010-07-29 15:00:40 +00001196 },
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,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001562 .tested = TEST_OK_PREW,
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,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001698 }, {
1699 .eraseblocks = { {64 * 1024, 1} },
1700 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001701 }
1702 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001703 .printlock = spi_prettyprint_status_register_at25f512b,
1704 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001705 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001708 },
1709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 {
1711 .vendor = "Atmel",
1712 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .total_size = 128,
1717 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001718 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001719 .tested = TEST_UNTESTED,
1720 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001721 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001722 .block_erasers =
1723 {
1724 {
1725 .eraseblocks = { {4 * 1024, 32} },
1726 .block_erase = spi_block_erase_20,
1727 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001728 .eraseblocks = { {4 * 1024, 32} },
1729 .block_erase = spi_block_erase_d7,
1730 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001731 .eraseblocks = { {32 * 1024, 4} },
1732 .block_erase = spi_block_erase_52,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 4} },
1735 .block_erase = spi_block_erase_d8,
1736 }, {
1737 .eraseblocks = { {128 * 1024, 1} },
1738 .block_erase = spi_block_erase_60,
1739 }, {
1740 .eraseblocks = { {128 * 1024, 1} },
1741 .block_erase = spi_block_erase_c7,
1742 }
1743 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001744 .printlock = spi_prettyprint_status_register_at25fs010,
1745 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001746 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001747 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001748 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001749 },
1750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001751 {
1752 .vendor = "Atmel",
1753 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001754 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001755 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001756 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .total_size = 512,
1758 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001759 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .tested = TEST_UNTESTED,
1761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001762 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001763 .block_erasers =
1764 {
1765 {
1766 .eraseblocks = { {4 * 1024, 128} },
1767 .block_erase = spi_block_erase_20,
1768 }, {
1769 .eraseblocks = { {64 * 1024, 8} },
1770 .block_erase = spi_block_erase_52,
1771 }, {
1772 .eraseblocks = { {64 * 1024, 8} },
1773 .block_erase = spi_block_erase_d8,
1774 }, {
1775 .eraseblocks = { {512 * 1024, 1} },
1776 .block_erase = spi_block_erase_60,
1777 }, {
1778 .eraseblocks = { {512 * 1024, 1} },
1779 .block_erase = spi_block_erase_c7,
1780 }
1781 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001782 .printlock = spi_prettyprint_status_register_at25fs040,
1783 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001784 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001786 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001787 },
1788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 {
1790 .vendor = "Atmel",
1791 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001792 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001794 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001795 .total_size = 512,
1796 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001797 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001798 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001800 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001801 .block_erasers =
1802 {
1803 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00001804 .eraseblocks = { {256, 2048} },
1805 .block_erase = spi_block_erase_81,
1806 }, {
1807 .eraseblocks = { {2 * 1024, 256} },
1808 .block_erase = spi_block_erase_50,
1809 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001810 .eraseblocks = { {4 * 1024, 128} },
1811 .block_erase = spi_block_erase_20,
1812 }
Stefan Tauner94b39b42012-10-27 00:06:02 +00001813 }, /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
1814 .write = spi_chip_write_1,
1815 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00001816 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001817 },
1818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001819 {
1820 .vendor = "Atmel",
1821 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001822 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001824 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001825 .total_size = 1024,
1826 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001827 .feature_bits = FEATURE_WRSR_WREN,
1828 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001829 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001830 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001831 .block_erasers =
1832 {
1833 {
1834 .eraseblocks = { {4 * 1024, 256} },
1835 .block_erase = spi_block_erase_20,
1836 }, {
1837 .eraseblocks = { {32 * 1024, 32} },
1838 .block_erase = spi_block_erase_52,
1839 }, {
1840 .eraseblocks = { {64 * 1024, 16} },
1841 .block_erase = spi_block_erase_d8,
1842 }, {
1843 .eraseblocks = { {1024 * 1024, 1} },
1844 .block_erase = spi_block_erase_60,
1845 }, {
1846 .eraseblocks = { {1024 * 1024, 1} },
1847 .block_erase = spi_block_erase_c7,
1848 }
1849 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001850 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001851 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001852 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001853 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001854 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001855 },
1856
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001857 {
1858 .vendor = "Atmel",
1859 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001860 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001862 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001863 .total_size = 2048,
1864 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001865 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001866 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001867 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001868 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001869 .block_erasers =
1870 {
1871 {
1872 .eraseblocks = { {4 * 1024, 512} },
1873 .block_erase = spi_block_erase_20,
1874 }, {
1875 .eraseblocks = { {32 * 1024, 64} },
1876 .block_erase = spi_block_erase_52,
1877 }, {
1878 .eraseblocks = { {64 * 1024, 32} },
1879 .block_erase = spi_block_erase_d8,
1880 }, {
1881 .eraseblocks = { {2 * 1024 * 1024, 1} },
1882 .block_erase = spi_block_erase_60,
1883 }, {
1884 .eraseblocks = { {2 * 1024 * 1024, 1} },
1885 .block_erase = spi_block_erase_c7,
1886 }
1887 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001888 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001889 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001890 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001891 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001892 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001893 },
1894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001895 {
1896 .vendor = "Atmel",
1897 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001898 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001899 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001900 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001901 .total_size = 2048,
1902 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001903 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .tested = TEST_UNTESTED,
1905 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001906 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001907 .block_erasers =
1908 {
1909 {
1910 .eraseblocks = { {4 * 1024, 512} },
1911 .block_erase = spi_block_erase_20,
1912 }, {
1913 .eraseblocks = { {32 * 1024, 64} },
1914 .block_erase = spi_block_erase_52,
1915 }, {
1916 .eraseblocks = { {64 * 1024, 32} },
1917 .block_erase = spi_block_erase_d8,
1918 }, {
1919 .eraseblocks = { {2 * 1024 * 1024, 1} },
1920 .block_erase = spi_block_erase_60,
1921 }, {
1922 .eraseblocks = { {2 * 1024 * 1024, 1} },
1923 .block_erase = spi_block_erase_c7,
1924 }
1925 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001926 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001927 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001928 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001929 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001930 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001931 },
1932
1933 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 /*{
1935 .vendor = "Atmel",
1936 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001937 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001938 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001939 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001940 .total_size = 4096,
1941 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001942 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 .tested = TEST_UNTESTED,
1944 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001945 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001946 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001947 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001948 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001949 .read = spi_chip_read,
1950 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001952 {
1953 .vendor = "Atmel",
1954 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001955 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001956 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001957 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001958 .total_size = 512,
1959 .page_size = 256,
1960 .tested = TEST_UNTESTED,
Steven Zakulec3603a282012-05-02 20:07:57 +00001961 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001962 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001963 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001964 .block_erasers =
1965 {
1966 {
1967 .eraseblocks = { {4 * 1024, 128} },
1968 .block_erase = spi_block_erase_20,
1969 }, {
1970 .eraseblocks = { {32 * 1024, 16} },
1971 .block_erase = spi_block_erase_52,
1972 }, {
1973 .eraseblocks = { {64 * 1024, 8} },
1974 .block_erase = spi_block_erase_d8,
1975 }, {
1976 .eraseblocks = { {512 * 1024, 1} },
1977 .block_erase = spi_block_erase_60,
1978 }, {
1979 .eraseblocks = { {512 * 1024, 1} },
1980 .block_erase = spi_block_erase_c7,
1981 }
1982 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001983 .write = NULL /* Incompatible Page write */,
1984 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001985 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001986 },
1987
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001988 {
1989 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001990 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001991 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001992 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001993 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001994 .total_size = 64,
1995 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001996 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00001997 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001998 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001999 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002000 .block_erasers =
2001 {
2002 {
2003 .eraseblocks = { {64 * 1024, 1} },
2004 .block_erase = erase_chip_block_jedec,
2005 }
2006 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002007 .write = write_jedec,
2008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002009 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002010 },
2011
2012 {
2013 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002014 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002015 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002016 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002017 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002018 .total_size = 128,
2019 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002020 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002021 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002022 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002023 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002024 .block_erasers =
2025 {
2026 {
2027 .eraseblocks = { {128 * 1024, 1} },
2028 .block_erase = erase_chip_block_jedec,
2029 }
2030 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002031 .write = write_jedec, /* FIXME */
2032 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002033 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002034 },
2035
2036 {
2037 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002038 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002039 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002040 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002041 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002042 .total_size = 256,
2043 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002044 .feature_bits = FEATURE_LONG_RESET,
2045 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002047 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002048 .block_erasers =
2049 {
2050 {
2051 .eraseblocks = { {256 * 1024, 1} },
2052 .block_erase = erase_chip_block_jedec,
2053 }
2054 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002057 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002058 },
2059
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002060 {
2061 .vendor = "Atmel",
2062 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002063 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002064 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002065 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002066 .total_size = 512,
2067 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002068 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002069 .tested = TEST_UNTESTED,
2070 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002071 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002072 .block_erasers =
2073 {
2074 {
2075 .eraseblocks = { {512 * 1024, 1} },
2076 .block_erase = erase_chip_block_jedec,
2077 }
2078 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002079 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002081 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002082 },
2083
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 {
2085 .vendor = "Atmel",
2086 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002087 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002088 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002089 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002090 .total_size = 16896 /* No power of two sizes */,
2091 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002092 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .tested = TEST_BAD_READ,
2094 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002095 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002096 .write = NULL /* Incompatible Page write */,
2097 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002098 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002099 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 {
2102 .vendor = "Atmel",
2103 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002104 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002106 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002107 .total_size = 128 /* Size can only be determined from status register */,
2108 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002109 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002110 .tested = TEST_BAD_READ,
2111 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002112 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .write = NULL,
2114 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002115 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002116 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002117
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002118 {
2119 .vendor = "Atmel",
2120 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002121 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002122 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002123 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002124 .total_size = 256 /* Size can only be determined from status register */,
2125 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002126 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002127 .tested = TEST_BAD_READ,
2128 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002129 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002130 .write = NULL,
2131 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002132 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002133 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 {
2136 .vendor = "Atmel",
2137 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002138 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002140 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002141 .total_size = 512 /* Size can only be determined from status register */,
2142 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002143 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002144 .tested = TEST_BAD_READ,
2145 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002146 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 .write = NULL,
2148 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002149 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002150 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002152 {
2153 .vendor = "Atmel",
2154 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002155 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002156 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002157 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002158 .total_size = 1024 /* Size can only be determined from status register */,
2159 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002160 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .tested = TEST_BAD_READ,
2162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002163 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002164 .write = NULL,
2165 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002166 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002167 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002169 {
2170 .vendor = "Atmel",
2171 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002172 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002174 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002175 .total_size = 2048 /* Size can only be determined from status register */,
2176 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002177 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002178 .tested = TEST_BAD_READ,
2179 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002180 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .write = NULL,
2182 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002183 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002184 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 {
2187 .vendor = "Atmel",
2188 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002189 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002191 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002192 .total_size = 4224 /* No power of two sizes */,
2193 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002194 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 .tested = TEST_BAD_READ,
2196 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002197 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .write = NULL,
2199 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002200 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002201 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002202
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002203 {
2204 .vendor = "Atmel",
2205 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002206 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002207 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002208 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002209 .total_size = 4096 /* Size can only be determined from status register */,
2210 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002211 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002212 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002213 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .tested = TEST_BAD_READ,
2215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002216 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002217 .write = NULL,
2218 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002219 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002220 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002222 {
2223 .vendor = "Atmel",
2224 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002225 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002226 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002227 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002228 .total_size = 8192 /* Size can only be determined from status register */,
2229 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002230 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002231 .tested = TEST_BAD_READ,
2232 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002233 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002234 .write = NULL,
2235 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002236 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002237 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002238
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 {
2240 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002241 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002242 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002243 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002244 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002245 .total_size = 64,
2246 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002247 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002248 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002249 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002250 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002251 .block_erasers =
2252 {
2253 {
2254 .eraseblocks = { {64 * 1024, 1} },
2255 .block_erase = erase_chip_block_jedec,
2256 }
2257 },
Sean Nelson35727f72010-01-28 23:55:12 +00002258 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002259 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002260 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002261 },
2262
2263 {
2264 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002265 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002266 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002267 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002268 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002269 .total_size = 256,
2270 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002271 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .tested = TEST_UNTESTED,
2273 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002274 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002275 .block_erasers =
2276 {
2277 {
2278 .eraseblocks = {
2279 {16 * 1024, 1},
2280 {8 * 1024, 2},
2281 {96 * 1024, 1},
2282 {128 * 1024, 1},
2283 },
2284 .block_erase = erase_sector_jedec,
2285 }, {
2286 .eraseblocks = { {256 * 1024, 1} },
2287 .block_erase = erase_chip_block_jedec,
2288 }
2289 },
Sean Nelson35727f72010-01-28 23:55:12 +00002290 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002292 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002293 },
2294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002295 {
2296 .vendor = "Atmel",
2297 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002298 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002300 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002301 .total_size = 256,
2302 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002303 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002304 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002305 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002306 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002307 .block_erasers =
2308 {
2309 {
2310 .eraseblocks = {
2311 {128 * 1024, 1},
2312 {96 * 1024, 1},
2313 {8 * 1024, 2},
2314 {16 * 1024, 1},
2315 },
2316 .block_erase = erase_sector_jedec,
2317 }, {
2318 .eraseblocks = { {256 * 1024, 1} },
2319 .block_erase = erase_chip_block_jedec,
2320 }
2321 },
Sean Nelson35727f72010-01-28 23:55:12 +00002322 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002323 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002324 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002325 },
2326
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002327 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002328 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002329 .name = "AT49(H)F010",
2330 .bustype = BUS_PARALLEL,
2331 .manufacture_id = ATMEL_ID,
2332 .model_id = ATMEL_AT49F010,
2333 .total_size = 128,
2334 .page_size = 0, /* unused */
2335 .feature_bits = FEATURE_EITHER_RESET,
2336 .tested = TEST_OK_PREW,
2337 .probe = probe_jedec,
2338 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2339 .block_erasers =
2340 {
2341 {
2342 .eraseblocks = { {128 * 1024, 1} },
2343 .block_erase = erase_chip_block_jedec,
2344 }
2345 },
2346 .printlock = printlock_at49f,
2347 .write = write_jedec_1,
2348 .read = read_memmapped,
2349 .voltage = {4500, 5500},
2350 },
2351
2352 {
2353 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002354 .name = "AT49F020",
2355 .bustype = BUS_PARALLEL,
2356 .manufacture_id = ATMEL_ID,
2357 .model_id = ATMEL_AT49F020,
2358 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002359 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002360 .feature_bits = FEATURE_EITHER_RESET,
2361 .tested = TEST_OK_PRE,
2362 .probe = probe_jedec,
2363 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2364 .block_erasers =
2365 {
2366 {
2367 .eraseblocks = { {256 * 1024, 1} },
2368 .block_erase = erase_chip_block_jedec,
2369 }
2370 /* Chip features an optional permanent write protection
2371 * of the first 8 kB. The erase function is the same as
2372 * above, but 00000H to 01FFFH will not be erased.
2373 * FIXME: add another eraser when partial erasers are
2374 * supported.
2375 */
2376 },
2377 .printlock = printlock_at49f,
2378 .write = write_jedec_1,
2379 .read = read_memmapped,
2380 .voltage = {4500, 5500},
2381 },
2382
2383 {
2384 .vendor = "Atmel",
2385 .name = "AT49F040",
2386 .bustype = BUS_PARALLEL,
2387 .manufacture_id = ATMEL_ID,
2388 .model_id = ATMEL_AT49F040,
2389 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002390 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002391 .feature_bits = FEATURE_EITHER_RESET,
2392 .tested = TEST_UNTESTED,
2393 .probe = probe_jedec,
2394 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2395 .block_erasers =
2396 {
2397 {
2398 .eraseblocks = { {512 * 1024, 1} },
2399 .block_erase = erase_chip_block_jedec,
2400 }
2401 /* Chip features an optional permanent write protection
2402 * of the first 16 kB. The erase function is the same as
2403 * above, but 00000H to 03FFFH will not be erased.
2404 * FIXME: add another eraser when partial erasers are
2405 * supported.
2406 */
2407 },
2408 .printlock = printlock_at49f,
2409 .write = write_jedec_1,
2410 .read = read_memmapped,
2411 .voltage = {4500, 5500},
2412 },
2413
2414 {
2415 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002416 .name = "AT49F080",
2417 .bustype = BUS_PARALLEL,
2418 .manufacture_id = ATMEL_ID,
2419 .model_id = ATMEL_AT49F080,
2420 .total_size = 1024,
2421 .page_size = 0, /* unused */
2422 .feature_bits = FEATURE_EITHER_RESET,
2423 .tested = TEST_UNTESTED,
2424 .probe = probe_jedec,
2425 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2426 .block_erasers =
2427 {
2428 {
2429 .eraseblocks = { {1024 * 1024, 1} },
2430 .block_erase = erase_chip_block_jedec,
2431 }
2432 /* Chip features an optional permanent write protection
2433 * of the first 16 kB. The erase function is the same as
2434 * above, but 00000H to 03FFFH will not be erased.
2435 * FIXME: add another eraser when partial erasers are
2436 * supported.
2437 */
2438 },
2439 .printlock = printlock_at49f,
2440 .write = write_jedec_1,
2441 .read = read_memmapped,
2442 .voltage = {4500, 5500},
2443 },
2444
2445 {
2446 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2447 .vendor = "Atmel",
2448 .name = "AT49F080T",
2449 .bustype = BUS_PARALLEL,
2450 .manufacture_id = ATMEL_ID,
2451 .model_id = ATMEL_AT49F080T,
2452 .total_size = 1024,
2453 .page_size = 0, /* unused */
2454 .feature_bits = FEATURE_EITHER_RESET,
2455 .tested = TEST_UNTESTED,
2456 .probe = probe_jedec,
2457 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2458 .block_erasers =
2459 {
2460 {
2461 .eraseblocks = { {1024 * 1024, 1} },
2462 .block_erase = erase_chip_block_jedec,
2463 }
2464 /* Chip features an optional permanent write protection
2465 * of the first 16 kB. The erase function is the same as
2466 * above, but FC000H to FFFFFH will not be erased.
2467 * FIXME: add another eraser when partial erasers are
2468 * supported.
2469 */
2470 },
2471 .printlock = printlock_at49f,
2472 .write = write_jedec_1,
2473 .read = read_memmapped,
2474 .voltage = {4500, 5500},
2475 },
2476
2477 {
2478 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002479 .name = "AT49LH002",
2480 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2481 .manufacture_id = ATMEL_ID,
2482 .model_id = ATMEL_AT49LH002,
2483 .total_size = 256,
2484 .page_size = 0, /* unused */
2485 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2486 .tested = TEST_UNTESTED,
2487 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2488 .probe_timing = TIMING_FIXME,
2489 .block_erasers =
2490 {
2491 {
2492 .eraseblocks = {
2493 {64 * 1024, 3},
2494 {32 * 1024, 1},
2495 {8 * 1024, 2},
2496 {16 * 1024, 1},
2497 },
2498 .block_erase = erase_block_82802ab,
2499 }, {
2500 .eraseblocks = {
2501 {64 * 1024, 4},
2502 },
2503 .block_erase = NULL, /* TODO: Implement. */
2504 },
2505 },
2506 .printlock = NULL, /* TODO */
2507 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2508 .write = write_82802ab,
2509 .read = read_memmapped,
2510 .voltage = {3000, 3600},
2511 },
2512
2513 {
Andrew Morganca081462011-09-13 22:05:44 +00002514 .vendor = "Catalyst",
2515 .name = "CAT28F512",
2516 .bustype = BUS_PARALLEL,
2517 .manufacture_id = CATALYST_ID,
2518 .model_id = CATALYST_CAT28F512,
2519 .total_size = 64,
2520 .page_size = 0, /* unused */
2521 .feature_bits = 0,
2522 .tested = TEST_OK_PR,
2523 .probe = probe_jedec, /* FIXME! */
2524 .probe_timing = TIMING_ZERO,
2525 .block_erasers =
2526 {
2527 {
2528 .eraseblocks = { {64 * 1024, 1} },
2529 .block_erase = NULL, /* TODO */
2530 },
2531 },
2532 .write = NULL, /* TODO */
2533 .read = read_memmapped,
2534 .voltage = {4500, 5500},
2535 },
2536
2537 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002538 .vendor = "Bright",
2539 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002540 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002541 .manufacture_id = BRIGHT_ID,
2542 .model_id = BRIGHT_BM29F040,
2543 .total_size = 512,
2544 .page_size = 64 * 1024,
2545 .feature_bits = FEATURE_EITHER_RESET,
2546 .tested = TEST_OK_PR,
2547 .probe = probe_jedec,
2548 .probe_timing = TIMING_ZERO,
2549 .block_erasers =
2550 {
2551 {
2552 .eraseblocks = { {64 * 1024, 8} },
2553 .block_erase = erase_sector_jedec,
2554 }, {
2555 .eraseblocks = { {512 * 1024, 1} },
2556 .block_erase = erase_chip_block_jedec,
2557 },
2558 },
2559 .write = write_jedec_1,
2560 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002561 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002562 },
2563
2564 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .vendor = "EMST",
2566 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002567 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002568 .manufacture_id = EMST_ID,
2569 .model_id = EMST_F49B002UA,
2570 .total_size = 256,
2571 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002572 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002573 .tested = TEST_UNTESTED,
2574 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002575 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002576 .block_erasers =
2577 {
2578 {
2579 .eraseblocks = {
2580 {128 * 1024, 1},
2581 {96 * 1024, 1},
2582 {8 * 1024, 2},
2583 {16 * 1024, 1},
2584 },
2585 .block_erase = erase_sector_jedec,
2586 }, {
2587 .eraseblocks = { {256 * 1024, 1} },
2588 .block_erase = erase_chip_block_jedec,
2589 }
2590 },
Sean Nelson35727f72010-01-28 23:55:12 +00002591 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002592 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002593 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002594 },
2595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002596 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002597 .vendor = "EMST",
2598 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002599 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002600 .manufacture_id = EMST_ID,
2601 .model_id = EMST_F25L008A,
2602 .total_size = 1024,
2603 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002604 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002605 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002606 .probe = probe_spi_rdid,
2607 .probe_timing = TIMING_ZERO,
2608 .block_erasers =
2609 {
2610 {
2611 .eraseblocks = { {4 * 1024, 256} },
2612 .block_erase = spi_block_erase_20,
2613 }, {
2614 .eraseblocks = { {64 * 1024, 16} },
2615 .block_erase = spi_block_erase_d8,
2616 }, {
2617 .eraseblocks = { {1024 * 1024, 1} },
2618 .block_erase = spi_block_erase_60,
2619 }, {
2620 .eraseblocks = { {1024 * 1024, 1} },
2621 .block_erase = spi_block_erase_c7,
2622 }
2623 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002624 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002625 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002626 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002627 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002628 },
2629
2630 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002631 .vendor = "Eon",
2632 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002633 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002634 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002635 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002636 .total_size = 64,
2637 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002638 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002639 .tested = TEST_UNTESTED,
2640 .probe = probe_spi_rdid,
2641 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002642 .block_erasers =
2643 {
2644 {
2645 .eraseblocks = {
2646 {4 * 1024, 2},
2647 {8 * 1024, 1},
2648 {16 * 1024, 1},
2649 {32 * 1024, 1},
2650 },
2651 .block_erase = spi_block_erase_d8,
2652 }, {
2653 .eraseblocks = { {64 * 1024, 1} },
2654 .block_erase = spi_block_erase_c7,
2655 }
2656 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002657 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002658 .write = spi_chip_write_256,
2659 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002660 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002661 },
2662
2663 {
2664 .vendor = "Eon",
2665 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002666 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002667 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002668 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002669 .total_size = 64,
2670 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002671 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002672 .tested = TEST_UNTESTED,
2673 .probe = probe_spi_rdid,
2674 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002675 .block_erasers =
2676 {
2677 {
2678 .eraseblocks = {
2679 {32 * 1024, 1},
2680 {16 * 1024, 1},
2681 {8 * 1024, 1},
2682 {4 * 1024, 2},
2683 },
2684 .block_erase = spi_block_erase_d8,
2685 }, {
2686 .eraseblocks = { {64 * 1024, 1} },
2687 .block_erase = spi_block_erase_c7,
2688 }
2689 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002690 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002691 .write = spi_chip_write_256,
2692 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002693 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002694 },
2695
2696 {
2697 .vendor = "Eon",
2698 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002699 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002700 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002701 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002702 .total_size = 128,
2703 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002704 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002705 .tested = TEST_UNTESTED,
2706 .probe = probe_spi_rdid,
2707 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002708 .block_erasers =
2709 {
2710 {
2711 .eraseblocks = {
2712 {4 * 1024, 2},
2713 {8 * 1024, 1},
2714 {16 * 1024, 1},
2715 {32 * 1024, 3},
2716 },
2717 .block_erase = spi_block_erase_d8,
2718 }, {
2719 .eraseblocks = { {128 * 1024, 1} },
2720 .block_erase = spi_block_erase_c7,
2721 }
2722 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002723 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002724 .write = spi_chip_write_256,
2725 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002726 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002727 },
2728
2729 {
2730 .vendor = "Eon",
2731 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002732 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002733 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002734 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002735 .total_size = 128,
2736 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002737 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002738 .tested = TEST_UNTESTED,
2739 .probe = probe_spi_rdid,
2740 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002741 .block_erasers =
2742 {
2743 {
2744 .eraseblocks = {
2745 {32 * 1024, 3},
2746 {16 * 1024, 1},
2747 {8 * 1024, 1},
2748 {4 * 1024, 2},
2749 },
2750 .block_erase = spi_block_erase_d8,
2751 }, {
2752 .eraseblocks = { {128 * 1024, 1} },
2753 .block_erase = spi_block_erase_c7,
2754 }
2755 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002756 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002757 .write = spi_chip_write_256,
2758 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002759 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002760 },
2761
2762 {
2763 .vendor = "Eon",
2764 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002765 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002766 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002767 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002768 .total_size = 256,
2769 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002770 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002771 .tested = TEST_UNTESTED,
2772 .probe = probe_spi_rdid,
2773 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002774 .block_erasers =
2775 {
2776 {
2777 .eraseblocks = {
2778 {4 * 1024, 2},
2779 {8 * 1024, 1},
2780 {16 * 1024, 1},
2781 {32 * 1024, 1},
2782 {64 * 1024, 3}
2783 },
2784 .block_erase = spi_block_erase_d8,
2785 }, {
2786 .eraseblocks = { {256 * 1024, 1} },
2787 .block_erase = spi_block_erase_c7,
2788 }
2789 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002790 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002791 .write = spi_chip_write_256,
2792 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002793 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002794 },
2795
2796 {
2797 .vendor = "Eon",
2798 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002799 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002800 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002801 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002802 .total_size = 256,
2803 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002804 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002805 .tested = TEST_UNTESTED,
2806 .probe = probe_spi_rdid,
2807 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002808 .block_erasers =
2809 {
2810 {
2811 .eraseblocks = {
2812 {64 * 1024, 3},
2813 {32 * 1024, 1},
2814 {16 * 1024, 1},
2815 {8 * 1024, 1},
2816 {4 * 1024, 2},
2817 },
2818 .block_erase = spi_block_erase_d8,
2819 }, {
2820 .eraseblocks = { {256 * 1024, 1} },
2821 .block_erase = spi_block_erase_c7,
2822 }
2823 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002824 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002825 .write = spi_chip_write_256,
2826 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002827 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002828 },
2829
2830 {
2831 .vendor = "Eon",
2832 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002833 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002834 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002835 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002836 .total_size = 512,
2837 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002838 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002839 .tested = TEST_UNTESTED,
2840 .probe = probe_spi_rdid,
2841 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = {
2846 {4 * 1024, 2},
2847 {8 * 1024, 1},
2848 {16 * 1024, 1},
2849 {32 * 1024, 1},
2850 {64 * 1024, 7}
2851 },
2852 .block_erase = spi_block_erase_d8,
2853 }, {
2854 .eraseblocks = { {512 * 1024, 1} },
2855 .block_erase = spi_block_erase_c7,
2856 }
2857 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002858 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002859 .write = spi_chip_write_256,
2860 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002861 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002862 },
2863
2864 {
2865 .vendor = "Eon",
2866 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002867 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002868 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002869 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002870 .total_size = 512,
2871 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002872 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002873 .tested = TEST_UNTESTED,
2874 .probe = probe_spi_rdid,
2875 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002876 .block_erasers =
2877 {
2878 {
2879 .eraseblocks = {
2880 {64 * 1024, 7},
2881 {32 * 1024, 1},
2882 {16 * 1024, 1},
2883 {8 * 1024, 1},
2884 {4 * 1024, 2},
2885 },
2886 .block_erase = spi_block_erase_d8,
2887 }, {
2888 .eraseblocks = { {512 * 1024, 1} },
2889 .block_erase = spi_block_erase_c7,
2890 }
2891 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002892 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002893 .write = spi_chip_write_256,
2894 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002895 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002896 },
2897
2898 {
2899 .vendor = "Eon",
2900 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002901 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002902 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002903 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002904 .total_size = 1024,
2905 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002906 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002907 .tested = TEST_UNTESTED,
2908 .probe = probe_spi_rdid,
2909 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002910 .block_erasers =
2911 {
2912 {
2913 .eraseblocks = {
2914 {4 * 1024, 2},
2915 {8 * 1024, 1},
2916 {16 * 1024, 1},
2917 {32 * 1024, 1},
2918 {64 * 1024, 15}
2919 },
2920 .block_erase = spi_block_erase_d8,
2921 }, {
2922 .eraseblocks = { {1024 * 1024, 1} },
2923 .block_erase = spi_block_erase_c7,
2924 }
2925 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002926 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002927 .write = spi_chip_write_256,
2928 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002929 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002930 },
2931
2932 {
2933 .vendor = "Eon",
2934 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002935 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002936 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002937 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002938 .total_size = 1024,
2939 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002940 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002941 .tested = TEST_UNTESTED,
2942 .probe = probe_spi_rdid,
2943 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = {
2948 {64 * 1024, 15},
2949 {32 * 1024, 1},
2950 {16 * 1024, 1},
2951 {8 * 1024, 1},
2952 {4 * 1024, 2},
2953 },
2954 .block_erase = spi_block_erase_d8,
2955 }, {
2956 .eraseblocks = { {1024 * 1024, 1} },
2957 .block_erase = spi_block_erase_c7,
2958 }
2959 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002960 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002961 .write = spi_chip_write_256,
2962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002963 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002964 },
2965
2966 {
2967 .vendor = "Eon",
2968 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002969 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002970 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002971 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002972 .total_size = 2048,
2973 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002974 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002975 .tested = TEST_UNTESTED,
2976 .probe = probe_spi_rdid,
2977 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = {
2982 {4 * 1024, 2},
2983 {8 * 1024, 1},
2984 {16 * 1024, 1},
2985 {32 * 1024, 1},
2986 {64 * 1024, 31},
2987 },
2988 .block_erase = spi_block_erase_d8,
2989 }, {
2990 .eraseblocks = { {2 * 1024 * 1024, 1} },
2991 .block_erase = spi_block_erase_c7,
2992 }
2993 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002994 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002995 .write = spi_chip_write_256,
2996 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002997 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002998 },
2999
3000 {
3001 .vendor = "Eon",
3002 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003003 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003004 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003005 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003006 .total_size = 2048,
3007 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003008 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003009 .tested = TEST_UNTESTED,
3010 .probe = probe_spi_rdid,
3011 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003012 .block_erasers =
3013 {
3014 {
3015 .eraseblocks = {
3016 {64 * 1024, 31},
3017 {32 * 1024, 1},
3018 {16 * 1024, 1},
3019 {8 * 1024, 1},
3020 {4 * 1024, 2},
3021 },
3022 .block_erase = spi_block_erase_d8,
3023 }, {
3024 .eraseblocks = { {2 * 1024 * 1024, 1} },
3025 .block_erase = spi_block_erase_c7,
3026 }
3027 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003028 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003029 .write = spi_chip_write_256,
3030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003031 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003032 },
3033
3034 {
3035 .vendor = "Eon",
3036 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003037 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003038 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003039 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003040 .total_size = 4096,
3041 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003042 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003043 .tested = TEST_UNTESTED,
3044 .probe = probe_spi_rdid,
3045 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003046 .block_erasers =
3047 {
3048 {
3049 .eraseblocks = {
3050 {4 * 1024, 2},
3051 {8 * 1024, 1},
3052 {16 * 1024, 1},
3053 {32 * 1024, 1},
3054 {64 * 1024, 63},
3055 },
3056 .block_erase = spi_block_erase_d8,
3057 }, {
3058 .eraseblocks = { {4 * 1024 * 1024, 1} },
3059 .block_erase = spi_block_erase_c7,
3060 }
3061 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003062 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003063 .write = spi_chip_write_256,
3064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003065 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003066 },
3067
3068 {
3069 .vendor = "Eon",
3070 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003071 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003072 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003073 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003074 .total_size = 4096,
3075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003076 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003077 .tested = TEST_UNTESTED,
3078 .probe = probe_spi_rdid,
3079 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003080 .block_erasers =
3081 {
3082 {
3083 .eraseblocks = {
3084 {64 * 1024, 63},
3085 {32 * 1024, 1},
3086 {16 * 1024, 1},
3087 {8 * 1024, 1},
3088 {4 * 1024, 2},
3089 },
3090 .block_erase = spi_block_erase_d8,
3091 }, {
3092 .eraseblocks = { {4 * 1024 * 1024, 1} },
3093 .block_erase = spi_block_erase_c7,
3094 }
3095 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003096 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003097 .write = spi_chip_write_256,
3098 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003099 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003100 },
3101
3102 {
3103 .vendor = "Eon",
3104 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003105 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003106 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003107 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003108 .total_size = 8192,
3109 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003110 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003111 .tested = TEST_UNTESTED,
3112 .probe = probe_spi_rdid,
3113 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003114 .block_erasers =
3115 {
3116 {
3117 .eraseblocks = {
3118 {4 * 1024, 2},
3119 {8 * 1024, 1},
3120 {16 * 1024, 1},
3121 {32 * 1024, 1},
3122 {64 * 1024, 127},
3123 },
3124 .block_erase = spi_block_erase_d8,
3125 }, {
3126 .eraseblocks = { {8 * 1024 * 1024, 1} },
3127 .block_erase = spi_block_erase_c7,
3128 }
3129 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003130 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003131 .write = spi_chip_write_256,
3132 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003133 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003134 },
3135
3136 {
3137 .vendor = "Eon",
3138 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003139 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003140 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003141 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003142 .total_size = 8192,
3143 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003144 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003145 .tested = TEST_UNTESTED,
3146 .probe = probe_spi_rdid,
3147 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003148 .block_erasers =
3149 {
3150 {
3151 .eraseblocks = {
3152 {64 * 1024, 127},
3153 {32 * 1024, 1},
3154 {16 * 1024, 1},
3155 {8 * 1024, 1},
3156 {4 * 1024, 2},
3157 },
3158 .block_erase = spi_block_erase_d8,
3159 }, {
3160 .eraseblocks = { {8 * 1024 * 1024, 1} },
3161 .block_erase = spi_block_erase_c7,
3162 }
3163 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003164 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003165 .write = spi_chip_write_256,
3166 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003167 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003168 },
3169
3170 {
3171 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003172 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003173 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003174 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003175 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003176 .total_size = 64,
3177 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003178 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003179 .tested = TEST_UNTESTED,
3180 .probe = probe_spi_rdid,
3181 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003182 .block_erasers =
3183 {
3184 {
3185 .eraseblocks = { {4 * 1024, 16} },
3186 .block_erase = spi_block_erase_20,
3187 }, {
3188 .eraseblocks = { {32 * 1024, 2} },
3189 .block_erase = spi_block_erase_d8,
3190 }, {
3191 .eraseblocks = { {32 * 1024, 2} },
3192 .block_erase = spi_block_erase_52,
3193 }, {
3194 .eraseblocks = { {64 * 1024, 1} },
3195 .block_erase = spi_block_erase_60,
3196 }, {
3197 .eraseblocks = { {64 * 1024, 1} },
3198 .block_erase = spi_block_erase_c7,
3199 }
3200 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003201 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003202 .write = spi_chip_write_256,
3203 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003204 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003205 },
3206
3207 {
3208 .vendor = "Eon",
3209 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003210 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003211 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003212 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003213 .total_size = 128,
3214 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003215 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003216 .tested = TEST_UNTESTED,
3217 .probe = probe_spi_rdid,
3218 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003219 .block_erasers =
3220 {
3221 {
3222 .eraseblocks = { {4 * 1024, 32} },
3223 .block_erase = spi_block_erase_20,
3224 }, {
3225 .eraseblocks = { {32 * 1024, 4} },
3226 .block_erase = spi_block_erase_d8,
3227 }, {
3228 .eraseblocks = { {32 * 1024, 4} },
3229 .block_erase = spi_block_erase_52,
3230 }, {
3231 .eraseblocks = { {128 * 1024, 1} },
3232 .block_erase = spi_block_erase_60,
3233 }, {
3234 .eraseblocks = { {128 * 1024, 1} },
3235 .block_erase = spi_block_erase_c7,
3236 }
3237 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003238 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003239 .write = spi_chip_write_256,
3240 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003241 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003242 },
3243
3244 {
3245 .vendor = "Eon",
3246 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003247 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003248 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003249 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003250 .total_size = 256,
3251 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003252 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003253 .tested = TEST_UNTESTED,
3254 .probe = probe_spi_rdid,
3255 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003256 .block_erasers =
3257 {
3258 {
3259 .eraseblocks = { {4 * 1024, 64} },
3260 .block_erase = spi_block_erase_20,
3261 }, {
3262 .eraseblocks = { {64 * 1024, 4} },
3263 .block_erase = spi_block_erase_d8,
3264 }, {
3265 .eraseblocks = { {64 * 1024, 4} },
3266 .block_erase = spi_block_erase_52,
3267 }, {
3268 .eraseblocks = { {256 * 1024, 1} },
3269 .block_erase = spi_block_erase_60,
3270 }, {
3271 .eraseblocks = { {256 * 1024, 1} },
3272 .block_erase = spi_block_erase_c7,
3273 }
3274 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003276 .write = spi_chip_write_256,
3277 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003278 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003279 },
3280
3281 {
3282 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003283 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003284 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003285 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003286 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003287 .total_size = 512,
3288 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003289 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003290 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003291 .probe = probe_spi_rdid,
3292 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003293 .block_erasers =
3294 {
3295 {
Sean Nelson54596372010-01-09 05:30:14 +00003296 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003297 .block_erase = spi_block_erase_20,
3298 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003299 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003300 .block_erase = spi_block_erase_d8,
3301 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003302 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003303 .block_erase = spi_block_erase_60,
3304 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003305 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003306 .block_erase = spi_block_erase_c7,
3307 },
3308 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003309 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003310 .write = spi_chip_write_256,
3311 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003312 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003313 },
3314
3315 {
3316 .vendor = "Eon",
3317 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003318 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003319 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003320 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003321 .total_size = 1024,
3322 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003323 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003324 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003325 .probe = probe_spi_rdid,
3326 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003327 .block_erasers =
3328 {
3329 {
3330 .eraseblocks = { {4 * 1024, 256} },
3331 .block_erase = spi_block_erase_20,
3332 }, {
3333 .eraseblocks = { {64 * 1024, 16} },
3334 .block_erase = spi_block_erase_d8,
3335 }, {
3336 .eraseblocks = { {1024 * 1024, 1} },
3337 .block_erase = spi_block_erase_60,
3338 }, {
3339 .eraseblocks = { {1024 * 1024, 1} },
3340 .block_erase = spi_block_erase_c7,
3341 }
3342 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003343 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003344 .write = spi_chip_write_256,
3345 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003346 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003347 },
3348
3349 {
3350 .vendor = "Eon",
3351 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003352 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003353 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003354 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003355 .total_size = 2048,
3356 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003357 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003359 .probe = probe_spi_rdid,
3360 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003361 .block_erasers =
3362 {
3363 {
3364 .eraseblocks = { {4 * 1024, 512} },
3365 .block_erase = spi_block_erase_20,
3366 }, {
3367 .eraseblocks = { {64 * 1024, 32} },
3368 .block_erase = spi_block_erase_d8,
3369 }, {
3370 .eraseblocks = { {2 * 1024 * 1024, 1} },
3371 .block_erase = spi_block_erase_60,
3372 }, {
3373 .eraseblocks = { {2 * 1024 * 1024, 1} },
3374 .block_erase = spi_block_erase_c7,
3375 }
3376 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003377 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003378 .write = spi_chip_write_256,
3379 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003380 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003381 },
3382
3383 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003384 .vendor = "Eon",
3385 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003386 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003387 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003388 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003389 .total_size = 4096,
3390 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003391 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003392 .tested = TEST_UNTESTED,
3393 .probe = probe_spi_rdid,
3394 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003395 .block_erasers =
3396 {
3397 {
3398 .eraseblocks = { {4 * 1024, 1024} },
3399 .block_erase = spi_block_erase_20,
3400 }, {
3401 .eraseblocks = { {64 * 1024, 64} },
3402 .block_erase = spi_block_erase_d8,
3403 }, {
3404 .eraseblocks = { {4 * 1024 * 1024, 1} },
3405 .block_erase = spi_block_erase_60,
3406 }, {
3407 .eraseblocks = { {4 * 1024 * 1024, 1} },
3408 .block_erase = spi_block_erase_c7,
3409 }
3410 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003411 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003412 .write = spi_chip_write_256,
3413 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003414 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003415 },
3416
3417 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003418 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003419 .name = "EN25F64",
3420 .bustype = BUS_SPI,
3421 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003422 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003423 .total_size = 8192,
3424 .page_size = 256,
3425 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003426 .tested = TEST_OK_PR,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003427 .probe = probe_spi_rdid,
3428 .probe_timing = TIMING_ZERO,
3429 .block_erasers =
3430 {
3431 {
3432 .eraseblocks = { {4 * 1024, 2048} },
3433 .block_erase = spi_block_erase_20,
3434 }, {
3435 .eraseblocks = { {64 * 1024, 128} },
3436 .block_erase = spi_block_erase_d8,
3437 }, {
3438 .eraseblocks = { {8 * 1024 * 1024, 1} },
3439 .block_erase = spi_block_erase_60,
3440 }, {
3441 .eraseblocks = { {8 * 1024 * 1024, 1} },
3442 .block_erase = spi_block_erase_c7,
3443 }
3444 },
3445 .unlock = spi_disable_blockprotect,
3446 .write = spi_chip_write_256,
3447 .read = spi_chip_read,
3448 .voltage = {2700, 3600},
3449 },
3450
3451 {
3452 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003453 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003454 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003455 .manufacture_id = EON_ID_NOPREFIX,
3456 .model_id = EON_EN25Q40,
3457 .total_size = 512,
3458 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003459 /* OTP: 256B total; enter 0x3A */
3460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003461 .tested = TEST_UNTESTED,
3462 .probe = probe_spi_rdid,
3463 .probe_timing = TIMING_ZERO,
3464 .block_erasers =
3465 {
3466 {
3467 .eraseblocks = { {4 * 1024, 128} },
3468 .block_erase = spi_block_erase_20,
3469 }, {
3470 .eraseblocks = { {64 * 1024, 8} },
3471 .block_erase = spi_block_erase_d8,
3472 }, {
3473 .eraseblocks = { {512 * 1024, 1} },
3474 .block_erase = spi_block_erase_60,
3475 }, {
3476 .eraseblocks = { {512 * 1024, 1} },
3477 .block_erase = spi_block_erase_c7,
3478 }
3479 },
3480 .unlock = spi_disable_blockprotect,
3481 .write = spi_chip_write_256,
3482 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003483 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003484 },
3485
3486 {
3487 .vendor = "Eon",
3488 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003489 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003490 .manufacture_id = EON_ID_NOPREFIX,
3491 .model_id = EON_EN25Q80,
3492 .total_size = 1024,
3493 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003494 /* OTP: 256B total; enter 0x3A */
3495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003496 .tested = TEST_UNTESTED,
3497 .probe = probe_spi_rdid,
3498 .probe_timing = TIMING_ZERO,
3499 .block_erasers =
3500 {
3501 {
3502 .eraseblocks = { {4 * 1024, 256} },
3503 .block_erase = spi_block_erase_20,
3504 }, {
3505 .eraseblocks = { {64 * 1024, 16} },
3506 .block_erase = spi_block_erase_d8,
3507 }, {
3508 .eraseblocks = { {1024 * 1024, 1} },
3509 .block_erase = spi_block_erase_60,
3510 }, {
3511 .eraseblocks = { {1024 * 1024, 1} },
3512 .block_erase = spi_block_erase_c7,
3513 }
3514 },
3515 .unlock = spi_disable_blockprotect,
3516 .write = spi_chip_write_256,
3517 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003518 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003519 },
3520
3521 {
3522 /* Note: EN25D16 is an evil twin which shares the model ID
3523 but has different write protection capabilities */
3524 .vendor = "Eon",
3525 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003526 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003527 .manufacture_id = EON_ID_NOPREFIX,
3528 .model_id = EON_EN25Q16,
3529 .total_size = 2048,
3530 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003531 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3532 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003533 .tested = TEST_UNTESTED,
3534 .probe = probe_spi_rdid,
3535 .probe_timing = TIMING_ZERO,
3536 .block_erasers =
3537 {
3538 {
3539 .eraseblocks = { {4 * 1024, 512} },
3540 .block_erase = spi_block_erase_20,
3541 }, {
3542 .eraseblocks = { {64 * 1024, 32} },
3543 .block_erase = spi_block_erase_d8,
3544 }, {
3545 /* not supported by Q16 version */
3546 .eraseblocks = { {64 * 1024, 32} },
3547 .block_erase = spi_block_erase_52,
3548 }, {
3549 .eraseblocks = { {2 * 1024 * 1024, 1} },
3550 .block_erase = spi_block_erase_60,
3551 }, {
3552 .eraseblocks = { {2 * 1024 * 1024, 1} },
3553 .block_erase = spi_block_erase_c7,
3554 }
3555 },
3556 .unlock = spi_disable_blockprotect,
3557 .write = spi_chip_write_256,
3558 .read = spi_chip_read,
3559 .voltage = {2700, 3600},
3560 },
3561
3562 {
3563 .vendor = "Eon",
3564 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003565 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003566 .manufacture_id = EON_ID_NOPREFIX,
3567 .model_id = EON_EN25Q32,
3568 .total_size = 4096,
3569 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003570 /* OTP: 512B total; enter 0x3A */
3571 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003572 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003573 .probe = probe_spi_rdid,
3574 .probe_timing = TIMING_ZERO,
3575 .block_erasers =
3576 {
3577 {
3578 .eraseblocks = { {4 * 1024, 1024} },
3579 .block_erase = spi_block_erase_20,
3580 }, {
3581 .eraseblocks = { {64 * 1024, 64} },
3582 .block_erase = spi_block_erase_d8,
3583 }, {
3584 .eraseblocks = { {4 * 1024 * 1024, 1} },
3585 .block_erase = spi_block_erase_60,
3586 }, {
3587 .eraseblocks = { {4 * 1024 * 1024, 1} },
3588 .block_erase = spi_block_erase_c7,
3589 }
3590 },
3591 .unlock = spi_disable_blockprotect,
3592 .write = spi_chip_write_256,
3593 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003594 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003595 },
3596
3597 {
3598 .vendor = "Eon",
3599 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003600 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003601 .manufacture_id = EON_ID_NOPREFIX,
3602 .model_id = EON_EN25Q64,
3603 .total_size = 8192,
3604 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003605 /* OTP: 512B total; enter 0x3A */
3606 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003607 .tested = TEST_UNTESTED,
3608 .probe = probe_spi_rdid,
3609 .probe_timing = TIMING_ZERO,
3610 .block_erasers =
3611 {
3612 {
3613 .eraseblocks = { {4 * 1024, 2048} },
3614 .block_erase = spi_block_erase_20,
3615 }, {
3616 .eraseblocks = { {64 * 1024, 128} },
3617 .block_erase = spi_block_erase_d8,
3618 }, {
3619 .eraseblocks = { {8 * 1024 * 1024, 1} },
3620 .block_erase = spi_block_erase_60,
3621 }, {
3622 .eraseblocks = { {8 * 1024 * 1024, 1} },
3623 .block_erase = spi_block_erase_c7,
3624 }
3625 },
3626 .unlock = spi_disable_blockprotect,
3627 .write = spi_chip_write_256,
3628 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003629 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003630 },
3631
3632 {
3633 .vendor = "Eon",
3634 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003635 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003636 .manufacture_id = EON_ID_NOPREFIX,
3637 .model_id = EON_EN25Q128,
3638 .total_size = 16384,
3639 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003640 /* OTP: 512B total; enter 0x3A */
3641 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003642 .tested = TEST_UNTESTED,
3643 .probe = probe_spi_rdid,
3644 .probe_timing = TIMING_ZERO,
3645 .block_erasers =
3646 {
3647 {
3648 .eraseblocks = { {4 * 1024, 4096} },
3649 .block_erase = spi_block_erase_20,
3650 }, {
3651 .eraseblocks = { {64 * 1024, 256} },
3652 .block_erase = spi_block_erase_d8,
3653 }, {
3654 .eraseblocks = { {16 * 1024 * 1024, 1} },
3655 .block_erase = spi_block_erase_60,
3656 }, {
3657 .eraseblocks = { {16 * 1024 * 1024, 1} },
3658 .block_erase = spi_block_erase_c7,
3659 }
3660 },
3661 .unlock = spi_disable_blockprotect,
3662 .write = spi_chip_write_256,
3663 .read = spi_chip_read,
3664 },
3665
3666 {
3667 .vendor = "Eon",
3668 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003669 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003670 .manufacture_id = EON_ID_NOPREFIX,
3671 .model_id = EON_EN25QH16,
3672 .total_size = 2048,
3673 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003674 /* supports SFDP */
3675 /* OTP: 512B total; enter 0x3A */
3676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003677 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003678 .probe = probe_spi_rdid,
3679 .probe_timing = TIMING_ZERO,
3680 .block_erasers =
3681 {
3682 {
3683 .eraseblocks = { {4 * 1024, 512} },
3684 .block_erase = spi_block_erase_20,
3685 }, {
3686 .eraseblocks = { {64 * 1024, 32} },
3687 .block_erase = spi_block_erase_d8,
3688 }, {
3689 .eraseblocks = { {1024 * 2048, 1} },
3690 .block_erase = spi_block_erase_60,
3691 }, {
3692 .eraseblocks = { {1024 * 2048, 1} },
3693 .block_erase = spi_block_erase_c7,
3694 }
3695 },
3696 .unlock = spi_disable_blockprotect,
3697 .write = spi_chip_write_256,
3698 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003699 .voltage = {2700, 3600},
3700 },
3701
3702 {
3703 .vendor = "Eon",
3704 .name = "EN25QH32",
3705 .bustype = BUS_SPI,
3706 .manufacture_id = EON_ID_NOPREFIX,
3707 .model_id = EON_EN25QH32,
3708 .total_size = 4096,
3709 .page_size = 256,
3710 /* supports SFDP */
3711 /* OTP: 512B total; enter 0x3A */
3712 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3713 .tested = TEST_UNTESTED,
3714 .probe = probe_spi_rdid,
3715 .probe_timing = TIMING_ZERO,
3716 .block_erasers =
3717 {
3718 {
3719 .eraseblocks = { {4 * 1024, 1024} },
3720 .block_erase = spi_block_erase_20,
3721 }, {
3722 .eraseblocks = { {64 * 1024, 64} },
3723 .block_erase = spi_block_erase_d8,
3724 }, {
3725 .eraseblocks = { {1024 * 4096, 1} },
3726 .block_erase = spi_block_erase_60,
3727 }, {
3728 .eraseblocks = { {1024 * 4096, 1} },
3729 .block_erase = spi_block_erase_c7,
3730 }
3731 },
3732 .unlock = spi_disable_blockprotect,
3733 .write = spi_chip_write_256,
3734 .read = spi_chip_read,
3735 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003736 },
3737
3738 {
3739 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003740 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003741 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003742 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003743 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003744 .total_size = 128,
3745 .page_size = 128,
3746 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003747 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003748 .probe = probe_jedec,
3749 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3750 .block_erasers =
3751 {
3752 {
3753 .eraseblocks = { {16 * 1024, 8} },
3754 .block_erase = erase_sector_jedec,
3755 },
3756 {
3757 .eraseblocks = { {128 * 1024, 1} },
3758 .block_erase = erase_chip_block_jedec,
3759 },
3760 },
3761 .write = write_jedec_1,
3762 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003763 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003764 },
3765
3766 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003767 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003768 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003769 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003770 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003771 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003772 .total_size = 256,
3773 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003774 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003775 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003776 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003777 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003778 .block_erasers =
3779 {
3780 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003781 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003782 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003783 {8 * 1024, 2},
3784 {32 * 1024, 1},
3785 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003786 },
3787 .block_erase = erase_sector_jedec,
3788 }, {
3789 .eraseblocks = { {256 * 1024, 1} },
3790 .block_erase = erase_chip_block_jedec,
3791 },
3792 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003793 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003794 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003795 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003796 },
3797
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003798 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003799 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003800 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003801 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003802 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003803 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003804 .total_size = 256,
3805 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003806 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003807 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003808 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003809 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003810 .block_erasers =
3811 {
3812 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003813 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003814 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003815 {32 * 1024, 1},
3816 {8 * 1024, 2},
3817 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003818 },
3819 .block_erase = erase_sector_jedec,
3820 }, {
3821 .eraseblocks = { {256 * 1024, 1} },
3822 .block_erase = erase_chip_block_jedec,
3823 },
3824 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003825 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003827 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003828 },
3829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003830 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003831 .vendor = "Eon",
3832 .name = "EN29LV640B",
3833 .bustype = BUS_PARALLEL,
3834 .manufacture_id = EON_ID,
3835 .model_id = EON_EN29LV640B,
3836 .total_size = 8192,
3837 .page_size = 8192,
3838 .feature_bits = 0,
3839 .tested = TEST_OK_PREW,
3840 .probe = probe_en29lv640b,
3841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3842 .block_erasers =
3843 {
3844 {
3845 .eraseblocks = {
3846 {8 * 1024, 8},
3847 {64 * 1024, 127},
3848 },
3849 .block_erase = block_erase_en29lv640b,
3850 }, {
3851 .eraseblocks = { {8 * 1024 * 1024, 1} },
3852 .block_erase = block_erase_chip_en29lv640b,
3853 },
3854 },
3855 .write = write_en29lv640b,
3856 .read = read_memmapped,
3857 .voltage = {2700, 3600},
3858 },
3859
3860 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003861 .vendor = "Fujitsu",
3862 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003863 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003864 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003865 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003866 .total_size = 512,
3867 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003868 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003869 .tested = TEST_UNTESTED,
3870 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003871 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003872 .block_erasers =
3873 {
3874 {
3875 .eraseblocks = {
3876 {16 * 1024, 1},
3877 {8 * 1024, 2},
3878 {32 * 1024, 1},
3879 {64 * 1024, 7},
3880 },
Sean Nelson35727f72010-01-28 23:55:12 +00003881 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003882 }, {
3883 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003884 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003885 },
3886 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003887 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003889 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003890 },
3891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003892 {
3893 .vendor = "Fujitsu",
3894 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003895 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003896 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003897 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003898 .total_size = 512,
3899 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003900 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003901 .tested = TEST_UNTESTED,
3902 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003903 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003904 .block_erasers =
3905 {
3906 {
3907 .eraseblocks = {
3908 {64 * 1024, 7},
3909 {32 * 1024, 1},
3910 {8 * 1024, 2},
3911 {16 * 1024, 1},
3912 },
Sean Nelson35727f72010-01-28 23:55:12 +00003913 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003914 }, {
3915 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003916 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003917 },
3918 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003919 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003921 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003922 },
3923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003924 {
Sean Nelson35727f72010-01-28 23:55:12 +00003925 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003926 .vendor = "Fujitsu",
3927 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003928 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003929 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003930 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003931 .total_size = 512,
3932 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003933 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003934 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003935 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003936 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003937 .block_erasers =
3938 {
3939 {
3940 .eraseblocks = {
3941 {16 * 1024, 1},
3942 {8 * 1024, 2},
3943 {32 * 1024, 1},
3944 {64 * 1024, 7},
3945 },
3946 .block_erase = block_erase_m29f400bt,
3947 }, {
3948 .eraseblocks = { {512 * 1024, 1} },
3949 .block_erase = block_erase_chip_m29f400bt,
3950 },
3951 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003952 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003953 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003954 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003955 },
3956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003957 {
3958 .vendor = "Fujitsu",
3959 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003960 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003961 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003962 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003963 .total_size = 512,
3964 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003965 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003966 .tested = TEST_UNTESTED,
3967 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003968 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003969 .block_erasers =
3970 {
3971 {
3972 .eraseblocks = {
3973 {64 * 1024, 7},
3974 {32 * 1024, 1},
3975 {8 * 1024, 2},
3976 {16 * 1024, 1},
3977 },
3978 .block_erase = block_erase_m29f400bt,
3979 }, {
3980 .eraseblocks = { {512 * 1024, 1} },
3981 .block_erase = block_erase_chip_m29f400bt,
3982 },
3983 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003984 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003985 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003986 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003987 },
3988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003989 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003990 .vendor = "GigaDevice",
3991 .name = "GD25Q20",
3992 .bustype = BUS_SPI,
3993 .manufacture_id = GIGADEVICE_ID,
3994 .model_id = GIGADEVICE_GD25Q20,
3995 .total_size = 256,
3996 .page_size = 256,
3997 .feature_bits = FEATURE_WRSR_WREN,
3998 .tested = TEST_UNTESTED,
3999 .probe = probe_spi_rdid,
4000 .probe_timing = TIMING_ZERO,
4001 .block_erasers =
4002 {
4003 {
4004 .eraseblocks = { {4 * 1024, 64} },
4005 .block_erase = spi_block_erase_20,
4006 }, {
4007 .eraseblocks = { {32 * 1024, 8} },
4008 .block_erase = spi_block_erase_52,
4009 }, {
4010 .eraseblocks = { {64 * 1024, 4} },
4011 .block_erase = spi_block_erase_d8,
4012 }, {
4013 .eraseblocks = { {256 * 1024, 1} },
4014 .block_erase = spi_block_erase_60,
4015 }, {
4016 .eraseblocks = { {256 * 1024, 1} },
4017 .block_erase = spi_block_erase_c7,
4018 }
4019 },
4020 .unlock = spi_disable_blockprotect,
4021 .write = spi_chip_write_256,
4022 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004023 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004024 },
4025
4026 {
4027 .vendor = "GigaDevice",
4028 .name = "GD25Q40",
4029 .bustype = BUS_SPI,
4030 .manufacture_id = GIGADEVICE_ID,
4031 .model_id = GIGADEVICE_GD25Q40,
4032 .total_size = 512,
4033 .page_size = 256,
4034 .feature_bits = FEATURE_WRSR_WREN,
4035 .tested = TEST_UNTESTED,
4036 .probe = probe_spi_rdid,
4037 .probe_timing = TIMING_ZERO,
4038 .block_erasers =
4039 {
4040 {
4041 .eraseblocks = { {4 * 1024, 128} },
4042 .block_erase = spi_block_erase_20,
4043 }, {
4044 .eraseblocks = { {32 * 1024, 16} },
4045 .block_erase = spi_block_erase_52,
4046 }, {
4047 .eraseblocks = { {64 * 1024, 8} },
4048 .block_erase = spi_block_erase_d8,
4049 }, {
4050 .eraseblocks = { {512 * 1024, 1} },
4051 .block_erase = spi_block_erase_60,
4052 }, {
4053 .eraseblocks = { {512 * 1024, 1} },
4054 .block_erase = spi_block_erase_c7,
4055 }
4056 },
4057 .unlock = spi_disable_blockprotect,
4058 .write = spi_chip_write_256,
4059 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004060 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004061 },
4062
4063 {
4064 .vendor = "GigaDevice",
4065 .name = "GD25Q80",
4066 .bustype = BUS_SPI,
4067 .manufacture_id = GIGADEVICE_ID,
4068 .model_id = GIGADEVICE_GD25Q80,
4069 .total_size = 1024,
4070 .page_size = 256,
4071 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4072 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4073 .tested = TEST_OK_PREW,
4074 .probe = probe_spi_rdid,
4075 .probe_timing = TIMING_ZERO,
4076 .block_erasers =
4077 {
4078 {
4079 .eraseblocks = { {4 * 1024, 256} },
4080 .block_erase = spi_block_erase_20,
4081 }, {
4082 .eraseblocks = { {32 * 1024, 32} },
4083 .block_erase = spi_block_erase_52,
4084 }, {
4085 .eraseblocks = { {64 * 1024, 16} },
4086 .block_erase = spi_block_erase_d8,
4087 }, {
4088 .eraseblocks = { {1024 * 1024, 1} },
4089 .block_erase = spi_block_erase_60,
4090 }, {
4091 .eraseblocks = { {1024 * 1024, 1} },
4092 .block_erase = spi_block_erase_c7,
4093 }
4094 },
4095 .unlock = spi_disable_blockprotect,
4096 .write = spi_chip_write_256,
4097 .read = spi_chip_read,
4098 .voltage = {2700, 3600},
4099 },
4100
4101 {
4102 .vendor = "GigaDevice",
4103 .name = "GD25Q16",
4104 .bustype = BUS_SPI,
4105 .manufacture_id = GIGADEVICE_ID,
4106 .model_id = GIGADEVICE_GD25Q16,
4107 .total_size = 2048,
4108 .page_size = 256,
4109 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4110 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4111 .tested = TEST_UNTESTED,
4112 .probe = probe_spi_rdid,
4113 .probe_timing = TIMING_ZERO,
4114 .block_erasers =
4115 {
4116 {
4117 .eraseblocks = { {4 * 1024, 512} },
4118 .block_erase = spi_block_erase_20,
4119 }, {
4120 .eraseblocks = { {32 * 1024, 64} },
4121 .block_erase = spi_block_erase_52,
4122 }, {
4123 .eraseblocks = { {64 * 1024, 32} },
4124 .block_erase = spi_block_erase_d8,
4125 }, {
4126 .eraseblocks = { {2 * 1024 * 1024, 1} },
4127 .block_erase = spi_block_erase_60,
4128 }, {
4129 .eraseblocks = { {2 * 1024 * 1024, 1} },
4130 .block_erase = spi_block_erase_c7,
4131 }
4132 },
4133 .unlock = spi_disable_blockprotect,
4134 .write = spi_chip_write_256,
4135 .read = spi_chip_read,
4136 .voltage = {2700, 3600},
4137 },
4138
4139 {
4140 .vendor = "GigaDevice",
4141 .name = "GD25Q32",
4142 .bustype = BUS_SPI,
4143 .manufacture_id = GIGADEVICE_ID,
4144 .model_id = GIGADEVICE_GD25Q32,
4145 .total_size = 4096,
4146 .page_size = 256,
4147 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4149 .tested = TEST_UNTESTED,
4150 .probe = probe_spi_rdid,
4151 .probe_timing = TIMING_ZERO,
4152 .block_erasers =
4153 {
4154 {
4155 .eraseblocks = { {4 * 1024, 1024} },
4156 .block_erase = spi_block_erase_20,
4157 }, {
4158 .eraseblocks = { {32 * 1024, 128} },
4159 .block_erase = spi_block_erase_52,
4160 }, {
4161 .eraseblocks = { {64 * 1024, 64} },
4162 .block_erase = spi_block_erase_d8,
4163 }, {
4164 .eraseblocks = { {4 * 1024 * 1024, 1} },
4165 .block_erase = spi_block_erase_60,
4166 }, {
4167 .eraseblocks = { {4 * 1024 * 1024, 1} },
4168 .block_erase = spi_block_erase_c7,
4169 }
4170 },
4171 .unlock = spi_disable_blockprotect,
4172 .write = spi_chip_write_256,
4173 .read = spi_chip_read,
4174 .voltage = {2700, 3600},
4175 },
4176
4177 {
4178 .vendor = "GigaDevice",
4179 .name = "GD25Q64",
4180 .bustype = BUS_SPI,
4181 .manufacture_id = GIGADEVICE_ID,
4182 .model_id = GIGADEVICE_GD25Q64,
4183 .total_size = 8192,
4184 .page_size = 256,
4185 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4186 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004187 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004188 .probe = probe_spi_rdid,
4189 .probe_timing = TIMING_ZERO,
4190 .block_erasers =
4191 {
4192 {
4193 .eraseblocks = { {4 * 1024, 2048} },
4194 .block_erase = spi_block_erase_20,
4195 }, {
4196 .eraseblocks = { {32 * 1024, 256} },
4197 .block_erase = spi_block_erase_52,
4198 }, {
4199 .eraseblocks = { {64 * 1024, 128} },
4200 .block_erase = spi_block_erase_d8,
4201 }, {
4202 .eraseblocks = { {8 * 1024 * 1024, 1} },
4203 .block_erase = spi_block_erase_60,
4204 }, {
4205 .eraseblocks = { {8 * 1024 * 1024, 1} },
4206 .block_erase = spi_block_erase_c7,
4207 }
4208 },
4209 .unlock = spi_disable_blockprotect,
4210 .write = spi_chip_write_256,
4211 .read = spi_chip_read,
4212 },
4213
4214 {
4215 .vendor = "GigaDevice",
4216 .name = "GD25Q128",
4217 .bustype = BUS_SPI,
4218 .manufacture_id = GIGADEVICE_ID,
4219 .model_id = GIGADEVICE_GD25Q128,
4220 .total_size = 16384,
4221 .page_size = 256,
4222 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4223 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4224 .tested = TEST_UNTESTED,
4225 .probe = probe_spi_rdid,
4226 .probe_timing = TIMING_ZERO,
4227 .block_erasers =
4228 {
4229 {
4230 .eraseblocks = { {4 * 1024, 4096} },
4231 .block_erase = spi_block_erase_20,
4232 }, {
4233 .eraseblocks = { {32 * 1024, 512} },
4234 .block_erase = spi_block_erase_52,
4235 }, {
4236 .eraseblocks = { {64 * 1024, 256} },
4237 .block_erase = spi_block_erase_d8,
4238 }, {
4239 .eraseblocks = { {16 * 1024 * 1024, 1} },
4240 .block_erase = spi_block_erase_60,
4241 }, {
4242 .eraseblocks = { {16 * 1024 * 1024, 1} },
4243 .block_erase = spi_block_erase_c7,
4244 }
4245 },
4246 .unlock = spi_disable_blockprotect,
4247 .write = spi_chip_write_256,
4248 .read = spi_chip_read,
4249 },
4250
4251 {
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004252 .vendor = "GigaDevice",
4253 .name = "GD25LQ32",
4254 .bustype = BUS_SPI,
4255 .manufacture_id = GIGADEVICE_ID,
4256 .model_id = GIGADEVICE_GD25LQ32,
4257 .total_size = 4096,
4258 .page_size = 256,
4259 .feature_bits = FEATURE_WRSR_WREN,
4260 .tested = TEST_OK_PREW,
4261 .probe = probe_spi_rdid,
4262 .probe_timing = TIMING_ZERO,
4263 .block_erasers =
4264 {
4265 {
4266 .eraseblocks = { {4 * 1024, 1024} },
4267 .block_erase = spi_block_erase_20,
4268 }, {
4269 .eraseblocks = { {32 * 1024, 128} },
4270 .block_erase = spi_block_erase_52,
4271 }, {
4272 .eraseblocks = { {64 * 1024, 64} },
4273 .block_erase = spi_block_erase_d8,
4274 }, {
4275 .eraseblocks = { {4 * 1024 * 1024, 1} },
4276 .block_erase = spi_block_erase_60,
4277 }, {
4278 .eraseblocks = { {4 * 1024 * 1024, 1} },
4279 .block_erase = spi_block_erase_c7,
4280 }
4281 },
4282 .unlock = spi_disable_blockprotect,
4283 .write = spi_chip_write_256,
4284 .read = spi_chip_read,
4285 .voltage = {1700, 1950},
4286 },
4287
4288 {
David Borgc96a8bd2010-06-21 16:12:22 +00004289 .vendor = "Hyundai",
4290 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004291 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004292 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004293 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004294 .total_size = 256,
4295 .page_size = 256 * 1024,
4296 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004297 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004298 .probe = probe_jedec,
4299 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4300 .block_erasers =
4301 {
4302 {
4303 .eraseblocks = {
4304 {64 * 1024, 3},
4305 {32 * 1024, 1},
4306 {8 * 1024, 2},
4307 {16 * 1024, 1},
4308 },
4309 .block_erase = erase_sector_jedec,
4310 }, {
4311 .eraseblocks = { {256 * 1024, 1} },
4312 .block_erase = erase_chip_block_jedec,
4313 },
4314 },
4315 .write = write_jedec_1,
4316 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004317 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004318 },
4319
4320 {
4321 .vendor = "Hyundai",
4322 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004323 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004324 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004325 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004326 .total_size = 256,
4327 .page_size = 256 * 1024,
4328 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4329 .tested = TEST_UNTESTED,
4330 .probe = probe_jedec,
4331 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4332 .block_erasers =
4333 {
4334 {
4335 .eraseblocks = {
4336 {16 * 1024, 1},
4337 {8 * 1024, 2},
4338 {32 * 1024, 1},
4339 {64 * 1024, 3},
4340 },
4341 .block_erase = erase_sector_jedec,
4342 }, {
4343 .eraseblocks = { {256 * 1024, 1} },
4344 .block_erase = erase_chip_block_jedec,
4345 },
4346 },
4347 .write = write_jedec_1,
4348 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004349 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004350 },
4351
4352 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004353 .vendor = "Hyundai",
4354 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004355 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004356 .manufacture_id = HYUNDAI_ID,
4357 .model_id = HYUNDAI_HY29F040A,
4358 .total_size = 512,
4359 .page_size = 64 * 1024,
4360 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4361 .tested = TEST_UNTESTED,
4362 .probe = probe_jedec,
4363 .probe_timing = TIMING_ZERO,
4364 .block_erasers =
4365 {
4366 {
4367 .eraseblocks = { {64 * 1024, 8} },
4368 .block_erase = erase_sector_jedec,
4369 }, {
4370 .eraseblocks = { {512 * 1024, 1} },
4371 .block_erase = erase_chip_block_jedec,
4372 },
4373 },
4374 .write = write_jedec_1,
4375 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004376 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004377 },
4378
4379 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004380 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004381 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004382 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004383 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004384 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004385 .total_size = 128,
4386 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004387 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004388 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004389 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004390 .block_erasers =
4391 {
4392 {
4393 .eraseblocks = {
4394 {8 * 1024, 1},
4395 {4 * 1024, 2},
4396 {112 * 1024, 1},
4397 },
Sean Nelson28accc22010-03-19 18:47:06 +00004398 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004399 },
4400 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004401 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004403 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004404 },
4405
4406 {
4407 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004408 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004409 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004410 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004411 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004412 .total_size = 128,
4413 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004414 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004415 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004416 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004417 .block_erasers =
4418 {
4419 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004420 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004421 {112 * 1024, 1},
4422 {4 * 1024, 2},
4423 {8 * 1024, 1},
4424 },
Sean Nelson28accc22010-03-19 18:47:06 +00004425 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004426 },
4427 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004428 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004430 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004431 },
4432
4433 {
4434 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004435 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004436 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004437 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004438 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004439 .total_size = 256,
4440 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004441 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004442 .probe = probe_82802ab,
4443 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4444 .block_erasers =
4445 {
4446 {
4447 .eraseblocks = {
4448 {128 * 1024, 1},
4449 {96 * 1024, 1},
4450 {8 * 1024, 2},
4451 {16 * 1024, 1},
4452 },
4453 .block_erase = erase_block_82802ab,
4454 },
4455 },
4456 .write = write_82802ab,
4457 .read = read_memmapped,
4458 },
4459
4460 {
4461 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004462 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004463 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004464 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004465 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004466 .total_size = 512,
4467 .page_size = 256,
4468 .tested = TEST_UNTESTED,
4469 .probe = probe_82802ab,
4470 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004471 .block_erasers =
4472 {
4473 {
4474 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004475 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004476 },
4477 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004478 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004479 .write = write_82802ab,
4480 .read = read_memmapped,
4481 },
4482
4483 {
4484 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004485 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004486 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004487 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004488 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004489 .total_size = 512,
4490 .page_size = 128 * 1024, /* maximal block size */
4491 .tested = TEST_UNTESTED,
4492 .probe = probe_82802ab,
4493 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4494 .block_erasers =
4495 {
4496 {
4497 .eraseblocks = {
4498 {16 * 1024, 1},
4499 {8 * 1024, 2},
4500 {96 * 1024, 1},
4501 {128 * 1024, 3},
4502 },
4503 .block_erase = erase_block_82802ab,
4504 },
4505 },
4506 .write = write_82802ab,
4507 .read = read_memmapped,
4508 },
4509
4510 {
4511 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004512 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004513 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004514 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004515 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004516 .total_size = 512,
4517 .page_size = 128 * 1024, /* maximal block size */
4518 .tested = TEST_UNTESTED,
4519 .probe = probe_82802ab,
4520 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4521 .block_erasers =
4522 {
4523 {
4524 .eraseblocks = {
4525 {128 * 1024, 3},
4526 {96 * 1024, 1},
4527 {8 * 1024, 2},
4528 {16 * 1024, 1},
4529 },
4530 .block_erase = erase_block_82802ab,
4531 },
4532 },
4533 .write = write_82802ab,
4534 .read = read_memmapped,
4535 },
4536
4537 {
4538 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004539 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004540 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004541 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004542 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004543 .total_size = 512,
4544 .page_size = 128 * 1024, /* maximal block size */
4545 .feature_bits = FEATURE_ADDR_SHIFTED,
4546 .tested = TEST_UNTESTED,
4547 .probe = probe_82802ab,
4548 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4549 .block_erasers =
4550 {
4551 {
4552 .eraseblocks = {
4553 {16 * 1024, 1},
4554 {8 * 1024, 2},
4555 {96 * 1024, 1},
4556 {128 * 1024, 3},
4557 },
4558 .block_erase = erase_block_82802ab,
4559 },
4560 },
4561 .write = write_82802ab,
4562 .read = read_memmapped,
4563 },
4564
4565 {
4566 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004567 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004568 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004569 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004570 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004571 .total_size = 512,
4572 .page_size = 128 * 1024, /* maximal block size */
4573 .feature_bits = FEATURE_ADDR_SHIFTED,
4574 .tested = TEST_UNTESTED,
4575 .probe = probe_82802ab,
4576 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4577 .block_erasers =
4578 {
4579 {
4580 .eraseblocks = {
4581 {128 * 1024, 3},
4582 {96 * 1024, 1},
4583 {8 * 1024, 2},
4584 {16 * 1024, 1},
4585 },
4586 .block_erase = erase_block_82802ab,
4587 },
4588 },
4589 .write = write_82802ab,
4590 .read = read_memmapped,
4591 },
4592
4593 {
4594 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004595 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004596 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004597 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004598 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004599 .total_size = 512,
4600 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004601 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004602 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004603 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004604 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004605 .block_erasers =
4606 {
4607 {
4608 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004609 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004610 },
4611 },
Sean Nelson28accc22010-03-19 18:47:06 +00004612 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004613 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004614 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004615 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004616 },
4617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004618 {
4619 .vendor = "Intel",
4620 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004621 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004622 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004623 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004624 .total_size = 1024,
4625 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004626 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004627 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004628 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004629 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004630 .block_erasers =
4631 {
4632 {
4633 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004634 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004635 },
4636 },
Sean Nelson28accc22010-03-19 18:47:06 +00004637 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004638 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004640 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004641 },
4642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004643 {
4644 .vendor = "Macronix",
4645 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004646 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004647 .manufacture_id = MACRONIX_ID,
4648 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004649 .total_size = 64,
4650 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004651 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004652 .tested = TEST_UNTESTED,
4653 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004654 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004655 .block_erasers =
4656 {
4657 {
4658 .eraseblocks = { {4 * 1024, 16} },
4659 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004660 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004661 .eraseblocks = { {64 * 1024, 1} },
4662 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004663 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004664 .eraseblocks = { {64 * 1024, 1} },
4665 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004666 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004667 .eraseblocks = { {64 * 1024, 1} },
4668 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004669 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004670 .eraseblocks = { {64 * 1024, 1} },
4671 .block_erase = spi_block_erase_c7,
4672 },
4673 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004674 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004675 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004676 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004677 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004678 },
4679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004680 {
4681 .vendor = "Macronix",
4682 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004683 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004684 .manufacture_id = MACRONIX_ID,
4685 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004686 .total_size = 128,
4687 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004688 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004689 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004690 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004691 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004692 .block_erasers =
4693 {
4694 {
4695 .eraseblocks = { {4 * 1024, 32} },
4696 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004697 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004698 .eraseblocks = { {64 * 1024, 2} },
4699 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004700 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004701 .eraseblocks = { {128 * 1024, 1} },
4702 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004703 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004704 .eraseblocks = { {128 * 1024, 1} },
4705 .block_erase = spi_block_erase_c7,
4706 },
4707 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004708 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004709 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004711 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004712 },
4713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004714 {
4715 .vendor = "Macronix",
4716 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004717 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004718 .manufacture_id = MACRONIX_ID,
4719 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004720 .total_size = 256,
4721 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004722 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004723 .tested = TEST_UNTESTED,
4724 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004725 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004726 .block_erasers =
4727 {
4728 {
4729 .eraseblocks = { {4 * 1024, 64} },
4730 .block_erase = spi_block_erase_20,
4731 }, {
4732 .eraseblocks = { {64 * 1024, 4} },
4733 .block_erase = spi_block_erase_52,
4734 }, {
4735 .eraseblocks = { {64 * 1024, 4} },
4736 .block_erase = spi_block_erase_d8,
4737 }, {
4738 .eraseblocks = { {256 * 1024, 1} },
4739 .block_erase = spi_block_erase_60,
4740 }, {
4741 .eraseblocks = { {256 * 1024, 1} },
4742 .block_erase = spi_block_erase_c7,
4743 },
4744 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004745 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004746 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004747 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004748 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004749 },
4750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004751 {
4752 .vendor = "Macronix",
4753 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004754 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004755 .manufacture_id = MACRONIX_ID,
4756 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004757 .total_size = 512,
4758 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004759 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004760 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004762 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004763 .block_erasers =
4764 {
4765 {
4766 .eraseblocks = { {4 * 1024, 128} },
4767 .block_erase = spi_block_erase_20,
4768 }, {
4769 .eraseblocks = { {64 * 1024, 8} },
4770 .block_erase = spi_block_erase_52,
4771 }, {
4772 .eraseblocks = { {64 * 1024, 8} },
4773 .block_erase = spi_block_erase_d8,
4774 }, {
4775 .eraseblocks = { {512 * 1024, 1} },
4776 .block_erase = spi_block_erase_60,
4777 }, {
4778 .eraseblocks = { {512 * 1024, 1} },
4779 .block_erase = spi_block_erase_c7,
4780 },
4781 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004782 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004783 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004785 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004786 },
4787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004788 {
4789 .vendor = "Macronix",
4790 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004791 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004792 .manufacture_id = MACRONIX_ID,
4793 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004794 .total_size = 1024,
4795 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004796 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004797 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004798 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004799 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004800 .block_erasers =
4801 {
4802 {
4803 .eraseblocks = { {4 * 1024, 256} },
4804 .block_erase = spi_block_erase_20,
4805 }, {
4806 .eraseblocks = { {64 * 1024, 16} },
4807 .block_erase = spi_block_erase_52,
4808 }, {
4809 .eraseblocks = { {64 * 1024, 16} },
4810 .block_erase = spi_block_erase_d8,
4811 }, {
4812 .eraseblocks = { {1024 * 1024, 1} },
4813 .block_erase = spi_block_erase_60,
4814 }, {
4815 .eraseblocks = { {1024 * 1024, 1} },
4816 .block_erase = spi_block_erase_c7,
4817 },
4818 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004820 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004822 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004823 },
4824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004825 {
4826 .vendor = "Macronix",
4827 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004828 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004829 .manufacture_id = MACRONIX_ID,
4830 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004831 .total_size = 2048,
4832 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004833 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004834 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004835 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004836 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004837 .block_erasers =
4838 {
4839 {
4840 .eraseblocks = { {4 * 1024, 512} },
4841 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4842 }, {
4843 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4844 .block_erase = spi_block_erase_52,
4845 }, {
4846 .eraseblocks = { {64 * 1024, 32} },
4847 .block_erase = spi_block_erase_d8,
4848 }, {
4849 .eraseblocks = { {2 * 1024 * 1024, 1} },
4850 .block_erase = spi_block_erase_60,
4851 }, {
4852 .eraseblocks = { {2 * 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 Guilloux5c5b5252009-01-08 03:40:17 +00004858 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004859 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004860 },
4861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004862 {
4863 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004864 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004865 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004866 .manufacture_id = MACRONIX_ID,
4867 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004868 .total_size = 2048,
4869 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004870 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004871 .tested = TEST_UNTESTED,
4872 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004873 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004874 .block_erasers =
4875 {
4876 {
4877 .eraseblocks = { {4 * 1024, 512} },
4878 .block_erase = spi_block_erase_20,
4879 }, {
4880 .eraseblocks = { {64 * 1024, 32} },
4881 .block_erase = spi_block_erase_d8,
4882 }, {
4883 .eraseblocks = { {2 * 1024 * 1024, 1} },
4884 .block_erase = spi_block_erase_60,
4885 }, {
4886 .eraseblocks = { {2 * 1024 * 1024, 1} },
4887 .block_erase = spi_block_erase_c7,
4888 }
4889 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004890 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004891 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004893 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004894 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004895
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004896 {
4897 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004898 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004899 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004900 .manufacture_id = MACRONIX_ID,
4901 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004902 .total_size = 2048,
4903 .page_size = 256,
4904 .feature_bits = FEATURE_WRSR_WREN,
4905 .tested = TEST_UNTESTED,
4906 .probe = probe_spi_rdid,
4907 .probe_timing = TIMING_ZERO,
4908 .block_erasers =
4909 {
4910 {
4911 .eraseblocks = { {4 * 1024, 512} },
4912 .block_erase = spi_block_erase_20,
4913 }, {
4914 .eraseblocks = { {64 * 1024, 32} },
4915 .block_erase = spi_block_erase_d8,
4916 }, {
4917 .eraseblocks = { {2 * 1024 * 1024, 1} },
4918 .block_erase = spi_block_erase_60,
4919 }, {
4920 .eraseblocks = { {2 * 1024 * 1024, 1} },
4921 .block_erase = spi_block_erase_c7,
4922 }
4923 },
4924 .unlock = spi_disable_blockprotect,
4925 .write = spi_chip_write_256,
4926 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004927 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004928 },
4929
4930 {
4931 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004932 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004933 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004934 .manufacture_id = MACRONIX_ID,
4935 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004936 .total_size = 4096,
4937 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004938 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004939 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004940 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004941 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004942 .block_erasers =
4943 {
4944 {
4945 .eraseblocks = { {4 * 1024, 1024} },
4946 .block_erase = spi_block_erase_20,
4947 }, {
4948 .eraseblocks = { {4 * 1024, 1024} },
4949 .block_erase = spi_block_erase_d8,
4950 }, {
4951 .eraseblocks = { {4 * 1024 * 1024, 1} },
4952 .block_erase = spi_block_erase_60,
4953 }, {
4954 .eraseblocks = { {4 * 1024 * 1024, 1} },
4955 .block_erase = spi_block_erase_c7,
4956 },
4957 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004958 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004959 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004960 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004961 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004962 },
4963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004964 {
4965 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004966 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004967 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004968 .manufacture_id = MACRONIX_ID,
4969 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004970 .total_size = 4096,
4971 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004972 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004973 .tested = TEST_UNTESTED,
4974 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004975 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004976 .block_erasers =
4977 {
4978 {
4979 .eraseblocks = { {4 * 1024, 1024} },
4980 .block_erase = spi_block_erase_20,
4981 }, {
4982 .eraseblocks = { {64 * 1024, 64} },
4983 .block_erase = spi_block_erase_d8,
4984 }, {
4985 .eraseblocks = { {4 * 1024 * 1024, 1} },
4986 .block_erase = spi_block_erase_60,
4987 }, {
4988 .eraseblocks = { {4 * 1024 * 1024, 1} },
4989 .block_erase = spi_block_erase_c7,
4990 }
4991 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004992 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004993 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004995 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004996 },
4997
4998 {
4999 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005000 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005001 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005002 .manufacture_id = MACRONIX_ID,
5003 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005004 .total_size = 8192,
5005 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005006 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005007 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005008 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005009 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005010 .block_erasers =
5011 {
5012 {
5013 .eraseblocks = { {64 * 1024, 128} },
5014 .block_erase = spi_block_erase_20,
5015 }, {
5016 .eraseblocks = { {64 * 1024, 128} },
5017 .block_erase = spi_block_erase_d8,
5018 }, {
5019 .eraseblocks = { {8 * 1024 * 1024, 1} },
5020 .block_erase = spi_block_erase_60,
5021 }, {
5022 .eraseblocks = { {8 * 1024 * 1024, 1} },
5023 .block_erase = spi_block_erase_c7,
5024 }
5025 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005026 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005027 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005028 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005029 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005030 },
5031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005032 {
5033 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005034 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005035 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005036 .manufacture_id = MACRONIX_ID,
5037 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005038 .total_size = 16384,
5039 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005040 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunereb582572012-09-21 12:52:50 +00005041 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005042 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005043 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005044 .block_erasers =
5045 {
5046 {
5047 .eraseblocks = { {4 * 1024, 4096} },
5048 .block_erase = spi_block_erase_20,
5049 }, {
5050 .eraseblocks = { {64 * 1024, 256} },
5051 .block_erase = spi_block_erase_d8,
5052 }, {
5053 .eraseblocks = { {16 * 1024 * 1024, 1} },
5054 .block_erase = spi_block_erase_60,
5055 }, {
5056 .eraseblocks = { {16 * 1024 * 1024, 1} },
5057 .block_erase = spi_block_erase_c7,
5058 }
5059 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005060 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005061 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005062 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005063 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005064 },
5065
5066 {
5067 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005068 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005069 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005070 .manufacture_id = MACRONIX_ID,
5071 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005072 .total_size = 128,
5073 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005074 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5075 .tested = TEST_UNTESTED,
5076 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005077 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005078 .block_erasers =
5079 {
5080 {
5081 .eraseblocks = {
5082 {8 * 1024, 1},
5083 {4 * 1024, 2},
5084 {8 * 1024, 2},
5085 {32 * 1024, 1},
5086 {64 * 1024, 1},
5087 },
Sean Nelson35727f72010-01-28 23:55:12 +00005088 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005089 }, {
5090 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005091 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005092 }
5093 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005094 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005096 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005097 },
5098
5099 {
5100 .vendor = "Macronix",
5101 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005102 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005103 .manufacture_id = MACRONIX_ID,
5104 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005105 .total_size = 128,
5106 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005107 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005108 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005109 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005110 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = {
5115 {64 * 1024, 1},
5116 {32 * 1024, 1},
5117 {8 * 1024, 2},
5118 {4 * 1024, 2},
5119 {8 * 1024, 1},
5120 },
Sean Nelson35727f72010-01-28 23:55:12 +00005121 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005122 }, {
5123 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005124 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005125 }
5126 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005127 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005128 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005129 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005130 },
5131
5132 {
5133 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005134 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005135 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005136 .manufacture_id = MACRONIX_ID,
5137 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 .total_size = 256,
5139 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005140 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005141 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005142 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005143 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005144 .block_erasers =
5145 {
5146 {
5147 .eraseblocks = {
5148 {16 * 1024, 1},
5149 {8 * 1024, 2},
5150 {32 * 1024, 1},
5151 {64 * 1024, 3},
5152 },
Sean Nelson35727f72010-01-28 23:55:12 +00005153 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005154 }, {
5155 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005156 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005157 },
5158 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005159 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005161 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005162 },
5163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005164 {
5165 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005166 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005167 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005168 .manufacture_id = MACRONIX_ID,
5169 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005170 .total_size = 256,
5171 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005172 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005173 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005174 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005175 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005176 .block_erasers =
5177 {
5178 {
5179 .eraseblocks = {
5180 {64 * 1024, 3},
5181 {32 * 1024, 1},
5182 {8 * 1024, 2},
5183 {16 * 1024, 1},
5184 },
Sean Nelson35727f72010-01-28 23:55:12 +00005185 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005186 }, {
5187 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005188 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005189 },
5190 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005191 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005192 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005193 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005194 },
5195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005196 {
5197 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005198 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005199 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005200 .manufacture_id = MACRONIX_ID,
5201 .model_id = MACRONIX_MX29F040,
5202 .total_size = 512,
5203 .page_size = 64 * 1024,
5204 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5205 .tested = TEST_UNTESTED,
5206 .probe = probe_jedec,
5207 .probe_timing = TIMING_ZERO,
5208 .block_erasers =
5209 {
5210 {
5211 .eraseblocks = { {64 * 1024, 8} },
5212 .block_erase = erase_sector_jedec,
5213 }, {
5214 .eraseblocks = { {512 * 1024, 1} },
5215 .block_erase = erase_chip_block_jedec,
5216 },
5217 },
5218 .write = write_jedec_1,
5219 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005220 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005221 },
5222
5223 {
5224 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005225 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005226 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005227 .manufacture_id = MACRONIX_ID,
5228 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005229 .total_size = 512,
5230 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005231 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5232 .tested = TEST_UNTESTED,
5233 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005234 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005235 .block_erasers =
5236 {
5237 {
5238 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005239 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005240 }, {
5241 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005242 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005243 },
5244 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005245 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005246 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005247 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005248 },
5249
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005250 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005251 .vendor = "MoselVitelic",
5252 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005253 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005254 .manufacture_id = SYNCMOS_MVC_ID,
5255 .model_id = MVC_V29C51000B,
5256 .total_size = 64,
5257 .page_size = 512,
5258 .feature_bits = FEATURE_EITHER_RESET,
5259 .tested = TEST_UNTESTED,
5260 .probe = probe_jedec,
5261 .probe_timing = TIMING_ZERO,
5262 .block_erasers =
5263 {
5264 {
5265 .eraseblocks = { {512, 128} },
5266 .block_erase = erase_sector_jedec,
5267 }, {
5268 .eraseblocks = { {64 * 1024, 1} },
5269 .block_erase = erase_chip_block_jedec,
5270 },
5271 },
5272 .write = write_jedec_1,
5273 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005274 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005275 },
5276
5277 {
5278 .vendor = "MoselVitelic",
5279 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005280 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005281 .manufacture_id = SYNCMOS_MVC_ID,
5282 .model_id = MVC_V29C51000T,
5283 .total_size = 64,
5284 .page_size = 512,
5285 .feature_bits = FEATURE_EITHER_RESET,
5286 .tested = TEST_UNTESTED,
5287 .probe = probe_jedec,
5288 .probe_timing = TIMING_ZERO,
5289 .block_erasers =
5290 {
5291 {
5292 .eraseblocks = { {512, 128} },
5293 .block_erase = erase_sector_jedec,
5294 }, {
5295 .eraseblocks = { {64 * 1024, 1} },
5296 .block_erase = erase_chip_block_jedec,
5297 },
5298 },
5299 .write = write_jedec_1,
5300 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005301 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005302 },
5303
5304 {
5305 .vendor = "MoselVitelic",
5306 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005307 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005308 .manufacture_id = SYNCMOS_MVC_ID,
5309 .model_id = MVC_V29C51400B,
5310 .total_size = 512,
5311 .page_size = 1024,
5312 .feature_bits = FEATURE_EITHER_RESET,
5313 .tested = TEST_UNTESTED,
5314 .probe = probe_jedec,
5315 .probe_timing = TIMING_ZERO,
5316 .block_erasers =
5317 {
5318 {
5319 .eraseblocks = { {1024, 512} },
5320 .block_erase = erase_sector_jedec,
5321 }, {
5322 .eraseblocks = { {512 * 1024, 1} },
5323 .block_erase = erase_chip_block_jedec,
5324 },
5325 },
5326 .write = write_jedec_1,
5327 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005328 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005329 },
5330
5331 {
5332 .vendor = "MoselVitelic",
5333 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005334 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005335 .manufacture_id = SYNCMOS_MVC_ID,
5336 .model_id = MVC_V29C51400T,
5337 .total_size = 512,
5338 .page_size = 1024,
5339 .feature_bits = FEATURE_EITHER_RESET,
5340 .tested = TEST_UNTESTED,
5341 .probe = probe_jedec,
5342 .probe_timing = TIMING_ZERO,
5343 .block_erasers =
5344 {
5345 {
5346 .eraseblocks = { {1024, 512} },
5347 .block_erase = erase_sector_jedec,
5348 }, {
5349 .eraseblocks = { {512 * 1024, 1} },
5350 .block_erase = erase_chip_block_jedec,
5351 },
5352 },
5353 .write = write_jedec_1,
5354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005355 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005356 },
5357
5358 {
5359 .vendor = "MoselVitelic",
5360 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005361 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005362 .manufacture_id = SYNCMOS_MVC_ID,
5363 .model_id = MVC_V29LC51000,
5364 .total_size = 64,
5365 .page_size = 512,
5366 .feature_bits = FEATURE_EITHER_RESET,
5367 .tested = TEST_UNTESTED,
5368 .probe = probe_jedec,
5369 .probe_timing = TIMING_ZERO,
5370 .block_erasers =
5371 {
5372 {
5373 .eraseblocks = { {512, 128} },
5374 .block_erase = erase_sector_jedec,
5375 }, {
5376 .eraseblocks = { {64 * 1024, 1} },
5377 .block_erase = erase_chip_block_jedec,
5378 },
5379 },
5380 .write = write_jedec_1,
5381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005382 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005383 },
5384
5385 {
5386 .vendor = "MoselVitelic",
5387 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005388 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005389 .manufacture_id = SYNCMOS_MVC_ID,
5390 .model_id = MVC_V29LC51001,
5391 .total_size = 128,
5392 .page_size = 512,
5393 .feature_bits = FEATURE_EITHER_RESET,
5394 .tested = TEST_UNTESTED,
5395 .probe = probe_jedec,
5396 .probe_timing = TIMING_ZERO,
5397 .block_erasers =
5398 {
5399 {
5400 .eraseblocks = { {512, 256} },
5401 .block_erase = erase_sector_jedec,
5402 }, {
5403 .eraseblocks = { {128 * 1024, 1} },
5404 .block_erase = erase_chip_block_jedec,
5405 },
5406 },
5407 .write = write_jedec_1,
5408 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005409 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005410 },
5411
5412 {
5413 .vendor = "MoselVitelic",
5414 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005415 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005416 .manufacture_id = SYNCMOS_MVC_ID,
5417 .model_id = MVC_V29LC51002,
5418 .total_size = 256,
5419 .page_size = 512,
5420 .feature_bits = FEATURE_EITHER_RESET,
5421 .tested = TEST_UNTESTED,
5422 .probe = probe_jedec,
5423 .probe_timing = TIMING_ZERO,
5424 .block_erasers =
5425 {
5426 {
5427 .eraseblocks = { {512, 512} },
5428 .block_erase = erase_sector_jedec,
5429 }, {
5430 .eraseblocks = { {256 * 1024, 1} },
5431 .block_erase = erase_chip_block_jedec,
5432 },
5433 },
5434 .write = write_jedec_1,
5435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005436 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005437 },
5438
5439 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005440 .vendor = "Numonyx",
5441 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005442 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005443 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005444 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005445 .total_size = 128,
5446 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005447 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005448 .tested = TEST_UNTESTED,
5449 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005450 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005451 .block_erasers =
5452 {
5453 {
5454 .eraseblocks = { {4 * 1024, 32} },
5455 .block_erase = spi_block_erase_20,
5456 }, {
5457 .eraseblocks = { {64 * 1024, 2} },
5458 .block_erase = spi_block_erase_d8,
5459 }, {
5460 .eraseblocks = { {128 * 1024, 1} },
5461 .block_erase = spi_block_erase_c7,
5462 }
5463 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005464 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005465 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005466 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005467 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005468 },
5469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005470 {
5471 .vendor = "Numonyx",
5472 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005473 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005474 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005475 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005476 .total_size = 256,
5477 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005478 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005479 .tested = TEST_UNTESTED,
5480 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005481 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005482 .block_erasers =
5483 {
5484 {
5485 .eraseblocks = { {4 * 1024, 64} },
5486 .block_erase = spi_block_erase_20,
5487 }, {
5488 .eraseblocks = { {64 * 1024, 4} },
5489 .block_erase = spi_block_erase_d8,
5490 }, {
5491 .eraseblocks = { {256 * 1024, 1} },
5492 .block_erase = spi_block_erase_c7,
5493 }
5494 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005495 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005496 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005498 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005499 },
5500
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 {
5502 .vendor = "Numonyx",
5503 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005504 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005505 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005506 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005507 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005508 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005509 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005510 .tested = TEST_UNTESTED,
5511 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005512 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005513 .block_erasers =
5514 {
5515 {
5516 .eraseblocks = { {4 * 1024, 128} },
5517 .block_erase = spi_block_erase_20,
5518 }, {
5519 .eraseblocks = { {64 * 1024, 8} },
5520 .block_erase = spi_block_erase_d8,
5521 }, {
5522 .eraseblocks = { {512 * 1024, 1} },
5523 .block_erase = spi_block_erase_c7,
5524 }
5525 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005526 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005527 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005528 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005529 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005530 },
5531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005532 {
5533 .vendor = "Numonyx",
5534 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005535 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005536 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005537 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005538 .total_size = 1024,
5539 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005540 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005541 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005543 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005544 .block_erasers =
5545 {
5546 {
5547 .eraseblocks = { {4 * 1024, 256} },
5548 .block_erase = spi_block_erase_20,
5549 }, {
5550 .eraseblocks = { {64 * 1024, 16} },
5551 .block_erase = spi_block_erase_d8,
5552 }, {
5553 .eraseblocks = { {1024 * 1024, 1} },
5554 .block_erase = spi_block_erase_c7,
5555 }
5556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005557 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005558 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005560 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005561 },
5562
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005563 {
5564 .vendor = "Numonyx",
5565 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005567 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005568 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005569 .total_size = 2048,
5570 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005571 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005572 .tested = TEST_UNTESTED,
5573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005574 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005575 .block_erasers =
5576 {
5577 {
5578 .eraseblocks = { {4 * 1024, 512} },
5579 .block_erase = spi_block_erase_20,
5580 }, {
5581 .eraseblocks = { {64 * 1024, 32} },
5582 .block_erase = spi_block_erase_d8,
5583 }, {
5584 .eraseblocks = { {2 * 1024 * 1024, 1} },
5585 .block_erase = spi_block_erase_c7,
5586 }
5587 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005588 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005589 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005590 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005591 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005592 },
5593
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005594 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005595 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00005596 .name = "N25Q016",
5597 .bustype = BUS_SPI,
5598 .manufacture_id = ST_ID,
5599 .model_id = ST_N25Q016__1E,
5600 .total_size = 2048,
5601 .page_size = 256,
5602 /* supports SFDP */
5603 /* OTP: 64B total; read 0x4B, write 0x42 */
5604 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5605 .tested = TEST_UNTESTED,
5606 .probe = probe_spi_rdid,
5607 .probe_timing = TIMING_ZERO,
5608 .block_erasers =
5609 {
5610 {
5611 .eraseblocks = { {4 * 1024, 512} },
5612 .block_erase = spi_block_erase_20,
5613 }, {
5614 .eraseblocks = { {32 * 1024, 64} },
5615 .block_erase = spi_block_erase_52,
5616 }, {
5617 .eraseblocks = { {64 * 1024, 32} },
5618 .block_erase = spi_block_erase_d8,
5619 }, {
5620 .eraseblocks = { {2 * 1024 * 1024, 1} },
5621 .block_erase = spi_block_erase_c7,
5622 }
5623 },
5624 .unlock = spi_disable_blockprotect,
5625 .write = spi_chip_write_256,
5626 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5627 .voltage = {1700, 2000},
5628 },
5629
5630 {
5631 .vendor = "Numonyx",
5632 .name = "N25Q032..1E",
5633 .bustype = BUS_SPI,
5634 .manufacture_id = ST_ID,
5635 .model_id = ST_N25Q032__1E,
5636 .total_size = 4096,
5637 .page_size = 256,
5638 /* supports SFDP */
5639 /* OTP: 64B total; read 0x4B, write 0x42 */
5640 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5641 .tested = TEST_UNTESTED,
5642 .probe = probe_spi_rdid,
5643 .probe_timing = TIMING_ZERO,
5644 .block_erasers =
5645 {
5646 {
5647 .eraseblocks = { {4 * 1024, 1024} },
5648 .block_erase = spi_block_erase_20,
5649 }, {
5650 .eraseblocks = { {64 * 1024, 64} },
5651 .block_erase = spi_block_erase_d8,
5652 }, {
5653 .eraseblocks = { {4 * 1024 * 1024, 1} },
5654 .block_erase = spi_block_erase_c7,
5655 }
5656 },
5657 .unlock = spi_disable_blockprotect,
5658 .write = spi_chip_write_256,
5659 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5660 .voltage = {1700, 2000},
5661 },
5662
5663 {
5664 .vendor = "Numonyx",
5665 .name = "N25Q032..3E",
5666 .bustype = BUS_SPI,
5667 .manufacture_id = ST_ID,
5668 .model_id = ST_N25Q032__3E,
5669 .total_size = 4096,
5670 .page_size = 256,
5671 /* supports SFDP */
5672 /* OTP: 64B total; read 0x4B, write 0x42 */
5673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5674 .tested = TEST_UNTESTED,
5675 .probe = probe_spi_rdid,
5676 .probe_timing = TIMING_ZERO,
5677 .block_erasers =
5678 {
5679 {
5680 .eraseblocks = { {4 * 1024, 1024} },
5681 .block_erase = spi_block_erase_20,
5682 }, {
5683 .eraseblocks = { {64 * 1024, 64} },
5684 .block_erase = spi_block_erase_d8,
5685 }, {
5686 .eraseblocks = { {4 * 1024 * 1024, 1} },
5687 .block_erase = spi_block_erase_c7,
5688 }
5689 },
5690 .unlock = spi_disable_blockprotect,
5691 .write = spi_chip_write_256,
5692 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5693 .voltage = {2700, 3600},
5694 },
5695
5696 {
5697 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00005698 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005699 .bustype = BUS_SPI,
5700 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00005701 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005702 .total_size = 8192,
5703 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00005704 /* supports SFDP */
5705 /* OTP: 64B total; read 0x4B, write 0x42 */
5706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5707 .tested = TEST_UNTESTED,
5708 .probe = probe_spi_rdid,
5709 .probe_timing = TIMING_ZERO,
5710 .block_erasers =
5711 {
5712 {
5713 .eraseblocks = { {4 * 1024, 2048 } },
5714 .block_erase = spi_block_erase_20,
5715 }, {
5716 .eraseblocks = { {64 * 1024, 128} },
5717 .block_erase = spi_block_erase_d8,
5718 }, {
5719 .eraseblocks = { {8 * 1024 * 1024, 1} },
5720 .block_erase = spi_block_erase_c7,
5721 }
5722 },
5723 .unlock = spi_disable_blockprotect,
5724 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00005725 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00005726 .voltage = {1700, 2000},
5727 },
5728
5729 {
5730 .vendor = "Numonyx",
5731 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
5732 .bustype = BUS_SPI,
5733 .manufacture_id = ST_ID,
5734 .model_id = ST_N25Q064__3E,
5735 .total_size = 8192,
5736 .page_size = 256,
5737 /* supports SFDP */
5738 /* OTP: 64B total; read 0x4B, write 0x42 */
5739 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005740 .tested = TEST_OK_PREW,
5741 .probe = probe_spi_rdid,
5742 .probe_timing = TIMING_ZERO,
5743 .block_erasers =
5744 {
5745 {
5746 .eraseblocks = { {4 * 1024, 2048 } },
5747 .block_erase = spi_block_erase_20,
5748 }, {
5749 .eraseblocks = { {64 * 1024, 128} },
5750 .block_erase = spi_block_erase_d8,
5751 }, {
5752 .eraseblocks = { {8 * 1024 * 1024, 1} },
5753 .block_erase = spi_block_erase_c7,
5754 }
5755 },
5756 .unlock = spi_disable_blockprotect,
5757 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00005758 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00005759 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005760 },
5761
5762 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005763 .vendor = "PMC",
5764 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005766 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005767 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005768 .total_size = 128,
5769 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005770 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005771 .tested = TEST_UNTESTED,
5772 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005773 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005774 .block_erasers =
5775 {
5776 {
5777 .eraseblocks = { {4 * 1024, 32} },
5778 .block_erase = spi_block_erase_d7,
5779 }, {
5780 .eraseblocks = { {32 * 1024, 4} },
5781 .block_erase = spi_block_erase_d8,
5782 }, {
5783 .eraseblocks = { {128 * 1024, 1} },
5784 .block_erase = spi_block_erase_c7,
5785 }
5786 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005787 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005791 },
5792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005793 {
5794 .vendor = "PMC",
5795 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005797 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005798 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005799 .total_size = 2048,
5800 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005801 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005802 .tested = TEST_UNTESTED,
5803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005804 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005805 .block_erasers =
5806 {
5807 {
5808 .eraseblocks = { {4 * 1024, 512} },
5809 .block_erase = spi_block_erase_d7,
5810 }, {
5811 .eraseblocks = { {4 * 1024, 512} },
5812 .block_erase = spi_block_erase_20,
5813 }, {
5814 .eraseblocks = { {64 * 1024, 32} },
5815 .block_erase = spi_block_erase_d8,
5816 }, {
5817 .eraseblocks = { {2 * 1024 * 1024, 1} },
5818 .block_erase = spi_block_erase_60,
5819 }, {
5820 .eraseblocks = { {2 * 1024 * 1024, 1} },
5821 .block_erase = spi_block_erase_c7,
5822 }
5823 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005824 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005825 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005826 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005827 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005828 },
5829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005830 {
5831 .vendor = "PMC",
5832 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005833 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005834 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005835 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005836 .total_size = 256,
5837 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005838 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005839 .tested = TEST_UNTESTED,
5840 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005841 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005842 .block_erasers =
5843 {
5844 {
5845 .eraseblocks = { {4 * 1024, 64} },
5846 .block_erase = spi_block_erase_d7,
5847 }, {
5848 .eraseblocks = { {64 * 1024, 4} },
5849 .block_erase = spi_block_erase_d8,
5850 }, {
5851 .eraseblocks = { {256 * 1024, 1} },
5852 .block_erase = spi_block_erase_c7,
5853 }
5854 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005855 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005856 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005857 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005858 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005859 },
5860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005861 {
5862 .vendor = "PMC",
5863 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005864 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005865 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005866 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005867 .total_size = 512,
5868 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005869 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00005870 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005871 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005872 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005873 .block_erasers =
5874 {
5875 {
5876 .eraseblocks = { {4 * 1024, 128} },
5877 .block_erase = spi_block_erase_d7,
5878 }, {
5879 .eraseblocks = { {64 * 1024, 8} },
5880 .block_erase = spi_block_erase_d8,
5881 }, {
5882 .eraseblocks = { {512 * 1024, 1} },
5883 .block_erase = spi_block_erase_c7,
5884 }
5885 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005886 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005887 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005888 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005889 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005890 },
5891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005892 {
5893 .vendor = "PMC",
5894 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005895 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005896 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005897 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005898 .total_size = 1024,
5899 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005900 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005901 .tested = TEST_UNTESTED,
5902 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005903 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005904 .block_erasers =
5905 {
5906 {
5907 .eraseblocks = { {4 * 1024, 256} },
5908 .block_erase = spi_block_erase_d7,
5909 }, {
5910 .eraseblocks = { {4 * 1024, 256} },
5911 .block_erase = spi_block_erase_20,
5912 }, {
5913 .eraseblocks = { {64 * 1024, 16} },
5914 .block_erase = spi_block_erase_d8,
5915 }, {
5916 .eraseblocks = { {1024 * 1024, 1} },
5917 .block_erase = spi_block_erase_60,
5918 }, {
5919 .eraseblocks = { {1024 * 1024, 1} },
5920 .block_erase = spi_block_erase_c7,
5921 }
5922 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005923 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005924 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005925 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005926 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005927 },
5928
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005929 {
5930 .vendor = "PMC",
5931 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005932 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005933 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005934 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005935 .total_size = 64,
5936 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005937 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005938 .tested = TEST_UNTESTED,
5939 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005940 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005941 .block_erasers =
5942 {
5943 {
5944 .eraseblocks = { {4 * 1024, 16} },
5945 .block_erase = spi_block_erase_d7,
5946 }, {
5947 .eraseblocks = { {32 * 1024, 2} },
5948 .block_erase = spi_block_erase_d8,
5949 }, {
5950 .eraseblocks = { {64 * 1024, 1} },
5951 .block_erase = spi_block_erase_c7,
5952 }
5953 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005954 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005955 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005956 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005957 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005958 },
5959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005960 {
5961 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005962 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005963 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005964 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005965 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005966 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005967 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005968 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005969 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005970 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005971 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005972 .block_erasers =
5973 {
5974 {
5975 .eraseblocks = {
5976 {128 * 1024, 1},
5977 {96 * 1024, 1},
5978 {8 * 1024, 2},
5979 {16 * 1024, 1},
5980 },
Sean Nelson35727f72010-01-28 23:55:12 +00005981 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005982 }, {
5983 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005984 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005985 },
5986 },
Sean Nelson35727f72010-01-28 23:55:12 +00005987 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005989 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005990 },
5991
5992 {
5993 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005994 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005995 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005996 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005997 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005998 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005999 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006000 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006001 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006002 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006003 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006004 .block_erasers =
6005 {
6006 {
6007 .eraseblocks = {
6008 {16 * 1024, 1},
6009 {8 * 1024, 2},
6010 {96 * 1024, 1},
6011 {128 * 1024, 1},
6012 },
Sean Nelson35727f72010-01-28 23:55:12 +00006013 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006014 }, {
6015 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006016 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006017 },
6018 },
Sean Nelson35727f72010-01-28 23:55:12 +00006019 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006020 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006021 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006022 },
6023
6024 {
6025 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006026 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006027 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006028 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006029 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006030 .total_size = 128,
6031 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006032 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006033 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006034 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006035 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00006036 .block_erasers =
6037 {
6038 {
6039 .eraseblocks = { {4 * 1024, 32} },
6040 .block_erase = erase_sector_jedec,
6041 }, {
6042 .eraseblocks = { {64 * 1024, 2} },
6043 .block_erase = erase_block_jedec,
6044 }, {
6045 .eraseblocks = { {128 * 1024, 1} },
6046 .block_erase = erase_chip_block_jedec,
6047 }
6048 },
Sean Nelson35727f72010-01-28 23:55:12 +00006049 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006050 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006051 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006052 },
6053
6054 {
6055 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006056 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006057 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006058 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006059 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006060 .total_size = 256,
6061 .page_size = 4096,
6062 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6063 .tested = TEST_UNTESTED,
6064 .probe = probe_jedec,
6065 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6066 .block_erasers =
6067 {
6068 {
6069 .eraseblocks = { {4 * 1024, 64} },
6070 .block_erase = erase_sector_jedec,
6071 }, {
6072 .eraseblocks = { {64 * 1024, 4} },
6073 .block_erase = erase_block_jedec,
6074 }, {
6075 .eraseblocks = { {256 * 1024, 1} },
6076 .block_erase = erase_chip_block_jedec,
6077 }
6078 },
6079 .write = write_jedec_1,
6080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006081 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006082 },
6083
6084 {
6085 .vendor = "PMC",
6086 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006087 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006088 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006089 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006090 .total_size = 512,
6091 .page_size = 4096,
6092 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006093 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006094 .probe = probe_jedec,
6095 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6096 .block_erasers =
6097 {
6098 {
6099 .eraseblocks = { {4 * 1024, 128} },
6100 .block_erase = erase_sector_jedec,
6101 }, {
6102 .eraseblocks = { {64 * 1024, 8} },
6103 .block_erase = erase_block_jedec,
6104 }, {
6105 .eraseblocks = { {512 * 1024, 1} },
6106 .block_erase = erase_chip_block_jedec,
6107 }
6108 },
6109 .write = write_jedec_1,
6110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006111 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006112 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00006113
6114 {
6115 .vendor = "PMC",
6116 .name = "Pm39LV512",
6117 .bustype = BUS_PARALLEL,
6118 .manufacture_id = PMC_ID_NOPREFIX,
6119 .model_id = PMC_PM39LV512,
6120 .total_size = 64,
6121 .page_size = 4096,
6122 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6123 .tested = TEST_OK_PREW,
6124 .probe = probe_jedec,
6125 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6126 .block_erasers =
6127 {
6128 {
6129 .eraseblocks = { {4 * 1024, 16} },
6130 .block_erase = erase_sector_jedec,
6131 }, {
6132 .eraseblocks = { {64 * 1024, 1} },
6133 .block_erase = erase_block_jedec,
6134 }, {
6135 .eraseblocks = { {64 * 1024, 1} },
6136 .block_erase = erase_chip_block_jedec,
6137 }
6138 },
6139 .write = write_jedec_1,
6140 .read = read_memmapped,
6141 .voltage = {2700, 3600},
6142 },
6143
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006144 {
6145 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006146 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006147 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006148 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006149 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 .total_size = 256,
6151 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006152 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00006153 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006154 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006155 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006156 .block_erasers =
6157 {
6158 {
6159 .eraseblocks = { {4 * 1024, 64} },
6160 .block_erase = erase_sector_jedec,
6161 }, {
6162 .eraseblocks = { {16 * 1024, 16} },
6163 .block_erase = erase_block_jedec,
6164 }, {
6165 .eraseblocks = { {256 * 1024, 1} },
6166 .block_erase = erase_chip_block_jedec,
6167 }
6168 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006169 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006170 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006172 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006173 },
6174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006175 {
6176 .vendor = "PMC",
6177 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006178 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006179 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006180 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006181 .total_size = 512,
6182 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006183 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006184 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006185 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006186 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006187 .block_erasers =
6188 {
6189 {
6190 .eraseblocks = { {4 * 1024, 128} },
6191 .block_erase = erase_sector_jedec,
6192 }, {
6193 .eraseblocks = { {64 * 1024, 8} },
6194 .block_erase = erase_block_jedec,
6195 }, {
6196 .eraseblocks = { {512 * 1024, 1} },
6197 .block_erase = erase_chip_block_jedec,
6198 }
6199 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006200 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006201 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006203 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006204 },
6205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006206 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00006207 .vendor = "Sanyo",
6208 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006209 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006210 .manufacture_id = SANYO_ID,
6211 .model_id = SANYO_LE25FW203A,
6212 .total_size = 2048,
6213 .page_size = 256,
6214 .tested = TEST_UNTESTED,
6215 .probe = probe_spi_rdid,
6216 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006217 .block_erasers =
6218 {
6219 {
6220 .eraseblocks = { {64 * 1024, 32} },
6221 .block_erase = spi_block_erase_d8,
6222 }, {
6223 .eraseblocks = { {2 * 1024 * 1024, 1} },
6224 .block_erase = spi_block_erase_c7,
6225 }
6226 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006227 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006228 .write = spi_chip_write_256,
6229 .read = spi_chip_read,
6230 },
6231
6232 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006233 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00006234 .name = "LH28F008BJT-BTLZ1",
6235 .bustype = BUS_PARALLEL,
6236 .manufacture_id = SHARP_ID,
6237 .model_id = SHARP_LH28F008BJxxPB,
6238 .total_size = 1024,
6239 .page_size = 64 * 1024,
6240 .tested = TEST_OK_PREW,
6241 .probe = probe_82802ab,
6242 .probe_timing = TIMING_ZERO,
6243 .block_erasers =
6244 {
6245 {
6246 .eraseblocks = {
6247 {8 * 1024, 8},
6248 {64 * 1024, 15}
6249 },
6250 .block_erase = erase_block_82802ab,
6251 }, {
6252 .eraseblocks = { {1024 * 1024, 1} },
6253 .block_erase = erase_sector_49lfxxxc,
6254 }
6255 },
6256 .unlock = unlock_lh28f008bjt,
6257 .write = write_82802ab,
6258 .read = read_memmapped,
6259 .voltage = {2700, 3600},
6260 },
6261
6262 {
6263 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006264 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006265 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006266 .manufacture_id = SHARP_ID,
6267 .model_id = SHARP_LHF00L04,
6268 .total_size = 1024,
6269 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006270 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006271 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006272 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006273 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006274 .block_erasers =
6275 {
6276 {
6277 .eraseblocks = {
6278 {64 * 1024, 15},
6279 {8 * 1024, 8}
6280 },
Sean Nelson28accc22010-03-19 18:47:06 +00006281 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006282 }, {
6283 .eraseblocks = {
6284 {1024 * 1024, 1}
6285 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006286 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006287 },
6288 },
Sean Nelson28accc22010-03-19 18:47:06 +00006289 .unlock = unlock_82802ab,
6290 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006292 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006293 },
6294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006295 {
6296 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00006297 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006298 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006299 .manufacture_id = SPANSION_ID,
6300 .model_id = SPANSION_S25FL004A,
6301 .total_size = 512,
6302 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006303 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006304 .tested = TEST_UNTESTED,
6305 .probe = probe_spi_rdid,
6306 .probe_timing = TIMING_ZERO,
6307 .block_erasers =
6308 {
6309 {
6310 .eraseblocks = { {64 * 1024, 8} },
6311 .block_erase = spi_block_erase_d8,
6312 }, {
6313 .eraseblocks = { {512 * 1024, 1} },
6314 .block_erase = spi_block_erase_c7,
6315 }
6316 },
6317 .unlock = spi_disable_blockprotect,
6318 .write = spi_chip_write_256,
6319 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006320 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006321 },
6322
6323 {
6324 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00006325 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006326 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00006327 .manufacture_id = SPANSION_ID,
6328 .model_id = SPANSION_S25FL008A,
6329 .total_size = 1024,
6330 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006331 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006332 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00006333 .probe = probe_spi_rdid,
6334 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00006335 .block_erasers =
6336 {
6337 {
6338 .eraseblocks = { {64 * 1024, 16} },
6339 .block_erase = spi_block_erase_d8,
6340 }, {
6341 .eraseblocks = { {1024 * 1024, 1} },
6342 .block_erase = spi_block_erase_c7,
6343 }
6344 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006345 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006346 .write = spi_chip_write_256,
6347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006348 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006349 },
6350
6351 {
6352 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006353 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006354 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006355 .manufacture_id = SPANSION_ID,
6356 .model_id = SPANSION_S25FL016A,
6357 .total_size = 2048,
6358 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006359 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006360 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006361 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006362 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006363 .block_erasers =
6364 {
6365 {
6366 .eraseblocks = { {64 * 1024, 32} },
6367 .block_erase = spi_block_erase_d8,
6368 }, {
6369 .eraseblocks = { {2 * 1024 * 1024, 1} },
6370 .block_erase = spi_block_erase_c7,
6371 }
6372 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006373 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006374 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006375 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006376 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006377 },
6378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006379 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006380 .vendor = "Spansion",
6381 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006382 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006383 .manufacture_id = SPANSION_ID,
6384 .model_id = SPANSION_S25FL032A,
6385 .total_size = 4096,
6386 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006387 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006388 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006389 .probe = probe_spi_rdid,
6390 .probe_timing = TIMING_ZERO,
6391 .block_erasers =
6392 {
6393 {
6394 .eraseblocks = { {64 * 1024, 64} },
6395 .block_erase = spi_block_erase_d8,
6396 }, {
6397 .eraseblocks = { {4 * 1024 * 1024, 1} },
6398 .block_erase = spi_block_erase_c7,
6399 }
6400 },
6401 .unlock = spi_disable_blockprotect,
6402 .write = spi_chip_write_256,
6403 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006404 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006405 },
6406
6407 {
6408 .vendor = "Spansion",
6409 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006410 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006411 .manufacture_id = SPANSION_ID,
6412 .model_id = SPANSION_S25FL064A,
6413 .total_size = 8192,
6414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006415 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006416 .tested = TEST_OK_PREW,
6417 .probe = probe_spi_rdid,
6418 .probe_timing = TIMING_ZERO,
6419 .block_erasers =
6420 {
6421 {
6422 .eraseblocks = { {64 * 1024, 128} },
6423 .block_erase = spi_block_erase_d8,
6424 }, {
6425 .eraseblocks = { {8 * 1024 * 1024, 1} },
6426 .block_erase = spi_block_erase_c7,
6427 }
6428 },
6429 .unlock = spi_disable_blockprotect,
6430 .write = spi_chip_write_256,
6431 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006432 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006433 },
6434
6435 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006436 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006437 .name = "SST25LF040A",
6438 .bustype = BUS_SPI,
6439 .manufacture_id = SST_ID,
6440 .model_id = SST_SST25VF040_REMS,
6441 .total_size = 512,
6442 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006443 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006444 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006445 .probe = probe_spi_res2,
6446 .probe_timing = TIMING_ZERO,
6447 .block_erasers =
6448 {
6449 {
6450 .eraseblocks = { {4 * 1024, 128} },
6451 .block_erase = spi_block_erase_20,
6452 }, {
6453 .eraseblocks = { {32 * 1024, 16} },
6454 .block_erase = spi_block_erase_52,
6455 }, {
6456 .eraseblocks = { {512 * 1024, 1} },
6457 .block_erase = spi_block_erase_60,
6458 },
6459 },
6460 .unlock = spi_disable_blockprotect,
6461 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6462 .read = spi_chip_read,
6463 .voltage = {3000, 3600},
6464 },
6465
6466 {
6467 .vendor = "SST",
6468 .name = "SST25LF080A",
6469 .bustype = BUS_SPI,
6470 .manufacture_id = SST_ID,
6471 .model_id = SST_SST25VF080_REMS,
6472 .total_size = 1024,
6473 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006474 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006475 .tested = TEST_UNTESTED,
6476 .probe = probe_spi_res2,
6477 .probe_timing = TIMING_ZERO,
6478 .block_erasers =
6479 {
6480 {
6481 .eraseblocks = { {4 * 1024, 256} },
6482 .block_erase = spi_block_erase_20,
6483 }, {
6484 .eraseblocks = { {32 * 1024, 32} },
6485 .block_erase = spi_block_erase_52,
6486 }, {
6487 .eraseblocks = { {1024 * 1024, 1} },
6488 .block_erase = spi_block_erase_60,
6489 },
6490 },
6491 .unlock = spi_disable_blockprotect,
6492 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6493 .read = spi_chip_read,
6494 .voltage = {3000, 3600},
6495 },
6496
6497 {
6498 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006499 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006500 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006501 .manufacture_id = SST_ID,
6502 .model_id = SST_SST25VF010_REMS,
6503 .total_size = 128,
6504 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006505 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006506 .tested = TEST_OK_PREW,
6507 .probe = probe_spi_rems,
6508 .probe_timing = TIMING_ZERO,
6509 .block_erasers =
6510 {
6511 {
6512 .eraseblocks = { {4 * 1024, 32} },
6513 .block_erase = spi_block_erase_20,
6514 }, {
6515 .eraseblocks = { {32 * 1024, 4} },
6516 .block_erase = spi_block_erase_52,
6517 }, {
6518 .eraseblocks = { {128 * 1024, 1} },
6519 .block_erase = spi_block_erase_60,
6520 },
6521 },
6522 .unlock = spi_disable_blockprotect,
6523 .write = spi_chip_write_1,
6524 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006525 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006526 },
6527
6528 {
6529 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006530 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006531 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006532 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006533 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006534 .total_size = 2048,
6535 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006536 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006537 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006538 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006539 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006540 .block_erasers =
6541 {
6542 {
6543 .eraseblocks = { {4 * 1024, 512} },
6544 .block_erase = spi_block_erase_20,
6545 }, {
6546 .eraseblocks = { {32 * 1024, 64} },
6547 .block_erase = spi_block_erase_52,
6548 }, {
6549 .eraseblocks = { {64 * 1024, 32} },
6550 .block_erase = spi_block_erase_d8,
6551 }, {
6552 .eraseblocks = { {2 * 1024 * 1024, 1} },
6553 .block_erase = spi_block_erase_60,
6554 }, {
6555 .eraseblocks = { {2 * 1024 * 1024, 1} },
6556 .block_erase = spi_block_erase_c7,
6557 },
6558 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006559 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006560 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006563 },
6564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006565 {
6566 .vendor = "SST",
6567 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006568 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006569 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006570 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006571 .total_size = 4096,
6572 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006573 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006574 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006576 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006577 .block_erasers =
6578 {
6579 {
6580 .eraseblocks = { {4 * 1024, 1024} },
6581 .block_erase = spi_block_erase_20,
6582 }, {
6583 .eraseblocks = { {32 * 1024, 128} },
6584 .block_erase = spi_block_erase_52,
6585 }, {
6586 .eraseblocks = { {64 * 1024, 64} },
6587 .block_erase = spi_block_erase_d8,
6588 }, {
6589 .eraseblocks = { {4 * 1024 * 1024, 1} },
6590 .block_erase = spi_block_erase_60,
6591 }, {
6592 .eraseblocks = { {4 * 1024 * 1024, 1} },
6593 .block_erase = spi_block_erase_c7,
6594 },
6595 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006596 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006597 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006598 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006599 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006600 },
6601
6602 {
6603 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006604 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006605 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006606 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006607 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006608 .total_size = 8192,
6609 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006610 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006611 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006612 .probe = probe_spi_rdid,
6613 .probe_timing = TIMING_ZERO,
6614 .block_erasers =
6615 {
6616 {
6617 .eraseblocks = { {4 * 1024, 2048} },
6618 .block_erase = spi_block_erase_20,
6619 }, {
6620 .eraseblocks = { {32 * 1024, 256} },
6621 .block_erase = spi_block_erase_52,
6622 }, {
6623 .eraseblocks = { {64 * 1024, 128} },
6624 .block_erase = spi_block_erase_d8,
6625 }, {
6626 .eraseblocks = { {8 * 1024 * 1024, 1} },
6627 .block_erase = spi_block_erase_60,
6628 }, {
6629 .eraseblocks = { {8 * 1024 * 1024, 1} },
6630 .block_erase = spi_block_erase_c7,
6631 },
6632 },
6633 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006634 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006636 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006637 },
6638
6639 {
6640 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006641 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006643 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006644 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006645 .total_size = 512,
6646 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006647 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006648 .tested = TEST_OK_PR,
6649 .probe = probe_spi_rems,
6650 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006651 .block_erasers =
6652 {
6653 {
6654 .eraseblocks = { {4 * 1024, 128} },
6655 .block_erase = spi_block_erase_20,
6656 }, {
6657 .eraseblocks = { {32 * 1024, 16} },
6658 .block_erase = spi_block_erase_52,
6659 }, {
6660 .eraseblocks = { {512 * 1024, 1} },
6661 .block_erase = spi_block_erase_60,
6662 },
6663 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006664 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006665 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006666 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006667 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006668 },
6669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006670 {
6671 .vendor = "SST",
6672 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006673 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006674 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006675 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006676 .total_size = 512,
6677 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006678 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006679 .tested = TEST_UNTESTED,
6680 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006681 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006682 .block_erasers =
6683 {
6684 {
6685 .eraseblocks = { {4 * 1024, 128} },
6686 .block_erase = spi_block_erase_20,
6687 }, {
6688 .eraseblocks = { {32 * 1024, 16} },
6689 .block_erase = spi_block_erase_52,
6690 }, {
6691 .eraseblocks = { {64 * 1024, 8} },
6692 .block_erase = spi_block_erase_d8,
6693 }, {
6694 .eraseblocks = { {512 * 1024, 1} },
6695 .block_erase = spi_block_erase_60,
6696 }, {
6697 .eraseblocks = { {512 * 1024, 1} },
6698 .block_erase = spi_block_erase_c7,
6699 },
6700 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006701 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006702 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006703 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006704 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006705 },
6706
6707 {
6708 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006709 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006710 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006711 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006712 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006713 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006714 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006715 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00006716 .tested = TEST_OK_PR,
6717 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006718 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006719 .block_erasers =
6720 {
6721 {
6722 .eraseblocks = { {4 * 1024, 128} },
6723 .block_erase = spi_block_erase_20,
6724 }, {
6725 .eraseblocks = { {32 * 1024, 16} },
6726 .block_erase = spi_block_erase_52,
6727 }, {
6728 .eraseblocks = { {64 * 1024, 8} },
6729 .block_erase = spi_block_erase_d8,
6730 }, {
6731 .eraseblocks = { {512 * 1024, 1} },
6732 .block_erase = spi_block_erase_60,
6733 }, {
6734 .eraseblocks = { {512 * 1024, 1} },
6735 .block_erase = spi_block_erase_c7,
6736 },
6737 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006738 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006739 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006740 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006741 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006742 },
6743
6744 {
6745 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006746 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006747 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006748 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006749 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006750 .total_size = 1024,
6751 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006752 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00006753 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006754 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006755 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006756 .block_erasers =
6757 {
6758 {
6759 .eraseblocks = { {4 * 1024, 256} },
6760 .block_erase = spi_block_erase_20,
6761 }, {
6762 .eraseblocks = { {32 * 1024, 32} },
6763 .block_erase = spi_block_erase_52,
6764 }, {
6765 .eraseblocks = { {64 * 1024, 16} },
6766 .block_erase = spi_block_erase_d8,
6767 }, {
6768 .eraseblocks = { {1024 * 1024, 1} },
6769 .block_erase = spi_block_erase_60,
6770 }, {
6771 .eraseblocks = { {1024 * 1024, 1} },
6772 .block_erase = spi_block_erase_c7,
6773 },
6774 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006775 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006776 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006777 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006778 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006779 },
6780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006781 {
6782 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00006783 .name = "SST25WF512",
6784 .bustype = BUS_SPI,
6785 .manufacture_id = SST_ID,
6786 .model_id = SST_SST25WF512,
6787 .total_size = 64,
6788 .page_size = 256,
6789 .feature_bits = FEATURE_WRSR_EITHER,
6790 .tested = TEST_UNTESTED,
6791 .probe = probe_spi_rdid,
6792 .probe_timing = TIMING_ZERO,
6793 .block_erasers =
6794 {
6795 {
6796 .eraseblocks = { {4 * 1024, 16} },
6797 .block_erase = spi_block_erase_20,
6798 }, {
6799 .eraseblocks = { {32 * 1024, 2} },
6800 .block_erase = spi_block_erase_52,
6801 }, {
6802 .eraseblocks = { {1024 * 64, 1} },
6803 .block_erase = spi_block_erase_60,
6804 }, {
6805 .eraseblocks = { {1024 * 64, 1} },
6806 .block_erase = spi_block_erase_c7,
6807 },
6808 },
6809 .unlock = spi_disable_blockprotect,
6810 .write = spi_aai_write,
6811 .read = spi_chip_read, /* Fast read (0x0B) supported */
6812 .voltage = {1650, 1950},
6813 },
6814
6815 {
6816 .vendor = "SST",
6817 .name = "SST25WF010",
6818 .bustype = BUS_SPI,
6819 .manufacture_id = SST_ID,
6820 .model_id = SST_SST25WF010,
6821 .total_size = 128,
6822 .page_size = 256,
6823 .feature_bits = FEATURE_WRSR_EITHER,
6824 .tested = TEST_UNTESTED,
6825 .probe = probe_spi_rdid,
6826 .probe_timing = TIMING_ZERO,
6827 .block_erasers =
6828 {
6829 {
6830 .eraseblocks = { {4 * 1024, 32} },
6831 .block_erase = spi_block_erase_20,
6832 }, {
6833 .eraseblocks = { {32 * 1024, 4} },
6834 .block_erase = spi_block_erase_52,
6835 }, {
6836 .eraseblocks = { {1024 * 128, 1} },
6837 .block_erase = spi_block_erase_60,
6838 }, {
6839 .eraseblocks = { {1024 * 128, 1} },
6840 .block_erase = spi_block_erase_c7,
6841 },
6842 },
6843 .unlock = spi_disable_blockprotect,
6844 .write = spi_aai_write,
6845 .read = spi_chip_read, /* Fast read (0x0B) supported */
6846 .voltage = {1650, 1950},
6847 },
6848
6849 {
6850 .vendor = "SST",
6851 .name = "SST25WF020",
6852 .bustype = BUS_SPI,
6853 .manufacture_id = SST_ID,
6854 .model_id = SST_SST25WF020,
6855 .total_size = 256,
6856 .page_size = 256,
6857 .feature_bits = FEATURE_WRSR_EITHER,
6858 .tested = TEST_UNTESTED,
6859 .probe = probe_spi_rdid,
6860 .probe_timing = TIMING_ZERO,
6861 .block_erasers =
6862 {
6863 {
6864 .eraseblocks = { {4 * 1024, 64} },
6865 .block_erase = spi_block_erase_20,
6866 }, {
6867 .eraseblocks = { {32 * 1024, 8} },
6868 .block_erase = spi_block_erase_52,
6869 }, {
6870 .eraseblocks = { {64 * 1024, 4} },
6871 .block_erase = spi_block_erase_d8,
6872 }, {
6873 .eraseblocks = { {1024 * 256, 1} },
6874 .block_erase = spi_block_erase_60,
6875 }, {
6876 .eraseblocks = { {1024 * 256, 1} },
6877 .block_erase = spi_block_erase_c7,
6878 },
6879 },
6880 .unlock = spi_disable_blockprotect,
6881 .write = spi_aai_write,
6882 .read = spi_chip_read, /* Fast read (0x0B) supported */
6883 .voltage = {1650, 1950},
6884 },
6885
6886 {
6887 .vendor = "SST",
6888 .name = "SST25WF040",
6889 .bustype = BUS_SPI,
6890 .manufacture_id = SST_ID,
6891 .model_id = SST_SST25WF040,
6892 .total_size = 512,
6893 .page_size = 256,
6894 .feature_bits = FEATURE_WRSR_EITHER,
6895 .tested = TEST_UNTESTED,
6896 .probe = probe_spi_rdid,
6897 .probe_timing = TIMING_ZERO,
6898 .block_erasers =
6899 {
6900 {
6901 .eraseblocks = { {4 * 1024, 128} },
6902 .block_erase = spi_block_erase_20,
6903 }, {
6904 .eraseblocks = { {32 * 1024, 16} },
6905 .block_erase = spi_block_erase_52,
6906 }, {
6907 .eraseblocks = { {64 * 1024, 8} },
6908 .block_erase = spi_block_erase_d8,
6909 }, {
6910 .eraseblocks = { {1024 * 512, 1} },
6911 .block_erase = spi_block_erase_60,
6912 }, {
6913 .eraseblocks = { {1024 * 512, 1} },
6914 .block_erase = spi_block_erase_c7,
6915 },
6916 },
6917 .unlock = spi_disable_blockprotect,
6918 .write = spi_aai_write,
6919 .read = spi_chip_read, /* Fast read (0x0B) supported */
6920 .voltage = {1650, 1950},
6921 },
6922
6923 {
6924 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006925 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006926 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006927 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006928 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006929 .total_size = 512,
6930 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006931 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006932 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006933 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006934 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006935 .block_erasers =
6936 {
6937 {
6938 .eraseblocks = { {128, 4096} },
6939 .block_erase = erase_sector_28sf040,
6940 }, {
6941 .eraseblocks = { {512 * 1024, 1} },
6942 .block_erase = erase_chip_28sf040,
6943 }
6944 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006945 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006946 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006948 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006949 },
6950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006951 {
6952 .vendor = "SST",
6953 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006954 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006955 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006956 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006957 .total_size = 128,
6958 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006959 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006960 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006961 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006962 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006963 .block_erasers =
6964 {
6965 {
6966 .eraseblocks = { {128 * 1024, 1} },
6967 .block_erase = erase_chip_block_jedec,
6968 }
6969 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006970 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006972 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006973 },
6974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006975 {
6976 .vendor = "SST",
6977 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006978 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006980 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006981 .total_size = 128,
6982 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006983 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006984 .tested = TEST_UNTESTED,
6985 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006986 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006987 .block_erasers =
6988 {
6989 {
6990 .eraseblocks = { {128 * 1024, 1} },
6991 .block_erase = erase_chip_block_jedec,
6992 }
6993 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006994 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006996 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006997 },
6998
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006999 {
7000 .vendor = "SST",
7001 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007002 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007003 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007004 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 .total_size = 256,
7006 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007007 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007008 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007009 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007010 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007011 .block_erasers =
7012 {
7013 {
7014 .eraseblocks = { {256 * 1024, 1} },
7015 .block_erase = erase_chip_block_jedec,
7016 }
7017 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007018 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007020 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007021 },
7022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007023 {
7024 .vendor = "SST",
7025 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007026 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007027 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007028 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007029 .total_size = 256,
7030 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007031 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007032 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007033 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007034 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007035 .block_erasers =
7036 {
7037 {
7038 .eraseblocks = { {256 * 1024, 1} },
7039 .block_erase = erase_chip_block_jedec,
7040 }
7041 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007042 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007043 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007044 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007045 },
7046
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007047 {
7048 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00007049 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007050 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007051 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007052 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007053 .total_size = 64,
7054 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007055 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00007056 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007057 .probe = probe_jedec,
7058 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00007059 .block_erasers =
7060 {
7061 {
7062 .eraseblocks = { {4 * 1024, 16} },
7063 .block_erase = erase_sector_jedec,
7064 }, {
7065 .eraseblocks = { {64 * 1024, 1} },
7066 .block_erase = erase_chip_block_jedec,
7067 }
7068 },
Sean Nelson35727f72010-01-28 23:55:12 +00007069 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007071 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00007072 },
7073
7074 {
7075 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007076 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007077 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007079 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007080 .total_size = 128,
7081 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007082 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007083 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007084 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007085 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007086 .block_erasers =
7087 {
7088 {
7089 .eraseblocks = { {4 * 1024, 32} },
7090 .block_erase = erase_sector_jedec,
7091 }, {
7092 .eraseblocks = { {128 * 1024, 1} },
7093 .block_erase = erase_chip_block_jedec,
7094 }
7095 },
Sean Nelson35727f72010-01-28 23:55:12 +00007096 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007098 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007099 },
7100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007101 {
7102 .vendor = "SST",
7103 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007104 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007105 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007106 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007107 .total_size = 256,
7108 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007109 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007110 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007111 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007112 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007113 .block_erasers =
7114 {
7115 {
7116 .eraseblocks = { {4 * 1024, 64} },
7117 .block_erase = erase_sector_jedec,
7118 }, {
7119 .eraseblocks = { {256 * 1024, 1} },
7120 .block_erase = erase_chip_block_jedec,
7121 }
7122 },
Sean Nelson35727f72010-01-28 23:55:12 +00007123 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007124 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007125 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007126 },
7127
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007128 {
7129 .vendor = "SST",
7130 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007131 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007132 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007133 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007134 .total_size = 512,
7135 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007136 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007137 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007138 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007139 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007140 .block_erasers =
7141 {
7142 {
7143 .eraseblocks = { {4 * 1024, 128} },
7144 .block_erase = erase_sector_jedec,
7145 }, {
7146 .eraseblocks = { {512 * 1024, 1} },
7147 .block_erase = erase_chip_block_jedec,
7148 }
7149 },
Sean Nelson35727f72010-01-28 23:55:12 +00007150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007152 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007153 },
7154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007155 {
7156 .vendor = "SST",
7157 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007158 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007159 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007160 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007161 .total_size = 64,
7162 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007163 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007164 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007165 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007166 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007167 .block_erasers =
7168 {
7169 {
7170 .eraseblocks = { {4 * 1024, 16} },
7171 .block_erase = erase_sector_jedec,
7172 }, {
7173 .eraseblocks = { {64 * 1024, 1} },
7174 .block_erase = erase_chip_block_jedec,
7175 }
7176 },
Sean Nelson35727f72010-01-28 23:55:12 +00007177 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007178 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007179 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007180 },
7181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007182 {
7183 .vendor = "SST",
7184 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007185 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007186 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007187 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007188 .total_size = 128,
7189 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007190 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007191 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007192 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007193 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007194 .block_erasers =
7195 {
7196 {
7197 .eraseblocks = { {4 * 1024, 32} },
7198 .block_erase = erase_sector_jedec,
7199 }, {
7200 .eraseblocks = { {128 * 1024, 1} },
7201 .block_erase = erase_chip_block_jedec,
7202 }
7203 },
Sean Nelson35727f72010-01-28 23:55:12 +00007204 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007206 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007207 },
7208
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007209 {
7210 .vendor = "SST",
7211 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007212 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007213 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007214 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007215 .total_size = 256,
7216 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007217 .feature_bits = FEATURE_EITHER_RESET,
7218 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007219 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007220 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007221 .block_erasers =
7222 {
7223 {
7224 .eraseblocks = { {4 * 1024, 64} },
7225 .block_erase = erase_sector_jedec,
7226 }, {
7227 .eraseblocks = { {256 * 1024, 1} },
7228 .block_erase = erase_chip_block_jedec,
7229 }
7230 },
Sean Nelson35727f72010-01-28 23:55:12 +00007231 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007233 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007234 },
7235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007236 {
7237 .vendor = "SST",
7238 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007239 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007240 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007241 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007242 .total_size = 512,
7243 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007244 .feature_bits = FEATURE_EITHER_RESET,
7245 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007246 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007247 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007248 .block_erasers =
7249 {
7250 {
7251 .eraseblocks = { {4 * 1024, 128} },
7252 .block_erase = erase_sector_jedec,
7253 }, {
7254 .eraseblocks = { {512 * 1024, 1} },
7255 .block_erase = erase_chip_block_jedec,
7256 }
7257 },
Sean Nelson35727f72010-01-28 23:55:12 +00007258 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007259 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007260 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00007261 },
FENG yu ningff692fb2008-12-08 18:15:10 +00007262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007263 {
7264 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00007265 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007266 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007267 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007268 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00007269 .total_size = 1024,
7270 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007271 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00007272 .tested = TEST_UNTESTED,
7273 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007274 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007275 .block_erasers =
7276 {
7277 {
7278 .eraseblocks = { {4 * 1024, 256} },
7279 .block_erase = erase_sector_jedec,
7280 }, {
7281 .eraseblocks = { {64 * 1024, 16} },
7282 .block_erase = erase_block_jedec,
7283 }, {
7284 .eraseblocks = { {1024 * 1024, 1} },
7285 .block_erase = erase_chip_block_jedec,
7286 }
7287 },
Sean Nelson35727f72010-01-28 23:55:12 +00007288 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007290 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00007291 },
7292
7293 {
7294 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007295 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007296 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007297 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007298 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007299 .total_size = 256,
7300 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007301 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007302 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007303 .probe = probe_jedec,
7304 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007305 .block_erasers =
7306 {
7307 {
7308 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007309 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007310 }, {
7311 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007312 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007313 }, {
7314 .eraseblocks = { {256 * 1024, 1} },
7315 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7316 }
7317 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007318 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007319 .unlock = unlock_sst_fwhub,
7320 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007321 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007322 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007323 },
7324
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007325 {
7326 .vendor = "SST",
7327 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007328 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007329 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007330 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007331 .total_size = 384,
7332 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007333 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00007334 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007335 .probe = probe_jedec,
7336 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007337 .block_erasers =
7338 {
7339 {
7340 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007341 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007342 }, {
7343 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007344 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007345 }, {
7346 .eraseblocks = { {384 * 1024, 1} },
7347 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7348 }
7349 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007350 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007351 .unlock = unlock_sst_fwhub,
7352 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007353 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007354 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007355 },
7356
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007357 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007358 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
7359 * and is only honored for 64k block erase, but not 4k sector erase.
7360 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007361 .vendor = "SST",
7362 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007363 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007364 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007365 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007366 .total_size = 512,
7367 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007368 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007369 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007370 .probe = probe_jedec,
7371 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007372 .block_erasers =
7373 {
7374 {
7375 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007376 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007377 }, {
7378 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007379 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007380 }, {
7381 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007382 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007383 },
7384 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007385 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007386 .unlock = unlock_sst_fwhub,
7387 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007388 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007389 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007390 },
7391
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007392 {
7393 .vendor = "SST",
7394 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007395 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007396 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007397 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007398 .total_size = 512,
7399 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007400 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007401 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007402 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007403 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007404 .block_erasers =
7405 {
7406 {
7407 .eraseblocks = { {4 * 1024, 128} },
7408 .block_erase = erase_sector_49lfxxxc,
7409 }, {
7410 .eraseblocks = {
7411 {64 * 1024, 7},
7412 {32 * 1024, 1},
7413 {8 * 1024, 2},
7414 {16 * 1024, 1},
7415 },
Sean Nelson69e58112010-03-23 17:10:28 +00007416 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007417 }
7418 },
Sean Nelson69e58112010-03-23 17:10:28 +00007419 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007420 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007421 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007422 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007423 },
7424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007425 {
7426 .vendor = "SST",
7427 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007428 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007429 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007430 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007431 .total_size = 1024,
7432 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007433 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007434 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007435 .probe = probe_jedec,
7436 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007437 .block_erasers =
7438 {
7439 {
7440 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007441 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007442 }, {
7443 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007444 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007445 }, {
7446 .eraseblocks = { {1024 * 1024, 1} },
7447 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7448 }
7449 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007450 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007451 .unlock = unlock_sst_fwhub,
7452 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007454 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007455 },
7456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007457 {
7458 .vendor = "SST",
7459 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007460 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007461 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007462 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007463 .total_size = 1024,
7464 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007465 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007466 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007467 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007468 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007469 .block_erasers =
7470 {
7471 {
7472 .eraseblocks = { {4 * 1024, 256} },
7473 .block_erase = erase_sector_49lfxxxc,
7474 }, {
7475 .eraseblocks = {
7476 {64 * 1024, 15},
7477 {32 * 1024, 1},
7478 {8 * 1024, 2},
7479 {16 * 1024, 1},
7480 },
Sean Nelson69e58112010-03-23 17:10:28 +00007481 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007482 }
7483 },
Sean Nelson69e58112010-03-23 17:10:28 +00007484 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007485 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007486 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007487 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007488 },
7489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007490 {
7491 .vendor = "SST",
7492 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007493 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007494 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007495 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007496 .total_size = 2048,
7497 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007498 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007499 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007500 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007501 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007502 .block_erasers =
7503 {
7504 {
7505 .eraseblocks = { {4 * 1024, 512} },
7506 .block_erase = erase_sector_49lfxxxc,
7507 }, {
7508 .eraseblocks = {
7509 {64 * 1024, 31},
7510 {32 * 1024, 1},
7511 {8 * 1024, 2},
7512 {16 * 1024, 1},
7513 },
Sean Nelson69e58112010-03-23 17:10:28 +00007514 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007515 }
7516 },
Sean Nelson69e58112010-03-23 17:10:28 +00007517 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007518 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007520 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007521 },
7522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007523 {
7524 .vendor = "SST",
7525 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007526 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007527 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007528 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007529 .total_size = 256,
7530 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007531 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007532 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007533 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007534 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007535 .block_erasers =
7536 {
7537 {
7538 .eraseblocks = { {4 * 1024, 64} },
7539 .block_erase = erase_sector_jedec,
7540 }, {
7541 .eraseblocks = { {16 * 1024, 16} },
7542 .block_erase = erase_block_jedec,
7543 }, {
7544 .eraseblocks = { {256 * 1024, 1} },
7545 .block_erase = NULL,
7546 }
7547 },
Sean Nelson35727f72010-01-28 23:55:12 +00007548 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007549 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007550 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007551 },
7552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007553 {
7554 .vendor = "SST",
7555 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007556 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007557 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007558 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007559 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007560 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007561 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007562 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007563 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007564 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007565 .block_erasers =
7566 {
7567 {
7568 .eraseblocks = { {4 * 1024, 64} },
7569 .block_erase = erase_sector_jedec,
7570 }, {
7571 .eraseblocks = { {16 * 1024, 16} },
7572 .block_erase = erase_block_jedec,
7573 }, {
7574 .eraseblocks = { {256 * 1024, 1} },
7575 .block_erase = NULL,
7576 }
7577 },
Sean Nelson35727f72010-01-28 23:55:12 +00007578 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007580 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007581 },
7582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007583 {
7584 .vendor = "SST",
7585 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007586 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007587 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007588 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007589 .total_size = 512,
7590 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007591 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007592 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007593 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007594 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007595 .block_erasers =
7596 {
7597 {
7598 .eraseblocks = { {4 * 1024, 128} },
7599 .block_erase = erase_sector_jedec,
7600 }, {
7601 .eraseblocks = { {64 * 1024, 8} },
7602 .block_erase = erase_block_jedec,
7603 }, {
7604 .eraseblocks = { {512 * 1024, 1} },
7605 .block_erase = NULL,
7606 }
7607 },
Sean Nelson35727f72010-01-28 23:55:12 +00007608 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007609 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007610 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007611 },
7612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007613 {
7614 .vendor = "SST",
7615 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007616 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007617 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007618 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007619 .total_size = 512,
7620 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007621 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007622 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007623 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007624 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007625 .block_erasers =
7626 {
7627 {
7628 .eraseblocks = { {4 * 1024, 128} },
7629 .block_erase = erase_sector_jedec,
7630 }, {
7631 .eraseblocks = { {64 * 1024, 8} },
7632 .block_erase = erase_block_jedec,
7633 }, {
7634 .eraseblocks = { {512 * 1024, 1} },
7635 .block_erase = NULL,
7636 }
7637 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007638 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007639 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007641 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007642 },
7643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007644 {
7645 .vendor = "SST",
7646 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007647 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007648 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007649 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007650 .total_size = 1024,
7651 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007652 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007653 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007654 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007655 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007656 .block_erasers =
7657 {
7658 {
7659 .eraseblocks = { {4 * 1024, 256} },
7660 .block_erase = erase_sector_jedec,
7661 }, {
7662 .eraseblocks = { {64 * 1024, 16} },
7663 .block_erase = erase_block_jedec,
7664 }, {
7665 .eraseblocks = { {1024 * 1024, 1} },
7666 .block_erase = NULL,
7667 }
7668 },
Sean Nelson35727f72010-01-28 23:55:12 +00007669 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007671 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007672 },
7673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007674 {
7675 .vendor = "SST",
7676 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007677 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007678 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007679 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007680 .total_size = 2048,
7681 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007682 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007683 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007684 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007685 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007686 .block_erasers =
7687 {
7688 {
7689 .eraseblocks = { {4 * 1024, 512} },
7690 .block_erase = erase_sector_49lfxxxc,
7691 }, {
7692 .eraseblocks = {
7693 {64 * 1024, 31},
7694 {32 * 1024, 1},
7695 {8 * 1024, 2},
7696 {16 * 1024, 1},
7697 },
Sean Nelson69e58112010-03-23 17:10:28 +00007698 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007699 }
7700 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007701 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007702 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007703 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007704 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007705 },
7706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007707 {
7708 .vendor = "ST",
7709 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007710 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007711 .manufacture_id = ST_ID,
7712 .model_id = ST_M25P05A,
7713 .total_size = 64,
7714 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007715 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007716 .tested = TEST_UNTESTED,
7717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007718 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007719 .block_erasers =
7720 {
7721 {
7722 .eraseblocks = { {32 * 1024, 2} },
7723 .block_erase = spi_block_erase_d8,
7724 }, {
7725 .eraseblocks = { {64 * 1024, 1} },
7726 .block_erase = spi_block_erase_c7,
7727 }
7728 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007729 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007730 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007731 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007732 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007733 },
7734
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007735 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7736 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007737 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007738 * only is successful if RDID does not work.
7739 */
7740 {
7741 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007742 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007743 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007744 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007745 .model_id = ST_M25P05_RES,
7746 .total_size = 64,
7747 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007748 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007749 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007750 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007751 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007752 .block_erasers =
7753 {
7754 {
7755 .eraseblocks = { {32 * 1024, 2} },
7756 .block_erase = spi_block_erase_d8,
7757 }, {
7758 .eraseblocks = { {64 * 1024, 1} },
7759 .block_erase = spi_block_erase_c7,
7760 }
7761 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007762 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007763 .write = spi_chip_write_1, /* 128 */
7764 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007765 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007766 },
7767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007768 {
7769 .vendor = "ST",
7770 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007771 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007772 .manufacture_id = ST_ID,
7773 .model_id = ST_M25P10A,
7774 .total_size = 128,
7775 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007776 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007777 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007778 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007779 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007780 .block_erasers =
7781 {
7782 {
7783 .eraseblocks = { {32 * 1024, 4} },
7784 .block_erase = spi_block_erase_d8,
7785 }, {
7786 .eraseblocks = { {128 * 1024, 1} },
7787 .block_erase = spi_block_erase_c7,
7788 }
7789 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007790 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007791 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007792 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007793 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007794 },
7795
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007796 /* The ST M25P10 has the same problem as the M25P05. */
7797 {
7798 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007799 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007800 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007801 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007802 .model_id = ST_M25P10_RES,
7803 .total_size = 128,
7804 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007805 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007806 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007807 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007808 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007809 .block_erasers =
7810 {
7811 {
7812 .eraseblocks = { {32 * 1024, 4} },
7813 .block_erase = spi_block_erase_d8,
7814 }, {
7815 .eraseblocks = { {128 * 1024, 1} },
7816 .block_erase = spi_block_erase_c7,
7817 }
7818 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007820 .write = spi_chip_write_1, /* 128 */
7821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007822 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007823 },
7824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007825 {
7826 .vendor = "ST",
7827 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007828 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007829 .manufacture_id = ST_ID,
7830 .model_id = ST_M25P20,
7831 .total_size = 256,
7832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007833 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007834 .tested = TEST_UNTESTED,
7835 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007836 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007837 .block_erasers =
7838 {
7839 {
7840 .eraseblocks = { {64 * 1024, 4} },
7841 .block_erase = spi_block_erase_d8,
7842 }, {
7843 .eraseblocks = { {256 * 1024, 1} },
7844 .block_erase = spi_block_erase_c7,
7845 }
7846 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007847 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007848 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007849 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007850 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007851 },
7852
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007853 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007854 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007855 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007856 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007857 .manufacture_id = ST_ID,
7858 .model_id = ST_M25P40,
7859 .total_size = 512,
7860 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007861 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007862 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007863 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007864 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007865 .block_erasers =
7866 {
7867 {
7868 .eraseblocks = { {64 * 1024, 8} },
7869 .block_erase = spi_block_erase_d8,
7870 }, {
7871 .eraseblocks = { {512 * 1024, 1} },
7872 .block_erase = spi_block_erase_c7,
7873 }
7874 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007875 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007876 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007877 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007878 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007879 },
7880
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007881 {
7882 .vendor = "ST",
7883 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007884 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007885 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007886 .model_id = ST_M25P40_RES,
7887 .total_size = 512,
7888 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007889 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007890 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007891 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007892 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007893 .block_erasers =
7894 {
7895 {
7896 .eraseblocks = { {64 * 1024, 8} },
7897 .block_erase = spi_block_erase_d8,
7898 }, {
7899 .eraseblocks = { {512 * 1024, 1} },
7900 .block_erase = spi_block_erase_c7,
7901 }
7902 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007903 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007904 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007905 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007906 },
7907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007908 {
7909 .vendor = "ST",
7910 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007911 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007912 .manufacture_id = ST_ID,
7913 .model_id = ST_M25P80,
7914 .total_size = 1024,
7915 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007916 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007917 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007918 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007919 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007920 .block_erasers =
7921 {
7922 {
7923 .eraseblocks = { {64 * 1024, 16} },
7924 .block_erase = spi_block_erase_d8,
7925 }, {
7926 .eraseblocks = { {1024 * 1024, 1} },
7927 .block_erase = spi_block_erase_c7,
7928 }
7929 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007930 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007931 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007932 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007933 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007934 },
7935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007936 {
7937 .vendor = "ST",
7938 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007939 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007940 .manufacture_id = ST_ID,
7941 .model_id = ST_M25P16,
7942 .total_size = 2048,
7943 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007944 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007945 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007946 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007947 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007948 .block_erasers =
7949 {
7950 {
7951 .eraseblocks = { {64 * 1024, 32} },
7952 .block_erase = spi_block_erase_d8,
7953 }, {
7954 .eraseblocks = { {2 * 1024 * 1024, 1} },
7955 .block_erase = spi_block_erase_c7,
7956 }
7957 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007958 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007959 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007960 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007961 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007962 },
7963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007964 {
7965 .vendor = "ST",
7966 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007967 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007968 .manufacture_id = ST_ID,
7969 .model_id = ST_M25P32,
7970 .total_size = 4096,
7971 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007972 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007973 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007974 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007975 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007976 .block_erasers =
7977 {
7978 {
7979 .eraseblocks = { {64 * 1024, 64} },
7980 .block_erase = spi_block_erase_d8,
7981 }, {
7982 .eraseblocks = { {4 * 1024 * 1024, 1} },
7983 .block_erase = spi_block_erase_c7,
7984 }
7985 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007986 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007987 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007989 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007990 },
7991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007992 {
7993 .vendor = "ST",
7994 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007995 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007996 .manufacture_id = ST_ID,
7997 .model_id = ST_M25P64,
7998 .total_size = 8192,
7999 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008000 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008001 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008002 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008003 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008004 .block_erasers =
8005 {
8006 {
8007 .eraseblocks = { {64 * 1024, 128} },
8008 .block_erase = spi_block_erase_d8,
8009 }, {
8010 .eraseblocks = { {8 * 1024 * 1024, 1} },
8011 .block_erase = spi_block_erase_c7,
8012 }
8013 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008014 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008015 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008016 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008017 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008018 },
8019
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008020 {
8021 .vendor = "ST",
8022 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008023 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008024 .manufacture_id = ST_ID,
8025 .model_id = ST_M25P128,
8026 .total_size = 16384,
8027 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008028 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008029 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008030 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008031 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008032 .block_erasers =
8033 {
8034 {
8035 .eraseblocks = { {256 * 1024, 64} },
8036 .block_erase = spi_block_erase_d8,
8037 }, {
8038 .eraseblocks = { {16 * 1024 * 1024, 1} },
8039 .block_erase = spi_block_erase_c7,
8040 }
8041 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008042 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008043 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008044 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008045 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008046 },
8047
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008048 {
8049 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00008050 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008051 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008052 .manufacture_id = ST_ID,
8053 .model_id = ST_M25PX16,
8054 .total_size = 2048,
8055 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008056 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00008057 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008058 .tested = TEST_OK_PREW,
8059 .probe = probe_spi_rdid,
8060 .probe_timing = TIMING_ZERO,
8061 .block_erasers =
8062 {
8063 {
8064 .eraseblocks = { { 4 * 1024, 512 } },
8065 .block_erase = spi_block_erase_20,
8066 }, {
8067 .eraseblocks = { {64 * 1024, 32} },
8068 .block_erase = spi_block_erase_d8,
8069 }, {
8070 .eraseblocks = { {2 * 1024 * 1024, 1} },
8071 .block_erase = spi_block_erase_c7,
8072 }
8073 },
8074 .unlock = spi_disable_blockprotect,
8075 .write = spi_chip_write_256,
8076 .read = spi_chip_read,
8077 },
8078
8079 {
8080 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00008081 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008082 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008083 .manufacture_id = ST_ID,
8084 .model_id = ST_M25PX32,
8085 .total_size = 4096,
8086 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008087 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008088 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008089 .probe = probe_spi_rdid,
8090 .probe_timing = TIMING_ZERO,
8091 .block_erasers =
8092 {
8093 {
8094 .eraseblocks = { { 4 * 1024, 1024 } },
8095 .block_erase = spi_block_erase_20,
8096 }, {
8097 .eraseblocks = { {64 * 1024, 64} },
8098 .block_erase = spi_block_erase_d8,
8099 }, {
8100 .eraseblocks = { {4 * 1024 * 1024, 1} },
8101 .block_erase = spi_block_erase_c7,
8102 }
8103 },
8104 .unlock = spi_disable_blockprotect,
8105 .write = spi_chip_write_256,
8106 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008107 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00008108 },
8109
8110 {
8111 .vendor = "ST",
8112 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008113 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008114 .manufacture_id = ST_ID,
8115 .model_id = ST_M25PX64,
8116 .total_size = 8192,
8117 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008118 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008119 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008120 .probe = probe_spi_rdid,
8121 .probe_timing = TIMING_ZERO,
8122 .block_erasers =
8123 {
8124 {
8125 .eraseblocks = { { 4 * 1024, 2048 } },
8126 .block_erase = spi_block_erase_20,
8127 }, {
8128 .eraseblocks = { {64 * 1024, 128} },
8129 .block_erase = spi_block_erase_d8,
8130 }, {
8131 .eraseblocks = { {8 * 1024 * 1024, 1} },
8132 .block_erase = spi_block_erase_c7,
8133 }
8134 },
8135 .unlock = spi_disable_blockprotect,
8136 .write = spi_chip_write_256,
8137 .read = spi_chip_read,
8138 },
8139
8140 {
8141 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008142 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008143 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008144 .manufacture_id = ST_ID,
8145 .model_id = ST_M29F002B,
8146 .total_size = 256,
8147 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008148 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008149 .tested = TEST_UNTESTED,
8150 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008151 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008152 .block_erasers =
8153 {
8154 {
8155 .eraseblocks = {
8156 {16 * 1024, 1},
8157 {8 * 1024, 2},
8158 {32 * 1024, 1},
8159 {64 * 1024, 3},
8160 },
8161 .block_erase = erase_sector_jedec,
8162 }, {
8163 .eraseblocks = { {256 * 1024, 1} },
8164 .block_erase = erase_chip_block_jedec,
8165 }
8166 },
Sean Nelson35727f72010-01-28 23:55:12 +00008167 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008168 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008169 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008170 },
8171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008172 {
8173 .vendor = "ST",
8174 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008175 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008176 .manufacture_id = ST_ID,
8177 .model_id = ST_M29F002T,
8178 .total_size = 256,
8179 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008180 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
8181 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008182 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008183 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008184 .block_erasers =
8185 {
8186 {
8187 .eraseblocks = {
8188 {64 * 1024, 3},
8189 {32 * 1024, 1},
8190 {8 * 1024, 2},
8191 {16 * 1024, 1},
8192 },
8193 .block_erase = erase_sector_jedec,
8194 }, {
8195 .eraseblocks = { {256 * 1024, 1} },
8196 .block_erase = erase_chip_block_jedec,
8197 }
8198 },
Sean Nelson35727f72010-01-28 23:55:12 +00008199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008200 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008201 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008202 },
8203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008204 {
8205 .vendor = "ST",
8206 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008207 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008208 .manufacture_id = ST_ID,
8209 .model_id = ST_M29F040B,
8210 .total_size = 512,
8211 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8213 .tested = TEST_UNTESTED,
8214 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008215 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00008216 .block_erasers =
8217 {
8218 {
8219 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00008220 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008221 }, {
8222 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008223 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008224 }
8225 },
Sean Nelson35727f72010-01-28 23:55:12 +00008226 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008227 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008228 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008229 },
8230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008231 {
Sean Nelson35727f72010-01-28 23:55:12 +00008232 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008233 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008234 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008236 .manufacture_id = ST_ID,
8237 .model_id = ST_M29F400BB,
8238 .total_size = 512,
8239 .page_size = 64 * 1024,
8240 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008241 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008242 .probe = probe_m29f400bt,
8243 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
8244 .block_erasers =
8245 {
8246 {
8247 .eraseblocks = {
8248 {16 * 1024, 1},
8249 {8 * 1024, 2},
8250 {32 * 1024, 1},
8251 {64 * 1024, 7},
8252 },
8253 .block_erase = block_erase_m29f400bt,
8254 }, {
8255 .eraseblocks = { {512 * 1024, 1} },
8256 .block_erase = block_erase_chip_m29f400bt,
8257 }
8258 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008259 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008260 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008261 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008262 },
8263 {
8264 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
8265 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008266 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008267 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008268 .manufacture_id = ST_ID,
8269 .model_id = ST_M29F400BT,
8270 .total_size = 512,
8271 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008272 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008273 .tested = TEST_UNTESTED,
8274 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008275 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008276 .block_erasers =
8277 {
8278 {
8279 .eraseblocks = {
8280 {64 * 1024, 7},
8281 {32 * 1024, 1},
8282 {8 * 1024, 2},
8283 {16 * 1024, 1},
8284 },
8285 .block_erase = block_erase_m29f400bt,
8286 }, {
8287 .eraseblocks = { {512 * 1024, 1} },
8288 .block_erase = block_erase_chip_m29f400bt,
8289 }
8290 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008291 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008293 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008294 },
8295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008296 {
8297 .vendor = "ST",
8298 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008299 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008300 .manufacture_id = ST_ID,
8301 .model_id = ST_M29W010B,
8302 .total_size = 128,
8303 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008304 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008305 .tested = TEST_UNTESTED,
8306 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008307 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008308 .block_erasers =
8309 {
8310 {
8311 .eraseblocks = { {16 * 1024, 8}, },
8312 .block_erase = erase_sector_jedec,
8313 }, {
8314 .eraseblocks = { {128 * 1024, 1} },
8315 .block_erase = erase_chip_block_jedec,
8316 }
8317 },
Sean Nelson35727f72010-01-28 23:55:12 +00008318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008320 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008321 },
8322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008323 {
8324 .vendor = "ST",
8325 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008326 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008327 .manufacture_id = ST_ID,
8328 .model_id = ST_M29W040B,
8329 .total_size = 512,
8330 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008331 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008332 .tested = TEST_UNTESTED,
8333 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008334 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008335 .block_erasers =
8336 {
8337 {
8338 .eraseblocks = { {64 * 1024, 8}, },
8339 .block_erase = erase_sector_jedec,
8340 }, {
8341 .eraseblocks = { {512 * 1024, 1} },
8342 .block_erase = erase_chip_block_jedec,
8343 }
8344 },
Sean Nelson35727f72010-01-28 23:55:12 +00008345 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008347 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008348 },
8349
Stefan Taunereb582572012-09-21 12:52:50 +00008350 {
8351 .vendor = "ST",
8352 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008353 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +00008354 .manufacture_id = ST_ID,
8355 .model_id = ST_M29W512B,
8356 .total_size = 64,
8357 .page_size = 64 * 1024,
8358 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008359 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +00008360 .probe = probe_jedec,
8361 .probe_timing = TIMING_ZERO,
8362 .block_erasers =
8363 {
8364 {
8365 .eraseblocks = { {64 * 1024, 1} },
8366 .block_erase = erase_chip_block_jedec,
8367 }
8368 },
8369 .write = write_jedec_1,
8370 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008371 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +00008372 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008374 {
8375 .vendor = "ST",
8376 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008377 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008378 .manufacture_id = ST_ID,
8379 .model_id = ST_M50FLW040A,
8380 .total_size = 512,
8381 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008382 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008383 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008384 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008385 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008386 .block_erasers =
8387 {
8388 {
Sean Nelson329bde72010-01-19 16:39:19 +00008389 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008390 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008391 {64 * 1024, 5}, /* block */
8392 {4 * 1024, 16}, /* sector */
8393 {4 * 1024, 16}, /* sector */
8394 },
8395 .block_erase = NULL,
8396 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008397 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008398 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008399 }
8400 },
Sean Nelson28accc22010-03-19 18:47:06 +00008401 .unlock = unlock_stm50flw0x0x,
8402 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008403 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008404 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008405 },
8406
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008407 {
8408 .vendor = "ST",
8409 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008410 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008411 .manufacture_id = ST_ID,
8412 .model_id = ST_M50FLW040B,
8413 .total_size = 512,
8414 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008415 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008416 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008417 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008418 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008419 .block_erasers =
8420 {
8421 {
Sean Nelson329bde72010-01-19 16:39:19 +00008422 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008423 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008424 {4 * 1024, 16}, /* sector */
8425 {64 * 1024, 5}, /* block */
8426 {4 * 1024, 16}, /* sector */
8427 },
8428 .block_erase = NULL,
8429 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008430 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008431 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008432 }
8433 },
Sean Nelson28accc22010-03-19 18:47:06 +00008434 .unlock = unlock_stm50flw0x0x,
8435 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008436 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008437 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008438 },
8439
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008440 {
8441 .vendor = "ST",
8442 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008443 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008444 .manufacture_id = ST_ID,
8445 .model_id = ST_M50FLW080A,
8446 .total_size = 1024,
8447 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008448 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008449 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00008450 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008451 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008452 .block_erasers =
8453 {
8454 {
Sean Nelson329bde72010-01-19 16:39:19 +00008455 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008456 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008457 {64 * 1024, 13}, /* block */
8458 {4 * 1024, 16}, /* sector */
8459 {4 * 1024, 16}, /* sector */
8460 },
8461 .block_erase = NULL,
8462 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008463 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008464 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008465 }
8466 },
Sean Nelson28accc22010-03-19 18:47:06 +00008467 .unlock = unlock_stm50flw0x0x,
8468 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008470 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008471 },
8472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008473 {
8474 .vendor = "ST",
8475 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008476 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008477 .manufacture_id = ST_ID,
8478 .model_id = ST_M50FLW080B,
8479 .total_size = 1024,
8480 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008481 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008482 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008483 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008484 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008485 .block_erasers =
8486 {
8487 {
Sean Nelson329bde72010-01-19 16:39:19 +00008488 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008489 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008490 {4 * 1024, 16}, /* sector */
8491 {64 * 1024, 13}, /* block */
8492 {4 * 1024, 16}, /* sector */
8493 },
8494 .block_erase = NULL,
8495 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008496 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008497 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008498 }
8499 },
Sean Nelson28accc22010-03-19 18:47:06 +00008500 .unlock = unlock_stm50flw0x0x,
8501 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008503 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008504 },
8505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008506 {
8507 .vendor = "ST",
8508 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008509 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008510 .manufacture_id = ST_ID,
8511 .model_id = ST_M50FW002,
8512 .total_size = 256,
8513 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008514 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008515 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008516 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008517 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008518 .block_erasers =
8519 {
8520 {
8521 .eraseblocks = {
8522 {64 * 1024, 3},
8523 {32 * 1024, 1},
8524 {8 * 1024, 2},
8525 {16 * 1024, 1},
8526 },
Sean Nelson28accc22010-03-19 18:47:06 +00008527 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008528 }
8529 },
Sean Nelson28accc22010-03-19 18:47:06 +00008530 .unlock = unlock_stm50flw0x0x,
8531 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008532 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008533 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008534 },
8535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008536 {
8537 .vendor = "ST",
8538 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008539 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008540 .manufacture_id = ST_ID,
8541 .model_id = ST_M50FW016,
8542 .total_size = 2048,
8543 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008544 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008545 .tested = TEST_UNTESTED,
8546 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008547 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008548 .block_erasers =
8549 {
8550 {
8551 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008552 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008553 }
8554 },
Sean Nelson28accc22010-03-19 18:47:06 +00008555 .unlock = unlock_stm50flw0x0x,
8556 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008557 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008558 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008559 },
8560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008561 {
8562 .vendor = "ST",
8563 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008564 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008565 .manufacture_id = ST_ID,
8566 .model_id = ST_M50FW040,
8567 .total_size = 512,
8568 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008569 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008570 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008571 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008572 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008573 .block_erasers =
8574 {
8575 {
8576 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008577 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008578 }
8579 },
Sean Nelson28accc22010-03-19 18:47:06 +00008580 .unlock = unlock_stm50flw0x0x,
8581 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008583 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008584 },
8585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008586 {
8587 .vendor = "ST",
8588 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008589 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008590 .manufacture_id = ST_ID,
8591 .model_id = ST_M50FW080,
8592 .total_size = 1024,
8593 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008594 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008595 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008596 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008597 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008598 .block_erasers =
8599 {
8600 {
8601 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008602 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008603 }
8604 },
Sean Nelson28accc22010-03-19 18:47:06 +00008605 .unlock = unlock_stm50flw0x0x,
8606 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008608 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008609 },
8610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008611 {
8612 .vendor = "ST",
8613 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008614 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008615 .manufacture_id = ST_ID,
8616 .model_id = ST_M50LPW116,
8617 .total_size = 2048,
8618 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008619 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008620 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008621 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008622 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008623 .block_erasers =
8624 {
8625 {
8626 .eraseblocks = {
8627 {4 * 1024, 16},
8628 {64 * 1024, 30},
8629 {32 * 1024, 1},
8630 {8 * 1024, 2},
8631 {16 * 1024, 1},
8632 },
Sean Nelson28accc22010-03-19 18:47:06 +00008633 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008634 }
8635 },
Sean Nelson28accc22010-03-19 18:47:06 +00008636 .unlock = unlock_stm50flw0x0x,
8637 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008639 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008640 },
8641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008642 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008643 .vendor = "SyncMOS/MoselVitelic",
8644 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008645 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008646 .manufacture_id = SYNCMOS_MVC_ID,
8647 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008648 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008649 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008650 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008651 .tested = TEST_UNTESTED,
8652 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008653 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008654 .block_erasers =
8655 {
8656 {
8657 .eraseblocks = { {512, 256} },
8658 .block_erase = erase_sector_jedec,
8659 }, {
8660 .eraseblocks = { {128 * 1024, 1} },
8661 .block_erase = erase_chip_block_jedec,
8662 },
8663 },
Sean Nelson35727f72010-01-28 23:55:12 +00008664 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008665 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008666 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008667 },
8668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008669 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008670 .vendor = "SyncMOS/MoselVitelic",
8671 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008672 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008673 .manufacture_id = SYNCMOS_MVC_ID,
8674 .model_id = SM_MVC_29C51001T,
8675 .total_size = 128,
8676 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008677 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008678 .tested = TEST_UNTESTED,
8679 .probe = probe_jedec,
8680 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8681 .block_erasers =
8682 {
8683 {
8684 .eraseblocks = { {512, 256} },
8685 .block_erase = erase_sector_jedec,
8686 }, {
8687 .eraseblocks = { {128 * 1024, 1} },
8688 .block_erase = erase_chip_block_jedec,
8689 },
8690 },
8691 .write = write_jedec_1,
8692 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008693 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008694 },
8695
8696 {
8697 .vendor = "SyncMOS/MoselVitelic",
8698 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008699 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008700 .manufacture_id = SYNCMOS_MVC_ID,
8701 .model_id = SM_MVC_29C51002B,
8702 .total_size = 256,
8703 .page_size = 512,
8704 .feature_bits = FEATURE_EITHER_RESET,
8705 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008706 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008707 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008708 .block_erasers =
8709 {
8710 {
8711 .eraseblocks = { {512, 512} },
8712 .block_erase = erase_sector_jedec,
8713 }, {
8714 .eraseblocks = { {256 * 1024, 1} },
8715 .block_erase = erase_chip_block_jedec,
8716 },
8717 },
Sean Nelson35727f72010-01-28 23:55:12 +00008718 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008719 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008720 },
8721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008722 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008723 .vendor = "SyncMOS/MoselVitelic",
8724 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008725 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008726 .manufacture_id = SYNCMOS_MVC_ID,
8727 .model_id = SM_MVC_29C51002T,
8728 .total_size = 256,
8729 .page_size = 512,
8730 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008731 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008732 .probe = probe_jedec,
8733 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8734 .block_erasers =
8735 {
8736 {
8737 .eraseblocks = { {512, 512} },
8738 .block_erase = erase_sector_jedec,
8739 }, {
8740 .eraseblocks = { {256 * 1024, 1} },
8741 .block_erase = erase_chip_block_jedec,
8742 },
8743 },
8744 .write = write_jedec_1,
8745 .read = read_memmapped,
8746 },
8747
8748 {
8749 .vendor = "SyncMOS/MoselVitelic",
8750 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008751 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008752 .manufacture_id = SYNCMOS_MVC_ID,
8753 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008754 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008755 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008756 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 .tested = TEST_UNTESTED,
8758 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008759 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008760 .block_erasers =
8761 {
8762 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008763 .eraseblocks = { {1024, 512} },
8764 .block_erase = erase_sector_jedec,
8765 }, {
8766 .eraseblocks = { {512 * 1024, 1} },
8767 .block_erase = erase_chip_block_jedec,
8768 },
8769 },
8770 .write = write_jedec_1,
8771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008772 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008773 },
8774
8775 {
8776 .vendor = "SyncMOS/MoselVitelic",
8777 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008778 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008779 .manufacture_id = SYNCMOS_MVC_ID,
8780 .model_id = SM_MVC_29C51004T,
8781 .total_size = 512,
8782 .page_size = 1024,
8783 .feature_bits = FEATURE_EITHER_RESET,
8784 .tested = TEST_UNTESTED,
8785 .probe = probe_jedec,
8786 .probe_timing = TIMING_ZERO,
8787 .block_erasers =
8788 {
8789 {
8790 .eraseblocks = { {1024, 512} },
8791 .block_erase = erase_sector_jedec,
8792 }, {
8793 .eraseblocks = { {512 * 1024, 1} },
8794 .block_erase = erase_chip_block_jedec,
8795 },
8796 },
8797 .write = write_jedec_1,
8798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008799 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008800 },
8801
8802 {
8803 .vendor = "SyncMOS/MoselVitelic",
8804 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008805 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008806 .manufacture_id = SYNCMOS_MVC_ID,
8807 .model_id = SM_MVC_29C31004B,
8808 .total_size = 512,
8809 .page_size = 1024,
8810 .feature_bits = FEATURE_EITHER_RESET,
8811 .tested = TEST_UNTESTED,
8812 .probe = probe_jedec,
8813 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8814 .block_erasers =
8815 {
8816 {
8817 .eraseblocks = { {1024, 512} },
8818 .block_erase = erase_sector_jedec,
8819 }, {
8820 .eraseblocks = { {512 * 1024, 1} },
8821 .block_erase = erase_chip_block_jedec,
8822 },
8823 },
8824 .write = write_jedec_1,
8825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008826 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008827 },
8828
8829 {
8830 .vendor = "SyncMOS/MoselVitelic",
8831 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008832 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008833 .manufacture_id = SYNCMOS_MVC_ID,
8834 .model_id = SM_MVC_29C31004T,
8835 .total_size = 512,
8836 .page_size = 1024,
8837 .feature_bits = FEATURE_EITHER_RESET,
8838 .tested = TEST_UNTESTED,
8839 .probe = probe_jedec,
8840 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8841 .block_erasers =
8842 {
8843 {
8844 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008845 .block_erase = erase_sector_jedec,
8846 }, {
8847 .eraseblocks = { {512 * 1024, 1} },
8848 .block_erase = erase_chip_block_jedec,
8849 },
8850 },
Sean Nelson35727f72010-01-28 23:55:12 +00008851 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008853 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008854 },
8855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008856 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008857 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008858 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008859 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008860 .manufacture_id = TI_OLD_ID,
8861 .model_id = TI_TMS29F002RB,
8862 .total_size = 256,
8863 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008864 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008865 .tested = TEST_UNTESTED,
8866 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008867 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008868 .block_erasers =
8869 {
8870 {
8871 .eraseblocks = {
8872 {16 * 1024, 1},
8873 {8 * 1024, 2},
8874 {32 * 1024, 1},
8875 {64 * 1024, 3},
8876 },
8877 .block_erase = erase_sector_jedec,
8878 }, {
8879 .eraseblocks = { {256 * 1024, 1} },
8880 .block_erase = erase_chip_block_jedec,
8881 },
8882 },
Sean Nelson35727f72010-01-28 23:55:12 +00008883 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008884 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008885 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008886 },
8887
8888 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008889 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008890 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008891 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008892 .manufacture_id = TI_OLD_ID,
8893 .model_id = TI_TMS29F002RT,
8894 .total_size = 256,
8895 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008896 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008897 .tested = TEST_UNTESTED,
8898 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008899 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008900 .block_erasers =
8901 {
8902 {
8903 .eraseblocks = {
8904 {64 * 1024, 3},
8905 {32 * 1024, 1},
8906 {8 * 1024, 2},
8907 {16 * 1024, 1},
8908 },
8909 .block_erase = erase_sector_jedec,
8910 }, {
8911 .eraseblocks = { {256 * 1024, 1} },
8912 .block_erase = erase_chip_block_jedec,
8913 },
8914 },
Sean Nelson35727f72010-01-28 23:55:12 +00008915 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008916 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008917 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008918 },
8919
8920 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008921 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008922 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008923 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008924 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008925 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008926 .total_size = 1024,
8927 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008928 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008930 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008931 .probe = probe_spi_rdid,
8932 .probe_timing = TIMING_ZERO,
8933 .block_erasers =
8934 {
8935 {
8936 .eraseblocks = { {4 * 1024, 256} },
8937 .block_erase = spi_block_erase_20,
8938 }, {
8939 .eraseblocks = { {32 * 1024, 32} },
8940 .block_erase = spi_block_erase_52,
8941 }, {
8942 .eraseblocks = { {64 * 1024, 16} },
8943 .block_erase = spi_block_erase_d8,
8944 }, {
8945 .eraseblocks = { {1024 * 1024, 1} },
8946 .block_erase = spi_block_erase_60,
8947 }, {
8948 .eraseblocks = { {1024 * 1024, 1} },
8949 .block_erase = spi_block_erase_c7,
8950 }
8951 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008952 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008953 .write = spi_chip_write_256,
8954 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008955 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008956 },
8957
8958 {
8959 .vendor = "Winbond",
8960 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008961 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008962 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008963 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008964 .total_size = 2048,
8965 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008966 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8967 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008968 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008969 .probe = probe_spi_rdid,
8970 .probe_timing = TIMING_ZERO,
8971 .block_erasers =
8972 {
8973 {
8974 .eraseblocks = { {4 * 1024, 512} },
8975 .block_erase = spi_block_erase_20,
8976 }, {
8977 .eraseblocks = { {32 * 1024, 64} },
8978 .block_erase = spi_block_erase_52,
8979 }, {
8980 .eraseblocks = { {64 * 1024, 32} },
8981 .block_erase = spi_block_erase_d8,
8982 }, {
8983 .eraseblocks = { {2 * 1024 * 1024, 1} },
8984 .block_erase = spi_block_erase_60,
8985 }, {
8986 .eraseblocks = { {2 * 1024 * 1024, 1} },
8987 .block_erase = spi_block_erase_c7,
8988 }
8989 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008990 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008991 .write = spi_chip_write_256,
8992 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008993 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008994 },
8995
8996 {
8997 .vendor = "Winbond",
8998 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008999 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009000 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009001 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009002 .total_size = 4096,
9003 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009004 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9005 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009006 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009007 .probe = probe_spi_rdid,
9008 .probe_timing = TIMING_ZERO,
9009 .block_erasers =
9010 {
9011 {
9012 .eraseblocks = { {4 * 1024, 1024} },
9013 .block_erase = spi_block_erase_20,
9014 }, {
9015 .eraseblocks = { {32 * 1024, 128} },
9016 .block_erase = spi_block_erase_52,
9017 }, {
9018 .eraseblocks = { {64 * 1024, 64} },
9019 .block_erase = spi_block_erase_d8,
9020 }, {
9021 .eraseblocks = { {4 * 1024 * 1024, 1} },
9022 .block_erase = spi_block_erase_60,
9023 }, {
9024 .eraseblocks = { {4 * 1024 * 1024, 1} },
9025 .block_erase = spi_block_erase_c7,
9026 }
9027 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009028 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009029 .write = spi_chip_write_256,
9030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009031 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009032 },
9033
9034 {
9035 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00009036 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009037 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00009038 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009039 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00009040 .total_size = 8192,
9041 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009042 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009044 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00009045 .probe = probe_spi_rdid,
9046 .probe_timing = TIMING_ZERO,
9047 .block_erasers =
9048 {
9049 {
9050 .eraseblocks = { {4 * 1024, 2048} },
9051 .block_erase = spi_block_erase_20,
9052 }, {
9053 .eraseblocks = { {32 * 1024, 256} },
9054 .block_erase = spi_block_erase_52,
9055 }, {
9056 .eraseblocks = { {64 * 1024, 128} },
9057 .block_erase = spi_block_erase_d8,
9058 }, {
9059 .eraseblocks = { {8 * 1024 * 1024, 1} },
9060 .block_erase = spi_block_erase_60,
9061 }, {
9062 .eraseblocks = { {8 * 1024 * 1024, 1} },
9063 .block_erase = spi_block_erase_c7,
9064 }
9065 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009066 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00009067 .write = spi_chip_write_256,
9068 .read = spi_chip_read,
9069 },
9070
9071 {
9072 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00009073 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009074 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009075 .manufacture_id = WINBOND_NEX_ID,
9076 .model_id = WINBOND_NEX_W25Q128,
9077 .total_size = 16384,
9078 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009079 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9080 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009081 .tested = TEST_OK_PROBE,
9082 .probe = probe_spi_rdid,
9083 .probe_timing = TIMING_ZERO,
9084 .block_erasers =
9085 {
9086 {
9087 .eraseblocks = { {4 * 1024, 4096} },
9088 .block_erase = spi_block_erase_20,
9089 }, {
9090 .eraseblocks = { {32 * 1024, 512} },
9091 .block_erase = spi_block_erase_52,
9092 }, {
9093 .eraseblocks = { {64 * 1024, 256} },
9094 .block_erase = spi_block_erase_d8,
9095 }, {
9096 .eraseblocks = { {16 * 1024 * 1024, 1} },
9097 .block_erase = spi_block_erase_60,
9098 }, {
9099 .eraseblocks = { {16 * 1024 * 1024, 1} },
9100 .block_erase = spi_block_erase_c7,
9101 }
9102 },
9103 .unlock = spi_disable_blockprotect,
9104 .write = spi_chip_write_256,
9105 .read = spi_chip_read,
9106 },
9107
9108 {
9109 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009110 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009111 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009112 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009113 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009114 .total_size = 128,
9115 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009116 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009117 .tested = TEST_UNTESTED,
9118 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009119 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009120 .block_erasers =
9121 {
9122 {
9123 .eraseblocks = { {4 * 1024, 32} },
9124 .block_erase = spi_block_erase_20,
9125 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009126 .eraseblocks = { {64 * 1024, 2} },
9127 .block_erase = spi_block_erase_d8,
9128 }, {
9129 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009130 .block_erase = spi_block_erase_c7,
9131 }
9132 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009133 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009137 },
9138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009139 {
9140 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009141 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009143 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009144 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009145 .total_size = 256,
9146 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009147 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009148 .tested = TEST_UNTESTED,
9149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009150 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009151 .block_erasers =
9152 {
9153 {
9154 .eraseblocks = { {4 * 1024, 64} },
9155 .block_erase = spi_block_erase_20,
9156 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009157 .eraseblocks = { {64 * 1024, 4} },
9158 .block_erase = spi_block_erase_d8,
9159 }, {
9160 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009161 .block_erase = spi_block_erase_c7,
9162 }
9163 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009164 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009165 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009166 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009167 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009168 },
9169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009170 {
9171 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009172 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009173 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009174 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009175 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009176 .total_size = 512,
9177 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009178 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00009179 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009180 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009181 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009182 .block_erasers =
9183 {
9184 {
9185 .eraseblocks = { {4 * 1024, 128} },
9186 .block_erase = spi_block_erase_20,
9187 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009188 .eraseblocks = { {64 * 1024, 8} },
9189 .block_erase = spi_block_erase_d8,
9190 }, {
9191 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009192 .block_erase = spi_block_erase_c7,
9193 }
9194 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009195 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009196 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009197 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009198 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009199 },
9200
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009201 {
9202 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009203 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009204 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009205 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009206 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009207 .total_size = 1024,
9208 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009209 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00009210 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009211 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009212 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009213 .block_erasers =
9214 {
9215 {
9216 .eraseblocks = { {4 * 1024, 256} },
9217 .block_erase = spi_block_erase_20,
9218 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009219 .eraseblocks = { {64 * 1024, 16} },
9220 .block_erase = spi_block_erase_d8,
9221 }, {
9222 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009223 .block_erase = spi_block_erase_c7,
9224 }
9225 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009226 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009227 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009228 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009229 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009230 },
9231
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009232 {
9233 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009234 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009235 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00009236 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009237 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00009238 .total_size = 2048,
9239 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009240 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00009241 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00009242 .probe = probe_spi_rdid,
9243 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009244 .block_erasers =
9245 {
9246 {
9247 .eraseblocks = { {4 * 1024, 512} },
9248 .block_erase = spi_block_erase_20,
9249 }, {
9250 .eraseblocks = { {32 * 1024, 64} },
9251 .block_erase = spi_block_erase_52,
9252 }, {
9253 .eraseblocks = { {64 * 1024, 32} },
9254 .block_erase = spi_block_erase_d8,
9255 }, {
9256 .eraseblocks = { {2 * 1024 * 1024, 1} },
9257 .block_erase = spi_block_erase_60,
9258 }, {
9259 .eraseblocks = { {2 * 1024 * 1024, 1} },
9260 .block_erase = spi_block_erase_c7,
9261 }
9262 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009263 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00009264 .write = spi_chip_write_256,
9265 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009266 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00009267 },
9268
9269 {
9270 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009271 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009272 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009273 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009274 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00009275 .total_size = 4096,
9276 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009277 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00009278 .tested = TEST_OK_PROBE,
9279 .probe = probe_spi_rdid,
9280 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009281 .block_erasers =
9282 {
9283 {
9284 .eraseblocks = { {4 * 1024, 1024} },
9285 .block_erase = spi_block_erase_20,
9286 }, {
9287 .eraseblocks = { {32 * 1024, 128} },
9288 .block_erase = spi_block_erase_52,
9289 }, {
9290 .eraseblocks = { {64 * 1024, 64} },
9291 .block_erase = spi_block_erase_d8,
9292 }, {
9293 .eraseblocks = { {4 * 1024 * 1024, 1} },
9294 .block_erase = spi_block_erase_60,
9295 }, {
9296 .eraseblocks = { {4 * 1024 * 1024, 1} },
9297 .block_erase = spi_block_erase_c7,
9298 }
9299 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009300 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009301 .write = spi_chip_write_256,
9302 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009303 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009304 },
9305
9306 {
9307 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009308 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009309 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009310 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009311 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00009312 .total_size = 8192,
9313 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009314 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009315 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00009316 .probe = probe_spi_rdid,
9317 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009318 .block_erasers =
9319 {
9320 {
9321 .eraseblocks = { {4 * 1024, 2048} },
9322 .block_erase = spi_block_erase_20,
9323 }, {
9324 .eraseblocks = { {32 * 1024, 256} },
9325 .block_erase = spi_block_erase_52,
9326 }, {
9327 .eraseblocks = { {64 * 1024, 128} },
9328 .block_erase = spi_block_erase_d8,
9329 }, {
9330 .eraseblocks = { {8 * 1024 * 1024, 1} },
9331 .block_erase = spi_block_erase_60,
9332 }, {
9333 .eraseblocks = { {8 * 1024 * 1024, 1} },
9334 .block_erase = spi_block_erase_c7,
9335 }
9336 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009337 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009338 .write = spi_chip_write_256,
9339 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009340 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009341 },
9342
9343 {
9344 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009345 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009346 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009347 .manufacture_id = WINBOND_ID,
9348 .model_id = WINBOND_W29C010,
9349 .total_size = 128,
9350 .page_size = 128,
9351 .feature_bits = FEATURE_LONG_RESET,
9352 .tested = TEST_OK_PRE,
9353 .probe = probe_w29ee011,
9354 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
9355 .block_erasers =
9356 {
9357 {
9358 .eraseblocks = { {128 * 1024, 1} },
9359 .block_erase = erase_chip_block_jedec,
9360 }
9361 },
9362 .write = write_jedec,
9363 .read = read_memmapped,
9364 },
9365
9366 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
9367 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009368 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009369 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009370 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009371 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009372 .total_size = 128,
9373 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009374 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00009375 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009376 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009377 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009378 .block_erasers =
9379 {
9380 {
9381 .eraseblocks = { {128 * 1024, 1} },
9382 .block_erase = erase_chip_block_jedec,
9383 }
9384 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009385 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009386 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009387 },
9388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009389 {
9390 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009391 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009392 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009393 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009394 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009395 .total_size = 256,
9396 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009397 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009398 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009399 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009400 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009401 .block_erasers =
9402 {
9403 {
9404 .eraseblocks = { {256 * 1024, 1} },
9405 .block_erase = erase_chip_block_jedec,
9406 }
9407 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009408 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009409 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009410 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009411 },
9412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009413 {
9414 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009415 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009416 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009417 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009418 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009419 .total_size = 512,
9420 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009421 .feature_bits = FEATURE_LONG_RESET,
9422 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009423 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00009424 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009425 .block_erasers =
9426 {
9427 {
9428 .eraseblocks = { {512 * 1024, 1} },
9429 .block_erase = erase_chip_block_jedec,
9430 }
9431 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009432 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009433 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009434 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009435 },
9436
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009437 {
9438 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00009439 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009440 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00009441 .manufacture_id = WINBOND_ID,
9442 .model_id = WINBOND_W39L040,
9443 .total_size = 512,
9444 .page_size = 64 * 1024,
9445 .feature_bits = FEATURE_EITHER_RESET,
9446 .tested = TEST_OK_PR,
9447 .probe = probe_jedec,
9448 .probe_timing = 10,
9449 .block_erasers =
9450 {
9451 {
9452 .eraseblocks = { {4 * 1024, 128} },
9453 .block_erase = erase_block_jedec,
9454 }, {
9455 .eraseblocks = { {64 * 1024, 8} },
9456 .block_erase = erase_sector_jedec,
9457 }, {
9458 .eraseblocks = { {512 * 1024, 1} },
9459 .block_erase = erase_chip_block_jedec,
9460 }
9461 },
9462 .printlock = printlock_w39l040,
9463 .write = write_jedec_1,
9464 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009465 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00009466 },
9467
9468 {
9469 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009470 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009471 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009472 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009473 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009474 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009475 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009476 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009477 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009478 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00009479 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009480 .block_erasers =
9481 {
9482 {
9483 .eraseblocks = { {64 * 1024, 8} },
9484 .block_erase = erase_sector_jedec,
9485 }, {
9486 .eraseblocks = { {512 * 1024, 1} },
9487 .block_erase = erase_chip_block_jedec,
9488 }
9489 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009490 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00009491 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009493 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009494 },
9495
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009496 {
9497 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009498 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009499 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009500 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009501 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009502 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009503 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009504 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009505 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009506 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00009507 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009508 .block_erasers =
9509 {
9510 {
9511 .eraseblocks = { {64 * 1024, 8} },
9512 .block_erase = erase_sector_jedec,
9513 }, {
9514 .eraseblocks = { {512 * 1024, 1} },
9515 .block_erase = erase_chip_block_jedec,
9516 }
9517 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009518 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009519 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009520 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009521 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009522 },
9523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009524 {
9525 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009526 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009527 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009528 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009529 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009530 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009531 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009532 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009533 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009534 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009535 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009536 .block_erasers =
9537 {
9538 {
9539 .eraseblocks = { {64 * 1024, 8} },
9540 .block_erase = erase_sector_jedec,
9541 }, {
9542 .eraseblocks = { {512 * 1024, 1} },
9543 .block_erase = erase_chip_block_jedec,
9544 }
9545 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009546 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009547 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009549 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009550 },
9551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009552 {
9553 .vendor = "Winbond",
9554 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009555 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009556 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009557 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009558 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009559 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009560 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009561 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009562 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009563 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009564 .block_erasers =
9565 {
9566 {
9567 .eraseblocks = { {4 * 1024, 128} },
9568 .block_erase = erase_block_jedec,
9569 }, {
9570 .eraseblocks = { {64 * 1024, 8} },
9571 .block_erase = erase_sector_jedec,
9572 }, {
9573 .eraseblocks = { {512 * 1024, 1} },
9574 .block_erase = erase_chip_block_jedec,
9575 }
9576 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009577 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00009578 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00009579 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009580 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009581 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009582 },
9583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009584 {
9585 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009586 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009587 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009588 .manufacture_id = WINBOND_ID,
9589 .model_id = WINBOND_W39V040B,
9590 .total_size = 512,
9591 .page_size = 64 * 1024,
9592 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009593 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009594 .probe = probe_jedec,
9595 .probe_timing = 10,
9596 .block_erasers =
9597 {
9598 {
9599 .eraseblocks = { {64 * 1024, 8} },
9600 .block_erase = erase_sector_jedec,
9601 }, {
9602 .eraseblocks = { {512 * 1024, 1} },
9603 .block_erase = erase_chip_block_jedec,
9604 }
9605 },
9606 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00009607 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009608 .write = write_jedec_1,
9609 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009610 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009611 },
9612
9613 {
9614 .vendor = "Winbond",
9615 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009616 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009617 .manufacture_id = WINBOND_ID,
9618 .model_id = WINBOND_W39V040C,
9619 .total_size = 512,
9620 .page_size = 64 * 1024,
9621 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009622 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009623 .probe = probe_jedec,
9624 .probe_timing = 10,
9625 .block_erasers =
9626 {
9627 {
9628 .eraseblocks = { {64 * 1024, 8} },
9629 .block_erase = erase_sector_jedec,
9630 }, {
9631 .eraseblocks = { {512 * 1024, 1} },
9632 .block_erase = erase_chip_block_jedec,
9633 }
9634 },
9635 .printlock = printlock_w39v040fc,
9636 .write = write_jedec_1,
9637 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009638 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009639 },
9640
9641 {
9642 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009643 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009644 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009645 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009646 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009647 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009648 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009649 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009650 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009651 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009652 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009653 .block_erasers =
9654 {
9655 {
9656 .eraseblocks = { {64 * 1024, 16} },
9657 .block_erase = erase_sector_jedec,
9658 }, {
9659 .eraseblocks = { {1024 * 1024, 1} },
9660 .block_erase = erase_chip_block_jedec,
9661 }
9662 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009663 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009664 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009665 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009666 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009667 },
9668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009669 {
9670 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009671 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009672 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009673 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009674 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009675 .total_size = 256,
9676 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009677 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009678 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009679 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009680 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009681 .block_erasers =
9682 {
9683 {
9684 .eraseblocks = {
9685 {128 * 1024, 1},
9686 {96 * 1024, 1},
9687 {8 * 1024, 2},
9688 {16 * 1024, 1},
9689 },
9690 .block_erase = erase_sector_jedec,
9691 }, {
9692 .eraseblocks = { {256 * 1024, 1} },
9693 .block_erase = erase_chip_block_jedec,
9694 }
9695 },
Sean Nelson35727f72010-01-28 23:55:12 +00009696 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009698 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009699 },
9700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009701 {
9702 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009703 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009704 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009705 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009706 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009707 .total_size = 256,
9708 .page_size = 128,
9709 .feature_bits = FEATURE_EITHER_RESET,
9710 .tested = TEST_OK_PROBE,
9711 .probe = probe_jedec,
9712 .probe_timing = 10,
9713 .block_erasers =
9714 {
9715 {
9716 .eraseblocks = { {256 * 1024, 1} },
9717 .block_erase = erase_chip_block_jedec,
9718 }
9719 },
9720 .write = write_jedec_1,
9721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009722 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009723 },
9724
9725 {
9726 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009727 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009728 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009729 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009730 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009731 .total_size = 256,
9732 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009733 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009734 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009735 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009736 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009737 .block_erasers =
9738 {
9739 {
9740 .eraseblocks = {
9741 {64 * 1024, 3},
9742 {32 * 1024, 1},
9743 {8 * 1024, 2},
9744 {16 * 1024, 1},
9745 },
9746 .block_erase = erase_sector_jedec,
9747 }, {
9748 .eraseblocks = { {256 * 1024, 1} },
9749 .block_erase = erase_chip_block_jedec,
9750 }
9751 },
Sean Nelson35727f72010-01-28 23:55:12 +00009752 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009754 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009755 },
9756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009757 {
9758 .vendor = "Winbond",
9759 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009760 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009761 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009762 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009763 .total_size = 256,
9764 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009765 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00009766 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009767 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009768 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009769 .block_erasers =
9770 {
9771 {
9772 .eraseblocks = {
9773 {64 * 1024, 3},
9774 {32 * 1024, 1},
9775 {8 * 1024, 2},
9776 {16 * 1024, 1},
9777 },
9778 .block_erase = erase_sector_jedec,
9779 }, {
9780 .eraseblocks = { {256 * 1024, 1} },
9781 .block_erase = erase_chip_block_jedec,
9782 }
9783 },
Sean Nelson35727f72010-01-28 23:55:12 +00009784 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009785 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009786 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009787 },
9788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009789 {
9790 .vendor = "Winbond",
9791 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009792 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009793 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009794 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009795 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009796 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009797 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009798 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009799 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009800 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009801 .block_erasers =
9802 {
9803 {
9804 .eraseblocks = { {64 * 1024, 16}, },
9805 .block_erase = erase_sector_jedec,
9806 }, {
9807 .eraseblocks = { {1024 * 1024, 1} },
9808 .block_erase = erase_chip_block_jedec,
9809 }
9810 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009811 .printlock = printlock_w39v080fa,
9812 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009813 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009814 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009815 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009816 },
9817
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009818 {
9819 .vendor = "Winbond",
9820 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009821 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009822 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009823 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009824 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009825 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009826 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009827 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009828 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009829 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009830 .block_erasers =
9831 {
9832 {
9833 .eraseblocks = { {64 * 1024, 8}, },
9834 .block_erase = erase_sector_jedec,
9835 }, {
9836 .eraseblocks = { {512 * 1024, 1} },
9837 .block_erase = erase_chip_block_jedec,
9838 }
9839 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009840 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009841 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009842 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009843 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009844 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009845
9846 {
9847 .vendor = "Unknown",
9848 .name = "SFDP-capable chip",
9849 .bustype = BUS_SPI,
9850 .manufacture_id = GENERIC_MANUF_ID,
9851 .model_id = SFDP_DEVICE_ID,
9852 /* We present our own "report this" text hence we do not
9853 * want the default "This flash part has status UNTESTED..."
9854 * text to be printed. */
9855 .tested = TEST_OK_PREW,
9856 .probe = probe_spi_sfdp,
9857 .unlock = spi_disable_blockprotect, /* is this safe? */
9858 .read = spi_chip_read,
9859 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +00009860 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009861 /* Everything below will be set by the probing function. */
9862 .write = NULL,
9863 .total_size = 0,
9864 .page_size = 0,
9865 .feature_bits = 0,
9866 .block_erasers = {},
9867 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009869 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009870 .vendor = "Programmer",
9871 .name = "Opaque flash chip",
9872 .bustype = BUS_PROG,
9873 .manufacture_id = PROGMANUF_ID,
9874 .model_id = PROGDEV_ID,
9875 .total_size = 0,
9876 .page_size = 256,
9877 /* probe is assumed to work, rest will be filled in by probe */
9878 .tested = TEST_OK_PROBE,
9879 .probe = probe_opaque,
9880 /* eraseblock sizes will be set by the probing function */
9881 .block_erasers =
9882 {
9883 {
9884 .block_erase = erase_opaque,
9885 }
9886 },
9887 .write = write_opaque,
9888 .read = read_opaque,
9889 },
9890
9891 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009892 .vendor = "AMIC",
9893 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009894 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009895 .manufacture_id = AMIC_ID,
9896 .model_id = GENERIC_DEVICE_ID,
9897 .total_size = 0,
9898 .page_size = 256,
9899 .tested = TEST_BAD_PREW,
9900 .probe = probe_spi_rdid4,
9901 .probe_timing = TIMING_ZERO,
9902 .write = NULL,
9903 .read = NULL,
9904 },
9905
9906 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009907 .vendor = "Atmel",
9908 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009909 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009910 .manufacture_id = ATMEL_ID,
9911 .model_id = GENERIC_DEVICE_ID,
9912 .total_size = 0,
9913 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009914 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009915 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009916 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009917 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009918 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009919 },
9920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009921 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009922 .vendor = "Eon",
9923 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009924 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009925 .manufacture_id = EON_ID_NOPREFIX,
9926 .model_id = GENERIC_DEVICE_ID,
9927 .total_size = 0,
9928 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009929 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009930 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009931 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009932 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009933 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009934 },
9935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009936 {
9937 .vendor = "Macronix",
9938 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009939 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009940 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009941 .model_id = GENERIC_DEVICE_ID,
9942 .total_size = 0,
9943 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009944 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009945 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009946 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009947 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009948 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009949 },
9950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009951 {
9952 .vendor = "PMC",
9953 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009954 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009955 .manufacture_id = PMC_ID,
9956 .model_id = GENERIC_DEVICE_ID,
9957 .total_size = 0,
9958 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009959 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009960 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009961 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009962 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009963 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009964 },
9965
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009966 {
9967 .vendor = "SST",
9968 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009969 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009970 .manufacture_id = SST_ID,
9971 .model_id = GENERIC_DEVICE_ID,
9972 .total_size = 0,
9973 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009974 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009975 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009976 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009977 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009978 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009979 },
9980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009981 {
9982 .vendor = "ST",
9983 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009984 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009985 .manufacture_id = ST_ID,
9986 .model_id = GENERIC_DEVICE_ID,
9987 .total_size = 0,
9988 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009989 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009990 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009991 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009992 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009993 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009994 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009995
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009996 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009997 .vendor = "Sanyo",
9998 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009999 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000010000 .manufacture_id = SANYO_ID,
10001 .model_id = GENERIC_DEVICE_ID,
10002 .total_size = 0,
10003 .page_size = 256,
10004 .tested = TEST_BAD_PREW,
10005 .probe = probe_spi_rdid,
10006 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000010007 .write = NULL,
10008 .read = NULL,
10009 },
10010
10011 {
Stefan Taunereb582572012-09-21 12:52:50 +000010012 .vendor = "Winbond",
10013 .name = "unknown Winbond (ex Nexcom) SPI chip",
10014 .bustype = BUS_SPI,
10015 .manufacture_id = WINBOND_NEX_ID,
10016 .model_id = GENERIC_DEVICE_ID,
10017 .total_size = 0,
10018 .page_size = 256,
10019 .tested = TEST_BAD_PREW,
10020 .probe = probe_spi_rdid,
10021 .probe_timing = TIMING_ZERO,
10022 .write = NULL,
10023 .read = NULL,
10024 },
10025
10026 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010027 .vendor = "Generic",
10028 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010029 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010030 .manufacture_id = GENERIC_MANUF_ID,
10031 .model_id = GENERIC_DEVICE_ID,
10032 .total_size = 0,
10033 .page_size = 256,
10034 .tested = TEST_BAD_PREW,
10035 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010036 .write = NULL,
10037 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000010038
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010039 {
10040 .vendor = "Generic",
10041 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010042 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010043 .manufacture_id = GENERIC_MANUF_ID,
10044 .model_id = GENERIC_DEVICE_ID,
10045 .total_size = 0,
10046 .page_size = 256,
10047 .tested = TEST_BAD_PREW,
10048 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010049 .write = NULL,
10050 },
10051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010052 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000010053};