blob: 7ce4b583bf43b15ba13479dea6acbb10e4de18fb [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
548 .tested = TEST_UNTESTED,
549 .probe = probe_spi_rdid4,
550 .probe_timing = TIMING_ZERO,
551 .block_erasers =
552 {
553 {
554 .eraseblocks = {
555 {32 * 1024, 1},
556 {16 * 1024, 1},
557 {8 * 1024, 1},
558 {4 * 1024, 2},
559 },
560 .block_erase = spi_block_erase_d8,
561 }, {
562 .eraseblocks = { {64 * 1024, 1} },
563 .block_erase = spi_block_erase_c7,
564 }
565 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000566 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000567 .unlock = spi_disable_blockprotect,
568 .write = spi_chip_write_256,
569 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000570 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000571 },
572
573 {
574 .vendor = "AMIC",
575 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000576 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000577 .manufacture_id = AMIC_ID,
578 .model_id = AMIC_A25L05PU,
579 .total_size = 64,
580 .page_size = 256,
581 .tested = TEST_UNTESTED,
582 .probe = probe_spi_rdid4,
583 .probe_timing = TIMING_ZERO,
584 .block_erasers =
585 {
586 {
587 .eraseblocks = {
588 {4 * 1024, 2},
589 {8 * 1024, 1},
590 {16 * 1024, 1},
591 {32 * 1024, 1},
592 },
593 .block_erase = spi_block_erase_d8,
594 }, {
595 .eraseblocks = { {64 * 1024, 1} },
596 .block_erase = spi_block_erase_c7,
597 }
598 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000599 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000600 .unlock = spi_disable_blockprotect,
601 .write = spi_chip_write_256,
602 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000603 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000604 },
605
606 {
607 .vendor = "AMIC",
608 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000609 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000610 .manufacture_id = AMIC_ID,
611 .model_id = AMIC_A25L10PT,
612 .total_size = 128,
613 .page_size = 256,
614 .tested = TEST_UNTESTED,
615 .probe = probe_spi_rdid4,
616 .probe_timing = TIMING_ZERO,
617 .block_erasers =
618 {
619 {
620 .eraseblocks = {
621 {64 * 1024, 1},
622 {32 * 1024, 1},
623 {16 * 1024, 1},
624 {8 * 1024, 1},
625 {4 * 1024, 2},
626 },
627 .block_erase = spi_block_erase_d8,
628 }, {
629 .eraseblocks = { {128 * 1024, 1} },
630 .block_erase = spi_block_erase_c7,
631 }
632 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000633 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000634 .unlock = spi_disable_blockprotect,
635 .write = spi_chip_write_256,
636 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000637 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000638 },
639
640 {
641 .vendor = "AMIC",
642 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000643 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000644 .manufacture_id = AMIC_ID,
645 .model_id = AMIC_A25L10PU,
646 .total_size = 128,
647 .page_size = 256,
648 .tested = TEST_UNTESTED,
649 .probe = probe_spi_rdid4,
650 .probe_timing = TIMING_ZERO,
651 .block_erasers =
652 {
653 {
654 .eraseblocks = {
655 {4 * 1024, 2},
656 {8 * 1024, 1},
657 {16 * 1024, 1},
658 {32 * 1024, 1},
659 {64 * 1024, 1},
660 },
661 .block_erase = spi_block_erase_d8,
662 }, {
663 .eraseblocks = { {128 * 1024, 1} },
664 .block_erase = spi_block_erase_c7,
665 }
666 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000667 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000668 .unlock = spi_disable_blockprotect,
669 .write = spi_chip_write_256,
670 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000671 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 },
673
674 {
675 .vendor = "AMIC",
676 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000677 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000678 .manufacture_id = AMIC_ID,
679 .model_id = AMIC_A25L20PT,
680 .total_size = 256,
681 .page_size = 256,
682 .tested = TEST_UNTESTED,
683 .probe = probe_spi_rdid4,
684 .probe_timing = TIMING_ZERO,
685 .block_erasers =
686 {
687 {
688 .eraseblocks = {
689 {64 * 1024, 3},
690 {32 * 1024, 1},
691 {16 * 1024, 1},
692 {8 * 1024, 1},
693 {4 * 1024, 2},
694 },
695 .block_erase = spi_block_erase_d8,
696 }, {
697 .eraseblocks = { {256 * 1024, 1} },
698 .block_erase = spi_block_erase_c7,
699 }
700 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000701 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000702 .unlock = spi_disable_blockprotect,
703 .write = spi_chip_write_256,
704 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000705 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000706 },
707
708 {
709 .vendor = "AMIC",
710 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000711 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000712 .manufacture_id = AMIC_ID,
713 .model_id = AMIC_A25L20PU,
714 .total_size = 256,
715 .page_size = 256,
716 .tested = TEST_UNTESTED,
717 .probe = probe_spi_rdid4,
718 .probe_timing = TIMING_ZERO,
719 .block_erasers =
720 {
721 {
722 .eraseblocks = {
723 {4 * 1024, 2},
724 {8 * 1024, 1},
725 {16 * 1024, 1},
726 {32 * 1024, 1},
727 {64 * 1024, 3},
728 },
729 .block_erase = spi_block_erase_d8,
730 }, {
731 .eraseblocks = { {256 * 1024, 1} },
732 .block_erase = spi_block_erase_c7,
733 }
734 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000735 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000736 .unlock = spi_disable_blockprotect,
737 .write = spi_chip_write_256,
738 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000739 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000740 },
741
742 /* The A25L40P{T,U} chips are distinguished by their
743 * erase block layouts, but without any distinction in RDID.
744 * This inexplicable quirk was verified by Rudolf Marek
745 * and discussed on the flashrom mailing list on 2010-07-12.
746 */
747 {
748 .vendor = "AMIC",
749 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000750 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000751 .manufacture_id = AMIC_ID,
752 .model_id = AMIC_A25L40PT,
753 .total_size = 512,
754 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000755 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000756 .probe = probe_spi_rdid4,
757 .probe_timing = TIMING_ZERO,
758 .block_erasers =
759 {
760 {
761 .eraseblocks = {
762 {64 * 1024, 7},
763 {32 * 1024, 1},
764 {16 * 1024, 1},
765 {8 * 1024, 1},
766 {4 * 1024, 2},
767 },
768 .block_erase = spi_block_erase_d8,
769 }, {
770 .eraseblocks = { {512 * 1024, 1} },
771 .block_erase = spi_block_erase_c7,
772 }
773 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000774 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000775 .unlock = spi_disable_blockprotect,
776 .write = spi_chip_write_256,
777 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000778 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000779 },
780
781 {
782 .vendor = "AMIC",
783 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000784 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000785 .manufacture_id = AMIC_ID,
786 .model_id = AMIC_A25L40PU,
787 .total_size = 512,
788 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000789 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000790 .probe = probe_spi_rdid4,
791 .probe_timing = TIMING_ZERO,
792 .block_erasers =
793 {
794 {
795 .eraseblocks = {
796 {4 * 1024, 2},
797 {8 * 1024, 1},
798 {16 * 1024, 1},
799 {32 * 1024, 1},
800 {64 * 1024, 7},
801 },
802 .block_erase = spi_block_erase_d8,
803 }, {
804 .eraseblocks = { {512 * 1024, 1} },
805 .block_erase = spi_block_erase_c7,
806 }
807 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000808 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000809 .unlock = spi_disable_blockprotect,
810 .write = spi_chip_write_256,
811 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000812 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000813 },
814
815 {
816 .vendor = "AMIC",
817 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000818 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 .manufacture_id = AMIC_ID,
820 .model_id = AMIC_A25L80P,
821 .total_size = 1024,
822 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000823 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000824 .probe = probe_spi_rdid4,
825 .probe_timing = TIMING_ZERO,
826 .block_erasers =
827 {
828 {
829 .eraseblocks = {
830 {4 * 1024, 2},
831 {8 * 1024, 1},
832 {16 * 1024, 1},
833 {32 * 1024, 1},
834 {64 * 1024, 15},
835 },
836 .block_erase = spi_block_erase_d8,
837 }, {
838 .eraseblocks = { {1024 * 1024, 1} },
839 .block_erase = spi_block_erase_c7,
840 }
841 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000842 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000843 .unlock = spi_disable_blockprotect,
844 .write = spi_chip_write_256,
845 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000846 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000847 },
848
849 {
850 .vendor = "AMIC",
851 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000852 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 .manufacture_id = AMIC_ID,
854 .model_id = AMIC_A25L16PT,
855 .total_size = 2048,
856 .page_size = 256,
857 .tested = TEST_UNTESTED,
858 .probe = probe_spi_rdid4,
859 .probe_timing = TIMING_ZERO,
860 .block_erasers =
861 {
862 {
863 .eraseblocks = {
864 {64 * 1024, 31},
865 {32 * 1024, 1},
866 {16 * 1024, 1},
867 {8 * 1024, 1},
868 {4 * 1024, 2},
869 },
870 .block_erase = spi_block_erase_d8,
871 }, {
872 .eraseblocks = { {2048 * 1024, 1} },
873 .block_erase = spi_block_erase_60,
874 }, {
875 .eraseblocks = { {2048 * 1024, 1} },
876 .block_erase = spi_block_erase_c7,
877 }
878 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000879 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000880 .unlock = spi_disable_blockprotect,
881 .write = spi_chip_write_256,
882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000883 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000884 },
885
886 {
887 .vendor = "AMIC",
888 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000889 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .manufacture_id = AMIC_ID,
891 .model_id = AMIC_A25L16PU,
892 .total_size = 2048,
893 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000894 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000895 .probe = probe_spi_rdid4,
896 .probe_timing = TIMING_ZERO,
897 .block_erasers =
898 {
899 {
900 .eraseblocks = {
901 {4 * 1024, 2},
902 {8 * 1024, 1},
903 {16 * 1024, 1},
904 {32 * 1024, 1},
905 {64 * 1024, 31},
906 },
907 .block_erase = spi_block_erase_d8,
908 }, {
909 .eraseblocks = { {2048 * 1024, 1} },
910 .block_erase = spi_block_erase_60,
911 }, {
912 .eraseblocks = { {2048 * 1024, 1} },
913 .block_erase = spi_block_erase_c7,
914 }
915 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000916 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000917 .unlock = spi_disable_blockprotect,
918 .write = spi_chip_write_256,
919 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000920 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000921 },
922
923 {
924 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000925 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000926 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000927 .manufacture_id = AMIC_ID_NOPREFIX,
928 .model_id = AMIC_A25L512,
929 .total_size = 64,
930 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000931 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000932 .tested = TEST_UNTESTED,
933 .probe = probe_spi_rdid,
934 .probe_timing = TIMING_ZERO,
935 .block_erasers =
936 {
937 {
938 .eraseblocks = { { 4 * 1024, 16 } },
939 .block_erase = spi_block_erase_20,
940 }, {
941 .eraseblocks = { { 64 * 1024, 1 } },
942 .block_erase = spi_block_erase_d8,
943 }, {
944 .eraseblocks = { { 64 * 1024, 1 } },
945 .block_erase = spi_block_erase_c7,
946 }
947 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000948 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000949 .unlock = spi_disable_blockprotect,
950 .write = spi_chip_write_256,
951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000952 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000953 },
954
955 {
956 .vendor = "AMIC",
957 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000958 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000959 .manufacture_id = AMIC_ID_NOPREFIX,
960 .model_id = AMIC_A25L010,
961 .total_size = 128,
962 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000963 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000964 .tested = TEST_UNTESTED,
965 .probe = probe_spi_rdid,
966 .probe_timing = TIMING_ZERO,
967 .block_erasers =
968 {
969 {
970 .eraseblocks = { { 4 * 1024, 32 } },
971 .block_erase = spi_block_erase_20,
972 }, {
973 .eraseblocks = { { 64 * 1024, 2 } },
974 .block_erase = spi_block_erase_d8,
975 }, {
976 .eraseblocks = { { 128 * 1024, 1 } },
977 .block_erase = spi_block_erase_c7,
978 }
979 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000980 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000981 .unlock = spi_disable_blockprotect,
982 .write = spi_chip_write_256,
983 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000984 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000985 },
986
987 {
988 .vendor = "AMIC",
989 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000990 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000991 .manufacture_id = AMIC_ID_NOPREFIX,
992 .model_id = AMIC_A25L020,
993 .total_size = 256,
994 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000995 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000996 .tested = TEST_UNTESTED,
997 .probe = probe_spi_rdid,
998 .probe_timing = TIMING_ZERO,
999 .block_erasers =
1000 {
1001 {
1002 .eraseblocks = { { 4 * 1024, 64 } },
1003 .block_erase = spi_block_erase_20,
1004 }, {
1005 .eraseblocks = { { 64 * 1024, 4 } },
1006 .block_erase = spi_block_erase_d8,
1007 }, {
1008 .eraseblocks = { { 256 * 1024, 1 } },
1009 .block_erase = spi_block_erase_c7,
1010 }
1011 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001012 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001013 .unlock = spi_disable_blockprotect,
1014 .write = spi_chip_write_256,
1015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001016 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001017 },
1018
1019 {
1020 .vendor = "AMIC",
1021 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001022 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001023 .manufacture_id = AMIC_ID_NOPREFIX,
1024 .model_id = AMIC_A25L040,
1025 .total_size = 512,
1026 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001027 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001028 .tested = TEST_UNTESTED,
1029 .probe = probe_spi_rdid,
1030 .probe_timing = TIMING_ZERO,
1031 .block_erasers =
1032 {
1033 {
1034 .eraseblocks = { { 4 * 1024, 128 } },
1035 .block_erase = spi_block_erase_20,
1036 }, {
1037 .eraseblocks = { { 64 * 1024, 8 } },
1038 .block_erase = spi_block_erase_d8,
1039 }, {
1040 .eraseblocks = { { 512 * 1024, 1 } },
1041 .block_erase = spi_block_erase_c7,
1042 }
1043 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001044 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001045 .unlock = spi_disable_blockprotect,
1046 .write = spi_chip_write_256,
1047 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001048 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001049 },
1050
1051 {
1052 .vendor = "AMIC",
1053 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001054 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001055 .manufacture_id = AMIC_ID_NOPREFIX,
1056 .model_id = AMIC_A25L080,
1057 .total_size = 1024,
1058 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001059 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001060 .tested = TEST_UNTESTED,
1061 .probe = probe_spi_rdid,
1062 .probe_timing = TIMING_ZERO,
1063 .block_erasers =
1064 {
1065 {
1066 .eraseblocks = { { 4 * 1024, 256 } },
1067 .block_erase = spi_block_erase_20,
1068 }, {
1069 .eraseblocks = { { 64 * 1024, 16 } },
1070 .block_erase = spi_block_erase_d8,
1071 }, {
1072 .eraseblocks = { { 1024 * 1024, 1 } },
1073 .block_erase = spi_block_erase_c7,
1074 }
1075 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001076 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001077 .unlock = spi_disable_blockprotect,
1078 .write = spi_chip_write_256,
1079 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001080 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001081 },
1082
1083 {
1084 .vendor = "AMIC",
1085 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001086 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001087 .manufacture_id = AMIC_ID_NOPREFIX,
1088 .model_id = AMIC_A25L016,
1089 .total_size = 2048,
1090 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001091 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001092 .tested = TEST_UNTESTED,
1093 .probe = probe_spi_rdid,
1094 .probe_timing = TIMING_ZERO,
1095 .block_erasers =
1096 {
1097 {
1098 .eraseblocks = { { 4 * 1024, 512 } },
1099 .block_erase = spi_block_erase_20,
1100 }, {
1101 .eraseblocks = { { 64 * 1024, 32 } },
1102 .block_erase = spi_block_erase_d8,
1103 }, {
1104 .eraseblocks = { { 2048 * 1024, 1 } },
1105 .block_erase = spi_block_erase_c7,
1106 }
1107 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001108 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001109 .unlock = spi_disable_blockprotect,
1110 .write = spi_chip_write_256,
1111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001112 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001113 },
1114
1115 {
1116 .vendor = "AMIC",
1117 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001118 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001119 .manufacture_id = AMIC_ID_NOPREFIX,
1120 .model_id = AMIC_A25L032,
1121 .total_size = 4096,
1122 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001123 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001124 .tested = TEST_UNTESTED,
1125 .probe = probe_spi_rdid,
1126 .probe_timing = TIMING_ZERO,
1127 .block_erasers =
1128 {
1129 {
1130 .eraseblocks = { { 4 * 1024, 1024 } },
1131 .block_erase = spi_block_erase_20,
1132 }, {
1133 .eraseblocks = { { 64 * 1024, 64 } },
1134 .block_erase = spi_block_erase_52,
1135 }, {
1136 .eraseblocks = { { 64 * 1024, 64 } },
1137 .block_erase = spi_block_erase_d8,
1138 }, {
1139 .eraseblocks = { { 4096 * 1024, 1 } },
1140 .block_erase = spi_block_erase_60,
1141 }, {
1142 .eraseblocks = { { 4096 * 1024, 1 } },
1143 .block_erase = spi_block_erase_c7,
1144 }
1145 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001146 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001147 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1148 .write = spi_chip_write_256,
1149 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001150 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001151 },
1152
1153 {
1154 .vendor = "AMIC",
1155 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001156 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001157 .manufacture_id = AMIC_ID_NOPREFIX,
1158 .model_id = AMIC_A25LQ032,
1159 .total_size = 4096,
1160 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001161 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001162 .tested = TEST_UNTESTED,
1163 .probe = probe_spi_rdid,
1164 .probe_timing = TIMING_ZERO,
1165 .block_erasers =
1166 {
1167 {
1168 .eraseblocks = { { 4 * 1024, 1024 } },
1169 .block_erase = spi_block_erase_20,
1170 }, {
1171 .eraseblocks = { { 64 * 1024, 64 } },
1172 .block_erase = spi_block_erase_52,
1173 }, {
1174 .eraseblocks = { { 64 * 1024, 64 } },
1175 .block_erase = spi_block_erase_d8,
1176 }, {
1177 .eraseblocks = { { 4096 * 1024, 1 } },
1178 .block_erase = spi_block_erase_60,
1179 }, {
1180 .eraseblocks = { { 4096 * 1024, 1 } },
1181 .block_erase = spi_block_erase_c7,
1182 }
1183 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001184 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001185 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1186 .write = spi_chip_write_256,
1187 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001188 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001189 },
1190
1191 {
1192 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001193 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001194 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001195 .manufacture_id = AMIC_ID_NOPREFIX,
1196 .model_id = AMIC_A29002B,
1197 .total_size = 256,
1198 .page_size = 64 * 1024,
1199 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1200 .tested = TEST_UNTESTED,
1201 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001202 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001203 .block_erasers =
1204 {
1205 {
1206 .eraseblocks = {
1207 {16 * 1024, 1},
1208 {8 * 1024, 2},
1209 {32 * 1024, 1},
1210 {64 * 1024, 3},
1211 },
1212 .block_erase = erase_sector_jedec,
1213 }, {
1214 .eraseblocks = { {256 * 1024, 1} },
1215 .block_erase = erase_chip_block_jedec,
1216 },
1217 },
1218 .write = write_jedec_1,
1219 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001220 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001221 },
1222
1223 {
1224 .vendor = "AMIC",
1225 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001226 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001227 .manufacture_id = AMIC_ID_NOPREFIX,
1228 .model_id = AMIC_A29002T,
1229 .total_size = 256,
1230 .page_size = 64 * 1024,
1231 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001232 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001233 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001234 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001235 .block_erasers =
1236 {
1237 {
1238 .eraseblocks = {
1239 {64 * 1024, 3},
1240 {32 * 1024, 1},
1241 {8 * 1024, 2},
1242 {16 * 1024, 1},
1243 },
1244 .block_erase = erase_sector_jedec,
1245 }, {
1246 .eraseblocks = { {256 * 1024, 1} },
1247 .block_erase = erase_chip_block_jedec,
1248 },
1249 },
1250 .write = write_jedec_1,
1251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001252 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001253 },
1254
1255 {
1256 .vendor = "AMIC",
1257 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001258 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001259 .manufacture_id = AMIC_ID_NOPREFIX,
1260 .model_id = AMIC_A29040B,
1261 .total_size = 512,
1262 .page_size = 64 * 1024,
1263 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1264 .tested = TEST_UNTESTED,
1265 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001266 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001267 .block_erasers =
1268 {
1269 {
1270 .eraseblocks = { {64 * 1024, 8} },
1271 .block_erase = erase_sector_jedec,
1272 }, {
1273 .eraseblocks = { {512 * 1024, 1} },
1274 .block_erase = erase_chip_block_jedec,
1275 },
1276 },
1277 .write = write_jedec_1,
1278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001279 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 },
1281
1282 {
1283 .vendor = "AMIC",
1284 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001285 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001286 .manufacture_id = AMIC_ID_NOPREFIX,
1287 .model_id = AMIC_A49LF040A,
1288 .total_size = 512,
1289 .page_size = 64 * 1024,
1290 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001291 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001292 .probe = probe_jedec,
1293 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1294 .block_erasers =
1295 {
1296 {
1297 .eraseblocks = { {64 * 1024, 8} },
1298 .block_erase = erase_block_jedec,
1299 }, {
1300 .eraseblocks = { {512 * 1024, 1} },
1301 .block_erase = erase_chip_block_jedec,
1302 }
1303 },
1304 .unlock = unlock_49fl00x,
1305 .write = write_jedec_1,
1306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001307 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001308 },
1309
1310 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001311 .vendor = "Atmel",
1312 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001313 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001314 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001315 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001316 .total_size = 256,
1317 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001318 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001319 .tested = TEST_UNTESTED,
1320 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001321 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001322 .block_erasers =
1323 {
1324 {
1325 .eraseblocks = { {4 * 1024, 64} },
1326 .block_erase = spi_block_erase_20,
1327 }, {
1328 .eraseblocks = { {32 * 1024, 8} },
1329 .block_erase = spi_block_erase_52,
1330 }, {
1331 .eraseblocks = { {64 * 1024, 4} },
1332 .block_erase = spi_block_erase_d8,
1333 }, {
1334 .eraseblocks = { {256 * 1024, 1} },
1335 .block_erase = spi_block_erase_60,
1336 }, {
1337 .eraseblocks = { {256 * 1024, 1} },
1338 .block_erase = spi_block_erase_c7,
1339 }
1340 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001341 .printlock = spi_prettyprint_status_register_at25df,
1342 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001343 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001344 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001345 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001346 },
1347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001348 {
1349 .vendor = "Atmel",
1350 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001351 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001352 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001353 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001354 .total_size = 512,
1355 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001356 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001357 .tested = TEST_UNTESTED,
1358 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001359 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001360 .block_erasers =
1361 {
1362 {
1363 .eraseblocks = { {4 * 1024, 128} },
1364 .block_erase = spi_block_erase_20,
1365 }, {
1366 .eraseblocks = { {32 * 1024, 16} },
1367 .block_erase = spi_block_erase_52,
1368 }, {
1369 .eraseblocks = { {64 * 1024, 8} },
1370 .block_erase = spi_block_erase_d8,
1371 }, {
1372 .eraseblocks = { {512 * 1024, 1} },
1373 .block_erase = spi_block_erase_60,
1374 }, {
1375 .eraseblocks = { {512 * 1024, 1} },
1376 .block_erase = spi_block_erase_c7,
1377 }
1378 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001379 .printlock = spi_prettyprint_status_register_at25df,
1380 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001381 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001382 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001383 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001384 },
1385
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001386 {
1387 .vendor = "Atmel",
1388 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001389 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001390 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001391 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001392 .total_size = 1024,
1393 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001394 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001395 .tested = TEST_UNTESTED,
1396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001397 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001398 .block_erasers =
1399 {
1400 {
1401 .eraseblocks = { {4 * 1024, 256} },
1402 .block_erase = spi_block_erase_20,
1403 }, {
1404 .eraseblocks = { {32 * 1024, 32} },
1405 .block_erase = spi_block_erase_52,
1406 }, {
1407 .eraseblocks = { {64 * 1024, 16} },
1408 .block_erase = spi_block_erase_d8,
1409 }, {
1410 .eraseblocks = { {1024 * 1024, 1} },
1411 .block_erase = spi_block_erase_60,
1412 }, {
1413 .eraseblocks = { {1024 * 1024, 1} },
1414 .block_erase = spi_block_erase_c7,
1415 }
1416 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001417 .printlock = spi_prettyprint_status_register_at25df,
1418 .unlock = spi_disable_blockprotect_at25df,
1419 .write = spi_chip_write_256,
1420 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001421 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001422 },
1423
1424 {
1425 .vendor = "Atmel",
1426 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001427 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001428 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001429 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001430 .total_size = 1024,
1431 .page_size = 256,
1432 .feature_bits = FEATURE_WRSR_WREN,
1433 .tested = TEST_UNTESTED,
1434 .probe = probe_spi_rdid,
1435 .probe_timing = TIMING_ZERO,
1436 .block_erasers =
1437 {
1438 {
1439 .eraseblocks = { {4 * 1024, 256} },
1440 .block_erase = spi_block_erase_20,
1441 }, {
1442 .eraseblocks = { {32 * 1024, 32} },
1443 .block_erase = spi_block_erase_52,
1444 }, {
1445 .eraseblocks = { {64 * 1024, 16} },
1446 .block_erase = spi_block_erase_d8,
1447 }, {
1448 .eraseblocks = { {1024 * 1024, 1} },
1449 .block_erase = spi_block_erase_60,
1450 }, {
1451 .eraseblocks = { {1024 * 1024, 1} },
1452 .block_erase = spi_block_erase_c7,
1453 }
1454 },
1455 .printlock = spi_prettyprint_status_register_at25df_sec,
1456 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001457 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001458 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001459 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001460 },
1461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001462 {
1463 .vendor = "Atmel",
1464 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001465 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001466 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001467 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001468 .total_size = 2048,
1469 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001470 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001471 .tested = TEST_UNTESTED,
1472 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001473 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001474 .block_erasers =
1475 {
1476 {
1477 .eraseblocks = { {4 * 1024, 512} },
1478 .block_erase = spi_block_erase_20,
1479 }, {
1480 .eraseblocks = { {32 * 1024, 64} },
1481 .block_erase = spi_block_erase_52,
1482 }, {
1483 .eraseblocks = { {64 * 1024, 32} },
1484 .block_erase = spi_block_erase_d8,
1485 }, {
1486 .eraseblocks = { {2 * 1024 * 1024, 1} },
1487 .block_erase = spi_block_erase_60,
1488 }, {
1489 .eraseblocks = { {2 * 1024 * 1024, 1} },
1490 .block_erase = spi_block_erase_c7,
1491 }
1492 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001493 .printlock = spi_prettyprint_status_register_at25df_sec,
1494 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001495 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001497 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001498 },
1499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001500 {
1501 .vendor = "Atmel",
1502 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001503 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001504 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001505 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001506 .total_size = 4096,
1507 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001511 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001512 .block_erasers =
1513 {
1514 {
1515 .eraseblocks = { {4 * 1024, 1024} },
1516 .block_erase = spi_block_erase_20,
1517 }, {
1518 .eraseblocks = { {32 * 1024, 128} },
1519 .block_erase = spi_block_erase_52,
1520 }, {
1521 .eraseblocks = { {64 * 1024, 64} },
1522 .block_erase = spi_block_erase_d8,
1523 }, {
1524 .eraseblocks = { {4 * 1024 * 1024, 1} },
1525 .block_erase = spi_block_erase_60,
1526 }, {
1527 .eraseblocks = { {4 * 1024 * 1024, 1} },
1528 .block_erase = spi_block_erase_c7,
1529 }
1530 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001531 .printlock = spi_prettyprint_status_register_at25df,
1532 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001533 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001534 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001535 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001536 },
1537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001538 {
1539 .vendor = "Atmel",
1540 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001541 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001542 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001543 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001544 .total_size = 4096,
1545 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001546 .feature_bits = FEATURE_WRSR_WREN,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00001547 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001548 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001549 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001550 .block_erasers =
1551 {
1552 {
1553 .eraseblocks = { {4 * 1024, 1024} },
1554 .block_erase = spi_block_erase_20,
1555 }, {
1556 .eraseblocks = { {32 * 1024, 128} },
1557 .block_erase = spi_block_erase_52,
1558 }, {
1559 .eraseblocks = { {64 * 1024, 64} },
1560 .block_erase = spi_block_erase_d8,
1561 }, {
1562 .eraseblocks = { {4 * 1024 * 1024, 1} },
1563 .block_erase = spi_block_erase_60,
1564 }, {
1565 .eraseblocks = { {4 * 1024 * 1024, 1} },
1566 .block_erase = spi_block_erase_c7,
1567 }
1568 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001569 .printlock = spi_prettyprint_status_register_at25df_sec,
1570 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001571 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001572 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001573 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001574 },
1575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001576 {
1577 .vendor = "Atmel",
1578 .name = "AT25DF641",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001579 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001580 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001581 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001582 .total_size = 8192,
1583 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001585 .tested = TEST_UNTESTED,
1586 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001587 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001588 .block_erasers =
1589 {
1590 {
1591 .eraseblocks = { {4 * 1024, 2048} },
1592 .block_erase = spi_block_erase_20,
1593 }, {
1594 .eraseblocks = { {32 * 1024, 256} },
1595 .block_erase = spi_block_erase_52,
1596 }, {
1597 .eraseblocks = { {64 * 1024, 128} },
1598 .block_erase = spi_block_erase_d8,
1599 }, {
1600 .eraseblocks = { {8 * 1024 * 1024, 1} },
1601 .block_erase = spi_block_erase_60,
1602 }, {
1603 .eraseblocks = { {8 * 1024 * 1024, 1} },
1604 .block_erase = spi_block_erase_c7,
1605 }
1606 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001607 .printlock = spi_prettyprint_status_register_at25df_sec,
1608 .unlock = spi_disable_blockprotect_at25df_sec,
1609 .write = spi_chip_write_256,
1610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001611 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001612 },
1613
1614 {
1615 .vendor = "Atmel",
1616 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001617 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001618 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001619 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001620 .total_size = 2048,
1621 .page_size = 256,
1622 .feature_bits = FEATURE_WRSR_WREN,
1623 .tested = TEST_UNTESTED,
1624 .probe = probe_spi_rdid,
1625 .probe_timing = TIMING_ZERO,
1626 .block_erasers =
1627 {
1628 {
1629 .eraseblocks = { {4 * 1024, 512} },
1630 .block_erase = spi_block_erase_20,
1631 }, {
1632 .eraseblocks = { {32 * 1024, 64} },
1633 .block_erase = spi_block_erase_52,
1634 }, {
1635 .eraseblocks = { {64 * 1024, 32} },
1636 .block_erase = spi_block_erase_d8,
1637 }, {
1638 .eraseblocks = { {2 * 1024 * 1024, 1} },
1639 .block_erase = spi_block_erase_60,
1640 }, {
1641 .eraseblocks = { {2 * 1024 * 1024, 1} },
1642 .block_erase = spi_block_erase_c7,
1643 }
1644 },
1645 .printlock = spi_prettyprint_status_register_at25df_sec,
1646 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001647 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001648 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001649 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001650 },
1651
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001652 {
1653 .vendor = "Atmel",
1654 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001655 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001656 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001657 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001658 .total_size = 64,
1659 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001660 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001661 .tested = TEST_UNTESTED,
1662 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001663 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001664 .block_erasers =
1665 {
1666 {
1667 .eraseblocks = { {4 * 1024, 16} },
1668 .block_erase = spi_block_erase_20,
1669 }, {
1670 .eraseblocks = { {32 * 1024, 2} },
1671 .block_erase = spi_block_erase_52,
1672 }, {
1673 .eraseblocks = { {32 * 1024, 2} },
1674 .block_erase = spi_block_erase_d8,
1675 }, {
1676 .eraseblocks = { {64 * 1024, 1} },
1677 .block_erase = spi_block_erase_60,
1678 }, {
1679 .eraseblocks = { {64 * 1024, 1} },
1680 .block_erase = spi_block_erase_c7,
1681 }
1682 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001683 .printlock = spi_prettyprint_status_register_at25f,
1684 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001685 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001686 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001687 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001688 },
1689
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001690 {
1691 .vendor = "Atmel",
1692 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001693 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001694 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001695 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001696 .total_size = 128,
1697 .page_size = 256,
1698 .tested = TEST_UNTESTED,
1699 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001700 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001701 .block_erasers =
1702 {
1703 {
1704 .eraseblocks = { {4 * 1024, 32} },
1705 .block_erase = spi_block_erase_20,
1706 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001707 .eraseblocks = { {4 * 1024, 32} },
1708 .block_erase = spi_block_erase_d7,
1709 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001710 .eraseblocks = { {32 * 1024, 4} },
1711 .block_erase = spi_block_erase_52,
1712 }, {
1713 .eraseblocks = { {32 * 1024, 4} },
1714 .block_erase = spi_block_erase_d8,
1715 }, {
1716 .eraseblocks = { {128 * 1024, 1} },
1717 .block_erase = spi_block_erase_60,
1718 }, {
1719 .eraseblocks = { {128 * 1024, 1} },
1720 .block_erase = spi_block_erase_c7,
1721 }
1722 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001723 .printlock = spi_prettyprint_status_register_at25fs010,
1724 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001725 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001728 },
1729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001730 {
1731 .vendor = "Atmel",
1732 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001734 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001735 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001736 .total_size = 512,
1737 .page_size = 256,
1738 .tested = TEST_UNTESTED,
1739 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001740 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001741 .block_erasers =
1742 {
1743 {
1744 .eraseblocks = { {4 * 1024, 128} },
1745 .block_erase = spi_block_erase_20,
1746 }, {
1747 .eraseblocks = { {64 * 1024, 8} },
1748 .block_erase = spi_block_erase_52,
1749 }, {
1750 .eraseblocks = { {64 * 1024, 8} },
1751 .block_erase = spi_block_erase_d8,
1752 }, {
1753 .eraseblocks = { {512 * 1024, 1} },
1754 .block_erase = spi_block_erase_60,
1755 }, {
1756 .eraseblocks = { {512 * 1024, 1} },
1757 .block_erase = spi_block_erase_c7,
1758 }
1759 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001760 .printlock = spi_prettyprint_status_register_at25fs040,
1761 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001762 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001763 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001764 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001765 },
1766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001767 {
1768 .vendor = "Atmel",
1769 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001770 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001771 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001772 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001773 .total_size = 512,
1774 .page_size = 256,
1775 .tested = TEST_UNTESTED,
1776 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001777 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001778 .block_erasers =
1779 {
1780 {
1781 .eraseblocks = { {4 * 1024, 128} },
1782 .block_erase = spi_block_erase_20,
1783 }
1784 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001785 .write = NULL /* Incompatible Page write */,
1786 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001787 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001788 },
1789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001790 {
1791 .vendor = "Atmel",
1792 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001793 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001794 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001795 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001796 .total_size = 1024,
1797 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001798 .feature_bits = FEATURE_WRSR_WREN,
1799 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001800 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001801 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001802 .block_erasers =
1803 {
1804 {
1805 .eraseblocks = { {4 * 1024, 256} },
1806 .block_erase = spi_block_erase_20,
1807 }, {
1808 .eraseblocks = { {32 * 1024, 32} },
1809 .block_erase = spi_block_erase_52,
1810 }, {
1811 .eraseblocks = { {64 * 1024, 16} },
1812 .block_erase = spi_block_erase_d8,
1813 }, {
1814 .eraseblocks = { {1024 * 1024, 1} },
1815 .block_erase = spi_block_erase_60,
1816 }, {
1817 .eraseblocks = { {1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_c7,
1819 }
1820 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001821 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001822 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001823 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001824 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001825 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001826 },
1827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001828 {
1829 .vendor = "Atmel",
1830 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001831 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001832 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001833 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001834 .total_size = 2048,
1835 .page_size = 256,
1836 .tested = TEST_UNTESTED,
1837 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001838 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {4 * 1024, 512} },
1843 .block_erase = spi_block_erase_20,
1844 }, {
1845 .eraseblocks = { {32 * 1024, 64} },
1846 .block_erase = spi_block_erase_52,
1847 }, {
1848 .eraseblocks = { {64 * 1024, 32} },
1849 .block_erase = spi_block_erase_d8,
1850 }, {
1851 .eraseblocks = { {2 * 1024 * 1024, 1} },
1852 .block_erase = spi_block_erase_60,
1853 }, {
1854 .eraseblocks = { {2 * 1024 * 1024, 1} },
1855 .block_erase = spi_block_erase_c7,
1856 }
1857 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001858 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001859 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001860 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001862 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001863 },
1864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 {
1866 .vendor = "Atmel",
1867 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001868 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001869 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001870 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001871 .total_size = 2048,
1872 .page_size = 256,
1873 .tested = TEST_UNTESTED,
1874 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001875 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001876 .block_erasers =
1877 {
1878 {
1879 .eraseblocks = { {4 * 1024, 512} },
1880 .block_erase = spi_block_erase_20,
1881 }, {
1882 .eraseblocks = { {32 * 1024, 64} },
1883 .block_erase = spi_block_erase_52,
1884 }, {
1885 .eraseblocks = { {64 * 1024, 32} },
1886 .block_erase = spi_block_erase_d8,
1887 }, {
1888 .eraseblocks = { {2 * 1024 * 1024, 1} },
1889 .block_erase = spi_block_erase_60,
1890 }, {
1891 .eraseblocks = { {2 * 1024 * 1024, 1} },
1892 .block_erase = spi_block_erase_c7,
1893 }
1894 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001895 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001896 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001897 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001898 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001899 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001900 },
1901
1902 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001903 /*{
1904 .vendor = "Atmel",
1905 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001906 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001907 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001908 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 .total_size = 4096,
1910 .page_size = 256,
1911 .tested = TEST_UNTESTED,
1912 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001913 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001914 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001916 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001917 .read = spi_chip_read,
1918 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001919
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001920 {
1921 .vendor = "Atmel",
1922 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001923 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001925 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001926 .total_size = 512,
1927 .page_size = 256,
1928 .tested = TEST_UNTESTED,
1929 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001930 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001931 .block_erasers =
1932 {
1933 {
1934 .eraseblocks = { {4 * 1024, 128} },
1935 .block_erase = spi_block_erase_20,
1936 }, {
1937 .eraseblocks = { {32 * 1024, 16} },
1938 .block_erase = spi_block_erase_52,
1939 }, {
1940 .eraseblocks = { {64 * 1024, 8} },
1941 .block_erase = spi_block_erase_d8,
1942 }, {
1943 .eraseblocks = { {512 * 1024, 1} },
1944 .block_erase = spi_block_erase_60,
1945 }, {
1946 .eraseblocks = { {512 * 1024, 1} },
1947 .block_erase = spi_block_erase_c7,
1948 }
1949 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .write = NULL /* Incompatible Page write */,
1951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001952 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001953 },
1954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001955 {
1956 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001957 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001958 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001959 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001960 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001961 .total_size = 64,
1962 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001963 .feature_bits = FEATURE_LONG_RESET,
1964 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001965 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001966 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001967 .block_erasers =
1968 {
1969 {
1970 .eraseblocks = { {64 * 1024, 1} },
1971 .block_erase = erase_chip_block_jedec,
1972 }
1973 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001974 .write = write_jedec,
1975 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001976 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001977 },
1978
1979 {
1980 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001981 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001982 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001983 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001984 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001985 .total_size = 128,
1986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001987 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001988 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001989 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001990 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {128 * 1024, 1} },
1995 .block_erase = erase_chip_block_jedec,
1996 }
1997 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001998 .write = write_jedec, /* FIXME */
1999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002000 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002001 },
2002
2003 {
2004 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002006 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002007 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002008 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002009 .total_size = 256,
2010 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002011 .feature_bits = FEATURE_LONG_RESET,
2012 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002014 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {256 * 1024, 1} },
2019 .block_erase = erase_chip_block_jedec,
2020 }
2021 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002024 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002025 },
2026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002027 {
2028 .vendor = "Atmel",
2029 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002030 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002031 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002032 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 .total_size = 512,
2034 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002035 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002036 .tested = TEST_UNTESTED,
2037 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002038 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002039 .block_erasers =
2040 {
2041 {
2042 .eraseblocks = { {512 * 1024, 1} },
2043 .block_erase = erase_chip_block_jedec,
2044 }
2045 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002057 .total_size = 16896 /* No power of two sizes */,
2058 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 .tested = TEST_BAD_READ,
2060 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002061 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002062 .write = NULL /* Incompatible Page write */,
2063 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002064 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002065 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002067 {
2068 .vendor = "Atmel",
2069 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002070 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002071 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002072 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002073 .total_size = 128 /* Size can only be determined from status register */,
2074 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002075 .tested = TEST_BAD_READ,
2076 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002077 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002078 .write = NULL,
2079 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002080 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002081 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002083 {
2084 .vendor = "Atmel",
2085 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002086 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002088 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002089 .total_size = 256 /* Size can only be determined from status register */,
2090 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002091 .tested = TEST_BAD_READ,
2092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002093 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002094 .write = NULL,
2095 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 {
2100 .vendor = "Atmel",
2101 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002102 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002104 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002105 .total_size = 512 /* Size can only be determined from status register */,
2106 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_BAD_READ,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002110 .write = NULL,
2111 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002112 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002113 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002115 {
2116 .vendor = "Atmel",
2117 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002118 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002119 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002120 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002121 .total_size = 1024 /* Size can only be determined from status register */,
2122 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .tested = TEST_BAD_READ,
2124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002125 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002126 .write = NULL,
2127 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002128 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002129 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 {
2132 .vendor = "Atmel",
2133 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002134 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002136 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002137 .total_size = 2048 /* Size can only be determined from status register */,
2138 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .tested = TEST_BAD_READ,
2140 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002141 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002142 .write = NULL,
2143 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002144 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002145 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 {
2148 .vendor = "Atmel",
2149 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002150 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002151 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002152 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002153 .total_size = 4224 /* No power of two sizes */,
2154 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .tested = TEST_BAD_READ,
2156 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002157 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002158 .write = NULL,
2159 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002160 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002161 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 {
2164 .vendor = "Atmel",
2165 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002166 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002168 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002169 .total_size = 4096 /* Size can only be determined from status register */,
2170 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .tested = TEST_BAD_READ,
2172 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002173 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002174 .write = NULL,
2175 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002176 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002177 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 {
2180 .vendor = "Atmel",
2181 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002182 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002183 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002184 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002185 .total_size = 8192 /* Size can only be determined from status register */,
2186 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002187 .tested = TEST_BAD_READ,
2188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002189 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .write = NULL,
2191 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002192 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002193 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 {
2196 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002197 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002198 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002199 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002200 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002201 .total_size = 64,
2202 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002203 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002204 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002205 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002206 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002207 .block_erasers =
2208 {
2209 {
2210 .eraseblocks = { {64 * 1024, 1} },
2211 .block_erase = erase_chip_block_jedec,
2212 }
2213 },
Sean Nelson35727f72010-01-28 23:55:12 +00002214 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002215 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002216 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002217 },
2218
2219 {
2220 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002221 .name = "AT49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002222 .bustype = BUS_PARALLEL,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002223 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002224 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002225 .total_size = 256,
2226 .page_size = 256,
2227 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002228 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002229 .probe = probe_jedec,
2230 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2231 .block_erasers =
2232 {
2233 {
2234 .eraseblocks = { {256 * 1024, 1} },
2235 .block_erase = erase_chip_block_jedec,
2236 }
2237 },
2238 .write = write_jedec_1,
2239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {4500, 5500},
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002241 },
2242
2243 {
2244 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002245 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002246 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002247 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002248 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002249 .total_size = 256,
2250 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002251 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .tested = TEST_UNTESTED,
2253 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002255 .block_erasers =
2256 {
2257 {
2258 .eraseblocks = {
2259 {16 * 1024, 1},
2260 {8 * 1024, 2},
2261 {96 * 1024, 1},
2262 {128 * 1024, 1},
2263 },
2264 .block_erase = erase_sector_jedec,
2265 }, {
2266 .eraseblocks = { {256 * 1024, 1} },
2267 .block_erase = erase_chip_block_jedec,
2268 }
2269 },
Sean Nelson35727f72010-01-28 23:55:12 +00002270 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002272 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002273 },
2274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 {
2276 .vendor = "Atmel",
2277 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002278 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002280 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002281 .total_size = 256,
2282 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002283 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002284 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002285 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002286 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002287 .block_erasers =
2288 {
2289 {
2290 .eraseblocks = {
2291 {128 * 1024, 1},
2292 {96 * 1024, 1},
2293 {8 * 1024, 2},
2294 {16 * 1024, 1},
2295 },
2296 .block_erase = erase_sector_jedec,
2297 }, {
2298 .eraseblocks = { {256 * 1024, 1} },
2299 .block_erase = erase_chip_block_jedec,
2300 }
2301 },
Sean Nelson35727f72010-01-28 23:55:12 +00002302 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002304 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002305 },
2306
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002307 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002308 .vendor = "Atmel",
2309 .name = "AT49LH002",
2310 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2311 .manufacture_id = ATMEL_ID,
2312 .model_id = ATMEL_AT49LH002,
2313 .total_size = 256,
2314 .page_size = 0, /* unused */
2315 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2316 .tested = TEST_UNTESTED,
2317 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2318 .probe_timing = TIMING_FIXME,
2319 .block_erasers =
2320 {
2321 {
2322 .eraseblocks = {
2323 {64 * 1024, 3},
2324 {32 * 1024, 1},
2325 {8 * 1024, 2},
2326 {16 * 1024, 1},
2327 },
2328 .block_erase = erase_block_82802ab,
2329 }, {
2330 .eraseblocks = {
2331 {64 * 1024, 4},
2332 },
2333 .block_erase = NULL, /* TODO: Implement. */
2334 },
2335 },
2336 .printlock = NULL, /* TODO */
2337 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2338 .write = write_82802ab,
2339 .read = read_memmapped,
2340 .voltage = {3000, 3600},
2341 },
2342
2343 {
Andrew Morganca081462011-09-13 22:05:44 +00002344 .vendor = "Catalyst",
2345 .name = "CAT28F512",
2346 .bustype = BUS_PARALLEL,
2347 .manufacture_id = CATALYST_ID,
2348 .model_id = CATALYST_CAT28F512,
2349 .total_size = 64,
2350 .page_size = 0, /* unused */
2351 .feature_bits = 0,
2352 .tested = TEST_OK_PR,
2353 .probe = probe_jedec, /* FIXME! */
2354 .probe_timing = TIMING_ZERO,
2355 .block_erasers =
2356 {
2357 {
2358 .eraseblocks = { {64 * 1024, 1} },
2359 .block_erase = NULL, /* TODO */
2360 },
2361 },
2362 .write = NULL, /* TODO */
2363 .read = read_memmapped,
2364 .voltage = {4500, 5500},
2365 },
2366
2367 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002368 .vendor = "Bright",
2369 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002370 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002371 .manufacture_id = BRIGHT_ID,
2372 .model_id = BRIGHT_BM29F040,
2373 .total_size = 512,
2374 .page_size = 64 * 1024,
2375 .feature_bits = FEATURE_EITHER_RESET,
2376 .tested = TEST_OK_PR,
2377 .probe = probe_jedec,
2378 .probe_timing = TIMING_ZERO,
2379 .block_erasers =
2380 {
2381 {
2382 .eraseblocks = { {64 * 1024, 8} },
2383 .block_erase = erase_sector_jedec,
2384 }, {
2385 .eraseblocks = { {512 * 1024, 1} },
2386 .block_erase = erase_chip_block_jedec,
2387 },
2388 },
2389 .write = write_jedec_1,
2390 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002391 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002392 },
2393
2394 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 .vendor = "EMST",
2396 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002397 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002398 .manufacture_id = EMST_ID,
2399 .model_id = EMST_F49B002UA,
2400 .total_size = 256,
2401 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002402 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 .tested = TEST_UNTESTED,
2404 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002405 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002406 .block_erasers =
2407 {
2408 {
2409 .eraseblocks = {
2410 {128 * 1024, 1},
2411 {96 * 1024, 1},
2412 {8 * 1024, 2},
2413 {16 * 1024, 1},
2414 },
2415 .block_erase = erase_sector_jedec,
2416 }, {
2417 .eraseblocks = { {256 * 1024, 1} },
2418 .block_erase = erase_chip_block_jedec,
2419 }
2420 },
Sean Nelson35727f72010-01-28 23:55:12 +00002421 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002422 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002423 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002424 },
2425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002426 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002427 .vendor = "EMST",
2428 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002429 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002430 .manufacture_id = EMST_ID,
2431 .model_id = EMST_F25L008A,
2432 .total_size = 1024,
2433 .page_size = 256,
2434 .tested = TEST_UNTESTED,
2435 .probe = probe_spi_rdid,
2436 .probe_timing = TIMING_ZERO,
2437 .block_erasers =
2438 {
2439 {
2440 .eraseblocks = { {4 * 1024, 256} },
2441 .block_erase = spi_block_erase_20,
2442 }, {
2443 .eraseblocks = { {64 * 1024, 16} },
2444 .block_erase = spi_block_erase_d8,
2445 }, {
2446 .eraseblocks = { {1024 * 1024, 1} },
2447 .block_erase = spi_block_erase_60,
2448 }, {
2449 .eraseblocks = { {1024 * 1024, 1} },
2450 .block_erase = spi_block_erase_c7,
2451 }
2452 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002453 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002454 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002456 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002457 },
2458
2459 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002460 .vendor = "Eon",
2461 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002462 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002463 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002464 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002465 .total_size = 64,
2466 .page_size = 256,
2467 .tested = TEST_UNTESTED,
2468 .probe = probe_spi_rdid,
2469 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002470 .block_erasers =
2471 {
2472 {
2473 .eraseblocks = {
2474 {4 * 1024, 2},
2475 {8 * 1024, 1},
2476 {16 * 1024, 1},
2477 {32 * 1024, 1},
2478 },
2479 .block_erase = spi_block_erase_d8,
2480 }, {
2481 .eraseblocks = { {64 * 1024, 1} },
2482 .block_erase = spi_block_erase_c7,
2483 }
2484 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002485 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002486 .write = spi_chip_write_256,
2487 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002488 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002489 },
2490
2491 {
2492 .vendor = "Eon",
2493 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002494 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002495 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002496 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002497 .total_size = 64,
2498 .page_size = 256,
2499 .tested = TEST_UNTESTED,
2500 .probe = probe_spi_rdid,
2501 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002502 .block_erasers =
2503 {
2504 {
2505 .eraseblocks = {
2506 {32 * 1024, 1},
2507 {16 * 1024, 1},
2508 {8 * 1024, 1},
2509 {4 * 1024, 2},
2510 },
2511 .block_erase = spi_block_erase_d8,
2512 }, {
2513 .eraseblocks = { {64 * 1024, 1} },
2514 .block_erase = spi_block_erase_c7,
2515 }
2516 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002517 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002518 .write = spi_chip_write_256,
2519 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002520 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002521 },
2522
2523 {
2524 .vendor = "Eon",
2525 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002526 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002527 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002528 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002529 .total_size = 128,
2530 .page_size = 256,
2531 .tested = TEST_UNTESTED,
2532 .probe = probe_spi_rdid,
2533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002534 .block_erasers =
2535 {
2536 {
2537 .eraseblocks = {
2538 {4 * 1024, 2},
2539 {8 * 1024, 1},
2540 {16 * 1024, 1},
2541 {32 * 1024, 3},
2542 },
2543 .block_erase = spi_block_erase_d8,
2544 }, {
2545 .eraseblocks = { {128 * 1024, 1} },
2546 .block_erase = spi_block_erase_c7,
2547 }
2548 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002549 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002550 .write = spi_chip_write_256,
2551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002552 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002553 },
2554
2555 {
2556 .vendor = "Eon",
2557 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002559 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002560 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002561 .total_size = 128,
2562 .page_size = 256,
2563 .tested = TEST_UNTESTED,
2564 .probe = probe_spi_rdid,
2565 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002566 .block_erasers =
2567 {
2568 {
2569 .eraseblocks = {
2570 {32 * 1024, 3},
2571 {16 * 1024, 1},
2572 {8 * 1024, 1},
2573 {4 * 1024, 2},
2574 },
2575 .block_erase = spi_block_erase_d8,
2576 }, {
2577 .eraseblocks = { {128 * 1024, 1} },
2578 .block_erase = spi_block_erase_c7,
2579 }
2580 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002581 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002582 .write = spi_chip_write_256,
2583 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002584 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002585 },
2586
2587 {
2588 .vendor = "Eon",
2589 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002590 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002591 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002592 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002593 .total_size = 256,
2594 .page_size = 256,
2595 .tested = TEST_UNTESTED,
2596 .probe = probe_spi_rdid,
2597 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002598 .block_erasers =
2599 {
2600 {
2601 .eraseblocks = {
2602 {4 * 1024, 2},
2603 {8 * 1024, 1},
2604 {16 * 1024, 1},
2605 {32 * 1024, 1},
2606 {64 * 1024, 3}
2607 },
2608 .block_erase = spi_block_erase_d8,
2609 }, {
2610 .eraseblocks = { {256 * 1024, 1} },
2611 .block_erase = spi_block_erase_c7,
2612 }
2613 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002614 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002615 .write = spi_chip_write_256,
2616 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002617 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002618 },
2619
2620 {
2621 .vendor = "Eon",
2622 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002623 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002624 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002625 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002626 .total_size = 256,
2627 .page_size = 256,
2628 .tested = TEST_UNTESTED,
2629 .probe = probe_spi_rdid,
2630 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002631 .block_erasers =
2632 {
2633 {
2634 .eraseblocks = {
2635 {64 * 1024, 3},
2636 {32 * 1024, 1},
2637 {16 * 1024, 1},
2638 {8 * 1024, 1},
2639 {4 * 1024, 2},
2640 },
2641 .block_erase = spi_block_erase_d8,
2642 }, {
2643 .eraseblocks = { {256 * 1024, 1} },
2644 .block_erase = spi_block_erase_c7,
2645 }
2646 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002647 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002648 .write = spi_chip_write_256,
2649 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002650 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002651 },
2652
2653 {
2654 .vendor = "Eon",
2655 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002656 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002657 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002658 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002659 .total_size = 512,
2660 .page_size = 256,
2661 .tested = TEST_UNTESTED,
2662 .probe = probe_spi_rdid,
2663 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002664 .block_erasers =
2665 {
2666 {
2667 .eraseblocks = {
2668 {4 * 1024, 2},
2669 {8 * 1024, 1},
2670 {16 * 1024, 1},
2671 {32 * 1024, 1},
2672 {64 * 1024, 7}
2673 },
2674 .block_erase = spi_block_erase_d8,
2675 }, {
2676 .eraseblocks = { {512 * 1024, 1} },
2677 .block_erase = spi_block_erase_c7,
2678 }
2679 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002680 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002681 .write = spi_chip_write_256,
2682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002683 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002684 },
2685
2686 {
2687 .vendor = "Eon",
2688 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002689 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002690 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002691 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002692 .total_size = 512,
2693 .page_size = 256,
2694 .tested = TEST_UNTESTED,
2695 .probe = probe_spi_rdid,
2696 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002697 .block_erasers =
2698 {
2699 {
2700 .eraseblocks = {
2701 {64 * 1024, 7},
2702 {32 * 1024, 1},
2703 {16 * 1024, 1},
2704 {8 * 1024, 1},
2705 {4 * 1024, 2},
2706 },
2707 .block_erase = spi_block_erase_d8,
2708 }, {
2709 .eraseblocks = { {512 * 1024, 1} },
2710 .block_erase = spi_block_erase_c7,
2711 }
2712 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002713 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002714 .write = spi_chip_write_256,
2715 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002716 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002717 },
2718
2719 {
2720 .vendor = "Eon",
2721 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002722 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002723 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002724 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002725 .total_size = 1024,
2726 .page_size = 256,
2727 .tested = TEST_UNTESTED,
2728 .probe = probe_spi_rdid,
2729 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002730 .block_erasers =
2731 {
2732 {
2733 .eraseblocks = {
2734 {4 * 1024, 2},
2735 {8 * 1024, 1},
2736 {16 * 1024, 1},
2737 {32 * 1024, 1},
2738 {64 * 1024, 15}
2739 },
2740 .block_erase = spi_block_erase_d8,
2741 }, {
2742 .eraseblocks = { {1024 * 1024, 1} },
2743 .block_erase = spi_block_erase_c7,
2744 }
2745 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002746 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002747 .write = spi_chip_write_256,
2748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002749 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002750 },
2751
2752 {
2753 .vendor = "Eon",
2754 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002755 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002756 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002757 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002758 .total_size = 1024,
2759 .page_size = 256,
2760 .tested = TEST_UNTESTED,
2761 .probe = probe_spi_rdid,
2762 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002763 .block_erasers =
2764 {
2765 {
2766 .eraseblocks = {
2767 {64 * 1024, 15},
2768 {32 * 1024, 1},
2769 {16 * 1024, 1},
2770 {8 * 1024, 1},
2771 {4 * 1024, 2},
2772 },
2773 .block_erase = spi_block_erase_d8,
2774 }, {
2775 .eraseblocks = { {1024 * 1024, 1} },
2776 .block_erase = spi_block_erase_c7,
2777 }
2778 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002779 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002780 .write = spi_chip_write_256,
2781 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002782 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002783 },
2784
2785 {
2786 .vendor = "Eon",
2787 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002788 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002789 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002790 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002791 .total_size = 2048,
2792 .page_size = 256,
2793 .tested = TEST_UNTESTED,
2794 .probe = probe_spi_rdid,
2795 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002796 .block_erasers =
2797 {
2798 {
2799 .eraseblocks = {
2800 {4 * 1024, 2},
2801 {8 * 1024, 1},
2802 {16 * 1024, 1},
2803 {32 * 1024, 1},
2804 {64 * 1024, 31},
2805 },
2806 .block_erase = spi_block_erase_d8,
2807 }, {
2808 .eraseblocks = { {2 * 1024 * 1024, 1} },
2809 .block_erase = spi_block_erase_c7,
2810 }
2811 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002812 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002813 .write = spi_chip_write_256,
2814 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002815 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002816 },
2817
2818 {
2819 .vendor = "Eon",
2820 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002821 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002822 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002823 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002824 .total_size = 2048,
2825 .page_size = 256,
2826 .tested = TEST_UNTESTED,
2827 .probe = probe_spi_rdid,
2828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002829 .block_erasers =
2830 {
2831 {
2832 .eraseblocks = {
2833 {64 * 1024, 31},
2834 {32 * 1024, 1},
2835 {16 * 1024, 1},
2836 {8 * 1024, 1},
2837 {4 * 1024, 2},
2838 },
2839 .block_erase = spi_block_erase_d8,
2840 }, {
2841 .eraseblocks = { {2 * 1024 * 1024, 1} },
2842 .block_erase = spi_block_erase_c7,
2843 }
2844 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002845 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002846 .write = spi_chip_write_256,
2847 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002848 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002849 },
2850
2851 {
2852 .vendor = "Eon",
2853 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002854 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002855 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002856 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002857 .total_size = 4096,
2858 .page_size = 256,
2859 .tested = TEST_UNTESTED,
2860 .probe = probe_spi_rdid,
2861 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002862 .block_erasers =
2863 {
2864 {
2865 .eraseblocks = {
2866 {4 * 1024, 2},
2867 {8 * 1024, 1},
2868 {16 * 1024, 1},
2869 {32 * 1024, 1},
2870 {64 * 1024, 63},
2871 },
2872 .block_erase = spi_block_erase_d8,
2873 }, {
2874 .eraseblocks = { {4 * 1024 * 1024, 1} },
2875 .block_erase = spi_block_erase_c7,
2876 }
2877 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002878 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002879 .write = spi_chip_write_256,
2880 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002881 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002882 },
2883
2884 {
2885 .vendor = "Eon",
2886 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002887 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002888 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002889 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002890 .total_size = 4096,
2891 .page_size = 256,
2892 .tested = TEST_UNTESTED,
2893 .probe = probe_spi_rdid,
2894 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002895 .block_erasers =
2896 {
2897 {
2898 .eraseblocks = {
2899 {64 * 1024, 63},
2900 {32 * 1024, 1},
2901 {16 * 1024, 1},
2902 {8 * 1024, 1},
2903 {4 * 1024, 2},
2904 },
2905 .block_erase = spi_block_erase_d8,
2906 }, {
2907 .eraseblocks = { {4 * 1024 * 1024, 1} },
2908 .block_erase = spi_block_erase_c7,
2909 }
2910 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002911 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002912 .write = spi_chip_write_256,
2913 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002914 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002915 },
2916
2917 {
2918 .vendor = "Eon",
2919 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002920 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002921 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002922 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002923 .total_size = 8192,
2924 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002925 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002926 .tested = TEST_UNTESTED,
2927 .probe = probe_spi_rdid,
2928 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002929 .block_erasers =
2930 {
2931 {
2932 .eraseblocks = {
2933 {4 * 1024, 2},
2934 {8 * 1024, 1},
2935 {16 * 1024, 1},
2936 {32 * 1024, 1},
2937 {64 * 1024, 127},
2938 },
2939 .block_erase = spi_block_erase_d8,
2940 }, {
2941 .eraseblocks = { {8 * 1024 * 1024, 1} },
2942 .block_erase = spi_block_erase_c7,
2943 }
2944 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002945 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002946 .write = spi_chip_write_256,
2947 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002948 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002949 },
2950
2951 {
2952 .vendor = "Eon",
2953 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002954 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002955 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002956 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002957 .total_size = 8192,
2958 .page_size = 256,
2959 .tested = TEST_UNTESTED,
2960 .probe = probe_spi_rdid,
2961 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002962 .block_erasers =
2963 {
2964 {
2965 .eraseblocks = {
2966 {64 * 1024, 127},
2967 {32 * 1024, 1},
2968 {16 * 1024, 1},
2969 {8 * 1024, 1},
2970 {4 * 1024, 2},
2971 },
2972 .block_erase = spi_block_erase_d8,
2973 }, {
2974 .eraseblocks = { {8 * 1024 * 1024, 1} },
2975 .block_erase = spi_block_erase_c7,
2976 }
2977 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002978 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002979 .write = spi_chip_write_256,
2980 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002981 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002982 },
2983
2984 {
2985 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002986 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002987 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002988 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002989 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002990 .total_size = 64,
2991 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002992 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002993 .tested = TEST_UNTESTED,
2994 .probe = probe_spi_rdid,
2995 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002996 .block_erasers =
2997 {
2998 {
2999 .eraseblocks = { {4 * 1024, 16} },
3000 .block_erase = spi_block_erase_20,
3001 }, {
3002 .eraseblocks = { {32 * 1024, 2} },
3003 .block_erase = spi_block_erase_d8,
3004 }, {
3005 .eraseblocks = { {32 * 1024, 2} },
3006 .block_erase = spi_block_erase_52,
3007 }, {
3008 .eraseblocks = { {64 * 1024, 1} },
3009 .block_erase = spi_block_erase_60,
3010 }, {
3011 .eraseblocks = { {64 * 1024, 1} },
3012 .block_erase = spi_block_erase_c7,
3013 }
3014 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003015 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003016 .write = spi_chip_write_256,
3017 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003018 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003019 },
3020
3021 {
3022 .vendor = "Eon",
3023 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003024 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003025 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003026 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003027 .total_size = 128,
3028 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003029 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003030 .tested = TEST_UNTESTED,
3031 .probe = probe_spi_rdid,
3032 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003033 .block_erasers =
3034 {
3035 {
3036 .eraseblocks = { {4 * 1024, 32} },
3037 .block_erase = spi_block_erase_20,
3038 }, {
3039 .eraseblocks = { {32 * 1024, 4} },
3040 .block_erase = spi_block_erase_d8,
3041 }, {
3042 .eraseblocks = { {32 * 1024, 4} },
3043 .block_erase = spi_block_erase_52,
3044 }, {
3045 .eraseblocks = { {128 * 1024, 1} },
3046 .block_erase = spi_block_erase_60,
3047 }, {
3048 .eraseblocks = { {128 * 1024, 1} },
3049 .block_erase = spi_block_erase_c7,
3050 }
3051 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003052 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003053 .write = spi_chip_write_256,
3054 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003055 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003056 },
3057
3058 {
3059 .vendor = "Eon",
3060 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003061 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003062 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003063 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003064 .total_size = 256,
3065 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003066 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003067 .tested = TEST_UNTESTED,
3068 .probe = probe_spi_rdid,
3069 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003070 .block_erasers =
3071 {
3072 {
3073 .eraseblocks = { {4 * 1024, 64} },
3074 .block_erase = spi_block_erase_20,
3075 }, {
3076 .eraseblocks = { {64 * 1024, 4} },
3077 .block_erase = spi_block_erase_d8,
3078 }, {
3079 .eraseblocks = { {64 * 1024, 4} },
3080 .block_erase = spi_block_erase_52,
3081 }, {
3082 .eraseblocks = { {256 * 1024, 1} },
3083 .block_erase = spi_block_erase_60,
3084 }, {
3085 .eraseblocks = { {256 * 1024, 1} },
3086 .block_erase = spi_block_erase_c7,
3087 }
3088 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003089 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003090 .write = spi_chip_write_256,
3091 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003092 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003093 },
3094
3095 {
3096 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003097 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003098 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003099 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003100 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003101 .total_size = 512,
3102 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003103 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003104 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003105 .probe = probe_spi_rdid,
3106 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003107 .block_erasers =
3108 {
3109 {
Sean Nelson54596372010-01-09 05:30:14 +00003110 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003111 .block_erase = spi_block_erase_20,
3112 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003113 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003114 .block_erase = spi_block_erase_d8,
3115 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003116 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003117 .block_erase = spi_block_erase_60,
3118 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003119 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003120 .block_erase = spi_block_erase_c7,
3121 },
3122 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003123 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003124 .write = spi_chip_write_256,
3125 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003126 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003127 },
3128
3129 {
3130 .vendor = "Eon",
3131 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003132 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003133 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003134 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 .total_size = 1024,
3136 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003137 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003138 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003139 .probe = probe_spi_rdid,
3140 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003141 .block_erasers =
3142 {
3143 {
3144 .eraseblocks = { {4 * 1024, 256} },
3145 .block_erase = spi_block_erase_20,
3146 }, {
3147 .eraseblocks = { {64 * 1024, 16} },
3148 .block_erase = spi_block_erase_d8,
3149 }, {
3150 .eraseblocks = { {1024 * 1024, 1} },
3151 .block_erase = spi_block_erase_60,
3152 }, {
3153 .eraseblocks = { {1024 * 1024, 1} },
3154 .block_erase = spi_block_erase_c7,
3155 }
3156 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003157 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003158 .write = spi_chip_write_256,
3159 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003161 },
3162
3163 {
3164 .vendor = "Eon",
3165 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003166 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003167 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003168 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003169 .total_size = 2048,
3170 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003171 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003172 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003173 .probe = probe_spi_rdid,
3174 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = { {4 * 1024, 512} },
3179 .block_erase = spi_block_erase_20,
3180 }, {
3181 .eraseblocks = { {64 * 1024, 32} },
3182 .block_erase = spi_block_erase_d8,
3183 }, {
3184 .eraseblocks = { {2 * 1024 * 1024, 1} },
3185 .block_erase = spi_block_erase_60,
3186 }, {
3187 .eraseblocks = { {2 * 1024 * 1024, 1} },
3188 .block_erase = spi_block_erase_c7,
3189 }
3190 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003191 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003192 .write = spi_chip_write_256,
3193 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003194 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003195 },
3196
3197 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003198 .vendor = "Eon",
3199 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003200 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003201 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003202 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003203 .total_size = 4096,
3204 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003205 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003206 .tested = TEST_UNTESTED,
3207 .probe = probe_spi_rdid,
3208 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003209 .block_erasers =
3210 {
3211 {
3212 .eraseblocks = { {4 * 1024, 1024} },
3213 .block_erase = spi_block_erase_20,
3214 }, {
3215 .eraseblocks = { {64 * 1024, 64} },
3216 .block_erase = spi_block_erase_d8,
3217 }, {
3218 .eraseblocks = { {4 * 1024 * 1024, 1} },
3219 .block_erase = spi_block_erase_60,
3220 }, {
3221 .eraseblocks = { {4 * 1024 * 1024, 1} },
3222 .block_erase = spi_block_erase_c7,
3223 }
3224 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003225 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003226 .write = spi_chip_write_256,
3227 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003228 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003229 },
3230
3231 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003232 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003233 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003234 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003235 .manufacture_id = EON_ID_NOPREFIX,
3236 .model_id = EON_EN25Q40,
3237 .total_size = 512,
3238 .page_size = 256,
3239 /* TODO: chip features 256-byte one-time programmable region */
3240 .feature_bits = FEATURE_WRSR_WREN,
3241 .tested = TEST_UNTESTED,
3242 .probe = probe_spi_rdid,
3243 .probe_timing = TIMING_ZERO,
3244 .block_erasers =
3245 {
3246 {
3247 .eraseblocks = { {4 * 1024, 128} },
3248 .block_erase = spi_block_erase_20,
3249 }, {
3250 .eraseblocks = { {64 * 1024, 8} },
3251 .block_erase = spi_block_erase_d8,
3252 }, {
3253 .eraseblocks = { {512 * 1024, 1} },
3254 .block_erase = spi_block_erase_60,
3255 }, {
3256 .eraseblocks = { {512 * 1024, 1} },
3257 .block_erase = spi_block_erase_c7,
3258 }
3259 },
3260 .unlock = spi_disable_blockprotect,
3261 .write = spi_chip_write_256,
3262 .read = spi_chip_read,
3263 .voltage = {2700, 3600},
3264 },
3265
3266 {
3267 .vendor = "Eon",
3268 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003269 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003270 .manufacture_id = EON_ID_NOPREFIX,
3271 .model_id = EON_EN25Q80,
3272 .total_size = 1024,
3273 .page_size = 256,
3274 /* TODO: chip features 256-byte one-time programmable region */
3275 .feature_bits = FEATURE_WRSR_WREN,
3276 .tested = TEST_UNTESTED,
3277 .probe = probe_spi_rdid,
3278 .probe_timing = TIMING_ZERO,
3279 .block_erasers =
3280 {
3281 {
3282 .eraseblocks = { {4 * 1024, 256} },
3283 .block_erase = spi_block_erase_20,
3284 }, {
3285 .eraseblocks = { {64 * 1024, 16} },
3286 .block_erase = spi_block_erase_d8,
3287 }, {
3288 .eraseblocks = { {1024 * 1024, 1} },
3289 .block_erase = spi_block_erase_60,
3290 }, {
3291 .eraseblocks = { {1024 * 1024, 1} },
3292 .block_erase = spi_block_erase_c7,
3293 }
3294 },
3295 .unlock = spi_disable_blockprotect,
3296 .write = spi_chip_write_256,
3297 .read = spi_chip_read,
3298 .voltage = {2700, 3600},
3299 },
3300
3301 {
3302 /* Note: EN25D16 is an evil twin which shares the model ID
3303 but has different write protection capabilities */
3304 .vendor = "Eon",
3305 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003306 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003307 .manufacture_id = EON_ID_NOPREFIX,
3308 .model_id = EON_EN25Q16,
3309 .total_size = 2048,
3310 .page_size = 256,
3311 /* TODO: EN25D16 features 512-byte one-time programmable region,
3312 * EN25Q16 features a 128-byte one-time programmable region */
3313 .feature_bits = FEATURE_WRSR_WREN,
3314 .tested = TEST_UNTESTED,
3315 .probe = probe_spi_rdid,
3316 .probe_timing = TIMING_ZERO,
3317 .block_erasers =
3318 {
3319 {
3320 .eraseblocks = { {4 * 1024, 512} },
3321 .block_erase = spi_block_erase_20,
3322 }, {
3323 .eraseblocks = { {64 * 1024, 32} },
3324 .block_erase = spi_block_erase_d8,
3325 }, {
3326 /* not supported by Q16 version */
3327 .eraseblocks = { {64 * 1024, 32} },
3328 .block_erase = spi_block_erase_52,
3329 }, {
3330 .eraseblocks = { {2 * 1024 * 1024, 1} },
3331 .block_erase = spi_block_erase_60,
3332 }, {
3333 .eraseblocks = { {2 * 1024 * 1024, 1} },
3334 .block_erase = spi_block_erase_c7,
3335 }
3336 },
3337 .unlock = spi_disable_blockprotect,
3338 .write = spi_chip_write_256,
3339 .read = spi_chip_read,
3340 .voltage = {2700, 3600},
3341 },
3342
3343 {
3344 .vendor = "Eon",
3345 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003346 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003347 .manufacture_id = EON_ID_NOPREFIX,
3348 .model_id = EON_EN25Q32,
3349 .total_size = 4096,
3350 .page_size = 256,
3351 /* TODO: chip features 512-byte one-time programmable region */
3352 .feature_bits = FEATURE_WRSR_WREN,
3353 .tested = TEST_UNTESTED,
3354 .probe = probe_spi_rdid,
3355 .probe_timing = TIMING_ZERO,
3356 .block_erasers =
3357 {
3358 {
3359 .eraseblocks = { {4 * 1024, 1024} },
3360 .block_erase = spi_block_erase_20,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 64} },
3363 .block_erase = spi_block_erase_d8,
3364 }, {
3365 .eraseblocks = { {4 * 1024 * 1024, 1} },
3366 .block_erase = spi_block_erase_60,
3367 }, {
3368 .eraseblocks = { {4 * 1024 * 1024, 1} },
3369 .block_erase = spi_block_erase_c7,
3370 }
3371 },
3372 .unlock = spi_disable_blockprotect,
3373 .write = spi_chip_write_256,
3374 .read = spi_chip_read,
3375 .voltage = {2700, 3600},
3376 },
3377
3378 {
3379 .vendor = "Eon",
3380 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003381 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003382 .manufacture_id = EON_ID_NOPREFIX,
3383 .model_id = EON_EN25Q64,
3384 .total_size = 8192,
3385 .page_size = 256,
3386 /* TODO: chip features 512-byte one-time programmable region */
3387 .feature_bits = FEATURE_WRSR_WREN,
3388 .tested = TEST_UNTESTED,
3389 .probe = probe_spi_rdid,
3390 .probe_timing = TIMING_ZERO,
3391 .block_erasers =
3392 {
3393 {
3394 .eraseblocks = { {4 * 1024, 2048} },
3395 .block_erase = spi_block_erase_20,
3396 }, {
3397 .eraseblocks = { {64 * 1024, 128} },
3398 .block_erase = spi_block_erase_d8,
3399 }, {
3400 .eraseblocks = { {8 * 1024 * 1024, 1} },
3401 .block_erase = spi_block_erase_60,
3402 }, {
3403 .eraseblocks = { {8 * 1024 * 1024, 1} },
3404 .block_erase = spi_block_erase_c7,
3405 }
3406 },
3407 .unlock = spi_disable_blockprotect,
3408 .write = spi_chip_write_256,
3409 .read = spi_chip_read,
3410 .voltage = {2700, 3600},
3411 },
3412
3413 {
3414 .vendor = "Eon",
3415 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003416 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003417 .manufacture_id = EON_ID_NOPREFIX,
3418 .model_id = EON_EN25Q128,
3419 .total_size = 16384,
3420 .page_size = 256,
3421 /* TODO: chip features 512-byte one-time programmable region */
3422 .feature_bits = FEATURE_WRSR_WREN,
3423 .tested = TEST_UNTESTED,
3424 .probe = probe_spi_rdid,
3425 .probe_timing = TIMING_ZERO,
3426 .block_erasers =
3427 {
3428 {
3429 .eraseblocks = { {4 * 1024, 4096} },
3430 .block_erase = spi_block_erase_20,
3431 }, {
3432 .eraseblocks = { {64 * 1024, 256} },
3433 .block_erase = spi_block_erase_d8,
3434 }, {
3435 .eraseblocks = { {16 * 1024 * 1024, 1} },
3436 .block_erase = spi_block_erase_60,
3437 }, {
3438 .eraseblocks = { {16 * 1024 * 1024, 1} },
3439 .block_erase = spi_block_erase_c7,
3440 }
3441 },
3442 .unlock = spi_disable_blockprotect,
3443 .write = spi_chip_write_256,
3444 .read = spi_chip_read,
3445 },
3446
3447 {
3448 .vendor = "Eon",
3449 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003450 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003451 .manufacture_id = EON_ID_NOPREFIX,
3452 .model_id = EON_EN25QH16,
3453 .total_size = 2048,
3454 .page_size = 256,
3455 /* TODO: chip features 512-byte one-time programmable region
3456 * and supports SFDP.
3457 */
3458 .feature_bits = FEATURE_WRSR_WREN,
3459 .tested = TEST_UNTESTED,
3460 .probe = probe_spi_rdid,
3461 .probe_timing = TIMING_ZERO,
3462 .block_erasers =
3463 {
3464 {
3465 .eraseblocks = { {4 * 1024, 512} },
3466 .block_erase = spi_block_erase_20,
3467 }, {
3468 .eraseblocks = { {64 * 1024, 32} },
3469 .block_erase = spi_block_erase_d8,
3470 }, {
3471 .eraseblocks = { {1024 * 2048, 1} },
3472 .block_erase = spi_block_erase_60,
3473 }, {
3474 .eraseblocks = { {1024 * 2048, 1} },
3475 .block_erase = spi_block_erase_c7,
3476 }
3477 },
3478 .unlock = spi_disable_blockprotect,
3479 .write = spi_chip_write_256,
3480 .read = spi_chip_read,
3481 .voltage = {2700, 3600},
3482 },
3483
3484 {
3485 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003486 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003487 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003488 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003489 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003490 .total_size = 128,
3491 .page_size = 128,
3492 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003493 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003494 .probe = probe_jedec,
3495 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3496 .block_erasers =
3497 {
3498 {
3499 .eraseblocks = { {16 * 1024, 8} },
3500 .block_erase = erase_sector_jedec,
3501 },
3502 {
3503 .eraseblocks = { {128 * 1024, 1} },
3504 .block_erase = erase_chip_block_jedec,
3505 },
3506 },
3507 .write = write_jedec_1,
3508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003509 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003510 },
3511
3512 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003513 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003514 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003515 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003516 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003517 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003518 .total_size = 256,
3519 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003520 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003521 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003522 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003523 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003524 .block_erasers =
3525 {
3526 {
3527 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003528 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003529 {8 * 1024, 2},
3530 {32 * 1024, 1},
3531 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003532 },
3533 .block_erase = erase_sector_jedec,
3534 }, {
3535 .eraseblocks = { {256 * 1024, 1} },
3536 .block_erase = erase_chip_block_jedec,
3537 },
3538 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003539 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003540 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003541 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003542 },
3543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003544 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003545 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003546 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003547 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003548 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003549 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003550 .total_size = 256,
3551 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003552 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003553 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003554 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003555 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003556 .block_erasers =
3557 {
3558 {
3559 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003560 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003561 {32 * 1024, 1},
3562 {8 * 1024, 2},
3563 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003564 },
3565 .block_erase = erase_sector_jedec,
3566 }, {
3567 .eraseblocks = { {256 * 1024, 1} },
3568 .block_erase = erase_chip_block_jedec,
3569 },
3570 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003571 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003573 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003574 },
3575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003576 {
3577 .vendor = "Fujitsu",
3578 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003579 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003580 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003581 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003582 .total_size = 512,
3583 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003584 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003585 .tested = TEST_UNTESTED,
3586 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003587 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003588 .block_erasers =
3589 {
3590 {
3591 .eraseblocks = {
3592 {16 * 1024, 1},
3593 {8 * 1024, 2},
3594 {32 * 1024, 1},
3595 {64 * 1024, 7},
3596 },
Sean Nelson35727f72010-01-28 23:55:12 +00003597 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003598 }, {
3599 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003600 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003601 },
3602 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003603 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003604 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003605 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003606 },
3607
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003608 {
3609 .vendor = "Fujitsu",
3610 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003611 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003612 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003613 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003614 .total_size = 512,
3615 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003616 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003617 .tested = TEST_UNTESTED,
3618 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003619 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003620 .block_erasers =
3621 {
3622 {
3623 .eraseblocks = {
3624 {64 * 1024, 7},
3625 {32 * 1024, 1},
3626 {8 * 1024, 2},
3627 {16 * 1024, 1},
3628 },
Sean Nelson35727f72010-01-28 23:55:12 +00003629 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003630 }, {
3631 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003632 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003633 },
3634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003635 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003638 },
3639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003640 {
Sean Nelson35727f72010-01-28 23:55:12 +00003641 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003642 .vendor = "Fujitsu",
3643 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003644 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003645 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003646 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003647 .total_size = 512,
3648 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003649 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003650 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003651 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003652 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003653 .block_erasers =
3654 {
3655 {
3656 .eraseblocks = {
3657 {16 * 1024, 1},
3658 {8 * 1024, 2},
3659 {32 * 1024, 1},
3660 {64 * 1024, 7},
3661 },
3662 .block_erase = block_erase_m29f400bt,
3663 }, {
3664 .eraseblocks = { {512 * 1024, 1} },
3665 .block_erase = block_erase_chip_m29f400bt,
3666 },
3667 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003668 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003669 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003670 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003671 },
3672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003673 {
3674 .vendor = "Fujitsu",
3675 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003676 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003677 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003678 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003679 .total_size = 512,
3680 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003681 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003682 .tested = TEST_UNTESTED,
3683 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003684 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003685 .block_erasers =
3686 {
3687 {
3688 .eraseblocks = {
3689 {64 * 1024, 7},
3690 {32 * 1024, 1},
3691 {8 * 1024, 2},
3692 {16 * 1024, 1},
3693 },
3694 .block_erase = block_erase_m29f400bt,
3695 }, {
3696 .eraseblocks = { {512 * 1024, 1} },
3697 .block_erase = block_erase_chip_m29f400bt,
3698 },
3699 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003700 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003701 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003702 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003703 },
3704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003705 {
David Borgc96a8bd2010-06-21 16:12:22 +00003706 .vendor = "Hyundai",
3707 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003708 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003709 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003710 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003711 .total_size = 256,
3712 .page_size = 256 * 1024,
3713 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003714 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003715 .probe = probe_jedec,
3716 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3717 .block_erasers =
3718 {
3719 {
3720 .eraseblocks = {
3721 {64 * 1024, 3},
3722 {32 * 1024, 1},
3723 {8 * 1024, 2},
3724 {16 * 1024, 1},
3725 },
3726 .block_erase = erase_sector_jedec,
3727 }, {
3728 .eraseblocks = { {256 * 1024, 1} },
3729 .block_erase = erase_chip_block_jedec,
3730 },
3731 },
3732 .write = write_jedec_1,
3733 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003734 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003735 },
3736
3737 {
3738 .vendor = "Hyundai",
3739 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003740 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003741 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003742 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003743 .total_size = 256,
3744 .page_size = 256 * 1024,
3745 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3746 .tested = TEST_UNTESTED,
3747 .probe = probe_jedec,
3748 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3749 .block_erasers =
3750 {
3751 {
3752 .eraseblocks = {
3753 {16 * 1024, 1},
3754 {8 * 1024, 2},
3755 {32 * 1024, 1},
3756 {64 * 1024, 3},
3757 },
3758 .block_erase = erase_sector_jedec,
3759 }, {
3760 .eraseblocks = { {256 * 1024, 1} },
3761 .block_erase = erase_chip_block_jedec,
3762 },
3763 },
3764 .write = write_jedec_1,
3765 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003766 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003767 },
3768
3769 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003770 .vendor = "Hyundai",
3771 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003772 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003773 .manufacture_id = HYUNDAI_ID,
3774 .model_id = HYUNDAI_HY29F040A,
3775 .total_size = 512,
3776 .page_size = 64 * 1024,
3777 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3778 .tested = TEST_UNTESTED,
3779 .probe = probe_jedec,
3780 .probe_timing = TIMING_ZERO,
3781 .block_erasers =
3782 {
3783 {
3784 .eraseblocks = { {64 * 1024, 8} },
3785 .block_erase = erase_sector_jedec,
3786 }, {
3787 .eraseblocks = { {512 * 1024, 1} },
3788 .block_erase = erase_chip_block_jedec,
3789 },
3790 },
3791 .write = write_jedec_1,
3792 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003793 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003794 },
3795
3796 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003797 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003798 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003799 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003800 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003801 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003802 .total_size = 128,
3803 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003804 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003805 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003806 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003807 .block_erasers =
3808 {
3809 {
3810 .eraseblocks = {
3811 {8 * 1024, 1},
3812 {4 * 1024, 2},
3813 {112 * 1024, 1},
3814 },
Sean Nelson28accc22010-03-19 18:47:06 +00003815 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003816 },
3817 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003818 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003819 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003820 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003821 },
3822
3823 {
3824 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003825 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003826 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003827 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003828 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003829 .total_size = 128,
3830 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003831 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003832 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003833 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003834 .block_erasers =
3835 {
3836 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003837 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003838 {112 * 1024, 1},
3839 {4 * 1024, 2},
3840 {8 * 1024, 1},
3841 },
Sean Nelson28accc22010-03-19 18:47:06 +00003842 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003843 },
3844 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003845 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003846 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003847 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003848 },
3849
3850 {
3851 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003852 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003853 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003854 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003855 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003856 .total_size = 256,
3857 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003858 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003859 .probe = probe_82802ab,
3860 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3861 .block_erasers =
3862 {
3863 {
3864 .eraseblocks = {
3865 {128 * 1024, 1},
3866 {96 * 1024, 1},
3867 {8 * 1024, 2},
3868 {16 * 1024, 1},
3869 },
3870 .block_erase = erase_block_82802ab,
3871 },
3872 },
3873 .write = write_82802ab,
3874 .read = read_memmapped,
3875 },
3876
3877 {
3878 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003879 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003880 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003881 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003882 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003883 .total_size = 512,
3884 .page_size = 256,
3885 .tested = TEST_UNTESTED,
3886 .probe = probe_82802ab,
3887 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003888 .block_erasers =
3889 {
3890 {
3891 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003892 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003893 },
3894 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003895 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003896 .write = write_82802ab,
3897 .read = read_memmapped,
3898 },
3899
3900 {
3901 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003902 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003903 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003904 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003905 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003906 .total_size = 512,
3907 .page_size = 128 * 1024, /* maximal block size */
3908 .tested = TEST_UNTESTED,
3909 .probe = probe_82802ab,
3910 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3911 .block_erasers =
3912 {
3913 {
3914 .eraseblocks = {
3915 {16 * 1024, 1},
3916 {8 * 1024, 2},
3917 {96 * 1024, 1},
3918 {128 * 1024, 3},
3919 },
3920 .block_erase = erase_block_82802ab,
3921 },
3922 },
3923 .write = write_82802ab,
3924 .read = read_memmapped,
3925 },
3926
3927 {
3928 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003929 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003930 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003931 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003932 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003933 .total_size = 512,
3934 .page_size = 128 * 1024, /* maximal block size */
3935 .tested = TEST_UNTESTED,
3936 .probe = probe_82802ab,
3937 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3938 .block_erasers =
3939 {
3940 {
3941 .eraseblocks = {
3942 {128 * 1024, 3},
3943 {96 * 1024, 1},
3944 {8 * 1024, 2},
3945 {16 * 1024, 1},
3946 },
3947 .block_erase = erase_block_82802ab,
3948 },
3949 },
3950 .write = write_82802ab,
3951 .read = read_memmapped,
3952 },
3953
3954 {
3955 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003956 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003957 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003958 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003959 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003960 .total_size = 512,
3961 .page_size = 128 * 1024, /* maximal block size */
3962 .feature_bits = FEATURE_ADDR_SHIFTED,
3963 .tested = TEST_UNTESTED,
3964 .probe = probe_82802ab,
3965 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3966 .block_erasers =
3967 {
3968 {
3969 .eraseblocks = {
3970 {16 * 1024, 1},
3971 {8 * 1024, 2},
3972 {96 * 1024, 1},
3973 {128 * 1024, 3},
3974 },
3975 .block_erase = erase_block_82802ab,
3976 },
3977 },
3978 .write = write_82802ab,
3979 .read = read_memmapped,
3980 },
3981
3982 {
3983 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003984 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003985 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003986 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003987 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003988 .total_size = 512,
3989 .page_size = 128 * 1024, /* maximal block size */
3990 .feature_bits = FEATURE_ADDR_SHIFTED,
3991 .tested = TEST_UNTESTED,
3992 .probe = probe_82802ab,
3993 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3994 .block_erasers =
3995 {
3996 {
3997 .eraseblocks = {
3998 {128 * 1024, 3},
3999 {96 * 1024, 1},
4000 {8 * 1024, 2},
4001 {16 * 1024, 1},
4002 },
4003 .block_erase = erase_block_82802ab,
4004 },
4005 },
4006 .write = write_82802ab,
4007 .read = read_memmapped,
4008 },
4009
4010 {
4011 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004012 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004013 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004014 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004015 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004016 .total_size = 512,
4017 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004018 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004019 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004020 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004021 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004022 .block_erasers =
4023 {
4024 {
4025 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004026 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004027 },
4028 },
Sean Nelson28accc22010-03-19 18:47:06 +00004029 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004030 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004031 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004032 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004033 },
4034
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004035 {
4036 .vendor = "Intel",
4037 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004038 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004039 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004040 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004041 .total_size = 1024,
4042 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004043 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004044 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004045 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004046 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004047 .block_erasers =
4048 {
4049 {
4050 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004051 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004052 },
4053 },
Sean Nelson28accc22010-03-19 18:47:06 +00004054 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004055 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004057 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004058 },
4059
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004060 {
4061 .vendor = "Macronix",
4062 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004063 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004064 .manufacture_id = MACRONIX_ID,
4065 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004066 .total_size = 64,
4067 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004068 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004069 .tested = TEST_UNTESTED,
4070 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004071 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004072 .block_erasers =
4073 {
4074 {
4075 .eraseblocks = { {4 * 1024, 16} },
4076 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004077 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004078 .eraseblocks = { {64 * 1024, 1} },
4079 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004080 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004081 .eraseblocks = { {64 * 1024, 1} },
4082 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004083 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004084 .eraseblocks = { {64 * 1024, 1} },
4085 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004086 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004087 .eraseblocks = { {64 * 1024, 1} },
4088 .block_erase = spi_block_erase_c7,
4089 },
4090 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004091 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004092 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004094 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004095 },
4096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004097 {
4098 .vendor = "Macronix",
4099 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004100 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004101 .manufacture_id = MACRONIX_ID,
4102 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004103 .total_size = 128,
4104 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004105 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004106 .tested = TEST_UNTESTED,
4107 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004108 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004109 .block_erasers =
4110 {
4111 {
4112 .eraseblocks = { {4 * 1024, 32} },
4113 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004114 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004115 .eraseblocks = { {64 * 1024, 2} },
4116 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004117 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004118 .eraseblocks = { {128 * 1024, 1} },
4119 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004120 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004121 .eraseblocks = { {128 * 1024, 1} },
4122 .block_erase = spi_block_erase_c7,
4123 },
4124 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004125 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004126 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004127 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004128 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004129 },
4130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004131 {
4132 .vendor = "Macronix",
4133 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004134 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004135 .manufacture_id = MACRONIX_ID,
4136 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004137 .total_size = 256,
4138 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004139 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004140 .tested = TEST_UNTESTED,
4141 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004142 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004143 .block_erasers =
4144 {
4145 {
4146 .eraseblocks = { {4 * 1024, 64} },
4147 .block_erase = spi_block_erase_20,
4148 }, {
4149 .eraseblocks = { {64 * 1024, 4} },
4150 .block_erase = spi_block_erase_52,
4151 }, {
4152 .eraseblocks = { {64 * 1024, 4} },
4153 .block_erase = spi_block_erase_d8,
4154 }, {
4155 .eraseblocks = { {256 * 1024, 1} },
4156 .block_erase = spi_block_erase_60,
4157 }, {
4158 .eraseblocks = { {256 * 1024, 1} },
4159 .block_erase = spi_block_erase_c7,
4160 },
4161 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004162 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004163 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004164 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004165 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004166 },
4167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004168 {
4169 .vendor = "Macronix",
4170 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004171 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004172 .manufacture_id = MACRONIX_ID,
4173 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004174 .total_size = 512,
4175 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004176 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004177 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004178 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004179 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004180 .block_erasers =
4181 {
4182 {
4183 .eraseblocks = { {4 * 1024, 128} },
4184 .block_erase = spi_block_erase_20,
4185 }, {
4186 .eraseblocks = { {64 * 1024, 8} },
4187 .block_erase = spi_block_erase_52,
4188 }, {
4189 .eraseblocks = { {64 * 1024, 8} },
4190 .block_erase = spi_block_erase_d8,
4191 }, {
4192 .eraseblocks = { {512 * 1024, 1} },
4193 .block_erase = spi_block_erase_60,
4194 }, {
4195 .eraseblocks = { {512 * 1024, 1} },
4196 .block_erase = spi_block_erase_c7,
4197 },
4198 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004203 },
4204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004205 {
4206 .vendor = "Macronix",
4207 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004208 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004209 .manufacture_id = MACRONIX_ID,
4210 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004211 .total_size = 1024,
4212 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004213 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004216 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004217 .block_erasers =
4218 {
4219 {
4220 .eraseblocks = { {4 * 1024, 256} },
4221 .block_erase = spi_block_erase_20,
4222 }, {
4223 .eraseblocks = { {64 * 1024, 16} },
4224 .block_erase = spi_block_erase_52,
4225 }, {
4226 .eraseblocks = { {64 * 1024, 16} },
4227 .block_erase = spi_block_erase_d8,
4228 }, {
4229 .eraseblocks = { {1024 * 1024, 1} },
4230 .block_erase = spi_block_erase_60,
4231 }, {
4232 .eraseblocks = { {1024 * 1024, 1} },
4233 .block_erase = spi_block_erase_c7,
4234 },
4235 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004236 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004237 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004238 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004239 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004240 },
4241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004242 {
4243 .vendor = "Macronix",
4244 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004245 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004246 .manufacture_id = MACRONIX_ID,
4247 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004248 .total_size = 2048,
4249 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004250 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004251 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004252 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004253 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004254 .block_erasers =
4255 {
4256 {
4257 .eraseblocks = { {4 * 1024, 512} },
4258 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4259 }, {
4260 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4261 .block_erase = spi_block_erase_52,
4262 }, {
4263 .eraseblocks = { {64 * 1024, 32} },
4264 .block_erase = spi_block_erase_d8,
4265 }, {
4266 .eraseblocks = { {2 * 1024 * 1024, 1} },
4267 .block_erase = spi_block_erase_60,
4268 }, {
4269 .eraseblocks = { {2 * 1024 * 1024, 1} },
4270 .block_erase = spi_block_erase_c7,
4271 },
4272 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004273 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004274 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004275 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004276 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004277 },
4278
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004279 {
4280 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004281 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004282 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004283 .manufacture_id = MACRONIX_ID,
4284 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004285 .total_size = 2048,
4286 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004287 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004288 .tested = TEST_UNTESTED,
4289 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004290 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004291 .block_erasers =
4292 {
4293 {
4294 .eraseblocks = { {4 * 1024, 512} },
4295 .block_erase = spi_block_erase_20,
4296 }, {
4297 .eraseblocks = { {64 * 1024, 32} },
4298 .block_erase = spi_block_erase_d8,
4299 }, {
4300 .eraseblocks = { {2 * 1024 * 1024, 1} },
4301 .block_erase = spi_block_erase_60,
4302 }, {
4303 .eraseblocks = { {2 * 1024 * 1024, 1} },
4304 .block_erase = spi_block_erase_c7,
4305 }
4306 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004307 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004308 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004309 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004310 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004311 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004312
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004313 {
4314 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004315 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004316 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004317 .manufacture_id = MACRONIX_ID,
4318 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004319 .total_size = 2048,
4320 .page_size = 256,
4321 .feature_bits = FEATURE_WRSR_WREN,
4322 .tested = TEST_UNTESTED,
4323 .probe = probe_spi_rdid,
4324 .probe_timing = TIMING_ZERO,
4325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {4 * 1024, 512} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {64 * 1024, 32} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {2 * 1024 * 1024, 1} },
4335 .block_erase = spi_block_erase_60,
4336 }, {
4337 .eraseblocks = { {2 * 1024 * 1024, 1} },
4338 .block_erase = spi_block_erase_c7,
4339 }
4340 },
4341 .unlock = spi_disable_blockprotect,
4342 .write = spi_chip_write_256,
4343 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004344 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004345 },
4346
4347 {
4348 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004349 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004350 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004351 .manufacture_id = MACRONIX_ID,
4352 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004353 .total_size = 4096,
4354 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004355 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004357 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004358 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004359 .block_erasers =
4360 {
4361 {
4362 .eraseblocks = { {4 * 1024, 1024} },
4363 .block_erase = spi_block_erase_20,
4364 }, {
4365 .eraseblocks = { {4 * 1024, 1024} },
4366 .block_erase = spi_block_erase_d8,
4367 }, {
4368 .eraseblocks = { {4 * 1024 * 1024, 1} },
4369 .block_erase = spi_block_erase_60,
4370 }, {
4371 .eraseblocks = { {4 * 1024 * 1024, 1} },
4372 .block_erase = spi_block_erase_c7,
4373 },
4374 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004375 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004376 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004377 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004378 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004379 },
4380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004381 {
4382 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004383 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004384 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004385 .manufacture_id = MACRONIX_ID,
4386 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004387 .total_size = 4096,
4388 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004389 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004390 .tested = TEST_UNTESTED,
4391 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004392 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004393 .block_erasers =
4394 {
4395 {
4396 .eraseblocks = { {4 * 1024, 1024} },
4397 .block_erase = spi_block_erase_20,
4398 }, {
4399 .eraseblocks = { {64 * 1024, 64} },
4400 .block_erase = spi_block_erase_d8,
4401 }, {
4402 .eraseblocks = { {4 * 1024 * 1024, 1} },
4403 .block_erase = spi_block_erase_60,
4404 }, {
4405 .eraseblocks = { {4 * 1024 * 1024, 1} },
4406 .block_erase = spi_block_erase_c7,
4407 }
4408 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004409 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004410 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004411 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004412 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004413 },
4414
4415 {
4416 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004417 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004418 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004419 .manufacture_id = MACRONIX_ID,
4420 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004421 .total_size = 8192,
4422 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004423 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00004424 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004425 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004426 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004427 .block_erasers =
4428 {
4429 {
4430 .eraseblocks = { {64 * 1024, 128} },
4431 .block_erase = spi_block_erase_20,
4432 }, {
4433 .eraseblocks = { {64 * 1024, 128} },
4434 .block_erase = spi_block_erase_d8,
4435 }, {
4436 .eraseblocks = { {8 * 1024 * 1024, 1} },
4437 .block_erase = spi_block_erase_60,
4438 }, {
4439 .eraseblocks = { {8 * 1024 * 1024, 1} },
4440 .block_erase = spi_block_erase_c7,
4441 }
4442 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004443 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004444 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004445 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004446 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004447 },
4448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004449 {
4450 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004451 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004452 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004453 .manufacture_id = MACRONIX_ID,
4454 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004455 .total_size = 16384,
4456 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004457 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004458 .tested = TEST_UNTESTED,
4459 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004460 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004461 .block_erasers =
4462 {
4463 {
4464 .eraseblocks = { {4 * 1024, 4096} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {64 * 1024, 256} },
4468 .block_erase = spi_block_erase_d8,
4469 }, {
4470 .eraseblocks = { {16 * 1024 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { {16 * 1024 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004477 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004478 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004479 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004480 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004481 },
4482
4483 {
4484 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004485 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004486 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004487 .manufacture_id = MACRONIX_ID,
4488 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004489 .total_size = 128,
4490 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004491 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4492 .tested = TEST_UNTESTED,
4493 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004494 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004495 .block_erasers =
4496 {
4497 {
4498 .eraseblocks = {
4499 {8 * 1024, 1},
4500 {4 * 1024, 2},
4501 {8 * 1024, 2},
4502 {32 * 1024, 1},
4503 {64 * 1024, 1},
4504 },
Sean Nelson35727f72010-01-28 23:55:12 +00004505 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004506 }, {
4507 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004508 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004509 }
4510 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004511 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004513 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004514 },
4515
4516 {
4517 .vendor = "Macronix",
4518 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004519 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004520 .manufacture_id = MACRONIX_ID,
4521 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004522 .total_size = 128,
4523 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004524 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004525 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004526 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004527 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004528 .block_erasers =
4529 {
4530 {
4531 .eraseblocks = {
4532 {64 * 1024, 1},
4533 {32 * 1024, 1},
4534 {8 * 1024, 2},
4535 {4 * 1024, 2},
4536 {8 * 1024, 1},
4537 },
Sean Nelson35727f72010-01-28 23:55:12 +00004538 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004539 }, {
4540 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004541 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004542 }
4543 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004544 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004545 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004546 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004547 },
4548
4549 {
4550 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004551 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004552 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004553 .manufacture_id = MACRONIX_ID,
4554 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004555 .total_size = 256,
4556 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004557 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004558 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004559 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004560 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004561 .block_erasers =
4562 {
4563 {
4564 .eraseblocks = {
4565 {16 * 1024, 1},
4566 {8 * 1024, 2},
4567 {32 * 1024, 1},
4568 {64 * 1024, 3},
4569 },
Sean Nelson35727f72010-01-28 23:55:12 +00004570 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004571 }, {
4572 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004573 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004574 },
4575 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004576 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004577 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004578 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004579 },
4580
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004581 {
4582 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004583 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004584 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004585 .manufacture_id = MACRONIX_ID,
4586 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004587 .total_size = 256,
4588 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004589 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004590 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004591 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004592 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004593 .block_erasers =
4594 {
4595 {
4596 .eraseblocks = {
4597 {64 * 1024, 3},
4598 {32 * 1024, 1},
4599 {8 * 1024, 2},
4600 {16 * 1024, 1},
4601 },
Sean Nelson35727f72010-01-28 23:55:12 +00004602 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004603 }, {
4604 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004605 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004606 },
4607 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004608 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004609 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004610 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004611 },
4612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004613 {
4614 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004615 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004616 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004617 .manufacture_id = MACRONIX_ID,
4618 .model_id = MACRONIX_MX29F040,
4619 .total_size = 512,
4620 .page_size = 64 * 1024,
4621 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4622 .tested = TEST_UNTESTED,
4623 .probe = probe_jedec,
4624 .probe_timing = TIMING_ZERO,
4625 .block_erasers =
4626 {
4627 {
4628 .eraseblocks = { {64 * 1024, 8} },
4629 .block_erase = erase_sector_jedec,
4630 }, {
4631 .eraseblocks = { {512 * 1024, 1} },
4632 .block_erase = erase_chip_block_jedec,
4633 },
4634 },
4635 .write = write_jedec_1,
4636 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004637 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004638 },
4639
4640 {
4641 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004642 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004643 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004644 .manufacture_id = MACRONIX_ID,
4645 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004646 .total_size = 512,
4647 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004648 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4649 .tested = TEST_UNTESTED,
4650 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004651 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004652 .block_erasers =
4653 {
4654 {
4655 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004656 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004657 }, {
4658 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004659 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004660 },
4661 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004664 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004665 },
4666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004667 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004668 .vendor = "MoselVitelic",
4669 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004670 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004671 .manufacture_id = SYNCMOS_MVC_ID,
4672 .model_id = MVC_V29C51000B,
4673 .total_size = 64,
4674 .page_size = 512,
4675 .feature_bits = FEATURE_EITHER_RESET,
4676 .tested = TEST_UNTESTED,
4677 .probe = probe_jedec,
4678 .probe_timing = TIMING_ZERO,
4679 .block_erasers =
4680 {
4681 {
4682 .eraseblocks = { {512, 128} },
4683 .block_erase = erase_sector_jedec,
4684 }, {
4685 .eraseblocks = { {64 * 1024, 1} },
4686 .block_erase = erase_chip_block_jedec,
4687 },
4688 },
4689 .write = write_jedec_1,
4690 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004691 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004692 },
4693
4694 {
4695 .vendor = "MoselVitelic",
4696 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004697 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004698 .manufacture_id = SYNCMOS_MVC_ID,
4699 .model_id = MVC_V29C51000T,
4700 .total_size = 64,
4701 .page_size = 512,
4702 .feature_bits = FEATURE_EITHER_RESET,
4703 .tested = TEST_UNTESTED,
4704 .probe = probe_jedec,
4705 .probe_timing = TIMING_ZERO,
4706 .block_erasers =
4707 {
4708 {
4709 .eraseblocks = { {512, 128} },
4710 .block_erase = erase_sector_jedec,
4711 }, {
4712 .eraseblocks = { {64 * 1024, 1} },
4713 .block_erase = erase_chip_block_jedec,
4714 },
4715 },
4716 .write = write_jedec_1,
4717 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004718 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004719 },
4720
4721 {
4722 .vendor = "MoselVitelic",
4723 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004724 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004725 .manufacture_id = SYNCMOS_MVC_ID,
4726 .model_id = MVC_V29C51400B,
4727 .total_size = 512,
4728 .page_size = 1024,
4729 .feature_bits = FEATURE_EITHER_RESET,
4730 .tested = TEST_UNTESTED,
4731 .probe = probe_jedec,
4732 .probe_timing = TIMING_ZERO,
4733 .block_erasers =
4734 {
4735 {
4736 .eraseblocks = { {1024, 512} },
4737 .block_erase = erase_sector_jedec,
4738 }, {
4739 .eraseblocks = { {512 * 1024, 1} },
4740 .block_erase = erase_chip_block_jedec,
4741 },
4742 },
4743 .write = write_jedec_1,
4744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004745 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004746 },
4747
4748 {
4749 .vendor = "MoselVitelic",
4750 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004751 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004752 .manufacture_id = SYNCMOS_MVC_ID,
4753 .model_id = MVC_V29C51400T,
4754 .total_size = 512,
4755 .page_size = 1024,
4756 .feature_bits = FEATURE_EITHER_RESET,
4757 .tested = TEST_UNTESTED,
4758 .probe = probe_jedec,
4759 .probe_timing = TIMING_ZERO,
4760 .block_erasers =
4761 {
4762 {
4763 .eraseblocks = { {1024, 512} },
4764 .block_erase = erase_sector_jedec,
4765 }, {
4766 .eraseblocks = { {512 * 1024, 1} },
4767 .block_erase = erase_chip_block_jedec,
4768 },
4769 },
4770 .write = write_jedec_1,
4771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004772 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004773 },
4774
4775 {
4776 .vendor = "MoselVitelic",
4777 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004778 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004779 .manufacture_id = SYNCMOS_MVC_ID,
4780 .model_id = MVC_V29LC51000,
4781 .total_size = 64,
4782 .page_size = 512,
4783 .feature_bits = FEATURE_EITHER_RESET,
4784 .tested = TEST_UNTESTED,
4785 .probe = probe_jedec,
4786 .probe_timing = TIMING_ZERO,
4787 .block_erasers =
4788 {
4789 {
4790 .eraseblocks = { {512, 128} },
4791 .block_erase = erase_sector_jedec,
4792 }, {
4793 .eraseblocks = { {64 * 1024, 1} },
4794 .block_erase = erase_chip_block_jedec,
4795 },
4796 },
4797 .write = write_jedec_1,
4798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004799 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004800 },
4801
4802 {
4803 .vendor = "MoselVitelic",
4804 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004805 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004806 .manufacture_id = SYNCMOS_MVC_ID,
4807 .model_id = MVC_V29LC51001,
4808 .total_size = 128,
4809 .page_size = 512,
4810 .feature_bits = FEATURE_EITHER_RESET,
4811 .tested = TEST_UNTESTED,
4812 .probe = probe_jedec,
4813 .probe_timing = TIMING_ZERO,
4814 .block_erasers =
4815 {
4816 {
4817 .eraseblocks = { {512, 256} },
4818 .block_erase = erase_sector_jedec,
4819 }, {
4820 .eraseblocks = { {128 * 1024, 1} },
4821 .block_erase = erase_chip_block_jedec,
4822 },
4823 },
4824 .write = write_jedec_1,
4825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004826 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004827 },
4828
4829 {
4830 .vendor = "MoselVitelic",
4831 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004832 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004833 .manufacture_id = SYNCMOS_MVC_ID,
4834 .model_id = MVC_V29LC51002,
4835 .total_size = 256,
4836 .page_size = 512,
4837 .feature_bits = FEATURE_EITHER_RESET,
4838 .tested = TEST_UNTESTED,
4839 .probe = probe_jedec,
4840 .probe_timing = TIMING_ZERO,
4841 .block_erasers =
4842 {
4843 {
4844 .eraseblocks = { {512, 512} },
4845 .block_erase = erase_sector_jedec,
4846 }, {
4847 .eraseblocks = { {256 * 1024, 1} },
4848 .block_erase = erase_chip_block_jedec,
4849 },
4850 },
4851 .write = write_jedec_1,
4852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004853 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004854 },
4855
4856 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004857 .vendor = "Numonyx",
4858 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004859 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004861 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004862 .total_size = 128,
4863 .page_size = 256,
4864 .tested = TEST_UNTESTED,
4865 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004866 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004867 .block_erasers =
4868 {
4869 {
4870 .eraseblocks = { {4 * 1024, 32} },
4871 .block_erase = spi_block_erase_20,
4872 }, {
4873 .eraseblocks = { {64 * 1024, 2} },
4874 .block_erase = spi_block_erase_d8,
4875 }, {
4876 .eraseblocks = { {128 * 1024, 1} },
4877 .block_erase = spi_block_erase_c7,
4878 }
4879 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004884 },
4885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004886 {
4887 .vendor = "Numonyx",
4888 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004890 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004891 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004892 .total_size = 256,
4893 .page_size = 256,
4894 .tested = TEST_UNTESTED,
4895 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004896 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004897 .block_erasers =
4898 {
4899 {
4900 .eraseblocks = { {4 * 1024, 64} },
4901 .block_erase = spi_block_erase_20,
4902 }, {
4903 .eraseblocks = { {64 * 1024, 4} },
4904 .block_erase = spi_block_erase_d8,
4905 }, {
4906 .eraseblocks = { {256 * 1024, 1} },
4907 .block_erase = spi_block_erase_c7,
4908 }
4909 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004910 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004911 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004912 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004913 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004914 },
4915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004916 {
4917 .vendor = "Numonyx",
4918 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004919 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004920 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004921 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004922 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004923 .page_size = 256,
4924 .tested = TEST_UNTESTED,
4925 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004926 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004927 .block_erasers =
4928 {
4929 {
4930 .eraseblocks = { {4 * 1024, 128} },
4931 .block_erase = spi_block_erase_20,
4932 }, {
4933 .eraseblocks = { {64 * 1024, 8} },
4934 .block_erase = spi_block_erase_d8,
4935 }, {
4936 .eraseblocks = { {512 * 1024, 1} },
4937 .block_erase = spi_block_erase_c7,
4938 }
4939 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004940 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004941 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004942 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004943 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004944 },
4945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004946 {
4947 .vendor = "Numonyx",
4948 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004949 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004950 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004951 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004952 .total_size = 1024,
4953 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004954 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004955 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004956 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004957 .block_erasers =
4958 {
4959 {
4960 .eraseblocks = { {4 * 1024, 256} },
4961 .block_erase = spi_block_erase_20,
4962 }, {
4963 .eraseblocks = { {64 * 1024, 16} },
4964 .block_erase = spi_block_erase_d8,
4965 }, {
4966 .eraseblocks = { {1024 * 1024, 1} },
4967 .block_erase = spi_block_erase_c7,
4968 }
4969 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004970 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004971 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004972 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004973 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004974 },
4975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004976 {
4977 .vendor = "Numonyx",
4978 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004979 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004980 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004981 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004982 .total_size = 2048,
4983 .page_size = 256,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004986 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004987 .block_erasers =
4988 {
4989 {
4990 .eraseblocks = { {4 * 1024, 512} },
4991 .block_erase = spi_block_erase_20,
4992 }, {
4993 .eraseblocks = { {64 * 1024, 32} },
4994 .block_erase = spi_block_erase_d8,
4995 }, {
4996 .eraseblocks = { {2 * 1024 * 1024, 1} },
4997 .block_erase = spi_block_erase_c7,
4998 }
4999 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005000 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005001 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005002 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005003 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005004 },
5005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005006 {
5007 .vendor = "PMC",
5008 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005009 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005010 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005011 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005012 .total_size = 128,
5013 .page_size = 256,
5014 .tested = TEST_UNTESTED,
5015 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005016 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005017 .block_erasers =
5018 {
5019 {
5020 .eraseblocks = { {4 * 1024, 32} },
5021 .block_erase = spi_block_erase_d7,
5022 }, {
5023 .eraseblocks = { {32 * 1024, 4} },
5024 .block_erase = spi_block_erase_d8,
5025 }, {
5026 .eraseblocks = { {128 * 1024, 1} },
5027 .block_erase = spi_block_erase_c7,
5028 }
5029 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005030 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005031 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005032 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005033 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005034 },
5035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005036 {
5037 .vendor = "PMC",
5038 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005039 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005040 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005041 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005042 .total_size = 2048,
5043 .page_size = 256,
5044 .tested = TEST_UNTESTED,
5045 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005046 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005047 .block_erasers =
5048 {
5049 {
5050 .eraseblocks = { {4 * 1024, 512} },
5051 .block_erase = spi_block_erase_d7,
5052 }, {
5053 .eraseblocks = { {4 * 1024, 512} },
5054 .block_erase = spi_block_erase_20,
5055 }, {
5056 .eraseblocks = { {64 * 1024, 32} },
5057 .block_erase = spi_block_erase_d8,
5058 }, {
5059 .eraseblocks = { {2 * 1024 * 1024, 1} },
5060 .block_erase = spi_block_erase_60,
5061 }, {
5062 .eraseblocks = { {2 * 1024 * 1024, 1} },
5063 .block_erase = spi_block_erase_c7,
5064 }
5065 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005066 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005067 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005068 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005069 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005070 },
5071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005072 {
5073 .vendor = "PMC",
5074 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005075 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005077 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005078 .total_size = 256,
5079 .page_size = 256,
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005082 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = { {4 * 1024, 64} },
5087 .block_erase = spi_block_erase_d7,
5088 }, {
5089 .eraseblocks = { {64 * 1024, 4} },
5090 .block_erase = spi_block_erase_d8,
5091 }, {
5092 .eraseblocks = { {256 * 1024, 1} },
5093 .block_erase = spi_block_erase_c7,
5094 }
5095 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005096 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005097 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005098 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005099 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005100 },
5101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005102 {
5103 .vendor = "PMC",
5104 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005105 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005106 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005107 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005108 .total_size = 512,
5109 .page_size = 256,
Stefan Tauner716e0982011-07-25 20:38:52 +00005110 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005111 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005112 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005113 .block_erasers =
5114 {
5115 {
5116 .eraseblocks = { {4 * 1024, 128} },
5117 .block_erase = spi_block_erase_d7,
5118 }, {
5119 .eraseblocks = { {64 * 1024, 8} },
5120 .block_erase = spi_block_erase_d8,
5121 }, {
5122 .eraseblocks = { {512 * 1024, 1} },
5123 .block_erase = spi_block_erase_c7,
5124 }
5125 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005126 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005127 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005128 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005129 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005130 },
5131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005132 {
5133 .vendor = "PMC",
5134 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005135 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005136 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005137 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 .total_size = 1024,
5139 .page_size = 256,
5140 .tested = TEST_UNTESTED,
5141 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005142 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005143 .block_erasers =
5144 {
5145 {
5146 .eraseblocks = { {4 * 1024, 256} },
5147 .block_erase = spi_block_erase_d7,
5148 }, {
5149 .eraseblocks = { {4 * 1024, 256} },
5150 .block_erase = spi_block_erase_20,
5151 }, {
5152 .eraseblocks = { {64 * 1024, 16} },
5153 .block_erase = spi_block_erase_d8,
5154 }, {
5155 .eraseblocks = { {1024 * 1024, 1} },
5156 .block_erase = spi_block_erase_60,
5157 }, {
5158 .eraseblocks = { {1024 * 1024, 1} },
5159 .block_erase = spi_block_erase_c7,
5160 }
5161 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005162 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005163 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005164 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005165 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005166 },
5167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005168 {
5169 .vendor = "PMC",
5170 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005171 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005172 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005173 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005174 .total_size = 64,
5175 .page_size = 256,
5176 .tested = TEST_UNTESTED,
5177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005178 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005179 .block_erasers =
5180 {
5181 {
5182 .eraseblocks = { {4 * 1024, 16} },
5183 .block_erase = spi_block_erase_d7,
5184 }, {
5185 .eraseblocks = { {32 * 1024, 2} },
5186 .block_erase = spi_block_erase_d8,
5187 }, {
5188 .eraseblocks = { {64 * 1024, 1} },
5189 .block_erase = spi_block_erase_c7,
5190 }
5191 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005192 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005193 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005194 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005195 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005196 },
5197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005198 {
5199 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005200 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005201 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005202 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005203 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005204 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005205 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005206 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005207 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00005208 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005209 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005210 .block_erasers =
5211 {
5212 {
5213 .eraseblocks = {
5214 {128 * 1024, 1},
5215 {96 * 1024, 1},
5216 {8 * 1024, 2},
5217 {16 * 1024, 1},
5218 },
Sean Nelson35727f72010-01-28 23:55:12 +00005219 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005220 }, {
5221 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005222 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005223 },
5224 },
Sean Nelson35727f72010-01-28 23:55:12 +00005225 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005226 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005227 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005228 },
5229
5230 {
5231 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005232 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005233 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005234 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005235 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005236 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005237 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005238 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005239 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005240 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005241 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005242 .block_erasers =
5243 {
5244 {
5245 .eraseblocks = {
5246 {16 * 1024, 1},
5247 {8 * 1024, 2},
5248 {96 * 1024, 1},
5249 {128 * 1024, 1},
5250 },
Sean Nelson35727f72010-01-28 23:55:12 +00005251 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005252 }, {
5253 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005254 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005255 },
5256 },
Sean Nelson35727f72010-01-28 23:55:12 +00005257 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005259 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005260 },
5261
5262 {
5263 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005264 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005265 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005266 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005267 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005268 .total_size = 128,
5269 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005270 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005271 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005272 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005273 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005274 .block_erasers =
5275 {
5276 {
5277 .eraseblocks = { {4 * 1024, 32} },
5278 .block_erase = erase_sector_jedec,
5279 }, {
5280 .eraseblocks = { {64 * 1024, 2} },
5281 .block_erase = erase_block_jedec,
5282 }, {
5283 .eraseblocks = { {128 * 1024, 1} },
5284 .block_erase = erase_chip_block_jedec,
5285 }
5286 },
Sean Nelson35727f72010-01-28 23:55:12 +00005287 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005289 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005290 },
5291
5292 {
5293 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005294 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005295 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005296 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005297 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005298 .total_size = 256,
5299 .page_size = 4096,
5300 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5301 .tested = TEST_UNTESTED,
5302 .probe = probe_jedec,
5303 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5304 .block_erasers =
5305 {
5306 {
5307 .eraseblocks = { {4 * 1024, 64} },
5308 .block_erase = erase_sector_jedec,
5309 }, {
5310 .eraseblocks = { {64 * 1024, 4} },
5311 .block_erase = erase_block_jedec,
5312 }, {
5313 .eraseblocks = { {256 * 1024, 1} },
5314 .block_erase = erase_chip_block_jedec,
5315 }
5316 },
5317 .write = write_jedec_1,
5318 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005319 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005320 },
5321
5322 {
5323 .vendor = "PMC",
5324 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005325 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005326 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005327 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005328 .total_size = 512,
5329 .page_size = 4096,
5330 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005331 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005332 .probe = probe_jedec,
5333 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5334 .block_erasers =
5335 {
5336 {
5337 .eraseblocks = { {4 * 1024, 128} },
5338 .block_erase = erase_sector_jedec,
5339 }, {
5340 .eraseblocks = { {64 * 1024, 8} },
5341 .block_erase = erase_block_jedec,
5342 }, {
5343 .eraseblocks = { {512 * 1024, 1} },
5344 .block_erase = erase_chip_block_jedec,
5345 }
5346 },
5347 .write = write_jedec_1,
5348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005349 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005350 },
5351
5352 {
5353 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005354 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005355 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005356 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005357 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005358 .total_size = 256,
5359 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005360 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005361 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005362 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005363 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005364 .block_erasers =
5365 {
5366 {
5367 .eraseblocks = { {4 * 1024, 64} },
5368 .block_erase = erase_sector_jedec,
5369 }, {
5370 .eraseblocks = { {16 * 1024, 16} },
5371 .block_erase = erase_block_jedec,
5372 }, {
5373 .eraseblocks = { {256 * 1024, 1} },
5374 .block_erase = erase_chip_block_jedec,
5375 }
5376 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005377 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005378 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005379 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005380 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005381 },
5382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005383 {
5384 .vendor = "PMC",
5385 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005386 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005387 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005388 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005389 .total_size = 512,
5390 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005391 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005392 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005393 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005394 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005395 .block_erasers =
5396 {
5397 {
5398 .eraseblocks = { {4 * 1024, 128} },
5399 .block_erase = erase_sector_jedec,
5400 }, {
5401 .eraseblocks = { {64 * 1024, 8} },
5402 .block_erase = erase_block_jedec,
5403 }, {
5404 .eraseblocks = { {512 * 1024, 1} },
5405 .block_erase = erase_chip_block_jedec,
5406 }
5407 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005408 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005409 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005411 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005412 },
5413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005414 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005415 .vendor = "Sanyo",
5416 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005417 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005418 .manufacture_id = SANYO_ID,
5419 .model_id = SANYO_LE25FW203A,
5420 .total_size = 2048,
5421 .page_size = 256,
5422 .tested = TEST_UNTESTED,
5423 .probe = probe_spi_rdid,
5424 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005425 .block_erasers =
5426 {
5427 {
5428 .eraseblocks = { {64 * 1024, 32} },
5429 .block_erase = spi_block_erase_d8,
5430 }, {
5431 .eraseblocks = { {2 * 1024 * 1024, 1} },
5432 .block_erase = spi_block_erase_c7,
5433 }
5434 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005435 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005436 .write = spi_chip_write_256,
5437 .read = spi_chip_read,
5438 },
5439
5440 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005441 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005442 .name = "LH28F008BJT-BTLZ1",
5443 .bustype = BUS_PARALLEL,
5444 .manufacture_id = SHARP_ID,
5445 .model_id = SHARP_LH28F008BJxxPB,
5446 .total_size = 1024,
5447 .page_size = 64 * 1024,
5448 .tested = TEST_OK_PREW,
5449 .probe = probe_82802ab,
5450 .probe_timing = TIMING_ZERO,
5451 .block_erasers =
5452 {
5453 {
5454 .eraseblocks = {
5455 {8 * 1024, 8},
5456 {64 * 1024, 15}
5457 },
5458 .block_erase = erase_block_82802ab,
5459 }, {
5460 .eraseblocks = { {1024 * 1024, 1} },
5461 .block_erase = erase_sector_49lfxxxc,
5462 }
5463 },
5464 .unlock = unlock_lh28f008bjt,
5465 .write = write_82802ab,
5466 .read = read_memmapped,
5467 .voltage = {2700, 3600},
5468 },
5469
5470 {
5471 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005472 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005473 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005474 .manufacture_id = SHARP_ID,
5475 .model_id = SHARP_LHF00L04,
5476 .total_size = 1024,
5477 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005478 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005479 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005480 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005481 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005482 .block_erasers =
5483 {
5484 {
5485 .eraseblocks = {
5486 {64 * 1024, 15},
5487 {8 * 1024, 8}
5488 },
Sean Nelson28accc22010-03-19 18:47:06 +00005489 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005490 }, {
5491 .eraseblocks = {
5492 {1024 * 1024, 1}
5493 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005494 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005495 },
5496 },
Sean Nelson28accc22010-03-19 18:47:06 +00005497 .unlock = unlock_82802ab,
5498 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005500 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005501 },
5502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005503 {
5504 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005505 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005506 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005507 .manufacture_id = SPANSION_ID,
5508 .model_id = SPANSION_S25FL004A,
5509 .total_size = 512,
5510 .page_size = 256,
5511 .tested = TEST_UNTESTED,
5512 .probe = probe_spi_rdid,
5513 .probe_timing = TIMING_ZERO,
5514 .block_erasers =
5515 {
5516 {
5517 .eraseblocks = { {64 * 1024, 8} },
5518 .block_erase = spi_block_erase_d8,
5519 }, {
5520 .eraseblocks = { {512 * 1024, 1} },
5521 .block_erase = spi_block_erase_c7,
5522 }
5523 },
5524 .unlock = spi_disable_blockprotect,
5525 .write = spi_chip_write_256,
5526 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005527 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005528 },
5529
5530 {
5531 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005532 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005533 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005534 .manufacture_id = SPANSION_ID,
5535 .model_id = SPANSION_S25FL008A,
5536 .total_size = 1024,
5537 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005538 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005539 .probe = probe_spi_rdid,
5540 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005541 .block_erasers =
5542 {
5543 {
5544 .eraseblocks = { {64 * 1024, 16} },
5545 .block_erase = spi_block_erase_d8,
5546 }, {
5547 .eraseblocks = { {1024 * 1024, 1} },
5548 .block_erase = spi_block_erase_c7,
5549 }
5550 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005551 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005552 .write = spi_chip_write_256,
5553 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005554 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005555 },
5556
5557 {
5558 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005559 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005561 .manufacture_id = SPANSION_ID,
5562 .model_id = SPANSION_S25FL016A,
5563 .total_size = 2048,
5564 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005565 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005566 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005567 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005568 .block_erasers =
5569 {
5570 {
5571 .eraseblocks = { {64 * 1024, 32} },
5572 .block_erase = spi_block_erase_d8,
5573 }, {
5574 .eraseblocks = { {2 * 1024 * 1024, 1} },
5575 .block_erase = spi_block_erase_c7,
5576 }
5577 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005578 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005579 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005580 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005581 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005582 },
5583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005584 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005585 .vendor = "Spansion",
5586 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005587 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005588 .manufacture_id = SPANSION_ID,
5589 .model_id = SPANSION_S25FL032A,
5590 .total_size = 4096,
5591 .page_size = 256,
5592 .tested = TEST_UNTESTED,
5593 .probe = probe_spi_rdid,
5594 .probe_timing = TIMING_ZERO,
5595 .block_erasers =
5596 {
5597 {
5598 .eraseblocks = { {64 * 1024, 64} },
5599 .block_erase = spi_block_erase_d8,
5600 }, {
5601 .eraseblocks = { {4 * 1024 * 1024, 1} },
5602 .block_erase = spi_block_erase_c7,
5603 }
5604 },
5605 .unlock = spi_disable_blockprotect,
5606 .write = spi_chip_write_256,
5607 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005608 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005609 },
5610
5611 {
5612 .vendor = "Spansion",
5613 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005614 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005615 .manufacture_id = SPANSION_ID,
5616 .model_id = SPANSION_S25FL064A,
5617 .total_size = 8192,
5618 .page_size = 256,
5619 .tested = TEST_OK_PREW,
5620 .probe = probe_spi_rdid,
5621 .probe_timing = TIMING_ZERO,
5622 .block_erasers =
5623 {
5624 {
5625 .eraseblocks = { {64 * 1024, 128} },
5626 .block_erase = spi_block_erase_d8,
5627 }, {
5628 .eraseblocks = { {8 * 1024 * 1024, 1} },
5629 .block_erase = spi_block_erase_c7,
5630 }
5631 },
5632 .unlock = spi_disable_blockprotect,
5633 .write = spi_chip_write_256,
5634 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005635 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005636 },
5637
5638 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005639 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00005640 .name = "SST25LF040A",
5641 .bustype = BUS_SPI,
5642 .manufacture_id = SST_ID,
5643 .model_id = SST_SST25VF040_REMS,
5644 .total_size = 512,
5645 .page_size = 256,
Uwe Hermann4335ec82011-09-07 20:20:25 +00005646 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00005647 .probe = probe_spi_res2,
5648 .probe_timing = TIMING_ZERO,
5649 .block_erasers =
5650 {
5651 {
5652 .eraseblocks = { {4 * 1024, 128} },
5653 .block_erase = spi_block_erase_20,
5654 }, {
5655 .eraseblocks = { {32 * 1024, 16} },
5656 .block_erase = spi_block_erase_52,
5657 }, {
5658 .eraseblocks = { {512 * 1024, 1} },
5659 .block_erase = spi_block_erase_60,
5660 },
5661 },
5662 .unlock = spi_disable_blockprotect,
5663 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5664 .read = spi_chip_read,
5665 .voltage = {3000, 3600},
5666 },
5667
5668 {
5669 .vendor = "SST",
5670 .name = "SST25LF080A",
5671 .bustype = BUS_SPI,
5672 .manufacture_id = SST_ID,
5673 .model_id = SST_SST25VF080_REMS,
5674 .total_size = 1024,
5675 .page_size = 256,
5676 .tested = TEST_UNTESTED,
5677 .probe = probe_spi_res2,
5678 .probe_timing = TIMING_ZERO,
5679 .block_erasers =
5680 {
5681 {
5682 .eraseblocks = { {4 * 1024, 256} },
5683 .block_erase = spi_block_erase_20,
5684 }, {
5685 .eraseblocks = { {32 * 1024, 32} },
5686 .block_erase = spi_block_erase_52,
5687 }, {
5688 .eraseblocks = { {1024 * 1024, 1} },
5689 .block_erase = spi_block_erase_60,
5690 },
5691 },
5692 .unlock = spi_disable_blockprotect,
5693 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5694 .read = spi_chip_read,
5695 .voltage = {3000, 3600},
5696 },
5697
5698 {
5699 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005700 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005701 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00005702 .manufacture_id = SST_ID,
5703 .model_id = SST_SST25VF010_REMS,
5704 .total_size = 128,
5705 .page_size = 256,
5706 .tested = TEST_OK_PREW,
5707 .probe = probe_spi_rems,
5708 .probe_timing = TIMING_ZERO,
5709 .block_erasers =
5710 {
5711 {
5712 .eraseblocks = { {4 * 1024, 32} },
5713 .block_erase = spi_block_erase_20,
5714 }, {
5715 .eraseblocks = { {32 * 1024, 4} },
5716 .block_erase = spi_block_erase_52,
5717 }, {
5718 .eraseblocks = { {128 * 1024, 1} },
5719 .block_erase = spi_block_erase_60,
5720 },
5721 },
5722 .unlock = spi_disable_blockprotect,
5723 .write = spi_chip_write_1,
5724 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005725 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00005726 },
5727
5728 {
5729 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005730 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005731 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005732 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005733 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005734 .total_size = 2048,
5735 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00005736 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005737 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005738 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005739 .block_erasers =
5740 {
5741 {
5742 .eraseblocks = { {4 * 1024, 512} },
5743 .block_erase = spi_block_erase_20,
5744 }, {
5745 .eraseblocks = { {32 * 1024, 64} },
5746 .block_erase = spi_block_erase_52,
5747 }, {
5748 .eraseblocks = { {64 * 1024, 32} },
5749 .block_erase = spi_block_erase_d8,
5750 }, {
5751 .eraseblocks = { {2 * 1024 * 1024, 1} },
5752 .block_erase = spi_block_erase_60,
5753 }, {
5754 .eraseblocks = { {2 * 1024 * 1024, 1} },
5755 .block_erase = spi_block_erase_c7,
5756 },
5757 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005758 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005759 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005760 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005761 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005762 },
5763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005764 {
5765 .vendor = "SST",
5766 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005768 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005769 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005770 .total_size = 4096,
5771 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00005772 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005773 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005774 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005775 .block_erasers =
5776 {
5777 {
5778 .eraseblocks = { {4 * 1024, 1024} },
5779 .block_erase = spi_block_erase_20,
5780 }, {
5781 .eraseblocks = { {32 * 1024, 128} },
5782 .block_erase = spi_block_erase_52,
5783 }, {
5784 .eraseblocks = { {64 * 1024, 64} },
5785 .block_erase = spi_block_erase_d8,
5786 }, {
5787 .eraseblocks = { {4 * 1024 * 1024, 1} },
5788 .block_erase = spi_block_erase_60,
5789 }, {
5790 .eraseblocks = { {4 * 1024 * 1024, 1} },
5791 .block_erase = spi_block_erase_c7,
5792 },
5793 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005794 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005795 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005796 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005797 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005798 },
5799
5800 {
5801 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005802 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005803 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005804 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005805 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005806 .total_size = 8192,
5807 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00005808 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005809 .probe = probe_spi_rdid,
5810 .probe_timing = TIMING_ZERO,
5811 .block_erasers =
5812 {
5813 {
5814 .eraseblocks = { {4 * 1024, 2048} },
5815 .block_erase = spi_block_erase_20,
5816 }, {
5817 .eraseblocks = { {32 * 1024, 256} },
5818 .block_erase = spi_block_erase_52,
5819 }, {
5820 .eraseblocks = { {64 * 1024, 128} },
5821 .block_erase = spi_block_erase_d8,
5822 }, {
5823 .eraseblocks = { {8 * 1024 * 1024, 1} },
5824 .block_erase = spi_block_erase_60,
5825 }, {
5826 .eraseblocks = { {8 * 1024 * 1024, 1} },
5827 .block_erase = spi_block_erase_c7,
5828 },
5829 },
5830 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005831 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005832 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005833 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005834 },
5835
5836 {
5837 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005838 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005839 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005840 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005841 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005842 .total_size = 512,
5843 .page_size = 256,
5844 .tested = TEST_OK_PR,
5845 .probe = probe_spi_rems,
5846 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005847 .block_erasers =
5848 {
5849 {
5850 .eraseblocks = { {4 * 1024, 128} },
5851 .block_erase = spi_block_erase_20,
5852 }, {
5853 .eraseblocks = { {32 * 1024, 16} },
5854 .block_erase = spi_block_erase_52,
5855 }, {
5856 .eraseblocks = { {512 * 1024, 1} },
5857 .block_erase = spi_block_erase_60,
5858 },
5859 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005860 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005861 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005862 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005863 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005864 },
5865
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005866 {
5867 .vendor = "SST",
5868 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005869 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005870 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005871 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005872 .total_size = 512,
5873 .page_size = 256,
5874 .tested = TEST_UNTESTED,
5875 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005876 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005877 .block_erasers =
5878 {
5879 {
5880 .eraseblocks = { {4 * 1024, 128} },
5881 .block_erase = spi_block_erase_20,
5882 }, {
5883 .eraseblocks = { {32 * 1024, 16} },
5884 .block_erase = spi_block_erase_52,
5885 }, {
5886 .eraseblocks = { {64 * 1024, 8} },
5887 .block_erase = spi_block_erase_d8,
5888 }, {
5889 .eraseblocks = { {512 * 1024, 1} },
5890 .block_erase = spi_block_erase_60,
5891 }, {
5892 .eraseblocks = { {512 * 1024, 1} },
5893 .block_erase = spi_block_erase_c7,
5894 },
5895 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005896 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005897 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00005898 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005899 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00005900 },
5901
5902 {
5903 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005904 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005905 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005906 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005907 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005908 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005909 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005910 .tested = TEST_OK_PR,
5911 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005912 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005913 .block_erasers =
5914 {
5915 {
5916 .eraseblocks = { {4 * 1024, 128} },
5917 .block_erase = spi_block_erase_20,
5918 }, {
5919 .eraseblocks = { {32 * 1024, 16} },
5920 .block_erase = spi_block_erase_52,
5921 }, {
5922 .eraseblocks = { {64 * 1024, 8} },
5923 .block_erase = spi_block_erase_d8,
5924 }, {
5925 .eraseblocks = { {512 * 1024, 1} },
5926 .block_erase = spi_block_erase_60,
5927 }, {
5928 .eraseblocks = { {512 * 1024, 1} },
5929 .block_erase = spi_block_erase_c7,
5930 },
5931 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005932 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005933 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00005934 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005935 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00005936 },
5937
5938 {
5939 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005940 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005941 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005942 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005943 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005944 .total_size = 1024,
5945 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00005946 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005948 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005949 .block_erasers =
5950 {
5951 {
5952 .eraseblocks = { {4 * 1024, 256} },
5953 .block_erase = spi_block_erase_20,
5954 }, {
5955 .eraseblocks = { {32 * 1024, 32} },
5956 .block_erase = spi_block_erase_52,
5957 }, {
5958 .eraseblocks = { {64 * 1024, 16} },
5959 .block_erase = spi_block_erase_d8,
5960 }, {
5961 .eraseblocks = { {1024 * 1024, 1} },
5962 .block_erase = spi_block_erase_60,
5963 }, {
5964 .eraseblocks = { {1024 * 1024, 1} },
5965 .block_erase = spi_block_erase_c7,
5966 },
5967 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005968 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005969 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005970 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005971 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005972 },
5973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005974 {
5975 .vendor = "SST",
5976 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005977 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005978 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005979 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005980 .total_size = 512,
5981 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005982 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005983 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005984 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005985 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005986 .block_erasers =
5987 {
5988 {
5989 .eraseblocks = { {128, 4096} },
5990 .block_erase = erase_sector_28sf040,
5991 }, {
5992 .eraseblocks = { {512 * 1024, 1} },
5993 .block_erase = erase_chip_28sf040,
5994 }
5995 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005996 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005997 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005999 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006000 },
6001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 {
6003 .vendor = "SST",
6004 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006005 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006006 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006007 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 .total_size = 128,
6009 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006010 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006011 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006012 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006013 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006014 .block_erasers =
6015 {
6016 {
6017 .eraseblocks = { {128 * 1024, 1} },
6018 .block_erase = erase_chip_block_jedec,
6019 }
6020 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006021 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006023 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006024 },
6025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006026 {
6027 .vendor = "SST",
6028 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006029 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006030 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006031 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006032 .total_size = 128,
6033 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006034 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006035 .tested = TEST_UNTESTED,
6036 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006037 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006038 .block_erasers =
6039 {
6040 {
6041 .eraseblocks = { {128 * 1024, 1} },
6042 .block_erase = erase_chip_block_jedec,
6043 }
6044 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006046 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006047 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006048 },
6049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 {
6051 .vendor = "SST",
6052 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006053 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006054 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006055 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006056 .total_size = 256,
6057 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006058 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006059 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006060 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006061 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006062 .block_erasers =
6063 {
6064 {
6065 .eraseblocks = { {256 * 1024, 1} },
6066 .block_erase = erase_chip_block_jedec,
6067 }
6068 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006069 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006071 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006072 },
6073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006074 {
6075 .vendor = "SST",
6076 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006077 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006078 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006079 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006080 .total_size = 256,
6081 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006082 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006083 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006084 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006085 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006086 .block_erasers =
6087 {
6088 {
6089 .eraseblocks = { {256 * 1024, 1} },
6090 .block_erase = erase_chip_block_jedec,
6091 }
6092 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006093 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006094 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006095 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006096 },
6097
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006098 {
6099 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006100 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006101 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006102 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006103 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006104 .total_size = 64,
6105 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006106 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006107 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006108 .probe = probe_jedec,
6109 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006110 .block_erasers =
6111 {
6112 {
6113 .eraseblocks = { {4 * 1024, 16} },
6114 .block_erase = erase_sector_jedec,
6115 }, {
6116 .eraseblocks = { {64 * 1024, 1} },
6117 .block_erase = erase_chip_block_jedec,
6118 }
6119 },
Sean Nelson35727f72010-01-28 23:55:12 +00006120 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006122 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006123 },
6124
6125 {
6126 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006127 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006128 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006129 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006130 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006131 .total_size = 128,
6132 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006133 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006134 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006135 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006136 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006137 .block_erasers =
6138 {
6139 {
6140 .eraseblocks = { {4 * 1024, 32} },
6141 .block_erase = erase_sector_jedec,
6142 }, {
6143 .eraseblocks = { {128 * 1024, 1} },
6144 .block_erase = erase_chip_block_jedec,
6145 }
6146 },
Sean Nelson35727f72010-01-28 23:55:12 +00006147 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006149 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006150 },
6151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006152 {
6153 .vendor = "SST",
6154 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006155 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006156 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006157 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 .total_size = 256,
6159 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006160 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006162 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006163 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006164 .block_erasers =
6165 {
6166 {
6167 .eraseblocks = { {4 * 1024, 64} },
6168 .block_erase = erase_sector_jedec,
6169 }, {
6170 .eraseblocks = { {256 * 1024, 1} },
6171 .block_erase = erase_chip_block_jedec,
6172 }
6173 },
Sean Nelson35727f72010-01-28 23:55:12 +00006174 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006176 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006177 },
6178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006179 {
6180 .vendor = "SST",
6181 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006182 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006183 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006184 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006185 .total_size = 512,
6186 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006187 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006188 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006189 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006190 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006191 .block_erasers =
6192 {
6193 {
6194 .eraseblocks = { {4 * 1024, 128} },
6195 .block_erase = erase_sector_jedec,
6196 }, {
6197 .eraseblocks = { {512 * 1024, 1} },
6198 .block_erase = erase_chip_block_jedec,
6199 }
6200 },
Sean Nelson35727f72010-01-28 23:55:12 +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 = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006204 },
6205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006206 {
6207 .vendor = "SST",
6208 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006209 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006210 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006211 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006212 .total_size = 64,
6213 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006214 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006215 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006216 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006217 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006218 .block_erasers =
6219 {
6220 {
6221 .eraseblocks = { {4 * 1024, 16} },
6222 .block_erase = erase_sector_jedec,
6223 }, {
6224 .eraseblocks = { {64 * 1024, 1} },
6225 .block_erase = erase_chip_block_jedec,
6226 }
6227 },
Sean Nelson35727f72010-01-28 23:55:12 +00006228 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006230 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006231 },
6232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006233 {
6234 .vendor = "SST",
6235 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006236 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006237 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006238 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006239 .total_size = 128,
6240 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006241 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006242 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006243 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006244 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006245 .block_erasers =
6246 {
6247 {
6248 .eraseblocks = { {4 * 1024, 32} },
6249 .block_erase = erase_sector_jedec,
6250 }, {
6251 .eraseblocks = { {128 * 1024, 1} },
6252 .block_erase = erase_chip_block_jedec,
6253 }
6254 },
Sean Nelson35727f72010-01-28 23:55:12 +00006255 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006257 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006258 },
6259
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 {
6261 .vendor = "SST",
6262 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006263 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006264 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006265 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006266 .total_size = 256,
6267 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006268 .feature_bits = FEATURE_EITHER_RESET,
6269 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006270 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006271 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006272 .block_erasers =
6273 {
6274 {
6275 .eraseblocks = { {4 * 1024, 64} },
6276 .block_erase = erase_sector_jedec,
6277 }, {
6278 .eraseblocks = { {256 * 1024, 1} },
6279 .block_erase = erase_chip_block_jedec,
6280 }
6281 },
Sean Nelson35727f72010-01-28 23:55:12 +00006282 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006283 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006284 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006285 },
6286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006287 {
6288 .vendor = "SST",
6289 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006290 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006291 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006292 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006293 .total_size = 512,
6294 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006295 .feature_bits = FEATURE_EITHER_RESET,
6296 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006298 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006299 .block_erasers =
6300 {
6301 {
6302 .eraseblocks = { {4 * 1024, 128} },
6303 .block_erase = erase_sector_jedec,
6304 }, {
6305 .eraseblocks = { {512 * 1024, 1} },
6306 .block_erase = erase_chip_block_jedec,
6307 }
6308 },
Sean Nelson35727f72010-01-28 23:55:12 +00006309 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006310 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006311 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006312 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006313
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006314 {
6315 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006316 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006317 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006318 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006319 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006320 .total_size = 1024,
6321 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006322 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006323 .tested = TEST_UNTESTED,
6324 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006325 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006326 .block_erasers =
6327 {
6328 {
6329 .eraseblocks = { {4 * 1024, 256} },
6330 .block_erase = erase_sector_jedec,
6331 }, {
6332 .eraseblocks = { {64 * 1024, 16} },
6333 .block_erase = erase_block_jedec,
6334 }, {
6335 .eraseblocks = { {1024 * 1024, 1} },
6336 .block_erase = erase_chip_block_jedec,
6337 }
6338 },
Sean Nelson35727f72010-01-28 23:55:12 +00006339 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006341 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006342 },
6343
6344 {
6345 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006346 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006347 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006348 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006349 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006350 .total_size = 256,
6351 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006352 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006353 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006354 .probe = probe_jedec,
6355 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006356 .block_erasers =
6357 {
6358 {
6359 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006360 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006361 }, {
6362 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006363 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006364 }, {
6365 .eraseblocks = { {256 * 1024, 1} },
6366 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6367 }
6368 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006369 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006370 .unlock = unlock_sst_fwhub,
6371 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006373 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006374 },
6375
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006376 {
6377 .vendor = "SST",
6378 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006379 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006380 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006381 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006382 .total_size = 384,
6383 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006385 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006386 .probe = probe_jedec,
6387 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006388 .block_erasers =
6389 {
6390 {
6391 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006392 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006393 }, {
6394 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006395 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006396 }, {
6397 .eraseblocks = { {384 * 1024, 1} },
6398 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6399 }
6400 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006401 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006402 .unlock = unlock_sst_fwhub,
6403 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006404 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006405 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006406 },
6407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006408 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006409 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6410 * and is only honored for 64k block erase, but not 4k sector erase.
6411 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006412 .vendor = "SST",
6413 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006414 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006415 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006416 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006417 .total_size = 512,
6418 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006419 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006420 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006421 .probe = probe_jedec,
6422 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006423 .block_erasers =
6424 {
6425 {
6426 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006427 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006428 }, {
6429 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006430 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006431 }, {
6432 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006433 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006434 },
6435 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006436 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006437 .unlock = unlock_sst_fwhub,
6438 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006439 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006440 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006441 },
6442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006443 {
6444 .vendor = "SST",
6445 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006446 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006447 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006448 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006449 .total_size = 512,
6450 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006451 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006452 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006453 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006454 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006455 .block_erasers =
6456 {
6457 {
6458 .eraseblocks = { {4 * 1024, 128} },
6459 .block_erase = erase_sector_49lfxxxc,
6460 }, {
6461 .eraseblocks = {
6462 {64 * 1024, 7},
6463 {32 * 1024, 1},
6464 {8 * 1024, 2},
6465 {16 * 1024, 1},
6466 },
Sean Nelson69e58112010-03-23 17:10:28 +00006467 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006468 }
6469 },
Sean Nelson69e58112010-03-23 17:10:28 +00006470 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006471 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006473 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006474 },
6475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006476 {
6477 .vendor = "SST",
6478 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006479 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006480 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006481 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006482 .total_size = 1024,
6483 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006484 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006485 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006486 .probe = probe_jedec,
6487 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006488 .block_erasers =
6489 {
6490 {
6491 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006492 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006493 }, {
6494 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006495 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006496 }, {
6497 .eraseblocks = { {1024 * 1024, 1} },
6498 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6499 }
6500 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006501 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006502 .unlock = unlock_sst_fwhub,
6503 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006505 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006506 },
6507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006508 {
6509 .vendor = "SST",
6510 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006511 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006512 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006513 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006514 .total_size = 1024,
6515 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006516 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006517 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006518 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006519 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006520 .block_erasers =
6521 {
6522 {
6523 .eraseblocks = { {4 * 1024, 256} },
6524 .block_erase = erase_sector_49lfxxxc,
6525 }, {
6526 .eraseblocks = {
6527 {64 * 1024, 15},
6528 {32 * 1024, 1},
6529 {8 * 1024, 2},
6530 {16 * 1024, 1},
6531 },
Sean Nelson69e58112010-03-23 17:10:28 +00006532 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006533 }
6534 },
Sean Nelson69e58112010-03-23 17:10:28 +00006535 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006536 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006538 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006539 },
6540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006541 {
6542 .vendor = "SST",
6543 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006544 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006545 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006546 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006547 .total_size = 2048,
6548 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006549 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006550 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006551 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006552 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006553 .block_erasers =
6554 {
6555 {
6556 .eraseblocks = { {4 * 1024, 512} },
6557 .block_erase = erase_sector_49lfxxxc,
6558 }, {
6559 .eraseblocks = {
6560 {64 * 1024, 31},
6561 {32 * 1024, 1},
6562 {8 * 1024, 2},
6563 {16 * 1024, 1},
6564 },
Sean Nelson69e58112010-03-23 17:10:28 +00006565 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006566 }
6567 },
Sean Nelson69e58112010-03-23 17:10:28 +00006568 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006569 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006571 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006572 },
6573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006574 {
6575 .vendor = "SST",
6576 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006577 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006578 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006579 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006580 .total_size = 256,
6581 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006582 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006583 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006584 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006585 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006586 .block_erasers =
6587 {
6588 {
6589 .eraseblocks = { {4 * 1024, 64} },
6590 .block_erase = erase_sector_jedec,
6591 }, {
6592 .eraseblocks = { {16 * 1024, 16} },
6593 .block_erase = erase_block_jedec,
6594 }, {
6595 .eraseblocks = { {256 * 1024, 1} },
6596 .block_erase = NULL,
6597 }
6598 },
Sean Nelson35727f72010-01-28 23:55:12 +00006599 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006601 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006602 },
6603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006604 {
6605 .vendor = "SST",
6606 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006607 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006608 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006609 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006610 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006611 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006612 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006613 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006614 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006615 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006616 .block_erasers =
6617 {
6618 {
6619 .eraseblocks = { {4 * 1024, 64} },
6620 .block_erase = erase_sector_jedec,
6621 }, {
6622 .eraseblocks = { {16 * 1024, 16} },
6623 .block_erase = erase_block_jedec,
6624 }, {
6625 .eraseblocks = { {256 * 1024, 1} },
6626 .block_erase = NULL,
6627 }
6628 },
Sean Nelson35727f72010-01-28 23:55:12 +00006629 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006631 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006632 },
6633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006634 {
6635 .vendor = "SST",
6636 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006637 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006638 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006639 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006640 .total_size = 512,
6641 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006642 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006643 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006644 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006645 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006646 .block_erasers =
6647 {
6648 {
6649 .eraseblocks = { {4 * 1024, 128} },
6650 .block_erase = erase_sector_jedec,
6651 }, {
6652 .eraseblocks = { {64 * 1024, 8} },
6653 .block_erase = erase_block_jedec,
6654 }, {
6655 .eraseblocks = { {512 * 1024, 1} },
6656 .block_erase = NULL,
6657 }
6658 },
Sean Nelson35727f72010-01-28 23:55:12 +00006659 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006661 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006662 },
6663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006664 {
6665 .vendor = "SST",
6666 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006667 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006668 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006669 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006670 .total_size = 512,
6671 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006672 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006673 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006674 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006675 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006676 .block_erasers =
6677 {
6678 {
6679 .eraseblocks = { {4 * 1024, 128} },
6680 .block_erase = erase_sector_jedec,
6681 }, {
6682 .eraseblocks = { {64 * 1024, 8} },
6683 .block_erase = erase_block_jedec,
6684 }, {
6685 .eraseblocks = { {512 * 1024, 1} },
6686 .block_erase = NULL,
6687 }
6688 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006689 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006690 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006691 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006692 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006693 },
6694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006695 {
6696 .vendor = "SST",
6697 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006698 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006699 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006700 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006701 .total_size = 1024,
6702 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006703 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00006704 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006705 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006706 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006707 .block_erasers =
6708 {
6709 {
6710 .eraseblocks = { {4 * 1024, 256} },
6711 .block_erase = erase_sector_jedec,
6712 }, {
6713 .eraseblocks = { {64 * 1024, 16} },
6714 .block_erase = erase_block_jedec,
6715 }, {
6716 .eraseblocks = { {1024 * 1024, 1} },
6717 .block_erase = NULL,
6718 }
6719 },
Sean Nelson35727f72010-01-28 23:55:12 +00006720 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006722 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006723 },
6724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006725 {
6726 .vendor = "SST",
6727 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006728 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006729 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006730 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006731 .total_size = 2048,
6732 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006733 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006734 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006735 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006736 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006737 .block_erasers =
6738 {
6739 {
6740 .eraseblocks = { {4 * 1024, 512} },
6741 .block_erase = erase_sector_49lfxxxc,
6742 }, {
6743 .eraseblocks = {
6744 {64 * 1024, 31},
6745 {32 * 1024, 1},
6746 {8 * 1024, 2},
6747 {16 * 1024, 1},
6748 },
Sean Nelson69e58112010-03-23 17:10:28 +00006749 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006750 }
6751 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006752 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006753 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006755 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006756 },
6757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006758 {
6759 .vendor = "ST",
6760 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006761 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006762 .manufacture_id = ST_ID,
6763 .model_id = ST_M25P05A,
6764 .total_size = 64,
6765 .page_size = 256,
6766 .tested = TEST_UNTESTED,
6767 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006768 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006769 .block_erasers =
6770 {
6771 {
6772 .eraseblocks = { {32 * 1024, 2} },
6773 .block_erase = spi_block_erase_d8,
6774 }, {
6775 .eraseblocks = { {64 * 1024, 1} },
6776 .block_erase = spi_block_erase_c7,
6777 }
6778 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006779 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006780 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006781 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006782 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006783 },
6784
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006785 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6786 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006787 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006788 * only is successful if RDID does not work.
6789 */
6790 {
6791 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006792 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006793 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006794 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006795 .model_id = ST_M25P05_RES,
6796 .total_size = 64,
6797 .page_size = 256,
6798 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006799 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006800 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006801 .block_erasers =
6802 {
6803 {
6804 .eraseblocks = { {32 * 1024, 2} },
6805 .block_erase = spi_block_erase_d8,
6806 }, {
6807 .eraseblocks = { {64 * 1024, 1} },
6808 .block_erase = spi_block_erase_c7,
6809 }
6810 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006811 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006812 .write = spi_chip_write_1, /* 128 */
6813 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006814 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006815 },
6816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006817 {
6818 .vendor = "ST",
6819 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006820 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006821 .manufacture_id = ST_ID,
6822 .model_id = ST_M25P10A,
6823 .total_size = 128,
6824 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006825 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006826 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006827 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006828 .block_erasers =
6829 {
6830 {
6831 .eraseblocks = { {32 * 1024, 4} },
6832 .block_erase = spi_block_erase_d8,
6833 }, {
6834 .eraseblocks = { {128 * 1024, 1} },
6835 .block_erase = spi_block_erase_c7,
6836 }
6837 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006838 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006839 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006840 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006841 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006842 },
6843
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006844 /* The ST M25P10 has the same problem as the M25P05. */
6845 {
6846 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006847 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006848 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006849 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006850 .model_id = ST_M25P10_RES,
6851 .total_size = 128,
6852 .page_size = 256,
6853 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006854 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006855 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006856 .block_erasers =
6857 {
6858 {
6859 .eraseblocks = { {32 * 1024, 4} },
6860 .block_erase = spi_block_erase_d8,
6861 }, {
6862 .eraseblocks = { {128 * 1024, 1} },
6863 .block_erase = spi_block_erase_c7,
6864 }
6865 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006866 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006867 .write = spi_chip_write_1, /* 128 */
6868 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006869 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006870 },
6871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006872 {
6873 .vendor = "ST",
6874 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006875 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006876 .manufacture_id = ST_ID,
6877 .model_id = ST_M25P20,
6878 .total_size = 256,
6879 .page_size = 256,
6880 .tested = TEST_UNTESTED,
6881 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006882 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006883 .block_erasers =
6884 {
6885 {
6886 .eraseblocks = { {64 * 1024, 4} },
6887 .block_erase = spi_block_erase_d8,
6888 }, {
6889 .eraseblocks = { {256 * 1024, 1} },
6890 .block_erase = spi_block_erase_c7,
6891 }
6892 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006893 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006894 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006895 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006896 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006897 },
6898
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006899 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006900 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006901 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006902 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006903 .manufacture_id = ST_ID,
6904 .model_id = ST_M25P40,
6905 .total_size = 512,
6906 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006907 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006908 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006909 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006910 .block_erasers =
6911 {
6912 {
6913 .eraseblocks = { {64 * 1024, 8} },
6914 .block_erase = spi_block_erase_d8,
6915 }, {
6916 .eraseblocks = { {512 * 1024, 1} },
6917 .block_erase = spi_block_erase_c7,
6918 }
6919 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006920 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006921 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006922 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006923 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006924 },
6925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006926 {
6927 .vendor = "ST",
6928 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006929 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006930 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006931 .model_id = ST_M25P40_RES,
6932 .total_size = 512,
6933 .page_size = 256,
6934 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006935 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006936 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006937 .block_erasers =
6938 {
6939 {
6940 .eraseblocks = { {64 * 1024, 8} },
6941 .block_erase = spi_block_erase_d8,
6942 }, {
6943 .eraseblocks = { {512 * 1024, 1} },
6944 .block_erase = spi_block_erase_c7,
6945 }
6946 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006947 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006948 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006949 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006950 },
6951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006952 {
6953 .vendor = "ST",
6954 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006955 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006956 .manufacture_id = ST_ID,
6957 .model_id = ST_M25P80,
6958 .total_size = 1024,
6959 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006960 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006961 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006962 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006963 .block_erasers =
6964 {
6965 {
6966 .eraseblocks = { {64 * 1024, 16} },
6967 .block_erase = spi_block_erase_d8,
6968 }, {
6969 .eraseblocks = { {1024 * 1024, 1} },
6970 .block_erase = spi_block_erase_c7,
6971 }
6972 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006973 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006974 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006975 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006976 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006977 },
6978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 {
6980 .vendor = "ST",
6981 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006982 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006983 .manufacture_id = ST_ID,
6984 .model_id = ST_M25P16,
6985 .total_size = 2048,
6986 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006987 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006988 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006989 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006990 .block_erasers =
6991 {
6992 {
6993 .eraseblocks = { {64 * 1024, 32} },
6994 .block_erase = spi_block_erase_d8,
6995 }, {
6996 .eraseblocks = { {2 * 1024 * 1024, 1} },
6997 .block_erase = spi_block_erase_c7,
6998 }
6999 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007000 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007001 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007002 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007003 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007004 },
7005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007006 {
7007 .vendor = "ST",
7008 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007009 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007010 .manufacture_id = ST_ID,
7011 .model_id = ST_M25P32,
7012 .total_size = 4096,
7013 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007014 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007015 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007016 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007017 .block_erasers =
7018 {
7019 {
7020 .eraseblocks = { {64 * 1024, 64} },
7021 .block_erase = spi_block_erase_d8,
7022 }, {
7023 .eraseblocks = { {4 * 1024 * 1024, 1} },
7024 .block_erase = spi_block_erase_c7,
7025 }
7026 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007027 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007028 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007029 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007030 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007031 },
7032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007033 {
7034 .vendor = "ST",
7035 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007036 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 .manufacture_id = ST_ID,
7038 .model_id = ST_M25P64,
7039 .total_size = 8192,
7040 .page_size = 256,
7041 .tested = TEST_UNTESTED,
7042 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007043 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007044 .block_erasers =
7045 {
7046 {
7047 .eraseblocks = { {64 * 1024, 128} },
7048 .block_erase = spi_block_erase_d8,
7049 }, {
7050 .eraseblocks = { {8 * 1024 * 1024, 1} },
7051 .block_erase = spi_block_erase_c7,
7052 }
7053 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007054 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007055 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007056 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007057 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007058 },
7059
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007060 {
7061 .vendor = "ST",
7062 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007063 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007064 .manufacture_id = ST_ID,
7065 .model_id = ST_M25P128,
7066 .total_size = 16384,
7067 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007068 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007070 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007071 .block_erasers =
7072 {
7073 {
7074 .eraseblocks = { {256 * 1024, 64} },
7075 .block_erase = spi_block_erase_d8,
7076 }, {
7077 .eraseblocks = { {16 * 1024 * 1024, 1} },
7078 .block_erase = spi_block_erase_c7,
7079 }
7080 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007081 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007082 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007083 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007084 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007085 },
7086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007087 {
7088 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007089 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007090 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007091 .manufacture_id = ST_ID,
7092 .model_id = ST_M25PX16,
7093 .total_size = 2048,
7094 .page_size = 256,
7095 .tested = TEST_OK_PREW,
7096 .probe = probe_spi_rdid,
7097 .probe_timing = TIMING_ZERO,
7098 .block_erasers =
7099 {
7100 {
7101 .eraseblocks = { { 4 * 1024, 512 } },
7102 .block_erase = spi_block_erase_20,
7103 }, {
7104 .eraseblocks = { {64 * 1024, 32} },
7105 .block_erase = spi_block_erase_d8,
7106 }, {
7107 .eraseblocks = { {2 * 1024 * 1024, 1} },
7108 .block_erase = spi_block_erase_c7,
7109 }
7110 },
7111 .unlock = spi_disable_blockprotect,
7112 .write = spi_chip_write_256,
7113 .read = spi_chip_read,
7114 },
7115
7116 {
7117 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007118 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007119 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007120 .manufacture_id = ST_ID,
7121 .model_id = ST_M25PX32,
7122 .total_size = 4096,
7123 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007124 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007125 .probe = probe_spi_rdid,
7126 .probe_timing = TIMING_ZERO,
7127 .block_erasers =
7128 {
7129 {
7130 .eraseblocks = { { 4 * 1024, 1024 } },
7131 .block_erase = spi_block_erase_20,
7132 }, {
7133 .eraseblocks = { {64 * 1024, 64} },
7134 .block_erase = spi_block_erase_d8,
7135 }, {
7136 .eraseblocks = { {4 * 1024 * 1024, 1} },
7137 .block_erase = spi_block_erase_c7,
7138 }
7139 },
7140 .unlock = spi_disable_blockprotect,
7141 .write = spi_chip_write_256,
7142 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007143 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007144 },
7145
7146 {
7147 .vendor = "ST",
7148 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007149 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007150 .manufacture_id = ST_ID,
7151 .model_id = ST_M25PX64,
7152 .total_size = 8192,
7153 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007154 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007155 .probe = probe_spi_rdid,
7156 .probe_timing = TIMING_ZERO,
7157 .block_erasers =
7158 {
7159 {
7160 .eraseblocks = { { 4 * 1024, 2048 } },
7161 .block_erase = spi_block_erase_20,
7162 }, {
7163 .eraseblocks = { {64 * 1024, 128} },
7164 .block_erase = spi_block_erase_d8,
7165 }, {
7166 .eraseblocks = { {8 * 1024 * 1024, 1} },
7167 .block_erase = spi_block_erase_c7,
7168 }
7169 },
7170 .unlock = spi_disable_blockprotect,
7171 .write = spi_chip_write_256,
7172 .read = spi_chip_read,
7173 },
7174
7175 {
7176 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007177 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007178 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007179 .manufacture_id = ST_ID,
7180 .model_id = ST_M29F002B,
7181 .total_size = 256,
7182 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007183 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007184 .tested = TEST_UNTESTED,
7185 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007186 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007187 .block_erasers =
7188 {
7189 {
7190 .eraseblocks = {
7191 {16 * 1024, 1},
7192 {8 * 1024, 2},
7193 {32 * 1024, 1},
7194 {64 * 1024, 3},
7195 },
7196 .block_erase = erase_sector_jedec,
7197 }, {
7198 .eraseblocks = { {256 * 1024, 1} },
7199 .block_erase = erase_chip_block_jedec,
7200 }
7201 },
Sean Nelson35727f72010-01-28 23:55:12 +00007202 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007203 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007204 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007205 },
7206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007207 {
7208 .vendor = "ST",
7209 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007210 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007211 .manufacture_id = ST_ID,
7212 .model_id = ST_M29F002T,
7213 .total_size = 256,
7214 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007215 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7216 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007217 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007218 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007219 .block_erasers =
7220 {
7221 {
7222 .eraseblocks = {
7223 {64 * 1024, 3},
7224 {32 * 1024, 1},
7225 {8 * 1024, 2},
7226 {16 * 1024, 1},
7227 },
7228 .block_erase = erase_sector_jedec,
7229 }, {
7230 .eraseblocks = { {256 * 1024, 1} },
7231 .block_erase = erase_chip_block_jedec,
7232 }
7233 },
Sean Nelson35727f72010-01-28 23:55:12 +00007234 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007235 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007236 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007237 },
7238
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007239 {
7240 .vendor = "ST",
7241 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007242 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007243 .manufacture_id = ST_ID,
7244 .model_id = ST_M29F040B,
7245 .total_size = 512,
7246 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007247 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7248 .tested = TEST_UNTESTED,
7249 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007250 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007251 .block_erasers =
7252 {
7253 {
7254 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007255 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007256 }, {
7257 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007258 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007259 }
7260 },
Sean Nelson35727f72010-01-28 23:55:12 +00007261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007263 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007264 },
7265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007266 {
Sean Nelson35727f72010-01-28 23:55:12 +00007267 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007268 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007269 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007270 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007271 .manufacture_id = ST_ID,
7272 .model_id = ST_M29F400BB,
7273 .total_size = 512,
7274 .page_size = 64 * 1024,
7275 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007276 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007277 .probe = probe_m29f400bt,
7278 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7279 .block_erasers =
7280 {
7281 {
7282 .eraseblocks = {
7283 {16 * 1024, 1},
7284 {8 * 1024, 2},
7285 {32 * 1024, 1},
7286 {64 * 1024, 7},
7287 },
7288 .block_erase = block_erase_m29f400bt,
7289 }, {
7290 .eraseblocks = { {512 * 1024, 1} },
7291 .block_erase = block_erase_chip_m29f400bt,
7292 }
7293 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007294 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007296 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007297 },
7298 {
7299 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7300 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007301 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007302 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007303 .manufacture_id = ST_ID,
7304 .model_id = ST_M29F400BT,
7305 .total_size = 512,
7306 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007307 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007308 .tested = TEST_UNTESTED,
7309 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007310 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007311 .block_erasers =
7312 {
7313 {
7314 .eraseblocks = {
7315 {64 * 1024, 7},
7316 {32 * 1024, 1},
7317 {8 * 1024, 2},
7318 {16 * 1024, 1},
7319 },
7320 .block_erase = block_erase_m29f400bt,
7321 }, {
7322 .eraseblocks = { {512 * 1024, 1} },
7323 .block_erase = block_erase_chip_m29f400bt,
7324 }
7325 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007326 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007327 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007328 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007329 },
7330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007331 {
7332 .vendor = "ST",
7333 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007334 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007335 .manufacture_id = ST_ID,
7336 .model_id = ST_M29W010B,
7337 .total_size = 128,
7338 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007339 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007340 .tested = TEST_UNTESTED,
7341 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007342 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007343 .block_erasers =
7344 {
7345 {
7346 .eraseblocks = { {16 * 1024, 8}, },
7347 .block_erase = erase_sector_jedec,
7348 }, {
7349 .eraseblocks = { {128 * 1024, 1} },
7350 .block_erase = erase_chip_block_jedec,
7351 }
7352 },
Sean Nelson35727f72010-01-28 23:55:12 +00007353 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007355 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007356 },
7357
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007358 {
7359 .vendor = "ST",
7360 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007361 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007362 .manufacture_id = ST_ID,
7363 .model_id = ST_M29W040B,
7364 .total_size = 512,
7365 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007367 .tested = TEST_UNTESTED,
7368 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007369 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007370 .block_erasers =
7371 {
7372 {
7373 .eraseblocks = { {64 * 1024, 8}, },
7374 .block_erase = erase_sector_jedec,
7375 }, {
7376 .eraseblocks = { {512 * 1024, 1} },
7377 .block_erase = erase_chip_block_jedec,
7378 }
7379 },
Sean Nelson35727f72010-01-28 23:55:12 +00007380 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007382 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007383 },
7384
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007385 {
7386 .vendor = "ST",
7387 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007388 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007389 .manufacture_id = ST_ID,
7390 .model_id = ST_M29W512B,
7391 .total_size = 64,
7392 .page_size = 64 * 1024,
7393 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007394 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007395 .probe = probe_jedec,
7396 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007397 .block_erasers =
7398 {
7399 {
7400 .eraseblocks = { {64 * 1024, 1} },
7401 .block_erase = erase_chip_block_jedec,
7402 }
7403 },
7404 .write = write_jedec_1,
7405 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007406 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007407 },
7408
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007409 {
7410 .vendor = "ST",
7411 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007412 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007413 .manufacture_id = ST_ID,
7414 .model_id = ST_M50FLW040A,
7415 .total_size = 512,
7416 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007417 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007418 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007419 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007420 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007421 .block_erasers =
7422 {
7423 {
Sean Nelson329bde72010-01-19 16:39:19 +00007424 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007425 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007426 {64 * 1024, 5}, /* block */
7427 {4 * 1024, 16}, /* sector */
7428 {4 * 1024, 16}, /* sector */
7429 },
7430 .block_erase = NULL,
7431 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007432 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007433 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007434 }
7435 },
Sean Nelson28accc22010-03-19 18:47:06 +00007436 .unlock = unlock_stm50flw0x0x,
7437 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007438 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007439 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007440 },
7441
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007442 {
7443 .vendor = "ST",
7444 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007445 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007446 .manufacture_id = ST_ID,
7447 .model_id = ST_M50FLW040B,
7448 .total_size = 512,
7449 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007450 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007451 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007452 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007453 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007454 .block_erasers =
7455 {
7456 {
Sean Nelson329bde72010-01-19 16:39:19 +00007457 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007458 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007459 {4 * 1024, 16}, /* sector */
7460 {64 * 1024, 5}, /* block */
7461 {4 * 1024, 16}, /* sector */
7462 },
7463 .block_erase = NULL,
7464 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007465 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007466 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007467 }
7468 },
Sean Nelson28accc22010-03-19 18:47:06 +00007469 .unlock = unlock_stm50flw0x0x,
7470 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007471 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007472 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007473 },
7474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007475 {
7476 .vendor = "ST",
7477 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007478 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007479 .manufacture_id = ST_ID,
7480 .model_id = ST_M50FLW080A,
7481 .total_size = 1024,
7482 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007483 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007484 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007485 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007486 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007487 .block_erasers =
7488 {
7489 {
Sean Nelson329bde72010-01-19 16:39:19 +00007490 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007491 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007492 {64 * 1024, 13}, /* block */
7493 {4 * 1024, 16}, /* sector */
7494 {4 * 1024, 16}, /* sector */
7495 },
7496 .block_erase = NULL,
7497 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007498 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007499 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007500 }
7501 },
Sean Nelson28accc22010-03-19 18:47:06 +00007502 .unlock = unlock_stm50flw0x0x,
7503 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007505 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007506 },
7507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007508 {
7509 .vendor = "ST",
7510 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007511 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007512 .manufacture_id = ST_ID,
7513 .model_id = ST_M50FLW080B,
7514 .total_size = 1024,
7515 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007516 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007517 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007518 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007519 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007520 .block_erasers =
7521 {
7522 {
Sean Nelson329bde72010-01-19 16:39:19 +00007523 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007524 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007525 {4 * 1024, 16}, /* sector */
7526 {64 * 1024, 13}, /* block */
7527 {4 * 1024, 16}, /* sector */
7528 },
7529 .block_erase = NULL,
7530 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007531 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007532 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007533 }
7534 },
Sean Nelson28accc22010-03-19 18:47:06 +00007535 .unlock = unlock_stm50flw0x0x,
7536 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007538 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007539 },
7540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007541 {
7542 .vendor = "ST",
7543 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007544 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007545 .manufacture_id = ST_ID,
7546 .model_id = ST_M50FW002,
7547 .total_size = 256,
7548 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007549 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007550 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007551 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007552 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007553 .block_erasers =
7554 {
7555 {
7556 .eraseblocks = {
7557 {64 * 1024, 3},
7558 {32 * 1024, 1},
7559 {8 * 1024, 2},
7560 {16 * 1024, 1},
7561 },
Sean Nelson28accc22010-03-19 18:47:06 +00007562 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007563 }
7564 },
Sean Nelson28accc22010-03-19 18:47:06 +00007565 .unlock = unlock_stm50flw0x0x,
7566 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007567 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007568 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007569 },
7570
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007571 {
7572 .vendor = "ST",
7573 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007574 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007575 .manufacture_id = ST_ID,
7576 .model_id = ST_M50FW016,
7577 .total_size = 2048,
7578 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007579 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007580 .tested = TEST_UNTESTED,
7581 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007582 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007583 .block_erasers =
7584 {
7585 {
7586 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007587 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007588 }
7589 },
Sean Nelson28accc22010-03-19 18:47:06 +00007590 .unlock = unlock_stm50flw0x0x,
7591 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007592 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007593 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007594 },
7595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 {
7597 .vendor = "ST",
7598 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007599 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .manufacture_id = ST_ID,
7601 .model_id = ST_M50FW040,
7602 .total_size = 512,
7603 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007604 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007605 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007606 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007607 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007608 .block_erasers =
7609 {
7610 {
7611 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007612 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007613 }
7614 },
Sean Nelson28accc22010-03-19 18:47:06 +00007615 .unlock = unlock_stm50flw0x0x,
7616 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007617 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007618 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007619 },
7620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007621 {
7622 .vendor = "ST",
7623 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007624 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007625 .manufacture_id = ST_ID,
7626 .model_id = ST_M50FW080,
7627 .total_size = 1024,
7628 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007629 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007630 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007631 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007632 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007633 .block_erasers =
7634 {
7635 {
7636 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007637 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007638 }
7639 },
Sean Nelson28accc22010-03-19 18:47:06 +00007640 .unlock = unlock_stm50flw0x0x,
7641 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007642 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007643 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007644 },
7645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007646 {
7647 .vendor = "ST",
7648 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007649 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007650 .manufacture_id = ST_ID,
7651 .model_id = ST_M50LPW116,
7652 .total_size = 2048,
7653 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007654 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007655 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007656 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007657 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007658 .block_erasers =
7659 {
7660 {
7661 .eraseblocks = {
7662 {4 * 1024, 16},
7663 {64 * 1024, 30},
7664 {32 * 1024, 1},
7665 {8 * 1024, 2},
7666 {16 * 1024, 1},
7667 },
Sean Nelson28accc22010-03-19 18:47:06 +00007668 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007669 }
7670 },
Sean Nelson28accc22010-03-19 18:47:06 +00007671 .unlock = unlock_stm50flw0x0x,
7672 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007673 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007674 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007675 },
7676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007677 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007678 .vendor = "SyncMOS/MoselVitelic",
7679 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007680 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007681 .manufacture_id = SYNCMOS_MVC_ID,
7682 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007683 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007684 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007685 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007686 .tested = TEST_UNTESTED,
7687 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007688 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007689 .block_erasers =
7690 {
7691 {
7692 .eraseblocks = { {512, 256} },
7693 .block_erase = erase_sector_jedec,
7694 }, {
7695 .eraseblocks = { {128 * 1024, 1} },
7696 .block_erase = erase_chip_block_jedec,
7697 },
7698 },
Sean Nelson35727f72010-01-28 23:55:12 +00007699 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007700 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007701 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007702 },
7703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007704 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007705 .vendor = "SyncMOS/MoselVitelic",
7706 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007707 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007708 .manufacture_id = SYNCMOS_MVC_ID,
7709 .model_id = SM_MVC_29C51001T,
7710 .total_size = 128,
7711 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007712 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007713 .tested = TEST_UNTESTED,
7714 .probe = probe_jedec,
7715 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7716 .block_erasers =
7717 {
7718 {
7719 .eraseblocks = { {512, 256} },
7720 .block_erase = erase_sector_jedec,
7721 }, {
7722 .eraseblocks = { {128 * 1024, 1} },
7723 .block_erase = erase_chip_block_jedec,
7724 },
7725 },
7726 .write = write_jedec_1,
7727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007728 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007729 },
7730
7731 {
7732 .vendor = "SyncMOS/MoselVitelic",
7733 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007734 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007735 .manufacture_id = SYNCMOS_MVC_ID,
7736 .model_id = SM_MVC_29C51002B,
7737 .total_size = 256,
7738 .page_size = 512,
7739 .feature_bits = FEATURE_EITHER_RESET,
7740 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007741 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007742 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007743 .block_erasers =
7744 {
7745 {
7746 .eraseblocks = { {512, 512} },
7747 .block_erase = erase_sector_jedec,
7748 }, {
7749 .eraseblocks = { {256 * 1024, 1} },
7750 .block_erase = erase_chip_block_jedec,
7751 },
7752 },
Sean Nelson35727f72010-01-28 23:55:12 +00007753 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007754 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007755 },
7756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007757 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007758 .vendor = "SyncMOS/MoselVitelic",
7759 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007760 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007761 .manufacture_id = SYNCMOS_MVC_ID,
7762 .model_id = SM_MVC_29C51002T,
7763 .total_size = 256,
7764 .page_size = 512,
7765 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007766 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007767 .probe = probe_jedec,
7768 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7769 .block_erasers =
7770 {
7771 {
7772 .eraseblocks = { {512, 512} },
7773 .block_erase = erase_sector_jedec,
7774 }, {
7775 .eraseblocks = { {256 * 1024, 1} },
7776 .block_erase = erase_chip_block_jedec,
7777 },
7778 },
7779 .write = write_jedec_1,
7780 .read = read_memmapped,
7781 },
7782
7783 {
7784 .vendor = "SyncMOS/MoselVitelic",
7785 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007786 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007787 .manufacture_id = SYNCMOS_MVC_ID,
7788 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007789 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007790 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007791 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007792 .tested = TEST_UNTESTED,
7793 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007794 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007795 .block_erasers =
7796 {
7797 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007798 .eraseblocks = { {1024, 512} },
7799 .block_erase = erase_sector_jedec,
7800 }, {
7801 .eraseblocks = { {512 * 1024, 1} },
7802 .block_erase = erase_chip_block_jedec,
7803 },
7804 },
7805 .write = write_jedec_1,
7806 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007807 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007808 },
7809
7810 {
7811 .vendor = "SyncMOS/MoselVitelic",
7812 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007813 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007814 .manufacture_id = SYNCMOS_MVC_ID,
7815 .model_id = SM_MVC_29C51004T,
7816 .total_size = 512,
7817 .page_size = 1024,
7818 .feature_bits = FEATURE_EITHER_RESET,
7819 .tested = TEST_UNTESTED,
7820 .probe = probe_jedec,
7821 .probe_timing = TIMING_ZERO,
7822 .block_erasers =
7823 {
7824 {
7825 .eraseblocks = { {1024, 512} },
7826 .block_erase = erase_sector_jedec,
7827 }, {
7828 .eraseblocks = { {512 * 1024, 1} },
7829 .block_erase = erase_chip_block_jedec,
7830 },
7831 },
7832 .write = write_jedec_1,
7833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007834 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007835 },
7836
7837 {
7838 .vendor = "SyncMOS/MoselVitelic",
7839 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007840 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007841 .manufacture_id = SYNCMOS_MVC_ID,
7842 .model_id = SM_MVC_29C31004B,
7843 .total_size = 512,
7844 .page_size = 1024,
7845 .feature_bits = FEATURE_EITHER_RESET,
7846 .tested = TEST_UNTESTED,
7847 .probe = probe_jedec,
7848 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7849 .block_erasers =
7850 {
7851 {
7852 .eraseblocks = { {1024, 512} },
7853 .block_erase = erase_sector_jedec,
7854 }, {
7855 .eraseblocks = { {512 * 1024, 1} },
7856 .block_erase = erase_chip_block_jedec,
7857 },
7858 },
7859 .write = write_jedec_1,
7860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007861 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007862 },
7863
7864 {
7865 .vendor = "SyncMOS/MoselVitelic",
7866 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007867 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007868 .manufacture_id = SYNCMOS_MVC_ID,
7869 .model_id = SM_MVC_29C31004T,
7870 .total_size = 512,
7871 .page_size = 1024,
7872 .feature_bits = FEATURE_EITHER_RESET,
7873 .tested = TEST_UNTESTED,
7874 .probe = probe_jedec,
7875 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7876 .block_erasers =
7877 {
7878 {
7879 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007880 .block_erase = erase_sector_jedec,
7881 }, {
7882 .eraseblocks = { {512 * 1024, 1} },
7883 .block_erase = erase_chip_block_jedec,
7884 },
7885 },
Sean Nelson35727f72010-01-28 23:55:12 +00007886 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007888 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007889 },
7890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007891 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007892 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007893 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007894 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007895 .manufacture_id = TI_OLD_ID,
7896 .model_id = TI_TMS29F002RB,
7897 .total_size = 256,
7898 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007899 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007900 .tested = TEST_UNTESTED,
7901 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007902 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007903 .block_erasers =
7904 {
7905 {
7906 .eraseblocks = {
7907 {16 * 1024, 1},
7908 {8 * 1024, 2},
7909 {32 * 1024, 1},
7910 {64 * 1024, 3},
7911 },
7912 .block_erase = erase_sector_jedec,
7913 }, {
7914 .eraseblocks = { {256 * 1024, 1} },
7915 .block_erase = erase_chip_block_jedec,
7916 },
7917 },
Sean Nelson35727f72010-01-28 23:55:12 +00007918 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007920 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007921 },
7922
7923 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007924 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007925 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007926 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007927 .manufacture_id = TI_OLD_ID,
7928 .model_id = TI_TMS29F002RT,
7929 .total_size = 256,
7930 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007931 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007932 .tested = TEST_UNTESTED,
7933 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007934 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007935 .block_erasers =
7936 {
7937 {
7938 .eraseblocks = {
7939 {64 * 1024, 3},
7940 {32 * 1024, 1},
7941 {8 * 1024, 2},
7942 {16 * 1024, 1},
7943 },
7944 .block_erase = erase_sector_jedec,
7945 }, {
7946 .eraseblocks = { {256 * 1024, 1} },
7947 .block_erase = erase_chip_block_jedec,
7948 },
7949 },
Sean Nelson35727f72010-01-28 23:55:12 +00007950 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007951 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007952 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007953 },
7954
7955 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007956 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007957 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007958 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007959 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007960 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007961 .total_size = 1024,
7962 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007963 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007964 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007965 .probe = probe_spi_rdid,
7966 .probe_timing = TIMING_ZERO,
7967 .block_erasers =
7968 {
7969 {
7970 .eraseblocks = { {4 * 1024, 256} },
7971 .block_erase = spi_block_erase_20,
7972 }, {
7973 .eraseblocks = { {32 * 1024, 32} },
7974 .block_erase = spi_block_erase_52,
7975 }, {
7976 .eraseblocks = { {64 * 1024, 16} },
7977 .block_erase = spi_block_erase_d8,
7978 }, {
7979 .eraseblocks = { {1024 * 1024, 1} },
7980 .block_erase = spi_block_erase_60,
7981 }, {
7982 .eraseblocks = { {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,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007987 .write = spi_chip_write_256,
7988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007989 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007990 },
7991
7992 {
7993 .vendor = "Winbond",
7994 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007995 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007996 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007997 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007998 .total_size = 2048,
7999 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008000 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008001 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008002 .probe = probe_spi_rdid,
8003 .probe_timing = TIMING_ZERO,
8004 .block_erasers =
8005 {
8006 {
8007 .eraseblocks = { {4 * 1024, 512} },
8008 .block_erase = spi_block_erase_20,
8009 }, {
8010 .eraseblocks = { {32 * 1024, 64} },
8011 .block_erase = spi_block_erase_52,
8012 }, {
8013 .eraseblocks = { {64 * 1024, 32} },
8014 .block_erase = spi_block_erase_d8,
8015 }, {
8016 .eraseblocks = { {2 * 1024 * 1024, 1} },
8017 .block_erase = spi_block_erase_60,
8018 }, {
8019 .eraseblocks = { {2 * 1024 * 1024, 1} },
8020 .block_erase = spi_block_erase_c7,
8021 }
8022 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008023 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008024 .write = spi_chip_write_256,
8025 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008026 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008027 },
8028
8029 {
8030 .vendor = "Winbond",
8031 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008032 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008033 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008034 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008035 .total_size = 4096,
8036 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008037 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008038 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008039 .probe = probe_spi_rdid,
8040 .probe_timing = TIMING_ZERO,
8041 .block_erasers =
8042 {
8043 {
8044 .eraseblocks = { {4 * 1024, 1024} },
8045 .block_erase = spi_block_erase_20,
8046 }, {
8047 .eraseblocks = { {32 * 1024, 128} },
8048 .block_erase = spi_block_erase_52,
8049 }, {
8050 .eraseblocks = { {64 * 1024, 64} },
8051 .block_erase = spi_block_erase_d8,
8052 }, {
8053 .eraseblocks = { {4 * 1024 * 1024, 1} },
8054 .block_erase = spi_block_erase_60,
8055 }, {
8056 .eraseblocks = { {4 * 1024 * 1024, 1} },
8057 .block_erase = spi_block_erase_c7,
8058 }
8059 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008060 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008061 .write = spi_chip_write_256,
8062 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008063 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008064 },
8065
8066 {
8067 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008068 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008069 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008070 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008071 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008072 .total_size = 8192,
8073 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008074 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008075 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008076 .probe = probe_spi_rdid,
8077 .probe_timing = TIMING_ZERO,
8078 .block_erasers =
8079 {
8080 {
8081 .eraseblocks = { {4 * 1024, 2048} },
8082 .block_erase = spi_block_erase_20,
8083 }, {
8084 .eraseblocks = { {32 * 1024, 256} },
8085 .block_erase = spi_block_erase_52,
8086 }, {
8087 .eraseblocks = { {64 * 1024, 128} },
8088 .block_erase = spi_block_erase_d8,
8089 }, {
8090 .eraseblocks = { {8 * 1024 * 1024, 1} },
8091 .block_erase = spi_block_erase_60,
8092 }, {
8093 .eraseblocks = { {8 * 1024 * 1024, 1} },
8094 .block_erase = spi_block_erase_c7,
8095 }
8096 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008097 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008098 .write = spi_chip_write_256,
8099 .read = spi_chip_read,
8100 },
8101
8102 {
8103 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008104 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008105 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008106 .manufacture_id = WINBOND_NEX_ID,
8107 .model_id = WINBOND_NEX_W25Q128,
8108 .total_size = 16384,
8109 .page_size = 256,
8110 .feature_bits = FEATURE_WRSR_WREN,
8111 .tested = TEST_OK_PROBE,
8112 .probe = probe_spi_rdid,
8113 .probe_timing = TIMING_ZERO,
8114 .block_erasers =
8115 {
8116 {
8117 .eraseblocks = { {4 * 1024, 4096} },
8118 .block_erase = spi_block_erase_20,
8119 }, {
8120 .eraseblocks = { {32 * 1024, 512} },
8121 .block_erase = spi_block_erase_52,
8122 }, {
8123 .eraseblocks = { {64 * 1024, 256} },
8124 .block_erase = spi_block_erase_d8,
8125 }, {
8126 .eraseblocks = { {16 * 1024 * 1024, 1} },
8127 .block_erase = spi_block_erase_60,
8128 }, {
8129 .eraseblocks = { {16 * 1024 * 1024, 1} },
8130 .block_erase = spi_block_erase_c7,
8131 }
8132 },
8133 .unlock = spi_disable_blockprotect,
8134 .write = spi_chip_write_256,
8135 .read = spi_chip_read,
8136 },
8137
8138 {
8139 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008140 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008141 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008142 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008143 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008144 .total_size = 128,
8145 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008146 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008147 .tested = TEST_UNTESTED,
8148 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008149 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008150 .block_erasers =
8151 {
8152 {
8153 .eraseblocks = { {4 * 1024, 32} },
8154 .block_erase = spi_block_erase_20,
8155 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008156 .eraseblocks = { {64 * 1024, 2} },
8157 .block_erase = spi_block_erase_d8,
8158 }, {
8159 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008160 .block_erase = spi_block_erase_c7,
8161 }
8162 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008163 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008164 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008165 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008166 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008167 },
8168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008169 {
8170 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008171 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008172 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008173 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008174 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008175 .total_size = 256,
8176 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008177 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008178 .tested = TEST_UNTESTED,
8179 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008180 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008181 .block_erasers =
8182 {
8183 {
8184 .eraseblocks = { {4 * 1024, 64} },
8185 .block_erase = spi_block_erase_20,
8186 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008187 .eraseblocks = { {64 * 1024, 4} },
8188 .block_erase = spi_block_erase_d8,
8189 }, {
8190 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008191 .block_erase = spi_block_erase_c7,
8192 }
8193 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008194 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008195 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008196 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008197 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008198 },
8199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008200 {
8201 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008202 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008203 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008204 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008205 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008206 .total_size = 512,
8207 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008208 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008209 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008210 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008211 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008212 .block_erasers =
8213 {
8214 {
8215 .eraseblocks = { {4 * 1024, 128} },
8216 .block_erase = spi_block_erase_20,
8217 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008218 .eraseblocks = { {64 * 1024, 8} },
8219 .block_erase = spi_block_erase_d8,
8220 }, {
8221 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008222 .block_erase = spi_block_erase_c7,
8223 }
8224 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008225 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008226 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008227 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008228 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008229 },
8230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008231 {
8232 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008233 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008234 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008235 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008236 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008237 .total_size = 1024,
8238 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008239 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008240 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008241 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008242 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008243 .block_erasers =
8244 {
8245 {
8246 .eraseblocks = { {4 * 1024, 256} },
8247 .block_erase = spi_block_erase_20,
8248 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008249 .eraseblocks = { {64 * 1024, 16} },
8250 .block_erase = spi_block_erase_d8,
8251 }, {
8252 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008253 .block_erase = spi_block_erase_c7,
8254 }
8255 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008256 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008257 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008258 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008259 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008260 },
8261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008262 {
8263 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008264 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008265 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008266 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008267 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008268 .total_size = 2048,
8269 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008270 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008271 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008272 .probe = probe_spi_rdid,
8273 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008274 .block_erasers =
8275 {
8276 {
8277 .eraseblocks = { {4 * 1024, 512} },
8278 .block_erase = spi_block_erase_20,
8279 }, {
8280 .eraseblocks = { {32 * 1024, 64} },
8281 .block_erase = spi_block_erase_52,
8282 }, {
8283 .eraseblocks = { {64 * 1024, 32} },
8284 .block_erase = spi_block_erase_d8,
8285 }, {
8286 .eraseblocks = { {2 * 1024 * 1024, 1} },
8287 .block_erase = spi_block_erase_60,
8288 }, {
8289 .eraseblocks = { {2 * 1024 * 1024, 1} },
8290 .block_erase = spi_block_erase_c7,
8291 }
8292 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008293 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008294 .write = spi_chip_write_256,
8295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008296 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008297 },
8298
8299 {
8300 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008301 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008302 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008303 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008304 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008305 .total_size = 4096,
8306 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008307 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008308 .tested = TEST_OK_PROBE,
8309 .probe = probe_spi_rdid,
8310 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008311 .block_erasers =
8312 {
8313 {
8314 .eraseblocks = { {4 * 1024, 1024} },
8315 .block_erase = spi_block_erase_20,
8316 }, {
8317 .eraseblocks = { {32 * 1024, 128} },
8318 .block_erase = spi_block_erase_52,
8319 }, {
8320 .eraseblocks = { {64 * 1024, 64} },
8321 .block_erase = spi_block_erase_d8,
8322 }, {
8323 .eraseblocks = { {4 * 1024 * 1024, 1} },
8324 .block_erase = spi_block_erase_60,
8325 }, {
8326 .eraseblocks = { {4 * 1024 * 1024, 1} },
8327 .block_erase = spi_block_erase_c7,
8328 }
8329 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008330 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008331 .write = spi_chip_write_256,
8332 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008333 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008334 },
8335
8336 {
8337 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008338 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008339 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008340 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008341 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008342 .total_size = 8192,
8343 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008344 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008345 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008346 .probe = probe_spi_rdid,
8347 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008348 .block_erasers =
8349 {
8350 {
8351 .eraseblocks = { {4 * 1024, 2048} },
8352 .block_erase = spi_block_erase_20,
8353 }, {
8354 .eraseblocks = { {32 * 1024, 256} },
8355 .block_erase = spi_block_erase_52,
8356 }, {
8357 .eraseblocks = { {64 * 1024, 128} },
8358 .block_erase = spi_block_erase_d8,
8359 }, {
8360 .eraseblocks = { {8 * 1024 * 1024, 1} },
8361 .block_erase = spi_block_erase_60,
8362 }, {
8363 .eraseblocks = { {8 * 1024 * 1024, 1} },
8364 .block_erase = spi_block_erase_c7,
8365 }
8366 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008367 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008368 .write = spi_chip_write_256,
8369 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008370 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008371 },
8372
8373 {
8374 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008375 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008376 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008377 .manufacture_id = WINBOND_ID,
8378 .model_id = WINBOND_W29C010,
8379 .total_size = 128,
8380 .page_size = 128,
8381 .feature_bits = FEATURE_LONG_RESET,
8382 .tested = TEST_OK_PRE,
8383 .probe = probe_w29ee011,
8384 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8385 .block_erasers =
8386 {
8387 {
8388 .eraseblocks = { {128 * 1024, 1} },
8389 .block_erase = erase_chip_block_jedec,
8390 }
8391 },
8392 .write = write_jedec,
8393 .read = read_memmapped,
8394 },
8395
8396 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8397 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008398 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008399 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008400 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008401 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008402 .total_size = 128,
8403 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008404 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008405 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008406 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008407 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008408 .block_erasers =
8409 {
8410 {
8411 .eraseblocks = { {128 * 1024, 1} },
8412 .block_erase = erase_chip_block_jedec,
8413 }
8414 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008415 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008416 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008417 },
8418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008419 {
8420 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008421 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008422 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008423 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008424 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008425 .total_size = 256,
8426 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008427 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008428 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008429 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008430 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008431 .block_erasers =
8432 {
8433 {
8434 .eraseblocks = { {256 * 1024, 1} },
8435 .block_erase = erase_chip_block_jedec,
8436 }
8437 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008438 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008439 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008440 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008441 },
8442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008443 {
8444 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008445 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008446 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008447 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008448 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008449 .total_size = 512,
8450 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008451 .feature_bits = FEATURE_LONG_RESET,
8452 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008453 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008454 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008455 .block_erasers =
8456 {
8457 {
8458 .eraseblocks = { {512 * 1024, 1} },
8459 .block_erase = erase_chip_block_jedec,
8460 }
8461 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008462 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008464 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008465 },
8466
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008467 {
8468 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008469 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008470 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008471 .manufacture_id = WINBOND_ID,
8472 .model_id = WINBOND_W39L040,
8473 .total_size = 512,
8474 .page_size = 64 * 1024,
8475 .feature_bits = FEATURE_EITHER_RESET,
8476 .tested = TEST_OK_PR,
8477 .probe = probe_jedec,
8478 .probe_timing = 10,
8479 .block_erasers =
8480 {
8481 {
8482 .eraseblocks = { {4 * 1024, 128} },
8483 .block_erase = erase_block_jedec,
8484 }, {
8485 .eraseblocks = { {64 * 1024, 8} },
8486 .block_erase = erase_sector_jedec,
8487 }, {
8488 .eraseblocks = { {512 * 1024, 1} },
8489 .block_erase = erase_chip_block_jedec,
8490 }
8491 },
8492 .printlock = printlock_w39l040,
8493 .write = write_jedec_1,
8494 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008495 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008496 },
8497
8498 {
8499 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008500 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008501 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008502 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008503 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008504 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008505 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008506 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008507 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008508 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00008509 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008510 .block_erasers =
8511 {
8512 {
8513 .eraseblocks = { {64 * 1024, 8} },
8514 .block_erase = erase_sector_jedec,
8515 }, {
8516 .eraseblocks = { {512 * 1024, 1} },
8517 .block_erase = erase_chip_block_jedec,
8518 }
8519 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008520 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008521 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008522 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008523 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008524 },
8525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008526 {
8527 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008528 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008529 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008530 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008531 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008532 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008533 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008534 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008535 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008536 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00008537 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008538 .block_erasers =
8539 {
8540 {
8541 .eraseblocks = { {64 * 1024, 8} },
8542 .block_erase = erase_sector_jedec,
8543 }, {
8544 .eraseblocks = { {512 * 1024, 1} },
8545 .block_erase = erase_chip_block_jedec,
8546 }
8547 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008548 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008549 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008551 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008552 },
8553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008554 {
8555 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008556 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008557 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008558 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008559 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008560 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008561 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008562 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008563 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008564 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008565 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008566 .block_erasers =
8567 {
8568 {
8569 .eraseblocks = { {64 * 1024, 8} },
8570 .block_erase = erase_sector_jedec,
8571 }, {
8572 .eraseblocks = { {512 * 1024, 1} },
8573 .block_erase = erase_chip_block_jedec,
8574 }
8575 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008576 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008577 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008579 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008580 },
8581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008582 {
8583 .vendor = "Winbond",
8584 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008585 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008586 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008587 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008588 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008589 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008590 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008591 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008592 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008593 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008594 .block_erasers =
8595 {
8596 {
8597 .eraseblocks = { {4 * 1024, 128} },
8598 .block_erase = erase_block_jedec,
8599 }, {
8600 .eraseblocks = { {64 * 1024, 8} },
8601 .block_erase = erase_sector_jedec,
8602 }, {
8603 .eraseblocks = { {512 * 1024, 1} },
8604 .block_erase = erase_chip_block_jedec,
8605 }
8606 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008607 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008608 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008609 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008611 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008612 },
8613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008614 {
8615 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008616 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008617 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008618 .manufacture_id = WINBOND_ID,
8619 .model_id = WINBOND_W39V040B,
8620 .total_size = 512,
8621 .page_size = 64 * 1024,
8622 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008623 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008624 .probe = probe_jedec,
8625 .probe_timing = 10,
8626 .block_erasers =
8627 {
8628 {
8629 .eraseblocks = { {64 * 1024, 8} },
8630 .block_erase = erase_sector_jedec,
8631 }, {
8632 .eraseblocks = { {512 * 1024, 1} },
8633 .block_erase = erase_chip_block_jedec,
8634 }
8635 },
8636 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008637 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008638 .write = write_jedec_1,
8639 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008640 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008641 },
8642
8643 {
8644 .vendor = "Winbond",
8645 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008646 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008647 .manufacture_id = WINBOND_ID,
8648 .model_id = WINBOND_W39V040C,
8649 .total_size = 512,
8650 .page_size = 64 * 1024,
8651 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
8652 .tested = TEST_UNTESTED,
8653 .probe = probe_jedec,
8654 .probe_timing = 10,
8655 .block_erasers =
8656 {
8657 {
8658 .eraseblocks = { {64 * 1024, 8} },
8659 .block_erase = erase_sector_jedec,
8660 }, {
8661 .eraseblocks = { {512 * 1024, 1} },
8662 .block_erase = erase_chip_block_jedec,
8663 }
8664 },
8665 .printlock = printlock_w39v040fc,
8666 .write = write_jedec_1,
8667 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008668 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008669 },
8670
8671 {
8672 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008673 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008674 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008675 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008676 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008677 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008678 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008679 .feature_bits = FEATURE_EITHER_RESET,
8680 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008681 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008682 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008683 .block_erasers =
8684 {
8685 {
8686 .eraseblocks = { {64 * 1024, 16} },
8687 .block_erase = erase_sector_jedec,
8688 }, {
8689 .eraseblocks = { {1024 * 1024, 1} },
8690 .block_erase = erase_chip_block_jedec,
8691 }
8692 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008693 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008694 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008696 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008697 },
8698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008699 {
8700 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008701 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008702 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008703 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008704 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008705 .total_size = 256,
8706 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008707 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008708 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008709 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008710 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008711 .block_erasers =
8712 {
8713 {
8714 .eraseblocks = {
8715 {128 * 1024, 1},
8716 {96 * 1024, 1},
8717 {8 * 1024, 2},
8718 {16 * 1024, 1},
8719 },
8720 .block_erase = erase_sector_jedec,
8721 }, {
8722 .eraseblocks = { {256 * 1024, 1} },
8723 .block_erase = erase_chip_block_jedec,
8724 }
8725 },
Sean Nelson35727f72010-01-28 23:55:12 +00008726 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008728 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008729 },
8730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008731 {
8732 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008733 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008734 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008735 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008736 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008737 .total_size = 256,
8738 .page_size = 128,
8739 .feature_bits = FEATURE_EITHER_RESET,
8740 .tested = TEST_OK_PROBE,
8741 .probe = probe_jedec,
8742 .probe_timing = 10,
8743 .block_erasers =
8744 {
8745 {
8746 .eraseblocks = { {256 * 1024, 1} },
8747 .block_erase = erase_chip_block_jedec,
8748 }
8749 },
8750 .write = write_jedec_1,
8751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008752 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008753 },
8754
8755 {
8756 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008758 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008759 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008760 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008761 .total_size = 256,
8762 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008763 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008765 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008766 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008767 .block_erasers =
8768 {
8769 {
8770 .eraseblocks = {
8771 {64 * 1024, 3},
8772 {32 * 1024, 1},
8773 {8 * 1024, 2},
8774 {16 * 1024, 1},
8775 },
8776 .block_erase = erase_sector_jedec,
8777 }, {
8778 .eraseblocks = { {256 * 1024, 1} },
8779 .block_erase = erase_chip_block_jedec,
8780 }
8781 },
Sean Nelson35727f72010-01-28 23:55:12 +00008782 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008784 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008785 },
8786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008787 {
8788 .vendor = "Winbond",
8789 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008790 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008791 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008792 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008793 .total_size = 256,
8794 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008795 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008796 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008797 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008798 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008799 .block_erasers =
8800 {
8801 {
8802 .eraseblocks = {
8803 {64 * 1024, 3},
8804 {32 * 1024, 1},
8805 {8 * 1024, 2},
8806 {16 * 1024, 1},
8807 },
8808 .block_erase = erase_sector_jedec,
8809 }, {
8810 .eraseblocks = { {256 * 1024, 1} },
8811 .block_erase = erase_chip_block_jedec,
8812 }
8813 },
Sean Nelson35727f72010-01-28 23:55:12 +00008814 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008815 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008816 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008817 },
8818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008819 {
8820 .vendor = "Winbond",
8821 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008822 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008823 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008824 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008825 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008826 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008827 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008828 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008829 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008830 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008831 .block_erasers =
8832 {
8833 {
8834 .eraseblocks = { {64 * 1024, 16}, },
8835 .block_erase = erase_sector_jedec,
8836 }, {
8837 .eraseblocks = { {1024 * 1024, 1} },
8838 .block_erase = erase_chip_block_jedec,
8839 }
8840 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008841 .printlock = printlock_w39v080fa,
8842 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00008843 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008844 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008845 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008846 },
8847
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008848 {
8849 .vendor = "Winbond",
8850 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008851 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008852 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008853 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008854 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008855 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008856 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008858 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008859 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008860 .block_erasers =
8861 {
8862 {
8863 .eraseblocks = { {64 * 1024, 8}, },
8864 .block_erase = erase_sector_jedec,
8865 }, {
8866 .eraseblocks = { {512 * 1024, 1} },
8867 .block_erase = erase_chip_block_jedec,
8868 }
8869 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008870 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00008871 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008872 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008873 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008874 },
8875
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008876 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00008877 .vendor = "Programmer",
8878 .name = "Opaque flash chip",
8879 .bustype = BUS_PROG,
8880 .manufacture_id = PROGMANUF_ID,
8881 .model_id = PROGDEV_ID,
8882 .total_size = 0,
8883 .page_size = 256,
8884 /* probe is assumed to work, rest will be filled in by probe */
8885 .tested = TEST_OK_PROBE,
8886 .probe = probe_opaque,
8887 /* eraseblock sizes will be set by the probing function */
8888 .block_erasers =
8889 {
8890 {
8891 .block_erase = erase_opaque,
8892 }
8893 },
8894 .write = write_opaque,
8895 .read = read_opaque,
8896 },
8897
8898 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008899 .vendor = "AMIC",
8900 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008901 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008902 .manufacture_id = AMIC_ID,
8903 .model_id = GENERIC_DEVICE_ID,
8904 .total_size = 0,
8905 .page_size = 256,
8906 .tested = TEST_BAD_PREW,
8907 .probe = probe_spi_rdid4,
8908 .probe_timing = TIMING_ZERO,
8909 .write = NULL,
8910 .read = NULL,
8911 },
8912
8913 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008914 .vendor = "Atmel",
8915 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008916 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008917 .manufacture_id = ATMEL_ID,
8918 .model_id = GENERIC_DEVICE_ID,
8919 .total_size = 0,
8920 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008921 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008922 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008923 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008924 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008925 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008926 },
8927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008928 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00008929 .vendor = "Eon",
8930 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008931 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008932 .manufacture_id = EON_ID_NOPREFIX,
8933 .model_id = GENERIC_DEVICE_ID,
8934 .total_size = 0,
8935 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008936 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008938 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008939 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008940 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008941 },
8942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008943 {
8944 .vendor = "Macronix",
8945 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008946 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008947 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008948 .model_id = GENERIC_DEVICE_ID,
8949 .total_size = 0,
8950 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008951 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008952 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008953 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008954 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008955 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008956 },
8957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008958 {
8959 .vendor = "PMC",
8960 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008961 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008962 .manufacture_id = PMC_ID,
8963 .model_id = GENERIC_DEVICE_ID,
8964 .total_size = 0,
8965 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008966 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008968 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008969 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008970 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008971 },
8972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008973 {
8974 .vendor = "SST",
8975 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008977 .manufacture_id = SST_ID,
8978 .model_id = GENERIC_DEVICE_ID,
8979 .total_size = 0,
8980 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008981 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008982 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008983 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008984 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008985 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008986 },
8987
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008988 {
8989 .vendor = "ST",
8990 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008991 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008992 .manufacture_id = ST_ID,
8993 .model_id = GENERIC_DEVICE_ID,
8994 .total_size = 0,
8995 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008996 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008997 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008998 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008999 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009000 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009001 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009002
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009003 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009004 .vendor = "Sanyo",
9005 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009006 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009007 .manufacture_id = SANYO_ID,
9008 .model_id = GENERIC_DEVICE_ID,
9009 .total_size = 0,
9010 .page_size = 256,
9011 .tested = TEST_BAD_PREW,
9012 .probe = probe_spi_rdid,
9013 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009014 .write = NULL,
9015 .read = NULL,
9016 },
9017
9018 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009019 .vendor = "Generic",
9020 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009021 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009022 .manufacture_id = GENERIC_MANUF_ID,
9023 .model_id = GENERIC_DEVICE_ID,
9024 .total_size = 0,
9025 .page_size = 256,
9026 .tested = TEST_BAD_PREW,
9027 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009028 .write = NULL,
9029 },
9030 {
9031 .vendor = "Generic",
9032 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009033 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009034 .manufacture_id = GENERIC_MANUF_ID,
9035 .model_id = GENERIC_DEVICE_ID,
9036 .total_size = 0,
9037 .page_size = 256,
9038 .tested = TEST_BAD_PREW,
9039 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009040 .write = NULL,
9041 },
9042
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009043 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009044};