blob: e290e2f1b83b150dff6db800d0ffa87bdb6c0747 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000567 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000601 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000636 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000671 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000706 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000741 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000781 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000816 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000851 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000889 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000927 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
957 }
958 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000959 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
989 }
990 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000991 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
1021 }
1022 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001023 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
1053 }
1054 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001055 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
1085 }
1086 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001087 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
1117 }
1118 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001119 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
1156 }
1157 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001159 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
1167 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001168 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ032,
1171 .total_size = 4096,
1172 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001173 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .tested = TEST_UNTESTED,
1176 .probe = probe_spi_rdid,
1177 .probe_timing = TIMING_ZERO,
1178 .block_erasers =
1179 {
1180 {
1181 .eraseblocks = { { 4 * 1024, 1024 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 64 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 64 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 4096 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 4096 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001197 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001198 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001201 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001202 },
1203
1204 {
1205 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001206 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A29002B,
1210 .total_size = 256,
1211 .page_size = 64 * 1024,
1212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1213 .tested = TEST_UNTESTED,
1214 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001215 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001216 .block_erasers =
1217 {
1218 {
1219 .eraseblocks = {
1220 {16 * 1024, 1},
1221 {8 * 1024, 2},
1222 {32 * 1024, 1},
1223 {64 * 1024, 3},
1224 },
1225 .block_erase = erase_sector_jedec,
1226 }, {
1227 .eraseblocks = { {256 * 1024, 1} },
1228 .block_erase = erase_chip_block_jedec,
1229 },
1230 },
1231 .write = write_jedec_1,
1232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001233 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001234 },
1235
1236 {
1237 .vendor = "AMIC",
1238 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001239 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001240 .manufacture_id = AMIC_ID_NOPREFIX,
1241 .model_id = AMIC_A29002T,
1242 .total_size = 256,
1243 .page_size = 64 * 1024,
1244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001245 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001246 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001247 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001248 .block_erasers =
1249 {
1250 {
1251 .eraseblocks = {
1252 {64 * 1024, 3},
1253 {32 * 1024, 1},
1254 {8 * 1024, 2},
1255 {16 * 1024, 1},
1256 },
1257 .block_erase = erase_sector_jedec,
1258 }, {
1259 .eraseblocks = { {256 * 1024, 1} },
1260 .block_erase = erase_chip_block_jedec,
1261 },
1262 },
1263 .write = write_jedec_1,
1264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001265 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001266 },
1267
1268 {
1269 .vendor = "AMIC",
1270 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001271 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001272 .manufacture_id = AMIC_ID_NOPREFIX,
1273 .model_id = AMIC_A29040B,
1274 .total_size = 512,
1275 .page_size = 64 * 1024,
1276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1277 .tested = TEST_UNTESTED,
1278 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001279 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 .block_erasers =
1281 {
1282 {
1283 .eraseblocks = { {64 * 1024, 8} },
1284 .block_erase = erase_sector_jedec,
1285 }, {
1286 .eraseblocks = { {512 * 1024, 1} },
1287 .block_erase = erase_chip_block_jedec,
1288 },
1289 },
1290 .write = write_jedec_1,
1291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001292 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001293 },
1294
1295 {
1296 .vendor = "AMIC",
1297 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001298 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001299 .manufacture_id = AMIC_ID_NOPREFIX,
1300 .model_id = AMIC_A49LF040A,
1301 .total_size = 512,
1302 .page_size = 64 * 1024,
1303 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001305 .probe = probe_jedec,
1306 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1307 .block_erasers =
1308 {
1309 {
1310 .eraseblocks = { {64 * 1024, 8} },
1311 .block_erase = erase_block_jedec,
1312 }, {
1313 .eraseblocks = { {512 * 1024, 1} },
1314 .block_erase = erase_chip_block_jedec,
1315 }
1316 },
1317 .unlock = unlock_49fl00x,
1318 .write = write_jedec_1,
1319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001320 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 },
1322
1323 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001324 .vendor = "Atmel",
1325 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001326 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001328 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001329 .total_size = 256,
1330 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001331 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001333 .tested = TEST_UNTESTED,
1334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001335 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001336 .block_erasers =
1337 {
1338 {
1339 .eraseblocks = { {4 * 1024, 64} },
1340 .block_erase = spi_block_erase_20,
1341 }, {
1342 .eraseblocks = { {32 * 1024, 8} },
1343 .block_erase = spi_block_erase_52,
1344 }, {
1345 .eraseblocks = { {64 * 1024, 4} },
1346 .block_erase = spi_block_erase_d8,
1347 }, {
1348 .eraseblocks = { {256 * 1024, 1} },
1349 .block_erase = spi_block_erase_60,
1350 }, {
1351 .eraseblocks = { {256 * 1024, 1} },
1352 .block_erase = spi_block_erase_c7,
1353 }
1354 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001355 .printlock = spi_prettyprint_status_register_at25df,
1356 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001358 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001359 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001360 },
1361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001362 {
1363 .vendor = "Atmel",
1364 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001366 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001367 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001368 .total_size = 512,
1369 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001370 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001371 .tested = TEST_UNTESTED,
1372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001373 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001374 .block_erasers =
1375 {
1376 {
1377 .eraseblocks = { {4 * 1024, 128} },
1378 .block_erase = spi_block_erase_20,
1379 }, {
1380 .eraseblocks = { {32 * 1024, 16} },
1381 .block_erase = spi_block_erase_52,
1382 }, {
1383 .eraseblocks = { {64 * 1024, 8} },
1384 .block_erase = spi_block_erase_d8,
1385 }, {
1386 .eraseblocks = { {512 * 1024, 1} },
1387 .block_erase = spi_block_erase_60,
1388 }, {
1389 .eraseblocks = { {512 * 1024, 1} },
1390 .block_erase = spi_block_erase_c7,
1391 }
1392 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001393 .printlock = spi_prettyprint_status_register_at25df,
1394 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001396 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001397 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001398 },
1399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001400 {
1401 .vendor = "Atmel",
1402 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001403 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001404 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001405 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001406 .total_size = 1024,
1407 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001408 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001409 .tested = TEST_UNTESTED,
1410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001411 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001412 .block_erasers =
1413 {
1414 {
1415 .eraseblocks = { {4 * 1024, 256} },
1416 .block_erase = spi_block_erase_20,
1417 }, {
1418 .eraseblocks = { {32 * 1024, 32} },
1419 .block_erase = spi_block_erase_52,
1420 }, {
1421 .eraseblocks = { {64 * 1024, 16} },
1422 .block_erase = spi_block_erase_d8,
1423 }, {
1424 .eraseblocks = { {1024 * 1024, 1} },
1425 .block_erase = spi_block_erase_60,
1426 }, {
1427 .eraseblocks = { {1024 * 1024, 1} },
1428 .block_erase = spi_block_erase_c7,
1429 }
1430 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001431 .printlock = spi_prettyprint_status_register_at25df,
1432 .unlock = spi_disable_blockprotect_at25df,
1433 .write = spi_chip_write_256,
1434 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001435 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 },
1437
1438 {
1439 .vendor = "Atmel",
1440 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001441 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001442 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001443 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001444 .total_size = 1024,
1445 .page_size = 256,
1446 .feature_bits = FEATURE_WRSR_WREN,
1447 .tested = TEST_UNTESTED,
1448 .probe = probe_spi_rdid,
1449 .probe_timing = TIMING_ZERO,
1450 .block_erasers =
1451 {
1452 {
1453 .eraseblocks = { {4 * 1024, 256} },
1454 .block_erase = spi_block_erase_20,
1455 }, {
1456 .eraseblocks = { {32 * 1024, 32} },
1457 .block_erase = spi_block_erase_52,
1458 }, {
1459 .eraseblocks = { {64 * 1024, 16} },
1460 .block_erase = spi_block_erase_d8,
1461 }, {
1462 .eraseblocks = { {1024 * 1024, 1} },
1463 .block_erase = spi_block_erase_60,
1464 }, {
1465 .eraseblocks = { {1024 * 1024, 1} },
1466 .block_erase = spi_block_erase_c7,
1467 }
1468 },
1469 .printlock = spi_prettyprint_status_register_at25df_sec,
1470 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001471 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001472 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001473 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001474 },
1475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001476 {
1477 .vendor = "Atmel",
1478 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001481 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .total_size = 2048,
1483 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001484 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001485 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001487 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001488 .block_erasers =
1489 {
1490 {
1491 .eraseblocks = { {4 * 1024, 512} },
1492 .block_erase = spi_block_erase_20,
1493 }, {
1494 .eraseblocks = { {32 * 1024, 64} },
1495 .block_erase = spi_block_erase_52,
1496 }, {
1497 .eraseblocks = { {64 * 1024, 32} },
1498 .block_erase = spi_block_erase_d8,
1499 }, {
1500 .eraseblocks = { {2 * 1024 * 1024, 1} },
1501 .block_erase = spi_block_erase_60,
1502 }, {
1503 .eraseblocks = { {2 * 1024 * 1024, 1} },
1504 .block_erase = spi_block_erase_c7,
1505 }
1506 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001507 .printlock = spi_prettyprint_status_register_at25df_sec,
1508 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001509 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001512 },
1513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001514 {
1515 .vendor = "Atmel",
1516 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001517 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001518 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001519 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .total_size = 4096,
1521 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001522 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001525 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001526 .block_erasers =
1527 {
1528 {
1529 .eraseblocks = { {4 * 1024, 1024} },
1530 .block_erase = spi_block_erase_20,
1531 }, {
1532 .eraseblocks = { {32 * 1024, 128} },
1533 .block_erase = spi_block_erase_52,
1534 }, {
1535 .eraseblocks = { {64 * 1024, 64} },
1536 .block_erase = spi_block_erase_d8,
1537 }, {
1538 .eraseblocks = { {4 * 1024 * 1024, 1} },
1539 .block_erase = spi_block_erase_60,
1540 }, {
1541 .eraseblocks = { {4 * 1024 * 1024, 1} },
1542 .block_erase = spi_block_erase_c7,
1543 }
1544 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001545 .printlock = spi_prettyprint_status_register_at25df,
1546 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001547 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001548 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001550 },
1551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 {
1553 .vendor = "Atmel",
1554 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001555 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001556 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001557 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .total_size = 4096,
1559 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001560 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001562 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001564 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001565 .block_erasers =
1566 {
1567 {
1568 .eraseblocks = { {4 * 1024, 1024} },
1569 .block_erase = spi_block_erase_20,
1570 }, {
1571 .eraseblocks = { {32 * 1024, 128} },
1572 .block_erase = spi_block_erase_52,
1573 }, {
1574 .eraseblocks = { {64 * 1024, 64} },
1575 .block_erase = spi_block_erase_d8,
1576 }, {
1577 .eraseblocks = { {4 * 1024 * 1024, 1} },
1578 .block_erase = spi_block_erase_60,
1579 }, {
1580 .eraseblocks = { {4 * 1024 * 1024, 1} },
1581 .block_erase = spi_block_erase_c7,
1582 }
1583 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .printlock = spi_prettyprint_status_register_at25df_sec,
1585 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001589 },
1590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 {
1592 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001593 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001596 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .total_size = 8192,
1598 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001600 .tested = TEST_UNTESTED,
1601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001602 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001603 .block_erasers =
1604 {
1605 {
1606 .eraseblocks = { {4 * 1024, 2048} },
1607 .block_erase = spi_block_erase_20,
1608 }, {
1609 .eraseblocks = { {32 * 1024, 256} },
1610 .block_erase = spi_block_erase_52,
1611 }, {
1612 .eraseblocks = { {64 * 1024, 128} },
1613 .block_erase = spi_block_erase_d8,
1614 }, {
1615 .eraseblocks = { {8 * 1024 * 1024, 1} },
1616 .block_erase = spi_block_erase_60,
1617 }, {
1618 .eraseblocks = { {8 * 1024 * 1024, 1} },
1619 .block_erase = spi_block_erase_c7,
1620 }
1621 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001622 .printlock = spi_prettyprint_status_register_at25df_sec,
1623 .unlock = spi_disable_blockprotect_at25df_sec,
1624 .write = spi_chip_write_256,
1625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001626 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001627 },
1628
1629 {
1630 .vendor = "Atmel",
1631 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001632 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001633 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001634 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001635 .total_size = 2048,
1636 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001637 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001639 .tested = TEST_UNTESTED,
1640 .probe = probe_spi_rdid,
1641 .probe_timing = TIMING_ZERO,
1642 .block_erasers =
1643 {
1644 {
1645 .eraseblocks = { {4 * 1024, 512} },
1646 .block_erase = spi_block_erase_20,
1647 }, {
1648 .eraseblocks = { {32 * 1024, 64} },
1649 .block_erase = spi_block_erase_52,
1650 }, {
1651 .eraseblocks = { {64 * 1024, 32} },
1652 .block_erase = spi_block_erase_d8,
1653 }, {
1654 .eraseblocks = { {2 * 1024 * 1024, 1} },
1655 .block_erase = spi_block_erase_60,
1656 }, {
1657 .eraseblocks = { {2 * 1024 * 1024, 1} },
1658 .block_erase = spi_block_erase_c7,
1659 }
1660 },
1661 .printlock = spi_prettyprint_status_register_at25df_sec,
1662 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001663 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001665 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001666 },
1667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 {
1669 .vendor = "Atmel",
1670 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001673 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001674 .total_size = 64,
1675 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001676 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .tested = TEST_UNTESTED,
1679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001680 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001681 .block_erasers =
1682 {
1683 {
1684 .eraseblocks = { {4 * 1024, 16} },
1685 .block_erase = spi_block_erase_20,
1686 }, {
1687 .eraseblocks = { {32 * 1024, 2} },
1688 .block_erase = spi_block_erase_52,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 2} },
1691 .block_erase = spi_block_erase_d8,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 1} },
1694 .block_erase = spi_block_erase_60,
1695 }, {
1696 .eraseblocks = { {64 * 1024, 1} },
1697 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001698 }, {
1699 .eraseblocks = { {64 * 1024, 1} },
1700 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001701 }
1702 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001703 .printlock = spi_prettyprint_status_register_at25f512b,
1704 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001705 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001708 },
1709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 {
1711 .vendor = "Atmel",
1712 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .total_size = 128,
1717 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001718 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001719 .tested = TEST_UNTESTED,
1720 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001721 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001722 .block_erasers =
1723 {
1724 {
1725 .eraseblocks = { {4 * 1024, 32} },
1726 .block_erase = spi_block_erase_20,
1727 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001728 .eraseblocks = { {4 * 1024, 32} },
1729 .block_erase = spi_block_erase_d7,
1730 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001731 .eraseblocks = { {32 * 1024, 4} },
1732 .block_erase = spi_block_erase_52,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 4} },
1735 .block_erase = spi_block_erase_d8,
1736 }, {
1737 .eraseblocks = { {128 * 1024, 1} },
1738 .block_erase = spi_block_erase_60,
1739 }, {
1740 .eraseblocks = { {128 * 1024, 1} },
1741 .block_erase = spi_block_erase_c7,
1742 }
1743 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001744 .printlock = spi_prettyprint_status_register_at25fs010,
1745 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001746 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001747 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001748 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001749 },
1750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001751 {
1752 .vendor = "Atmel",
1753 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001754 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001755 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001756 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .total_size = 512,
1758 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001759 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .tested = TEST_UNTESTED,
1761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001762 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001763 .block_erasers =
1764 {
1765 {
1766 .eraseblocks = { {4 * 1024, 128} },
1767 .block_erase = spi_block_erase_20,
1768 }, {
1769 .eraseblocks = { {64 * 1024, 8} },
1770 .block_erase = spi_block_erase_52,
1771 }, {
1772 .eraseblocks = { {64 * 1024, 8} },
1773 .block_erase = spi_block_erase_d8,
1774 }, {
1775 .eraseblocks = { {512 * 1024, 1} },
1776 .block_erase = spi_block_erase_60,
1777 }, {
1778 .eraseblocks = { {512 * 1024, 1} },
1779 .block_erase = spi_block_erase_c7,
1780 }
1781 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001782 .printlock = spi_prettyprint_status_register_at25fs040,
1783 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001784 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001786 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001787 },
1788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 {
1790 .vendor = "Atmel",
1791 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001792 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001794 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001795 .total_size = 512,
1796 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001797 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001798 .tested = TEST_UNTESTED,
1799 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001800 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001801 .block_erasers =
1802 {
1803 {
1804 .eraseblocks = { {4 * 1024, 128} },
1805 .block_erase = spi_block_erase_20,
1806 }
1807 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001808 .write = NULL /* Incompatible Page write */,
1809 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001810 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001811 },
1812
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001813 {
1814 .vendor = "Atmel",
1815 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001816 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001817 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001818 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001819 .total_size = 1024,
1820 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001821 .feature_bits = FEATURE_WRSR_WREN,
1822 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001824 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001825 .block_erasers =
1826 {
1827 {
1828 .eraseblocks = { {4 * 1024, 256} },
1829 .block_erase = spi_block_erase_20,
1830 }, {
1831 .eraseblocks = { {32 * 1024, 32} },
1832 .block_erase = spi_block_erase_52,
1833 }, {
1834 .eraseblocks = { {64 * 1024, 16} },
1835 .block_erase = spi_block_erase_d8,
1836 }, {
1837 .eraseblocks = { {1024 * 1024, 1} },
1838 .block_erase = spi_block_erase_60,
1839 }, {
1840 .eraseblocks = { {1024 * 1024, 1} },
1841 .block_erase = spi_block_erase_c7,
1842 }
1843 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001844 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001845 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001846 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001847 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001848 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001849 },
1850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001851 {
1852 .vendor = "Atmel",
1853 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001854 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001855 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001856 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001857 .total_size = 2048,
1858 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001859 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001860 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001862 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001863 .block_erasers =
1864 {
1865 {
1866 .eraseblocks = { {4 * 1024, 512} },
1867 .block_erase = spi_block_erase_20,
1868 }, {
1869 .eraseblocks = { {32 * 1024, 64} },
1870 .block_erase = spi_block_erase_52,
1871 }, {
1872 .eraseblocks = { {64 * 1024, 32} },
1873 .block_erase = spi_block_erase_d8,
1874 }, {
1875 .eraseblocks = { {2 * 1024 * 1024, 1} },
1876 .block_erase = spi_block_erase_60,
1877 }, {
1878 .eraseblocks = { {2 * 1024 * 1024, 1} },
1879 .block_erase = spi_block_erase_c7,
1880 }
1881 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001882 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001883 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001884 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001885 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001886 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001887 },
1888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001889 {
1890 .vendor = "Atmel",
1891 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001892 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001893 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001894 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001895 .total_size = 2048,
1896 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001897 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001898 .tested = TEST_UNTESTED,
1899 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001900 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001901 .block_erasers =
1902 {
1903 {
1904 .eraseblocks = { {4 * 1024, 512} },
1905 .block_erase = spi_block_erase_20,
1906 }, {
1907 .eraseblocks = { {32 * 1024, 64} },
1908 .block_erase = spi_block_erase_52,
1909 }, {
1910 .eraseblocks = { {64 * 1024, 32} },
1911 .block_erase = spi_block_erase_d8,
1912 }, {
1913 .eraseblocks = { {2 * 1024 * 1024, 1} },
1914 .block_erase = spi_block_erase_60,
1915 }, {
1916 .eraseblocks = { {2 * 1024 * 1024, 1} },
1917 .block_erase = spi_block_erase_c7,
1918 }
1919 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001920 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001921 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001922 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001923 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001924 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001925 },
1926
1927 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 /*{
1929 .vendor = "Atmel",
1930 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001931 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001932 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001933 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 .total_size = 4096,
1935 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001936 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001937 .tested = TEST_UNTESTED,
1938 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001939 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001940 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001941 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001942 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 .read = spi_chip_read,
1944 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001946 {
1947 .vendor = "Atmel",
1948 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001949 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001951 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001952 .total_size = 512,
1953 .page_size = 256,
1954 .tested = TEST_UNTESTED,
Steven Zakulec3603a282012-05-02 20:07:57 +00001955 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001956 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001957 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001958 .block_erasers =
1959 {
1960 {
1961 .eraseblocks = { {4 * 1024, 128} },
1962 .block_erase = spi_block_erase_20,
1963 }, {
1964 .eraseblocks = { {32 * 1024, 16} },
1965 .block_erase = spi_block_erase_52,
1966 }, {
1967 .eraseblocks = { {64 * 1024, 8} },
1968 .block_erase = spi_block_erase_d8,
1969 }, {
1970 .eraseblocks = { {512 * 1024, 1} },
1971 .block_erase = spi_block_erase_60,
1972 }, {
1973 .eraseblocks = { {512 * 1024, 1} },
1974 .block_erase = spi_block_erase_c7,
1975 }
1976 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .write = NULL /* Incompatible Page write */,
1978 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001980 },
1981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001982 {
1983 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001984 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001985 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001986 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001987 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001988 .total_size = 64,
1989 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001990 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00001991 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001992 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001993 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001994 .block_erasers =
1995 {
1996 {
1997 .eraseblocks = { {64 * 1024, 1} },
1998 .block_erase = erase_chip_block_jedec,
1999 }
2000 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002001 .write = write_jedec,
2002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002003 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002004 },
2005
2006 {
2007 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002008 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002009 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002010 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002011 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002012 .total_size = 128,
2013 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002014 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002015 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002016 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002017 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002018 .block_erasers =
2019 {
2020 {
2021 .eraseblocks = { {128 * 1024, 1} },
2022 .block_erase = erase_chip_block_jedec,
2023 }
2024 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002025 .write = write_jedec, /* FIXME */
2026 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002027 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002028 },
2029
2030 {
2031 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002032 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002033 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002034 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002035 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002036 .total_size = 256,
2037 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002038 .feature_bits = FEATURE_LONG_RESET,
2039 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002040 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002041 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002042 .block_erasers =
2043 {
2044 {
2045 .eraseblocks = { {256 * 1024, 1} },
2046 .block_erase = erase_chip_block_jedec,
2047 }
2048 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002049 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002050 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002051 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002052 },
2053
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002054 {
2055 .vendor = "Atmel",
2056 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002057 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002058 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002059 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002060 .total_size = 512,
2061 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002062 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 .tested = TEST_UNTESTED,
2064 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002065 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002066 .block_erasers =
2067 {
2068 {
2069 .eraseblocks = { {512 * 1024, 1} },
2070 .block_erase = erase_chip_block_jedec,
2071 }
2072 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002073 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002074 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002075 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002076 },
2077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002078 {
2079 .vendor = "Atmel",
2080 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002081 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002082 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002083 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002084 .total_size = 16896 /* No power of two sizes */,
2085 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002086 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 .tested = TEST_BAD_READ,
2088 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002089 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002090 .write = NULL /* Incompatible Page write */,
2091 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002092 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002093 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002094
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002095 {
2096 .vendor = "Atmel",
2097 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002098 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002100 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002101 .total_size = 128 /* Size can only be determined from status register */,
2102 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002103 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002104 .tested = TEST_BAD_READ,
2105 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002106 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .write = NULL,
2108 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002109 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002110 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002111
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002112 {
2113 .vendor = "Atmel",
2114 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002115 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002116 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002117 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002118 .total_size = 256 /* Size can only be determined from status register */,
2119 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002120 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 .tested = TEST_BAD_READ,
2122 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002123 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002124 .write = NULL,
2125 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002126 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002127 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 {
2130 .vendor = "Atmel",
2131 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002132 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002134 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002135 .total_size = 512 /* Size can only be determined from status register */,
2136 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002137 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 .tested = TEST_BAD_READ,
2139 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002140 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002141 .write = NULL,
2142 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002143 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002144 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002146 {
2147 .vendor = "Atmel",
2148 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002149 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002150 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002151 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002152 .total_size = 1024 /* Size can only be determined from status register */,
2153 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002154 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
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,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002160 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
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 = "AT45DB161D",
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_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002169 .total_size = 2048 /* Size can only be determined from status register */,
2170 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002171 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .tested = TEST_BAD_READ,
2173 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002174 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 .write = NULL,
2176 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002177 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002178 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002186 .total_size = 4224 /* No power of two sizes */,
2187 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_BAD_READ,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002192 .write = NULL,
2193 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002194 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002195 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002196
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002197 {
2198 .vendor = "Atmel",
2199 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002200 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002202 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002203 .total_size = 4096 /* Size can only be determined from status register */,
2204 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002205 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002206 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002207 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002208 .tested = TEST_BAD_READ,
2209 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002210 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 .write = NULL,
2212 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002213 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002214 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 {
2217 .vendor = "Atmel",
2218 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002219 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002221 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002222 .total_size = 8192 /* Size can only be determined from status register */,
2223 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002224 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002225 .tested = TEST_BAD_READ,
2226 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002227 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002228 .write = NULL,
2229 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002230 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002231 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002233 {
2234 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002235 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002236 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002237 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002238 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002239 .total_size = 64,
2240 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002241 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002242 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002243 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002244 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002245 .block_erasers =
2246 {
2247 {
2248 .eraseblocks = { {64 * 1024, 1} },
2249 .block_erase = erase_chip_block_jedec,
2250 }
2251 },
Sean Nelson35727f72010-01-28 23:55:12 +00002252 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002253 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002254 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002255 },
2256
2257 {
2258 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002259 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002260 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002261 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002262 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002263 .total_size = 256,
2264 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002265 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .tested = TEST_UNTESTED,
2267 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002268 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002269 .block_erasers =
2270 {
2271 {
2272 .eraseblocks = {
2273 {16 * 1024, 1},
2274 {8 * 1024, 2},
2275 {96 * 1024, 1},
2276 {128 * 1024, 1},
2277 },
2278 .block_erase = erase_sector_jedec,
2279 }, {
2280 .eraseblocks = { {256 * 1024, 1} },
2281 .block_erase = erase_chip_block_jedec,
2282 }
2283 },
Sean Nelson35727f72010-01-28 23:55:12 +00002284 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002285 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002286 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002287 },
2288
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002289 {
2290 .vendor = "Atmel",
2291 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002292 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002294 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002295 .total_size = 256,
2296 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002297 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002298 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002300 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002301 .block_erasers =
2302 {
2303 {
2304 .eraseblocks = {
2305 {128 * 1024, 1},
2306 {96 * 1024, 1},
2307 {8 * 1024, 2},
2308 {16 * 1024, 1},
2309 },
2310 .block_erase = erase_sector_jedec,
2311 }, {
2312 .eraseblocks = { {256 * 1024, 1} },
2313 .block_erase = erase_chip_block_jedec,
2314 }
2315 },
Sean Nelson35727f72010-01-28 23:55:12 +00002316 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002317 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002318 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002319 },
2320
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002321 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002322 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002323 .name = "AT49(H)F010",
2324 .bustype = BUS_PARALLEL,
2325 .manufacture_id = ATMEL_ID,
2326 .model_id = ATMEL_AT49F010,
2327 .total_size = 128,
2328 .page_size = 0, /* unused */
2329 .feature_bits = FEATURE_EITHER_RESET,
2330 .tested = TEST_OK_PREW,
2331 .probe = probe_jedec,
2332 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2333 .block_erasers =
2334 {
2335 {
2336 .eraseblocks = { {128 * 1024, 1} },
2337 .block_erase = erase_chip_block_jedec,
2338 }
2339 },
2340 .printlock = printlock_at49f,
2341 .write = write_jedec_1,
2342 .read = read_memmapped,
2343 .voltage = {4500, 5500},
2344 },
2345
2346 {
2347 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002348 .name = "AT49F020",
2349 .bustype = BUS_PARALLEL,
2350 .manufacture_id = ATMEL_ID,
2351 .model_id = ATMEL_AT49F020,
2352 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002353 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002354 .feature_bits = FEATURE_EITHER_RESET,
2355 .tested = TEST_OK_PRE,
2356 .probe = probe_jedec,
2357 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2358 .block_erasers =
2359 {
2360 {
2361 .eraseblocks = { {256 * 1024, 1} },
2362 .block_erase = erase_chip_block_jedec,
2363 }
2364 /* Chip features an optional permanent write protection
2365 * of the first 8 kB. The erase function is the same as
2366 * above, but 00000H to 01FFFH will not be erased.
2367 * FIXME: add another eraser when partial erasers are
2368 * supported.
2369 */
2370 },
2371 .printlock = printlock_at49f,
2372 .write = write_jedec_1,
2373 .read = read_memmapped,
2374 .voltage = {4500, 5500},
2375 },
2376
2377 {
2378 .vendor = "Atmel",
2379 .name = "AT49F040",
2380 .bustype = BUS_PARALLEL,
2381 .manufacture_id = ATMEL_ID,
2382 .model_id = ATMEL_AT49F040,
2383 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002384 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002385 .feature_bits = FEATURE_EITHER_RESET,
2386 .tested = TEST_UNTESTED,
2387 .probe = probe_jedec,
2388 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2389 .block_erasers =
2390 {
2391 {
2392 .eraseblocks = { {512 * 1024, 1} },
2393 .block_erase = erase_chip_block_jedec,
2394 }
2395 /* Chip features an optional permanent write protection
2396 * of the first 16 kB. The erase function is the same as
2397 * above, but 00000H to 03FFFH will not be erased.
2398 * FIXME: add another eraser when partial erasers are
2399 * supported.
2400 */
2401 },
2402 .printlock = printlock_at49f,
2403 .write = write_jedec_1,
2404 .read = read_memmapped,
2405 .voltage = {4500, 5500},
2406 },
2407
2408 {
2409 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002410 .name = "AT49F080",
2411 .bustype = BUS_PARALLEL,
2412 .manufacture_id = ATMEL_ID,
2413 .model_id = ATMEL_AT49F080,
2414 .total_size = 1024,
2415 .page_size = 0, /* unused */
2416 .feature_bits = FEATURE_EITHER_RESET,
2417 .tested = TEST_UNTESTED,
2418 .probe = probe_jedec,
2419 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2420 .block_erasers =
2421 {
2422 {
2423 .eraseblocks = { {1024 * 1024, 1} },
2424 .block_erase = erase_chip_block_jedec,
2425 }
2426 /* Chip features an optional permanent write protection
2427 * of the first 16 kB. The erase function is the same as
2428 * above, but 00000H to 03FFFH will not be erased.
2429 * FIXME: add another eraser when partial erasers are
2430 * supported.
2431 */
2432 },
2433 .printlock = printlock_at49f,
2434 .write = write_jedec_1,
2435 .read = read_memmapped,
2436 .voltage = {4500, 5500},
2437 },
2438
2439 {
2440 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2441 .vendor = "Atmel",
2442 .name = "AT49F080T",
2443 .bustype = BUS_PARALLEL,
2444 .manufacture_id = ATMEL_ID,
2445 .model_id = ATMEL_AT49F080T,
2446 .total_size = 1024,
2447 .page_size = 0, /* unused */
2448 .feature_bits = FEATURE_EITHER_RESET,
2449 .tested = TEST_UNTESTED,
2450 .probe = probe_jedec,
2451 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2452 .block_erasers =
2453 {
2454 {
2455 .eraseblocks = { {1024 * 1024, 1} },
2456 .block_erase = erase_chip_block_jedec,
2457 }
2458 /* Chip features an optional permanent write protection
2459 * of the first 16 kB. The erase function is the same as
2460 * above, but FC000H to FFFFFH will not be erased.
2461 * FIXME: add another eraser when partial erasers are
2462 * supported.
2463 */
2464 },
2465 .printlock = printlock_at49f,
2466 .write = write_jedec_1,
2467 .read = read_memmapped,
2468 .voltage = {4500, 5500},
2469 },
2470
2471 {
2472 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002473 .name = "AT49LH002",
2474 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2475 .manufacture_id = ATMEL_ID,
2476 .model_id = ATMEL_AT49LH002,
2477 .total_size = 256,
2478 .page_size = 0, /* unused */
2479 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2480 .tested = TEST_UNTESTED,
2481 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2482 .probe_timing = TIMING_FIXME,
2483 .block_erasers =
2484 {
2485 {
2486 .eraseblocks = {
2487 {64 * 1024, 3},
2488 {32 * 1024, 1},
2489 {8 * 1024, 2},
2490 {16 * 1024, 1},
2491 },
2492 .block_erase = erase_block_82802ab,
2493 }, {
2494 .eraseblocks = {
2495 {64 * 1024, 4},
2496 },
2497 .block_erase = NULL, /* TODO: Implement. */
2498 },
2499 },
2500 .printlock = NULL, /* TODO */
2501 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2502 .write = write_82802ab,
2503 .read = read_memmapped,
2504 .voltage = {3000, 3600},
2505 },
2506
2507 {
Andrew Morganca081462011-09-13 22:05:44 +00002508 .vendor = "Catalyst",
2509 .name = "CAT28F512",
2510 .bustype = BUS_PARALLEL,
2511 .manufacture_id = CATALYST_ID,
2512 .model_id = CATALYST_CAT28F512,
2513 .total_size = 64,
2514 .page_size = 0, /* unused */
2515 .feature_bits = 0,
2516 .tested = TEST_OK_PR,
2517 .probe = probe_jedec, /* FIXME! */
2518 .probe_timing = TIMING_ZERO,
2519 .block_erasers =
2520 {
2521 {
2522 .eraseblocks = { {64 * 1024, 1} },
2523 .block_erase = NULL, /* TODO */
2524 },
2525 },
2526 .write = NULL, /* TODO */
2527 .read = read_memmapped,
2528 .voltage = {4500, 5500},
2529 },
2530
2531 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002532 .vendor = "Bright",
2533 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002534 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002535 .manufacture_id = BRIGHT_ID,
2536 .model_id = BRIGHT_BM29F040,
2537 .total_size = 512,
2538 .page_size = 64 * 1024,
2539 .feature_bits = FEATURE_EITHER_RESET,
2540 .tested = TEST_OK_PR,
2541 .probe = probe_jedec,
2542 .probe_timing = TIMING_ZERO,
2543 .block_erasers =
2544 {
2545 {
2546 .eraseblocks = { {64 * 1024, 8} },
2547 .block_erase = erase_sector_jedec,
2548 }, {
2549 .eraseblocks = { {512 * 1024, 1} },
2550 .block_erase = erase_chip_block_jedec,
2551 },
2552 },
2553 .write = write_jedec_1,
2554 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002555 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002556 },
2557
2558 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .vendor = "EMST",
2560 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002561 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002562 .manufacture_id = EMST_ID,
2563 .model_id = EMST_F49B002UA,
2564 .total_size = 256,
2565 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002566 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002567 .tested = TEST_UNTESTED,
2568 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002569 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002570 .block_erasers =
2571 {
2572 {
2573 .eraseblocks = {
2574 {128 * 1024, 1},
2575 {96 * 1024, 1},
2576 {8 * 1024, 2},
2577 {16 * 1024, 1},
2578 },
2579 .block_erase = erase_sector_jedec,
2580 }, {
2581 .eraseblocks = { {256 * 1024, 1} },
2582 .block_erase = erase_chip_block_jedec,
2583 }
2584 },
Sean Nelson35727f72010-01-28 23:55:12 +00002585 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002586 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002587 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002588 },
2589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002590 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002591 .vendor = "EMST",
2592 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002593 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002594 .manufacture_id = EMST_ID,
2595 .model_id = EMST_F25L008A,
2596 .total_size = 1024,
2597 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002598 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002599 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002600 .probe = probe_spi_rdid,
2601 .probe_timing = TIMING_ZERO,
2602 .block_erasers =
2603 {
2604 {
2605 .eraseblocks = { {4 * 1024, 256} },
2606 .block_erase = spi_block_erase_20,
2607 }, {
2608 .eraseblocks = { {64 * 1024, 16} },
2609 .block_erase = spi_block_erase_d8,
2610 }, {
2611 .eraseblocks = { {1024 * 1024, 1} },
2612 .block_erase = spi_block_erase_60,
2613 }, {
2614 .eraseblocks = { {1024 * 1024, 1} },
2615 .block_erase = spi_block_erase_c7,
2616 }
2617 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002618 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002619 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002620 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002621 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002622 },
2623
2624 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002625 .vendor = "Eon",
2626 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002627 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002628 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002629 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002630 .total_size = 64,
2631 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002632 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002633 .tested = TEST_UNTESTED,
2634 .probe = probe_spi_rdid,
2635 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002636 .block_erasers =
2637 {
2638 {
2639 .eraseblocks = {
2640 {4 * 1024, 2},
2641 {8 * 1024, 1},
2642 {16 * 1024, 1},
2643 {32 * 1024, 1},
2644 },
2645 .block_erase = spi_block_erase_d8,
2646 }, {
2647 .eraseblocks = { {64 * 1024, 1} },
2648 .block_erase = spi_block_erase_c7,
2649 }
2650 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002651 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002652 .write = spi_chip_write_256,
2653 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002654 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002655 },
2656
2657 {
2658 .vendor = "Eon",
2659 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002660 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002661 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002662 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002663 .total_size = 64,
2664 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002665 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002666 .tested = TEST_UNTESTED,
2667 .probe = probe_spi_rdid,
2668 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002669 .block_erasers =
2670 {
2671 {
2672 .eraseblocks = {
2673 {32 * 1024, 1},
2674 {16 * 1024, 1},
2675 {8 * 1024, 1},
2676 {4 * 1024, 2},
2677 },
2678 .block_erase = spi_block_erase_d8,
2679 }, {
2680 .eraseblocks = { {64 * 1024, 1} },
2681 .block_erase = spi_block_erase_c7,
2682 }
2683 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002684 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002685 .write = spi_chip_write_256,
2686 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002687 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002688 },
2689
2690 {
2691 .vendor = "Eon",
2692 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002693 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002694 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002695 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002696 .total_size = 128,
2697 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002698 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002699 .tested = TEST_UNTESTED,
2700 .probe = probe_spi_rdid,
2701 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002702 .block_erasers =
2703 {
2704 {
2705 .eraseblocks = {
2706 {4 * 1024, 2},
2707 {8 * 1024, 1},
2708 {16 * 1024, 1},
2709 {32 * 1024, 3},
2710 },
2711 .block_erase = spi_block_erase_d8,
2712 }, {
2713 .eraseblocks = { {128 * 1024, 1} },
2714 .block_erase = spi_block_erase_c7,
2715 }
2716 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002717 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002718 .write = spi_chip_write_256,
2719 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002720 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002721 },
2722
2723 {
2724 .vendor = "Eon",
2725 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002726 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002727 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002728 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002729 .total_size = 128,
2730 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002731 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002732 .tested = TEST_UNTESTED,
2733 .probe = probe_spi_rdid,
2734 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002735 .block_erasers =
2736 {
2737 {
2738 .eraseblocks = {
2739 {32 * 1024, 3},
2740 {16 * 1024, 1},
2741 {8 * 1024, 1},
2742 {4 * 1024, 2},
2743 },
2744 .block_erase = spi_block_erase_d8,
2745 }, {
2746 .eraseblocks = { {128 * 1024, 1} },
2747 .block_erase = spi_block_erase_c7,
2748 }
2749 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002750 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002751 .write = spi_chip_write_256,
2752 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002753 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002754 },
2755
2756 {
2757 .vendor = "Eon",
2758 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002759 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002760 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002761 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002762 .total_size = 256,
2763 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002764 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002765 .tested = TEST_UNTESTED,
2766 .probe = probe_spi_rdid,
2767 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002768 .block_erasers =
2769 {
2770 {
2771 .eraseblocks = {
2772 {4 * 1024, 2},
2773 {8 * 1024, 1},
2774 {16 * 1024, 1},
2775 {32 * 1024, 1},
2776 {64 * 1024, 3}
2777 },
2778 .block_erase = spi_block_erase_d8,
2779 }, {
2780 .eraseblocks = { {256 * 1024, 1} },
2781 .block_erase = spi_block_erase_c7,
2782 }
2783 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002784 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002785 .write = spi_chip_write_256,
2786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002787 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002788 },
2789
2790 {
2791 .vendor = "Eon",
2792 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002793 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002794 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002795 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002796 .total_size = 256,
2797 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002798 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002799 .tested = TEST_UNTESTED,
2800 .probe = probe_spi_rdid,
2801 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002802 .block_erasers =
2803 {
2804 {
2805 .eraseblocks = {
2806 {64 * 1024, 3},
2807 {32 * 1024, 1},
2808 {16 * 1024, 1},
2809 {8 * 1024, 1},
2810 {4 * 1024, 2},
2811 },
2812 .block_erase = spi_block_erase_d8,
2813 }, {
2814 .eraseblocks = { {256 * 1024, 1} },
2815 .block_erase = spi_block_erase_c7,
2816 }
2817 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002818 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002819 .write = spi_chip_write_256,
2820 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002821 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002822 },
2823
2824 {
2825 .vendor = "Eon",
2826 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002827 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002828 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002829 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002830 .total_size = 512,
2831 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002832 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002833 .tested = TEST_UNTESTED,
2834 .probe = probe_spi_rdid,
2835 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002836 .block_erasers =
2837 {
2838 {
2839 .eraseblocks = {
2840 {4 * 1024, 2},
2841 {8 * 1024, 1},
2842 {16 * 1024, 1},
2843 {32 * 1024, 1},
2844 {64 * 1024, 7}
2845 },
2846 .block_erase = spi_block_erase_d8,
2847 }, {
2848 .eraseblocks = { {512 * 1024, 1} },
2849 .block_erase = spi_block_erase_c7,
2850 }
2851 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002852 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002853 .write = spi_chip_write_256,
2854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002855 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002856 },
2857
2858 {
2859 .vendor = "Eon",
2860 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002861 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002862 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002863 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002864 .total_size = 512,
2865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002866 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002867 .tested = TEST_UNTESTED,
2868 .probe = probe_spi_rdid,
2869 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002870 .block_erasers =
2871 {
2872 {
2873 .eraseblocks = {
2874 {64 * 1024, 7},
2875 {32 * 1024, 1},
2876 {16 * 1024, 1},
2877 {8 * 1024, 1},
2878 {4 * 1024, 2},
2879 },
2880 .block_erase = spi_block_erase_d8,
2881 }, {
2882 .eraseblocks = { {512 * 1024, 1} },
2883 .block_erase = spi_block_erase_c7,
2884 }
2885 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002886 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002887 .write = spi_chip_write_256,
2888 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002889 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002890 },
2891
2892 {
2893 .vendor = "Eon",
2894 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002895 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002896 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002897 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002898 .total_size = 1024,
2899 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002900 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002901 .tested = TEST_UNTESTED,
2902 .probe = probe_spi_rdid,
2903 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002904 .block_erasers =
2905 {
2906 {
2907 .eraseblocks = {
2908 {4 * 1024, 2},
2909 {8 * 1024, 1},
2910 {16 * 1024, 1},
2911 {32 * 1024, 1},
2912 {64 * 1024, 15}
2913 },
2914 .block_erase = spi_block_erase_d8,
2915 }, {
2916 .eraseblocks = { {1024 * 1024, 1} },
2917 .block_erase = spi_block_erase_c7,
2918 }
2919 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002920 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002921 .write = spi_chip_write_256,
2922 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002923 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002924 },
2925
2926 {
2927 .vendor = "Eon",
2928 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002929 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002930 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002931 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002932 .total_size = 1024,
2933 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002934 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002935 .tested = TEST_UNTESTED,
2936 .probe = probe_spi_rdid,
2937 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002938 .block_erasers =
2939 {
2940 {
2941 .eraseblocks = {
2942 {64 * 1024, 15},
2943 {32 * 1024, 1},
2944 {16 * 1024, 1},
2945 {8 * 1024, 1},
2946 {4 * 1024, 2},
2947 },
2948 .block_erase = spi_block_erase_d8,
2949 }, {
2950 .eraseblocks = { {1024 * 1024, 1} },
2951 .block_erase = spi_block_erase_c7,
2952 }
2953 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002954 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002955 .write = spi_chip_write_256,
2956 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002957 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002958 },
2959
2960 {
2961 .vendor = "Eon",
2962 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002963 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002964 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002965 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002966 .total_size = 2048,
2967 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002968 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002969 .tested = TEST_UNTESTED,
2970 .probe = probe_spi_rdid,
2971 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002972 .block_erasers =
2973 {
2974 {
2975 .eraseblocks = {
2976 {4 * 1024, 2},
2977 {8 * 1024, 1},
2978 {16 * 1024, 1},
2979 {32 * 1024, 1},
2980 {64 * 1024, 31},
2981 },
2982 .block_erase = spi_block_erase_d8,
2983 }, {
2984 .eraseblocks = { {2 * 1024 * 1024, 1} },
2985 .block_erase = spi_block_erase_c7,
2986 }
2987 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002988 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002989 .write = spi_chip_write_256,
2990 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002991 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002992 },
2993
2994 {
2995 .vendor = "Eon",
2996 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002997 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002998 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002999 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003000 .total_size = 2048,
3001 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003002 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003003 .tested = TEST_UNTESTED,
3004 .probe = probe_spi_rdid,
3005 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003006 .block_erasers =
3007 {
3008 {
3009 .eraseblocks = {
3010 {64 * 1024, 31},
3011 {32 * 1024, 1},
3012 {16 * 1024, 1},
3013 {8 * 1024, 1},
3014 {4 * 1024, 2},
3015 },
3016 .block_erase = spi_block_erase_d8,
3017 }, {
3018 .eraseblocks = { {2 * 1024 * 1024, 1} },
3019 .block_erase = spi_block_erase_c7,
3020 }
3021 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003022 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003023 .write = spi_chip_write_256,
3024 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003025 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003026 },
3027
3028 {
3029 .vendor = "Eon",
3030 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003031 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003032 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003033 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003034 .total_size = 4096,
3035 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003036 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003037 .tested = TEST_UNTESTED,
3038 .probe = probe_spi_rdid,
3039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003040 .block_erasers =
3041 {
3042 {
3043 .eraseblocks = {
3044 {4 * 1024, 2},
3045 {8 * 1024, 1},
3046 {16 * 1024, 1},
3047 {32 * 1024, 1},
3048 {64 * 1024, 63},
3049 },
3050 .block_erase = spi_block_erase_d8,
3051 }, {
3052 .eraseblocks = { {4 * 1024 * 1024, 1} },
3053 .block_erase = spi_block_erase_c7,
3054 }
3055 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003056 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003057 .write = spi_chip_write_256,
3058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003059 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003060 },
3061
3062 {
3063 .vendor = "Eon",
3064 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003065 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003066 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003067 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003068 .total_size = 4096,
3069 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003070 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003071 .tested = TEST_UNTESTED,
3072 .probe = probe_spi_rdid,
3073 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003074 .block_erasers =
3075 {
3076 {
3077 .eraseblocks = {
3078 {64 * 1024, 63},
3079 {32 * 1024, 1},
3080 {16 * 1024, 1},
3081 {8 * 1024, 1},
3082 {4 * 1024, 2},
3083 },
3084 .block_erase = spi_block_erase_d8,
3085 }, {
3086 .eraseblocks = { {4 * 1024 * 1024, 1} },
3087 .block_erase = spi_block_erase_c7,
3088 }
3089 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003090 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003091 .write = spi_chip_write_256,
3092 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003093 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003094 },
3095
3096 {
3097 .vendor = "Eon",
3098 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003099 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003100 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003101 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003102 .total_size = 8192,
3103 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003104 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003105 .tested = TEST_UNTESTED,
3106 .probe = probe_spi_rdid,
3107 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003108 .block_erasers =
3109 {
3110 {
3111 .eraseblocks = {
3112 {4 * 1024, 2},
3113 {8 * 1024, 1},
3114 {16 * 1024, 1},
3115 {32 * 1024, 1},
3116 {64 * 1024, 127},
3117 },
3118 .block_erase = spi_block_erase_d8,
3119 }, {
3120 .eraseblocks = { {8 * 1024 * 1024, 1} },
3121 .block_erase = spi_block_erase_c7,
3122 }
3123 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003124 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003125 .write = spi_chip_write_256,
3126 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003127 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003128 },
3129
3130 {
3131 .vendor = "Eon",
3132 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003133 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003134 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003135 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003136 .total_size = 8192,
3137 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003138 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003139 .tested = TEST_UNTESTED,
3140 .probe = probe_spi_rdid,
3141 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003142 .block_erasers =
3143 {
3144 {
3145 .eraseblocks = {
3146 {64 * 1024, 127},
3147 {32 * 1024, 1},
3148 {16 * 1024, 1},
3149 {8 * 1024, 1},
3150 {4 * 1024, 2},
3151 },
3152 .block_erase = spi_block_erase_d8,
3153 }, {
3154 .eraseblocks = { {8 * 1024 * 1024, 1} },
3155 .block_erase = spi_block_erase_c7,
3156 }
3157 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003158 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003159 .write = spi_chip_write_256,
3160 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003161 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003162 },
3163
3164 {
3165 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003166 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003167 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003168 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003169 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003170 .total_size = 64,
3171 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003172 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003173 .tested = TEST_UNTESTED,
3174 .probe = probe_spi_rdid,
3175 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003176 .block_erasers =
3177 {
3178 {
3179 .eraseblocks = { {4 * 1024, 16} },
3180 .block_erase = spi_block_erase_20,
3181 }, {
3182 .eraseblocks = { {32 * 1024, 2} },
3183 .block_erase = spi_block_erase_d8,
3184 }, {
3185 .eraseblocks = { {32 * 1024, 2} },
3186 .block_erase = spi_block_erase_52,
3187 }, {
3188 .eraseblocks = { {64 * 1024, 1} },
3189 .block_erase = spi_block_erase_60,
3190 }, {
3191 .eraseblocks = { {64 * 1024, 1} },
3192 .block_erase = spi_block_erase_c7,
3193 }
3194 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003195 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003196 .write = spi_chip_write_256,
3197 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003198 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003199 },
3200
3201 {
3202 .vendor = "Eon",
3203 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003204 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003205 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003206 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003207 .total_size = 128,
3208 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003209 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003210 .tested = TEST_UNTESTED,
3211 .probe = probe_spi_rdid,
3212 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003213 .block_erasers =
3214 {
3215 {
3216 .eraseblocks = { {4 * 1024, 32} },
3217 .block_erase = spi_block_erase_20,
3218 }, {
3219 .eraseblocks = { {32 * 1024, 4} },
3220 .block_erase = spi_block_erase_d8,
3221 }, {
3222 .eraseblocks = { {32 * 1024, 4} },
3223 .block_erase = spi_block_erase_52,
3224 }, {
3225 .eraseblocks = { {128 * 1024, 1} },
3226 .block_erase = spi_block_erase_60,
3227 }, {
3228 .eraseblocks = { {128 * 1024, 1} },
3229 .block_erase = spi_block_erase_c7,
3230 }
3231 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003232 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003233 .write = spi_chip_write_256,
3234 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003235 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003236 },
3237
3238 {
3239 .vendor = "Eon",
3240 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003241 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003242 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003243 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003244 .total_size = 256,
3245 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003246 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003247 .tested = TEST_UNTESTED,
3248 .probe = probe_spi_rdid,
3249 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003250 .block_erasers =
3251 {
3252 {
3253 .eraseblocks = { {4 * 1024, 64} },
3254 .block_erase = spi_block_erase_20,
3255 }, {
3256 .eraseblocks = { {64 * 1024, 4} },
3257 .block_erase = spi_block_erase_d8,
3258 }, {
3259 .eraseblocks = { {64 * 1024, 4} },
3260 .block_erase = spi_block_erase_52,
3261 }, {
3262 .eraseblocks = { {256 * 1024, 1} },
3263 .block_erase = spi_block_erase_60,
3264 }, {
3265 .eraseblocks = { {256 * 1024, 1} },
3266 .block_erase = spi_block_erase_c7,
3267 }
3268 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003269 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003270 .write = spi_chip_write_256,
3271 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003272 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003273 },
3274
3275 {
3276 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003277 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003278 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003279 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003280 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003281 .total_size = 512,
3282 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003283 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003284 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003285 .probe = probe_spi_rdid,
3286 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003287 .block_erasers =
3288 {
3289 {
Sean Nelson54596372010-01-09 05:30:14 +00003290 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003291 .block_erase = spi_block_erase_20,
3292 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003293 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003294 .block_erase = spi_block_erase_d8,
3295 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003296 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003297 .block_erase = spi_block_erase_60,
3298 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003299 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003300 .block_erase = spi_block_erase_c7,
3301 },
3302 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003303 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003304 .write = spi_chip_write_256,
3305 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003306 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003307 },
3308
3309 {
3310 .vendor = "Eon",
3311 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003312 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003313 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003314 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003315 .total_size = 1024,
3316 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003317 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003318 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003319 .probe = probe_spi_rdid,
3320 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003321 .block_erasers =
3322 {
3323 {
3324 .eraseblocks = { {4 * 1024, 256} },
3325 .block_erase = spi_block_erase_20,
3326 }, {
3327 .eraseblocks = { {64 * 1024, 16} },
3328 .block_erase = spi_block_erase_d8,
3329 }, {
3330 .eraseblocks = { {1024 * 1024, 1} },
3331 .block_erase = spi_block_erase_60,
3332 }, {
3333 .eraseblocks = { {1024 * 1024, 1} },
3334 .block_erase = spi_block_erase_c7,
3335 }
3336 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003337 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003338 .write = spi_chip_write_256,
3339 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003340 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003341 },
3342
3343 {
3344 .vendor = "Eon",
3345 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003346 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003347 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003348 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003349 .total_size = 2048,
3350 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003351 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003352 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003353 .probe = probe_spi_rdid,
3354 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003355 .block_erasers =
3356 {
3357 {
3358 .eraseblocks = { {4 * 1024, 512} },
3359 .block_erase = spi_block_erase_20,
3360 }, {
3361 .eraseblocks = { {64 * 1024, 32} },
3362 .block_erase = spi_block_erase_d8,
3363 }, {
3364 .eraseblocks = { {2 * 1024 * 1024, 1} },
3365 .block_erase = spi_block_erase_60,
3366 }, {
3367 .eraseblocks = { {2 * 1024 * 1024, 1} },
3368 .block_erase = spi_block_erase_c7,
3369 }
3370 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003371 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003372 .write = spi_chip_write_256,
3373 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003374 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003375 },
3376
3377 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003378 .vendor = "Eon",
3379 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003380 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003381 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003382 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003383 .total_size = 4096,
3384 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003385 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003386 .tested = TEST_UNTESTED,
3387 .probe = probe_spi_rdid,
3388 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003389 .block_erasers =
3390 {
3391 {
3392 .eraseblocks = { {4 * 1024, 1024} },
3393 .block_erase = spi_block_erase_20,
3394 }, {
3395 .eraseblocks = { {64 * 1024, 64} },
3396 .block_erase = spi_block_erase_d8,
3397 }, {
3398 .eraseblocks = { {4 * 1024 * 1024, 1} },
3399 .block_erase = spi_block_erase_60,
3400 }, {
3401 .eraseblocks = { {4 * 1024 * 1024, 1} },
3402 .block_erase = spi_block_erase_c7,
3403 }
3404 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003405 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003406 .write = spi_chip_write_256,
3407 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003408 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003409 },
3410
3411 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003412 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003413 .name = "EN25F64",
3414 .bustype = BUS_SPI,
3415 .manufacture_id = EON_ID_NOPREFIX,
3416 .model_id = EON_EN25F32,
3417 .total_size = 8192,
3418 .page_size = 256,
3419 .feature_bits = FEATURE_WRSR_WREN,
3420 .tested = TEST_UNTESTED,
3421 .probe = probe_spi_rdid,
3422 .probe_timing = TIMING_ZERO,
3423 .block_erasers =
3424 {
3425 {
3426 .eraseblocks = { {4 * 1024, 2048} },
3427 .block_erase = spi_block_erase_20,
3428 }, {
3429 .eraseblocks = { {64 * 1024, 128} },
3430 .block_erase = spi_block_erase_d8,
3431 }, {
3432 .eraseblocks = { {8 * 1024 * 1024, 1} },
3433 .block_erase = spi_block_erase_60,
3434 }, {
3435 .eraseblocks = { {8 * 1024 * 1024, 1} },
3436 .block_erase = spi_block_erase_c7,
3437 }
3438 },
3439 .unlock = spi_disable_blockprotect,
3440 .write = spi_chip_write_256,
3441 .read = spi_chip_read,
3442 .voltage = {2700, 3600},
3443 },
3444
3445 {
3446 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003447 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003448 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003449 .manufacture_id = EON_ID_NOPREFIX,
3450 .model_id = EON_EN25Q40,
3451 .total_size = 512,
3452 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003453 /* OTP: 256B total; enter 0x3A */
3454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003455 .tested = TEST_UNTESTED,
3456 .probe = probe_spi_rdid,
3457 .probe_timing = TIMING_ZERO,
3458 .block_erasers =
3459 {
3460 {
3461 .eraseblocks = { {4 * 1024, 128} },
3462 .block_erase = spi_block_erase_20,
3463 }, {
3464 .eraseblocks = { {64 * 1024, 8} },
3465 .block_erase = spi_block_erase_d8,
3466 }, {
3467 .eraseblocks = { {512 * 1024, 1} },
3468 .block_erase = spi_block_erase_60,
3469 }, {
3470 .eraseblocks = { {512 * 1024, 1} },
3471 .block_erase = spi_block_erase_c7,
3472 }
3473 },
3474 .unlock = spi_disable_blockprotect,
3475 .write = spi_chip_write_256,
3476 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003477 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003478 },
3479
3480 {
3481 .vendor = "Eon",
3482 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003483 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003484 .manufacture_id = EON_ID_NOPREFIX,
3485 .model_id = EON_EN25Q80,
3486 .total_size = 1024,
3487 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003488 /* OTP: 256B total; enter 0x3A */
3489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003490 .tested = TEST_UNTESTED,
3491 .probe = probe_spi_rdid,
3492 .probe_timing = TIMING_ZERO,
3493 .block_erasers =
3494 {
3495 {
3496 .eraseblocks = { {4 * 1024, 256} },
3497 .block_erase = spi_block_erase_20,
3498 }, {
3499 .eraseblocks = { {64 * 1024, 16} },
3500 .block_erase = spi_block_erase_d8,
3501 }, {
3502 .eraseblocks = { {1024 * 1024, 1} },
3503 .block_erase = spi_block_erase_60,
3504 }, {
3505 .eraseblocks = { {1024 * 1024, 1} },
3506 .block_erase = spi_block_erase_c7,
3507 }
3508 },
3509 .unlock = spi_disable_blockprotect,
3510 .write = spi_chip_write_256,
3511 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003512 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003513 },
3514
3515 {
3516 /* Note: EN25D16 is an evil twin which shares the model ID
3517 but has different write protection capabilities */
3518 .vendor = "Eon",
3519 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003520 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003521 .manufacture_id = EON_ID_NOPREFIX,
3522 .model_id = EON_EN25Q16,
3523 .total_size = 2048,
3524 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003525 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3526 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003527 .tested = TEST_UNTESTED,
3528 .probe = probe_spi_rdid,
3529 .probe_timing = TIMING_ZERO,
3530 .block_erasers =
3531 {
3532 {
3533 .eraseblocks = { {4 * 1024, 512} },
3534 .block_erase = spi_block_erase_20,
3535 }, {
3536 .eraseblocks = { {64 * 1024, 32} },
3537 .block_erase = spi_block_erase_d8,
3538 }, {
3539 /* not supported by Q16 version */
3540 .eraseblocks = { {64 * 1024, 32} },
3541 .block_erase = spi_block_erase_52,
3542 }, {
3543 .eraseblocks = { {2 * 1024 * 1024, 1} },
3544 .block_erase = spi_block_erase_60,
3545 }, {
3546 .eraseblocks = { {2 * 1024 * 1024, 1} },
3547 .block_erase = spi_block_erase_c7,
3548 }
3549 },
3550 .unlock = spi_disable_blockprotect,
3551 .write = spi_chip_write_256,
3552 .read = spi_chip_read,
3553 .voltage = {2700, 3600},
3554 },
3555
3556 {
3557 .vendor = "Eon",
3558 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003559 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003560 .manufacture_id = EON_ID_NOPREFIX,
3561 .model_id = EON_EN25Q32,
3562 .total_size = 4096,
3563 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003564 /* OTP: 512B total; enter 0x3A */
3565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003566 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003567 .probe = probe_spi_rdid,
3568 .probe_timing = TIMING_ZERO,
3569 .block_erasers =
3570 {
3571 {
3572 .eraseblocks = { {4 * 1024, 1024} },
3573 .block_erase = spi_block_erase_20,
3574 }, {
3575 .eraseblocks = { {64 * 1024, 64} },
3576 .block_erase = spi_block_erase_d8,
3577 }, {
3578 .eraseblocks = { {4 * 1024 * 1024, 1} },
3579 .block_erase = spi_block_erase_60,
3580 }, {
3581 .eraseblocks = { {4 * 1024 * 1024, 1} },
3582 .block_erase = spi_block_erase_c7,
3583 }
3584 },
3585 .unlock = spi_disable_blockprotect,
3586 .write = spi_chip_write_256,
3587 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003588 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003589 },
3590
3591 {
3592 .vendor = "Eon",
3593 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003594 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003595 .manufacture_id = EON_ID_NOPREFIX,
3596 .model_id = EON_EN25Q64,
3597 .total_size = 8192,
3598 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003599 /* OTP: 512B total; enter 0x3A */
3600 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003601 .tested = TEST_UNTESTED,
3602 .probe = probe_spi_rdid,
3603 .probe_timing = TIMING_ZERO,
3604 .block_erasers =
3605 {
3606 {
3607 .eraseblocks = { {4 * 1024, 2048} },
3608 .block_erase = spi_block_erase_20,
3609 }, {
3610 .eraseblocks = { {64 * 1024, 128} },
3611 .block_erase = spi_block_erase_d8,
3612 }, {
3613 .eraseblocks = { {8 * 1024 * 1024, 1} },
3614 .block_erase = spi_block_erase_60,
3615 }, {
3616 .eraseblocks = { {8 * 1024 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
3618 }
3619 },
3620 .unlock = spi_disable_blockprotect,
3621 .write = spi_chip_write_256,
3622 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003623 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003624 },
3625
3626 {
3627 .vendor = "Eon",
3628 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003629 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003630 .manufacture_id = EON_ID_NOPREFIX,
3631 .model_id = EON_EN25Q128,
3632 .total_size = 16384,
3633 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003634 /* OTP: 512B total; enter 0x3A */
3635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003636 .tested = TEST_UNTESTED,
3637 .probe = probe_spi_rdid,
3638 .probe_timing = TIMING_ZERO,
3639 .block_erasers =
3640 {
3641 {
3642 .eraseblocks = { {4 * 1024, 4096} },
3643 .block_erase = spi_block_erase_20,
3644 }, {
3645 .eraseblocks = { {64 * 1024, 256} },
3646 .block_erase = spi_block_erase_d8,
3647 }, {
3648 .eraseblocks = { {16 * 1024 * 1024, 1} },
3649 .block_erase = spi_block_erase_60,
3650 }, {
3651 .eraseblocks = { {16 * 1024 * 1024, 1} },
3652 .block_erase = spi_block_erase_c7,
3653 }
3654 },
3655 .unlock = spi_disable_blockprotect,
3656 .write = spi_chip_write_256,
3657 .read = spi_chip_read,
3658 },
3659
3660 {
3661 .vendor = "Eon",
3662 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003663 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003664 .manufacture_id = EON_ID_NOPREFIX,
3665 .model_id = EON_EN25QH16,
3666 .total_size = 2048,
3667 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003668 /* supports SFDP */
3669 /* OTP: 512B total; enter 0x3A */
3670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003671 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003672 .probe = probe_spi_rdid,
3673 .probe_timing = TIMING_ZERO,
3674 .block_erasers =
3675 {
3676 {
3677 .eraseblocks = { {4 * 1024, 512} },
3678 .block_erase = spi_block_erase_20,
3679 }, {
3680 .eraseblocks = { {64 * 1024, 32} },
3681 .block_erase = spi_block_erase_d8,
3682 }, {
3683 .eraseblocks = { {1024 * 2048, 1} },
3684 .block_erase = spi_block_erase_60,
3685 }, {
3686 .eraseblocks = { {1024 * 2048, 1} },
3687 .block_erase = spi_block_erase_c7,
3688 }
3689 },
3690 .unlock = spi_disable_blockprotect,
3691 .write = spi_chip_write_256,
3692 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003693 .voltage = {2700, 3600},
3694 },
3695
3696 {
3697 .vendor = "Eon",
3698 .name = "EN25QH32",
3699 .bustype = BUS_SPI,
3700 .manufacture_id = EON_ID_NOPREFIX,
3701 .model_id = EON_EN25QH32,
3702 .total_size = 4096,
3703 .page_size = 256,
3704 /* supports SFDP */
3705 /* OTP: 512B total; enter 0x3A */
3706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3707 .tested = TEST_UNTESTED,
3708 .probe = probe_spi_rdid,
3709 .probe_timing = TIMING_ZERO,
3710 .block_erasers =
3711 {
3712 {
3713 .eraseblocks = { {4 * 1024, 1024} },
3714 .block_erase = spi_block_erase_20,
3715 }, {
3716 .eraseblocks = { {64 * 1024, 64} },
3717 .block_erase = spi_block_erase_d8,
3718 }, {
3719 .eraseblocks = { {1024 * 4096, 1} },
3720 .block_erase = spi_block_erase_60,
3721 }, {
3722 .eraseblocks = { {1024 * 4096, 1} },
3723 .block_erase = spi_block_erase_c7,
3724 }
3725 },
3726 .unlock = spi_disable_blockprotect,
3727 .write = spi_chip_write_256,
3728 .read = spi_chip_read,
3729 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003730 },
3731
3732 {
3733 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003734 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003735 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003736 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003737 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003738 .total_size = 128,
3739 .page_size = 128,
3740 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003741 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003742 .probe = probe_jedec,
3743 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3744 .block_erasers =
3745 {
3746 {
3747 .eraseblocks = { {16 * 1024, 8} },
3748 .block_erase = erase_sector_jedec,
3749 },
3750 {
3751 .eraseblocks = { {128 * 1024, 1} },
3752 .block_erase = erase_chip_block_jedec,
3753 },
3754 },
3755 .write = write_jedec_1,
3756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003757 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003758 },
3759
3760 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003761 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003762 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003763 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003764 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003765 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003766 .total_size = 256,
3767 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003768 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003769 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003770 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003771 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003772 .block_erasers =
3773 {
3774 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003775 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003776 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003777 {8 * 1024, 2},
3778 {32 * 1024, 1},
3779 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003780 },
3781 .block_erase = erase_sector_jedec,
3782 }, {
3783 .eraseblocks = { {256 * 1024, 1} },
3784 .block_erase = erase_chip_block_jedec,
3785 },
3786 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003787 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003788 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003789 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003790 },
3791
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003792 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003793 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003794 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003795 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003796 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003797 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003798 .total_size = 256,
3799 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003800 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003801 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003802 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003803 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003804 .block_erasers =
3805 {
3806 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003807 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003808 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003809 {32 * 1024, 1},
3810 {8 * 1024, 2},
3811 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003812 },
3813 .block_erase = erase_sector_jedec,
3814 }, {
3815 .eraseblocks = { {256 * 1024, 1} },
3816 .block_erase = erase_chip_block_jedec,
3817 },
3818 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003819 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003820 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003821 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003822 },
3823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003824 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003825 .vendor = "Eon",
3826 .name = "EN29LV640B",
3827 .bustype = BUS_PARALLEL,
3828 .manufacture_id = EON_ID,
3829 .model_id = EON_EN29LV640B,
3830 .total_size = 8192,
3831 .page_size = 8192,
3832 .feature_bits = 0,
3833 .tested = TEST_OK_PREW,
3834 .probe = probe_en29lv640b,
3835 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3836 .block_erasers =
3837 {
3838 {
3839 .eraseblocks = {
3840 {8 * 1024, 8},
3841 {64 * 1024, 127},
3842 },
3843 .block_erase = block_erase_en29lv640b,
3844 }, {
3845 .eraseblocks = { {8 * 1024 * 1024, 1} },
3846 .block_erase = block_erase_chip_en29lv640b,
3847 },
3848 },
3849 .write = write_en29lv640b,
3850 .read = read_memmapped,
3851 .voltage = {2700, 3600},
3852 },
3853
3854 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003855 .vendor = "Fujitsu",
3856 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003857 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003858 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003859 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003860 .total_size = 512,
3861 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003863 .tested = TEST_UNTESTED,
3864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003865 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003866 .block_erasers =
3867 {
3868 {
3869 .eraseblocks = {
3870 {16 * 1024, 1},
3871 {8 * 1024, 2},
3872 {32 * 1024, 1},
3873 {64 * 1024, 7},
3874 },
Sean Nelson35727f72010-01-28 23:55:12 +00003875 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003876 }, {
3877 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003878 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003879 },
3880 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003881 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003883 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003884 },
3885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003886 {
3887 .vendor = "Fujitsu",
3888 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003889 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003890 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003891 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003892 .total_size = 512,
3893 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003894 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003895 .tested = TEST_UNTESTED,
3896 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003897 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003898 .block_erasers =
3899 {
3900 {
3901 .eraseblocks = {
3902 {64 * 1024, 7},
3903 {32 * 1024, 1},
3904 {8 * 1024, 2},
3905 {16 * 1024, 1},
3906 },
Sean Nelson35727f72010-01-28 23:55:12 +00003907 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003908 }, {
3909 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003910 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003911 },
3912 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003913 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003915 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003916 },
3917
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003918 {
Sean Nelson35727f72010-01-28 23:55:12 +00003919 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003920 .vendor = "Fujitsu",
3921 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003922 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003923 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003924 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003925 .total_size = 512,
3926 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003927 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003928 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003929 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003930 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003931 .block_erasers =
3932 {
3933 {
3934 .eraseblocks = {
3935 {16 * 1024, 1},
3936 {8 * 1024, 2},
3937 {32 * 1024, 1},
3938 {64 * 1024, 7},
3939 },
3940 .block_erase = block_erase_m29f400bt,
3941 }, {
3942 .eraseblocks = { {512 * 1024, 1} },
3943 .block_erase = block_erase_chip_m29f400bt,
3944 },
3945 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003946 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003947 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003948 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003949 },
3950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003951 {
3952 .vendor = "Fujitsu",
3953 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003954 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003955 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003956 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003957 .total_size = 512,
3958 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003959 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003960 .tested = TEST_UNTESTED,
3961 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003962 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003963 .block_erasers =
3964 {
3965 {
3966 .eraseblocks = {
3967 {64 * 1024, 7},
3968 {32 * 1024, 1},
3969 {8 * 1024, 2},
3970 {16 * 1024, 1},
3971 },
3972 .block_erase = block_erase_m29f400bt,
3973 }, {
3974 .eraseblocks = { {512 * 1024, 1} },
3975 .block_erase = block_erase_chip_m29f400bt,
3976 },
3977 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003978 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003979 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003980 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003981 },
3982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003983 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003984 .vendor = "GigaDevice",
3985 .name = "GD25Q20",
3986 .bustype = BUS_SPI,
3987 .manufacture_id = GIGADEVICE_ID,
3988 .model_id = GIGADEVICE_GD25Q20,
3989 .total_size = 256,
3990 .page_size = 256,
3991 .feature_bits = FEATURE_WRSR_WREN,
3992 .tested = TEST_UNTESTED,
3993 .probe = probe_spi_rdid,
3994 .probe_timing = TIMING_ZERO,
3995 .block_erasers =
3996 {
3997 {
3998 .eraseblocks = { {4 * 1024, 64} },
3999 .block_erase = spi_block_erase_20,
4000 }, {
4001 .eraseblocks = { {32 * 1024, 8} },
4002 .block_erase = spi_block_erase_52,
4003 }, {
4004 .eraseblocks = { {64 * 1024, 4} },
4005 .block_erase = spi_block_erase_d8,
4006 }, {
4007 .eraseblocks = { {256 * 1024, 1} },
4008 .block_erase = spi_block_erase_60,
4009 }, {
4010 .eraseblocks = { {256 * 1024, 1} },
4011 .block_erase = spi_block_erase_c7,
4012 }
4013 },
4014 .unlock = spi_disable_blockprotect,
4015 .write = spi_chip_write_256,
4016 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004017 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004018 },
4019
4020 {
4021 .vendor = "GigaDevice",
4022 .name = "GD25Q40",
4023 .bustype = BUS_SPI,
4024 .manufacture_id = GIGADEVICE_ID,
4025 .model_id = GIGADEVICE_GD25Q40,
4026 .total_size = 512,
4027 .page_size = 256,
4028 .feature_bits = FEATURE_WRSR_WREN,
4029 .tested = TEST_UNTESTED,
4030 .probe = probe_spi_rdid,
4031 .probe_timing = TIMING_ZERO,
4032 .block_erasers =
4033 {
4034 {
4035 .eraseblocks = { {4 * 1024, 128} },
4036 .block_erase = spi_block_erase_20,
4037 }, {
4038 .eraseblocks = { {32 * 1024, 16} },
4039 .block_erase = spi_block_erase_52,
4040 }, {
4041 .eraseblocks = { {64 * 1024, 8} },
4042 .block_erase = spi_block_erase_d8,
4043 }, {
4044 .eraseblocks = { {512 * 1024, 1} },
4045 .block_erase = spi_block_erase_60,
4046 }, {
4047 .eraseblocks = { {512 * 1024, 1} },
4048 .block_erase = spi_block_erase_c7,
4049 }
4050 },
4051 .unlock = spi_disable_blockprotect,
4052 .write = spi_chip_write_256,
4053 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004054 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004055 },
4056
4057 {
4058 .vendor = "GigaDevice",
4059 .name = "GD25Q80",
4060 .bustype = BUS_SPI,
4061 .manufacture_id = GIGADEVICE_ID,
4062 .model_id = GIGADEVICE_GD25Q80,
4063 .total_size = 1024,
4064 .page_size = 256,
4065 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4066 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4067 .tested = TEST_OK_PREW,
4068 .probe = probe_spi_rdid,
4069 .probe_timing = TIMING_ZERO,
4070 .block_erasers =
4071 {
4072 {
4073 .eraseblocks = { {4 * 1024, 256} },
4074 .block_erase = spi_block_erase_20,
4075 }, {
4076 .eraseblocks = { {32 * 1024, 32} },
4077 .block_erase = spi_block_erase_52,
4078 }, {
4079 .eraseblocks = { {64 * 1024, 16} },
4080 .block_erase = spi_block_erase_d8,
4081 }, {
4082 .eraseblocks = { {1024 * 1024, 1} },
4083 .block_erase = spi_block_erase_60,
4084 }, {
4085 .eraseblocks = { {1024 * 1024, 1} },
4086 .block_erase = spi_block_erase_c7,
4087 }
4088 },
4089 .unlock = spi_disable_blockprotect,
4090 .write = spi_chip_write_256,
4091 .read = spi_chip_read,
4092 .voltage = {2700, 3600},
4093 },
4094
4095 {
4096 .vendor = "GigaDevice",
4097 .name = "GD25Q16",
4098 .bustype = BUS_SPI,
4099 .manufacture_id = GIGADEVICE_ID,
4100 .model_id = GIGADEVICE_GD25Q16,
4101 .total_size = 2048,
4102 .page_size = 256,
4103 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4104 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4105 .tested = TEST_UNTESTED,
4106 .probe = probe_spi_rdid,
4107 .probe_timing = TIMING_ZERO,
4108 .block_erasers =
4109 {
4110 {
4111 .eraseblocks = { {4 * 1024, 512} },
4112 .block_erase = spi_block_erase_20,
4113 }, {
4114 .eraseblocks = { {32 * 1024, 64} },
4115 .block_erase = spi_block_erase_52,
4116 }, {
4117 .eraseblocks = { {64 * 1024, 32} },
4118 .block_erase = spi_block_erase_d8,
4119 }, {
4120 .eraseblocks = { {2 * 1024 * 1024, 1} },
4121 .block_erase = spi_block_erase_60,
4122 }, {
4123 .eraseblocks = { {2 * 1024 * 1024, 1} },
4124 .block_erase = spi_block_erase_c7,
4125 }
4126 },
4127 .unlock = spi_disable_blockprotect,
4128 .write = spi_chip_write_256,
4129 .read = spi_chip_read,
4130 .voltage = {2700, 3600},
4131 },
4132
4133 {
4134 .vendor = "GigaDevice",
4135 .name = "GD25Q32",
4136 .bustype = BUS_SPI,
4137 .manufacture_id = GIGADEVICE_ID,
4138 .model_id = GIGADEVICE_GD25Q32,
4139 .total_size = 4096,
4140 .page_size = 256,
4141 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4143 .tested = TEST_UNTESTED,
4144 .probe = probe_spi_rdid,
4145 .probe_timing = TIMING_ZERO,
4146 .block_erasers =
4147 {
4148 {
4149 .eraseblocks = { {4 * 1024, 1024} },
4150 .block_erase = spi_block_erase_20,
4151 }, {
4152 .eraseblocks = { {32 * 1024, 128} },
4153 .block_erase = spi_block_erase_52,
4154 }, {
4155 .eraseblocks = { {64 * 1024, 64} },
4156 .block_erase = spi_block_erase_d8,
4157 }, {
4158 .eraseblocks = { {4 * 1024 * 1024, 1} },
4159 .block_erase = spi_block_erase_60,
4160 }, {
4161 .eraseblocks = { {4 * 1024 * 1024, 1} },
4162 .block_erase = spi_block_erase_c7,
4163 }
4164 },
4165 .unlock = spi_disable_blockprotect,
4166 .write = spi_chip_write_256,
4167 .read = spi_chip_read,
4168 .voltage = {2700, 3600},
4169 },
4170
4171 {
4172 .vendor = "GigaDevice",
4173 .name = "GD25Q64",
4174 .bustype = BUS_SPI,
4175 .manufacture_id = GIGADEVICE_ID,
4176 .model_id = GIGADEVICE_GD25Q64,
4177 .total_size = 8192,
4178 .page_size = 256,
4179 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4180 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004181 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004182 .probe = probe_spi_rdid,
4183 .probe_timing = TIMING_ZERO,
4184 .block_erasers =
4185 {
4186 {
4187 .eraseblocks = { {4 * 1024, 2048} },
4188 .block_erase = spi_block_erase_20,
4189 }, {
4190 .eraseblocks = { {32 * 1024, 256} },
4191 .block_erase = spi_block_erase_52,
4192 }, {
4193 .eraseblocks = { {64 * 1024, 128} },
4194 .block_erase = spi_block_erase_d8,
4195 }, {
4196 .eraseblocks = { {8 * 1024 * 1024, 1} },
4197 .block_erase = spi_block_erase_60,
4198 }, {
4199 .eraseblocks = { {8 * 1024 * 1024, 1} },
4200 .block_erase = spi_block_erase_c7,
4201 }
4202 },
4203 .unlock = spi_disable_blockprotect,
4204 .write = spi_chip_write_256,
4205 .read = spi_chip_read,
4206 },
4207
4208 {
4209 .vendor = "GigaDevice",
4210 .name = "GD25Q128",
4211 .bustype = BUS_SPI,
4212 .manufacture_id = GIGADEVICE_ID,
4213 .model_id = GIGADEVICE_GD25Q128,
4214 .total_size = 16384,
4215 .page_size = 256,
4216 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4218 .tested = TEST_UNTESTED,
4219 .probe = probe_spi_rdid,
4220 .probe_timing = TIMING_ZERO,
4221 .block_erasers =
4222 {
4223 {
4224 .eraseblocks = { {4 * 1024, 4096} },
4225 .block_erase = spi_block_erase_20,
4226 }, {
4227 .eraseblocks = { {32 * 1024, 512} },
4228 .block_erase = spi_block_erase_52,
4229 }, {
4230 .eraseblocks = { {64 * 1024, 256} },
4231 .block_erase = spi_block_erase_d8,
4232 }, {
4233 .eraseblocks = { {16 * 1024 * 1024, 1} },
4234 .block_erase = spi_block_erase_60,
4235 }, {
4236 .eraseblocks = { {16 * 1024 * 1024, 1} },
4237 .block_erase = spi_block_erase_c7,
4238 }
4239 },
4240 .unlock = spi_disable_blockprotect,
4241 .write = spi_chip_write_256,
4242 .read = spi_chip_read,
4243 },
4244
4245 {
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004246 .vendor = "GigaDevice",
4247 .name = "GD25LQ32",
4248 .bustype = BUS_SPI,
4249 .manufacture_id = GIGADEVICE_ID,
4250 .model_id = GIGADEVICE_GD25LQ32,
4251 .total_size = 4096,
4252 .page_size = 256,
4253 .feature_bits = FEATURE_WRSR_WREN,
4254 .tested = TEST_OK_PREW,
4255 .probe = probe_spi_rdid,
4256 .probe_timing = TIMING_ZERO,
4257 .block_erasers =
4258 {
4259 {
4260 .eraseblocks = { {4 * 1024, 1024} },
4261 .block_erase = spi_block_erase_20,
4262 }, {
4263 .eraseblocks = { {32 * 1024, 128} },
4264 .block_erase = spi_block_erase_52,
4265 }, {
4266 .eraseblocks = { {64 * 1024, 64} },
4267 .block_erase = spi_block_erase_d8,
4268 }, {
4269 .eraseblocks = { {4 * 1024 * 1024, 1} },
4270 .block_erase = spi_block_erase_60,
4271 }, {
4272 .eraseblocks = { {4 * 1024 * 1024, 1} },
4273 .block_erase = spi_block_erase_c7,
4274 }
4275 },
4276 .unlock = spi_disable_blockprotect,
4277 .write = spi_chip_write_256,
4278 .read = spi_chip_read,
4279 .voltage = {1700, 1950},
4280 },
4281
4282 {
David Borgc96a8bd2010-06-21 16:12:22 +00004283 .vendor = "Hyundai",
4284 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004285 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004286 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004287 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004288 .total_size = 256,
4289 .page_size = 256 * 1024,
4290 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004291 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004292 .probe = probe_jedec,
4293 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4294 .block_erasers =
4295 {
4296 {
4297 .eraseblocks = {
4298 {64 * 1024, 3},
4299 {32 * 1024, 1},
4300 {8 * 1024, 2},
4301 {16 * 1024, 1},
4302 },
4303 .block_erase = erase_sector_jedec,
4304 }, {
4305 .eraseblocks = { {256 * 1024, 1} },
4306 .block_erase = erase_chip_block_jedec,
4307 },
4308 },
4309 .write = write_jedec_1,
4310 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004311 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004312 },
4313
4314 {
4315 .vendor = "Hyundai",
4316 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004317 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004318 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004319 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004320 .total_size = 256,
4321 .page_size = 256 * 1024,
4322 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4323 .tested = TEST_UNTESTED,
4324 .probe = probe_jedec,
4325 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4326 .block_erasers =
4327 {
4328 {
4329 .eraseblocks = {
4330 {16 * 1024, 1},
4331 {8 * 1024, 2},
4332 {32 * 1024, 1},
4333 {64 * 1024, 3},
4334 },
4335 .block_erase = erase_sector_jedec,
4336 }, {
4337 .eraseblocks = { {256 * 1024, 1} },
4338 .block_erase = erase_chip_block_jedec,
4339 },
4340 },
4341 .write = write_jedec_1,
4342 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004343 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004344 },
4345
4346 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004347 .vendor = "Hyundai",
4348 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004349 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004350 .manufacture_id = HYUNDAI_ID,
4351 .model_id = HYUNDAI_HY29F040A,
4352 .total_size = 512,
4353 .page_size = 64 * 1024,
4354 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4355 .tested = TEST_UNTESTED,
4356 .probe = probe_jedec,
4357 .probe_timing = TIMING_ZERO,
4358 .block_erasers =
4359 {
4360 {
4361 .eraseblocks = { {64 * 1024, 8} },
4362 .block_erase = erase_sector_jedec,
4363 }, {
4364 .eraseblocks = { {512 * 1024, 1} },
4365 .block_erase = erase_chip_block_jedec,
4366 },
4367 },
4368 .write = write_jedec_1,
4369 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004370 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004371 },
4372
4373 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004374 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004375 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004376 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004377 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004378 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004379 .total_size = 128,
4380 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004381 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004382 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004383 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004384 .block_erasers =
4385 {
4386 {
4387 .eraseblocks = {
4388 {8 * 1024, 1},
4389 {4 * 1024, 2},
4390 {112 * 1024, 1},
4391 },
Sean Nelson28accc22010-03-19 18:47:06 +00004392 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004393 },
4394 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004395 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004396 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004397 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004398 },
4399
4400 {
4401 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004402 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004403 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004404 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004405 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004406 .total_size = 128,
4407 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004408 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004409 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004410 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004411 .block_erasers =
4412 {
4413 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004414 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004415 {112 * 1024, 1},
4416 {4 * 1024, 2},
4417 {8 * 1024, 1},
4418 },
Sean Nelson28accc22010-03-19 18:47:06 +00004419 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004420 },
4421 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004422 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004423 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004424 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004425 },
4426
4427 {
4428 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004429 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004430 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004431 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004432 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004433 .total_size = 256,
4434 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004435 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004436 .probe = probe_82802ab,
4437 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4438 .block_erasers =
4439 {
4440 {
4441 .eraseblocks = {
4442 {128 * 1024, 1},
4443 {96 * 1024, 1},
4444 {8 * 1024, 2},
4445 {16 * 1024, 1},
4446 },
4447 .block_erase = erase_block_82802ab,
4448 },
4449 },
4450 .write = write_82802ab,
4451 .read = read_memmapped,
4452 },
4453
4454 {
4455 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004456 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004457 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004458 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004459 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004460 .total_size = 512,
4461 .page_size = 256,
4462 .tested = TEST_UNTESTED,
4463 .probe = probe_82802ab,
4464 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004465 .block_erasers =
4466 {
4467 {
4468 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004469 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004470 },
4471 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004472 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004473 .write = write_82802ab,
4474 .read = read_memmapped,
4475 },
4476
4477 {
4478 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004479 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004480 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004481 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004482 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004483 .total_size = 512,
4484 .page_size = 128 * 1024, /* maximal block size */
4485 .tested = TEST_UNTESTED,
4486 .probe = probe_82802ab,
4487 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4488 .block_erasers =
4489 {
4490 {
4491 .eraseblocks = {
4492 {16 * 1024, 1},
4493 {8 * 1024, 2},
4494 {96 * 1024, 1},
4495 {128 * 1024, 3},
4496 },
4497 .block_erase = erase_block_82802ab,
4498 },
4499 },
4500 .write = write_82802ab,
4501 .read = read_memmapped,
4502 },
4503
4504 {
4505 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004506 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004507 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004508 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004509 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004510 .total_size = 512,
4511 .page_size = 128 * 1024, /* maximal block size */
4512 .tested = TEST_UNTESTED,
4513 .probe = probe_82802ab,
4514 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4515 .block_erasers =
4516 {
4517 {
4518 .eraseblocks = {
4519 {128 * 1024, 3},
4520 {96 * 1024, 1},
4521 {8 * 1024, 2},
4522 {16 * 1024, 1},
4523 },
4524 .block_erase = erase_block_82802ab,
4525 },
4526 },
4527 .write = write_82802ab,
4528 .read = read_memmapped,
4529 },
4530
4531 {
4532 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004533 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004534 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004535 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004536 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004537 .total_size = 512,
4538 .page_size = 128 * 1024, /* maximal block size */
4539 .feature_bits = FEATURE_ADDR_SHIFTED,
4540 .tested = TEST_UNTESTED,
4541 .probe = probe_82802ab,
4542 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4543 .block_erasers =
4544 {
4545 {
4546 .eraseblocks = {
4547 {16 * 1024, 1},
4548 {8 * 1024, 2},
4549 {96 * 1024, 1},
4550 {128 * 1024, 3},
4551 },
4552 .block_erase = erase_block_82802ab,
4553 },
4554 },
4555 .write = write_82802ab,
4556 .read = read_memmapped,
4557 },
4558
4559 {
4560 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004561 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004562 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004563 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004564 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004565 .total_size = 512,
4566 .page_size = 128 * 1024, /* maximal block size */
4567 .feature_bits = FEATURE_ADDR_SHIFTED,
4568 .tested = TEST_UNTESTED,
4569 .probe = probe_82802ab,
4570 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4571 .block_erasers =
4572 {
4573 {
4574 .eraseblocks = {
4575 {128 * 1024, 3},
4576 {96 * 1024, 1},
4577 {8 * 1024, 2},
4578 {16 * 1024, 1},
4579 },
4580 .block_erase = erase_block_82802ab,
4581 },
4582 },
4583 .write = write_82802ab,
4584 .read = read_memmapped,
4585 },
4586
4587 {
4588 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004589 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004590 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004591 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004592 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004593 .total_size = 512,
4594 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004595 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004596 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004597 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004598 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004599 .block_erasers =
4600 {
4601 {
4602 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004603 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004604 },
4605 },
Sean Nelson28accc22010-03-19 18:47:06 +00004606 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004607 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004609 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004610 },
4611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004612 {
4613 .vendor = "Intel",
4614 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004615 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004616 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004617 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004618 .total_size = 1024,
4619 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004620 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004621 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004622 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004623 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004624 .block_erasers =
4625 {
4626 {
4627 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004628 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004629 },
4630 },
Sean Nelson28accc22010-03-19 18:47:06 +00004631 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004632 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004633 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004634 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004635 },
4636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004637 {
4638 .vendor = "Macronix",
4639 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004640 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004641 .manufacture_id = MACRONIX_ID,
4642 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004643 .total_size = 64,
4644 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004645 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004646 .tested = TEST_UNTESTED,
4647 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004648 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004649 .block_erasers =
4650 {
4651 {
4652 .eraseblocks = { {4 * 1024, 16} },
4653 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004654 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004655 .eraseblocks = { {64 * 1024, 1} },
4656 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004657 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004658 .eraseblocks = { {64 * 1024, 1} },
4659 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004660 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004661 .eraseblocks = { {64 * 1024, 1} },
4662 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004663 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004664 .eraseblocks = { {64 * 1024, 1} },
4665 .block_erase = spi_block_erase_c7,
4666 },
4667 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004668 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004669 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004670 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004671 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004672 },
4673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004674 {
4675 .vendor = "Macronix",
4676 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004677 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004678 .manufacture_id = MACRONIX_ID,
4679 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004680 .total_size = 128,
4681 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004682 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004683 .tested = TEST_UNTESTED,
4684 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004685 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004686 .block_erasers =
4687 {
4688 {
4689 .eraseblocks = { {4 * 1024, 32} },
4690 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004691 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004692 .eraseblocks = { {64 * 1024, 2} },
4693 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004694 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004695 .eraseblocks = { {128 * 1024, 1} },
4696 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004697 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004698 .eraseblocks = { {128 * 1024, 1} },
4699 .block_erase = spi_block_erase_c7,
4700 },
4701 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004702 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004703 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004704 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004705 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004706 },
4707
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004708 {
4709 .vendor = "Macronix",
4710 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004711 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004712 .manufacture_id = MACRONIX_ID,
4713 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004714 .total_size = 256,
4715 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004716 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004717 .tested = TEST_UNTESTED,
4718 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004719 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004720 .block_erasers =
4721 {
4722 {
4723 .eraseblocks = { {4 * 1024, 64} },
4724 .block_erase = spi_block_erase_20,
4725 }, {
4726 .eraseblocks = { {64 * 1024, 4} },
4727 .block_erase = spi_block_erase_52,
4728 }, {
4729 .eraseblocks = { {64 * 1024, 4} },
4730 .block_erase = spi_block_erase_d8,
4731 }, {
4732 .eraseblocks = { {256 * 1024, 1} },
4733 .block_erase = spi_block_erase_60,
4734 }, {
4735 .eraseblocks = { {256 * 1024, 1} },
4736 .block_erase = spi_block_erase_c7,
4737 },
4738 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004739 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004740 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004741 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004742 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004743 },
4744
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004745 {
4746 .vendor = "Macronix",
4747 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004748 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004749 .manufacture_id = MACRONIX_ID,
4750 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004751 .total_size = 512,
4752 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004753 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004754 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004755 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004756 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004757 .block_erasers =
4758 {
4759 {
4760 .eraseblocks = { {4 * 1024, 128} },
4761 .block_erase = spi_block_erase_20,
4762 }, {
4763 .eraseblocks = { {64 * 1024, 8} },
4764 .block_erase = spi_block_erase_52,
4765 }, {
4766 .eraseblocks = { {64 * 1024, 8} },
4767 .block_erase = spi_block_erase_d8,
4768 }, {
4769 .eraseblocks = { {512 * 1024, 1} },
4770 .block_erase = spi_block_erase_60,
4771 }, {
4772 .eraseblocks = { {512 * 1024, 1} },
4773 .block_erase = spi_block_erase_c7,
4774 },
4775 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004776 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004777 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004778 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004779 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004780 },
4781
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004782 {
4783 .vendor = "Macronix",
4784 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004785 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004786 .manufacture_id = MACRONIX_ID,
4787 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004788 .total_size = 1024,
4789 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004790 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004791 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004792 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004793 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004794 .block_erasers =
4795 {
4796 {
4797 .eraseblocks = { {4 * 1024, 256} },
4798 .block_erase = spi_block_erase_20,
4799 }, {
4800 .eraseblocks = { {64 * 1024, 16} },
4801 .block_erase = spi_block_erase_52,
4802 }, {
4803 .eraseblocks = { {64 * 1024, 16} },
4804 .block_erase = spi_block_erase_d8,
4805 }, {
4806 .eraseblocks = { {1024 * 1024, 1} },
4807 .block_erase = spi_block_erase_60,
4808 }, {
4809 .eraseblocks = { {1024 * 1024, 1} },
4810 .block_erase = spi_block_erase_c7,
4811 },
4812 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004813 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004814 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004815 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004816 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004817 },
4818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004819 {
4820 .vendor = "Macronix",
4821 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004822 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004823 .manufacture_id = MACRONIX_ID,
4824 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004825 .total_size = 2048,
4826 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004827 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004828 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004829 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004830 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004831 .block_erasers =
4832 {
4833 {
4834 .eraseblocks = { {4 * 1024, 512} },
4835 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4836 }, {
4837 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4838 .block_erase = spi_block_erase_52,
4839 }, {
4840 .eraseblocks = { {64 * 1024, 32} },
4841 .block_erase = spi_block_erase_d8,
4842 }, {
4843 .eraseblocks = { {2 * 1024 * 1024, 1} },
4844 .block_erase = spi_block_erase_60,
4845 }, {
4846 .eraseblocks = { {2 * 1024 * 1024, 1} },
4847 .block_erase = spi_block_erase_c7,
4848 },
4849 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004850 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004851 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004852 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004853 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004854 },
4855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004856 {
4857 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004858 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004859 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004860 .manufacture_id = MACRONIX_ID,
4861 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004862 .total_size = 2048,
4863 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004864 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004865 .tested = TEST_UNTESTED,
4866 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004867 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004868 .block_erasers =
4869 {
4870 {
4871 .eraseblocks = { {4 * 1024, 512} },
4872 .block_erase = spi_block_erase_20,
4873 }, {
4874 .eraseblocks = { {64 * 1024, 32} },
4875 .block_erase = spi_block_erase_d8,
4876 }, {
4877 .eraseblocks = { {2 * 1024 * 1024, 1} },
4878 .block_erase = spi_block_erase_60,
4879 }, {
4880 .eraseblocks = { {2 * 1024 * 1024, 1} },
4881 .block_erase = spi_block_erase_c7,
4882 }
4883 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004884 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004885 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004886 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004887 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004888 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004889
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004890 {
4891 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004892 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004893 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004894 .manufacture_id = MACRONIX_ID,
4895 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004896 .total_size = 2048,
4897 .page_size = 256,
4898 .feature_bits = FEATURE_WRSR_WREN,
4899 .tested = TEST_UNTESTED,
4900 .probe = probe_spi_rdid,
4901 .probe_timing = TIMING_ZERO,
4902 .block_erasers =
4903 {
4904 {
4905 .eraseblocks = { {4 * 1024, 512} },
4906 .block_erase = spi_block_erase_20,
4907 }, {
4908 .eraseblocks = { {64 * 1024, 32} },
4909 .block_erase = spi_block_erase_d8,
4910 }, {
4911 .eraseblocks = { {2 * 1024 * 1024, 1} },
4912 .block_erase = spi_block_erase_60,
4913 }, {
4914 .eraseblocks = { {2 * 1024 * 1024, 1} },
4915 .block_erase = spi_block_erase_c7,
4916 }
4917 },
4918 .unlock = spi_disable_blockprotect,
4919 .write = spi_chip_write_256,
4920 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004921 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004922 },
4923
4924 {
4925 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004926 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004927 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004928 .manufacture_id = MACRONIX_ID,
4929 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004930 .total_size = 4096,
4931 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004932 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004933 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004934 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004935 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004936 .block_erasers =
4937 {
4938 {
4939 .eraseblocks = { {4 * 1024, 1024} },
4940 .block_erase = spi_block_erase_20,
4941 }, {
4942 .eraseblocks = { {4 * 1024, 1024} },
4943 .block_erase = spi_block_erase_d8,
4944 }, {
4945 .eraseblocks = { {4 * 1024 * 1024, 1} },
4946 .block_erase = spi_block_erase_60,
4947 }, {
4948 .eraseblocks = { {4 * 1024 * 1024, 1} },
4949 .block_erase = spi_block_erase_c7,
4950 },
4951 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004952 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004953 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004954 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004955 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004956 },
4957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004958 {
4959 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004960 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004961 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004962 .manufacture_id = MACRONIX_ID,
4963 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004964 .total_size = 4096,
4965 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004966 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004967 .tested = TEST_UNTESTED,
4968 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004969 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004970 .block_erasers =
4971 {
4972 {
4973 .eraseblocks = { {4 * 1024, 1024} },
4974 .block_erase = spi_block_erase_20,
4975 }, {
4976 .eraseblocks = { {64 * 1024, 64} },
4977 .block_erase = spi_block_erase_d8,
4978 }, {
4979 .eraseblocks = { {4 * 1024 * 1024, 1} },
4980 .block_erase = spi_block_erase_60,
4981 }, {
4982 .eraseblocks = { {4 * 1024 * 1024, 1} },
4983 .block_erase = spi_block_erase_c7,
4984 }
4985 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004986 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004987 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004989 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004990 },
4991
4992 {
4993 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004994 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004995 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004996 .manufacture_id = MACRONIX_ID,
4997 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004998 .total_size = 8192,
4999 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005000 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005001 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005002 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005004 .block_erasers =
5005 {
5006 {
5007 .eraseblocks = { {64 * 1024, 128} },
5008 .block_erase = spi_block_erase_20,
5009 }, {
5010 .eraseblocks = { {64 * 1024, 128} },
5011 .block_erase = spi_block_erase_d8,
5012 }, {
5013 .eraseblocks = { {8 * 1024 * 1024, 1} },
5014 .block_erase = spi_block_erase_60,
5015 }, {
5016 .eraseblocks = { {8 * 1024 * 1024, 1} },
5017 .block_erase = spi_block_erase_c7,
5018 }
5019 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005020 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005021 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005022 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005023 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005024 },
5025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005026 {
5027 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005028 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005029 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005030 .manufacture_id = MACRONIX_ID,
5031 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005032 .total_size = 16384,
5033 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005034 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunereb582572012-09-21 12:52:50 +00005035 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005036 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005037 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005038 .block_erasers =
5039 {
5040 {
5041 .eraseblocks = { {4 * 1024, 4096} },
5042 .block_erase = spi_block_erase_20,
5043 }, {
5044 .eraseblocks = { {64 * 1024, 256} },
5045 .block_erase = spi_block_erase_d8,
5046 }, {
5047 .eraseblocks = { {16 * 1024 * 1024, 1} },
5048 .block_erase = spi_block_erase_60,
5049 }, {
5050 .eraseblocks = { {16 * 1024 * 1024, 1} },
5051 .block_erase = spi_block_erase_c7,
5052 }
5053 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005054 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005055 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005056 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005057 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005058 },
5059
5060 {
5061 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005062 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005063 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005064 .manufacture_id = MACRONIX_ID,
5065 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005066 .total_size = 128,
5067 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5069 .tested = TEST_UNTESTED,
5070 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005071 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005072 .block_erasers =
5073 {
5074 {
5075 .eraseblocks = {
5076 {8 * 1024, 1},
5077 {4 * 1024, 2},
5078 {8 * 1024, 2},
5079 {32 * 1024, 1},
5080 {64 * 1024, 1},
5081 },
Sean Nelson35727f72010-01-28 23:55:12 +00005082 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005083 }, {
5084 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005085 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005086 }
5087 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005088 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005090 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005091 },
5092
5093 {
5094 .vendor = "Macronix",
5095 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005096 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005097 .manufacture_id = MACRONIX_ID,
5098 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005099 .total_size = 128,
5100 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005101 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005102 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005103 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005104 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005105 .block_erasers =
5106 {
5107 {
5108 .eraseblocks = {
5109 {64 * 1024, 1},
5110 {32 * 1024, 1},
5111 {8 * 1024, 2},
5112 {4 * 1024, 2},
5113 {8 * 1024, 1},
5114 },
Sean Nelson35727f72010-01-28 23:55:12 +00005115 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005116 }, {
5117 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005118 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005119 }
5120 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005121 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005122 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005123 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005124 },
5125
5126 {
5127 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005128 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005129 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005130 .manufacture_id = MACRONIX_ID,
5131 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005132 .total_size = 256,
5133 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005134 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005135 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005136 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005137 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005138 .block_erasers =
5139 {
5140 {
5141 .eraseblocks = {
5142 {16 * 1024, 1},
5143 {8 * 1024, 2},
5144 {32 * 1024, 1},
5145 {64 * 1024, 3},
5146 },
Sean Nelson35727f72010-01-28 23:55:12 +00005147 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005148 }, {
5149 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005150 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005151 },
5152 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005153 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005155 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005156 },
5157
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005158 {
5159 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005160 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005161 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005162 .manufacture_id = MACRONIX_ID,
5163 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005164 .total_size = 256,
5165 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005166 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005167 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005168 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005169 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005170 .block_erasers =
5171 {
5172 {
5173 .eraseblocks = {
5174 {64 * 1024, 3},
5175 {32 * 1024, 1},
5176 {8 * 1024, 2},
5177 {16 * 1024, 1},
5178 },
Sean Nelson35727f72010-01-28 23:55:12 +00005179 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005180 }, {
5181 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005182 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005183 },
5184 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005187 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005188 },
5189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005190 {
5191 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005192 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005193 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005194 .manufacture_id = MACRONIX_ID,
5195 .model_id = MACRONIX_MX29F040,
5196 .total_size = 512,
5197 .page_size = 64 * 1024,
5198 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5199 .tested = TEST_UNTESTED,
5200 .probe = probe_jedec,
5201 .probe_timing = TIMING_ZERO,
5202 .block_erasers =
5203 {
5204 {
5205 .eraseblocks = { {64 * 1024, 8} },
5206 .block_erase = erase_sector_jedec,
5207 }, {
5208 .eraseblocks = { {512 * 1024, 1} },
5209 .block_erase = erase_chip_block_jedec,
5210 },
5211 },
5212 .write = write_jedec_1,
5213 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005214 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005215 },
5216
5217 {
5218 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005219 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005220 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005221 .manufacture_id = MACRONIX_ID,
5222 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005223 .total_size = 512,
5224 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005225 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5226 .tested = TEST_UNTESTED,
5227 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005228 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005229 .block_erasers =
5230 {
5231 {
5232 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005233 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005234 }, {
5235 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005236 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005237 },
5238 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005239 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005240 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005241 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005242 },
5243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005244 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005245 .vendor = "MoselVitelic",
5246 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005247 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005248 .manufacture_id = SYNCMOS_MVC_ID,
5249 .model_id = MVC_V29C51000B,
5250 .total_size = 64,
5251 .page_size = 512,
5252 .feature_bits = FEATURE_EITHER_RESET,
5253 .tested = TEST_UNTESTED,
5254 .probe = probe_jedec,
5255 .probe_timing = TIMING_ZERO,
5256 .block_erasers =
5257 {
5258 {
5259 .eraseblocks = { {512, 128} },
5260 .block_erase = erase_sector_jedec,
5261 }, {
5262 .eraseblocks = { {64 * 1024, 1} },
5263 .block_erase = erase_chip_block_jedec,
5264 },
5265 },
5266 .write = write_jedec_1,
5267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005268 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005269 },
5270
5271 {
5272 .vendor = "MoselVitelic",
5273 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005274 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005275 .manufacture_id = SYNCMOS_MVC_ID,
5276 .model_id = MVC_V29C51000T,
5277 .total_size = 64,
5278 .page_size = 512,
5279 .feature_bits = FEATURE_EITHER_RESET,
5280 .tested = TEST_UNTESTED,
5281 .probe = probe_jedec,
5282 .probe_timing = TIMING_ZERO,
5283 .block_erasers =
5284 {
5285 {
5286 .eraseblocks = { {512, 128} },
5287 .block_erase = erase_sector_jedec,
5288 }, {
5289 .eraseblocks = { {64 * 1024, 1} },
5290 .block_erase = erase_chip_block_jedec,
5291 },
5292 },
5293 .write = write_jedec_1,
5294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005295 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005296 },
5297
5298 {
5299 .vendor = "MoselVitelic",
5300 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005301 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005302 .manufacture_id = SYNCMOS_MVC_ID,
5303 .model_id = MVC_V29C51400B,
5304 .total_size = 512,
5305 .page_size = 1024,
5306 .feature_bits = FEATURE_EITHER_RESET,
5307 .tested = TEST_UNTESTED,
5308 .probe = probe_jedec,
5309 .probe_timing = TIMING_ZERO,
5310 .block_erasers =
5311 {
5312 {
5313 .eraseblocks = { {1024, 512} },
5314 .block_erase = erase_sector_jedec,
5315 }, {
5316 .eraseblocks = { {512 * 1024, 1} },
5317 .block_erase = erase_chip_block_jedec,
5318 },
5319 },
5320 .write = write_jedec_1,
5321 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005322 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005323 },
5324
5325 {
5326 .vendor = "MoselVitelic",
5327 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005328 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005329 .manufacture_id = SYNCMOS_MVC_ID,
5330 .model_id = MVC_V29C51400T,
5331 .total_size = 512,
5332 .page_size = 1024,
5333 .feature_bits = FEATURE_EITHER_RESET,
5334 .tested = TEST_UNTESTED,
5335 .probe = probe_jedec,
5336 .probe_timing = TIMING_ZERO,
5337 .block_erasers =
5338 {
5339 {
5340 .eraseblocks = { {1024, 512} },
5341 .block_erase = erase_sector_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 = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005350 },
5351
5352 {
5353 .vendor = "MoselVitelic",
5354 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005355 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005356 .manufacture_id = SYNCMOS_MVC_ID,
5357 .model_id = MVC_V29LC51000,
5358 .total_size = 64,
5359 .page_size = 512,
5360 .feature_bits = FEATURE_EITHER_RESET,
5361 .tested = TEST_UNTESTED,
5362 .probe = probe_jedec,
5363 .probe_timing = TIMING_ZERO,
5364 .block_erasers =
5365 {
5366 {
5367 .eraseblocks = { {512, 128} },
5368 .block_erase = erase_sector_jedec,
5369 }, {
5370 .eraseblocks = { {64 * 1024, 1} },
5371 .block_erase = erase_chip_block_jedec,
5372 },
5373 },
5374 .write = write_jedec_1,
5375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005376 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005377 },
5378
5379 {
5380 .vendor = "MoselVitelic",
5381 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005382 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005383 .manufacture_id = SYNCMOS_MVC_ID,
5384 .model_id = MVC_V29LC51001,
5385 .total_size = 128,
5386 .page_size = 512,
5387 .feature_bits = FEATURE_EITHER_RESET,
5388 .tested = TEST_UNTESTED,
5389 .probe = probe_jedec,
5390 .probe_timing = TIMING_ZERO,
5391 .block_erasers =
5392 {
5393 {
5394 .eraseblocks = { {512, 256} },
5395 .block_erase = erase_sector_jedec,
5396 }, {
5397 .eraseblocks = { {128 * 1024, 1} },
5398 .block_erase = erase_chip_block_jedec,
5399 },
5400 },
5401 .write = write_jedec_1,
5402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005403 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005404 },
5405
5406 {
5407 .vendor = "MoselVitelic",
5408 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005409 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005410 .manufacture_id = SYNCMOS_MVC_ID,
5411 .model_id = MVC_V29LC51002,
5412 .total_size = 256,
5413 .page_size = 512,
5414 .feature_bits = FEATURE_EITHER_RESET,
5415 .tested = TEST_UNTESTED,
5416 .probe = probe_jedec,
5417 .probe_timing = TIMING_ZERO,
5418 .block_erasers =
5419 {
5420 {
5421 .eraseblocks = { {512, 512} },
5422 .block_erase = erase_sector_jedec,
5423 }, {
5424 .eraseblocks = { {256 * 1024, 1} },
5425 .block_erase = erase_chip_block_jedec,
5426 },
5427 },
5428 .write = write_jedec_1,
5429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005430 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005431 },
5432
5433 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .vendor = "Numonyx",
5435 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005436 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005437 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005438 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005439 .total_size = 128,
5440 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005441 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005442 .tested = TEST_UNTESTED,
5443 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005444 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005445 .block_erasers =
5446 {
5447 {
5448 .eraseblocks = { {4 * 1024, 32} },
5449 .block_erase = spi_block_erase_20,
5450 }, {
5451 .eraseblocks = { {64 * 1024, 2} },
5452 .block_erase = spi_block_erase_d8,
5453 }, {
5454 .eraseblocks = { {128 * 1024, 1} },
5455 .block_erase = spi_block_erase_c7,
5456 }
5457 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005458 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005459 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005460 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005461 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005462 },
5463
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005464 {
5465 .vendor = "Numonyx",
5466 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005467 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005468 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005469 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005470 .total_size = 256,
5471 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005472 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005473 .tested = TEST_UNTESTED,
5474 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005475 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005476 .block_erasers =
5477 {
5478 {
5479 .eraseblocks = { {4 * 1024, 64} },
5480 .block_erase = spi_block_erase_20,
5481 }, {
5482 .eraseblocks = { {64 * 1024, 4} },
5483 .block_erase = spi_block_erase_d8,
5484 }, {
5485 .eraseblocks = { {256 * 1024, 1} },
5486 .block_erase = spi_block_erase_c7,
5487 }
5488 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005489 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005490 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005491 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005492 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005493 },
5494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005495 {
5496 .vendor = "Numonyx",
5497 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005498 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005499 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005500 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005501 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005502 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005503 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005504 .tested = TEST_UNTESTED,
5505 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005506 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005507 .block_erasers =
5508 {
5509 {
5510 .eraseblocks = { {4 * 1024, 128} },
5511 .block_erase = spi_block_erase_20,
5512 }, {
5513 .eraseblocks = { {64 * 1024, 8} },
5514 .block_erase = spi_block_erase_d8,
5515 }, {
5516 .eraseblocks = { {512 * 1024, 1} },
5517 .block_erase = spi_block_erase_c7,
5518 }
5519 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005520 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005521 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005522 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005523 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005524 },
5525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005526 {
5527 .vendor = "Numonyx",
5528 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005529 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005530 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005531 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005532 .total_size = 1024,
5533 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005534 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005535 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005536 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005537 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005538 .block_erasers =
5539 {
5540 {
5541 .eraseblocks = { {4 * 1024, 256} },
5542 .block_erase = spi_block_erase_20,
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,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005553 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005555 },
5556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005557 {
5558 .vendor = "Numonyx",
5559 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005561 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005562 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005563 .total_size = 2048,
5564 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005565 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005566 .tested = TEST_UNTESTED,
5567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005568 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005569 .block_erasers =
5570 {
5571 {
5572 .eraseblocks = { {4 * 1024, 512} },
5573 .block_erase = spi_block_erase_20,
5574 }, {
5575 .eraseblocks = { {64 * 1024, 32} },
5576 .block_erase = spi_block_erase_d8,
5577 }, {
5578 .eraseblocks = { {2 * 1024 * 1024, 1} },
5579 .block_erase = spi_block_erase_c7,
5580 }
5581 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005582 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005583 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005584 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005585 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005586 },
5587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005588 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005589 .vendor = "Numonyx",
5590 .name = "N25Q064",
5591 .bustype = BUS_SPI,
5592 .manufacture_id = ST_ID,
5593 .model_id = ST_N25Q064,
5594 .total_size = 8192,
5595 .page_size = 256,
5596 .tested = TEST_OK_PREW,
5597 .probe = probe_spi_rdid,
5598 .probe_timing = TIMING_ZERO,
5599 .block_erasers =
5600 {
5601 {
5602 .eraseblocks = { {4 * 1024, 2048 } },
5603 .block_erase = spi_block_erase_20,
5604 }, {
5605 .eraseblocks = { {64 * 1024, 128} },
5606 .block_erase = spi_block_erase_d8,
5607 }, {
5608 .eraseblocks = { {8 * 1024 * 1024, 1} },
5609 .block_erase = spi_block_erase_c7,
5610 }
5611 },
5612 .unlock = spi_disable_blockprotect,
5613 .write = spi_chip_write_256,
5614 .read = spi_chip_read,
5615 },
5616
5617 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005618 .vendor = "PMC",
5619 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005620 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005621 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005622 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .total_size = 128,
5624 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005625 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005626 .tested = TEST_UNTESTED,
5627 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005628 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005629 .block_erasers =
5630 {
5631 {
5632 .eraseblocks = { {4 * 1024, 32} },
5633 .block_erase = spi_block_erase_d7,
5634 }, {
5635 .eraseblocks = { {32 * 1024, 4} },
5636 .block_erase = spi_block_erase_d8,
5637 }, {
5638 .eraseblocks = { {128 * 1024, 1} },
5639 .block_erase = spi_block_erase_c7,
5640 }
5641 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005642 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005643 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005644 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005645 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005646 },
5647
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005648 {
5649 .vendor = "PMC",
5650 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005651 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005652 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005653 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005654 .total_size = 2048,
5655 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005656 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005657 .tested = TEST_UNTESTED,
5658 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005659 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005660 .block_erasers =
5661 {
5662 {
5663 .eraseblocks = { {4 * 1024, 512} },
5664 .block_erase = spi_block_erase_d7,
5665 }, {
5666 .eraseblocks = { {4 * 1024, 512} },
5667 .block_erase = spi_block_erase_20,
5668 }, {
5669 .eraseblocks = { {64 * 1024, 32} },
5670 .block_erase = spi_block_erase_d8,
5671 }, {
5672 .eraseblocks = { {2 * 1024 * 1024, 1} },
5673 .block_erase = spi_block_erase_60,
5674 }, {
5675 .eraseblocks = { {2 * 1024 * 1024, 1} },
5676 .block_erase = spi_block_erase_c7,
5677 }
5678 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005679 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005680 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005681 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005682 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005683 },
5684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005685 {
5686 .vendor = "PMC",
5687 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005688 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005689 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005690 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005691 .total_size = 256,
5692 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005693 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005694 .tested = TEST_UNTESTED,
5695 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005696 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = { {4 * 1024, 64} },
5701 .block_erase = spi_block_erase_d7,
5702 }, {
5703 .eraseblocks = { {64 * 1024, 4} },
5704 .block_erase = spi_block_erase_d8,
5705 }, {
5706 .eraseblocks = { {256 * 1024, 1} },
5707 .block_erase = spi_block_erase_c7,
5708 }
5709 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005710 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005711 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005712 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005713 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005714 },
5715
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005716 {
5717 .vendor = "PMC",
5718 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005720 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005721 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005722 .total_size = 512,
5723 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00005725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005727 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005728 .block_erasers =
5729 {
5730 {
5731 .eraseblocks = { {4 * 1024, 128} },
5732 .block_erase = spi_block_erase_d7,
5733 }, {
5734 .eraseblocks = { {64 * 1024, 8} },
5735 .block_erase = spi_block_erase_d8,
5736 }, {
5737 .eraseblocks = { {512 * 1024, 1} },
5738 .block_erase = spi_block_erase_c7,
5739 }
5740 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005741 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005742 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005743 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005744 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005745 },
5746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005747 {
5748 .vendor = "PMC",
5749 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005750 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005751 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005752 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005753 .total_size = 1024,
5754 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005755 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005756 .tested = TEST_UNTESTED,
5757 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005758 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005759 .block_erasers =
5760 {
5761 {
5762 .eraseblocks = { {4 * 1024, 256} },
5763 .block_erase = spi_block_erase_d7,
5764 }, {
5765 .eraseblocks = { {4 * 1024, 256} },
5766 .block_erase = spi_block_erase_20,
5767 }, {
5768 .eraseblocks = { {64 * 1024, 16} },
5769 .block_erase = spi_block_erase_d8,
5770 }, {
5771 .eraseblocks = { {1024 * 1024, 1} },
5772 .block_erase = spi_block_erase_60,
5773 }, {
5774 .eraseblocks = { {1024 * 1024, 1} },
5775 .block_erase = spi_block_erase_c7,
5776 }
5777 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005778 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005779 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005780 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005781 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005782 },
5783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005784 {
5785 .vendor = "PMC",
5786 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005787 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005788 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005789 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 .total_size = 64,
5791 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005792 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005793 .tested = TEST_UNTESTED,
5794 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005795 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005796 .block_erasers =
5797 {
5798 {
5799 .eraseblocks = { {4 * 1024, 16} },
5800 .block_erase = spi_block_erase_d7,
5801 }, {
5802 .eraseblocks = { {32 * 1024, 2} },
5803 .block_erase = spi_block_erase_d8,
5804 }, {
5805 .eraseblocks = { {64 * 1024, 1} },
5806 .block_erase = spi_block_erase_c7,
5807 }
5808 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005809 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005810 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005811 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005812 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005813 },
5814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005815 {
5816 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005817 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005818 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005819 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005820 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005821 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005822 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005823 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005824 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005825 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005826 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005827 .block_erasers =
5828 {
5829 {
5830 .eraseblocks = {
5831 {128 * 1024, 1},
5832 {96 * 1024, 1},
5833 {8 * 1024, 2},
5834 {16 * 1024, 1},
5835 },
Sean Nelson35727f72010-01-28 23:55:12 +00005836 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005837 }, {
5838 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005839 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005840 },
5841 },
Sean Nelson35727f72010-01-28 23:55:12 +00005842 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005843 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005844 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005845 },
5846
5847 {
5848 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005849 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005850 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005851 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005852 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005853 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005854 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005855 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005856 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005857 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005858 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005859 .block_erasers =
5860 {
5861 {
5862 .eraseblocks = {
5863 {16 * 1024, 1},
5864 {8 * 1024, 2},
5865 {96 * 1024, 1},
5866 {128 * 1024, 1},
5867 },
Sean Nelson35727f72010-01-28 23:55:12 +00005868 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005869 }, {
5870 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005871 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005872 },
5873 },
Sean Nelson35727f72010-01-28 23:55:12 +00005874 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005876 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005877 },
5878
5879 {
5880 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005881 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005882 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005883 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005884 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005885 .total_size = 128,
5886 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005887 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005888 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005889 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005890 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005891 .block_erasers =
5892 {
5893 {
5894 .eraseblocks = { {4 * 1024, 32} },
5895 .block_erase = erase_sector_jedec,
5896 }, {
5897 .eraseblocks = { {64 * 1024, 2} },
5898 .block_erase = erase_block_jedec,
5899 }, {
5900 .eraseblocks = { {128 * 1024, 1} },
5901 .block_erase = erase_chip_block_jedec,
5902 }
5903 },
Sean Nelson35727f72010-01-28 23:55:12 +00005904 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005905 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005906 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005907 },
5908
5909 {
5910 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005911 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005912 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005913 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005914 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005915 .total_size = 256,
5916 .page_size = 4096,
5917 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5918 .tested = TEST_UNTESTED,
5919 .probe = probe_jedec,
5920 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5921 .block_erasers =
5922 {
5923 {
5924 .eraseblocks = { {4 * 1024, 64} },
5925 .block_erase = erase_sector_jedec,
5926 }, {
5927 .eraseblocks = { {64 * 1024, 4} },
5928 .block_erase = erase_block_jedec,
5929 }, {
5930 .eraseblocks = { {256 * 1024, 1} },
5931 .block_erase = erase_chip_block_jedec,
5932 }
5933 },
5934 .write = write_jedec_1,
5935 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005936 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005937 },
5938
5939 {
5940 .vendor = "PMC",
5941 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005942 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005943 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005944 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005945 .total_size = 512,
5946 .page_size = 4096,
5947 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005948 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005949 .probe = probe_jedec,
5950 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5951 .block_erasers =
5952 {
5953 {
5954 .eraseblocks = { {4 * 1024, 128} },
5955 .block_erase = erase_sector_jedec,
5956 }, {
5957 .eraseblocks = { {64 * 1024, 8} },
5958 .block_erase = erase_block_jedec,
5959 }, {
5960 .eraseblocks = { {512 * 1024, 1} },
5961 .block_erase = erase_chip_block_jedec,
5962 }
5963 },
5964 .write = write_jedec_1,
5965 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005966 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005967 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00005968
5969 {
5970 .vendor = "PMC",
5971 .name = "Pm39LV512",
5972 .bustype = BUS_PARALLEL,
5973 .manufacture_id = PMC_ID_NOPREFIX,
5974 .model_id = PMC_PM39LV512,
5975 .total_size = 64,
5976 .page_size = 4096,
5977 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5978 .tested = TEST_OK_PREW,
5979 .probe = probe_jedec,
5980 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5981 .block_erasers =
5982 {
5983 {
5984 .eraseblocks = { {4 * 1024, 16} },
5985 .block_erase = erase_sector_jedec,
5986 }, {
5987 .eraseblocks = { {64 * 1024, 1} },
5988 .block_erase = erase_block_jedec,
5989 }, {
5990 .eraseblocks = { {64 * 1024, 1} },
5991 .block_erase = erase_chip_block_jedec,
5992 }
5993 },
5994 .write = write_jedec_1,
5995 .read = read_memmapped,
5996 .voltage = {2700, 3600},
5997 },
5998
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005999 {
6000 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006001 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006002 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006003 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006004 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006005 .total_size = 256,
6006 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006007 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00006008 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006009 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006010 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006011 .block_erasers =
6012 {
6013 {
6014 .eraseblocks = { {4 * 1024, 64} },
6015 .block_erase = erase_sector_jedec,
6016 }, {
6017 .eraseblocks = { {16 * 1024, 16} },
6018 .block_erase = erase_block_jedec,
6019 }, {
6020 .eraseblocks = { {256 * 1024, 1} },
6021 .block_erase = erase_chip_block_jedec,
6022 }
6023 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006024 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006025 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006026 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006027 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006028 },
6029
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006030 {
6031 .vendor = "PMC",
6032 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006033 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006034 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006035 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006036 .total_size = 512,
6037 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006038 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006039 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006040 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006041 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006042 .block_erasers =
6043 {
6044 {
6045 .eraseblocks = { {4 * 1024, 128} },
6046 .block_erase = erase_sector_jedec,
6047 }, {
6048 .eraseblocks = { {64 * 1024, 8} },
6049 .block_erase = erase_block_jedec,
6050 }, {
6051 .eraseblocks = { {512 * 1024, 1} },
6052 .block_erase = erase_chip_block_jedec,
6053 }
6054 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006055 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006056 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006057 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006058 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006059 },
6060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006061 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00006062 .vendor = "Sanyo",
6063 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006064 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006065 .manufacture_id = SANYO_ID,
6066 .model_id = SANYO_LE25FW203A,
6067 .total_size = 2048,
6068 .page_size = 256,
6069 .tested = TEST_UNTESTED,
6070 .probe = probe_spi_rdid,
6071 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006072 .block_erasers =
6073 {
6074 {
6075 .eraseblocks = { {64 * 1024, 32} },
6076 .block_erase = spi_block_erase_d8,
6077 }, {
6078 .eraseblocks = { {2 * 1024 * 1024, 1} },
6079 .block_erase = spi_block_erase_c7,
6080 }
6081 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006082 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006083 .write = spi_chip_write_256,
6084 .read = spi_chip_read,
6085 },
6086
6087 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006088 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00006089 .name = "LH28F008BJT-BTLZ1",
6090 .bustype = BUS_PARALLEL,
6091 .manufacture_id = SHARP_ID,
6092 .model_id = SHARP_LH28F008BJxxPB,
6093 .total_size = 1024,
6094 .page_size = 64 * 1024,
6095 .tested = TEST_OK_PREW,
6096 .probe = probe_82802ab,
6097 .probe_timing = TIMING_ZERO,
6098 .block_erasers =
6099 {
6100 {
6101 .eraseblocks = {
6102 {8 * 1024, 8},
6103 {64 * 1024, 15}
6104 },
6105 .block_erase = erase_block_82802ab,
6106 }, {
6107 .eraseblocks = { {1024 * 1024, 1} },
6108 .block_erase = erase_sector_49lfxxxc,
6109 }
6110 },
6111 .unlock = unlock_lh28f008bjt,
6112 .write = write_82802ab,
6113 .read = read_memmapped,
6114 .voltage = {2700, 3600},
6115 },
6116
6117 {
6118 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006119 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006120 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006121 .manufacture_id = SHARP_ID,
6122 .model_id = SHARP_LHF00L04,
6123 .total_size = 1024,
6124 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006125 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006126 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006127 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006128 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006129 .block_erasers =
6130 {
6131 {
6132 .eraseblocks = {
6133 {64 * 1024, 15},
6134 {8 * 1024, 8}
6135 },
Sean Nelson28accc22010-03-19 18:47:06 +00006136 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006137 }, {
6138 .eraseblocks = {
6139 {1024 * 1024, 1}
6140 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006141 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006142 },
6143 },
Sean Nelson28accc22010-03-19 18:47:06 +00006144 .unlock = unlock_82802ab,
6145 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006147 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006148 },
6149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 {
6151 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00006152 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006153 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006154 .manufacture_id = SPANSION_ID,
6155 .model_id = SPANSION_S25FL004A,
6156 .total_size = 512,
6157 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006158 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006159 .tested = TEST_UNTESTED,
6160 .probe = probe_spi_rdid,
6161 .probe_timing = TIMING_ZERO,
6162 .block_erasers =
6163 {
6164 {
6165 .eraseblocks = { {64 * 1024, 8} },
6166 .block_erase = spi_block_erase_d8,
6167 }, {
6168 .eraseblocks = { {512 * 1024, 1} },
6169 .block_erase = spi_block_erase_c7,
6170 }
6171 },
6172 .unlock = spi_disable_blockprotect,
6173 .write = spi_chip_write_256,
6174 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006175 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006176 },
6177
6178 {
6179 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00006180 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006181 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00006182 .manufacture_id = SPANSION_ID,
6183 .model_id = SPANSION_S25FL008A,
6184 .total_size = 1024,
6185 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006186 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006187 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00006188 .probe = probe_spi_rdid,
6189 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00006190 .block_erasers =
6191 {
6192 {
6193 .eraseblocks = { {64 * 1024, 16} },
6194 .block_erase = spi_block_erase_d8,
6195 }, {
6196 .eraseblocks = { {1024 * 1024, 1} },
6197 .block_erase = spi_block_erase_c7,
6198 }
6199 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006200 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006201 .write = spi_chip_write_256,
6202 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006203 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006204 },
6205
6206 {
6207 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006208 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006209 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006210 .manufacture_id = SPANSION_ID,
6211 .model_id = SPANSION_S25FL016A,
6212 .total_size = 2048,
6213 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006214 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006215 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006216 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006217 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006218 .block_erasers =
6219 {
6220 {
6221 .eraseblocks = { {64 * 1024, 32} },
6222 .block_erase = spi_block_erase_d8,
6223 }, {
6224 .eraseblocks = { {2 * 1024 * 1024, 1} },
6225 .block_erase = spi_block_erase_c7,
6226 }
6227 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006228 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006229 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006231 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006232 },
6233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006234 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006235 .vendor = "Spansion",
6236 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006237 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006238 .manufacture_id = SPANSION_ID,
6239 .model_id = SPANSION_S25FL032A,
6240 .total_size = 4096,
6241 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006242 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006243 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006244 .probe = probe_spi_rdid,
6245 .probe_timing = TIMING_ZERO,
6246 .block_erasers =
6247 {
6248 {
6249 .eraseblocks = { {64 * 1024, 64} },
6250 .block_erase = spi_block_erase_d8,
6251 }, {
6252 .eraseblocks = { {4 * 1024 * 1024, 1} },
6253 .block_erase = spi_block_erase_c7,
6254 }
6255 },
6256 .unlock = spi_disable_blockprotect,
6257 .write = spi_chip_write_256,
6258 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006259 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006260 },
6261
6262 {
6263 .vendor = "Spansion",
6264 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006265 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006266 .manufacture_id = SPANSION_ID,
6267 .model_id = SPANSION_S25FL064A,
6268 .total_size = 8192,
6269 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006270 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006271 .tested = TEST_OK_PREW,
6272 .probe = probe_spi_rdid,
6273 .probe_timing = TIMING_ZERO,
6274 .block_erasers =
6275 {
6276 {
6277 .eraseblocks = { {64 * 1024, 128} },
6278 .block_erase = spi_block_erase_d8,
6279 }, {
6280 .eraseblocks = { {8 * 1024 * 1024, 1} },
6281 .block_erase = spi_block_erase_c7,
6282 }
6283 },
6284 .unlock = spi_disable_blockprotect,
6285 .write = spi_chip_write_256,
6286 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006287 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006288 },
6289
6290 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006291 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006292 .name = "SST25LF040A",
6293 .bustype = BUS_SPI,
6294 .manufacture_id = SST_ID,
6295 .model_id = SST_SST25VF040_REMS,
6296 .total_size = 512,
6297 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006298 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006299 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006300 .probe = probe_spi_res2,
6301 .probe_timing = TIMING_ZERO,
6302 .block_erasers =
6303 {
6304 {
6305 .eraseblocks = { {4 * 1024, 128} },
6306 .block_erase = spi_block_erase_20,
6307 }, {
6308 .eraseblocks = { {32 * 1024, 16} },
6309 .block_erase = spi_block_erase_52,
6310 }, {
6311 .eraseblocks = { {512 * 1024, 1} },
6312 .block_erase = spi_block_erase_60,
6313 },
6314 },
6315 .unlock = spi_disable_blockprotect,
6316 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6317 .read = spi_chip_read,
6318 .voltage = {3000, 3600},
6319 },
6320
6321 {
6322 .vendor = "SST",
6323 .name = "SST25LF080A",
6324 .bustype = BUS_SPI,
6325 .manufacture_id = SST_ID,
6326 .model_id = SST_SST25VF080_REMS,
6327 .total_size = 1024,
6328 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006329 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006330 .tested = TEST_UNTESTED,
6331 .probe = probe_spi_res2,
6332 .probe_timing = TIMING_ZERO,
6333 .block_erasers =
6334 {
6335 {
6336 .eraseblocks = { {4 * 1024, 256} },
6337 .block_erase = spi_block_erase_20,
6338 }, {
6339 .eraseblocks = { {32 * 1024, 32} },
6340 .block_erase = spi_block_erase_52,
6341 }, {
6342 .eraseblocks = { {1024 * 1024, 1} },
6343 .block_erase = spi_block_erase_60,
6344 },
6345 },
6346 .unlock = spi_disable_blockprotect,
6347 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6348 .read = spi_chip_read,
6349 .voltage = {3000, 3600},
6350 },
6351
6352 {
6353 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006354 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006355 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006356 .manufacture_id = SST_ID,
6357 .model_id = SST_SST25VF010_REMS,
6358 .total_size = 128,
6359 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006360 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006361 .tested = TEST_OK_PREW,
6362 .probe = probe_spi_rems,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 32} },
6368 .block_erase = spi_block_erase_20,
6369 }, {
6370 .eraseblocks = { {32 * 1024, 4} },
6371 .block_erase = spi_block_erase_52,
6372 }, {
6373 .eraseblocks = { {128 * 1024, 1} },
6374 .block_erase = spi_block_erase_60,
6375 },
6376 },
6377 .unlock = spi_disable_blockprotect,
6378 .write = spi_chip_write_1,
6379 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006380 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006381 },
6382
6383 {
6384 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006385 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006386 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006387 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006388 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006389 .total_size = 2048,
6390 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006391 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006392 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006393 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006394 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006395 .block_erasers =
6396 {
6397 {
6398 .eraseblocks = { {4 * 1024, 512} },
6399 .block_erase = spi_block_erase_20,
6400 }, {
6401 .eraseblocks = { {32 * 1024, 64} },
6402 .block_erase = spi_block_erase_52,
6403 }, {
6404 .eraseblocks = { {64 * 1024, 32} },
6405 .block_erase = spi_block_erase_d8,
6406 }, {
6407 .eraseblocks = { {2 * 1024 * 1024, 1} },
6408 .block_erase = spi_block_erase_60,
6409 }, {
6410 .eraseblocks = { {2 * 1024 * 1024, 1} },
6411 .block_erase = spi_block_erase_c7,
6412 },
6413 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006414 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006415 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006416 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006417 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006418 },
6419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 {
6421 .vendor = "SST",
6422 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006423 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006424 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006425 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006426 .total_size = 4096,
6427 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006428 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006429 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006430 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006431 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006432 .block_erasers =
6433 {
6434 {
6435 .eraseblocks = { {4 * 1024, 1024} },
6436 .block_erase = spi_block_erase_20,
6437 }, {
6438 .eraseblocks = { {32 * 1024, 128} },
6439 .block_erase = spi_block_erase_52,
6440 }, {
6441 .eraseblocks = { {64 * 1024, 64} },
6442 .block_erase = spi_block_erase_d8,
6443 }, {
6444 .eraseblocks = { {4 * 1024 * 1024, 1} },
6445 .block_erase = spi_block_erase_60,
6446 }, {
6447 .eraseblocks = { {4 * 1024 * 1024, 1} },
6448 .block_erase = spi_block_erase_c7,
6449 },
6450 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006451 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006452 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006453 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006454 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006455 },
6456
6457 {
6458 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006459 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006460 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006461 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006462 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006463 .total_size = 8192,
6464 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006465 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006466 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006467 .probe = probe_spi_rdid,
6468 .probe_timing = TIMING_ZERO,
6469 .block_erasers =
6470 {
6471 {
6472 .eraseblocks = { {4 * 1024, 2048} },
6473 .block_erase = spi_block_erase_20,
6474 }, {
6475 .eraseblocks = { {32 * 1024, 256} },
6476 .block_erase = spi_block_erase_52,
6477 }, {
6478 .eraseblocks = { {64 * 1024, 128} },
6479 .block_erase = spi_block_erase_d8,
6480 }, {
6481 .eraseblocks = { {8 * 1024 * 1024, 1} },
6482 .block_erase = spi_block_erase_60,
6483 }, {
6484 .eraseblocks = { {8 * 1024 * 1024, 1} },
6485 .block_erase = spi_block_erase_c7,
6486 },
6487 },
6488 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006489 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006490 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006491 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006492 },
6493
6494 {
6495 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006496 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006497 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006498 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006499 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006500 .total_size = 512,
6501 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006502 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006503 .tested = TEST_OK_PR,
6504 .probe = probe_spi_rems,
6505 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006506 .block_erasers =
6507 {
6508 {
6509 .eraseblocks = { {4 * 1024, 128} },
6510 .block_erase = spi_block_erase_20,
6511 }, {
6512 .eraseblocks = { {32 * 1024, 16} },
6513 .block_erase = spi_block_erase_52,
6514 }, {
6515 .eraseblocks = { {512 * 1024, 1} },
6516 .block_erase = spi_block_erase_60,
6517 },
6518 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006519 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006520 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006521 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006522 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006523 },
6524
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006525 {
6526 .vendor = "SST",
6527 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006528 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006529 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006530 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006531 .total_size = 512,
6532 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006533 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006534 .tested = TEST_UNTESTED,
6535 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006536 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006537 .block_erasers =
6538 {
6539 {
6540 .eraseblocks = { {4 * 1024, 128} },
6541 .block_erase = spi_block_erase_20,
6542 }, {
6543 .eraseblocks = { {32 * 1024, 16} },
6544 .block_erase = spi_block_erase_52,
6545 }, {
6546 .eraseblocks = { {64 * 1024, 8} },
6547 .block_erase = spi_block_erase_d8,
6548 }, {
6549 .eraseblocks = { {512 * 1024, 1} },
6550 .block_erase = spi_block_erase_60,
6551 }, {
6552 .eraseblocks = { {512 * 1024, 1} },
6553 .block_erase = spi_block_erase_c7,
6554 },
6555 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006556 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006557 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006558 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006559 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006560 },
6561
6562 {
6563 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006564 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006565 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006566 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006567 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006568 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006569 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006570 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00006571 .tested = TEST_OK_PR,
6572 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006573 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006574 .block_erasers =
6575 {
6576 {
6577 .eraseblocks = { {4 * 1024, 128} },
6578 .block_erase = spi_block_erase_20,
6579 }, {
6580 .eraseblocks = { {32 * 1024, 16} },
6581 .block_erase = spi_block_erase_52,
6582 }, {
6583 .eraseblocks = { {64 * 1024, 8} },
6584 .block_erase = spi_block_erase_d8,
6585 }, {
6586 .eraseblocks = { {512 * 1024, 1} },
6587 .block_erase = spi_block_erase_60,
6588 }, {
6589 .eraseblocks = { {512 * 1024, 1} },
6590 .block_erase = spi_block_erase_c7,
6591 },
6592 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006593 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006594 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006595 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006596 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006597 },
6598
6599 {
6600 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006601 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006602 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006603 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006604 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006605 .total_size = 1024,
6606 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006607 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00006608 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006610 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006611 .block_erasers =
6612 {
6613 {
6614 .eraseblocks = { {4 * 1024, 256} },
6615 .block_erase = spi_block_erase_20,
6616 }, {
6617 .eraseblocks = { {32 * 1024, 32} },
6618 .block_erase = spi_block_erase_52,
6619 }, {
6620 .eraseblocks = { {64 * 1024, 16} },
6621 .block_erase = spi_block_erase_d8,
6622 }, {
6623 .eraseblocks = { {1024 * 1024, 1} },
6624 .block_erase = spi_block_erase_60,
6625 }, {
6626 .eraseblocks = { {1024 * 1024, 1} },
6627 .block_erase = spi_block_erase_c7,
6628 },
6629 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006630 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006631 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006632 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006633 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006634 },
6635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006636 {
6637 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00006638 .name = "SST25WF512",
6639 .bustype = BUS_SPI,
6640 .manufacture_id = SST_ID,
6641 .model_id = SST_SST25WF512,
6642 .total_size = 64,
6643 .page_size = 256,
6644 .feature_bits = FEATURE_WRSR_EITHER,
6645 .tested = TEST_UNTESTED,
6646 .probe = probe_spi_rdid,
6647 .probe_timing = TIMING_ZERO,
6648 .block_erasers =
6649 {
6650 {
6651 .eraseblocks = { {4 * 1024, 16} },
6652 .block_erase = spi_block_erase_20,
6653 }, {
6654 .eraseblocks = { {32 * 1024, 2} },
6655 .block_erase = spi_block_erase_52,
6656 }, {
6657 .eraseblocks = { {1024 * 64, 1} },
6658 .block_erase = spi_block_erase_60,
6659 }, {
6660 .eraseblocks = { {1024 * 64, 1} },
6661 .block_erase = spi_block_erase_c7,
6662 },
6663 },
6664 .unlock = spi_disable_blockprotect,
6665 .write = spi_aai_write,
6666 .read = spi_chip_read, /* Fast read (0x0B) supported */
6667 .voltage = {1650, 1950},
6668 },
6669
6670 {
6671 .vendor = "SST",
6672 .name = "SST25WF010",
6673 .bustype = BUS_SPI,
6674 .manufacture_id = SST_ID,
6675 .model_id = SST_SST25WF010,
6676 .total_size = 128,
6677 .page_size = 256,
6678 .feature_bits = FEATURE_WRSR_EITHER,
6679 .tested = TEST_UNTESTED,
6680 .probe = probe_spi_rdid,
6681 .probe_timing = TIMING_ZERO,
6682 .block_erasers =
6683 {
6684 {
6685 .eraseblocks = { {4 * 1024, 32} },
6686 .block_erase = spi_block_erase_20,
6687 }, {
6688 .eraseblocks = { {32 * 1024, 4} },
6689 .block_erase = spi_block_erase_52,
6690 }, {
6691 .eraseblocks = { {1024 * 128, 1} },
6692 .block_erase = spi_block_erase_60,
6693 }, {
6694 .eraseblocks = { {1024 * 128, 1} },
6695 .block_erase = spi_block_erase_c7,
6696 },
6697 },
6698 .unlock = spi_disable_blockprotect,
6699 .write = spi_aai_write,
6700 .read = spi_chip_read, /* Fast read (0x0B) supported */
6701 .voltage = {1650, 1950},
6702 },
6703
6704 {
6705 .vendor = "SST",
6706 .name = "SST25WF020",
6707 .bustype = BUS_SPI,
6708 .manufacture_id = SST_ID,
6709 .model_id = SST_SST25WF020,
6710 .total_size = 256,
6711 .page_size = 256,
6712 .feature_bits = FEATURE_WRSR_EITHER,
6713 .tested = TEST_UNTESTED,
6714 .probe = probe_spi_rdid,
6715 .probe_timing = TIMING_ZERO,
6716 .block_erasers =
6717 {
6718 {
6719 .eraseblocks = { {4 * 1024, 64} },
6720 .block_erase = spi_block_erase_20,
6721 }, {
6722 .eraseblocks = { {32 * 1024, 8} },
6723 .block_erase = spi_block_erase_52,
6724 }, {
6725 .eraseblocks = { {64 * 1024, 4} },
6726 .block_erase = spi_block_erase_d8,
6727 }, {
6728 .eraseblocks = { {1024 * 256, 1} },
6729 .block_erase = spi_block_erase_60,
6730 }, {
6731 .eraseblocks = { {1024 * 256, 1} },
6732 .block_erase = spi_block_erase_c7,
6733 },
6734 },
6735 .unlock = spi_disable_blockprotect,
6736 .write = spi_aai_write,
6737 .read = spi_chip_read, /* Fast read (0x0B) supported */
6738 .voltage = {1650, 1950},
6739 },
6740
6741 {
6742 .vendor = "SST",
6743 .name = "SST25WF040",
6744 .bustype = BUS_SPI,
6745 .manufacture_id = SST_ID,
6746 .model_id = SST_SST25WF040,
6747 .total_size = 512,
6748 .page_size = 256,
6749 .feature_bits = FEATURE_WRSR_EITHER,
6750 .tested = TEST_UNTESTED,
6751 .probe = probe_spi_rdid,
6752 .probe_timing = TIMING_ZERO,
6753 .block_erasers =
6754 {
6755 {
6756 .eraseblocks = { {4 * 1024, 128} },
6757 .block_erase = spi_block_erase_20,
6758 }, {
6759 .eraseblocks = { {32 * 1024, 16} },
6760 .block_erase = spi_block_erase_52,
6761 }, {
6762 .eraseblocks = { {64 * 1024, 8} },
6763 .block_erase = spi_block_erase_d8,
6764 }, {
6765 .eraseblocks = { {1024 * 512, 1} },
6766 .block_erase = spi_block_erase_60,
6767 }, {
6768 .eraseblocks = { {1024 * 512, 1} },
6769 .block_erase = spi_block_erase_c7,
6770 },
6771 },
6772 .unlock = spi_disable_blockprotect,
6773 .write = spi_aai_write,
6774 .read = spi_chip_read, /* Fast read (0x0B) supported */
6775 .voltage = {1650, 1950},
6776 },
6777
6778 {
6779 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006780 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006781 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006782 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006783 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006784 .total_size = 512,
6785 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006786 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006787 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006788 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006789 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006790 .block_erasers =
6791 {
6792 {
6793 .eraseblocks = { {128, 4096} },
6794 .block_erase = erase_sector_28sf040,
6795 }, {
6796 .eraseblocks = { {512 * 1024, 1} },
6797 .block_erase = erase_chip_28sf040,
6798 }
6799 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006800 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006801 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006803 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006804 },
6805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006806 {
6807 .vendor = "SST",
6808 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006810 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006811 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006812 .total_size = 128,
6813 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006814 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006815 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006816 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006817 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006818 .block_erasers =
6819 {
6820 {
6821 .eraseblocks = { {128 * 1024, 1} },
6822 .block_erase = erase_chip_block_jedec,
6823 }
6824 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006825 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006827 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006828 },
6829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006830 {
6831 .vendor = "SST",
6832 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006834 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006835 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006836 .total_size = 128,
6837 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006838 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006839 .tested = TEST_UNTESTED,
6840 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006841 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006842 .block_erasers =
6843 {
6844 {
6845 .eraseblocks = { {128 * 1024, 1} },
6846 .block_erase = erase_chip_block_jedec,
6847 }
6848 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006849 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006851 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006852 },
6853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006854 {
6855 .vendor = "SST",
6856 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006857 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006858 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006859 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006860 .total_size = 256,
6861 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006862 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006863 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006865 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006866 .block_erasers =
6867 {
6868 {
6869 .eraseblocks = { {256 * 1024, 1} },
6870 .block_erase = erase_chip_block_jedec,
6871 }
6872 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006873 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006875 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006876 },
6877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006878 {
6879 .vendor = "SST",
6880 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006881 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006882 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006883 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006884 .total_size = 256,
6885 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006886 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006887 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006888 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006889 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006890 .block_erasers =
6891 {
6892 {
6893 .eraseblocks = { {256 * 1024, 1} },
6894 .block_erase = erase_chip_block_jedec,
6895 }
6896 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006897 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006898 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006899 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006900 },
6901
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006902 {
6903 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006904 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006905 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006906 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006907 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006908 .total_size = 64,
6909 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006910 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006911 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006912 .probe = probe_jedec,
6913 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006914 .block_erasers =
6915 {
6916 {
6917 .eraseblocks = { {4 * 1024, 16} },
6918 .block_erase = erase_sector_jedec,
6919 }, {
6920 .eraseblocks = { {64 * 1024, 1} },
6921 .block_erase = erase_chip_block_jedec,
6922 }
6923 },
Sean Nelson35727f72010-01-28 23:55:12 +00006924 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006925 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006926 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006927 },
6928
6929 {
6930 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006931 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006932 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006933 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006934 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006935 .total_size = 128,
6936 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006937 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006938 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006939 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006940 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006941 .block_erasers =
6942 {
6943 {
6944 .eraseblocks = { {4 * 1024, 32} },
6945 .block_erase = erase_sector_jedec,
6946 }, {
6947 .eraseblocks = { {128 * 1024, 1} },
6948 .block_erase = erase_chip_block_jedec,
6949 }
6950 },
Sean Nelson35727f72010-01-28 23:55:12 +00006951 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006953 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006954 },
6955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006956 {
6957 .vendor = "SST",
6958 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006959 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006960 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006961 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006962 .total_size = 256,
6963 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006964 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006965 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006966 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006967 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006968 .block_erasers =
6969 {
6970 {
6971 .eraseblocks = { {4 * 1024, 64} },
6972 .block_erase = erase_sector_jedec,
6973 }, {
6974 .eraseblocks = { {256 * 1024, 1} },
6975 .block_erase = erase_chip_block_jedec,
6976 }
6977 },
Sean Nelson35727f72010-01-28 23:55:12 +00006978 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006980 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006981 },
6982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006983 {
6984 .vendor = "SST",
6985 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006986 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006987 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006988 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006989 .total_size = 512,
6990 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006991 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006992 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006993 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006994 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006995 .block_erasers =
6996 {
6997 {
6998 .eraseblocks = { {4 * 1024, 128} },
6999 .block_erase = erase_sector_jedec,
7000 }, {
7001 .eraseblocks = { {512 * 1024, 1} },
7002 .block_erase = erase_chip_block_jedec,
7003 }
7004 },
Sean Nelson35727f72010-01-28 23:55:12 +00007005 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007006 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007007 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007008 },
7009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007010 {
7011 .vendor = "SST",
7012 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007013 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007014 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007015 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007016 .total_size = 64,
7017 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007018 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007019 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007020 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007021 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007022 .block_erasers =
7023 {
7024 {
7025 .eraseblocks = { {4 * 1024, 16} },
7026 .block_erase = erase_sector_jedec,
7027 }, {
7028 .eraseblocks = { {64 * 1024, 1} },
7029 .block_erase = erase_chip_block_jedec,
7030 }
7031 },
Sean Nelson35727f72010-01-28 23:55:12 +00007032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007034 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007035 },
7036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 {
7038 .vendor = "SST",
7039 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007040 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007041 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007042 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007043 .total_size = 128,
7044 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007045 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007046 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007047 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007048 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007049 .block_erasers =
7050 {
7051 {
7052 .eraseblocks = { {4 * 1024, 32} },
7053 .block_erase = erase_sector_jedec,
7054 }, {
7055 .eraseblocks = { {128 * 1024, 1} },
7056 .block_erase = erase_chip_block_jedec,
7057 }
7058 },
Sean Nelson35727f72010-01-28 23:55:12 +00007059 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007060 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007061 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007062 },
7063
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007064 {
7065 .vendor = "SST",
7066 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007067 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007068 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007069 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007070 .total_size = 256,
7071 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007072 .feature_bits = FEATURE_EITHER_RESET,
7073 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007074 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007075 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007076 .block_erasers =
7077 {
7078 {
7079 .eraseblocks = { {4 * 1024, 64} },
7080 .block_erase = erase_sector_jedec,
7081 }, {
7082 .eraseblocks = { {256 * 1024, 1} },
7083 .block_erase = erase_chip_block_jedec,
7084 }
7085 },
Sean Nelson35727f72010-01-28 23:55:12 +00007086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007088 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007089 },
7090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007091 {
7092 .vendor = "SST",
7093 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007095 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007096 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007097 .total_size = 512,
7098 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007099 .feature_bits = FEATURE_EITHER_RESET,
7100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007101 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007102 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007103 .block_erasers =
7104 {
7105 {
7106 .eraseblocks = { {4 * 1024, 128} },
7107 .block_erase = erase_sector_jedec,
7108 }, {
7109 .eraseblocks = { {512 * 1024, 1} },
7110 .block_erase = erase_chip_block_jedec,
7111 }
7112 },
Sean Nelson35727f72010-01-28 23:55:12 +00007113 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007114 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007115 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00007116 },
FENG yu ningff692fb2008-12-08 18:15:10 +00007117
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007118 {
7119 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00007120 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007121 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007122 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007123 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00007124 .total_size = 1024,
7125 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007126 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00007127 .tested = TEST_UNTESTED,
7128 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007129 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007130 .block_erasers =
7131 {
7132 {
7133 .eraseblocks = { {4 * 1024, 256} },
7134 .block_erase = erase_sector_jedec,
7135 }, {
7136 .eraseblocks = { {64 * 1024, 16} },
7137 .block_erase = erase_block_jedec,
7138 }, {
7139 .eraseblocks = { {1024 * 1024, 1} },
7140 .block_erase = erase_chip_block_jedec,
7141 }
7142 },
Sean Nelson35727f72010-01-28 23:55:12 +00007143 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007145 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00007146 },
7147
7148 {
7149 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007150 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007151 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007152 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007153 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007154 .total_size = 256,
7155 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007156 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007157 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007158 .probe = probe_jedec,
7159 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007160 .block_erasers =
7161 {
7162 {
7163 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007164 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007165 }, {
7166 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007167 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007168 }, {
7169 .eraseblocks = { {256 * 1024, 1} },
7170 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7171 }
7172 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007173 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007174 .unlock = unlock_sst_fwhub,
7175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007177 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007178 },
7179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007180 {
7181 .vendor = "SST",
7182 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007183 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007184 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007185 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007186 .total_size = 384,
7187 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007188 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00007189 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007190 .probe = probe_jedec,
7191 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007192 .block_erasers =
7193 {
7194 {
7195 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007196 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007197 }, {
7198 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007199 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007200 }, {
7201 .eraseblocks = { {384 * 1024, 1} },
7202 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7203 }
7204 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007205 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007206 .unlock = unlock_sst_fwhub,
7207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007209 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007210 },
7211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007212 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007213 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
7214 * and is only honored for 64k block erase, but not 4k sector erase.
7215 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007216 .vendor = "SST",
7217 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007218 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007219 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007220 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007221 .total_size = 512,
7222 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007223 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007224 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007225 .probe = probe_jedec,
7226 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007227 .block_erasers =
7228 {
7229 {
7230 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007231 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007232 }, {
7233 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007234 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007235 }, {
7236 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007237 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007238 },
7239 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007240 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007241 .unlock = unlock_sst_fwhub,
7242 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007243 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007244 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007245 },
7246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007247 {
7248 .vendor = "SST",
7249 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007250 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007251 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007252 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007253 .total_size = 512,
7254 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007255 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007256 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007257 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007258 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007259 .block_erasers =
7260 {
7261 {
7262 .eraseblocks = { {4 * 1024, 128} },
7263 .block_erase = erase_sector_49lfxxxc,
7264 }, {
7265 .eraseblocks = {
7266 {64 * 1024, 7},
7267 {32 * 1024, 1},
7268 {8 * 1024, 2},
7269 {16 * 1024, 1},
7270 },
Sean Nelson69e58112010-03-23 17:10:28 +00007271 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007272 }
7273 },
Sean Nelson69e58112010-03-23 17:10:28 +00007274 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007275 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007276 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007277 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007278 },
7279
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007280 {
7281 .vendor = "SST",
7282 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007283 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007284 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007285 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007286 .total_size = 1024,
7287 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007288 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007289 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007290 .probe = probe_jedec,
7291 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007292 .block_erasers =
7293 {
7294 {
7295 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007296 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007297 }, {
7298 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007299 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007300 }, {
7301 .eraseblocks = { {1024 * 1024, 1} },
7302 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7303 }
7304 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007305 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007306 .unlock = unlock_sst_fwhub,
7307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007309 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007310 },
7311
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007312 {
7313 .vendor = "SST",
7314 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007315 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007316 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007317 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007318 .total_size = 1024,
7319 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007320 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007321 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007322 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007323 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007324 .block_erasers =
7325 {
7326 {
7327 .eraseblocks = { {4 * 1024, 256} },
7328 .block_erase = erase_sector_49lfxxxc,
7329 }, {
7330 .eraseblocks = {
7331 {64 * 1024, 15},
7332 {32 * 1024, 1},
7333 {8 * 1024, 2},
7334 {16 * 1024, 1},
7335 },
Sean Nelson69e58112010-03-23 17:10:28 +00007336 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007337 }
7338 },
Sean Nelson69e58112010-03-23 17:10:28 +00007339 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007340 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007341 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007342 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007343 },
7344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007345 {
7346 .vendor = "SST",
7347 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007348 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007349 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007350 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007351 .total_size = 2048,
7352 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007353 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007354 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007355 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007356 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007357 .block_erasers =
7358 {
7359 {
7360 .eraseblocks = { {4 * 1024, 512} },
7361 .block_erase = erase_sector_49lfxxxc,
7362 }, {
7363 .eraseblocks = {
7364 {64 * 1024, 31},
7365 {32 * 1024, 1},
7366 {8 * 1024, 2},
7367 {16 * 1024, 1},
7368 },
Sean Nelson69e58112010-03-23 17:10:28 +00007369 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007370 }
7371 },
Sean Nelson69e58112010-03-23 17:10:28 +00007372 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007373 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007374 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007375 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007376 },
7377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007378 {
7379 .vendor = "SST",
7380 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007381 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007382 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007383 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007384 .total_size = 256,
7385 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007386 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007387 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007388 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007389 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007390 .block_erasers =
7391 {
7392 {
7393 .eraseblocks = { {4 * 1024, 64} },
7394 .block_erase = erase_sector_jedec,
7395 }, {
7396 .eraseblocks = { {16 * 1024, 16} },
7397 .block_erase = erase_block_jedec,
7398 }, {
7399 .eraseblocks = { {256 * 1024, 1} },
7400 .block_erase = NULL,
7401 }
7402 },
Sean Nelson35727f72010-01-28 23:55:12 +00007403 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007404 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007405 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007406 },
7407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007408 {
7409 .vendor = "SST",
7410 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007411 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007412 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007413 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007414 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007415 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007416 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007417 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007418 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007419 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007420 .block_erasers =
7421 {
7422 {
7423 .eraseblocks = { {4 * 1024, 64} },
7424 .block_erase = erase_sector_jedec,
7425 }, {
7426 .eraseblocks = { {16 * 1024, 16} },
7427 .block_erase = erase_block_jedec,
7428 }, {
7429 .eraseblocks = { {256 * 1024, 1} },
7430 .block_erase = NULL,
7431 }
7432 },
Sean Nelson35727f72010-01-28 23:55:12 +00007433 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007434 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007435 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007436 },
7437
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007438 {
7439 .vendor = "SST",
7440 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007441 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007442 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007443 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007444 .total_size = 512,
7445 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007446 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007447 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007448 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007449 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007450 .block_erasers =
7451 {
7452 {
7453 .eraseblocks = { {4 * 1024, 128} },
7454 .block_erase = erase_sector_jedec,
7455 }, {
7456 .eraseblocks = { {64 * 1024, 8} },
7457 .block_erase = erase_block_jedec,
7458 }, {
7459 .eraseblocks = { {512 * 1024, 1} },
7460 .block_erase = NULL,
7461 }
7462 },
Sean Nelson35727f72010-01-28 23:55:12 +00007463 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007464 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007465 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007466 },
7467
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007468 {
7469 .vendor = "SST",
7470 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007471 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007472 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007473 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007474 .total_size = 512,
7475 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007476 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007477 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007478 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007479 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007480 .block_erasers =
7481 {
7482 {
7483 .eraseblocks = { {4 * 1024, 128} },
7484 .block_erase = erase_sector_jedec,
7485 }, {
7486 .eraseblocks = { {64 * 1024, 8} },
7487 .block_erase = erase_block_jedec,
7488 }, {
7489 .eraseblocks = { {512 * 1024, 1} },
7490 .block_erase = NULL,
7491 }
7492 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007493 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007494 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007496 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007497 },
7498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007499 {
7500 .vendor = "SST",
7501 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007502 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007503 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007504 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007505 .total_size = 1024,
7506 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007507 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007508 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007509 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007510 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007511 .block_erasers =
7512 {
7513 {
7514 .eraseblocks = { {4 * 1024, 256} },
7515 .block_erase = erase_sector_jedec,
7516 }, {
7517 .eraseblocks = { {64 * 1024, 16} },
7518 .block_erase = erase_block_jedec,
7519 }, {
7520 .eraseblocks = { {1024 * 1024, 1} },
7521 .block_erase = NULL,
7522 }
7523 },
Sean Nelson35727f72010-01-28 23:55:12 +00007524 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007525 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007526 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007527 },
7528
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007529 {
7530 .vendor = "SST",
7531 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007532 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007533 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007534 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007535 .total_size = 2048,
7536 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007537 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007538 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007539 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007540 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007541 .block_erasers =
7542 {
7543 {
7544 .eraseblocks = { {4 * 1024, 512} },
7545 .block_erase = erase_sector_49lfxxxc,
7546 }, {
7547 .eraseblocks = {
7548 {64 * 1024, 31},
7549 {32 * 1024, 1},
7550 {8 * 1024, 2},
7551 {16 * 1024, 1},
7552 },
Sean Nelson69e58112010-03-23 17:10:28 +00007553 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007554 }
7555 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007556 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007557 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007559 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007560 },
7561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007562 {
7563 .vendor = "ST",
7564 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007565 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007566 .manufacture_id = ST_ID,
7567 .model_id = ST_M25P05A,
7568 .total_size = 64,
7569 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007570 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007571 .tested = TEST_UNTESTED,
7572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007573 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007574 .block_erasers =
7575 {
7576 {
7577 .eraseblocks = { {32 * 1024, 2} },
7578 .block_erase = spi_block_erase_d8,
7579 }, {
7580 .eraseblocks = { {64 * 1024, 1} },
7581 .block_erase = spi_block_erase_c7,
7582 }
7583 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007584 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007585 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007586 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007587 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007588 },
7589
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007590 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7591 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007592 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007593 * only is successful if RDID does not work.
7594 */
7595 {
7596 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007597 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007598 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007599 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007600 .model_id = ST_M25P05_RES,
7601 .total_size = 64,
7602 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007603 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007604 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007605 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007606 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007607 .block_erasers =
7608 {
7609 {
7610 .eraseblocks = { {32 * 1024, 2} },
7611 .block_erase = spi_block_erase_d8,
7612 }, {
7613 .eraseblocks = { {64 * 1024, 1} },
7614 .block_erase = spi_block_erase_c7,
7615 }
7616 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007617 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007618 .write = spi_chip_write_1, /* 128 */
7619 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007620 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007621 },
7622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007623 {
7624 .vendor = "ST",
7625 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007626 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007627 .manufacture_id = ST_ID,
7628 .model_id = ST_M25P10A,
7629 .total_size = 128,
7630 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007631 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007632 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007634 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007635 .block_erasers =
7636 {
7637 {
7638 .eraseblocks = { {32 * 1024, 4} },
7639 .block_erase = spi_block_erase_d8,
7640 }, {
7641 .eraseblocks = { {128 * 1024, 1} },
7642 .block_erase = spi_block_erase_c7,
7643 }
7644 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007646 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007647 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007648 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007649 },
7650
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007651 /* The ST M25P10 has the same problem as the M25P05. */
7652 {
7653 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007654 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007655 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007656 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007657 .model_id = ST_M25P10_RES,
7658 .total_size = 128,
7659 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007660 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007661 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007662 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007663 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007664 .block_erasers =
7665 {
7666 {
7667 .eraseblocks = { {32 * 1024, 4} },
7668 .block_erase = spi_block_erase_d8,
7669 }, {
7670 .eraseblocks = { {128 * 1024, 1} },
7671 .block_erase = spi_block_erase_c7,
7672 }
7673 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007674 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007675 .write = spi_chip_write_1, /* 128 */
7676 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007678 },
7679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007680 {
7681 .vendor = "ST",
7682 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007684 .manufacture_id = ST_ID,
7685 .model_id = ST_M25P20,
7686 .total_size = 256,
7687 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007688 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007689 .tested = TEST_UNTESTED,
7690 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007691 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007692 .block_erasers =
7693 {
7694 {
7695 .eraseblocks = { {64 * 1024, 4} },
7696 .block_erase = spi_block_erase_d8,
7697 }, {
7698 .eraseblocks = { {256 * 1024, 1} },
7699 .block_erase = spi_block_erase_c7,
7700 }
7701 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007702 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007703 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007704 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007705 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007706 },
7707
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007708 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007709 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007710 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007711 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007712 .manufacture_id = ST_ID,
7713 .model_id = ST_M25P40,
7714 .total_size = 512,
7715 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007716 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007717 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007718 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007719 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007720 .block_erasers =
7721 {
7722 {
7723 .eraseblocks = { {64 * 1024, 8} },
7724 .block_erase = spi_block_erase_d8,
7725 }, {
7726 .eraseblocks = { {512 * 1024, 1} },
7727 .block_erase = spi_block_erase_c7,
7728 }
7729 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007730 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007731 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007732 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007733 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007734 },
7735
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007736 {
7737 .vendor = "ST",
7738 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007739 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007740 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007741 .model_id = ST_M25P40_RES,
7742 .total_size = 512,
7743 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007744 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007745 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007746 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007747 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007748 .block_erasers =
7749 {
7750 {
7751 .eraseblocks = { {64 * 1024, 8} },
7752 .block_erase = spi_block_erase_d8,
7753 }, {
7754 .eraseblocks = { {512 * 1024, 1} },
7755 .block_erase = spi_block_erase_c7,
7756 }
7757 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007758 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007759 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007760 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007761 },
7762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007763 {
7764 .vendor = "ST",
7765 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007766 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007767 .manufacture_id = ST_ID,
7768 .model_id = ST_M25P80,
7769 .total_size = 1024,
7770 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007771 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007772 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007773 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007774 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007775 .block_erasers =
7776 {
7777 {
7778 .eraseblocks = { {64 * 1024, 16} },
7779 .block_erase = spi_block_erase_d8,
7780 }, {
7781 .eraseblocks = { {1024 * 1024, 1} },
7782 .block_erase = spi_block_erase_c7,
7783 }
7784 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007786 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007788 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007789 },
7790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007791 {
7792 .vendor = "ST",
7793 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007794 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007795 .manufacture_id = ST_ID,
7796 .model_id = ST_M25P16,
7797 .total_size = 2048,
7798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007800 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007801 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007802 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007803 .block_erasers =
7804 {
7805 {
7806 .eraseblocks = { {64 * 1024, 32} },
7807 .block_erase = spi_block_erase_d8,
7808 }, {
7809 .eraseblocks = { {2 * 1024 * 1024, 1} },
7810 .block_erase = spi_block_erase_c7,
7811 }
7812 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007813 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007814 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007815 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007816 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007817 },
7818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007819 {
7820 .vendor = "ST",
7821 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007822 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007823 .manufacture_id = ST_ID,
7824 .model_id = ST_M25P32,
7825 .total_size = 4096,
7826 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007827 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007828 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007829 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007830 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007831 .block_erasers =
7832 {
7833 {
7834 .eraseblocks = { {64 * 1024, 64} },
7835 .block_erase = spi_block_erase_d8,
7836 }, {
7837 .eraseblocks = { {4 * 1024 * 1024, 1} },
7838 .block_erase = spi_block_erase_c7,
7839 }
7840 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007841 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007842 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007843 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007844 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007845 },
7846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007847 {
7848 .vendor = "ST",
7849 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007850 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007851 .manufacture_id = ST_ID,
7852 .model_id = ST_M25P64,
7853 .total_size = 8192,
7854 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007855 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007856 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007857 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007858 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007859 .block_erasers =
7860 {
7861 {
7862 .eraseblocks = { {64 * 1024, 128} },
7863 .block_erase = spi_block_erase_d8,
7864 }, {
7865 .eraseblocks = { {8 * 1024 * 1024, 1} },
7866 .block_erase = spi_block_erase_c7,
7867 }
7868 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007869 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007870 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007871 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007872 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007873 },
7874
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007875 {
7876 .vendor = "ST",
7877 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007878 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007879 .manufacture_id = ST_ID,
7880 .model_id = ST_M25P128,
7881 .total_size = 16384,
7882 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007883 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007884 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007885 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007886 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007887 .block_erasers =
7888 {
7889 {
7890 .eraseblocks = { {256 * 1024, 64} },
7891 .block_erase = spi_block_erase_d8,
7892 }, {
7893 .eraseblocks = { {16 * 1024 * 1024, 1} },
7894 .block_erase = spi_block_erase_c7,
7895 }
7896 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007897 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007898 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007899 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007900 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007901 },
7902
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007903 {
7904 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007905 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007906 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007907 .manufacture_id = ST_ID,
7908 .model_id = ST_M25PX16,
7909 .total_size = 2048,
7910 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007911 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00007912 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007913 .tested = TEST_OK_PREW,
7914 .probe = probe_spi_rdid,
7915 .probe_timing = TIMING_ZERO,
7916 .block_erasers =
7917 {
7918 {
7919 .eraseblocks = { { 4 * 1024, 512 } },
7920 .block_erase = spi_block_erase_20,
7921 }, {
7922 .eraseblocks = { {64 * 1024, 32} },
7923 .block_erase = spi_block_erase_d8,
7924 }, {
7925 .eraseblocks = { {2 * 1024 * 1024, 1} },
7926 .block_erase = spi_block_erase_c7,
7927 }
7928 },
7929 .unlock = spi_disable_blockprotect,
7930 .write = spi_chip_write_256,
7931 .read = spi_chip_read,
7932 },
7933
7934 {
7935 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007936 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007937 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007938 .manufacture_id = ST_ID,
7939 .model_id = ST_M25PX32,
7940 .total_size = 4096,
7941 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007942 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007943 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007944 .probe = probe_spi_rdid,
7945 .probe_timing = TIMING_ZERO,
7946 .block_erasers =
7947 {
7948 {
7949 .eraseblocks = { { 4 * 1024, 1024 } },
7950 .block_erase = spi_block_erase_20,
7951 }, {
7952 .eraseblocks = { {64 * 1024, 64} },
7953 .block_erase = spi_block_erase_d8,
7954 }, {
7955 .eraseblocks = { {4 * 1024 * 1024, 1} },
7956 .block_erase = spi_block_erase_c7,
7957 }
7958 },
7959 .unlock = spi_disable_blockprotect,
7960 .write = spi_chip_write_256,
7961 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007962 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007963 },
7964
7965 {
7966 .vendor = "ST",
7967 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007968 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007969 .manufacture_id = ST_ID,
7970 .model_id = ST_M25PX64,
7971 .total_size = 8192,
7972 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007973 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007974 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007975 .probe = probe_spi_rdid,
7976 .probe_timing = TIMING_ZERO,
7977 .block_erasers =
7978 {
7979 {
7980 .eraseblocks = { { 4 * 1024, 2048 } },
7981 .block_erase = spi_block_erase_20,
7982 }, {
7983 .eraseblocks = { {64 * 1024, 128} },
7984 .block_erase = spi_block_erase_d8,
7985 }, {
7986 .eraseblocks = { {8 * 1024 * 1024, 1} },
7987 .block_erase = spi_block_erase_c7,
7988 }
7989 },
7990 .unlock = spi_disable_blockprotect,
7991 .write = spi_chip_write_256,
7992 .read = spi_chip_read,
7993 },
7994
7995 {
7996 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007997 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007998 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007999 .manufacture_id = ST_ID,
8000 .model_id = ST_M29F002B,
8001 .total_size = 256,
8002 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008003 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008004 .tested = TEST_UNTESTED,
8005 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008006 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008007 .block_erasers =
8008 {
8009 {
8010 .eraseblocks = {
8011 {16 * 1024, 1},
8012 {8 * 1024, 2},
8013 {32 * 1024, 1},
8014 {64 * 1024, 3},
8015 },
8016 .block_erase = erase_sector_jedec,
8017 }, {
8018 .eraseblocks = { {256 * 1024, 1} },
8019 .block_erase = erase_chip_block_jedec,
8020 }
8021 },
Sean Nelson35727f72010-01-28 23:55:12 +00008022 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008023 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008024 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008025 },
8026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008027 {
8028 .vendor = "ST",
8029 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008030 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008031 .manufacture_id = ST_ID,
8032 .model_id = ST_M29F002T,
8033 .total_size = 256,
8034 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008035 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
8036 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008037 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008038 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008039 .block_erasers =
8040 {
8041 {
8042 .eraseblocks = {
8043 {64 * 1024, 3},
8044 {32 * 1024, 1},
8045 {8 * 1024, 2},
8046 {16 * 1024, 1},
8047 },
8048 .block_erase = erase_sector_jedec,
8049 }, {
8050 .eraseblocks = { {256 * 1024, 1} },
8051 .block_erase = erase_chip_block_jedec,
8052 }
8053 },
Sean Nelson35727f72010-01-28 23:55:12 +00008054 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008055 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008056 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008057 },
8058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008059 {
8060 .vendor = "ST",
8061 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008063 .manufacture_id = ST_ID,
8064 .model_id = ST_M29F040B,
8065 .total_size = 512,
8066 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008067 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8068 .tested = TEST_UNTESTED,
8069 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008070 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00008071 .block_erasers =
8072 {
8073 {
8074 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00008075 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008076 }, {
8077 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008078 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008079 }
8080 },
Sean Nelson35727f72010-01-28 23:55:12 +00008081 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008082 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008083 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008084 },
8085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008086 {
Sean Nelson35727f72010-01-28 23:55:12 +00008087 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008088 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008089 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008090 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008091 .manufacture_id = ST_ID,
8092 .model_id = ST_M29F400BB,
8093 .total_size = 512,
8094 .page_size = 64 * 1024,
8095 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008096 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008097 .probe = probe_m29f400bt,
8098 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
8099 .block_erasers =
8100 {
8101 {
8102 .eraseblocks = {
8103 {16 * 1024, 1},
8104 {8 * 1024, 2},
8105 {32 * 1024, 1},
8106 {64 * 1024, 7},
8107 },
8108 .block_erase = block_erase_m29f400bt,
8109 }, {
8110 .eraseblocks = { {512 * 1024, 1} },
8111 .block_erase = block_erase_chip_m29f400bt,
8112 }
8113 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008114 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008115 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008116 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008117 },
8118 {
8119 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
8120 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008121 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008123 .manufacture_id = ST_ID,
8124 .model_id = ST_M29F400BT,
8125 .total_size = 512,
8126 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008127 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008128 .tested = TEST_UNTESTED,
8129 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008130 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008131 .block_erasers =
8132 {
8133 {
8134 .eraseblocks = {
8135 {64 * 1024, 7},
8136 {32 * 1024, 1},
8137 {8 * 1024, 2},
8138 {16 * 1024, 1},
8139 },
8140 .block_erase = block_erase_m29f400bt,
8141 }, {
8142 .eraseblocks = { {512 * 1024, 1} },
8143 .block_erase = block_erase_chip_m29f400bt,
8144 }
8145 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008146 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008147 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008148 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008149 },
8150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008151 {
8152 .vendor = "ST",
8153 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008155 .manufacture_id = ST_ID,
8156 .model_id = ST_M29W010B,
8157 .total_size = 128,
8158 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008160 .tested = TEST_UNTESTED,
8161 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008162 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008163 .block_erasers =
8164 {
8165 {
8166 .eraseblocks = { {16 * 1024, 8}, },
8167 .block_erase = erase_sector_jedec,
8168 }, {
8169 .eraseblocks = { {128 * 1024, 1} },
8170 .block_erase = erase_chip_block_jedec,
8171 }
8172 },
Sean Nelson35727f72010-01-28 23:55:12 +00008173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008175 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008176 },
8177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008178 {
8179 .vendor = "ST",
8180 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008182 .manufacture_id = ST_ID,
8183 .model_id = ST_M29W040B,
8184 .total_size = 512,
8185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008187 .tested = TEST_UNTESTED,
8188 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008189 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008190 .block_erasers =
8191 {
8192 {
8193 .eraseblocks = { {64 * 1024, 8}, },
8194 .block_erase = erase_sector_jedec,
8195 }, {
8196 .eraseblocks = { {512 * 1024, 1} },
8197 .block_erase = erase_chip_block_jedec,
8198 }
8199 },
Sean Nelson35727f72010-01-28 23:55:12 +00008200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008203 },
8204
Stefan Taunereb582572012-09-21 12:52:50 +00008205 {
8206 .vendor = "ST",
8207 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008208 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +00008209 .manufacture_id = ST_ID,
8210 .model_id = ST_M29W512B,
8211 .total_size = 64,
8212 .page_size = 64 * 1024,
8213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008214 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +00008215 .probe = probe_jedec,
8216 .probe_timing = TIMING_ZERO,
8217 .block_erasers =
8218 {
8219 {
8220 .eraseblocks = { {64 * 1024, 1} },
8221 .block_erase = erase_chip_block_jedec,
8222 }
8223 },
8224 .write = write_jedec_1,
8225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008226 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +00008227 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008229 {
8230 .vendor = "ST",
8231 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008232 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008233 .manufacture_id = ST_ID,
8234 .model_id = ST_M50FLW040A,
8235 .total_size = 512,
8236 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008237 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008238 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008239 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008240 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008241 .block_erasers =
8242 {
8243 {
Sean Nelson329bde72010-01-19 16:39:19 +00008244 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008245 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008246 {64 * 1024, 5}, /* block */
8247 {4 * 1024, 16}, /* sector */
8248 {4 * 1024, 16}, /* sector */
8249 },
8250 .block_erase = NULL,
8251 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008252 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008253 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008254 }
8255 },
Sean Nelson28accc22010-03-19 18:47:06 +00008256 .unlock = unlock_stm50flw0x0x,
8257 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008259 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008260 },
8261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008262 {
8263 .vendor = "ST",
8264 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008265 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008266 .manufacture_id = ST_ID,
8267 .model_id = ST_M50FLW040B,
8268 .total_size = 512,
8269 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008270 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008271 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008272 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008273 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008274 .block_erasers =
8275 {
8276 {
Sean Nelson329bde72010-01-19 16:39:19 +00008277 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008278 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008279 {4 * 1024, 16}, /* sector */
8280 {64 * 1024, 5}, /* block */
8281 {4 * 1024, 16}, /* sector */
8282 },
8283 .block_erase = NULL,
8284 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008285 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008286 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008287 }
8288 },
Sean Nelson28accc22010-03-19 18:47:06 +00008289 .unlock = unlock_stm50flw0x0x,
8290 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008292 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008293 },
8294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008295 {
8296 .vendor = "ST",
8297 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008298 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008299 .manufacture_id = ST_ID,
8300 .model_id = ST_M50FLW080A,
8301 .total_size = 1024,
8302 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008303 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008304 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00008305 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008306 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008307 .block_erasers =
8308 {
8309 {
Sean Nelson329bde72010-01-19 16:39:19 +00008310 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008311 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008312 {64 * 1024, 13}, /* block */
8313 {4 * 1024, 16}, /* sector */
8314 {4 * 1024, 16}, /* sector */
8315 },
8316 .block_erase = NULL,
8317 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008318 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008319 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008320 }
8321 },
Sean Nelson28accc22010-03-19 18:47:06 +00008322 .unlock = unlock_stm50flw0x0x,
8323 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008325 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008326 },
8327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008328 {
8329 .vendor = "ST",
8330 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008331 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008332 .manufacture_id = ST_ID,
8333 .model_id = ST_M50FLW080B,
8334 .total_size = 1024,
8335 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008336 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008337 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008338 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008339 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008340 .block_erasers =
8341 {
8342 {
Sean Nelson329bde72010-01-19 16:39:19 +00008343 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008344 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008345 {4 * 1024, 16}, /* sector */
8346 {64 * 1024, 13}, /* block */
8347 {4 * 1024, 16}, /* sector */
8348 },
8349 .block_erase = NULL,
8350 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008351 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008352 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008353 }
8354 },
Sean Nelson28accc22010-03-19 18:47:06 +00008355 .unlock = unlock_stm50flw0x0x,
8356 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008357 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008358 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008359 },
8360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008361 {
8362 .vendor = "ST",
8363 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008364 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008365 .manufacture_id = ST_ID,
8366 .model_id = ST_M50FW002,
8367 .total_size = 256,
8368 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008369 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008370 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008371 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008372 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008373 .block_erasers =
8374 {
8375 {
8376 .eraseblocks = {
8377 {64 * 1024, 3},
8378 {32 * 1024, 1},
8379 {8 * 1024, 2},
8380 {16 * 1024, 1},
8381 },
Sean Nelson28accc22010-03-19 18:47:06 +00008382 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008383 }
8384 },
Sean Nelson28accc22010-03-19 18:47:06 +00008385 .unlock = unlock_stm50flw0x0x,
8386 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008388 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008389 },
8390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008391 {
8392 .vendor = "ST",
8393 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008394 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008395 .manufacture_id = ST_ID,
8396 .model_id = ST_M50FW016,
8397 .total_size = 2048,
8398 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008399 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008400 .tested = TEST_UNTESTED,
8401 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008402 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008403 .block_erasers =
8404 {
8405 {
8406 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008407 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008408 }
8409 },
Sean Nelson28accc22010-03-19 18:47:06 +00008410 .unlock = unlock_stm50flw0x0x,
8411 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008413 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008414 },
8415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008416 {
8417 .vendor = "ST",
8418 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008419 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008420 .manufacture_id = ST_ID,
8421 .model_id = ST_M50FW040,
8422 .total_size = 512,
8423 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008424 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008425 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008426 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008427 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008428 .block_erasers =
8429 {
8430 {
8431 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008432 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008433 }
8434 },
Sean Nelson28accc22010-03-19 18:47:06 +00008435 .unlock = unlock_stm50flw0x0x,
8436 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008438 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008439 },
8440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008441 {
8442 .vendor = "ST",
8443 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008444 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008445 .manufacture_id = ST_ID,
8446 .model_id = ST_M50FW080,
8447 .total_size = 1024,
8448 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008449 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008451 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008452 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008453 .block_erasers =
8454 {
8455 {
8456 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008457 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008458 }
8459 },
Sean Nelson28accc22010-03-19 18:47:06 +00008460 .unlock = unlock_stm50flw0x0x,
8461 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008462 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008463 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008464 },
8465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008466 {
8467 .vendor = "ST",
8468 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008469 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008470 .manufacture_id = ST_ID,
8471 .model_id = ST_M50LPW116,
8472 .total_size = 2048,
8473 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008474 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008475 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008476 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008477 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008478 .block_erasers =
8479 {
8480 {
8481 .eraseblocks = {
8482 {4 * 1024, 16},
8483 {64 * 1024, 30},
8484 {32 * 1024, 1},
8485 {8 * 1024, 2},
8486 {16 * 1024, 1},
8487 },
Sean Nelson28accc22010-03-19 18:47:06 +00008488 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008489 }
8490 },
Sean Nelson28accc22010-03-19 18:47:06 +00008491 .unlock = unlock_stm50flw0x0x,
8492 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008493 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008494 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008495 },
8496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008497 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008498 .vendor = "SyncMOS/MoselVitelic",
8499 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008500 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008501 .manufacture_id = SYNCMOS_MVC_ID,
8502 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008503 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008504 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008505 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008506 .tested = TEST_UNTESTED,
8507 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008508 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008509 .block_erasers =
8510 {
8511 {
8512 .eraseblocks = { {512, 256} },
8513 .block_erase = erase_sector_jedec,
8514 }, {
8515 .eraseblocks = { {128 * 1024, 1} },
8516 .block_erase = erase_chip_block_jedec,
8517 },
8518 },
Sean Nelson35727f72010-01-28 23:55:12 +00008519 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008520 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008521 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008522 },
8523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008524 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008525 .vendor = "SyncMOS/MoselVitelic",
8526 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008527 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008528 .manufacture_id = SYNCMOS_MVC_ID,
8529 .model_id = SM_MVC_29C51001T,
8530 .total_size = 128,
8531 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008532 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008533 .tested = TEST_UNTESTED,
8534 .probe = probe_jedec,
8535 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8536 .block_erasers =
8537 {
8538 {
8539 .eraseblocks = { {512, 256} },
8540 .block_erase = erase_sector_jedec,
8541 }, {
8542 .eraseblocks = { {128 * 1024, 1} },
8543 .block_erase = erase_chip_block_jedec,
8544 },
8545 },
8546 .write = write_jedec_1,
8547 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008548 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008549 },
8550
8551 {
8552 .vendor = "SyncMOS/MoselVitelic",
8553 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008554 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008555 .manufacture_id = SYNCMOS_MVC_ID,
8556 .model_id = SM_MVC_29C51002B,
8557 .total_size = 256,
8558 .page_size = 512,
8559 .feature_bits = FEATURE_EITHER_RESET,
8560 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008561 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008562 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008563 .block_erasers =
8564 {
8565 {
8566 .eraseblocks = { {512, 512} },
8567 .block_erase = erase_sector_jedec,
8568 }, {
8569 .eraseblocks = { {256 * 1024, 1} },
8570 .block_erase = erase_chip_block_jedec,
8571 },
8572 },
Sean Nelson35727f72010-01-28 23:55:12 +00008573 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008574 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008575 },
8576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008577 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008578 .vendor = "SyncMOS/MoselVitelic",
8579 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008580 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008581 .manufacture_id = SYNCMOS_MVC_ID,
8582 .model_id = SM_MVC_29C51002T,
8583 .total_size = 256,
8584 .page_size = 512,
8585 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008586 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008587 .probe = probe_jedec,
8588 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8589 .block_erasers =
8590 {
8591 {
8592 .eraseblocks = { {512, 512} },
8593 .block_erase = erase_sector_jedec,
8594 }, {
8595 .eraseblocks = { {256 * 1024, 1} },
8596 .block_erase = erase_chip_block_jedec,
8597 },
8598 },
8599 .write = write_jedec_1,
8600 .read = read_memmapped,
8601 },
8602
8603 {
8604 .vendor = "SyncMOS/MoselVitelic",
8605 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008606 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008607 .manufacture_id = SYNCMOS_MVC_ID,
8608 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008609 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008610 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008611 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008612 .tested = TEST_UNTESTED,
8613 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008614 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008615 .block_erasers =
8616 {
8617 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008618 .eraseblocks = { {1024, 512} },
8619 .block_erase = erase_sector_jedec,
8620 }, {
8621 .eraseblocks = { {512 * 1024, 1} },
8622 .block_erase = erase_chip_block_jedec,
8623 },
8624 },
8625 .write = write_jedec_1,
8626 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008627 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008628 },
8629
8630 {
8631 .vendor = "SyncMOS/MoselVitelic",
8632 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008633 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008634 .manufacture_id = SYNCMOS_MVC_ID,
8635 .model_id = SM_MVC_29C51004T,
8636 .total_size = 512,
8637 .page_size = 1024,
8638 .feature_bits = FEATURE_EITHER_RESET,
8639 .tested = TEST_UNTESTED,
8640 .probe = probe_jedec,
8641 .probe_timing = TIMING_ZERO,
8642 .block_erasers =
8643 {
8644 {
8645 .eraseblocks = { {1024, 512} },
8646 .block_erase = erase_sector_jedec,
8647 }, {
8648 .eraseblocks = { {512 * 1024, 1} },
8649 .block_erase = erase_chip_block_jedec,
8650 },
8651 },
8652 .write = write_jedec_1,
8653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008654 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008655 },
8656
8657 {
8658 .vendor = "SyncMOS/MoselVitelic",
8659 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008660 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008661 .manufacture_id = SYNCMOS_MVC_ID,
8662 .model_id = SM_MVC_29C31004B,
8663 .total_size = 512,
8664 .page_size = 1024,
8665 .feature_bits = FEATURE_EITHER_RESET,
8666 .tested = TEST_UNTESTED,
8667 .probe = probe_jedec,
8668 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8669 .block_erasers =
8670 {
8671 {
8672 .eraseblocks = { {1024, 512} },
8673 .block_erase = erase_sector_jedec,
8674 }, {
8675 .eraseblocks = { {512 * 1024, 1} },
8676 .block_erase = erase_chip_block_jedec,
8677 },
8678 },
8679 .write = write_jedec_1,
8680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008681 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008682 },
8683
8684 {
8685 .vendor = "SyncMOS/MoselVitelic",
8686 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008687 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008688 .manufacture_id = SYNCMOS_MVC_ID,
8689 .model_id = SM_MVC_29C31004T,
8690 .total_size = 512,
8691 .page_size = 1024,
8692 .feature_bits = FEATURE_EITHER_RESET,
8693 .tested = TEST_UNTESTED,
8694 .probe = probe_jedec,
8695 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8696 .block_erasers =
8697 {
8698 {
8699 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008700 .block_erase = erase_sector_jedec,
8701 }, {
8702 .eraseblocks = { {512 * 1024, 1} },
8703 .block_erase = erase_chip_block_jedec,
8704 },
8705 },
Sean Nelson35727f72010-01-28 23:55:12 +00008706 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008708 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008709 },
8710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008711 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008712 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008713 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008714 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008715 .manufacture_id = TI_OLD_ID,
8716 .model_id = TI_TMS29F002RB,
8717 .total_size = 256,
8718 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008720 .tested = TEST_UNTESTED,
8721 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008722 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008723 .block_erasers =
8724 {
8725 {
8726 .eraseblocks = {
8727 {16 * 1024, 1},
8728 {8 * 1024, 2},
8729 {32 * 1024, 1},
8730 {64 * 1024, 3},
8731 },
8732 .block_erase = erase_sector_jedec,
8733 }, {
8734 .eraseblocks = { {256 * 1024, 1} },
8735 .block_erase = erase_chip_block_jedec,
8736 },
8737 },
Sean Nelson35727f72010-01-28 23:55:12 +00008738 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008739 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008740 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008741 },
8742
8743 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008744 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008745 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008746 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008747 .manufacture_id = TI_OLD_ID,
8748 .model_id = TI_TMS29F002RT,
8749 .total_size = 256,
8750 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008751 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008752 .tested = TEST_UNTESTED,
8753 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008754 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008755 .block_erasers =
8756 {
8757 {
8758 .eraseblocks = {
8759 {64 * 1024, 3},
8760 {32 * 1024, 1},
8761 {8 * 1024, 2},
8762 {16 * 1024, 1},
8763 },
8764 .block_erase = erase_sector_jedec,
8765 }, {
8766 .eraseblocks = { {256 * 1024, 1} },
8767 .block_erase = erase_chip_block_jedec,
8768 },
8769 },
Sean Nelson35727f72010-01-28 23:55:12 +00008770 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008772 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008773 },
8774
8775 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008776 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008777 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008778 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008779 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008780 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008781 .total_size = 1024,
8782 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008783 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8784 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008785 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008786 .probe = probe_spi_rdid,
8787 .probe_timing = TIMING_ZERO,
8788 .block_erasers =
8789 {
8790 {
8791 .eraseblocks = { {4 * 1024, 256} },
8792 .block_erase = spi_block_erase_20,
8793 }, {
8794 .eraseblocks = { {32 * 1024, 32} },
8795 .block_erase = spi_block_erase_52,
8796 }, {
8797 .eraseblocks = { {64 * 1024, 16} },
8798 .block_erase = spi_block_erase_d8,
8799 }, {
8800 .eraseblocks = { {1024 * 1024, 1} },
8801 .block_erase = spi_block_erase_60,
8802 }, {
8803 .eraseblocks = { {1024 * 1024, 1} },
8804 .block_erase = spi_block_erase_c7,
8805 }
8806 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008807 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008808 .write = spi_chip_write_256,
8809 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008810 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008811 },
8812
8813 {
8814 .vendor = "Winbond",
8815 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008816 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008817 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008818 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008819 .total_size = 2048,
8820 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008821 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8822 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008823 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008824 .probe = probe_spi_rdid,
8825 .probe_timing = TIMING_ZERO,
8826 .block_erasers =
8827 {
8828 {
8829 .eraseblocks = { {4 * 1024, 512} },
8830 .block_erase = spi_block_erase_20,
8831 }, {
8832 .eraseblocks = { {32 * 1024, 64} },
8833 .block_erase = spi_block_erase_52,
8834 }, {
8835 .eraseblocks = { {64 * 1024, 32} },
8836 .block_erase = spi_block_erase_d8,
8837 }, {
8838 .eraseblocks = { {2 * 1024 * 1024, 1} },
8839 .block_erase = spi_block_erase_60,
8840 }, {
8841 .eraseblocks = { {2 * 1024 * 1024, 1} },
8842 .block_erase = spi_block_erase_c7,
8843 }
8844 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008845 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008846 .write = spi_chip_write_256,
8847 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008848 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008849 },
8850
8851 {
8852 .vendor = "Winbond",
8853 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008854 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008855 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008856 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008857 .total_size = 4096,
8858 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008859 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8860 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008861 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008862 .probe = probe_spi_rdid,
8863 .probe_timing = TIMING_ZERO,
8864 .block_erasers =
8865 {
8866 {
8867 .eraseblocks = { {4 * 1024, 1024} },
8868 .block_erase = spi_block_erase_20,
8869 }, {
8870 .eraseblocks = { {32 * 1024, 128} },
8871 .block_erase = spi_block_erase_52,
8872 }, {
8873 .eraseblocks = { {64 * 1024, 64} },
8874 .block_erase = spi_block_erase_d8,
8875 }, {
8876 .eraseblocks = { {4 * 1024 * 1024, 1} },
8877 .block_erase = spi_block_erase_60,
8878 }, {
8879 .eraseblocks = { {4 * 1024 * 1024, 1} },
8880 .block_erase = spi_block_erase_c7,
8881 }
8882 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008883 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008884 .write = spi_chip_write_256,
8885 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008886 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008887 },
8888
8889 {
8890 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008891 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008892 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008893 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008894 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008895 .total_size = 8192,
8896 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008897 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8898 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008899 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008900 .probe = probe_spi_rdid,
8901 .probe_timing = TIMING_ZERO,
8902 .block_erasers =
8903 {
8904 {
8905 .eraseblocks = { {4 * 1024, 2048} },
8906 .block_erase = spi_block_erase_20,
8907 }, {
8908 .eraseblocks = { {32 * 1024, 256} },
8909 .block_erase = spi_block_erase_52,
8910 }, {
8911 .eraseblocks = { {64 * 1024, 128} },
8912 .block_erase = spi_block_erase_d8,
8913 }, {
8914 .eraseblocks = { {8 * 1024 * 1024, 1} },
8915 .block_erase = spi_block_erase_60,
8916 }, {
8917 .eraseblocks = { {8 * 1024 * 1024, 1} },
8918 .block_erase = spi_block_erase_c7,
8919 }
8920 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008921 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008922 .write = spi_chip_write_256,
8923 .read = spi_chip_read,
8924 },
8925
8926 {
8927 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008928 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008929 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008930 .manufacture_id = WINBOND_NEX_ID,
8931 .model_id = WINBOND_NEX_W25Q128,
8932 .total_size = 16384,
8933 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008934 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008936 .tested = TEST_OK_PROBE,
8937 .probe = probe_spi_rdid,
8938 .probe_timing = TIMING_ZERO,
8939 .block_erasers =
8940 {
8941 {
8942 .eraseblocks = { {4 * 1024, 4096} },
8943 .block_erase = spi_block_erase_20,
8944 }, {
8945 .eraseblocks = { {32 * 1024, 512} },
8946 .block_erase = spi_block_erase_52,
8947 }, {
8948 .eraseblocks = { {64 * 1024, 256} },
8949 .block_erase = spi_block_erase_d8,
8950 }, {
8951 .eraseblocks = { {16 * 1024 * 1024, 1} },
8952 .block_erase = spi_block_erase_60,
8953 }, {
8954 .eraseblocks = { {16 * 1024 * 1024, 1} },
8955 .block_erase = spi_block_erase_c7,
8956 }
8957 },
8958 .unlock = spi_disable_blockprotect,
8959 .write = spi_chip_write_256,
8960 .read = spi_chip_read,
8961 },
8962
8963 {
8964 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008965 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008966 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008968 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008969 .total_size = 128,
8970 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008971 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008972 .tested = TEST_UNTESTED,
8973 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008974 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008975 .block_erasers =
8976 {
8977 {
8978 .eraseblocks = { {4 * 1024, 32} },
8979 .block_erase = spi_block_erase_20,
8980 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008981 .eraseblocks = { {64 * 1024, 2} },
8982 .block_erase = spi_block_erase_d8,
8983 }, {
8984 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008985 .block_erase = spi_block_erase_c7,
8986 }
8987 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008988 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008989 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008990 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008991 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008992 },
8993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008994 {
8995 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008996 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008997 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008998 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008999 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009000 .total_size = 256,
9001 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009002 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009003 .tested = TEST_UNTESTED,
9004 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009005 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009006 .block_erasers =
9007 {
9008 {
9009 .eraseblocks = { {4 * 1024, 64} },
9010 .block_erase = spi_block_erase_20,
9011 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009012 .eraseblocks = { {64 * 1024, 4} },
9013 .block_erase = spi_block_erase_d8,
9014 }, {
9015 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009016 .block_erase = spi_block_erase_c7,
9017 }
9018 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009019 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009020 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009021 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009022 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009023 },
9024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009025 {
9026 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009027 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009028 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009029 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009030 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009031 .total_size = 512,
9032 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009033 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00009034 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009035 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009036 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009037 .block_erasers =
9038 {
9039 {
9040 .eraseblocks = { {4 * 1024, 128} },
9041 .block_erase = spi_block_erase_20,
9042 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009043 .eraseblocks = { {64 * 1024, 8} },
9044 .block_erase = spi_block_erase_d8,
9045 }, {
9046 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009047 .block_erase = spi_block_erase_c7,
9048 }
9049 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009050 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009051 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009052 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009053 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009054 },
9055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009056 {
9057 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009058 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009059 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009060 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009061 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009062 .total_size = 1024,
9063 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009064 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00009065 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009066 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009067 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009068 .block_erasers =
9069 {
9070 {
9071 .eraseblocks = { {4 * 1024, 256} },
9072 .block_erase = spi_block_erase_20,
9073 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009074 .eraseblocks = { {64 * 1024, 16} },
9075 .block_erase = spi_block_erase_d8,
9076 }, {
9077 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009078 .block_erase = spi_block_erase_c7,
9079 }
9080 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009081 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009082 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009083 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009084 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009085 },
9086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009087 {
9088 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009089 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009090 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00009091 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009092 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00009093 .total_size = 2048,
9094 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009095 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00009096 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00009097 .probe = probe_spi_rdid,
9098 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009099 .block_erasers =
9100 {
9101 {
9102 .eraseblocks = { {4 * 1024, 512} },
9103 .block_erase = spi_block_erase_20,
9104 }, {
9105 .eraseblocks = { {32 * 1024, 64} },
9106 .block_erase = spi_block_erase_52,
9107 }, {
9108 .eraseblocks = { {64 * 1024, 32} },
9109 .block_erase = spi_block_erase_d8,
9110 }, {
9111 .eraseblocks = { {2 * 1024 * 1024, 1} },
9112 .block_erase = spi_block_erase_60,
9113 }, {
9114 .eraseblocks = { {2 * 1024 * 1024, 1} },
9115 .block_erase = spi_block_erase_c7,
9116 }
9117 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009118 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00009119 .write = spi_chip_write_256,
9120 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009121 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00009122 },
9123
9124 {
9125 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009126 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009127 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009128 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009129 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00009130 .total_size = 4096,
9131 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009132 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00009133 .tested = TEST_OK_PROBE,
9134 .probe = probe_spi_rdid,
9135 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009136 .block_erasers =
9137 {
9138 {
9139 .eraseblocks = { {4 * 1024, 1024} },
9140 .block_erase = spi_block_erase_20,
9141 }, {
9142 .eraseblocks = { {32 * 1024, 128} },
9143 .block_erase = spi_block_erase_52,
9144 }, {
9145 .eraseblocks = { {64 * 1024, 64} },
9146 .block_erase = spi_block_erase_d8,
9147 }, {
9148 .eraseblocks = { {4 * 1024 * 1024, 1} },
9149 .block_erase = spi_block_erase_60,
9150 }, {
9151 .eraseblocks = { {4 * 1024 * 1024, 1} },
9152 .block_erase = spi_block_erase_c7,
9153 }
9154 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009155 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009156 .write = spi_chip_write_256,
9157 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009158 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009159 },
9160
9161 {
9162 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009163 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009164 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009165 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009166 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00009167 .total_size = 8192,
9168 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009169 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009170 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00009171 .probe = probe_spi_rdid,
9172 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009173 .block_erasers =
9174 {
9175 {
9176 .eraseblocks = { {4 * 1024, 2048} },
9177 .block_erase = spi_block_erase_20,
9178 }, {
9179 .eraseblocks = { {32 * 1024, 256} },
9180 .block_erase = spi_block_erase_52,
9181 }, {
9182 .eraseblocks = { {64 * 1024, 128} },
9183 .block_erase = spi_block_erase_d8,
9184 }, {
9185 .eraseblocks = { {8 * 1024 * 1024, 1} },
9186 .block_erase = spi_block_erase_60,
9187 }, {
9188 .eraseblocks = { {8 * 1024 * 1024, 1} },
9189 .block_erase = spi_block_erase_c7,
9190 }
9191 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009192 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009193 .write = spi_chip_write_256,
9194 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009195 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009196 },
9197
9198 {
9199 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009200 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009201 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009202 .manufacture_id = WINBOND_ID,
9203 .model_id = WINBOND_W29C010,
9204 .total_size = 128,
9205 .page_size = 128,
9206 .feature_bits = FEATURE_LONG_RESET,
9207 .tested = TEST_OK_PRE,
9208 .probe = probe_w29ee011,
9209 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
9210 .block_erasers =
9211 {
9212 {
9213 .eraseblocks = { {128 * 1024, 1} },
9214 .block_erase = erase_chip_block_jedec,
9215 }
9216 },
9217 .write = write_jedec,
9218 .read = read_memmapped,
9219 },
9220
9221 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
9222 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009223 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009224 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009225 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009226 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009227 .total_size = 128,
9228 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009229 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00009230 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009231 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009232 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009233 .block_erasers =
9234 {
9235 {
9236 .eraseblocks = { {128 * 1024, 1} },
9237 .block_erase = erase_chip_block_jedec,
9238 }
9239 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009240 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009241 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009242 },
9243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009244 {
9245 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009246 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009247 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009248 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009249 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009250 .total_size = 256,
9251 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009252 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009253 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009254 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009255 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009256 .block_erasers =
9257 {
9258 {
9259 .eraseblocks = { {256 * 1024, 1} },
9260 .block_erase = erase_chip_block_jedec,
9261 }
9262 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009263 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009265 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009266 },
9267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009268 {
9269 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009270 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009271 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009272 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009273 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009274 .total_size = 512,
9275 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009276 .feature_bits = FEATURE_LONG_RESET,
9277 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009278 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00009279 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009280 .block_erasers =
9281 {
9282 {
9283 .eraseblocks = { {512 * 1024, 1} },
9284 .block_erase = erase_chip_block_jedec,
9285 }
9286 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009287 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009289 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009290 },
9291
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009292 {
9293 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00009294 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009295 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00009296 .manufacture_id = WINBOND_ID,
9297 .model_id = WINBOND_W39L040,
9298 .total_size = 512,
9299 .page_size = 64 * 1024,
9300 .feature_bits = FEATURE_EITHER_RESET,
9301 .tested = TEST_OK_PR,
9302 .probe = probe_jedec,
9303 .probe_timing = 10,
9304 .block_erasers =
9305 {
9306 {
9307 .eraseblocks = { {4 * 1024, 128} },
9308 .block_erase = erase_block_jedec,
9309 }, {
9310 .eraseblocks = { {64 * 1024, 8} },
9311 .block_erase = erase_sector_jedec,
9312 }, {
9313 .eraseblocks = { {512 * 1024, 1} },
9314 .block_erase = erase_chip_block_jedec,
9315 }
9316 },
9317 .printlock = printlock_w39l040,
9318 .write = write_jedec_1,
9319 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009320 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00009321 },
9322
9323 {
9324 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009325 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009326 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009327 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009328 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009329 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009330 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009331 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009332 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009333 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00009334 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009335 .block_erasers =
9336 {
9337 {
9338 .eraseblocks = { {64 * 1024, 8} },
9339 .block_erase = erase_sector_jedec,
9340 }, {
9341 .eraseblocks = { {512 * 1024, 1} },
9342 .block_erase = erase_chip_block_jedec,
9343 }
9344 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009345 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00009346 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009347 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009348 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009349 },
9350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009351 {
9352 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009353 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009354 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009355 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009356 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009357 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009358 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009359 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009360 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009361 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00009362 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009363 .block_erasers =
9364 {
9365 {
9366 .eraseblocks = { {64 * 1024, 8} },
9367 .block_erase = erase_sector_jedec,
9368 }, {
9369 .eraseblocks = { {512 * 1024, 1} },
9370 .block_erase = erase_chip_block_jedec,
9371 }
9372 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009373 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009374 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009376 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009377 },
9378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009379 {
9380 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009381 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009382 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009383 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009384 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009385 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009386 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009387 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009388 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009389 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009390 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009391 .block_erasers =
9392 {
9393 {
9394 .eraseblocks = { {64 * 1024, 8} },
9395 .block_erase = erase_sector_jedec,
9396 }, {
9397 .eraseblocks = { {512 * 1024, 1} },
9398 .block_erase = erase_chip_block_jedec,
9399 }
9400 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009401 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009402 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009403 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009404 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009405 },
9406
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009407 {
9408 .vendor = "Winbond",
9409 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009410 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009411 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009412 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009413 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009414 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009415 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009416 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009417 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009418 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009419 .block_erasers =
9420 {
9421 {
9422 .eraseblocks = { {4 * 1024, 128} },
9423 .block_erase = erase_block_jedec,
9424 }, {
9425 .eraseblocks = { {64 * 1024, 8} },
9426 .block_erase = erase_sector_jedec,
9427 }, {
9428 .eraseblocks = { {512 * 1024, 1} },
9429 .block_erase = erase_chip_block_jedec,
9430 }
9431 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009432 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00009433 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00009434 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009436 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009437 },
9438
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009439 {
9440 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009441 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009442 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009443 .manufacture_id = WINBOND_ID,
9444 .model_id = WINBOND_W39V040B,
9445 .total_size = 512,
9446 .page_size = 64 * 1024,
9447 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009448 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009449 .probe = probe_jedec,
9450 .probe_timing = 10,
9451 .block_erasers =
9452 {
9453 {
9454 .eraseblocks = { {64 * 1024, 8} },
9455 .block_erase = erase_sector_jedec,
9456 }, {
9457 .eraseblocks = { {512 * 1024, 1} },
9458 .block_erase = erase_chip_block_jedec,
9459 }
9460 },
9461 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00009462 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009463 .write = write_jedec_1,
9464 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009465 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009466 },
9467
9468 {
9469 .vendor = "Winbond",
9470 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009471 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009472 .manufacture_id = WINBOND_ID,
9473 .model_id = WINBOND_W39V040C,
9474 .total_size = 512,
9475 .page_size = 64 * 1024,
9476 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009477 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009478 .probe = probe_jedec,
9479 .probe_timing = 10,
9480 .block_erasers =
9481 {
9482 {
9483 .eraseblocks = { {64 * 1024, 8} },
9484 .block_erase = erase_sector_jedec,
9485 }, {
9486 .eraseblocks = { {512 * 1024, 1} },
9487 .block_erase = erase_chip_block_jedec,
9488 }
9489 },
9490 .printlock = printlock_w39v040fc,
9491 .write = write_jedec_1,
9492 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009493 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009494 },
9495
9496 {
9497 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009498 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009499 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009500 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009501 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009502 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009503 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009504 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009505 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009506 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009507 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009508 .block_erasers =
9509 {
9510 {
9511 .eraseblocks = { {64 * 1024, 16} },
9512 .block_erase = erase_sector_jedec,
9513 }, {
9514 .eraseblocks = { {1024 * 1024, 1} },
9515 .block_erase = erase_chip_block_jedec,
9516 }
9517 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009518 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009519 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009520 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009521 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009522 },
9523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009524 {
9525 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009526 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009527 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009528 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009529 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009530 .total_size = 256,
9531 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009532 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009533 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009534 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009535 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009536 .block_erasers =
9537 {
9538 {
9539 .eraseblocks = {
9540 {128 * 1024, 1},
9541 {96 * 1024, 1},
9542 {8 * 1024, 2},
9543 {16 * 1024, 1},
9544 },
9545 .block_erase = erase_sector_jedec,
9546 }, {
9547 .eraseblocks = { {256 * 1024, 1} },
9548 .block_erase = erase_chip_block_jedec,
9549 }
9550 },
Sean Nelson35727f72010-01-28 23:55:12 +00009551 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009552 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009553 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009554 },
9555
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009556 {
9557 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009558 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009559 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009560 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009561 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009562 .total_size = 256,
9563 .page_size = 128,
9564 .feature_bits = FEATURE_EITHER_RESET,
9565 .tested = TEST_OK_PROBE,
9566 .probe = probe_jedec,
9567 .probe_timing = 10,
9568 .block_erasers =
9569 {
9570 {
9571 .eraseblocks = { {256 * 1024, 1} },
9572 .block_erase = erase_chip_block_jedec,
9573 }
9574 },
9575 .write = write_jedec_1,
9576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009577 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009578 },
9579
9580 {
9581 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009582 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009583 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009584 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009585 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009586 .total_size = 256,
9587 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009588 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009589 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009590 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009591 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009592 .block_erasers =
9593 {
9594 {
9595 .eraseblocks = {
9596 {64 * 1024, 3},
9597 {32 * 1024, 1},
9598 {8 * 1024, 2},
9599 {16 * 1024, 1},
9600 },
9601 .block_erase = erase_sector_jedec,
9602 }, {
9603 .eraseblocks = { {256 * 1024, 1} },
9604 .block_erase = erase_chip_block_jedec,
9605 }
9606 },
Sean Nelson35727f72010-01-28 23:55:12 +00009607 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009609 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009610 },
9611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009612 {
9613 .vendor = "Winbond",
9614 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009615 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009616 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009617 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009618 .total_size = 256,
9619 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009620 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00009621 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009622 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009623 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009624 .block_erasers =
9625 {
9626 {
9627 .eraseblocks = {
9628 {64 * 1024, 3},
9629 {32 * 1024, 1},
9630 {8 * 1024, 2},
9631 {16 * 1024, 1},
9632 },
9633 .block_erase = erase_sector_jedec,
9634 }, {
9635 .eraseblocks = { {256 * 1024, 1} },
9636 .block_erase = erase_chip_block_jedec,
9637 }
9638 },
Sean Nelson35727f72010-01-28 23:55:12 +00009639 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009641 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009642 },
9643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009644 {
9645 .vendor = "Winbond",
9646 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009647 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009648 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009649 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009650 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009651 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009652 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009653 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009654 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009655 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009656 .block_erasers =
9657 {
9658 {
9659 .eraseblocks = { {64 * 1024, 16}, },
9660 .block_erase = erase_sector_jedec,
9661 }, {
9662 .eraseblocks = { {1024 * 1024, 1} },
9663 .block_erase = erase_chip_block_jedec,
9664 }
9665 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009666 .printlock = printlock_w39v080fa,
9667 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009668 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009669 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009670 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009671 },
9672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009673 {
9674 .vendor = "Winbond",
9675 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009676 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009677 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009678 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009679 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009680 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009681 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009682 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009683 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009684 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009685 .block_erasers =
9686 {
9687 {
9688 .eraseblocks = { {64 * 1024, 8}, },
9689 .block_erase = erase_sector_jedec,
9690 }, {
9691 .eraseblocks = { {512 * 1024, 1} },
9692 .block_erase = erase_chip_block_jedec,
9693 }
9694 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009695 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009696 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009697 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009698 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009699 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009700
9701 {
9702 .vendor = "Unknown",
9703 .name = "SFDP-capable chip",
9704 .bustype = BUS_SPI,
9705 .manufacture_id = GENERIC_MANUF_ID,
9706 .model_id = SFDP_DEVICE_ID,
9707 /* We present our own "report this" text hence we do not
9708 * want the default "This flash part has status UNTESTED..."
9709 * text to be printed. */
9710 .tested = TEST_OK_PREW,
9711 .probe = probe_spi_sfdp,
9712 .unlock = spi_disable_blockprotect, /* is this safe? */
9713 .read = spi_chip_read,
9714 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +00009715 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009716 /* Everything below will be set by the probing function. */
9717 .write = NULL,
9718 .total_size = 0,
9719 .page_size = 0,
9720 .feature_bits = 0,
9721 .block_erasers = {},
9722 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009724 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009725 .vendor = "Programmer",
9726 .name = "Opaque flash chip",
9727 .bustype = BUS_PROG,
9728 .manufacture_id = PROGMANUF_ID,
9729 .model_id = PROGDEV_ID,
9730 .total_size = 0,
9731 .page_size = 256,
9732 /* probe is assumed to work, rest will be filled in by probe */
9733 .tested = TEST_OK_PROBE,
9734 .probe = probe_opaque,
9735 /* eraseblock sizes will be set by the probing function */
9736 .block_erasers =
9737 {
9738 {
9739 .block_erase = erase_opaque,
9740 }
9741 },
9742 .write = write_opaque,
9743 .read = read_opaque,
9744 },
9745
9746 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009747 .vendor = "AMIC",
9748 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009749 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009750 .manufacture_id = AMIC_ID,
9751 .model_id = GENERIC_DEVICE_ID,
9752 .total_size = 0,
9753 .page_size = 256,
9754 .tested = TEST_BAD_PREW,
9755 .probe = probe_spi_rdid4,
9756 .probe_timing = TIMING_ZERO,
9757 .write = NULL,
9758 .read = NULL,
9759 },
9760
9761 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009762 .vendor = "Atmel",
9763 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009764 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009765 .manufacture_id = ATMEL_ID,
9766 .model_id = GENERIC_DEVICE_ID,
9767 .total_size = 0,
9768 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009769 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009770 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009771 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009772 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009773 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009774 },
9775
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009776 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009777 .vendor = "Eon",
9778 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009779 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009780 .manufacture_id = EON_ID_NOPREFIX,
9781 .model_id = GENERIC_DEVICE_ID,
9782 .total_size = 0,
9783 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009784 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009785 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009786 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009787 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009788 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009789 },
9790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009791 {
9792 .vendor = "Macronix",
9793 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009794 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009795 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009796 .model_id = GENERIC_DEVICE_ID,
9797 .total_size = 0,
9798 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009799 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009800 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009801 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009802 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009803 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009804 },
9805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009806 {
9807 .vendor = "PMC",
9808 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009809 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009810 .manufacture_id = PMC_ID,
9811 .model_id = GENERIC_DEVICE_ID,
9812 .total_size = 0,
9813 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009814 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009815 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009816 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009817 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009818 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009819 },
9820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009821 {
9822 .vendor = "SST",
9823 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009824 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009825 .manufacture_id = SST_ID,
9826 .model_id = GENERIC_DEVICE_ID,
9827 .total_size = 0,
9828 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009829 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009830 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009831 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009832 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009833 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009834 },
9835
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009836 {
9837 .vendor = "ST",
9838 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009839 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009840 .manufacture_id = ST_ID,
9841 .model_id = GENERIC_DEVICE_ID,
9842 .total_size = 0,
9843 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009844 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009845 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009846 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009847 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009848 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009849 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009850
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009851 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009852 .vendor = "Sanyo",
9853 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009854 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009855 .manufacture_id = SANYO_ID,
9856 .model_id = GENERIC_DEVICE_ID,
9857 .total_size = 0,
9858 .page_size = 256,
9859 .tested = TEST_BAD_PREW,
9860 .probe = probe_spi_rdid,
9861 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009862 .write = NULL,
9863 .read = NULL,
9864 },
9865
9866 {
Stefan Taunereb582572012-09-21 12:52:50 +00009867 .vendor = "Winbond",
9868 .name = "unknown Winbond (ex Nexcom) SPI chip",
9869 .bustype = BUS_SPI,
9870 .manufacture_id = WINBOND_NEX_ID,
9871 .model_id = GENERIC_DEVICE_ID,
9872 .total_size = 0,
9873 .page_size = 256,
9874 .tested = TEST_BAD_PREW,
9875 .probe = probe_spi_rdid,
9876 .probe_timing = TIMING_ZERO,
9877 .write = NULL,
9878 .read = NULL,
9879 },
9880
9881 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009882 .vendor = "Generic",
9883 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009884 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009885 .manufacture_id = GENERIC_MANUF_ID,
9886 .model_id = GENERIC_DEVICE_ID,
9887 .total_size = 0,
9888 .page_size = 256,
9889 .tested = TEST_BAD_PREW,
9890 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009891 .write = NULL,
9892 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009893
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009894 {
9895 .vendor = "Generic",
9896 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009897 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009898 .manufacture_id = GENERIC_MANUF_ID,
9899 .model_id = GENERIC_DEVICE_ID,
9900 .total_size = 0,
9901 .page_size = 256,
9902 .tested = TEST_BAD_PREW,
9903 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009904 .write = NULL,
9905 },
9906
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009907 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009908};