blob: 789f17f90a865051c86d61b3c3fe770b3c1b4be5 [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,
1698 }
1699 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001700 .printlock = spi_prettyprint_status_register_at25f,
1701 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001702 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001703 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001704 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001705 },
1706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001707 {
1708 .vendor = "Atmel",
1709 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001710 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001712 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001713 .total_size = 128,
1714 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001715 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .tested = TEST_UNTESTED,
1717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001718 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001719 .block_erasers =
1720 {
1721 {
1722 .eraseblocks = { {4 * 1024, 32} },
1723 .block_erase = spi_block_erase_20,
1724 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001725 .eraseblocks = { {4 * 1024, 32} },
1726 .block_erase = spi_block_erase_d7,
1727 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001728 .eraseblocks = { {32 * 1024, 4} },
1729 .block_erase = spi_block_erase_52,
1730 }, {
1731 .eraseblocks = { {32 * 1024, 4} },
1732 .block_erase = spi_block_erase_d8,
1733 }, {
1734 .eraseblocks = { {128 * 1024, 1} },
1735 .block_erase = spi_block_erase_60,
1736 }, {
1737 .eraseblocks = { {128 * 1024, 1} },
1738 .block_erase = spi_block_erase_c7,
1739 }
1740 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001741 .printlock = spi_prettyprint_status_register_at25fs010,
1742 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001743 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001745 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001746 },
1747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001748 {
1749 .vendor = "Atmel",
1750 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001751 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001752 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001753 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 .total_size = 512,
1755 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001756 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .tested = TEST_UNTESTED,
1758 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001759 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001760 .block_erasers =
1761 {
1762 {
1763 .eraseblocks = { {4 * 1024, 128} },
1764 .block_erase = spi_block_erase_20,
1765 }, {
1766 .eraseblocks = { {64 * 1024, 8} },
1767 .block_erase = spi_block_erase_52,
1768 }, {
1769 .eraseblocks = { {64 * 1024, 8} },
1770 .block_erase = spi_block_erase_d8,
1771 }, {
1772 .eraseblocks = { {512 * 1024, 1} },
1773 .block_erase = spi_block_erase_60,
1774 }, {
1775 .eraseblocks = { {512 * 1024, 1} },
1776 .block_erase = spi_block_erase_c7,
1777 }
1778 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001779 .printlock = spi_prettyprint_status_register_at25fs040,
1780 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001781 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001782 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001783 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001784 },
1785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001786 {
1787 .vendor = "Atmel",
1788 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001789 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001790 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001791 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001792 .total_size = 512,
1793 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001794 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001795 .tested = TEST_UNTESTED,
1796 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001797 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001798 .block_erasers =
1799 {
1800 {
1801 .eraseblocks = { {4 * 1024, 128} },
1802 .block_erase = spi_block_erase_20,
1803 }
1804 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001805 .write = NULL /* Incompatible Page write */,
1806 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001807 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001808 },
1809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 {
1811 .vendor = "Atmel",
1812 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001813 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001815 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001816 .total_size = 1024,
1817 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001818 .feature_bits = FEATURE_WRSR_WREN,
1819 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001820 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001821 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001822 .block_erasers =
1823 {
1824 {
1825 .eraseblocks = { {4 * 1024, 256} },
1826 .block_erase = spi_block_erase_20,
1827 }, {
1828 .eraseblocks = { {32 * 1024, 32} },
1829 .block_erase = spi_block_erase_52,
1830 }, {
1831 .eraseblocks = { {64 * 1024, 16} },
1832 .block_erase = spi_block_erase_d8,
1833 }, {
1834 .eraseblocks = { {1024 * 1024, 1} },
1835 .block_erase = spi_block_erase_60,
1836 }, {
1837 .eraseblocks = { {1024 * 1024, 1} },
1838 .block_erase = spi_block_erase_c7,
1839 }
1840 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001841 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001842 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001843 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001844 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001845 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001846 },
1847
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001848 {
1849 .vendor = "Atmel",
1850 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001851 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001852 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001853 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001854 .total_size = 2048,
1855 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001856 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001857 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001858 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001859 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001860 .block_erasers =
1861 {
1862 {
1863 .eraseblocks = { {4 * 1024, 512} },
1864 .block_erase = spi_block_erase_20,
1865 }, {
1866 .eraseblocks = { {32 * 1024, 64} },
1867 .block_erase = spi_block_erase_52,
1868 }, {
1869 .eraseblocks = { {64 * 1024, 32} },
1870 .block_erase = spi_block_erase_d8,
1871 }, {
1872 .eraseblocks = { {2 * 1024 * 1024, 1} },
1873 .block_erase = spi_block_erase_60,
1874 }, {
1875 .eraseblocks = { {2 * 1024 * 1024, 1} },
1876 .block_erase = spi_block_erase_c7,
1877 }
1878 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001879 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001884 },
1885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001886 {
1887 .vendor = "Atmel",
1888 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 2048,
1893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001894 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001895 .tested = TEST_UNTESTED,
1896 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001897 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001898 .block_erasers =
1899 {
1900 {
1901 .eraseblocks = { {4 * 1024, 512} },
1902 .block_erase = spi_block_erase_20,
1903 }, {
1904 .eraseblocks = { {32 * 1024, 64} },
1905 .block_erase = spi_block_erase_52,
1906 }, {
1907 .eraseblocks = { {64 * 1024, 32} },
1908 .block_erase = spi_block_erase_d8,
1909 }, {
1910 .eraseblocks = { {2 * 1024 * 1024, 1} },
1911 .block_erase = spi_block_erase_60,
1912 }, {
1913 .eraseblocks = { {2 * 1024 * 1024, 1} },
1914 .block_erase = spi_block_erase_c7,
1915 }
1916 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001917 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001918 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001919 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001920 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001921 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001922 },
1923
1924 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001925 /*{
1926 .vendor = "Atmel",
1927 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001928 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001929 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001930 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001931 .total_size = 4096,
1932 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001933 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 .tested = TEST_UNTESTED,
1935 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001936 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001937 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001938 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001939 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001940 .read = spi_chip_read,
1941 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 {
1944 .vendor = "Atmel",
1945 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001946 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001947 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001948 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001949 .total_size = 512,
1950 .page_size = 256,
1951 .tested = TEST_UNTESTED,
Steven Zakulec3603a282012-05-02 20:07:57 +00001952 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001953 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001954 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001955 .block_erasers =
1956 {
1957 {
1958 .eraseblocks = { {4 * 1024, 128} },
1959 .block_erase = spi_block_erase_20,
1960 }, {
1961 .eraseblocks = { {32 * 1024, 16} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {64 * 1024, 8} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {512 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {512 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001974 .write = NULL /* Incompatible Page write */,
1975 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001976 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001977 },
1978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001979 {
1980 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001981 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001982 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001983 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001984 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001985 .total_size = 64,
1986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001987 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00001988 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001989 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001990 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 1} },
1995 .block_erase = erase_chip_block_jedec,
1996 }
1997 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001998 .write = write_jedec,
1999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002000 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002001 },
2002
2003 {
2004 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002005 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002006 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002007 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002008 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002009 .total_size = 128,
2010 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002011 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002012 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002013 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002014 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {128 * 1024, 1} },
2019 .block_erase = erase_chip_block_jedec,
2020 }
2021 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002022 .write = write_jedec, /* FIXME */
2023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002024 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002025 },
2026
2027 {
2028 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002030 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002031 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002032 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 .total_size = 256,
2034 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002035 .feature_bits = FEATURE_LONG_RESET,
2036 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002037 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002038 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002039 .block_erasers =
2040 {
2041 {
2042 .eraseblocks = { {256 * 1024, 1} },
2043 .block_erase = erase_chip_block_jedec,
2044 }
2045 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 512,
2058 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002059 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002060 .tested = TEST_UNTESTED,
2061 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002062 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {512 * 1024, 1} },
2067 .block_erase = erase_chip_block_jedec,
2068 }
2069 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002070 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002072 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002073 },
2074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002075 {
2076 .vendor = "Atmel",
2077 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002078 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002079 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002080 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002081 .total_size = 16896 /* No power of two sizes */,
2082 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002083 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 .tested = TEST_BAD_READ,
2085 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002086 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 .write = NULL /* Incompatible Page write */,
2088 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002089 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002090 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002092 {
2093 .vendor = "Atmel",
2094 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002095 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002096 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002097 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002098 .total_size = 128 /* Size can only be determined from status register */,
2099 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002100 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .tested = TEST_BAD_READ,
2102 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002103 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002104 .write = NULL,
2105 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002106 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002107 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 {
2110 .vendor = "Atmel",
2111 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002112 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002114 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002115 .total_size = 256 /* Size can only be determined from status register */,
2116 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002117 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002118 .tested = TEST_BAD_READ,
2119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002120 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 .write = NULL,
2122 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002123 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002124 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002125
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002126 {
2127 .vendor = "Atmel",
2128 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002129 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002130 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002131 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002132 .total_size = 512 /* Size can only be determined from status register */,
2133 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002134 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .tested = TEST_BAD_READ,
2136 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002137 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 .write = NULL,
2139 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002140 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002141 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002142
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 {
2144 .vendor = "Atmel",
2145 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002146 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002148 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002149 .total_size = 1024 /* Size can only be determined from status register */,
2150 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002151 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002152 .tested = TEST_BAD_READ,
2153 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002154 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .write = NULL,
2156 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002157 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002158 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002160 {
2161 .vendor = "Atmel",
2162 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002163 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002164 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002165 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002166 .total_size = 2048 /* Size can only be determined from status register */,
2167 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002168 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002169 .tested = TEST_BAD_READ,
2170 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002171 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .write = NULL,
2173 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002174 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002175 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002176
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 {
2178 .vendor = "Atmel",
2179 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002180 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002182 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002183 .total_size = 4224 /* No power of two sizes */,
2184 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002185 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .tested = TEST_BAD_READ,
2187 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002188 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .write = NULL,
2190 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002191 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002192 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 {
2195 .vendor = "Atmel",
2196 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002197 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002199 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002200 .total_size = 4096 /* Size can only be determined from status register */,
2201 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002202 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002203 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002204 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 .tested = TEST_BAD_READ,
2206 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002207 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002208 .write = NULL,
2209 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002210 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002211 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002213 {
2214 .vendor = "Atmel",
2215 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002216 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002217 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002218 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002219 .total_size = 8192 /* Size can only be determined from status register */,
2220 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002221 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002222 .tested = TEST_BAD_READ,
2223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002224 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002225 .write = NULL,
2226 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002227 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002228 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 {
2231 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002232 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002233 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002234 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002235 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002236 .total_size = 64,
2237 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002238 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002239 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002240 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002241 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002242 .block_erasers =
2243 {
2244 {
2245 .eraseblocks = { {64 * 1024, 1} },
2246 .block_erase = erase_chip_block_jedec,
2247 }
2248 },
Sean Nelson35727f72010-01-28 23:55:12 +00002249 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002250 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002251 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002252 },
2253
2254 {
2255 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002256 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002257 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002258 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002259 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .total_size = 256,
2261 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002262 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002263 .tested = TEST_UNTESTED,
2264 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002265 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002266 .block_erasers =
2267 {
2268 {
2269 .eraseblocks = {
2270 {16 * 1024, 1},
2271 {8 * 1024, 2},
2272 {96 * 1024, 1},
2273 {128 * 1024, 1},
2274 },
2275 .block_erase = erase_sector_jedec,
2276 }, {
2277 .eraseblocks = { {256 * 1024, 1} },
2278 .block_erase = erase_chip_block_jedec,
2279 }
2280 },
Sean Nelson35727f72010-01-28 23:55:12 +00002281 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002282 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002284 },
2285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .total_size = 256,
2293 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002294 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002295 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002297 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002298 .block_erasers =
2299 {
2300 {
2301 .eraseblocks = {
2302 {128 * 1024, 1},
2303 {96 * 1024, 1},
2304 {8 * 1024, 2},
2305 {16 * 1024, 1},
2306 },
2307 .block_erase = erase_sector_jedec,
2308 }, {
2309 .eraseblocks = { {256 * 1024, 1} },
2310 .block_erase = erase_chip_block_jedec,
2311 }
2312 },
Sean Nelson35727f72010-01-28 23:55:12 +00002313 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002315 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002316 },
2317
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002318 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002319 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002320 .name = "AT49(H)F010",
2321 .bustype = BUS_PARALLEL,
2322 .manufacture_id = ATMEL_ID,
2323 .model_id = ATMEL_AT49F010,
2324 .total_size = 128,
2325 .page_size = 0, /* unused */
2326 .feature_bits = FEATURE_EITHER_RESET,
2327 .tested = TEST_OK_PREW,
2328 .probe = probe_jedec,
2329 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2330 .block_erasers =
2331 {
2332 {
2333 .eraseblocks = { {128 * 1024, 1} },
2334 .block_erase = erase_chip_block_jedec,
2335 }
2336 },
2337 .printlock = printlock_at49f,
2338 .write = write_jedec_1,
2339 .read = read_memmapped,
2340 .voltage = {4500, 5500},
2341 },
2342
2343 {
2344 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002345 .name = "AT49F020",
2346 .bustype = BUS_PARALLEL,
2347 .manufacture_id = ATMEL_ID,
2348 .model_id = ATMEL_AT49F020,
2349 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002350 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002351 .feature_bits = FEATURE_EITHER_RESET,
2352 .tested = TEST_OK_PRE,
2353 .probe = probe_jedec,
2354 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2355 .block_erasers =
2356 {
2357 {
2358 .eraseblocks = { {256 * 1024, 1} },
2359 .block_erase = erase_chip_block_jedec,
2360 }
2361 /* Chip features an optional permanent write protection
2362 * of the first 8 kB. The erase function is the same as
2363 * above, but 00000H to 01FFFH will not be erased.
2364 * FIXME: add another eraser when partial erasers are
2365 * supported.
2366 */
2367 },
2368 .printlock = printlock_at49f,
2369 .write = write_jedec_1,
2370 .read = read_memmapped,
2371 .voltage = {4500, 5500},
2372 },
2373
2374 {
2375 .vendor = "Atmel",
2376 .name = "AT49F040",
2377 .bustype = BUS_PARALLEL,
2378 .manufacture_id = ATMEL_ID,
2379 .model_id = ATMEL_AT49F040,
2380 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002381 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002382 .feature_bits = FEATURE_EITHER_RESET,
2383 .tested = TEST_UNTESTED,
2384 .probe = probe_jedec,
2385 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2386 .block_erasers =
2387 {
2388 {
2389 .eraseblocks = { {512 * 1024, 1} },
2390 .block_erase = erase_chip_block_jedec,
2391 }
2392 /* Chip features an optional permanent write protection
2393 * of the first 16 kB. The erase function is the same as
2394 * above, but 00000H to 03FFFH will not be erased.
2395 * FIXME: add another eraser when partial erasers are
2396 * supported.
2397 */
2398 },
2399 .printlock = printlock_at49f,
2400 .write = write_jedec_1,
2401 .read = read_memmapped,
2402 .voltage = {4500, 5500},
2403 },
2404
2405 {
2406 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002407 .name = "AT49F080",
2408 .bustype = BUS_PARALLEL,
2409 .manufacture_id = ATMEL_ID,
2410 .model_id = ATMEL_AT49F080,
2411 .total_size = 1024,
2412 .page_size = 0, /* unused */
2413 .feature_bits = FEATURE_EITHER_RESET,
2414 .tested = TEST_UNTESTED,
2415 .probe = probe_jedec,
2416 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2417 .block_erasers =
2418 {
2419 {
2420 .eraseblocks = { {1024 * 1024, 1} },
2421 .block_erase = erase_chip_block_jedec,
2422 }
2423 /* Chip features an optional permanent write protection
2424 * of the first 16 kB. The erase function is the same as
2425 * above, but 00000H to 03FFFH will not be erased.
2426 * FIXME: add another eraser when partial erasers are
2427 * supported.
2428 */
2429 },
2430 .printlock = printlock_at49f,
2431 .write = write_jedec_1,
2432 .read = read_memmapped,
2433 .voltage = {4500, 5500},
2434 },
2435
2436 {
2437 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2438 .vendor = "Atmel",
2439 .name = "AT49F080T",
2440 .bustype = BUS_PARALLEL,
2441 .manufacture_id = ATMEL_ID,
2442 .model_id = ATMEL_AT49F080T,
2443 .total_size = 1024,
2444 .page_size = 0, /* unused */
2445 .feature_bits = FEATURE_EITHER_RESET,
2446 .tested = TEST_UNTESTED,
2447 .probe = probe_jedec,
2448 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2449 .block_erasers =
2450 {
2451 {
2452 .eraseblocks = { {1024 * 1024, 1} },
2453 .block_erase = erase_chip_block_jedec,
2454 }
2455 /* Chip features an optional permanent write protection
2456 * of the first 16 kB. The erase function is the same as
2457 * above, but FC000H to FFFFFH will not be erased.
2458 * FIXME: add another eraser when partial erasers are
2459 * supported.
2460 */
2461 },
2462 .printlock = printlock_at49f,
2463 .write = write_jedec_1,
2464 .read = read_memmapped,
2465 .voltage = {4500, 5500},
2466 },
2467
2468 {
2469 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002470 .name = "AT49LH002",
2471 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2472 .manufacture_id = ATMEL_ID,
2473 .model_id = ATMEL_AT49LH002,
2474 .total_size = 256,
2475 .page_size = 0, /* unused */
2476 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2477 .tested = TEST_UNTESTED,
2478 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2479 .probe_timing = TIMING_FIXME,
2480 .block_erasers =
2481 {
2482 {
2483 .eraseblocks = {
2484 {64 * 1024, 3},
2485 {32 * 1024, 1},
2486 {8 * 1024, 2},
2487 {16 * 1024, 1},
2488 },
2489 .block_erase = erase_block_82802ab,
2490 }, {
2491 .eraseblocks = {
2492 {64 * 1024, 4},
2493 },
2494 .block_erase = NULL, /* TODO: Implement. */
2495 },
2496 },
2497 .printlock = NULL, /* TODO */
2498 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2499 .write = write_82802ab,
2500 .read = read_memmapped,
2501 .voltage = {3000, 3600},
2502 },
2503
2504 {
Andrew Morganca081462011-09-13 22:05:44 +00002505 .vendor = "Catalyst",
2506 .name = "CAT28F512",
2507 .bustype = BUS_PARALLEL,
2508 .manufacture_id = CATALYST_ID,
2509 .model_id = CATALYST_CAT28F512,
2510 .total_size = 64,
2511 .page_size = 0, /* unused */
2512 .feature_bits = 0,
2513 .tested = TEST_OK_PR,
2514 .probe = probe_jedec, /* FIXME! */
2515 .probe_timing = TIMING_ZERO,
2516 .block_erasers =
2517 {
2518 {
2519 .eraseblocks = { {64 * 1024, 1} },
2520 .block_erase = NULL, /* TODO */
2521 },
2522 },
2523 .write = NULL, /* TODO */
2524 .read = read_memmapped,
2525 .voltage = {4500, 5500},
2526 },
2527
2528 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002529 .vendor = "Bright",
2530 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002531 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002532 .manufacture_id = BRIGHT_ID,
2533 .model_id = BRIGHT_BM29F040,
2534 .total_size = 512,
2535 .page_size = 64 * 1024,
2536 .feature_bits = FEATURE_EITHER_RESET,
2537 .tested = TEST_OK_PR,
2538 .probe = probe_jedec,
2539 .probe_timing = TIMING_ZERO,
2540 .block_erasers =
2541 {
2542 {
2543 .eraseblocks = { {64 * 1024, 8} },
2544 .block_erase = erase_sector_jedec,
2545 }, {
2546 .eraseblocks = { {512 * 1024, 1} },
2547 .block_erase = erase_chip_block_jedec,
2548 },
2549 },
2550 .write = write_jedec_1,
2551 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002552 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002553 },
2554
2555 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002556 .vendor = "EMST",
2557 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .manufacture_id = EMST_ID,
2560 .model_id = EMST_F49B002UA,
2561 .total_size = 256,
2562 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002563 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002564 .tested = TEST_UNTESTED,
2565 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002566 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = {
2571 {128 * 1024, 1},
2572 {96 * 1024, 1},
2573 {8 * 1024, 2},
2574 {16 * 1024, 1},
2575 },
2576 .block_erase = erase_sector_jedec,
2577 }, {
2578 .eraseblocks = { {256 * 1024, 1} },
2579 .block_erase = erase_chip_block_jedec,
2580 }
2581 },
Sean Nelson35727f72010-01-28 23:55:12 +00002582 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002584 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002585 },
2586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002587 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002588 .vendor = "EMST",
2589 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002590 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002591 .manufacture_id = EMST_ID,
2592 .model_id = EMST_F25L008A,
2593 .total_size = 1024,
2594 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002595 .feature_bits = FEATURE_WRSR_EITHER,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002596 .tested = TEST_UNTESTED,
2597 .probe = probe_spi_rdid,
2598 .probe_timing = TIMING_ZERO,
2599 .block_erasers =
2600 {
2601 {
2602 .eraseblocks = { {4 * 1024, 256} },
2603 .block_erase = spi_block_erase_20,
2604 }, {
2605 .eraseblocks = { {64 * 1024, 16} },
2606 .block_erase = spi_block_erase_d8,
2607 }, {
2608 .eraseblocks = { {1024 * 1024, 1} },
2609 .block_erase = spi_block_erase_60,
2610 }, {
2611 .eraseblocks = { {1024 * 1024, 1} },
2612 .block_erase = spi_block_erase_c7,
2613 }
2614 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002615 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002616 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002617 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002618 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002619 },
2620
2621 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002622 .vendor = "Eon",
2623 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002624 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002625 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002626 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002627 .total_size = 64,
2628 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002629 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002630 .tested = TEST_UNTESTED,
2631 .probe = probe_spi_rdid,
2632 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002633 .block_erasers =
2634 {
2635 {
2636 .eraseblocks = {
2637 {4 * 1024, 2},
2638 {8 * 1024, 1},
2639 {16 * 1024, 1},
2640 {32 * 1024, 1},
2641 },
2642 .block_erase = spi_block_erase_d8,
2643 }, {
2644 .eraseblocks = { {64 * 1024, 1} },
2645 .block_erase = spi_block_erase_c7,
2646 }
2647 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002648 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002649 .write = spi_chip_write_256,
2650 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002651 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002652 },
2653
2654 {
2655 .vendor = "Eon",
2656 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002657 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002658 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002659 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002660 .total_size = 64,
2661 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002662 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002663 .tested = TEST_UNTESTED,
2664 .probe = probe_spi_rdid,
2665 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002666 .block_erasers =
2667 {
2668 {
2669 .eraseblocks = {
2670 {32 * 1024, 1},
2671 {16 * 1024, 1},
2672 {8 * 1024, 1},
2673 {4 * 1024, 2},
2674 },
2675 .block_erase = spi_block_erase_d8,
2676 }, {
2677 .eraseblocks = { {64 * 1024, 1} },
2678 .block_erase = spi_block_erase_c7,
2679 }
2680 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002681 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002682 .write = spi_chip_write_256,
2683 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002684 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002685 },
2686
2687 {
2688 .vendor = "Eon",
2689 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002690 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002691 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002692 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002693 .total_size = 128,
2694 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002695 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002696 .tested = TEST_UNTESTED,
2697 .probe = probe_spi_rdid,
2698 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002699 .block_erasers =
2700 {
2701 {
2702 .eraseblocks = {
2703 {4 * 1024, 2},
2704 {8 * 1024, 1},
2705 {16 * 1024, 1},
2706 {32 * 1024, 3},
2707 },
2708 .block_erase = spi_block_erase_d8,
2709 }, {
2710 .eraseblocks = { {128 * 1024, 1} },
2711 .block_erase = spi_block_erase_c7,
2712 }
2713 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002714 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002715 .write = spi_chip_write_256,
2716 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002717 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002718 },
2719
2720 {
2721 .vendor = "Eon",
2722 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002723 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002724 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002725 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002726 .total_size = 128,
2727 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002728 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002729 .tested = TEST_UNTESTED,
2730 .probe = probe_spi_rdid,
2731 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002732 .block_erasers =
2733 {
2734 {
2735 .eraseblocks = {
2736 {32 * 1024, 3},
2737 {16 * 1024, 1},
2738 {8 * 1024, 1},
2739 {4 * 1024, 2},
2740 },
2741 .block_erase = spi_block_erase_d8,
2742 }, {
2743 .eraseblocks = { {128 * 1024, 1} },
2744 .block_erase = spi_block_erase_c7,
2745 }
2746 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002747 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002748 .write = spi_chip_write_256,
2749 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002750 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002751 },
2752
2753 {
2754 .vendor = "Eon",
2755 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002756 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002757 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002758 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002759 .total_size = 256,
2760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002762 .tested = TEST_UNTESTED,
2763 .probe = probe_spi_rdid,
2764 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002765 .block_erasers =
2766 {
2767 {
2768 .eraseblocks = {
2769 {4 * 1024, 2},
2770 {8 * 1024, 1},
2771 {16 * 1024, 1},
2772 {32 * 1024, 1},
2773 {64 * 1024, 3}
2774 },
2775 .block_erase = spi_block_erase_d8,
2776 }, {
2777 .eraseblocks = { {256 * 1024, 1} },
2778 .block_erase = spi_block_erase_c7,
2779 }
2780 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002781 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002782 .write = spi_chip_write_256,
2783 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002784 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002785 },
2786
2787 {
2788 .vendor = "Eon",
2789 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002790 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002791 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002792 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002793 .total_size = 256,
2794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002795 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002796 .tested = TEST_UNTESTED,
2797 .probe = probe_spi_rdid,
2798 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002799 .block_erasers =
2800 {
2801 {
2802 .eraseblocks = {
2803 {64 * 1024, 3},
2804 {32 * 1024, 1},
2805 {16 * 1024, 1},
2806 {8 * 1024, 1},
2807 {4 * 1024, 2},
2808 },
2809 .block_erase = spi_block_erase_d8,
2810 }, {
2811 .eraseblocks = { {256 * 1024, 1} },
2812 .block_erase = spi_block_erase_c7,
2813 }
2814 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002815 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002816 .write = spi_chip_write_256,
2817 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002818 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002819 },
2820
2821 {
2822 .vendor = "Eon",
2823 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002824 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002825 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002826 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002827 .total_size = 512,
2828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002830 .tested = TEST_UNTESTED,
2831 .probe = probe_spi_rdid,
2832 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002833 .block_erasers =
2834 {
2835 {
2836 .eraseblocks = {
2837 {4 * 1024, 2},
2838 {8 * 1024, 1},
2839 {16 * 1024, 1},
2840 {32 * 1024, 1},
2841 {64 * 1024, 7}
2842 },
2843 .block_erase = spi_block_erase_d8,
2844 }, {
2845 .eraseblocks = { {512 * 1024, 1} },
2846 .block_erase = spi_block_erase_c7,
2847 }
2848 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002849 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002850 .write = spi_chip_write_256,
2851 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002852 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002853 },
2854
2855 {
2856 .vendor = "Eon",
2857 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002858 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002859 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002860 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002861 .total_size = 512,
2862 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002863 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002864 .tested = TEST_UNTESTED,
2865 .probe = probe_spi_rdid,
2866 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002867 .block_erasers =
2868 {
2869 {
2870 .eraseblocks = {
2871 {64 * 1024, 7},
2872 {32 * 1024, 1},
2873 {16 * 1024, 1},
2874 {8 * 1024, 1},
2875 {4 * 1024, 2},
2876 },
2877 .block_erase = spi_block_erase_d8,
2878 }, {
2879 .eraseblocks = { {512 * 1024, 1} },
2880 .block_erase = spi_block_erase_c7,
2881 }
2882 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002883 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002884 .write = spi_chip_write_256,
2885 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002886 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002887 },
2888
2889 {
2890 .vendor = "Eon",
2891 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002892 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002893 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002894 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002895 .total_size = 1024,
2896 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002897 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002898 .tested = TEST_UNTESTED,
2899 .probe = probe_spi_rdid,
2900 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002901 .block_erasers =
2902 {
2903 {
2904 .eraseblocks = {
2905 {4 * 1024, 2},
2906 {8 * 1024, 1},
2907 {16 * 1024, 1},
2908 {32 * 1024, 1},
2909 {64 * 1024, 15}
2910 },
2911 .block_erase = spi_block_erase_d8,
2912 }, {
2913 .eraseblocks = { {1024 * 1024, 1} },
2914 .block_erase = spi_block_erase_c7,
2915 }
2916 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002917 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002918 .write = spi_chip_write_256,
2919 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002920 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002921 },
2922
2923 {
2924 .vendor = "Eon",
2925 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002926 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002927 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002928 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002929 .total_size = 1024,
2930 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002931 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002932 .tested = TEST_UNTESTED,
2933 .probe = probe_spi_rdid,
2934 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002935 .block_erasers =
2936 {
2937 {
2938 .eraseblocks = {
2939 {64 * 1024, 15},
2940 {32 * 1024, 1},
2941 {16 * 1024, 1},
2942 {8 * 1024, 1},
2943 {4 * 1024, 2},
2944 },
2945 .block_erase = spi_block_erase_d8,
2946 }, {
2947 .eraseblocks = { {1024 * 1024, 1} },
2948 .block_erase = spi_block_erase_c7,
2949 }
2950 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002951 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002952 .write = spi_chip_write_256,
2953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002954 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002955 },
2956
2957 {
2958 .vendor = "Eon",
2959 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002960 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002961 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002962 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002963 .total_size = 2048,
2964 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002965 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002966 .tested = TEST_UNTESTED,
2967 .probe = probe_spi_rdid,
2968 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002969 .block_erasers =
2970 {
2971 {
2972 .eraseblocks = {
2973 {4 * 1024, 2},
2974 {8 * 1024, 1},
2975 {16 * 1024, 1},
2976 {32 * 1024, 1},
2977 {64 * 1024, 31},
2978 },
2979 .block_erase = spi_block_erase_d8,
2980 }, {
2981 .eraseblocks = { {2 * 1024 * 1024, 1} },
2982 .block_erase = spi_block_erase_c7,
2983 }
2984 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002985 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002986 .write = spi_chip_write_256,
2987 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002988 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002989 },
2990
2991 {
2992 .vendor = "Eon",
2993 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002994 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002995 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002996 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002997 .total_size = 2048,
2998 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002999 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003000 .tested = TEST_UNTESTED,
3001 .probe = probe_spi_rdid,
3002 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003003 .block_erasers =
3004 {
3005 {
3006 .eraseblocks = {
3007 {64 * 1024, 31},
3008 {32 * 1024, 1},
3009 {16 * 1024, 1},
3010 {8 * 1024, 1},
3011 {4 * 1024, 2},
3012 },
3013 .block_erase = spi_block_erase_d8,
3014 }, {
3015 .eraseblocks = { {2 * 1024 * 1024, 1} },
3016 .block_erase = spi_block_erase_c7,
3017 }
3018 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003019 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003020 .write = spi_chip_write_256,
3021 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003022 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003023 },
3024
3025 {
3026 .vendor = "Eon",
3027 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003028 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003029 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003030 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003031 .total_size = 4096,
3032 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003033 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003034 .tested = TEST_UNTESTED,
3035 .probe = probe_spi_rdid,
3036 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003037 .block_erasers =
3038 {
3039 {
3040 .eraseblocks = {
3041 {4 * 1024, 2},
3042 {8 * 1024, 1},
3043 {16 * 1024, 1},
3044 {32 * 1024, 1},
3045 {64 * 1024, 63},
3046 },
3047 .block_erase = spi_block_erase_d8,
3048 }, {
3049 .eraseblocks = { {4 * 1024 * 1024, 1} },
3050 .block_erase = spi_block_erase_c7,
3051 }
3052 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003053 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003054 .write = spi_chip_write_256,
3055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003056 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003057 },
3058
3059 {
3060 .vendor = "Eon",
3061 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003062 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003063 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003064 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003065 .total_size = 4096,
3066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003067 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003068 .tested = TEST_UNTESTED,
3069 .probe = probe_spi_rdid,
3070 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = {
3075 {64 * 1024, 63},
3076 {32 * 1024, 1},
3077 {16 * 1024, 1},
3078 {8 * 1024, 1},
3079 {4 * 1024, 2},
3080 },
3081 .block_erase = spi_block_erase_d8,
3082 }, {
3083 .eraseblocks = { {4 * 1024 * 1024, 1} },
3084 .block_erase = spi_block_erase_c7,
3085 }
3086 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003087 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003088 .write = spi_chip_write_256,
3089 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003090 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003091 },
3092
3093 {
3094 .vendor = "Eon",
3095 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003096 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003097 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003098 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003099 .total_size = 8192,
3100 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003101 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003102 .tested = TEST_UNTESTED,
3103 .probe = probe_spi_rdid,
3104 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003105 .block_erasers =
3106 {
3107 {
3108 .eraseblocks = {
3109 {4 * 1024, 2},
3110 {8 * 1024, 1},
3111 {16 * 1024, 1},
3112 {32 * 1024, 1},
3113 {64 * 1024, 127},
3114 },
3115 .block_erase = spi_block_erase_d8,
3116 }, {
3117 .eraseblocks = { {8 * 1024 * 1024, 1} },
3118 .block_erase = spi_block_erase_c7,
3119 }
3120 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003121 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003122 .write = spi_chip_write_256,
3123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003124 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003125 },
3126
3127 {
3128 .vendor = "Eon",
3129 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003130 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003131 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003132 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003133 .total_size = 8192,
3134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003135 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003136 .tested = TEST_UNTESTED,
3137 .probe = probe_spi_rdid,
3138 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003139 .block_erasers =
3140 {
3141 {
3142 .eraseblocks = {
3143 {64 * 1024, 127},
3144 {32 * 1024, 1},
3145 {16 * 1024, 1},
3146 {8 * 1024, 1},
3147 {4 * 1024, 2},
3148 },
3149 .block_erase = spi_block_erase_d8,
3150 }, {
3151 .eraseblocks = { {8 * 1024 * 1024, 1} },
3152 .block_erase = spi_block_erase_c7,
3153 }
3154 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003155 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003156 .write = spi_chip_write_256,
3157 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003158 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003159 },
3160
3161 {
3162 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003163 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003164 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003165 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003166 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003167 .total_size = 64,
3168 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003169 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003170 .tested = TEST_UNTESTED,
3171 .probe = probe_spi_rdid,
3172 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003173 .block_erasers =
3174 {
3175 {
3176 .eraseblocks = { {4 * 1024, 16} },
3177 .block_erase = spi_block_erase_20,
3178 }, {
3179 .eraseblocks = { {32 * 1024, 2} },
3180 .block_erase = spi_block_erase_d8,
3181 }, {
3182 .eraseblocks = { {32 * 1024, 2} },
3183 .block_erase = spi_block_erase_52,
3184 }, {
3185 .eraseblocks = { {64 * 1024, 1} },
3186 .block_erase = spi_block_erase_60,
3187 }, {
3188 .eraseblocks = { {64 * 1024, 1} },
3189 .block_erase = spi_block_erase_c7,
3190 }
3191 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003192 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003193 .write = spi_chip_write_256,
3194 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003195 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003196 },
3197
3198 {
3199 .vendor = "Eon",
3200 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003201 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003202 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003203 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003204 .total_size = 128,
3205 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003206 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003207 .tested = TEST_UNTESTED,
3208 .probe = probe_spi_rdid,
3209 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003210 .block_erasers =
3211 {
3212 {
3213 .eraseblocks = { {4 * 1024, 32} },
3214 .block_erase = spi_block_erase_20,
3215 }, {
3216 .eraseblocks = { {32 * 1024, 4} },
3217 .block_erase = spi_block_erase_d8,
3218 }, {
3219 .eraseblocks = { {32 * 1024, 4} },
3220 .block_erase = spi_block_erase_52,
3221 }, {
3222 .eraseblocks = { {128 * 1024, 1} },
3223 .block_erase = spi_block_erase_60,
3224 }, {
3225 .eraseblocks = { {128 * 1024, 1} },
3226 .block_erase = spi_block_erase_c7,
3227 }
3228 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003229 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003230 .write = spi_chip_write_256,
3231 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003232 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003233 },
3234
3235 {
3236 .vendor = "Eon",
3237 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003238 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003239 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003240 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003241 .total_size = 256,
3242 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003243 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003244 .tested = TEST_UNTESTED,
3245 .probe = probe_spi_rdid,
3246 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = { {4 * 1024, 64} },
3251 .block_erase = spi_block_erase_20,
3252 }, {
3253 .eraseblocks = { {64 * 1024, 4} },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {64 * 1024, 4} },
3257 .block_erase = spi_block_erase_52,
3258 }, {
3259 .eraseblocks = { {256 * 1024, 1} },
3260 .block_erase = spi_block_erase_60,
3261 }, {
3262 .eraseblocks = { {256 * 1024, 1} },
3263 .block_erase = spi_block_erase_c7,
3264 }
3265 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003266 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003267 .write = spi_chip_write_256,
3268 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003269 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003270 },
3271
3272 {
3273 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003274 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003275 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003276 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003277 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003278 .total_size = 512,
3279 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003280 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003281 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003282 .probe = probe_spi_rdid,
3283 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003284 .block_erasers =
3285 {
3286 {
Sean Nelson54596372010-01-09 05:30:14 +00003287 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003288 .block_erase = spi_block_erase_20,
3289 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003290 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003291 .block_erase = spi_block_erase_d8,
3292 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003293 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003294 .block_erase = spi_block_erase_60,
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_c7,
3298 },
3299 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003300 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003301 .write = spi_chip_write_256,
3302 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003303 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003304 },
3305
3306 {
3307 .vendor = "Eon",
3308 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003309 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003310 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003311 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003312 .total_size = 1024,
3313 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003314 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003315 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003316 .probe = probe_spi_rdid,
3317 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003318 .block_erasers =
3319 {
3320 {
3321 .eraseblocks = { {4 * 1024, 256} },
3322 .block_erase = spi_block_erase_20,
3323 }, {
3324 .eraseblocks = { {64 * 1024, 16} },
3325 .block_erase = spi_block_erase_d8,
3326 }, {
3327 .eraseblocks = { {1024 * 1024, 1} },
3328 .block_erase = spi_block_erase_60,
3329 }, {
3330 .eraseblocks = { {1024 * 1024, 1} },
3331 .block_erase = spi_block_erase_c7,
3332 }
3333 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003334 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003335 .write = spi_chip_write_256,
3336 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003337 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003338 },
3339
3340 {
3341 .vendor = "Eon",
3342 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003343 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003344 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003345 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003346 .total_size = 2048,
3347 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003348 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003349 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003350 .probe = probe_spi_rdid,
3351 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003352 .block_erasers =
3353 {
3354 {
3355 .eraseblocks = { {4 * 1024, 512} },
3356 .block_erase = spi_block_erase_20,
3357 }, {
3358 .eraseblocks = { {64 * 1024, 32} },
3359 .block_erase = spi_block_erase_d8,
3360 }, {
3361 .eraseblocks = { {2 * 1024 * 1024, 1} },
3362 .block_erase = spi_block_erase_60,
3363 }, {
3364 .eraseblocks = { {2 * 1024 * 1024, 1} },
3365 .block_erase = spi_block_erase_c7,
3366 }
3367 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003368 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003369 .write = spi_chip_write_256,
3370 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003371 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003372 },
3373
3374 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003375 .vendor = "Eon",
3376 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003377 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003378 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003379 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003380 .total_size = 4096,
3381 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003382 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003383 .tested = TEST_UNTESTED,
3384 .probe = probe_spi_rdid,
3385 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003386 .block_erasers =
3387 {
3388 {
3389 .eraseblocks = { {4 * 1024, 1024} },
3390 .block_erase = spi_block_erase_20,
3391 }, {
3392 .eraseblocks = { {64 * 1024, 64} },
3393 .block_erase = spi_block_erase_d8,
3394 }, {
3395 .eraseblocks = { {4 * 1024 * 1024, 1} },
3396 .block_erase = spi_block_erase_60,
3397 }, {
3398 .eraseblocks = { {4 * 1024 * 1024, 1} },
3399 .block_erase = spi_block_erase_c7,
3400 }
3401 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003402 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003403 .write = spi_chip_write_256,
3404 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003405 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003406 },
3407
3408 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003409 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003410 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003411 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003412 .manufacture_id = EON_ID_NOPREFIX,
3413 .model_id = EON_EN25Q40,
3414 .total_size = 512,
3415 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003416 /* OTP: 256B total; enter 0x3A */
3417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003418 .tested = TEST_UNTESTED,
3419 .probe = probe_spi_rdid,
3420 .probe_timing = TIMING_ZERO,
3421 .block_erasers =
3422 {
3423 {
3424 .eraseblocks = { {4 * 1024, 128} },
3425 .block_erase = spi_block_erase_20,
3426 }, {
3427 .eraseblocks = { {64 * 1024, 8} },
3428 .block_erase = spi_block_erase_d8,
3429 }, {
3430 .eraseblocks = { {512 * 1024, 1} },
3431 .block_erase = spi_block_erase_60,
3432 }, {
3433 .eraseblocks = { {512 * 1024, 1} },
3434 .block_erase = spi_block_erase_c7,
3435 }
3436 },
3437 .unlock = spi_disable_blockprotect,
3438 .write = spi_chip_write_256,
3439 .read = spi_chip_read,
3440 .voltage = {2700, 3600},
3441 },
3442
3443 {
3444 .vendor = "Eon",
3445 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003446 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003447 .manufacture_id = EON_ID_NOPREFIX,
3448 .model_id = EON_EN25Q80,
3449 .total_size = 1024,
3450 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003451 /* OTP: 256B total; enter 0x3A */
3452 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003453 .tested = TEST_UNTESTED,
3454 .probe = probe_spi_rdid,
3455 .probe_timing = TIMING_ZERO,
3456 .block_erasers =
3457 {
3458 {
3459 .eraseblocks = { {4 * 1024, 256} },
3460 .block_erase = spi_block_erase_20,
3461 }, {
3462 .eraseblocks = { {64 * 1024, 16} },
3463 .block_erase = spi_block_erase_d8,
3464 }, {
3465 .eraseblocks = { {1024 * 1024, 1} },
3466 .block_erase = spi_block_erase_60,
3467 }, {
3468 .eraseblocks = { {1024 * 1024, 1} },
3469 .block_erase = spi_block_erase_c7,
3470 }
3471 },
3472 .unlock = spi_disable_blockprotect,
3473 .write = spi_chip_write_256,
3474 .read = spi_chip_read,
3475 .voltage = {2700, 3600},
3476 },
3477
3478 {
3479 /* Note: EN25D16 is an evil twin which shares the model ID
3480 but has different write protection capabilities */
3481 .vendor = "Eon",
3482 .name = "EN25Q16",
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_EN25Q16,
3486 .total_size = 2048,
3487 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003488 /* OTP: D16 512B/Q16 128B 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, 512} },
3497 .block_erase = spi_block_erase_20,
3498 }, {
3499 .eraseblocks = { {64 * 1024, 32} },
3500 .block_erase = spi_block_erase_d8,
3501 }, {
3502 /* not supported by Q16 version */
3503 .eraseblocks = { {64 * 1024, 32} },
3504 .block_erase = spi_block_erase_52,
3505 }, {
3506 .eraseblocks = { {2 * 1024 * 1024, 1} },
3507 .block_erase = spi_block_erase_60,
3508 }, {
3509 .eraseblocks = { {2 * 1024 * 1024, 1} },
3510 .block_erase = spi_block_erase_c7,
3511 }
3512 },
3513 .unlock = spi_disable_blockprotect,
3514 .write = spi_chip_write_256,
3515 .read = spi_chip_read,
3516 .voltage = {2700, 3600},
3517 },
3518
3519 {
3520 .vendor = "Eon",
3521 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003522 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003523 .manufacture_id = EON_ID_NOPREFIX,
3524 .model_id = EON_EN25Q32,
3525 .total_size = 4096,
3526 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003527 /* OTP: 512B total; enter 0x3A */
3528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003529 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003530 .probe = probe_spi_rdid,
3531 .probe_timing = TIMING_ZERO,
3532 .block_erasers =
3533 {
3534 {
3535 .eraseblocks = { {4 * 1024, 1024} },
3536 .block_erase = spi_block_erase_20,
3537 }, {
3538 .eraseblocks = { {64 * 1024, 64} },
3539 .block_erase = spi_block_erase_d8,
3540 }, {
3541 .eraseblocks = { {4 * 1024 * 1024, 1} },
3542 .block_erase = spi_block_erase_60,
3543 }, {
3544 .eraseblocks = { {4 * 1024 * 1024, 1} },
3545 .block_erase = spi_block_erase_c7,
3546 }
3547 },
3548 .unlock = spi_disable_blockprotect,
3549 .write = spi_chip_write_256,
3550 .read = spi_chip_read,
3551 .voltage = {2700, 3600},
3552 },
3553
3554 {
3555 .vendor = "Eon",
3556 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003557 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003558 .manufacture_id = EON_ID_NOPREFIX,
3559 .model_id = EON_EN25Q64,
3560 .total_size = 8192,
3561 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003562 /* OTP: 512B total; enter 0x3A */
3563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003564 .tested = TEST_UNTESTED,
3565 .probe = probe_spi_rdid,
3566 .probe_timing = TIMING_ZERO,
3567 .block_erasers =
3568 {
3569 {
3570 .eraseblocks = { {4 * 1024, 2048} },
3571 .block_erase = spi_block_erase_20,
3572 }, {
3573 .eraseblocks = { {64 * 1024, 128} },
3574 .block_erase = spi_block_erase_d8,
3575 }, {
3576 .eraseblocks = { {8 * 1024 * 1024, 1} },
3577 .block_erase = spi_block_erase_60,
3578 }, {
3579 .eraseblocks = { {8 * 1024 * 1024, 1} },
3580 .block_erase = spi_block_erase_c7,
3581 }
3582 },
3583 .unlock = spi_disable_blockprotect,
3584 .write = spi_chip_write_256,
3585 .read = spi_chip_read,
3586 .voltage = {2700, 3600},
3587 },
3588
3589 {
3590 .vendor = "Eon",
3591 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003592 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003593 .manufacture_id = EON_ID_NOPREFIX,
3594 .model_id = EON_EN25Q128,
3595 .total_size = 16384,
3596 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003597 /* OTP: 512B total; enter 0x3A */
3598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003599 .tested = TEST_UNTESTED,
3600 .probe = probe_spi_rdid,
3601 .probe_timing = TIMING_ZERO,
3602 .block_erasers =
3603 {
3604 {
3605 .eraseblocks = { {4 * 1024, 4096} },
3606 .block_erase = spi_block_erase_20,
3607 }, {
3608 .eraseblocks = { {64 * 1024, 256} },
3609 .block_erase = spi_block_erase_d8,
3610 }, {
3611 .eraseblocks = { {16 * 1024 * 1024, 1} },
3612 .block_erase = spi_block_erase_60,
3613 }, {
3614 .eraseblocks = { {16 * 1024 * 1024, 1} },
3615 .block_erase = spi_block_erase_c7,
3616 }
3617 },
3618 .unlock = spi_disable_blockprotect,
3619 .write = spi_chip_write_256,
3620 .read = spi_chip_read,
3621 },
3622
3623 {
3624 .vendor = "Eon",
3625 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003626 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003627 .manufacture_id = EON_ID_NOPREFIX,
3628 .model_id = EON_EN25QH16,
3629 .total_size = 2048,
3630 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003631 /* supports SFDP */
3632 /* OTP: 512B total; enter 0x3A */
3633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003634 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003635 .probe = probe_spi_rdid,
3636 .probe_timing = TIMING_ZERO,
3637 .block_erasers =
3638 {
3639 {
3640 .eraseblocks = { {4 * 1024, 512} },
3641 .block_erase = spi_block_erase_20,
3642 }, {
3643 .eraseblocks = { {64 * 1024, 32} },
3644 .block_erase = spi_block_erase_d8,
3645 }, {
3646 .eraseblocks = { {1024 * 2048, 1} },
3647 .block_erase = spi_block_erase_60,
3648 }, {
3649 .eraseblocks = { {1024 * 2048, 1} },
3650 .block_erase = spi_block_erase_c7,
3651 }
3652 },
3653 .unlock = spi_disable_blockprotect,
3654 .write = spi_chip_write_256,
3655 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003656 .voltage = {2700, 3600},
3657 },
3658
3659 {
3660 .vendor = "Eon",
3661 .name = "EN25QH32",
3662 .bustype = BUS_SPI,
3663 .manufacture_id = EON_ID_NOPREFIX,
3664 .model_id = EON_EN25QH32,
3665 .total_size = 4096,
3666 .page_size = 256,
3667 /* supports SFDP */
3668 /* OTP: 512B total; enter 0x3A */
3669 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3670 .tested = TEST_UNTESTED,
3671 .probe = probe_spi_rdid,
3672 .probe_timing = TIMING_ZERO,
3673 .block_erasers =
3674 {
3675 {
3676 .eraseblocks = { {4 * 1024, 1024} },
3677 .block_erase = spi_block_erase_20,
3678 }, {
3679 .eraseblocks = { {64 * 1024, 64} },
3680 .block_erase = spi_block_erase_d8,
3681 }, {
3682 .eraseblocks = { {1024 * 4096, 1} },
3683 .block_erase = spi_block_erase_60,
3684 }, {
3685 .eraseblocks = { {1024 * 4096, 1} },
3686 .block_erase = spi_block_erase_c7,
3687 }
3688 },
3689 .unlock = spi_disable_blockprotect,
3690 .write = spi_chip_write_256,
3691 .read = spi_chip_read,
3692 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003693 },
3694
3695 {
3696 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003697 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003698 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003699 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003700 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003701 .total_size = 128,
3702 .page_size = 128,
3703 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003704 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003705 .probe = probe_jedec,
3706 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3707 .block_erasers =
3708 {
3709 {
3710 .eraseblocks = { {16 * 1024, 8} },
3711 .block_erase = erase_sector_jedec,
3712 },
3713 {
3714 .eraseblocks = { {128 * 1024, 1} },
3715 .block_erase = erase_chip_block_jedec,
3716 },
3717 },
3718 .write = write_jedec_1,
3719 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003720 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003721 },
3722
3723 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003724 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003725 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003726 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003727 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003728 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003729 .total_size = 256,
3730 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003731 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003732 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003733 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003734 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003735 .block_erasers =
3736 {
3737 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003738 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003739 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003740 {8 * 1024, 2},
3741 {32 * 1024, 1},
3742 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003743 },
3744 .block_erase = erase_sector_jedec,
3745 }, {
3746 .eraseblocks = { {256 * 1024, 1} },
3747 .block_erase = erase_chip_block_jedec,
3748 },
3749 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003752 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003753 },
3754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003755 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003756 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003757 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003758 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003759 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003760 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003761 .total_size = 256,
3762 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003763 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003765 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003766 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003767 .block_erasers =
3768 {
3769 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003770 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003771 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003772 {32 * 1024, 1},
3773 {8 * 1024, 2},
3774 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003775 },
3776 .block_erase = erase_sector_jedec,
3777 }, {
3778 .eraseblocks = { {256 * 1024, 1} },
3779 .block_erase = erase_chip_block_jedec,
3780 },
3781 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003782 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003784 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003785 },
3786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003787 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003788 .vendor = "Eon",
3789 .name = "EN29LV640B",
3790 .bustype = BUS_PARALLEL,
3791 .manufacture_id = EON_ID,
3792 .model_id = EON_EN29LV640B,
3793 .total_size = 8192,
3794 .page_size = 8192,
3795 .feature_bits = 0,
3796 .tested = TEST_OK_PREW,
3797 .probe = probe_en29lv640b,
3798 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3799 .block_erasers =
3800 {
3801 {
3802 .eraseblocks = {
3803 {8 * 1024, 8},
3804 {64 * 1024, 127},
3805 },
3806 .block_erase = block_erase_en29lv640b,
3807 }, {
3808 .eraseblocks = { {8 * 1024 * 1024, 1} },
3809 .block_erase = block_erase_chip_en29lv640b,
3810 },
3811 },
3812 .write = write_en29lv640b,
3813 .read = read_memmapped,
3814 .voltage = {2700, 3600},
3815 },
3816
3817 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003818 .vendor = "Fujitsu",
3819 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003820 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003821 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003822 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003823 .total_size = 512,
3824 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003825 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003826 .tested = TEST_UNTESTED,
3827 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003828 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003829 .block_erasers =
3830 {
3831 {
3832 .eraseblocks = {
3833 {16 * 1024, 1},
3834 {8 * 1024, 2},
3835 {32 * 1024, 1},
3836 {64 * 1024, 7},
3837 },
Sean Nelson35727f72010-01-28 23:55:12 +00003838 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003839 }, {
3840 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003841 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003842 },
3843 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003844 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003845 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003846 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003847 },
3848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003849 {
3850 .vendor = "Fujitsu",
3851 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003852 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003853 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003854 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003855 .total_size = 512,
3856 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003857 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003858 .tested = TEST_UNTESTED,
3859 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003860 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003861 .block_erasers =
3862 {
3863 {
3864 .eraseblocks = {
3865 {64 * 1024, 7},
3866 {32 * 1024, 1},
3867 {8 * 1024, 2},
3868 {16 * 1024, 1},
3869 },
Sean Nelson35727f72010-01-28 23:55:12 +00003870 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003871 }, {
3872 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003873 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003874 },
3875 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003876 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003877 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003878 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003879 },
3880
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003881 {
Sean Nelson35727f72010-01-28 23:55:12 +00003882 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003883 .vendor = "Fujitsu",
3884 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003885 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003886 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003887 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003888 .total_size = 512,
3889 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003890 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003891 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003892 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003893 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003894 .block_erasers =
3895 {
3896 {
3897 .eraseblocks = {
3898 {16 * 1024, 1},
3899 {8 * 1024, 2},
3900 {32 * 1024, 1},
3901 {64 * 1024, 7},
3902 },
3903 .block_erase = block_erase_m29f400bt,
3904 }, {
3905 .eraseblocks = { {512 * 1024, 1} },
3906 .block_erase = block_erase_chip_m29f400bt,
3907 },
3908 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003909 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003910 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003911 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003912 },
3913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003914 {
3915 .vendor = "Fujitsu",
3916 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003917 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003918 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003919 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003920 .total_size = 512,
3921 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003922 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003923 .tested = TEST_UNTESTED,
3924 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003925 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003926 .block_erasers =
3927 {
3928 {
3929 .eraseblocks = {
3930 {64 * 1024, 7},
3931 {32 * 1024, 1},
3932 {8 * 1024, 2},
3933 {16 * 1024, 1},
3934 },
3935 .block_erase = block_erase_m29f400bt,
3936 }, {
3937 .eraseblocks = { {512 * 1024, 1} },
3938 .block_erase = block_erase_chip_m29f400bt,
3939 },
3940 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003941 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003942 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003943 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003944 },
3945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003946 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003947 .vendor = "GigaDevice",
3948 .name = "GD25Q20",
3949 .bustype = BUS_SPI,
3950 .manufacture_id = GIGADEVICE_ID,
3951 .model_id = GIGADEVICE_GD25Q20,
3952 .total_size = 256,
3953 .page_size = 256,
3954 .feature_bits = FEATURE_WRSR_WREN,
3955 .tested = TEST_UNTESTED,
3956 .probe = probe_spi_rdid,
3957 .probe_timing = TIMING_ZERO,
3958 .block_erasers =
3959 {
3960 {
3961 .eraseblocks = { {4 * 1024, 64} },
3962 .block_erase = spi_block_erase_20,
3963 }, {
3964 .eraseblocks = { {32 * 1024, 8} },
3965 .block_erase = spi_block_erase_52,
3966 }, {
3967 .eraseblocks = { {64 * 1024, 4} },
3968 .block_erase = spi_block_erase_d8,
3969 }, {
3970 .eraseblocks = { {256 * 1024, 1} },
3971 .block_erase = spi_block_erase_60,
3972 }, {
3973 .eraseblocks = { {256 * 1024, 1} },
3974 .block_erase = spi_block_erase_c7,
3975 }
3976 },
3977 .unlock = spi_disable_blockprotect,
3978 .write = spi_chip_write_256,
3979 .read = spi_chip_read,
3980 .voltage = {2700, 3600},
3981 },
3982
3983 {
3984 .vendor = "GigaDevice",
3985 .name = "GD25Q40",
3986 .bustype = BUS_SPI,
3987 .manufacture_id = GIGADEVICE_ID,
3988 .model_id = GIGADEVICE_GD25Q40,
3989 .total_size = 512,
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, 128} },
3999 .block_erase = spi_block_erase_20,
4000 }, {
4001 .eraseblocks = { {32 * 1024, 16} },
4002 .block_erase = spi_block_erase_52,
4003 }, {
4004 .eraseblocks = { {64 * 1024, 8} },
4005 .block_erase = spi_block_erase_d8,
4006 }, {
4007 .eraseblocks = { {512 * 1024, 1} },
4008 .block_erase = spi_block_erase_60,
4009 }, {
4010 .eraseblocks = { {512 * 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,
4017 .voltage = {2700, 3600},
4018 },
4019
4020 {
4021 .vendor = "GigaDevice",
4022 .name = "GD25Q80",
4023 .bustype = BUS_SPI,
4024 .manufacture_id = GIGADEVICE_ID,
4025 .model_id = GIGADEVICE_GD25Q80,
4026 .total_size = 1024,
4027 .page_size = 256,
4028 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4029 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4030 .tested = TEST_OK_PREW,
4031 .probe = probe_spi_rdid,
4032 .probe_timing = TIMING_ZERO,
4033 .block_erasers =
4034 {
4035 {
4036 .eraseblocks = { {4 * 1024, 256} },
4037 .block_erase = spi_block_erase_20,
4038 }, {
4039 .eraseblocks = { {32 * 1024, 32} },
4040 .block_erase = spi_block_erase_52,
4041 }, {
4042 .eraseblocks = { {64 * 1024, 16} },
4043 .block_erase = spi_block_erase_d8,
4044 }, {
4045 .eraseblocks = { {1024 * 1024, 1} },
4046 .block_erase = spi_block_erase_60,
4047 }, {
4048 .eraseblocks = { {1024 * 1024, 1} },
4049 .block_erase = spi_block_erase_c7,
4050 }
4051 },
4052 .unlock = spi_disable_blockprotect,
4053 .write = spi_chip_write_256,
4054 .read = spi_chip_read,
4055 .voltage = {2700, 3600},
4056 },
4057
4058 {
4059 .vendor = "GigaDevice",
4060 .name = "GD25Q16",
4061 .bustype = BUS_SPI,
4062 .manufacture_id = GIGADEVICE_ID,
4063 .model_id = GIGADEVICE_GD25Q16,
4064 .total_size = 2048,
4065 .page_size = 256,
4066 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4068 .tested = TEST_UNTESTED,
4069 .probe = probe_spi_rdid,
4070 .probe_timing = TIMING_ZERO,
4071 .block_erasers =
4072 {
4073 {
4074 .eraseblocks = { {4 * 1024, 512} },
4075 .block_erase = spi_block_erase_20,
4076 }, {
4077 .eraseblocks = { {32 * 1024, 64} },
4078 .block_erase = spi_block_erase_52,
4079 }, {
4080 .eraseblocks = { {64 * 1024, 32} },
4081 .block_erase = spi_block_erase_d8,
4082 }, {
4083 .eraseblocks = { {2 * 1024 * 1024, 1} },
4084 .block_erase = spi_block_erase_60,
4085 }, {
4086 .eraseblocks = { {2 * 1024 * 1024, 1} },
4087 .block_erase = spi_block_erase_c7,
4088 }
4089 },
4090 .unlock = spi_disable_blockprotect,
4091 .write = spi_chip_write_256,
4092 .read = spi_chip_read,
4093 .voltage = {2700, 3600},
4094 },
4095
4096 {
4097 .vendor = "GigaDevice",
4098 .name = "GD25Q32",
4099 .bustype = BUS_SPI,
4100 .manufacture_id = GIGADEVICE_ID,
4101 .model_id = GIGADEVICE_GD25Q32,
4102 .total_size = 4096,
4103 .page_size = 256,
4104 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4105 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4106 .tested = TEST_UNTESTED,
4107 .probe = probe_spi_rdid,
4108 .probe_timing = TIMING_ZERO,
4109 .block_erasers =
4110 {
4111 {
4112 .eraseblocks = { {4 * 1024, 1024} },
4113 .block_erase = spi_block_erase_20,
4114 }, {
4115 .eraseblocks = { {32 * 1024, 128} },
4116 .block_erase = spi_block_erase_52,
4117 }, {
4118 .eraseblocks = { {64 * 1024, 64} },
4119 .block_erase = spi_block_erase_d8,
4120 }, {
4121 .eraseblocks = { {4 * 1024 * 1024, 1} },
4122 .block_erase = spi_block_erase_60,
4123 }, {
4124 .eraseblocks = { {4 * 1024 * 1024, 1} },
4125 .block_erase = spi_block_erase_c7,
4126 }
4127 },
4128 .unlock = spi_disable_blockprotect,
4129 .write = spi_chip_write_256,
4130 .read = spi_chip_read,
4131 .voltage = {2700, 3600},
4132 },
4133
4134 {
4135 .vendor = "GigaDevice",
4136 .name = "GD25Q64",
4137 .bustype = BUS_SPI,
4138 .manufacture_id = GIGADEVICE_ID,
4139 .model_id = GIGADEVICE_GD25Q64,
4140 .total_size = 8192,
4141 .page_size = 256,
4142 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4143 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4144 .tested = TEST_UNTESTED,
4145 .probe = probe_spi_rdid,
4146 .probe_timing = TIMING_ZERO,
4147 .block_erasers =
4148 {
4149 {
4150 .eraseblocks = { {4 * 1024, 2048} },
4151 .block_erase = spi_block_erase_20,
4152 }, {
4153 .eraseblocks = { {32 * 1024, 256} },
4154 .block_erase = spi_block_erase_52,
4155 }, {
4156 .eraseblocks = { {64 * 1024, 128} },
4157 .block_erase = spi_block_erase_d8,
4158 }, {
4159 .eraseblocks = { {8 * 1024 * 1024, 1} },
4160 .block_erase = spi_block_erase_60,
4161 }, {
4162 .eraseblocks = { {8 * 1024 * 1024, 1} },
4163 .block_erase = spi_block_erase_c7,
4164 }
4165 },
4166 .unlock = spi_disable_blockprotect,
4167 .write = spi_chip_write_256,
4168 .read = spi_chip_read,
4169 },
4170
4171 {
4172 .vendor = "GigaDevice",
4173 .name = "GD25Q128",
4174 .bustype = BUS_SPI,
4175 .manufacture_id = GIGADEVICE_ID,
4176 .model_id = GIGADEVICE_GD25Q128,
4177 .total_size = 16384,
4178 .page_size = 256,
4179 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4180 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4181 .tested = TEST_UNTESTED,
4182 .probe = probe_spi_rdid,
4183 .probe_timing = TIMING_ZERO,
4184 .block_erasers =
4185 {
4186 {
4187 .eraseblocks = { {4 * 1024, 4096} },
4188 .block_erase = spi_block_erase_20,
4189 }, {
4190 .eraseblocks = { {32 * 1024, 512} },
4191 .block_erase = spi_block_erase_52,
4192 }, {
4193 .eraseblocks = { {64 * 1024, 256} },
4194 .block_erase = spi_block_erase_d8,
4195 }, {
4196 .eraseblocks = { {16 * 1024 * 1024, 1} },
4197 .block_erase = spi_block_erase_60,
4198 }, {
4199 .eraseblocks = { {16 * 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 {
David Borgc96a8bd2010-06-21 16:12:22 +00004209 .vendor = "Hyundai",
4210 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004211 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004212 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004213 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004214 .total_size = 256,
4215 .page_size = 256 * 1024,
4216 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004217 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004218 .probe = probe_jedec,
4219 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4220 .block_erasers =
4221 {
4222 {
4223 .eraseblocks = {
4224 {64 * 1024, 3},
4225 {32 * 1024, 1},
4226 {8 * 1024, 2},
4227 {16 * 1024, 1},
4228 },
4229 .block_erase = erase_sector_jedec,
4230 }, {
4231 .eraseblocks = { {256 * 1024, 1} },
4232 .block_erase = erase_chip_block_jedec,
4233 },
4234 },
4235 .write = write_jedec_1,
4236 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004237 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004238 },
4239
4240 {
4241 .vendor = "Hyundai",
4242 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004243 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004244 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004245 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004246 .total_size = 256,
4247 .page_size = 256 * 1024,
4248 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4249 .tested = TEST_UNTESTED,
4250 .probe = probe_jedec,
4251 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4252 .block_erasers =
4253 {
4254 {
4255 .eraseblocks = {
4256 {16 * 1024, 1},
4257 {8 * 1024, 2},
4258 {32 * 1024, 1},
4259 {64 * 1024, 3},
4260 },
4261 .block_erase = erase_sector_jedec,
4262 }, {
4263 .eraseblocks = { {256 * 1024, 1} },
4264 .block_erase = erase_chip_block_jedec,
4265 },
4266 },
4267 .write = write_jedec_1,
4268 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004269 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004270 },
4271
4272 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004273 .vendor = "Hyundai",
4274 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004275 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004276 .manufacture_id = HYUNDAI_ID,
4277 .model_id = HYUNDAI_HY29F040A,
4278 .total_size = 512,
4279 .page_size = 64 * 1024,
4280 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4281 .tested = TEST_UNTESTED,
4282 .probe = probe_jedec,
4283 .probe_timing = TIMING_ZERO,
4284 .block_erasers =
4285 {
4286 {
4287 .eraseblocks = { {64 * 1024, 8} },
4288 .block_erase = erase_sector_jedec,
4289 }, {
4290 .eraseblocks = { {512 * 1024, 1} },
4291 .block_erase = erase_chip_block_jedec,
4292 },
4293 },
4294 .write = write_jedec_1,
4295 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004296 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004297 },
4298
4299 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004300 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004301 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004302 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004303 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004304 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004305 .total_size = 128,
4306 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004307 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004308 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004309 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004310 .block_erasers =
4311 {
4312 {
4313 .eraseblocks = {
4314 {8 * 1024, 1},
4315 {4 * 1024, 2},
4316 {112 * 1024, 1},
4317 },
Sean Nelson28accc22010-03-19 18:47:06 +00004318 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004319 },
4320 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004321 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004323 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004324 },
4325
4326 {
4327 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004328 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004329 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004330 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004331 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004332 .total_size = 128,
4333 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004334 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004335 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004336 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004337 .block_erasers =
4338 {
4339 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004340 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004341 {112 * 1024, 1},
4342 {4 * 1024, 2},
4343 {8 * 1024, 1},
4344 },
Sean Nelson28accc22010-03-19 18:47:06 +00004345 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004346 },
4347 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004348 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004349 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004350 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004351 },
4352
4353 {
4354 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004355 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004356 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004357 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004358 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004359 .total_size = 256,
4360 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004361 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004362 .probe = probe_82802ab,
4363 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4364 .block_erasers =
4365 {
4366 {
4367 .eraseblocks = {
4368 {128 * 1024, 1},
4369 {96 * 1024, 1},
4370 {8 * 1024, 2},
4371 {16 * 1024, 1},
4372 },
4373 .block_erase = erase_block_82802ab,
4374 },
4375 },
4376 .write = write_82802ab,
4377 .read = read_memmapped,
4378 },
4379
4380 {
4381 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004382 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004383 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004384 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004385 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004386 .total_size = 512,
4387 .page_size = 256,
4388 .tested = TEST_UNTESTED,
4389 .probe = probe_82802ab,
4390 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004391 .block_erasers =
4392 {
4393 {
4394 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004395 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004396 },
4397 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004398 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004399 .write = write_82802ab,
4400 .read = read_memmapped,
4401 },
4402
4403 {
4404 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004405 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004406 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004407 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004408 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004409 .total_size = 512,
4410 .page_size = 128 * 1024, /* maximal block size */
4411 .tested = TEST_UNTESTED,
4412 .probe = probe_82802ab,
4413 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4414 .block_erasers =
4415 {
4416 {
4417 .eraseblocks = {
4418 {16 * 1024, 1},
4419 {8 * 1024, 2},
4420 {96 * 1024, 1},
4421 {128 * 1024, 3},
4422 },
4423 .block_erase = erase_block_82802ab,
4424 },
4425 },
4426 .write = write_82802ab,
4427 .read = read_memmapped,
4428 },
4429
4430 {
4431 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004432 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004433 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004434 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004435 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004436 .total_size = 512,
4437 .page_size = 128 * 1024, /* maximal block size */
4438 .tested = TEST_UNTESTED,
4439 .probe = probe_82802ab,
4440 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4441 .block_erasers =
4442 {
4443 {
4444 .eraseblocks = {
4445 {128 * 1024, 3},
4446 {96 * 1024, 1},
4447 {8 * 1024, 2},
4448 {16 * 1024, 1},
4449 },
4450 .block_erase = erase_block_82802ab,
4451 },
4452 },
4453 .write = write_82802ab,
4454 .read = read_memmapped,
4455 },
4456
4457 {
4458 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004459 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004460 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004461 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004462 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004463 .total_size = 512,
4464 .page_size = 128 * 1024, /* maximal block size */
4465 .feature_bits = FEATURE_ADDR_SHIFTED,
4466 .tested = TEST_UNTESTED,
4467 .probe = probe_82802ab,
4468 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4469 .block_erasers =
4470 {
4471 {
4472 .eraseblocks = {
4473 {16 * 1024, 1},
4474 {8 * 1024, 2},
4475 {96 * 1024, 1},
4476 {128 * 1024, 3},
4477 },
4478 .block_erase = erase_block_82802ab,
4479 },
4480 },
4481 .write = write_82802ab,
4482 .read = read_memmapped,
4483 },
4484
4485 {
4486 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004487 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004488 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004489 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004490 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004491 .total_size = 512,
4492 .page_size = 128 * 1024, /* maximal block size */
4493 .feature_bits = FEATURE_ADDR_SHIFTED,
4494 .tested = TEST_UNTESTED,
4495 .probe = probe_82802ab,
4496 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4497 .block_erasers =
4498 {
4499 {
4500 .eraseblocks = {
4501 {128 * 1024, 3},
4502 {96 * 1024, 1},
4503 {8 * 1024, 2},
4504 {16 * 1024, 1},
4505 },
4506 .block_erase = erase_block_82802ab,
4507 },
4508 },
4509 .write = write_82802ab,
4510 .read = read_memmapped,
4511 },
4512
4513 {
4514 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004515 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004516 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004517 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004518 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004519 .total_size = 512,
4520 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004521 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004522 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004523 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004524 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004525 .block_erasers =
4526 {
4527 {
4528 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004529 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004530 },
4531 },
Sean Nelson28accc22010-03-19 18:47:06 +00004532 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004533 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004535 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004536 },
4537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004538 {
4539 .vendor = "Intel",
4540 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004541 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004542 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004543 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004544 .total_size = 1024,
4545 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004546 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004547 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004548 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004549 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004550 .block_erasers =
4551 {
4552 {
4553 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004554 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004555 },
4556 },
Sean Nelson28accc22010-03-19 18:47:06 +00004557 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004558 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004559 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004560 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004561 },
4562
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004563 {
4564 .vendor = "Macronix",
4565 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004566 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004567 .manufacture_id = MACRONIX_ID,
4568 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004569 .total_size = 64,
4570 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004571 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004572 .tested = TEST_UNTESTED,
4573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004574 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004575 .block_erasers =
4576 {
4577 {
4578 .eraseblocks = { {4 * 1024, 16} },
4579 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004580 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004581 .eraseblocks = { {64 * 1024, 1} },
4582 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004583 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004584 .eraseblocks = { {64 * 1024, 1} },
4585 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004586 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004587 .eraseblocks = { {64 * 1024, 1} },
4588 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004589 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004590 .eraseblocks = { {64 * 1024, 1} },
4591 .block_erase = spi_block_erase_c7,
4592 },
4593 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004594 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004595 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004596 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004597 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004598 },
4599
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004600 {
4601 .vendor = "Macronix",
4602 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004603 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004604 .manufacture_id = MACRONIX_ID,
4605 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004606 .total_size = 128,
4607 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004608 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004609 .tested = TEST_UNTESTED,
4610 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004611 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004612 .block_erasers =
4613 {
4614 {
4615 .eraseblocks = { {4 * 1024, 32} },
4616 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004617 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004618 .eraseblocks = { {64 * 1024, 2} },
4619 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004620 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004621 .eraseblocks = { {128 * 1024, 1} },
4622 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004623 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004624 .eraseblocks = { {128 * 1024, 1} },
4625 .block_erase = spi_block_erase_c7,
4626 },
4627 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004628 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004629 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004630 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004631 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004632 },
4633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004634 {
4635 .vendor = "Macronix",
4636 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004637 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004638 .manufacture_id = MACRONIX_ID,
4639 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004640 .total_size = 256,
4641 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004642 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004643 .tested = TEST_UNTESTED,
4644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004645 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004646 .block_erasers =
4647 {
4648 {
4649 .eraseblocks = { {4 * 1024, 64} },
4650 .block_erase = spi_block_erase_20,
4651 }, {
4652 .eraseblocks = { {64 * 1024, 4} },
4653 .block_erase = spi_block_erase_52,
4654 }, {
4655 .eraseblocks = { {64 * 1024, 4} },
4656 .block_erase = spi_block_erase_d8,
4657 }, {
4658 .eraseblocks = { {256 * 1024, 1} },
4659 .block_erase = spi_block_erase_60,
4660 }, {
4661 .eraseblocks = { {256 * 1024, 1} },
4662 .block_erase = spi_block_erase_c7,
4663 },
4664 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004665 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004666 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004667 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004668 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004669 },
4670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004671 {
4672 .vendor = "Macronix",
4673 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004674 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004675 .manufacture_id = MACRONIX_ID,
4676 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004677 .total_size = 512,
4678 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004679 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004680 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004681 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004682 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004683 .block_erasers =
4684 {
4685 {
4686 .eraseblocks = { {4 * 1024, 128} },
4687 .block_erase = spi_block_erase_20,
4688 }, {
4689 .eraseblocks = { {64 * 1024, 8} },
4690 .block_erase = spi_block_erase_52,
4691 }, {
4692 .eraseblocks = { {64 * 1024, 8} },
4693 .block_erase = spi_block_erase_d8,
4694 }, {
4695 .eraseblocks = { {512 * 1024, 1} },
4696 .block_erase = spi_block_erase_60,
4697 }, {
4698 .eraseblocks = { {512 * 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 = "MX25L8005",
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_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004714 .total_size = 1024,
4715 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004716 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004717 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004718 .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, 256} },
4724 .block_erase = spi_block_erase_20,
4725 }, {
4726 .eraseblocks = { {64 * 1024, 16} },
4727 .block_erase = spi_block_erase_52,
4728 }, {
4729 .eraseblocks = { {64 * 1024, 16} },
4730 .block_erase = spi_block_erase_d8,
4731 }, {
4732 .eraseblocks = { {1024 * 1024, 1} },
4733 .block_erase = spi_block_erase_60,
4734 }, {
4735 .eraseblocks = { {1024 * 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 = "MX25L1605",
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_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004751 .total_size = 2048,
4752 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004753 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +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, 512} },
4761 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4762 }, {
4763 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4764 .block_erase = spi_block_erase_52,
4765 }, {
4766 .eraseblocks = { {64 * 1024, 32} },
4767 .block_erase = spi_block_erase_d8,
4768 }, {
4769 .eraseblocks = { {2 * 1024 * 1024, 1} },
4770 .block_erase = spi_block_erase_60,
4771 }, {
4772 .eraseblocks = { {2 * 1024 * 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",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004784 .name = "MX25L1635D",
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_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004788 .total_size = 2048,
4789 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004790 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004791 .tested = TEST_UNTESTED,
4792 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004793 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004794 .block_erasers =
4795 {
4796 {
4797 .eraseblocks = { {4 * 1024, 512} },
4798 .block_erase = spi_block_erase_20,
4799 }, {
4800 .eraseblocks = { {64 * 1024, 32} },
4801 .block_erase = spi_block_erase_d8,
4802 }, {
4803 .eraseblocks = { {2 * 1024 * 1024, 1} },
4804 .block_erase = spi_block_erase_60,
4805 }, {
4806 .eraseblocks = { {2 * 1024 * 1024, 1} },
4807 .block_erase = spi_block_erase_c7,
4808 }
4809 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004810 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004811 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004812 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004813 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004814 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004815
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004816 {
4817 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004818 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004819 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004820 .manufacture_id = MACRONIX_ID,
4821 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004822 .total_size = 2048,
4823 .page_size = 256,
4824 .feature_bits = FEATURE_WRSR_WREN,
4825 .tested = TEST_UNTESTED,
4826 .probe = probe_spi_rdid,
4827 .probe_timing = TIMING_ZERO,
4828 .block_erasers =
4829 {
4830 {
4831 .eraseblocks = { {4 * 1024, 512} },
4832 .block_erase = spi_block_erase_20,
4833 }, {
4834 .eraseblocks = { {64 * 1024, 32} },
4835 .block_erase = spi_block_erase_d8,
4836 }, {
4837 .eraseblocks = { {2 * 1024 * 1024, 1} },
4838 .block_erase = spi_block_erase_60,
4839 }, {
4840 .eraseblocks = { {2 * 1024 * 1024, 1} },
4841 .block_erase = spi_block_erase_c7,
4842 }
4843 },
4844 .unlock = spi_disable_blockprotect,
4845 .write = spi_chip_write_256,
4846 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004847 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004848 },
4849
4850 {
4851 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004852 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004853 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004854 .manufacture_id = MACRONIX_ID,
4855 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004856 .total_size = 4096,
4857 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004858 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004859 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004861 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004862 .block_erasers =
4863 {
4864 {
4865 .eraseblocks = { {4 * 1024, 1024} },
4866 .block_erase = spi_block_erase_20,
4867 }, {
4868 .eraseblocks = { {4 * 1024, 1024} },
4869 .block_erase = spi_block_erase_d8,
4870 }, {
4871 .eraseblocks = { {4 * 1024 * 1024, 1} },
4872 .block_erase = spi_block_erase_60,
4873 }, {
4874 .eraseblocks = { {4 * 1024 * 1024, 1} },
4875 .block_erase = spi_block_erase_c7,
4876 },
4877 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004878 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004879 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004880 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004881 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004882 },
4883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004884 {
4885 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004886 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004887 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004888 .manufacture_id = MACRONIX_ID,
4889 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004890 .total_size = 4096,
4891 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004892 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004893 .tested = TEST_UNTESTED,
4894 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004895 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004896 .block_erasers =
4897 {
4898 {
4899 .eraseblocks = { {4 * 1024, 1024} },
4900 .block_erase = spi_block_erase_20,
4901 }, {
4902 .eraseblocks = { {64 * 1024, 64} },
4903 .block_erase = spi_block_erase_d8,
4904 }, {
4905 .eraseblocks = { {4 * 1024 * 1024, 1} },
4906 .block_erase = spi_block_erase_60,
4907 }, {
4908 .eraseblocks = { {4 * 1024 * 1024, 1} },
4909 .block_erase = spi_block_erase_c7,
4910 }
4911 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004912 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004913 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004914 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004915 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004916 },
4917
4918 {
4919 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004920 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004921 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004922 .manufacture_id = MACRONIX_ID,
4923 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004924 .total_size = 8192,
4925 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004926 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00004927 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004928 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004929 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004930 .block_erasers =
4931 {
4932 {
4933 .eraseblocks = { {64 * 1024, 128} },
4934 .block_erase = spi_block_erase_20,
4935 }, {
4936 .eraseblocks = { {64 * 1024, 128} },
4937 .block_erase = spi_block_erase_d8,
4938 }, {
4939 .eraseblocks = { {8 * 1024 * 1024, 1} },
4940 .block_erase = spi_block_erase_60,
4941 }, {
4942 .eraseblocks = { {8 * 1024 * 1024, 1} },
4943 .block_erase = spi_block_erase_c7,
4944 }
4945 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004946 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004947 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004948 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004949 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004950 },
4951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004952 {
4953 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004954 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004955 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004956 .manufacture_id = MACRONIX_ID,
4957 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004958 .total_size = 16384,
4959 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004960 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004961 .tested = TEST_UNTESTED,
4962 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004963 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004964 .block_erasers =
4965 {
4966 {
4967 .eraseblocks = { {4 * 1024, 4096} },
4968 .block_erase = spi_block_erase_20,
4969 }, {
4970 .eraseblocks = { {64 * 1024, 256} },
4971 .block_erase = spi_block_erase_d8,
4972 }, {
4973 .eraseblocks = { {16 * 1024 * 1024, 1} },
4974 .block_erase = spi_block_erase_60,
4975 }, {
4976 .eraseblocks = { {16 * 1024 * 1024, 1} },
4977 .block_erase = spi_block_erase_c7,
4978 }
4979 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004980 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004981 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004982 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004983 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004984 },
4985
4986 {
4987 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004988 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004989 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004990 .manufacture_id = MACRONIX_ID,
4991 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004992 .total_size = 128,
4993 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004994 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4995 .tested = TEST_UNTESTED,
4996 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004997 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004998 .block_erasers =
4999 {
5000 {
5001 .eraseblocks = {
5002 {8 * 1024, 1},
5003 {4 * 1024, 2},
5004 {8 * 1024, 2},
5005 {32 * 1024, 1},
5006 {64 * 1024, 1},
5007 },
Sean Nelson35727f72010-01-28 23:55:12 +00005008 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005009 }, {
5010 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005011 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005012 }
5013 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005014 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005016 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005017 },
5018
5019 {
5020 .vendor = "Macronix",
5021 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005022 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005023 .manufacture_id = MACRONIX_ID,
5024 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005025 .total_size = 128,
5026 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005027 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005028 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005029 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005030 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005031 .block_erasers =
5032 {
5033 {
5034 .eraseblocks = {
5035 {64 * 1024, 1},
5036 {32 * 1024, 1},
5037 {8 * 1024, 2},
5038 {4 * 1024, 2},
5039 {8 * 1024, 1},
5040 },
Sean Nelson35727f72010-01-28 23:55:12 +00005041 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005042 }, {
5043 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005044 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005045 }
5046 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005047 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005049 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005050 },
5051
5052 {
5053 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005054 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005055 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005056 .manufacture_id = MACRONIX_ID,
5057 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005058 .total_size = 256,
5059 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005060 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005061 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005062 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005063 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005064 .block_erasers =
5065 {
5066 {
5067 .eraseblocks = {
5068 {16 * 1024, 1},
5069 {8 * 1024, 2},
5070 {32 * 1024, 1},
5071 {64 * 1024, 3},
5072 },
Sean Nelson35727f72010-01-28 23:55:12 +00005073 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005074 }, {
5075 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005076 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005077 },
5078 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005079 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005081 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005082 },
5083
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005084 {
5085 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005086 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005087 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005088 .manufacture_id = MACRONIX_ID,
5089 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005090 .total_size = 256,
5091 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005092 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005093 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005094 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005095 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005096 .block_erasers =
5097 {
5098 {
5099 .eraseblocks = {
5100 {64 * 1024, 3},
5101 {32 * 1024, 1},
5102 {8 * 1024, 2},
5103 {16 * 1024, 1},
5104 },
Sean Nelson35727f72010-01-28 23:55:12 +00005105 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005106 }, {
5107 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005108 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005109 },
5110 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005111 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005112 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005113 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005114 },
5115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005116 {
5117 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005118 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005119 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005120 .manufacture_id = MACRONIX_ID,
5121 .model_id = MACRONIX_MX29F040,
5122 .total_size = 512,
5123 .page_size = 64 * 1024,
5124 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5125 .tested = TEST_UNTESTED,
5126 .probe = probe_jedec,
5127 .probe_timing = TIMING_ZERO,
5128 .block_erasers =
5129 {
5130 {
5131 .eraseblocks = { {64 * 1024, 8} },
5132 .block_erase = erase_sector_jedec,
5133 }, {
5134 .eraseblocks = { {512 * 1024, 1} },
5135 .block_erase = erase_chip_block_jedec,
5136 },
5137 },
5138 .write = write_jedec_1,
5139 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005140 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005141 },
5142
5143 {
5144 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005145 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005146 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005147 .manufacture_id = MACRONIX_ID,
5148 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005149 .total_size = 512,
5150 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005151 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5152 .tested = TEST_UNTESTED,
5153 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005154 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005155 .block_erasers =
5156 {
5157 {
5158 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005159 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005160 }, {
5161 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005162 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005163 },
5164 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005165 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005166 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005167 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005168 },
5169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005170 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005171 .vendor = "MoselVitelic",
5172 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005173 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005174 .manufacture_id = SYNCMOS_MVC_ID,
5175 .model_id = MVC_V29C51000B,
5176 .total_size = 64,
5177 .page_size = 512,
5178 .feature_bits = FEATURE_EITHER_RESET,
5179 .tested = TEST_UNTESTED,
5180 .probe = probe_jedec,
5181 .probe_timing = TIMING_ZERO,
5182 .block_erasers =
5183 {
5184 {
5185 .eraseblocks = { {512, 128} },
5186 .block_erase = erase_sector_jedec,
5187 }, {
5188 .eraseblocks = { {64 * 1024, 1} },
5189 .block_erase = erase_chip_block_jedec,
5190 },
5191 },
5192 .write = write_jedec_1,
5193 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005194 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005195 },
5196
5197 {
5198 .vendor = "MoselVitelic",
5199 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005200 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005201 .manufacture_id = SYNCMOS_MVC_ID,
5202 .model_id = MVC_V29C51000T,
5203 .total_size = 64,
5204 .page_size = 512,
5205 .feature_bits = FEATURE_EITHER_RESET,
5206 .tested = TEST_UNTESTED,
5207 .probe = probe_jedec,
5208 .probe_timing = TIMING_ZERO,
5209 .block_erasers =
5210 {
5211 {
5212 .eraseblocks = { {512, 128} },
5213 .block_erase = erase_sector_jedec,
5214 }, {
5215 .eraseblocks = { {64 * 1024, 1} },
5216 .block_erase = erase_chip_block_jedec,
5217 },
5218 },
5219 .write = write_jedec_1,
5220 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005221 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005222 },
5223
5224 {
5225 .vendor = "MoselVitelic",
5226 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005227 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005228 .manufacture_id = SYNCMOS_MVC_ID,
5229 .model_id = MVC_V29C51400B,
5230 .total_size = 512,
5231 .page_size = 1024,
5232 .feature_bits = FEATURE_EITHER_RESET,
5233 .tested = TEST_UNTESTED,
5234 .probe = probe_jedec,
5235 .probe_timing = TIMING_ZERO,
5236 .block_erasers =
5237 {
5238 {
5239 .eraseblocks = { {1024, 512} },
5240 .block_erase = erase_sector_jedec,
5241 }, {
5242 .eraseblocks = { {512 * 1024, 1} },
5243 .block_erase = erase_chip_block_jedec,
5244 },
5245 },
5246 .write = write_jedec_1,
5247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005248 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005249 },
5250
5251 {
5252 .vendor = "MoselVitelic",
5253 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005254 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005255 .manufacture_id = SYNCMOS_MVC_ID,
5256 .model_id = MVC_V29C51400T,
5257 .total_size = 512,
5258 .page_size = 1024,
5259 .feature_bits = FEATURE_EITHER_RESET,
5260 .tested = TEST_UNTESTED,
5261 .probe = probe_jedec,
5262 .probe_timing = TIMING_ZERO,
5263 .block_erasers =
5264 {
5265 {
5266 .eraseblocks = { {1024, 512} },
5267 .block_erase = erase_sector_jedec,
5268 }, {
5269 .eraseblocks = { {512 * 1024, 1} },
5270 .block_erase = erase_chip_block_jedec,
5271 },
5272 },
5273 .write = write_jedec_1,
5274 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005275 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005276 },
5277
5278 {
5279 .vendor = "MoselVitelic",
5280 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005281 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005282 .manufacture_id = SYNCMOS_MVC_ID,
5283 .model_id = MVC_V29LC51000,
5284 .total_size = 64,
5285 .page_size = 512,
5286 .feature_bits = FEATURE_EITHER_RESET,
5287 .tested = TEST_UNTESTED,
5288 .probe = probe_jedec,
5289 .probe_timing = TIMING_ZERO,
5290 .block_erasers =
5291 {
5292 {
5293 .eraseblocks = { {512, 128} },
5294 .block_erase = erase_sector_jedec,
5295 }, {
5296 .eraseblocks = { {64 * 1024, 1} },
5297 .block_erase = erase_chip_block_jedec,
5298 },
5299 },
5300 .write = write_jedec_1,
5301 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005302 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005303 },
5304
5305 {
5306 .vendor = "MoselVitelic",
5307 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005308 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005309 .manufacture_id = SYNCMOS_MVC_ID,
5310 .model_id = MVC_V29LC51001,
5311 .total_size = 128,
5312 .page_size = 512,
5313 .feature_bits = FEATURE_EITHER_RESET,
5314 .tested = TEST_UNTESTED,
5315 .probe = probe_jedec,
5316 .probe_timing = TIMING_ZERO,
5317 .block_erasers =
5318 {
5319 {
5320 .eraseblocks = { {512, 256} },
5321 .block_erase = erase_sector_jedec,
5322 }, {
5323 .eraseblocks = { {128 * 1024, 1} },
5324 .block_erase = erase_chip_block_jedec,
5325 },
5326 },
5327 .write = write_jedec_1,
5328 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005329 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005330 },
5331
5332 {
5333 .vendor = "MoselVitelic",
5334 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005335 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005336 .manufacture_id = SYNCMOS_MVC_ID,
5337 .model_id = MVC_V29LC51002,
5338 .total_size = 256,
5339 .page_size = 512,
5340 .feature_bits = FEATURE_EITHER_RESET,
5341 .tested = TEST_UNTESTED,
5342 .probe = probe_jedec,
5343 .probe_timing = TIMING_ZERO,
5344 .block_erasers =
5345 {
5346 {
5347 .eraseblocks = { {512, 512} },
5348 .block_erase = erase_sector_jedec,
5349 }, {
5350 .eraseblocks = { {256 * 1024, 1} },
5351 .block_erase = erase_chip_block_jedec,
5352 },
5353 },
5354 .write = write_jedec_1,
5355 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005356 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005357 },
5358
5359 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005360 .vendor = "Numonyx",
5361 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005362 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005363 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005364 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005365 .total_size = 128,
5366 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005367 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005368 .tested = TEST_UNTESTED,
5369 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005370 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005371 .block_erasers =
5372 {
5373 {
5374 .eraseblocks = { {4 * 1024, 32} },
5375 .block_erase = spi_block_erase_20,
5376 }, {
5377 .eraseblocks = { {64 * 1024, 2} },
5378 .block_erase = spi_block_erase_d8,
5379 }, {
5380 .eraseblocks = { {128 * 1024, 1} },
5381 .block_erase = spi_block_erase_c7,
5382 }
5383 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005384 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005385 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005386 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005387 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005388 },
5389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005390 {
5391 .vendor = "Numonyx",
5392 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005393 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005394 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005395 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005396 .total_size = 256,
5397 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005398 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005399 .tested = TEST_UNTESTED,
5400 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005401 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005402 .block_erasers =
5403 {
5404 {
5405 .eraseblocks = { {4 * 1024, 64} },
5406 .block_erase = spi_block_erase_20,
5407 }, {
5408 .eraseblocks = { {64 * 1024, 4} },
5409 .block_erase = spi_block_erase_d8,
5410 }, {
5411 .eraseblocks = { {256 * 1024, 1} },
5412 .block_erase = spi_block_erase_c7,
5413 }
5414 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005416 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005417 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005418 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005419 },
5420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005421 {
5422 .vendor = "Numonyx",
5423 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005424 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005425 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005426 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005427 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005428 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005429 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005430 .tested = TEST_UNTESTED,
5431 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005432 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005433 .block_erasers =
5434 {
5435 {
5436 .eraseblocks = { {4 * 1024, 128} },
5437 .block_erase = spi_block_erase_20,
5438 }, {
5439 .eraseblocks = { {64 * 1024, 8} },
5440 .block_erase = spi_block_erase_d8,
5441 }, {
5442 .eraseblocks = { {512 * 1024, 1} },
5443 .block_erase = spi_block_erase_c7,
5444 }
5445 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005447 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005448 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005449 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005450 },
5451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005452 {
5453 .vendor = "Numonyx",
5454 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005455 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005456 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005457 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005458 .total_size = 1024,
5459 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005460 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005462 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005463 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005464 .block_erasers =
5465 {
5466 {
5467 .eraseblocks = { {4 * 1024, 256} },
5468 .block_erase = spi_block_erase_20,
5469 }, {
5470 .eraseblocks = { {64 * 1024, 16} },
5471 .block_erase = spi_block_erase_d8,
5472 }, {
5473 .eraseblocks = { {1024 * 1024, 1} },
5474 .block_erase = spi_block_erase_c7,
5475 }
5476 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005477 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005478 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005479 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005480 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005481 },
5482
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005483 {
5484 .vendor = "Numonyx",
5485 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005486 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005487 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005488 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005489 .total_size = 2048,
5490 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005491 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005492 .tested = TEST_UNTESTED,
5493 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005494 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005495 .block_erasers =
5496 {
5497 {
5498 .eraseblocks = { {4 * 1024, 512} },
5499 .block_erase = spi_block_erase_20,
5500 }, {
5501 .eraseblocks = { {64 * 1024, 32} },
5502 .block_erase = spi_block_erase_d8,
5503 }, {
5504 .eraseblocks = { {2 * 1024 * 1024, 1} },
5505 .block_erase = spi_block_erase_c7,
5506 }
5507 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005508 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005509 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005510 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005512 },
5513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005514 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005515 .vendor = "Numonyx",
5516 .name = "N25Q064",
5517 .bustype = BUS_SPI,
5518 .manufacture_id = ST_ID,
5519 .model_id = ST_N25Q064,
5520 .total_size = 8192,
5521 .page_size = 256,
5522 .tested = TEST_OK_PREW,
5523 .probe = probe_spi_rdid,
5524 .probe_timing = TIMING_ZERO,
5525 .block_erasers =
5526 {
5527 {
5528 .eraseblocks = { {4 * 1024, 2048 } },
5529 .block_erase = spi_block_erase_20,
5530 }, {
5531 .eraseblocks = { {64 * 1024, 128} },
5532 .block_erase = spi_block_erase_d8,
5533 }, {
5534 .eraseblocks = { {8 * 1024 * 1024, 1} },
5535 .block_erase = spi_block_erase_c7,
5536 }
5537 },
5538 .unlock = spi_disable_blockprotect,
5539 .write = spi_chip_write_256,
5540 .read = spi_chip_read,
5541 },
5542
5543 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005544 .vendor = "PMC",
5545 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005546 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005547 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005548 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005549 .total_size = 128,
5550 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005551 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005552 .tested = TEST_UNTESTED,
5553 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005554 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005555 .block_erasers =
5556 {
5557 {
5558 .eraseblocks = { {4 * 1024, 32} },
5559 .block_erase = spi_block_erase_d7,
5560 }, {
5561 .eraseblocks = { {32 * 1024, 4} },
5562 .block_erase = spi_block_erase_d8,
5563 }, {
5564 .eraseblocks = { {128 * 1024, 1} },
5565 .block_erase = spi_block_erase_c7,
5566 }
5567 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005568 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005569 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005571 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005572 },
5573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005574 {
5575 .vendor = "PMC",
5576 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005577 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005578 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005579 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005580 .total_size = 2048,
5581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005582 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005583 .tested = TEST_UNTESTED,
5584 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005585 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005586 .block_erasers =
5587 {
5588 {
5589 .eraseblocks = { {4 * 1024, 512} },
5590 .block_erase = spi_block_erase_d7,
5591 }, {
5592 .eraseblocks = { {4 * 1024, 512} },
5593 .block_erase = spi_block_erase_20,
5594 }, {
5595 .eraseblocks = { {64 * 1024, 32} },
5596 .block_erase = spi_block_erase_d8,
5597 }, {
5598 .eraseblocks = { {2 * 1024 * 1024, 1} },
5599 .block_erase = spi_block_erase_60,
5600 }, {
5601 .eraseblocks = { {2 * 1024 * 1024, 1} },
5602 .block_erase = spi_block_erase_c7,
5603 }
5604 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005605 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005606 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005607 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005608 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005609 },
5610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005611 {
5612 .vendor = "PMC",
5613 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005614 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005615 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005616 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005617 .total_size = 256,
5618 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005619 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005620 .tested = TEST_UNTESTED,
5621 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005622 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005623 .block_erasers =
5624 {
5625 {
5626 .eraseblocks = { {4 * 1024, 64} },
5627 .block_erase = spi_block_erase_d7,
5628 }, {
5629 .eraseblocks = { {64 * 1024, 4} },
5630 .block_erase = spi_block_erase_d8,
5631 }, {
5632 .eraseblocks = { {256 * 1024, 1} },
5633 .block_erase = spi_block_erase_c7,
5634 }
5635 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005636 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005637 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005638 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005639 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005640 },
5641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005642 {
5643 .vendor = "PMC",
5644 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005645 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005646 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005647 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005648 .total_size = 512,
5649 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005650 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00005651 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005652 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005653 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005654 .block_erasers =
5655 {
5656 {
5657 .eraseblocks = { {4 * 1024, 128} },
5658 .block_erase = spi_block_erase_d7,
5659 }, {
5660 .eraseblocks = { {64 * 1024, 8} },
5661 .block_erase = spi_block_erase_d8,
5662 }, {
5663 .eraseblocks = { {512 * 1024, 1} },
5664 .block_erase = spi_block_erase_c7,
5665 }
5666 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005667 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005668 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005669 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005670 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005671 },
5672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005673 {
5674 .vendor = "PMC",
5675 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005676 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005677 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005678 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005679 .total_size = 1024,
5680 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005681 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005682 .tested = TEST_UNTESTED,
5683 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005684 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005685 .block_erasers =
5686 {
5687 {
5688 .eraseblocks = { {4 * 1024, 256} },
5689 .block_erase = spi_block_erase_d7,
5690 }, {
5691 .eraseblocks = { {4 * 1024, 256} },
5692 .block_erase = spi_block_erase_20,
5693 }, {
5694 .eraseblocks = { {64 * 1024, 16} },
5695 .block_erase = spi_block_erase_d8,
5696 }, {
5697 .eraseblocks = { {1024 * 1024, 1} },
5698 .block_erase = spi_block_erase_60,
5699 }, {
5700 .eraseblocks = { {1024 * 1024, 1} },
5701 .block_erase = spi_block_erase_c7,
5702 }
5703 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005704 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005705 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005707 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005708 },
5709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005710 {
5711 .vendor = "PMC",
5712 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005714 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005715 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005716 .total_size = 64,
5717 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005718 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005719 .tested = TEST_UNTESTED,
5720 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005721 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005722 .block_erasers =
5723 {
5724 {
5725 .eraseblocks = { {4 * 1024, 16} },
5726 .block_erase = spi_block_erase_d7,
5727 }, {
5728 .eraseblocks = { {32 * 1024, 2} },
5729 .block_erase = spi_block_erase_d8,
5730 }, {
5731 .eraseblocks = { {64 * 1024, 1} },
5732 .block_erase = spi_block_erase_c7,
5733 }
5734 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005735 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005736 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005737 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005738 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005739 },
5740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005741 {
5742 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005743 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005744 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005745 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005746 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005747 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005748 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005750 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005751 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005752 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005753 .block_erasers =
5754 {
5755 {
5756 .eraseblocks = {
5757 {128 * 1024, 1},
5758 {96 * 1024, 1},
5759 {8 * 1024, 2},
5760 {16 * 1024, 1},
5761 },
Sean Nelson35727f72010-01-28 23:55:12 +00005762 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005763 }, {
5764 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005765 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005766 },
5767 },
Sean Nelson35727f72010-01-28 23:55:12 +00005768 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005769 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005770 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005771 },
5772
5773 {
5774 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005775 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005776 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005777 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005778 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005779 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005780 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005781 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005782 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005783 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005784 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005785 .block_erasers =
5786 {
5787 {
5788 .eraseblocks = {
5789 {16 * 1024, 1},
5790 {8 * 1024, 2},
5791 {96 * 1024, 1},
5792 {128 * 1024, 1},
5793 },
Sean Nelson35727f72010-01-28 23:55:12 +00005794 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005795 }, {
5796 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005797 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005798 },
5799 },
Sean Nelson35727f72010-01-28 23:55:12 +00005800 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005802 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005803 },
5804
5805 {
5806 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005807 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005808 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005809 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005810 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005811 .total_size = 128,
5812 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005813 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005814 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005815 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005816 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005817 .block_erasers =
5818 {
5819 {
5820 .eraseblocks = { {4 * 1024, 32} },
5821 .block_erase = erase_sector_jedec,
5822 }, {
5823 .eraseblocks = { {64 * 1024, 2} },
5824 .block_erase = erase_block_jedec,
5825 }, {
5826 .eraseblocks = { {128 * 1024, 1} },
5827 .block_erase = erase_chip_block_jedec,
5828 }
5829 },
Sean Nelson35727f72010-01-28 23:55:12 +00005830 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005832 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005833 },
5834
5835 {
5836 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005837 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005838 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005839 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005840 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005841 .total_size = 256,
5842 .page_size = 4096,
5843 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5844 .tested = TEST_UNTESTED,
5845 .probe = probe_jedec,
5846 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5847 .block_erasers =
5848 {
5849 {
5850 .eraseblocks = { {4 * 1024, 64} },
5851 .block_erase = erase_sector_jedec,
5852 }, {
5853 .eraseblocks = { {64 * 1024, 4} },
5854 .block_erase = erase_block_jedec,
5855 }, {
5856 .eraseblocks = { {256 * 1024, 1} },
5857 .block_erase = erase_chip_block_jedec,
5858 }
5859 },
5860 .write = write_jedec_1,
5861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005862 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005863 },
5864
5865 {
5866 .vendor = "PMC",
5867 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005868 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005869 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005870 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005871 .total_size = 512,
5872 .page_size = 4096,
5873 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005874 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005875 .probe = probe_jedec,
5876 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5877 .block_erasers =
5878 {
5879 {
5880 .eraseblocks = { {4 * 1024, 128} },
5881 .block_erase = erase_sector_jedec,
5882 }, {
5883 .eraseblocks = { {64 * 1024, 8} },
5884 .block_erase = erase_block_jedec,
5885 }, {
5886 .eraseblocks = { {512 * 1024, 1} },
5887 .block_erase = erase_chip_block_jedec,
5888 }
5889 },
5890 .write = write_jedec_1,
5891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005892 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005893 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00005894
5895 {
5896 .vendor = "PMC",
5897 .name = "Pm39LV512",
5898 .bustype = BUS_PARALLEL,
5899 .manufacture_id = PMC_ID_NOPREFIX,
5900 .model_id = PMC_PM39LV512,
5901 .total_size = 64,
5902 .page_size = 4096,
5903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5904 .tested = TEST_OK_PREW,
5905 .probe = probe_jedec,
5906 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5907 .block_erasers =
5908 {
5909 {
5910 .eraseblocks = { {4 * 1024, 16} },
5911 .block_erase = erase_sector_jedec,
5912 }, {
5913 .eraseblocks = { {64 * 1024, 1} },
5914 .block_erase = erase_block_jedec,
5915 }, {
5916 .eraseblocks = { {64 * 1024, 1} },
5917 .block_erase = erase_chip_block_jedec,
5918 }
5919 },
5920 .write = write_jedec_1,
5921 .read = read_memmapped,
5922 .voltage = {2700, 3600},
5923 },
5924
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005925 {
5926 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005927 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005928 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005929 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005930 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005931 .total_size = 256,
5932 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005933 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005934 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005935 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005936 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005937 .block_erasers =
5938 {
5939 {
5940 .eraseblocks = { {4 * 1024, 64} },
5941 .block_erase = erase_sector_jedec,
5942 }, {
5943 .eraseblocks = { {16 * 1024, 16} },
5944 .block_erase = erase_block_jedec,
5945 }, {
5946 .eraseblocks = { {256 * 1024, 1} },
5947 .block_erase = erase_chip_block_jedec,
5948 }
5949 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005950 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005951 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005953 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005954 },
5955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005956 {
5957 .vendor = "PMC",
5958 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005959 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005960 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005961 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005962 .total_size = 512,
5963 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005964 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005965 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005966 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005967 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005968 .block_erasers =
5969 {
5970 {
5971 .eraseblocks = { {4 * 1024, 128} },
5972 .block_erase = erase_sector_jedec,
5973 }, {
5974 .eraseblocks = { {64 * 1024, 8} },
5975 .block_erase = erase_block_jedec,
5976 }, {
5977 .eraseblocks = { {512 * 1024, 1} },
5978 .block_erase = erase_chip_block_jedec,
5979 }
5980 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005981 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005982 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005983 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005984 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005985 },
5986
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005987 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005988 .vendor = "Sanyo",
5989 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005990 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005991 .manufacture_id = SANYO_ID,
5992 .model_id = SANYO_LE25FW203A,
5993 .total_size = 2048,
5994 .page_size = 256,
5995 .tested = TEST_UNTESTED,
5996 .probe = probe_spi_rdid,
5997 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005998 .block_erasers =
5999 {
6000 {
6001 .eraseblocks = { {64 * 1024, 32} },
6002 .block_erase = spi_block_erase_d8,
6003 }, {
6004 .eraseblocks = { {2 * 1024 * 1024, 1} },
6005 .block_erase = spi_block_erase_c7,
6006 }
6007 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006008 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006009 .write = spi_chip_write_256,
6010 .read = spi_chip_read,
6011 },
6012
6013 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006014 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00006015 .name = "LH28F008BJT-BTLZ1",
6016 .bustype = BUS_PARALLEL,
6017 .manufacture_id = SHARP_ID,
6018 .model_id = SHARP_LH28F008BJxxPB,
6019 .total_size = 1024,
6020 .page_size = 64 * 1024,
6021 .tested = TEST_OK_PREW,
6022 .probe = probe_82802ab,
6023 .probe_timing = TIMING_ZERO,
6024 .block_erasers =
6025 {
6026 {
6027 .eraseblocks = {
6028 {8 * 1024, 8},
6029 {64 * 1024, 15}
6030 },
6031 .block_erase = erase_block_82802ab,
6032 }, {
6033 .eraseblocks = { {1024 * 1024, 1} },
6034 .block_erase = erase_sector_49lfxxxc,
6035 }
6036 },
6037 .unlock = unlock_lh28f008bjt,
6038 .write = write_82802ab,
6039 .read = read_memmapped,
6040 .voltage = {2700, 3600},
6041 },
6042
6043 {
6044 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006046 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006047 .manufacture_id = SHARP_ID,
6048 .model_id = SHARP_LHF00L04,
6049 .total_size = 1024,
6050 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006051 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006052 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006053 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006054 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006055 .block_erasers =
6056 {
6057 {
6058 .eraseblocks = {
6059 {64 * 1024, 15},
6060 {8 * 1024, 8}
6061 },
Sean Nelson28accc22010-03-19 18:47:06 +00006062 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006063 }, {
6064 .eraseblocks = {
6065 {1024 * 1024, 1}
6066 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006067 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006068 },
6069 },
Sean Nelson28accc22010-03-19 18:47:06 +00006070 .unlock = unlock_82802ab,
6071 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006073 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006074 },
6075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006076 {
6077 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00006078 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006079 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006080 .manufacture_id = SPANSION_ID,
6081 .model_id = SPANSION_S25FL004A,
6082 .total_size = 512,
6083 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006084 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006085 .tested = TEST_UNTESTED,
6086 .probe = probe_spi_rdid,
6087 .probe_timing = TIMING_ZERO,
6088 .block_erasers =
6089 {
6090 {
6091 .eraseblocks = { {64 * 1024, 8} },
6092 .block_erase = spi_block_erase_d8,
6093 }, {
6094 .eraseblocks = { {512 * 1024, 1} },
6095 .block_erase = spi_block_erase_c7,
6096 }
6097 },
6098 .unlock = spi_disable_blockprotect,
6099 .write = spi_chip_write_256,
6100 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006101 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006102 },
6103
6104 {
6105 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00006106 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006107 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00006108 .manufacture_id = SPANSION_ID,
6109 .model_id = SPANSION_S25FL008A,
6110 .total_size = 1024,
6111 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006112 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006113 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00006114 .probe = probe_spi_rdid,
6115 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00006116 .block_erasers =
6117 {
6118 {
6119 .eraseblocks = { {64 * 1024, 16} },
6120 .block_erase = spi_block_erase_d8,
6121 }, {
6122 .eraseblocks = { {1024 * 1024, 1} },
6123 .block_erase = spi_block_erase_c7,
6124 }
6125 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006126 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006127 .write = spi_chip_write_256,
6128 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006129 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006130 },
6131
6132 {
6133 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006134 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006135 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006136 .manufacture_id = SPANSION_ID,
6137 .model_id = SPANSION_S25FL016A,
6138 .total_size = 2048,
6139 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006140 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006141 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006142 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006143 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006144 .block_erasers =
6145 {
6146 {
6147 .eraseblocks = { {64 * 1024, 32} },
6148 .block_erase = spi_block_erase_d8,
6149 }, {
6150 .eraseblocks = { {2 * 1024 * 1024, 1} },
6151 .block_erase = spi_block_erase_c7,
6152 }
6153 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006154 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006155 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006156 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006157 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006158 },
6159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006160 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006161 .vendor = "Spansion",
6162 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006163 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006164 .manufacture_id = SPANSION_ID,
6165 .model_id = SPANSION_S25FL032A,
6166 .total_size = 4096,
6167 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006168 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006169 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006170 .probe = probe_spi_rdid,
6171 .probe_timing = TIMING_ZERO,
6172 .block_erasers =
6173 {
6174 {
6175 .eraseblocks = { {64 * 1024, 64} },
6176 .block_erase = spi_block_erase_d8,
6177 }, {
6178 .eraseblocks = { {4 * 1024 * 1024, 1} },
6179 .block_erase = spi_block_erase_c7,
6180 }
6181 },
6182 .unlock = spi_disable_blockprotect,
6183 .write = spi_chip_write_256,
6184 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006185 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006186 },
6187
6188 {
6189 .vendor = "Spansion",
6190 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006191 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006192 .manufacture_id = SPANSION_ID,
6193 .model_id = SPANSION_S25FL064A,
6194 .total_size = 8192,
6195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006196 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006197 .tested = TEST_OK_PREW,
6198 .probe = probe_spi_rdid,
6199 .probe_timing = TIMING_ZERO,
6200 .block_erasers =
6201 {
6202 {
6203 .eraseblocks = { {64 * 1024, 128} },
6204 .block_erase = spi_block_erase_d8,
6205 }, {
6206 .eraseblocks = { {8 * 1024 * 1024, 1} },
6207 .block_erase = spi_block_erase_c7,
6208 }
6209 },
6210 .unlock = spi_disable_blockprotect,
6211 .write = spi_chip_write_256,
6212 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006213 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006214 },
6215
6216 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006217 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006218 .name = "SST25LF040A",
6219 .bustype = BUS_SPI,
6220 .manufacture_id = SST_ID,
6221 .model_id = SST_SST25VF040_REMS,
6222 .total_size = 512,
6223 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006224 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006225 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006226 .probe = probe_spi_res2,
6227 .probe_timing = TIMING_ZERO,
6228 .block_erasers =
6229 {
6230 {
6231 .eraseblocks = { {4 * 1024, 128} },
6232 .block_erase = spi_block_erase_20,
6233 }, {
6234 .eraseblocks = { {32 * 1024, 16} },
6235 .block_erase = spi_block_erase_52,
6236 }, {
6237 .eraseblocks = { {512 * 1024, 1} },
6238 .block_erase = spi_block_erase_60,
6239 },
6240 },
6241 .unlock = spi_disable_blockprotect,
6242 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6243 .read = spi_chip_read,
6244 .voltage = {3000, 3600},
6245 },
6246
6247 {
6248 .vendor = "SST",
6249 .name = "SST25LF080A",
6250 .bustype = BUS_SPI,
6251 .manufacture_id = SST_ID,
6252 .model_id = SST_SST25VF080_REMS,
6253 .total_size = 1024,
6254 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006255 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006256 .tested = TEST_UNTESTED,
6257 .probe = probe_spi_res2,
6258 .probe_timing = TIMING_ZERO,
6259 .block_erasers =
6260 {
6261 {
6262 .eraseblocks = { {4 * 1024, 256} },
6263 .block_erase = spi_block_erase_20,
6264 }, {
6265 .eraseblocks = { {32 * 1024, 32} },
6266 .block_erase = spi_block_erase_52,
6267 }, {
6268 .eraseblocks = { {1024 * 1024, 1} },
6269 .block_erase = spi_block_erase_60,
6270 },
6271 },
6272 .unlock = spi_disable_blockprotect,
6273 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6274 .read = spi_chip_read,
6275 .voltage = {3000, 3600},
6276 },
6277
6278 {
6279 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006280 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006281 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006282 .manufacture_id = SST_ID,
6283 .model_id = SST_SST25VF010_REMS,
6284 .total_size = 128,
6285 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006286 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006287 .tested = TEST_OK_PREW,
6288 .probe = probe_spi_rems,
6289 .probe_timing = TIMING_ZERO,
6290 .block_erasers =
6291 {
6292 {
6293 .eraseblocks = { {4 * 1024, 32} },
6294 .block_erase = spi_block_erase_20,
6295 }, {
6296 .eraseblocks = { {32 * 1024, 4} },
6297 .block_erase = spi_block_erase_52,
6298 }, {
6299 .eraseblocks = { {128 * 1024, 1} },
6300 .block_erase = spi_block_erase_60,
6301 },
6302 },
6303 .unlock = spi_disable_blockprotect,
6304 .write = spi_chip_write_1,
6305 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006306 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006307 },
6308
6309 {
6310 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006311 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006312 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006313 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006314 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006315 .total_size = 2048,
6316 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006317 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006318 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006319 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006320 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006321 .block_erasers =
6322 {
6323 {
6324 .eraseblocks = { {4 * 1024, 512} },
6325 .block_erase = spi_block_erase_20,
6326 }, {
6327 .eraseblocks = { {32 * 1024, 64} },
6328 .block_erase = spi_block_erase_52,
6329 }, {
6330 .eraseblocks = { {64 * 1024, 32} },
6331 .block_erase = spi_block_erase_d8,
6332 }, {
6333 .eraseblocks = { {2 * 1024 * 1024, 1} },
6334 .block_erase = spi_block_erase_60,
6335 }, {
6336 .eraseblocks = { {2 * 1024 * 1024, 1} },
6337 .block_erase = spi_block_erase_c7,
6338 },
6339 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006340 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006341 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006342 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006343 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006344 },
6345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006346 {
6347 .vendor = "SST",
6348 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006349 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006350 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006351 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006352 .total_size = 4096,
6353 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006354 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006355 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006356 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006357 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006358 .block_erasers =
6359 {
6360 {
6361 .eraseblocks = { {4 * 1024, 1024} },
6362 .block_erase = spi_block_erase_20,
6363 }, {
6364 .eraseblocks = { {32 * 1024, 128} },
6365 .block_erase = spi_block_erase_52,
6366 }, {
6367 .eraseblocks = { {64 * 1024, 64} },
6368 .block_erase = spi_block_erase_d8,
6369 }, {
6370 .eraseblocks = { {4 * 1024 * 1024, 1} },
6371 .block_erase = spi_block_erase_60,
6372 }, {
6373 .eraseblocks = { {4 * 1024 * 1024, 1} },
6374 .block_erase = spi_block_erase_c7,
6375 },
6376 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006377 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006378 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006379 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006380 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006381 },
6382
6383 {
6384 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006385 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006386 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006387 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006388 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006389 .total_size = 8192,
6390 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006391 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006392 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006393 .probe = probe_spi_rdid,
6394 .probe_timing = TIMING_ZERO,
6395 .block_erasers =
6396 {
6397 {
6398 .eraseblocks = { {4 * 1024, 2048} },
6399 .block_erase = spi_block_erase_20,
6400 }, {
6401 .eraseblocks = { {32 * 1024, 256} },
6402 .block_erase = spi_block_erase_52,
6403 }, {
6404 .eraseblocks = { {64 * 1024, 128} },
6405 .block_erase = spi_block_erase_d8,
6406 }, {
6407 .eraseblocks = { {8 * 1024 * 1024, 1} },
6408 .block_erase = spi_block_erase_60,
6409 }, {
6410 .eraseblocks = { {8 * 1024 * 1024, 1} },
6411 .block_erase = spi_block_erase_c7,
6412 },
6413 },
6414 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006415 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006416 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006417 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006418 },
6419
6420 {
6421 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006422 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006423 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006424 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006425 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006426 .total_size = 512,
6427 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006428 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006429 .tested = TEST_OK_PR,
6430 .probe = probe_spi_rems,
6431 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006432 .block_erasers =
6433 {
6434 {
6435 .eraseblocks = { {4 * 1024, 128} },
6436 .block_erase = spi_block_erase_20,
6437 }, {
6438 .eraseblocks = { {32 * 1024, 16} },
6439 .block_erase = spi_block_erase_52,
6440 }, {
6441 .eraseblocks = { {512 * 1024, 1} },
6442 .block_erase = spi_block_erase_60,
6443 },
6444 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006445 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006446 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006447 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006448 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006449 },
6450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006451 {
6452 .vendor = "SST",
6453 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006454 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006455 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006456 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006457 .total_size = 512,
6458 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006459 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006460 .tested = TEST_UNTESTED,
6461 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006462 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006463 .block_erasers =
6464 {
6465 {
6466 .eraseblocks = { {4 * 1024, 128} },
6467 .block_erase = spi_block_erase_20,
6468 }, {
6469 .eraseblocks = { {32 * 1024, 16} },
6470 .block_erase = spi_block_erase_52,
6471 }, {
6472 .eraseblocks = { {64 * 1024, 8} },
6473 .block_erase = spi_block_erase_d8,
6474 }, {
6475 .eraseblocks = { {512 * 1024, 1} },
6476 .block_erase = spi_block_erase_60,
6477 }, {
6478 .eraseblocks = { {512 * 1024, 1} },
6479 .block_erase = spi_block_erase_c7,
6480 },
6481 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006482 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006483 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006484 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006485 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006486 },
6487
6488 {
6489 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006490 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006491 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006492 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006493 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006494 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006495 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006496 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00006497 .tested = TEST_OK_PR,
6498 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006499 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006500 .block_erasers =
6501 {
6502 {
6503 .eraseblocks = { {4 * 1024, 128} },
6504 .block_erase = spi_block_erase_20,
6505 }, {
6506 .eraseblocks = { {32 * 1024, 16} },
6507 .block_erase = spi_block_erase_52,
6508 }, {
6509 .eraseblocks = { {64 * 1024, 8} },
6510 .block_erase = spi_block_erase_d8,
6511 }, {
6512 .eraseblocks = { {512 * 1024, 1} },
6513 .block_erase = spi_block_erase_60,
6514 }, {
6515 .eraseblocks = { {512 * 1024, 1} },
6516 .block_erase = spi_block_erase_c7,
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_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006521 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006522 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006523 },
6524
6525 {
6526 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006527 .name = "SST25VF080B",
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_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006531 .total_size = 1024,
6532 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006533 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00006534 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006535 .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, 256} },
6541 .block_erase = spi_block_erase_20,
6542 }, {
6543 .eraseblocks = { {32 * 1024, 32} },
6544 .block_erase = spi_block_erase_52,
6545 }, {
6546 .eraseblocks = { {64 * 1024, 16} },
6547 .block_erase = spi_block_erase_d8,
6548 }, {
6549 .eraseblocks = { {1024 * 1024, 1} },
6550 .block_erase = spi_block_erase_60,
6551 }, {
6552 .eraseblocks = { {1024 * 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,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006558 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006559 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006560 },
6561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006562 {
6563 .vendor = "SST",
6564 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006565 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006566 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006567 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006568 .total_size = 512,
6569 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006570 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006571 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006572 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006573 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006574 .block_erasers =
6575 {
6576 {
6577 .eraseblocks = { {128, 4096} },
6578 .block_erase = erase_sector_28sf040,
6579 }, {
6580 .eraseblocks = { {512 * 1024, 1} },
6581 .block_erase = erase_chip_28sf040,
6582 }
6583 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006584 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006585 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006586 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006587 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006588 },
6589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006590 {
6591 .vendor = "SST",
6592 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006593 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006594 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006595 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006596 .total_size = 128,
6597 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006598 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006599 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006600 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006601 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006602 .block_erasers =
6603 {
6604 {
6605 .eraseblocks = { {128 * 1024, 1} },
6606 .block_erase = erase_chip_block_jedec,
6607 }
6608 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006611 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006612 },
6613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006614 {
6615 .vendor = "SST",
6616 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006617 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006618 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006619 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006620 .total_size = 128,
6621 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006622 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006623 .tested = TEST_UNTESTED,
6624 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006625 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006626 .block_erasers =
6627 {
6628 {
6629 .eraseblocks = { {128 * 1024, 1} },
6630 .block_erase = erase_chip_block_jedec,
6631 }
6632 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006633 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006634 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006635 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006636 },
6637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006638 {
6639 .vendor = "SST",
6640 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006641 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006642 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006643 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006644 .total_size = 256,
6645 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006646 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006647 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006648 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006649 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006650 .block_erasers =
6651 {
6652 {
6653 .eraseblocks = { {256 * 1024, 1} },
6654 .block_erase = erase_chip_block_jedec,
6655 }
6656 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006657 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006658 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006659 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006660 },
6661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006662 {
6663 .vendor = "SST",
6664 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006665 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006666 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006667 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006668 .total_size = 256,
6669 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006670 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006671 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006672 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006673 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006674 .block_erasers =
6675 {
6676 {
6677 .eraseblocks = { {256 * 1024, 1} },
6678 .block_erase = erase_chip_block_jedec,
6679 }
6680 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006681 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006682 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006683 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006684 },
6685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006686 {
6687 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006688 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006689 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006690 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006691 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006692 .total_size = 64,
6693 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006694 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006695 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006696 .probe = probe_jedec,
6697 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006698 .block_erasers =
6699 {
6700 {
6701 .eraseblocks = { {4 * 1024, 16} },
6702 .block_erase = erase_sector_jedec,
6703 }, {
6704 .eraseblocks = { {64 * 1024, 1} },
6705 .block_erase = erase_chip_block_jedec,
6706 }
6707 },
Sean Nelson35727f72010-01-28 23:55:12 +00006708 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006709 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006710 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006711 },
6712
6713 {
6714 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006715 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006716 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006717 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006718 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006719 .total_size = 128,
6720 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006721 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006722 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006723 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006724 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006725 .block_erasers =
6726 {
6727 {
6728 .eraseblocks = { {4 * 1024, 32} },
6729 .block_erase = erase_sector_jedec,
6730 }, {
6731 .eraseblocks = { {128 * 1024, 1} },
6732 .block_erase = erase_chip_block_jedec,
6733 }
6734 },
Sean Nelson35727f72010-01-28 23:55:12 +00006735 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006736 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006737 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006738 },
6739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006740 {
6741 .vendor = "SST",
6742 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006743 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006744 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006745 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006746 .total_size = 256,
6747 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006748 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006749 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006750 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006751 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006752 .block_erasers =
6753 {
6754 {
6755 .eraseblocks = { {4 * 1024, 64} },
6756 .block_erase = erase_sector_jedec,
6757 }, {
6758 .eraseblocks = { {256 * 1024, 1} },
6759 .block_erase = erase_chip_block_jedec,
6760 }
6761 },
Sean Nelson35727f72010-01-28 23:55:12 +00006762 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006763 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006764 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006765 },
6766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006767 {
6768 .vendor = "SST",
6769 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006770 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006771 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006772 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006773 .total_size = 512,
6774 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006775 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006776 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006777 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006778 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006779 .block_erasers =
6780 {
6781 {
6782 .eraseblocks = { {4 * 1024, 128} },
6783 .block_erase = erase_sector_jedec,
6784 }, {
6785 .eraseblocks = { {512 * 1024, 1} },
6786 .block_erase = erase_chip_block_jedec,
6787 }
6788 },
Sean Nelson35727f72010-01-28 23:55:12 +00006789 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006790 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006791 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006792 },
6793
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006794 {
6795 .vendor = "SST",
6796 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006797 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006798 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006799 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006800 .total_size = 64,
6801 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006802 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006803 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006804 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006805 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006806 .block_erasers =
6807 {
6808 {
6809 .eraseblocks = { {4 * 1024, 16} },
6810 .block_erase = erase_sector_jedec,
6811 }, {
6812 .eraseblocks = { {64 * 1024, 1} },
6813 .block_erase = erase_chip_block_jedec,
6814 }
6815 },
Sean Nelson35727f72010-01-28 23:55:12 +00006816 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006817 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006818 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006819 },
6820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006821 {
6822 .vendor = "SST",
6823 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006824 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006825 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006826 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006827 .total_size = 128,
6828 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006829 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00006830 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006831 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006832 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006833 .block_erasers =
6834 {
6835 {
6836 .eraseblocks = { {4 * 1024, 32} },
6837 .block_erase = erase_sector_jedec,
6838 }, {
6839 .eraseblocks = { {128 * 1024, 1} },
6840 .block_erase = erase_chip_block_jedec,
6841 }
6842 },
Sean Nelson35727f72010-01-28 23:55:12 +00006843 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006844 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006845 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006846 },
6847
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006848 {
6849 .vendor = "SST",
6850 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006851 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006852 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006853 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006854 .total_size = 256,
6855 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006856 .feature_bits = FEATURE_EITHER_RESET,
6857 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006858 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006859 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006860 .block_erasers =
6861 {
6862 {
6863 .eraseblocks = { {4 * 1024, 64} },
6864 .block_erase = erase_sector_jedec,
6865 }, {
6866 .eraseblocks = { {256 * 1024, 1} },
6867 .block_erase = erase_chip_block_jedec,
6868 }
6869 },
Sean Nelson35727f72010-01-28 23:55:12 +00006870 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006871 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006872 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006873 },
6874
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006875 {
6876 .vendor = "SST",
6877 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006878 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006879 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006880 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006881 .total_size = 512,
6882 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006883 .feature_bits = FEATURE_EITHER_RESET,
6884 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006885 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006886 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006887 .block_erasers =
6888 {
6889 {
6890 .eraseblocks = { {4 * 1024, 128} },
6891 .block_erase = erase_sector_jedec,
6892 }, {
6893 .eraseblocks = { {512 * 1024, 1} },
6894 .block_erase = erase_chip_block_jedec,
6895 }
6896 },
Sean Nelson35727f72010-01-28 23:55:12 +00006897 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006898 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006899 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006900 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006901
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006902 {
6903 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006904 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006905 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006906 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006907 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006908 .total_size = 1024,
6909 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006910 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006911 .tested = TEST_UNTESTED,
6912 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006913 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006914 .block_erasers =
6915 {
6916 {
6917 .eraseblocks = { {4 * 1024, 256} },
6918 .block_erase = erase_sector_jedec,
6919 }, {
6920 .eraseblocks = { {64 * 1024, 16} },
6921 .block_erase = erase_block_jedec,
6922 }, {
6923 .eraseblocks = { {1024 * 1024, 1} },
6924 .block_erase = erase_chip_block_jedec,
6925 }
6926 },
Sean Nelson35727f72010-01-28 23:55:12 +00006927 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006928 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006929 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006930 },
6931
6932 {
6933 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006934 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006935 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006936 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006937 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006938 .total_size = 256,
6939 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006940 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006941 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006942 .probe = probe_jedec,
6943 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006944 .block_erasers =
6945 {
6946 {
6947 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006948 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006949 }, {
6950 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006951 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006952 }, {
6953 .eraseblocks = { {256 * 1024, 1} },
6954 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6955 }
6956 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006957 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006958 .unlock = unlock_sst_fwhub,
6959 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006960 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006961 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006962 },
6963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006964 {
6965 .vendor = "SST",
6966 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006967 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006968 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006969 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006970 .total_size = 384,
6971 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006972 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006973 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006974 .probe = probe_jedec,
6975 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006976 .block_erasers =
6977 {
6978 {
6979 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006980 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006981 }, {
6982 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006983 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006984 }, {
6985 .eraseblocks = { {384 * 1024, 1} },
6986 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6987 }
6988 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006989 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006990 .unlock = unlock_sst_fwhub,
6991 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006993 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006994 },
6995
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006996 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006997 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6998 * and is only honored for 64k block erase, but not 4k sector erase.
6999 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007000 .vendor = "SST",
7001 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007002 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007003 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007004 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 .total_size = 512,
7006 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007007 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007008 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007009 .probe = probe_jedec,
7010 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007011 .block_erasers =
7012 {
7013 {
7014 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007015 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007016 }, {
7017 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007018 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007019 }, {
7020 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007021 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007022 },
7023 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007024 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007025 .unlock = unlock_sst_fwhub,
7026 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007027 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007028 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007029 },
7030
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007031 {
7032 .vendor = "SST",
7033 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007034 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007035 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007036 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 .total_size = 512,
7038 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007039 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007040 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007041 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007042 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007043 .block_erasers =
7044 {
7045 {
7046 .eraseblocks = { {4 * 1024, 128} },
7047 .block_erase = erase_sector_49lfxxxc,
7048 }, {
7049 .eraseblocks = {
7050 {64 * 1024, 7},
7051 {32 * 1024, 1},
7052 {8 * 1024, 2},
7053 {16 * 1024, 1},
7054 },
Sean Nelson69e58112010-03-23 17:10:28 +00007055 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007056 }
7057 },
Sean Nelson69e58112010-03-23 17:10:28 +00007058 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007059 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007060 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007061 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007062 },
7063
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007064 {
7065 .vendor = "SST",
7066 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007067 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007068 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007069 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007070 .total_size = 1024,
7071 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007072 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007073 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007074 .probe = probe_jedec,
7075 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007076 .block_erasers =
7077 {
7078 {
7079 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007080 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007081 }, {
7082 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007083 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007084 }, {
7085 .eraseblocks = { {1024 * 1024, 1} },
7086 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7087 }
7088 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007089 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007090 .unlock = unlock_sst_fwhub,
7091 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007093 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007094 },
7095
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007096 {
7097 .vendor = "SST",
7098 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007099 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007100 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007101 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007102 .total_size = 1024,
7103 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007104 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007105 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007106 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007107 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007108 .block_erasers =
7109 {
7110 {
7111 .eraseblocks = { {4 * 1024, 256} },
7112 .block_erase = erase_sector_49lfxxxc,
7113 }, {
7114 .eraseblocks = {
7115 {64 * 1024, 15},
7116 {32 * 1024, 1},
7117 {8 * 1024, 2},
7118 {16 * 1024, 1},
7119 },
Sean Nelson69e58112010-03-23 17:10:28 +00007120 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007121 }
7122 },
Sean Nelson69e58112010-03-23 17:10:28 +00007123 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007124 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007126 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007127 },
7128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007129 {
7130 .vendor = "SST",
7131 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007132 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007133 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007134 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007135 .total_size = 2048,
7136 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007137 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007138 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007139 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007140 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007141 .block_erasers =
7142 {
7143 {
7144 .eraseblocks = { {4 * 1024, 512} },
7145 .block_erase = erase_sector_49lfxxxc,
7146 }, {
7147 .eraseblocks = {
7148 {64 * 1024, 31},
7149 {32 * 1024, 1},
7150 {8 * 1024, 2},
7151 {16 * 1024, 1},
7152 },
Sean Nelson69e58112010-03-23 17:10:28 +00007153 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007154 }
7155 },
Sean Nelson69e58112010-03-23 17:10:28 +00007156 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007157 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007159 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007160 },
7161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007162 {
7163 .vendor = "SST",
7164 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007165 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007166 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007167 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007168 .total_size = 256,
7169 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007170 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007171 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007172 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007173 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007174 .block_erasers =
7175 {
7176 {
7177 .eraseblocks = { {4 * 1024, 64} },
7178 .block_erase = erase_sector_jedec,
7179 }, {
7180 .eraseblocks = { {16 * 1024, 16} },
7181 .block_erase = erase_block_jedec,
7182 }, {
7183 .eraseblocks = { {256 * 1024, 1} },
7184 .block_erase = NULL,
7185 }
7186 },
Sean Nelson35727f72010-01-28 23:55:12 +00007187 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007189 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007190 },
7191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007192 {
7193 .vendor = "SST",
7194 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007195 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007196 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007197 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007198 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007199 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007200 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007201 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007202 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007203 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007204 .block_erasers =
7205 {
7206 {
7207 .eraseblocks = { {4 * 1024, 64} },
7208 .block_erase = erase_sector_jedec,
7209 }, {
7210 .eraseblocks = { {16 * 1024, 16} },
7211 .block_erase = erase_block_jedec,
7212 }, {
7213 .eraseblocks = { {256 * 1024, 1} },
7214 .block_erase = NULL,
7215 }
7216 },
Sean Nelson35727f72010-01-28 23:55:12 +00007217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007219 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007220 },
7221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007222 {
7223 .vendor = "SST",
7224 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007225 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007226 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007227 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007228 .total_size = 512,
7229 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007230 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007231 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007232 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007233 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007234 .block_erasers =
7235 {
7236 {
7237 .eraseblocks = { {4 * 1024, 128} },
7238 .block_erase = erase_sector_jedec,
7239 }, {
7240 .eraseblocks = { {64 * 1024, 8} },
7241 .block_erase = erase_block_jedec,
7242 }, {
7243 .eraseblocks = { {512 * 1024, 1} },
7244 .block_erase = NULL,
7245 }
7246 },
Sean Nelson35727f72010-01-28 23:55:12 +00007247 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007248 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007249 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007250 },
7251
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007252 {
7253 .vendor = "SST",
7254 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007255 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007256 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007257 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007258 .total_size = 512,
7259 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007260 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007261 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007262 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007263 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007264 .block_erasers =
7265 {
7266 {
7267 .eraseblocks = { {4 * 1024, 128} },
7268 .block_erase = erase_sector_jedec,
7269 }, {
7270 .eraseblocks = { {64 * 1024, 8} },
7271 .block_erase = erase_block_jedec,
7272 }, {
7273 .eraseblocks = { {512 * 1024, 1} },
7274 .block_erase = NULL,
7275 }
7276 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007277 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007280 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007281 },
7282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007283 {
7284 .vendor = "SST",
7285 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007286 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007287 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007288 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007289 .total_size = 1024,
7290 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007291 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007292 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007293 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007294 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007295 .block_erasers =
7296 {
7297 {
7298 .eraseblocks = { {4 * 1024, 256} },
7299 .block_erase = erase_sector_jedec,
7300 }, {
7301 .eraseblocks = { {64 * 1024, 16} },
7302 .block_erase = erase_block_jedec,
7303 }, {
7304 .eraseblocks = { {1024 * 1024, 1} },
7305 .block_erase = NULL,
7306 }
7307 },
Sean Nelson35727f72010-01-28 23:55:12 +00007308 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007309 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007310 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007311 },
7312
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007313 {
7314 .vendor = "SST",
7315 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007316 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007317 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007318 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007319 .total_size = 2048,
7320 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007321 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007322 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007323 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007324 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007325 .block_erasers =
7326 {
7327 {
7328 .eraseblocks = { {4 * 1024, 512} },
7329 .block_erase = erase_sector_49lfxxxc,
7330 }, {
7331 .eraseblocks = {
7332 {64 * 1024, 31},
7333 {32 * 1024, 1},
7334 {8 * 1024, 2},
7335 {16 * 1024, 1},
7336 },
Sean Nelson69e58112010-03-23 17:10:28 +00007337 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007338 }
7339 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007340 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007341 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007342 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007343 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007344 },
7345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007346 {
7347 .vendor = "ST",
7348 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007349 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007350 .manufacture_id = ST_ID,
7351 .model_id = ST_M25P05A,
7352 .total_size = 64,
7353 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007354 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007355 .tested = TEST_UNTESTED,
7356 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007357 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007358 .block_erasers =
7359 {
7360 {
7361 .eraseblocks = { {32 * 1024, 2} },
7362 .block_erase = spi_block_erase_d8,
7363 }, {
7364 .eraseblocks = { {64 * 1024, 1} },
7365 .block_erase = spi_block_erase_c7,
7366 }
7367 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007368 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007369 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007370 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007371 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007372 },
7373
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007374 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7375 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007376 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007377 * only is successful if RDID does not work.
7378 */
7379 {
7380 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007381 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007382 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007383 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007384 .model_id = ST_M25P05_RES,
7385 .total_size = 64,
7386 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007387 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007388 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007389 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007390 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007391 .block_erasers =
7392 {
7393 {
7394 .eraseblocks = { {32 * 1024, 2} },
7395 .block_erase = spi_block_erase_d8,
7396 }, {
7397 .eraseblocks = { {64 * 1024, 1} },
7398 .block_erase = spi_block_erase_c7,
7399 }
7400 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007401 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007402 .write = spi_chip_write_1, /* 128 */
7403 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007404 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007405 },
7406
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007407 {
7408 .vendor = "ST",
7409 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007410 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007411 .manufacture_id = ST_ID,
7412 .model_id = ST_M25P10A,
7413 .total_size = 128,
7414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007415 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007416 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007417 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007418 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007419 .block_erasers =
7420 {
7421 {
7422 .eraseblocks = { {32 * 1024, 4} },
7423 .block_erase = spi_block_erase_d8,
7424 }, {
7425 .eraseblocks = { {128 * 1024, 1} },
7426 .block_erase = spi_block_erase_c7,
7427 }
7428 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007429 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007430 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007431 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007432 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007433 },
7434
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007435 /* The ST M25P10 has the same problem as the M25P05. */
7436 {
7437 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007438 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007439 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007440 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007441 .model_id = ST_M25P10_RES,
7442 .total_size = 128,
7443 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007444 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007445 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007446 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007447 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007448 .block_erasers =
7449 {
7450 {
7451 .eraseblocks = { {32 * 1024, 4} },
7452 .block_erase = spi_block_erase_d8,
7453 }, {
7454 .eraseblocks = { {128 * 1024, 1} },
7455 .block_erase = spi_block_erase_c7,
7456 }
7457 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007458 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007459 .write = spi_chip_write_1, /* 128 */
7460 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007461 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007462 },
7463
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007464 {
7465 .vendor = "ST",
7466 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007467 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007468 .manufacture_id = ST_ID,
7469 .model_id = ST_M25P20,
7470 .total_size = 256,
7471 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007472 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007473 .tested = TEST_UNTESTED,
7474 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007475 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007476 .block_erasers =
7477 {
7478 {
7479 .eraseblocks = { {64 * 1024, 4} },
7480 .block_erase = spi_block_erase_d8,
7481 }, {
7482 .eraseblocks = { {256 * 1024, 1} },
7483 .block_erase = spi_block_erase_c7,
7484 }
7485 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007486 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007487 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007488 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007489 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007490 },
7491
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007492 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007493 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007494 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007495 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007496 .manufacture_id = ST_ID,
7497 .model_id = ST_M25P40,
7498 .total_size = 512,
7499 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007500 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007501 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007502 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007503 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007504 .block_erasers =
7505 {
7506 {
7507 .eraseblocks = { {64 * 1024, 8} },
7508 .block_erase = spi_block_erase_d8,
7509 }, {
7510 .eraseblocks = { {512 * 1024, 1} },
7511 .block_erase = spi_block_erase_c7,
7512 }
7513 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007514 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007515 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007516 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007517 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007518 },
7519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007520 {
7521 .vendor = "ST",
7522 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007523 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007524 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007525 .model_id = ST_M25P40_RES,
7526 .total_size = 512,
7527 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007528 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007529 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007530 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007531 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007532 .block_erasers =
7533 {
7534 {
7535 .eraseblocks = { {64 * 1024, 8} },
7536 .block_erase = spi_block_erase_d8,
7537 }, {
7538 .eraseblocks = { {512 * 1024, 1} },
7539 .block_erase = spi_block_erase_c7,
7540 }
7541 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007542 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007543 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007544 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007545 },
7546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007547 {
7548 .vendor = "ST",
7549 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007550 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007551 .manufacture_id = ST_ID,
7552 .model_id = ST_M25P80,
7553 .total_size = 1024,
7554 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007555 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007556 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007557 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007558 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007559 .block_erasers =
7560 {
7561 {
7562 .eraseblocks = { {64 * 1024, 16} },
7563 .block_erase = spi_block_erase_d8,
7564 }, {
7565 .eraseblocks = { {1024 * 1024, 1} },
7566 .block_erase = spi_block_erase_c7,
7567 }
7568 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007569 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007570 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007571 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007572 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007573 },
7574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007575 {
7576 .vendor = "ST",
7577 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007578 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007579 .manufacture_id = ST_ID,
7580 .model_id = ST_M25P16,
7581 .total_size = 2048,
7582 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007583 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007584 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007585 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007586 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007587 .block_erasers =
7588 {
7589 {
7590 .eraseblocks = { {64 * 1024, 32} },
7591 .block_erase = spi_block_erase_d8,
7592 }, {
7593 .eraseblocks = { {2 * 1024 * 1024, 1} },
7594 .block_erase = spi_block_erase_c7,
7595 }
7596 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007597 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007598 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007599 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007600 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007601 },
7602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007603 {
7604 .vendor = "ST",
7605 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007606 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007607 .manufacture_id = ST_ID,
7608 .model_id = ST_M25P32,
7609 .total_size = 4096,
7610 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007611 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007613 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007614 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007615 .block_erasers =
7616 {
7617 {
7618 .eraseblocks = { {64 * 1024, 64} },
7619 .block_erase = spi_block_erase_d8,
7620 }, {
7621 .eraseblocks = { {4 * 1024 * 1024, 1} },
7622 .block_erase = spi_block_erase_c7,
7623 }
7624 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007625 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007626 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007627 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007628 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007629 },
7630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007631 {
7632 .vendor = "ST",
7633 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007634 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007635 .manufacture_id = ST_ID,
7636 .model_id = ST_M25P64,
7637 .total_size = 8192,
7638 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007639 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007640 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007641 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007642 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007643 .block_erasers =
7644 {
7645 {
7646 .eraseblocks = { {64 * 1024, 128} },
7647 .block_erase = spi_block_erase_d8,
7648 }, {
7649 .eraseblocks = { {8 * 1024 * 1024, 1} },
7650 .block_erase = spi_block_erase_c7,
7651 }
7652 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007653 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007654 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007655 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007656 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007657 },
7658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007659 {
7660 .vendor = "ST",
7661 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007662 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007663 .manufacture_id = ST_ID,
7664 .model_id = ST_M25P128,
7665 .total_size = 16384,
7666 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007667 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007668 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007670 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007671 .block_erasers =
7672 {
7673 {
7674 .eraseblocks = { {256 * 1024, 64} },
7675 .block_erase = spi_block_erase_d8,
7676 }, {
7677 .eraseblocks = { {16 * 1024 * 1024, 1} },
7678 .block_erase = spi_block_erase_c7,
7679 }
7680 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007681 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007682 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007683 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007684 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007685 },
7686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007687 {
7688 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007689 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007690 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007691 .manufacture_id = ST_ID,
7692 .model_id = ST_M25PX16,
7693 .total_size = 2048,
7694 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007695 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00007696 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007697 .tested = TEST_OK_PREW,
7698 .probe = probe_spi_rdid,
7699 .probe_timing = TIMING_ZERO,
7700 .block_erasers =
7701 {
7702 {
7703 .eraseblocks = { { 4 * 1024, 512 } },
7704 .block_erase = spi_block_erase_20,
7705 }, {
7706 .eraseblocks = { {64 * 1024, 32} },
7707 .block_erase = spi_block_erase_d8,
7708 }, {
7709 .eraseblocks = { {2 * 1024 * 1024, 1} },
7710 .block_erase = spi_block_erase_c7,
7711 }
7712 },
7713 .unlock = spi_disable_blockprotect,
7714 .write = spi_chip_write_256,
7715 .read = spi_chip_read,
7716 },
7717
7718 {
7719 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007720 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007721 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007722 .manufacture_id = ST_ID,
7723 .model_id = ST_M25PX32,
7724 .total_size = 4096,
7725 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007726 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007727 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007728 .probe = probe_spi_rdid,
7729 .probe_timing = TIMING_ZERO,
7730 .block_erasers =
7731 {
7732 {
7733 .eraseblocks = { { 4 * 1024, 1024 } },
7734 .block_erase = spi_block_erase_20,
7735 }, {
7736 .eraseblocks = { {64 * 1024, 64} },
7737 .block_erase = spi_block_erase_d8,
7738 }, {
7739 .eraseblocks = { {4 * 1024 * 1024, 1} },
7740 .block_erase = spi_block_erase_c7,
7741 }
7742 },
7743 .unlock = spi_disable_blockprotect,
7744 .write = spi_chip_write_256,
7745 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007746 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007747 },
7748
7749 {
7750 .vendor = "ST",
7751 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007752 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007753 .manufacture_id = ST_ID,
7754 .model_id = ST_M25PX64,
7755 .total_size = 8192,
7756 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007757 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007758 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007759 .probe = probe_spi_rdid,
7760 .probe_timing = TIMING_ZERO,
7761 .block_erasers =
7762 {
7763 {
7764 .eraseblocks = { { 4 * 1024, 2048 } },
7765 .block_erase = spi_block_erase_20,
7766 }, {
7767 .eraseblocks = { {64 * 1024, 128} },
7768 .block_erase = spi_block_erase_d8,
7769 }, {
7770 .eraseblocks = { {8 * 1024 * 1024, 1} },
7771 .block_erase = spi_block_erase_c7,
7772 }
7773 },
7774 .unlock = spi_disable_blockprotect,
7775 .write = spi_chip_write_256,
7776 .read = spi_chip_read,
7777 },
7778
7779 {
7780 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007781 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007782 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007783 .manufacture_id = ST_ID,
7784 .model_id = ST_M29F002B,
7785 .total_size = 256,
7786 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007787 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007788 .tested = TEST_UNTESTED,
7789 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007790 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007791 .block_erasers =
7792 {
7793 {
7794 .eraseblocks = {
7795 {16 * 1024, 1},
7796 {8 * 1024, 2},
7797 {32 * 1024, 1},
7798 {64 * 1024, 3},
7799 },
7800 .block_erase = erase_sector_jedec,
7801 }, {
7802 .eraseblocks = { {256 * 1024, 1} },
7803 .block_erase = erase_chip_block_jedec,
7804 }
7805 },
Sean Nelson35727f72010-01-28 23:55:12 +00007806 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007807 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007808 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007809 },
7810
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007811 {
7812 .vendor = "ST",
7813 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007814 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007815 .manufacture_id = ST_ID,
7816 .model_id = ST_M29F002T,
7817 .total_size = 256,
7818 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007819 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7820 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007821 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007822 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007823 .block_erasers =
7824 {
7825 {
7826 .eraseblocks = {
7827 {64 * 1024, 3},
7828 {32 * 1024, 1},
7829 {8 * 1024, 2},
7830 {16 * 1024, 1},
7831 },
7832 .block_erase = erase_sector_jedec,
7833 }, {
7834 .eraseblocks = { {256 * 1024, 1} },
7835 .block_erase = erase_chip_block_jedec,
7836 }
7837 },
Sean Nelson35727f72010-01-28 23:55:12 +00007838 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007839 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007840 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007841 },
7842
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007843 {
7844 .vendor = "ST",
7845 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007846 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007847 .manufacture_id = ST_ID,
7848 .model_id = ST_M29F040B,
7849 .total_size = 512,
7850 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007851 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7852 .tested = TEST_UNTESTED,
7853 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007854 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007855 .block_erasers =
7856 {
7857 {
7858 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007859 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007860 }, {
7861 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007862 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007863 }
7864 },
Sean Nelson35727f72010-01-28 23:55:12 +00007865 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007867 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007868 },
7869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007870 {
Sean Nelson35727f72010-01-28 23:55:12 +00007871 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007872 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007873 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007874 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007875 .manufacture_id = ST_ID,
7876 .model_id = ST_M29F400BB,
7877 .total_size = 512,
7878 .page_size = 64 * 1024,
7879 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007880 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007881 .probe = probe_m29f400bt,
7882 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7883 .block_erasers =
7884 {
7885 {
7886 .eraseblocks = {
7887 {16 * 1024, 1},
7888 {8 * 1024, 2},
7889 {32 * 1024, 1},
7890 {64 * 1024, 7},
7891 },
7892 .block_erase = block_erase_m29f400bt,
7893 }, {
7894 .eraseblocks = { {512 * 1024, 1} },
7895 .block_erase = block_erase_chip_m29f400bt,
7896 }
7897 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007898 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007899 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007900 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007901 },
7902 {
7903 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7904 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007905 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007906 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007907 .manufacture_id = ST_ID,
7908 .model_id = ST_M29F400BT,
7909 .total_size = 512,
7910 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007911 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007912 .tested = TEST_UNTESTED,
7913 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007914 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007915 .block_erasers =
7916 {
7917 {
7918 .eraseblocks = {
7919 {64 * 1024, 7},
7920 {32 * 1024, 1},
7921 {8 * 1024, 2},
7922 {16 * 1024, 1},
7923 },
7924 .block_erase = block_erase_m29f400bt,
7925 }, {
7926 .eraseblocks = { {512 * 1024, 1} },
7927 .block_erase = block_erase_chip_m29f400bt,
7928 }
7929 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007930 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007931 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007932 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007933 },
7934
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007935 {
7936 .vendor = "ST",
7937 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007938 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007939 .manufacture_id = ST_ID,
7940 .model_id = ST_M29W010B,
7941 .total_size = 128,
7942 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007943 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007944 .tested = TEST_UNTESTED,
7945 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007946 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007947 .block_erasers =
7948 {
7949 {
7950 .eraseblocks = { {16 * 1024, 8}, },
7951 .block_erase = erase_sector_jedec,
7952 }, {
7953 .eraseblocks = { {128 * 1024, 1} },
7954 .block_erase = erase_chip_block_jedec,
7955 }
7956 },
Sean Nelson35727f72010-01-28 23:55:12 +00007957 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007959 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007960 },
7961
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007962 {
7963 .vendor = "ST",
7964 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007965 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007966 .manufacture_id = ST_ID,
7967 .model_id = ST_M29W040B,
7968 .total_size = 512,
7969 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007970 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007971 .tested = TEST_UNTESTED,
7972 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007973 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007974 .block_erasers =
7975 {
7976 {
7977 .eraseblocks = { {64 * 1024, 8}, },
7978 .block_erase = erase_sector_jedec,
7979 }, {
7980 .eraseblocks = { {512 * 1024, 1} },
7981 .block_erase = erase_chip_block_jedec,
7982 }
7983 },
Sean Nelson35727f72010-01-28 23:55:12 +00007984 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007985 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007986 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007987 },
7988
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007989 {
7990 .vendor = "ST",
7991 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007992 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007993 .manufacture_id = ST_ID,
7994 .model_id = ST_M29W512B,
7995 .total_size = 64,
7996 .page_size = 64 * 1024,
7997 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007998 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007999 .probe = probe_jedec,
8000 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008001 .block_erasers =
8002 {
8003 {
8004 .eraseblocks = { {64 * 1024, 1} },
8005 .block_erase = erase_chip_block_jedec,
8006 }
8007 },
8008 .write = write_jedec_1,
8009 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008010 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008011 },
8012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008013 {
8014 .vendor = "ST",
8015 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008016 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008017 .manufacture_id = ST_ID,
8018 .model_id = ST_M50FLW040A,
8019 .total_size = 512,
8020 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008021 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008022 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008023 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008024 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008025 .block_erasers =
8026 {
8027 {
Sean Nelson329bde72010-01-19 16:39:19 +00008028 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008029 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008030 {64 * 1024, 5}, /* block */
8031 {4 * 1024, 16}, /* sector */
8032 {4 * 1024, 16}, /* sector */
8033 },
8034 .block_erase = NULL,
8035 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008036 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008037 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008038 }
8039 },
Sean Nelson28accc22010-03-19 18:47:06 +00008040 .unlock = unlock_stm50flw0x0x,
8041 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008043 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008044 },
8045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008046 {
8047 .vendor = "ST",
8048 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008049 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008050 .manufacture_id = ST_ID,
8051 .model_id = ST_M50FLW040B,
8052 .total_size = 512,
8053 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008054 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008055 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008056 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008057 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008058 .block_erasers =
8059 {
8060 {
Sean Nelson329bde72010-01-19 16:39:19 +00008061 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008062 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008063 {4 * 1024, 16}, /* sector */
8064 {64 * 1024, 5}, /* block */
8065 {4 * 1024, 16}, /* sector */
8066 },
8067 .block_erase = NULL,
8068 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008069 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008070 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008071 }
8072 },
Sean Nelson28accc22010-03-19 18:47:06 +00008073 .unlock = unlock_stm50flw0x0x,
8074 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008075 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008076 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008077 },
8078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008079 {
8080 .vendor = "ST",
8081 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008082 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008083 .manufacture_id = ST_ID,
8084 .model_id = ST_M50FLW080A,
8085 .total_size = 1024,
8086 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008087 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008088 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00008089 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008090 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008091 .block_erasers =
8092 {
8093 {
Sean Nelson329bde72010-01-19 16:39:19 +00008094 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008095 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008096 {64 * 1024, 13}, /* block */
8097 {4 * 1024, 16}, /* sector */
8098 {4 * 1024, 16}, /* sector */
8099 },
8100 .block_erase = NULL,
8101 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008102 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008103 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008104 }
8105 },
Sean Nelson28accc22010-03-19 18:47:06 +00008106 .unlock = unlock_stm50flw0x0x,
8107 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008108 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008109 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008110 },
8111
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008112 {
8113 .vendor = "ST",
8114 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008115 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008116 .manufacture_id = ST_ID,
8117 .model_id = ST_M50FLW080B,
8118 .total_size = 1024,
8119 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008120 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008121 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008122 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008123 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008124 .block_erasers =
8125 {
8126 {
Sean Nelson329bde72010-01-19 16:39:19 +00008127 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008128 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008129 {4 * 1024, 16}, /* sector */
8130 {64 * 1024, 13}, /* block */
8131 {4 * 1024, 16}, /* sector */
8132 },
8133 .block_erase = NULL,
8134 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008135 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008136 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008137 }
8138 },
Sean Nelson28accc22010-03-19 18:47:06 +00008139 .unlock = unlock_stm50flw0x0x,
8140 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008141 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008142 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008143 },
8144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008145 {
8146 .vendor = "ST",
8147 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008148 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008149 .manufacture_id = ST_ID,
8150 .model_id = ST_M50FW002,
8151 .total_size = 256,
8152 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008153 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008154 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008155 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008156 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008157 .block_erasers =
8158 {
8159 {
8160 .eraseblocks = {
8161 {64 * 1024, 3},
8162 {32 * 1024, 1},
8163 {8 * 1024, 2},
8164 {16 * 1024, 1},
8165 },
Sean Nelson28accc22010-03-19 18:47:06 +00008166 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008167 }
8168 },
Sean Nelson28accc22010-03-19 18:47:06 +00008169 .unlock = unlock_stm50flw0x0x,
8170 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008172 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008173 },
8174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008175 {
8176 .vendor = "ST",
8177 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008178 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008179 .manufacture_id = ST_ID,
8180 .model_id = ST_M50FW016,
8181 .total_size = 2048,
8182 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008183 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008184 .tested = TEST_UNTESTED,
8185 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008186 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008187 .block_erasers =
8188 {
8189 {
8190 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008191 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008192 }
8193 },
Sean Nelson28accc22010-03-19 18:47:06 +00008194 .unlock = unlock_stm50flw0x0x,
8195 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008197 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008198 },
8199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008200 {
8201 .vendor = "ST",
8202 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008203 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008204 .manufacture_id = ST_ID,
8205 .model_id = ST_M50FW040,
8206 .total_size = 512,
8207 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008208 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008209 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008210 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008211 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008212 .block_erasers =
8213 {
8214 {
8215 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008216 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008217 }
8218 },
Sean Nelson28accc22010-03-19 18:47:06 +00008219 .unlock = unlock_stm50flw0x0x,
8220 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008221 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008222 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008223 },
8224
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008225 {
8226 .vendor = "ST",
8227 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008228 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008229 .manufacture_id = ST_ID,
8230 .model_id = ST_M50FW080,
8231 .total_size = 1024,
8232 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008233 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008234 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008235 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008236 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008237 .block_erasers =
8238 {
8239 {
8240 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008241 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008242 }
8243 },
Sean Nelson28accc22010-03-19 18:47:06 +00008244 .unlock = unlock_stm50flw0x0x,
8245 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008246 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008247 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008248 },
8249
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008250 {
8251 .vendor = "ST",
8252 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008253 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008254 .manufacture_id = ST_ID,
8255 .model_id = ST_M50LPW116,
8256 .total_size = 2048,
8257 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008258 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008259 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008260 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008261 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008262 .block_erasers =
8263 {
8264 {
8265 .eraseblocks = {
8266 {4 * 1024, 16},
8267 {64 * 1024, 30},
8268 {32 * 1024, 1},
8269 {8 * 1024, 2},
8270 {16 * 1024, 1},
8271 },
Sean Nelson28accc22010-03-19 18:47:06 +00008272 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008273 }
8274 },
Sean Nelson28accc22010-03-19 18:47:06 +00008275 .unlock = unlock_stm50flw0x0x,
8276 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008277 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008278 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008279 },
8280
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008281 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008282 .vendor = "SyncMOS/MoselVitelic",
8283 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008284 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008285 .manufacture_id = SYNCMOS_MVC_ID,
8286 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008287 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008288 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008289 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008290 .tested = TEST_UNTESTED,
8291 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008292 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008293 .block_erasers =
8294 {
8295 {
8296 .eraseblocks = { {512, 256} },
8297 .block_erase = erase_sector_jedec,
8298 }, {
8299 .eraseblocks = { {128 * 1024, 1} },
8300 .block_erase = erase_chip_block_jedec,
8301 },
8302 },
Sean Nelson35727f72010-01-28 23:55:12 +00008303 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008304 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008305 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008306 },
8307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008308 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008309 .vendor = "SyncMOS/MoselVitelic",
8310 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008311 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008312 .manufacture_id = SYNCMOS_MVC_ID,
8313 .model_id = SM_MVC_29C51001T,
8314 .total_size = 128,
8315 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008316 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008317 .tested = TEST_UNTESTED,
8318 .probe = probe_jedec,
8319 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8320 .block_erasers =
8321 {
8322 {
8323 .eraseblocks = { {512, 256} },
8324 .block_erase = erase_sector_jedec,
8325 }, {
8326 .eraseblocks = { {128 * 1024, 1} },
8327 .block_erase = erase_chip_block_jedec,
8328 },
8329 },
8330 .write = write_jedec_1,
8331 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008332 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008333 },
8334
8335 {
8336 .vendor = "SyncMOS/MoselVitelic",
8337 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008338 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008339 .manufacture_id = SYNCMOS_MVC_ID,
8340 .model_id = SM_MVC_29C51002B,
8341 .total_size = 256,
8342 .page_size = 512,
8343 .feature_bits = FEATURE_EITHER_RESET,
8344 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008345 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008346 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008347 .block_erasers =
8348 {
8349 {
8350 .eraseblocks = { {512, 512} },
8351 .block_erase = erase_sector_jedec,
8352 }, {
8353 .eraseblocks = { {256 * 1024, 1} },
8354 .block_erase = erase_chip_block_jedec,
8355 },
8356 },
Sean Nelson35727f72010-01-28 23:55:12 +00008357 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008358 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008359 },
8360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008361 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008362 .vendor = "SyncMOS/MoselVitelic",
8363 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008364 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008365 .manufacture_id = SYNCMOS_MVC_ID,
8366 .model_id = SM_MVC_29C51002T,
8367 .total_size = 256,
8368 .page_size = 512,
8369 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008370 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008371 .probe = probe_jedec,
8372 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8373 .block_erasers =
8374 {
8375 {
8376 .eraseblocks = { {512, 512} },
8377 .block_erase = erase_sector_jedec,
8378 }, {
8379 .eraseblocks = { {256 * 1024, 1} },
8380 .block_erase = erase_chip_block_jedec,
8381 },
8382 },
8383 .write = write_jedec_1,
8384 .read = read_memmapped,
8385 },
8386
8387 {
8388 .vendor = "SyncMOS/MoselVitelic",
8389 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008390 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008391 .manufacture_id = SYNCMOS_MVC_ID,
8392 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008393 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008394 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008395 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008396 .tested = TEST_UNTESTED,
8397 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008398 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008399 .block_erasers =
8400 {
8401 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008402 .eraseblocks = { {1024, 512} },
8403 .block_erase = erase_sector_jedec,
8404 }, {
8405 .eraseblocks = { {512 * 1024, 1} },
8406 .block_erase = erase_chip_block_jedec,
8407 },
8408 },
8409 .write = write_jedec_1,
8410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008411 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008412 },
8413
8414 {
8415 .vendor = "SyncMOS/MoselVitelic",
8416 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008417 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008418 .manufacture_id = SYNCMOS_MVC_ID,
8419 .model_id = SM_MVC_29C51004T,
8420 .total_size = 512,
8421 .page_size = 1024,
8422 .feature_bits = FEATURE_EITHER_RESET,
8423 .tested = TEST_UNTESTED,
8424 .probe = probe_jedec,
8425 .probe_timing = TIMING_ZERO,
8426 .block_erasers =
8427 {
8428 {
8429 .eraseblocks = { {1024, 512} },
8430 .block_erase = erase_sector_jedec,
8431 }, {
8432 .eraseblocks = { {512 * 1024, 1} },
8433 .block_erase = erase_chip_block_jedec,
8434 },
8435 },
8436 .write = write_jedec_1,
8437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008438 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008439 },
8440
8441 {
8442 .vendor = "SyncMOS/MoselVitelic",
8443 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008444 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008445 .manufacture_id = SYNCMOS_MVC_ID,
8446 .model_id = SM_MVC_29C31004B,
8447 .total_size = 512,
8448 .page_size = 1024,
8449 .feature_bits = FEATURE_EITHER_RESET,
8450 .tested = TEST_UNTESTED,
8451 .probe = probe_jedec,
8452 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8453 .block_erasers =
8454 {
8455 {
8456 .eraseblocks = { {1024, 512} },
8457 .block_erase = erase_sector_jedec,
8458 }, {
8459 .eraseblocks = { {512 * 1024, 1} },
8460 .block_erase = erase_chip_block_jedec,
8461 },
8462 },
8463 .write = write_jedec_1,
8464 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008465 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008466 },
8467
8468 {
8469 .vendor = "SyncMOS/MoselVitelic",
8470 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008471 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008472 .manufacture_id = SYNCMOS_MVC_ID,
8473 .model_id = SM_MVC_29C31004T,
8474 .total_size = 512,
8475 .page_size = 1024,
8476 .feature_bits = FEATURE_EITHER_RESET,
8477 .tested = TEST_UNTESTED,
8478 .probe = probe_jedec,
8479 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8480 .block_erasers =
8481 {
8482 {
8483 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008484 .block_erase = erase_sector_jedec,
8485 }, {
8486 .eraseblocks = { {512 * 1024, 1} },
8487 .block_erase = erase_chip_block_jedec,
8488 },
8489 },
Sean Nelson35727f72010-01-28 23:55:12 +00008490 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008491 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008492 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008493 },
8494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008495 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008496 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008497 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008498 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008499 .manufacture_id = TI_OLD_ID,
8500 .model_id = TI_TMS29F002RB,
8501 .total_size = 256,
8502 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008503 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008504 .tested = TEST_UNTESTED,
8505 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008506 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008507 .block_erasers =
8508 {
8509 {
8510 .eraseblocks = {
8511 {16 * 1024, 1},
8512 {8 * 1024, 2},
8513 {32 * 1024, 1},
8514 {64 * 1024, 3},
8515 },
8516 .block_erase = erase_sector_jedec,
8517 }, {
8518 .eraseblocks = { {256 * 1024, 1} },
8519 .block_erase = erase_chip_block_jedec,
8520 },
8521 },
Sean Nelson35727f72010-01-28 23:55:12 +00008522 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008523 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008524 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008525 },
8526
8527 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008528 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008529 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008530 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008531 .manufacture_id = TI_OLD_ID,
8532 .model_id = TI_TMS29F002RT,
8533 .total_size = 256,
8534 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008535 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008536 .tested = TEST_UNTESTED,
8537 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008538 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008539 .block_erasers =
8540 {
8541 {
8542 .eraseblocks = {
8543 {64 * 1024, 3},
8544 {32 * 1024, 1},
8545 {8 * 1024, 2},
8546 {16 * 1024, 1},
8547 },
8548 .block_erase = erase_sector_jedec,
8549 }, {
8550 .eraseblocks = { {256 * 1024, 1} },
8551 .block_erase = erase_chip_block_jedec,
8552 },
8553 },
Sean Nelson35727f72010-01-28 23:55:12 +00008554 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008555 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008556 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008557 },
8558
8559 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008560 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008561 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008562 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008563 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008564 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008565 .total_size = 1024,
8566 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008567 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8568 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008569 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008570 .probe = probe_spi_rdid,
8571 .probe_timing = TIMING_ZERO,
8572 .block_erasers =
8573 {
8574 {
8575 .eraseblocks = { {4 * 1024, 256} },
8576 .block_erase = spi_block_erase_20,
8577 }, {
8578 .eraseblocks = { {32 * 1024, 32} },
8579 .block_erase = spi_block_erase_52,
8580 }, {
8581 .eraseblocks = { {64 * 1024, 16} },
8582 .block_erase = spi_block_erase_d8,
8583 }, {
8584 .eraseblocks = { {1024 * 1024, 1} },
8585 .block_erase = spi_block_erase_60,
8586 }, {
8587 .eraseblocks = { {1024 * 1024, 1} },
8588 .block_erase = spi_block_erase_c7,
8589 }
8590 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008591 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008592 .write = spi_chip_write_256,
8593 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008594 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008595 },
8596
8597 {
8598 .vendor = "Winbond",
8599 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008600 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008601 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008602 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008603 .total_size = 2048,
8604 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008605 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8606 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008607 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008608 .probe = probe_spi_rdid,
8609 .probe_timing = TIMING_ZERO,
8610 .block_erasers =
8611 {
8612 {
8613 .eraseblocks = { {4 * 1024, 512} },
8614 .block_erase = spi_block_erase_20,
8615 }, {
8616 .eraseblocks = { {32 * 1024, 64} },
8617 .block_erase = spi_block_erase_52,
8618 }, {
8619 .eraseblocks = { {64 * 1024, 32} },
8620 .block_erase = spi_block_erase_d8,
8621 }, {
8622 .eraseblocks = { {2 * 1024 * 1024, 1} },
8623 .block_erase = spi_block_erase_60,
8624 }, {
8625 .eraseblocks = { {2 * 1024 * 1024, 1} },
8626 .block_erase = spi_block_erase_c7,
8627 }
8628 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008629 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008630 .write = spi_chip_write_256,
8631 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008632 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008633 },
8634
8635 {
8636 .vendor = "Winbond",
8637 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008638 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008639 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008640 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008641 .total_size = 4096,
8642 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008643 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8644 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008645 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008646 .probe = probe_spi_rdid,
8647 .probe_timing = TIMING_ZERO,
8648 .block_erasers =
8649 {
8650 {
8651 .eraseblocks = { {4 * 1024, 1024} },
8652 .block_erase = spi_block_erase_20,
8653 }, {
8654 .eraseblocks = { {32 * 1024, 128} },
8655 .block_erase = spi_block_erase_52,
8656 }, {
8657 .eraseblocks = { {64 * 1024, 64} },
8658 .block_erase = spi_block_erase_d8,
8659 }, {
8660 .eraseblocks = { {4 * 1024 * 1024, 1} },
8661 .block_erase = spi_block_erase_60,
8662 }, {
8663 .eraseblocks = { {4 * 1024 * 1024, 1} },
8664 .block_erase = spi_block_erase_c7,
8665 }
8666 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008667 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008668 .write = spi_chip_write_256,
8669 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008670 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008671 },
8672
8673 {
8674 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008675 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008676 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008677 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008678 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008679 .total_size = 8192,
8680 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008681 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8682 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008683 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008684 .probe = probe_spi_rdid,
8685 .probe_timing = TIMING_ZERO,
8686 .block_erasers =
8687 {
8688 {
8689 .eraseblocks = { {4 * 1024, 2048} },
8690 .block_erase = spi_block_erase_20,
8691 }, {
8692 .eraseblocks = { {32 * 1024, 256} },
8693 .block_erase = spi_block_erase_52,
8694 }, {
8695 .eraseblocks = { {64 * 1024, 128} },
8696 .block_erase = spi_block_erase_d8,
8697 }, {
8698 .eraseblocks = { {8 * 1024 * 1024, 1} },
8699 .block_erase = spi_block_erase_60,
8700 }, {
8701 .eraseblocks = { {8 * 1024 * 1024, 1} },
8702 .block_erase = spi_block_erase_c7,
8703 }
8704 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008705 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008706 .write = spi_chip_write_256,
8707 .read = spi_chip_read,
8708 },
8709
8710 {
8711 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008712 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008713 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008714 .manufacture_id = WINBOND_NEX_ID,
8715 .model_id = WINBOND_NEX_W25Q128,
8716 .total_size = 16384,
8717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008718 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008720 .tested = TEST_OK_PROBE,
8721 .probe = probe_spi_rdid,
8722 .probe_timing = TIMING_ZERO,
8723 .block_erasers =
8724 {
8725 {
8726 .eraseblocks = { {4 * 1024, 4096} },
8727 .block_erase = spi_block_erase_20,
8728 }, {
8729 .eraseblocks = { {32 * 1024, 512} },
8730 .block_erase = spi_block_erase_52,
8731 }, {
8732 .eraseblocks = { {64 * 1024, 256} },
8733 .block_erase = spi_block_erase_d8,
8734 }, {
8735 .eraseblocks = { {16 * 1024 * 1024, 1} },
8736 .block_erase = spi_block_erase_60,
8737 }, {
8738 .eraseblocks = { {16 * 1024 * 1024, 1} },
8739 .block_erase = spi_block_erase_c7,
8740 }
8741 },
8742 .unlock = spi_disable_blockprotect,
8743 .write = spi_chip_write_256,
8744 .read = spi_chip_read,
8745 },
8746
8747 {
8748 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008749 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008750 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008751 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008752 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008753 .total_size = 128,
8754 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008755 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008756 .tested = TEST_UNTESTED,
8757 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008758 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008759 .block_erasers =
8760 {
8761 {
8762 .eraseblocks = { {4 * 1024, 32} },
8763 .block_erase = spi_block_erase_20,
8764 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008765 .eraseblocks = { {64 * 1024, 2} },
8766 .block_erase = spi_block_erase_d8,
8767 }, {
8768 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008769 .block_erase = spi_block_erase_c7,
8770 }
8771 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008772 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008773 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008774 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008775 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008776 },
8777
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008778 {
8779 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008780 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008781 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008782 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008783 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008784 .total_size = 256,
8785 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008786 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008787 .tested = TEST_UNTESTED,
8788 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008789 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008790 .block_erasers =
8791 {
8792 {
8793 .eraseblocks = { {4 * 1024, 64} },
8794 .block_erase = spi_block_erase_20,
8795 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008796 .eraseblocks = { {64 * 1024, 4} },
8797 .block_erase = spi_block_erase_d8,
8798 }, {
8799 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008800 .block_erase = spi_block_erase_c7,
8801 }
8802 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008803 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008804 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008805 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008806 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008807 },
8808
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008809 {
8810 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008811 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008812 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008813 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008814 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008815 .total_size = 512,
8816 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008817 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008818 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008820 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008821 .block_erasers =
8822 {
8823 {
8824 .eraseblocks = { {4 * 1024, 128} },
8825 .block_erase = spi_block_erase_20,
8826 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008827 .eraseblocks = { {64 * 1024, 8} },
8828 .block_erase = spi_block_erase_d8,
8829 }, {
8830 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008831 .block_erase = spi_block_erase_c7,
8832 }
8833 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008834 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008835 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008836 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008837 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008838 },
8839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008840 {
8841 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008842 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008843 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008844 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008845 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008846 .total_size = 1024,
8847 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008848 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008849 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008851 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008852 .block_erasers =
8853 {
8854 {
8855 .eraseblocks = { {4 * 1024, 256} },
8856 .block_erase = spi_block_erase_20,
8857 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008858 .eraseblocks = { {64 * 1024, 16} },
8859 .block_erase = spi_block_erase_d8,
8860 }, {
8861 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008862 .block_erase = spi_block_erase_c7,
8863 }
8864 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008865 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008866 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008867 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008868 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008869 },
8870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008871 {
8872 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008873 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008874 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008875 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008876 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008877 .total_size = 2048,
8878 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008879 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008880 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008881 .probe = probe_spi_rdid,
8882 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008883 .block_erasers =
8884 {
8885 {
8886 .eraseblocks = { {4 * 1024, 512} },
8887 .block_erase = spi_block_erase_20,
8888 }, {
8889 .eraseblocks = { {32 * 1024, 64} },
8890 .block_erase = spi_block_erase_52,
8891 }, {
8892 .eraseblocks = { {64 * 1024, 32} },
8893 .block_erase = spi_block_erase_d8,
8894 }, {
8895 .eraseblocks = { {2 * 1024 * 1024, 1} },
8896 .block_erase = spi_block_erase_60,
8897 }, {
8898 .eraseblocks = { {2 * 1024 * 1024, 1} },
8899 .block_erase = spi_block_erase_c7,
8900 }
8901 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008902 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008903 .write = spi_chip_write_256,
8904 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008905 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008906 },
8907
8908 {
8909 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008910 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008911 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008912 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008913 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008914 .total_size = 4096,
8915 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008916 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008917 .tested = TEST_OK_PROBE,
8918 .probe = probe_spi_rdid,
8919 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008920 .block_erasers =
8921 {
8922 {
8923 .eraseblocks = { {4 * 1024, 1024} },
8924 .block_erase = spi_block_erase_20,
8925 }, {
8926 .eraseblocks = { {32 * 1024, 128} },
8927 .block_erase = spi_block_erase_52,
8928 }, {
8929 .eraseblocks = { {64 * 1024, 64} },
8930 .block_erase = spi_block_erase_d8,
8931 }, {
8932 .eraseblocks = { {4 * 1024 * 1024, 1} },
8933 .block_erase = spi_block_erase_60,
8934 }, {
8935 .eraseblocks = { {4 * 1024 * 1024, 1} },
8936 .block_erase = spi_block_erase_c7,
8937 }
8938 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008939 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008940 .write = spi_chip_write_256,
8941 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008942 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008943 },
8944
8945 {
8946 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008947 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008948 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008949 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008950 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008951 .total_size = 8192,
8952 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008953 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008954 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008955 .probe = probe_spi_rdid,
8956 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008957 .block_erasers =
8958 {
8959 {
8960 .eraseblocks = { {4 * 1024, 2048} },
8961 .block_erase = spi_block_erase_20,
8962 }, {
8963 .eraseblocks = { {32 * 1024, 256} },
8964 .block_erase = spi_block_erase_52,
8965 }, {
8966 .eraseblocks = { {64 * 1024, 128} },
8967 .block_erase = spi_block_erase_d8,
8968 }, {
8969 .eraseblocks = { {8 * 1024 * 1024, 1} },
8970 .block_erase = spi_block_erase_60,
8971 }, {
8972 .eraseblocks = { {8 * 1024 * 1024, 1} },
8973 .block_erase = spi_block_erase_c7,
8974 }
8975 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008976 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008977 .write = spi_chip_write_256,
8978 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008979 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008980 },
8981
8982 {
8983 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008984 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008985 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008986 .manufacture_id = WINBOND_ID,
8987 .model_id = WINBOND_W29C010,
8988 .total_size = 128,
8989 .page_size = 128,
8990 .feature_bits = FEATURE_LONG_RESET,
8991 .tested = TEST_OK_PRE,
8992 .probe = probe_w29ee011,
8993 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8994 .block_erasers =
8995 {
8996 {
8997 .eraseblocks = { {128 * 1024, 1} },
8998 .block_erase = erase_chip_block_jedec,
8999 }
9000 },
9001 .write = write_jedec,
9002 .read = read_memmapped,
9003 },
9004
9005 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
9006 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009007 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009008 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009009 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009010 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009011 .total_size = 128,
9012 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009013 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00009014 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009015 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009016 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009017 .block_erasers =
9018 {
9019 {
9020 .eraseblocks = { {128 * 1024, 1} },
9021 .block_erase = erase_chip_block_jedec,
9022 }
9023 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009024 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009025 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009026 },
9027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009028 {
9029 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009030 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009031 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009032 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009033 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009034 .total_size = 256,
9035 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009036 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009037 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009038 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009039 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009040 .block_erasers =
9041 {
9042 {
9043 .eraseblocks = { {256 * 1024, 1} },
9044 .block_erase = erase_chip_block_jedec,
9045 }
9046 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009047 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009049 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009050 },
9051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009052 {
9053 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009054 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009055 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009056 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009057 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009058 .total_size = 512,
9059 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009060 .feature_bits = FEATURE_LONG_RESET,
9061 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009062 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00009063 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009064 .block_erasers =
9065 {
9066 {
9067 .eraseblocks = { {512 * 1024, 1} },
9068 .block_erase = erase_chip_block_jedec,
9069 }
9070 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009071 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009073 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009074 },
9075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009076 {
9077 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00009078 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009079 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00009080 .manufacture_id = WINBOND_ID,
9081 .model_id = WINBOND_W39L040,
9082 .total_size = 512,
9083 .page_size = 64 * 1024,
9084 .feature_bits = FEATURE_EITHER_RESET,
9085 .tested = TEST_OK_PR,
9086 .probe = probe_jedec,
9087 .probe_timing = 10,
9088 .block_erasers =
9089 {
9090 {
9091 .eraseblocks = { {4 * 1024, 128} },
9092 .block_erase = erase_block_jedec,
9093 }, {
9094 .eraseblocks = { {64 * 1024, 8} },
9095 .block_erase = erase_sector_jedec,
9096 }, {
9097 .eraseblocks = { {512 * 1024, 1} },
9098 .block_erase = erase_chip_block_jedec,
9099 }
9100 },
9101 .printlock = printlock_w39l040,
9102 .write = write_jedec_1,
9103 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009104 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00009105 },
9106
9107 {
9108 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009109 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009110 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009111 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009112 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009113 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009114 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009115 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009116 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009117 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00009118 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009119 .block_erasers =
9120 {
9121 {
9122 .eraseblocks = { {64 * 1024, 8} },
9123 .block_erase = erase_sector_jedec,
9124 }, {
9125 .eraseblocks = { {512 * 1024, 1} },
9126 .block_erase = erase_chip_block_jedec,
9127 }
9128 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009129 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00009130 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009132 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009133 },
9134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009135 {
9136 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009137 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009138 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009139 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009140 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009141 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009142 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009143 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009144 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009145 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00009146 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009147 .block_erasers =
9148 {
9149 {
9150 .eraseblocks = { {64 * 1024, 8} },
9151 .block_erase = erase_sector_jedec,
9152 }, {
9153 .eraseblocks = { {512 * 1024, 1} },
9154 .block_erase = erase_chip_block_jedec,
9155 }
9156 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009157 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009158 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009160 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009161 },
9162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009163 {
9164 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009165 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009166 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009167 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009168 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009169 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009170 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009171 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009172 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009173 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009174 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {64 * 1024, 8} },
9179 .block_erase = erase_sector_jedec,
9180 }, {
9181 .eraseblocks = { {512 * 1024, 1} },
9182 .block_erase = erase_chip_block_jedec,
9183 }
9184 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009185 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009186 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009188 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009189 },
9190
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009191 {
9192 .vendor = "Winbond",
9193 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009194 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009195 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009196 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009197 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009198 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009199 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009200 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009201 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009202 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009203 .block_erasers =
9204 {
9205 {
9206 .eraseblocks = { {4 * 1024, 128} },
9207 .block_erase = erase_block_jedec,
9208 }, {
9209 .eraseblocks = { {64 * 1024, 8} },
9210 .block_erase = erase_sector_jedec,
9211 }, {
9212 .eraseblocks = { {512 * 1024, 1} },
9213 .block_erase = erase_chip_block_jedec,
9214 }
9215 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009216 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00009217 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00009218 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009219 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009220 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009221 },
9222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009223 {
9224 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009225 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009226 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009227 .manufacture_id = WINBOND_ID,
9228 .model_id = WINBOND_W39V040B,
9229 .total_size = 512,
9230 .page_size = 64 * 1024,
9231 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009232 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009233 .probe = probe_jedec,
9234 .probe_timing = 10,
9235 .block_erasers =
9236 {
9237 {
9238 .eraseblocks = { {64 * 1024, 8} },
9239 .block_erase = erase_sector_jedec,
9240 }, {
9241 .eraseblocks = { {512 * 1024, 1} },
9242 .block_erase = erase_chip_block_jedec,
9243 }
9244 },
9245 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00009246 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009247 .write = write_jedec_1,
9248 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009249 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009250 },
9251
9252 {
9253 .vendor = "Winbond",
9254 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009255 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009256 .manufacture_id = WINBOND_ID,
9257 .model_id = WINBOND_W39V040C,
9258 .total_size = 512,
9259 .page_size = 64 * 1024,
9260 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009261 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009262 .probe = probe_jedec,
9263 .probe_timing = 10,
9264 .block_erasers =
9265 {
9266 {
9267 .eraseblocks = { {64 * 1024, 8} },
9268 .block_erase = erase_sector_jedec,
9269 }, {
9270 .eraseblocks = { {512 * 1024, 1} },
9271 .block_erase = erase_chip_block_jedec,
9272 }
9273 },
9274 .printlock = printlock_w39v040fc,
9275 .write = write_jedec_1,
9276 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009277 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009278 },
9279
9280 {
9281 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009282 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009283 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009284 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009285 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009286 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009287 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009288 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009289 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009290 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009291 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009292 .block_erasers =
9293 {
9294 {
9295 .eraseblocks = { {64 * 1024, 16} },
9296 .block_erase = erase_sector_jedec,
9297 }, {
9298 .eraseblocks = { {1024 * 1024, 1} },
9299 .block_erase = erase_chip_block_jedec,
9300 }
9301 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009302 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009303 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009304 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009305 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009306 },
9307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009308 {
9309 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009310 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009311 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009312 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009313 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009314 .total_size = 256,
9315 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009316 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009317 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009318 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009319 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009320 .block_erasers =
9321 {
9322 {
9323 .eraseblocks = {
9324 {128 * 1024, 1},
9325 {96 * 1024, 1},
9326 {8 * 1024, 2},
9327 {16 * 1024, 1},
9328 },
9329 .block_erase = erase_sector_jedec,
9330 }, {
9331 .eraseblocks = { {256 * 1024, 1} },
9332 .block_erase = erase_chip_block_jedec,
9333 }
9334 },
Sean Nelson35727f72010-01-28 23:55:12 +00009335 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009336 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009337 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009338 },
9339
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009340 {
9341 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009342 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009343 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009344 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009345 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009346 .total_size = 256,
9347 .page_size = 128,
9348 .feature_bits = FEATURE_EITHER_RESET,
9349 .tested = TEST_OK_PROBE,
9350 .probe = probe_jedec,
9351 .probe_timing = 10,
9352 .block_erasers =
9353 {
9354 {
9355 .eraseblocks = { {256 * 1024, 1} },
9356 .block_erase = erase_chip_block_jedec,
9357 }
9358 },
9359 .write = write_jedec_1,
9360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009361 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009362 },
9363
9364 {
9365 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009366 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009367 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009368 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009369 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009370 .total_size = 256,
9371 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009372 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009373 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009374 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009375 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009376 .block_erasers =
9377 {
9378 {
9379 .eraseblocks = {
9380 {64 * 1024, 3},
9381 {32 * 1024, 1},
9382 {8 * 1024, 2},
9383 {16 * 1024, 1},
9384 },
9385 .block_erase = erase_sector_jedec,
9386 }, {
9387 .eraseblocks = { {256 * 1024, 1} },
9388 .block_erase = erase_chip_block_jedec,
9389 }
9390 },
Sean Nelson35727f72010-01-28 23:55:12 +00009391 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009392 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009393 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009394 },
9395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009396 {
9397 .vendor = "Winbond",
9398 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009399 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009400 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009401 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009402 .total_size = 256,
9403 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009404 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009405 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009406 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009407 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009408 .block_erasers =
9409 {
9410 {
9411 .eraseblocks = {
9412 {64 * 1024, 3},
9413 {32 * 1024, 1},
9414 {8 * 1024, 2},
9415 {16 * 1024, 1},
9416 },
9417 .block_erase = erase_sector_jedec,
9418 }, {
9419 .eraseblocks = { {256 * 1024, 1} },
9420 .block_erase = erase_chip_block_jedec,
9421 }
9422 },
Sean Nelson35727f72010-01-28 23:55:12 +00009423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009425 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009426 },
9427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009428 {
9429 .vendor = "Winbond",
9430 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009431 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009432 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009433 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009434 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009435 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009436 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009437 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009438 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009439 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009440 .block_erasers =
9441 {
9442 {
9443 .eraseblocks = { {64 * 1024, 16}, },
9444 .block_erase = erase_sector_jedec,
9445 }, {
9446 .eraseblocks = { {1024 * 1024, 1} },
9447 .block_erase = erase_chip_block_jedec,
9448 }
9449 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009450 .printlock = printlock_w39v080fa,
9451 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009452 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009453 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009454 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009455 },
9456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009457 {
9458 .vendor = "Winbond",
9459 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009460 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009461 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009462 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009463 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009464 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009466 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009467 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009468 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009469 .block_erasers =
9470 {
9471 {
9472 .eraseblocks = { {64 * 1024, 8}, },
9473 .block_erase = erase_sector_jedec,
9474 }, {
9475 .eraseblocks = { {512 * 1024, 1} },
9476 .block_erase = erase_chip_block_jedec,
9477 }
9478 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009479 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009480 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009481 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009482 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009483 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009484
9485 {
9486 .vendor = "Unknown",
9487 .name = "SFDP-capable chip",
9488 .bustype = BUS_SPI,
9489 .manufacture_id = GENERIC_MANUF_ID,
9490 .model_id = SFDP_DEVICE_ID,
9491 /* We present our own "report this" text hence we do not
9492 * want the default "This flash part has status UNTESTED..."
9493 * text to be printed. */
9494 .tested = TEST_OK_PREW,
9495 .probe = probe_spi_sfdp,
9496 .unlock = spi_disable_blockprotect, /* is this safe? */
9497 .read = spi_chip_read,
9498 /* FIXME: some vendor extensions define this */
9499 .voltage = {},
9500 /* Everything below will be set by the probing function. */
9501 .write = NULL,
9502 .total_size = 0,
9503 .page_size = 0,
9504 .feature_bits = 0,
9505 .block_erasers = {},
9506 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009508 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009509 .vendor = "Programmer",
9510 .name = "Opaque flash chip",
9511 .bustype = BUS_PROG,
9512 .manufacture_id = PROGMANUF_ID,
9513 .model_id = PROGDEV_ID,
9514 .total_size = 0,
9515 .page_size = 256,
9516 /* probe is assumed to work, rest will be filled in by probe */
9517 .tested = TEST_OK_PROBE,
9518 .probe = probe_opaque,
9519 /* eraseblock sizes will be set by the probing function */
9520 .block_erasers =
9521 {
9522 {
9523 .block_erase = erase_opaque,
9524 }
9525 },
9526 .write = write_opaque,
9527 .read = read_opaque,
9528 },
9529
9530 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009531 .vendor = "AMIC",
9532 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009533 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009534 .manufacture_id = AMIC_ID,
9535 .model_id = GENERIC_DEVICE_ID,
9536 .total_size = 0,
9537 .page_size = 256,
9538 .tested = TEST_BAD_PREW,
9539 .probe = probe_spi_rdid4,
9540 .probe_timing = TIMING_ZERO,
9541 .write = NULL,
9542 .read = NULL,
9543 },
9544
9545 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009546 .vendor = "Atmel",
9547 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009548 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009549 .manufacture_id = ATMEL_ID,
9550 .model_id = GENERIC_DEVICE_ID,
9551 .total_size = 0,
9552 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009553 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009554 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009555 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009556 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009557 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009558 },
9559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009560 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009561 .vendor = "Eon",
9562 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009563 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009564 .manufacture_id = EON_ID_NOPREFIX,
9565 .model_id = GENERIC_DEVICE_ID,
9566 .total_size = 0,
9567 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009568 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009570 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009571 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009572 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009573 },
9574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009575 {
9576 .vendor = "Macronix",
9577 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009578 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009579 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009580 .model_id = GENERIC_DEVICE_ID,
9581 .total_size = 0,
9582 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009583 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009584 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009585 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009586 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009587 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009588 },
9589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009590 {
9591 .vendor = "PMC",
9592 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009593 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009594 .manufacture_id = PMC_ID,
9595 .model_id = GENERIC_DEVICE_ID,
9596 .total_size = 0,
9597 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009598 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009599 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009600 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009601 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009602 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009603 },
9604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009605 {
9606 .vendor = "SST",
9607 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009608 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009609 .manufacture_id = SST_ID,
9610 .model_id = GENERIC_DEVICE_ID,
9611 .total_size = 0,
9612 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009613 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009614 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009615 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009616 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009617 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009618 },
9619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009620 {
9621 .vendor = "ST",
9622 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009623 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009624 .manufacture_id = ST_ID,
9625 .model_id = GENERIC_DEVICE_ID,
9626 .total_size = 0,
9627 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009628 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009629 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009630 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009631 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009632 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009633 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009634
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009635 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009636 .vendor = "Sanyo",
9637 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009638 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009639 .manufacture_id = SANYO_ID,
9640 .model_id = GENERIC_DEVICE_ID,
9641 .total_size = 0,
9642 .page_size = 256,
9643 .tested = TEST_BAD_PREW,
9644 .probe = probe_spi_rdid,
9645 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009646 .write = NULL,
9647 .read = NULL,
9648 },
9649
9650 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009651 .vendor = "Generic",
9652 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009653 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009654 .manufacture_id = GENERIC_MANUF_ID,
9655 .model_id = GENERIC_DEVICE_ID,
9656 .total_size = 0,
9657 .page_size = 256,
9658 .tested = TEST_BAD_PREW,
9659 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009660 .write = NULL,
9661 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009662
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009663 {
9664 .vendor = "Generic",
9665 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009666 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009667 .manufacture_id = GENERIC_MANUF_ID,
9668 .model_id = GENERIC_DEVICE_ID,
9669 .total_size = 0,
9670 .page_size = 256,
9671 .tested = TEST_BAD_PREW,
9672 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009673 .write = NULL,
9674 },
9675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009676 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009677};