blob: 117533373524d3b10155042a8e46f7186fee3f8e [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 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001700 .printlock = spi_prettyprint_status_register_at25f512b,
1701 .unlock = spi_disable_blockprotect_at25f512b,
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",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003410 .name = "EN25F64",
3411 .bustype = BUS_SPI,
3412 .manufacture_id = EON_ID_NOPREFIX,
3413 .model_id = EON_EN25F32,
3414 .total_size = 8192,
3415 .page_size = 256,
3416 .feature_bits = FEATURE_WRSR_WREN,
3417 .tested = TEST_UNTESTED,
3418 .probe = probe_spi_rdid,
3419 .probe_timing = TIMING_ZERO,
3420 .block_erasers =
3421 {
3422 {
3423 .eraseblocks = { {4 * 1024, 2048} },
3424 .block_erase = spi_block_erase_20,
3425 }, {
3426 .eraseblocks = { {64 * 1024, 128} },
3427 .block_erase = spi_block_erase_d8,
3428 }, {
3429 .eraseblocks = { {8 * 1024 * 1024, 1} },
3430 .block_erase = spi_block_erase_60,
3431 }, {
3432 .eraseblocks = { {8 * 1024 * 1024, 1} },
3433 .block_erase = spi_block_erase_c7,
3434 }
3435 },
3436 .unlock = spi_disable_blockprotect,
3437 .write = spi_chip_write_256,
3438 .read = spi_chip_read,
3439 .voltage = {2700, 3600},
3440 },
3441
3442 {
3443 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003444 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003445 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003446 .manufacture_id = EON_ID_NOPREFIX,
3447 .model_id = EON_EN25Q40,
3448 .total_size = 512,
3449 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003450 /* OTP: 256B total; enter 0x3A */
3451 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003452 .tested = TEST_UNTESTED,
3453 .probe = probe_spi_rdid,
3454 .probe_timing = TIMING_ZERO,
3455 .block_erasers =
3456 {
3457 {
3458 .eraseblocks = { {4 * 1024, 128} },
3459 .block_erase = spi_block_erase_20,
3460 }, {
3461 .eraseblocks = { {64 * 1024, 8} },
3462 .block_erase = spi_block_erase_d8,
3463 }, {
3464 .eraseblocks = { {512 * 1024, 1} },
3465 .block_erase = spi_block_erase_60,
3466 }, {
3467 .eraseblocks = { {512 * 1024, 1} },
3468 .block_erase = spi_block_erase_c7,
3469 }
3470 },
3471 .unlock = spi_disable_blockprotect,
3472 .write = spi_chip_write_256,
3473 .read = spi_chip_read,
3474 .voltage = {2700, 3600},
3475 },
3476
3477 {
3478 .vendor = "Eon",
3479 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003480 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003481 .manufacture_id = EON_ID_NOPREFIX,
3482 .model_id = EON_EN25Q80,
3483 .total_size = 1024,
3484 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003485 /* OTP: 256B total; enter 0x3A */
3486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003487 .tested = TEST_UNTESTED,
3488 .probe = probe_spi_rdid,
3489 .probe_timing = TIMING_ZERO,
3490 .block_erasers =
3491 {
3492 {
3493 .eraseblocks = { {4 * 1024, 256} },
3494 .block_erase = spi_block_erase_20,
3495 }, {
3496 .eraseblocks = { {64 * 1024, 16} },
3497 .block_erase = spi_block_erase_d8,
3498 }, {
3499 .eraseblocks = { {1024 * 1024, 1} },
3500 .block_erase = spi_block_erase_60,
3501 }, {
3502 .eraseblocks = { {1024 * 1024, 1} },
3503 .block_erase = spi_block_erase_c7,
3504 }
3505 },
3506 .unlock = spi_disable_blockprotect,
3507 .write = spi_chip_write_256,
3508 .read = spi_chip_read,
3509 .voltage = {2700, 3600},
3510 },
3511
3512 {
3513 /* Note: EN25D16 is an evil twin which shares the model ID
3514 but has different write protection capabilities */
3515 .vendor = "Eon",
3516 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003517 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003518 .manufacture_id = EON_ID_NOPREFIX,
3519 .model_id = EON_EN25Q16,
3520 .total_size = 2048,
3521 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003522 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003524 .tested = TEST_UNTESTED,
3525 .probe = probe_spi_rdid,
3526 .probe_timing = TIMING_ZERO,
3527 .block_erasers =
3528 {
3529 {
3530 .eraseblocks = { {4 * 1024, 512} },
3531 .block_erase = spi_block_erase_20,
3532 }, {
3533 .eraseblocks = { {64 * 1024, 32} },
3534 .block_erase = spi_block_erase_d8,
3535 }, {
3536 /* not supported by Q16 version */
3537 .eraseblocks = { {64 * 1024, 32} },
3538 .block_erase = spi_block_erase_52,
3539 }, {
3540 .eraseblocks = { {2 * 1024 * 1024, 1} },
3541 .block_erase = spi_block_erase_60,
3542 }, {
3543 .eraseblocks = { {2 * 1024 * 1024, 1} },
3544 .block_erase = spi_block_erase_c7,
3545 }
3546 },
3547 .unlock = spi_disable_blockprotect,
3548 .write = spi_chip_write_256,
3549 .read = spi_chip_read,
3550 .voltage = {2700, 3600},
3551 },
3552
3553 {
3554 .vendor = "Eon",
3555 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003556 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003557 .manufacture_id = EON_ID_NOPREFIX,
3558 .model_id = EON_EN25Q32,
3559 .total_size = 4096,
3560 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003561 /* OTP: 512B total; enter 0x3A */
3562 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003563 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003564 .probe = probe_spi_rdid,
3565 .probe_timing = TIMING_ZERO,
3566 .block_erasers =
3567 {
3568 {
3569 .eraseblocks = { {4 * 1024, 1024} },
3570 .block_erase = spi_block_erase_20,
3571 }, {
3572 .eraseblocks = { {64 * 1024, 64} },
3573 .block_erase = spi_block_erase_d8,
3574 }, {
3575 .eraseblocks = { {4 * 1024 * 1024, 1} },
3576 .block_erase = spi_block_erase_60,
3577 }, {
3578 .eraseblocks = { {4 * 1024 * 1024, 1} },
3579 .block_erase = spi_block_erase_c7,
3580 }
3581 },
3582 .unlock = spi_disable_blockprotect,
3583 .write = spi_chip_write_256,
3584 .read = spi_chip_read,
3585 .voltage = {2700, 3600},
3586 },
3587
3588 {
3589 .vendor = "Eon",
3590 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003591 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003592 .manufacture_id = EON_ID_NOPREFIX,
3593 .model_id = EON_EN25Q64,
3594 .total_size = 8192,
3595 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003596 /* OTP: 512B total; enter 0x3A */
3597 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003598 .tested = TEST_UNTESTED,
3599 .probe = probe_spi_rdid,
3600 .probe_timing = TIMING_ZERO,
3601 .block_erasers =
3602 {
3603 {
3604 .eraseblocks = { {4 * 1024, 2048} },
3605 .block_erase = spi_block_erase_20,
3606 }, {
3607 .eraseblocks = { {64 * 1024, 128} },
3608 .block_erase = spi_block_erase_d8,
3609 }, {
3610 .eraseblocks = { {8 * 1024 * 1024, 1} },
3611 .block_erase = spi_block_erase_60,
3612 }, {
3613 .eraseblocks = { {8 * 1024 * 1024, 1} },
3614 .block_erase = spi_block_erase_c7,
3615 }
3616 },
3617 .unlock = spi_disable_blockprotect,
3618 .write = spi_chip_write_256,
3619 .read = spi_chip_read,
3620 .voltage = {2700, 3600},
3621 },
3622
3623 {
3624 .vendor = "Eon",
3625 .name = "EN25Q128",
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_EN25Q128,
3629 .total_size = 16384,
3630 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003631 /* OTP: 512B total; enter 0x3A */
3632 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003633 .tested = TEST_UNTESTED,
3634 .probe = probe_spi_rdid,
3635 .probe_timing = TIMING_ZERO,
3636 .block_erasers =
3637 {
3638 {
3639 .eraseblocks = { {4 * 1024, 4096} },
3640 .block_erase = spi_block_erase_20,
3641 }, {
3642 .eraseblocks = { {64 * 1024, 256} },
3643 .block_erase = spi_block_erase_d8,
3644 }, {
3645 .eraseblocks = { {16 * 1024 * 1024, 1} },
3646 .block_erase = spi_block_erase_60,
3647 }, {
3648 .eraseblocks = { {16 * 1024 * 1024, 1} },
3649 .block_erase = spi_block_erase_c7,
3650 }
3651 },
3652 .unlock = spi_disable_blockprotect,
3653 .write = spi_chip_write_256,
3654 .read = spi_chip_read,
3655 },
3656
3657 {
3658 .vendor = "Eon",
3659 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003660 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003661 .manufacture_id = EON_ID_NOPREFIX,
3662 .model_id = EON_EN25QH16,
3663 .total_size = 2048,
3664 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003665 /* supports SFDP */
3666 /* OTP: 512B total; enter 0x3A */
3667 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003668 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003669 .probe = probe_spi_rdid,
3670 .probe_timing = TIMING_ZERO,
3671 .block_erasers =
3672 {
3673 {
3674 .eraseblocks = { {4 * 1024, 512} },
3675 .block_erase = spi_block_erase_20,
3676 }, {
3677 .eraseblocks = { {64 * 1024, 32} },
3678 .block_erase = spi_block_erase_d8,
3679 }, {
3680 .eraseblocks = { {1024 * 2048, 1} },
3681 .block_erase = spi_block_erase_60,
3682 }, {
3683 .eraseblocks = { {1024 * 2048, 1} },
3684 .block_erase = spi_block_erase_c7,
3685 }
3686 },
3687 .unlock = spi_disable_blockprotect,
3688 .write = spi_chip_write_256,
3689 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003690 .voltage = {2700, 3600},
3691 },
3692
3693 {
3694 .vendor = "Eon",
3695 .name = "EN25QH32",
3696 .bustype = BUS_SPI,
3697 .manufacture_id = EON_ID_NOPREFIX,
3698 .model_id = EON_EN25QH32,
3699 .total_size = 4096,
3700 .page_size = 256,
3701 /* supports SFDP */
3702 /* OTP: 512B total; enter 0x3A */
3703 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3704 .tested = TEST_UNTESTED,
3705 .probe = probe_spi_rdid,
3706 .probe_timing = TIMING_ZERO,
3707 .block_erasers =
3708 {
3709 {
3710 .eraseblocks = { {4 * 1024, 1024} },
3711 .block_erase = spi_block_erase_20,
3712 }, {
3713 .eraseblocks = { {64 * 1024, 64} },
3714 .block_erase = spi_block_erase_d8,
3715 }, {
3716 .eraseblocks = { {1024 * 4096, 1} },
3717 .block_erase = spi_block_erase_60,
3718 }, {
3719 .eraseblocks = { {1024 * 4096, 1} },
3720 .block_erase = spi_block_erase_c7,
3721 }
3722 },
3723 .unlock = spi_disable_blockprotect,
3724 .write = spi_chip_write_256,
3725 .read = spi_chip_read,
3726 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003727 },
3728
3729 {
3730 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003731 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003732 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003733 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003734 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003735 .total_size = 128,
3736 .page_size = 128,
3737 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003738 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003739 .probe = probe_jedec,
3740 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3741 .block_erasers =
3742 {
3743 {
3744 .eraseblocks = { {16 * 1024, 8} },
3745 .block_erase = erase_sector_jedec,
3746 },
3747 {
3748 .eraseblocks = { {128 * 1024, 1} },
3749 .block_erase = erase_chip_block_jedec,
3750 },
3751 },
3752 .write = write_jedec_1,
3753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003754 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003755 },
3756
3757 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003758 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003759 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003760 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003761 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003762 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003763 .total_size = 256,
3764 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003765 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003766 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003767 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003768 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003769 .block_erasers =
3770 {
3771 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003772 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003773 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003774 {8 * 1024, 2},
3775 {32 * 1024, 1},
3776 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003777 },
3778 .block_erase = erase_sector_jedec,
3779 }, {
3780 .eraseblocks = { {256 * 1024, 1} },
3781 .block_erase = erase_chip_block_jedec,
3782 },
3783 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003784 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003785 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003786 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003787 },
3788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003789 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003790 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003791 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003792 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003793 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003794 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003795 .total_size = 256,
3796 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003797 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003798 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003799 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003800 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003801 .block_erasers =
3802 {
3803 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003804 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003805 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003806 {32 * 1024, 1},
3807 {8 * 1024, 2},
3808 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003809 },
3810 .block_erase = erase_sector_jedec,
3811 }, {
3812 .eraseblocks = { {256 * 1024, 1} },
3813 .block_erase = erase_chip_block_jedec,
3814 },
3815 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003816 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003817 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003818 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003819 },
3820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003821 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003822 .vendor = "Eon",
3823 .name = "EN29LV640B",
3824 .bustype = BUS_PARALLEL,
3825 .manufacture_id = EON_ID,
3826 .model_id = EON_EN29LV640B,
3827 .total_size = 8192,
3828 .page_size = 8192,
3829 .feature_bits = 0,
3830 .tested = TEST_OK_PREW,
3831 .probe = probe_en29lv640b,
3832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3833 .block_erasers =
3834 {
3835 {
3836 .eraseblocks = {
3837 {8 * 1024, 8},
3838 {64 * 1024, 127},
3839 },
3840 .block_erase = block_erase_en29lv640b,
3841 }, {
3842 .eraseblocks = { {8 * 1024 * 1024, 1} },
3843 .block_erase = block_erase_chip_en29lv640b,
3844 },
3845 },
3846 .write = write_en29lv640b,
3847 .read = read_memmapped,
3848 .voltage = {2700, 3600},
3849 },
3850
3851 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003852 .vendor = "Fujitsu",
3853 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003854 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003855 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003856 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003857 .total_size = 512,
3858 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003859 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003860 .tested = TEST_UNTESTED,
3861 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003862 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003863 .block_erasers =
3864 {
3865 {
3866 .eraseblocks = {
3867 {16 * 1024, 1},
3868 {8 * 1024, 2},
3869 {32 * 1024, 1},
3870 {64 * 1024, 7},
3871 },
Sean Nelson35727f72010-01-28 23:55:12 +00003872 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003873 }, {
3874 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003875 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003876 },
3877 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003878 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003879 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003880 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003881 },
3882
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003883 {
3884 .vendor = "Fujitsu",
3885 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003886 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003887 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003888 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003889 .total_size = 512,
3890 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003891 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003892 .tested = TEST_UNTESTED,
3893 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003894 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003895 .block_erasers =
3896 {
3897 {
3898 .eraseblocks = {
3899 {64 * 1024, 7},
3900 {32 * 1024, 1},
3901 {8 * 1024, 2},
3902 {16 * 1024, 1},
3903 },
Sean Nelson35727f72010-01-28 23:55:12 +00003904 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003905 }, {
3906 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003907 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003908 },
3909 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003910 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003911 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003912 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003913 },
3914
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003915 {
Sean Nelson35727f72010-01-28 23:55:12 +00003916 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003917 .vendor = "Fujitsu",
3918 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003919 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003920 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003921 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003922 .total_size = 512,
3923 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003924 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003925 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003926 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003927 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003928 .block_erasers =
3929 {
3930 {
3931 .eraseblocks = {
3932 {16 * 1024, 1},
3933 {8 * 1024, 2},
3934 {32 * 1024, 1},
3935 {64 * 1024, 7},
3936 },
3937 .block_erase = block_erase_m29f400bt,
3938 }, {
3939 .eraseblocks = { {512 * 1024, 1} },
3940 .block_erase = block_erase_chip_m29f400bt,
3941 },
3942 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003943 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003944 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003945 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003946 },
3947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003948 {
3949 .vendor = "Fujitsu",
3950 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003951 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003952 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003953 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003954 .total_size = 512,
3955 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003956 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003957 .tested = TEST_UNTESTED,
3958 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003959 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003960 .block_erasers =
3961 {
3962 {
3963 .eraseblocks = {
3964 {64 * 1024, 7},
3965 {32 * 1024, 1},
3966 {8 * 1024, 2},
3967 {16 * 1024, 1},
3968 },
3969 .block_erase = block_erase_m29f400bt,
3970 }, {
3971 .eraseblocks = { {512 * 1024, 1} },
3972 .block_erase = block_erase_chip_m29f400bt,
3973 },
3974 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003975 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003976 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003977 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003978 },
3979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003980 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003981 .vendor = "GigaDevice",
3982 .name = "GD25Q20",
3983 .bustype = BUS_SPI,
3984 .manufacture_id = GIGADEVICE_ID,
3985 .model_id = GIGADEVICE_GD25Q20,
3986 .total_size = 256,
3987 .page_size = 256,
3988 .feature_bits = FEATURE_WRSR_WREN,
3989 .tested = TEST_UNTESTED,
3990 .probe = probe_spi_rdid,
3991 .probe_timing = TIMING_ZERO,
3992 .block_erasers =
3993 {
3994 {
3995 .eraseblocks = { {4 * 1024, 64} },
3996 .block_erase = spi_block_erase_20,
3997 }, {
3998 .eraseblocks = { {32 * 1024, 8} },
3999 .block_erase = spi_block_erase_52,
4000 }, {
4001 .eraseblocks = { {64 * 1024, 4} },
4002 .block_erase = spi_block_erase_d8,
4003 }, {
4004 .eraseblocks = { {256 * 1024, 1} },
4005 .block_erase = spi_block_erase_60,
4006 }, {
4007 .eraseblocks = { {256 * 1024, 1} },
4008 .block_erase = spi_block_erase_c7,
4009 }
4010 },
4011 .unlock = spi_disable_blockprotect,
4012 .write = spi_chip_write_256,
4013 .read = spi_chip_read,
4014 .voltage = {2700, 3600},
4015 },
4016
4017 {
4018 .vendor = "GigaDevice",
4019 .name = "GD25Q40",
4020 .bustype = BUS_SPI,
4021 .manufacture_id = GIGADEVICE_ID,
4022 .model_id = GIGADEVICE_GD25Q40,
4023 .total_size = 512,
4024 .page_size = 256,
4025 .feature_bits = FEATURE_WRSR_WREN,
4026 .tested = TEST_UNTESTED,
4027 .probe = probe_spi_rdid,
4028 .probe_timing = TIMING_ZERO,
4029 .block_erasers =
4030 {
4031 {
4032 .eraseblocks = { {4 * 1024, 128} },
4033 .block_erase = spi_block_erase_20,
4034 }, {
4035 .eraseblocks = { {32 * 1024, 16} },
4036 .block_erase = spi_block_erase_52,
4037 }, {
4038 .eraseblocks = { {64 * 1024, 8} },
4039 .block_erase = spi_block_erase_d8,
4040 }, {
4041 .eraseblocks = { {512 * 1024, 1} },
4042 .block_erase = spi_block_erase_60,
4043 }, {
4044 .eraseblocks = { {512 * 1024, 1} },
4045 .block_erase = spi_block_erase_c7,
4046 }
4047 },
4048 .unlock = spi_disable_blockprotect,
4049 .write = spi_chip_write_256,
4050 .read = spi_chip_read,
4051 .voltage = {2700, 3600},
4052 },
4053
4054 {
4055 .vendor = "GigaDevice",
4056 .name = "GD25Q80",
4057 .bustype = BUS_SPI,
4058 .manufacture_id = GIGADEVICE_ID,
4059 .model_id = GIGADEVICE_GD25Q80,
4060 .total_size = 1024,
4061 .page_size = 256,
4062 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4063 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4064 .tested = TEST_OK_PREW,
4065 .probe = probe_spi_rdid,
4066 .probe_timing = TIMING_ZERO,
4067 .block_erasers =
4068 {
4069 {
4070 .eraseblocks = { {4 * 1024, 256} },
4071 .block_erase = spi_block_erase_20,
4072 }, {
4073 .eraseblocks = { {32 * 1024, 32} },
4074 .block_erase = spi_block_erase_52,
4075 }, {
4076 .eraseblocks = { {64 * 1024, 16} },
4077 .block_erase = spi_block_erase_d8,
4078 }, {
4079 .eraseblocks = { {1024 * 1024, 1} },
4080 .block_erase = spi_block_erase_60,
4081 }, {
4082 .eraseblocks = { {1024 * 1024, 1} },
4083 .block_erase = spi_block_erase_c7,
4084 }
4085 },
4086 .unlock = spi_disable_blockprotect,
4087 .write = spi_chip_write_256,
4088 .read = spi_chip_read,
4089 .voltage = {2700, 3600},
4090 },
4091
4092 {
4093 .vendor = "GigaDevice",
4094 .name = "GD25Q16",
4095 .bustype = BUS_SPI,
4096 .manufacture_id = GIGADEVICE_ID,
4097 .model_id = GIGADEVICE_GD25Q16,
4098 .total_size = 2048,
4099 .page_size = 256,
4100 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4101 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4102 .tested = TEST_UNTESTED,
4103 .probe = probe_spi_rdid,
4104 .probe_timing = TIMING_ZERO,
4105 .block_erasers =
4106 {
4107 {
4108 .eraseblocks = { {4 * 1024, 512} },
4109 .block_erase = spi_block_erase_20,
4110 }, {
4111 .eraseblocks = { {32 * 1024, 64} },
4112 .block_erase = spi_block_erase_52,
4113 }, {
4114 .eraseblocks = { {64 * 1024, 32} },
4115 .block_erase = spi_block_erase_d8,
4116 }, {
4117 .eraseblocks = { {2 * 1024 * 1024, 1} },
4118 .block_erase = spi_block_erase_60,
4119 }, {
4120 .eraseblocks = { {2 * 1024 * 1024, 1} },
4121 .block_erase = spi_block_erase_c7,
4122 }
4123 },
4124 .unlock = spi_disable_blockprotect,
4125 .write = spi_chip_write_256,
4126 .read = spi_chip_read,
4127 .voltage = {2700, 3600},
4128 },
4129
4130 {
4131 .vendor = "GigaDevice",
4132 .name = "GD25Q32",
4133 .bustype = BUS_SPI,
4134 .manufacture_id = GIGADEVICE_ID,
4135 .model_id = GIGADEVICE_GD25Q32,
4136 .total_size = 4096,
4137 .page_size = 256,
4138 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4140 .tested = TEST_UNTESTED,
4141 .probe = probe_spi_rdid,
4142 .probe_timing = TIMING_ZERO,
4143 .block_erasers =
4144 {
4145 {
4146 .eraseblocks = { {4 * 1024, 1024} },
4147 .block_erase = spi_block_erase_20,
4148 }, {
4149 .eraseblocks = { {32 * 1024, 128} },
4150 .block_erase = spi_block_erase_52,
4151 }, {
4152 .eraseblocks = { {64 * 1024, 64} },
4153 .block_erase = spi_block_erase_d8,
4154 }, {
4155 .eraseblocks = { {4 * 1024 * 1024, 1} },
4156 .block_erase = spi_block_erase_60,
4157 }, {
4158 .eraseblocks = { {4 * 1024 * 1024, 1} },
4159 .block_erase = spi_block_erase_c7,
4160 }
4161 },
4162 .unlock = spi_disable_blockprotect,
4163 .write = spi_chip_write_256,
4164 .read = spi_chip_read,
4165 .voltage = {2700, 3600},
4166 },
4167
4168 {
4169 .vendor = "GigaDevice",
4170 .name = "GD25Q64",
4171 .bustype = BUS_SPI,
4172 .manufacture_id = GIGADEVICE_ID,
4173 .model_id = GIGADEVICE_GD25Q64,
4174 .total_size = 8192,
4175 .page_size = 256,
4176 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4177 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4178 .tested = TEST_UNTESTED,
4179 .probe = probe_spi_rdid,
4180 .probe_timing = TIMING_ZERO,
4181 .block_erasers =
4182 {
4183 {
4184 .eraseblocks = { {4 * 1024, 2048} },
4185 .block_erase = spi_block_erase_20,
4186 }, {
4187 .eraseblocks = { {32 * 1024, 256} },
4188 .block_erase = spi_block_erase_52,
4189 }, {
4190 .eraseblocks = { {64 * 1024, 128} },
4191 .block_erase = spi_block_erase_d8,
4192 }, {
4193 .eraseblocks = { {8 * 1024 * 1024, 1} },
4194 .block_erase = spi_block_erase_60,
4195 }, {
4196 .eraseblocks = { {8 * 1024 * 1024, 1} },
4197 .block_erase = spi_block_erase_c7,
4198 }
4199 },
4200 .unlock = spi_disable_blockprotect,
4201 .write = spi_chip_write_256,
4202 .read = spi_chip_read,
4203 },
4204
4205 {
4206 .vendor = "GigaDevice",
4207 .name = "GD25Q128",
4208 .bustype = BUS_SPI,
4209 .manufacture_id = GIGADEVICE_ID,
4210 .model_id = GIGADEVICE_GD25Q128,
4211 .total_size = 16384,
4212 .page_size = 256,
4213 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4215 .tested = TEST_UNTESTED,
4216 .probe = probe_spi_rdid,
4217 .probe_timing = TIMING_ZERO,
4218 .block_erasers =
4219 {
4220 {
4221 .eraseblocks = { {4 * 1024, 4096} },
4222 .block_erase = spi_block_erase_20,
4223 }, {
4224 .eraseblocks = { {32 * 1024, 512} },
4225 .block_erase = spi_block_erase_52,
4226 }, {
4227 .eraseblocks = { {64 * 1024, 256} },
4228 .block_erase = spi_block_erase_d8,
4229 }, {
4230 .eraseblocks = { {16 * 1024 * 1024, 1} },
4231 .block_erase = spi_block_erase_60,
4232 }, {
4233 .eraseblocks = { {16 * 1024 * 1024, 1} },
4234 .block_erase = spi_block_erase_c7,
4235 }
4236 },
4237 .unlock = spi_disable_blockprotect,
4238 .write = spi_chip_write_256,
4239 .read = spi_chip_read,
4240 },
4241
4242 {
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004243 .vendor = "GigaDevice",
4244 .name = "GD25LQ32",
4245 .bustype = BUS_SPI,
4246 .manufacture_id = GIGADEVICE_ID,
4247 .model_id = GIGADEVICE_GD25LQ32,
4248 .total_size = 4096,
4249 .page_size = 256,
4250 .feature_bits = FEATURE_WRSR_WREN,
4251 .tested = TEST_OK_PREW,
4252 .probe = probe_spi_rdid,
4253 .probe_timing = TIMING_ZERO,
4254 .block_erasers =
4255 {
4256 {
4257 .eraseblocks = { {4 * 1024, 1024} },
4258 .block_erase = spi_block_erase_20,
4259 }, {
4260 .eraseblocks = { {32 * 1024, 128} },
4261 .block_erase = spi_block_erase_52,
4262 }, {
4263 .eraseblocks = { {64 * 1024, 64} },
4264 .block_erase = spi_block_erase_d8,
4265 }, {
4266 .eraseblocks = { {4 * 1024 * 1024, 1} },
4267 .block_erase = spi_block_erase_60,
4268 }, {
4269 .eraseblocks = { {4 * 1024 * 1024, 1} },
4270 .block_erase = spi_block_erase_c7,
4271 }
4272 },
4273 .unlock = spi_disable_blockprotect,
4274 .write = spi_chip_write_256,
4275 .read = spi_chip_read,
4276 .voltage = {1700, 1950},
4277 },
4278
4279 {
David Borgc96a8bd2010-06-21 16:12:22 +00004280 .vendor = "Hyundai",
4281 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004282 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004283 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004284 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004285 .total_size = 256,
4286 .page_size = 256 * 1024,
4287 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004288 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004289 .probe = probe_jedec,
4290 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4291 .block_erasers =
4292 {
4293 {
4294 .eraseblocks = {
4295 {64 * 1024, 3},
4296 {32 * 1024, 1},
4297 {8 * 1024, 2},
4298 {16 * 1024, 1},
4299 },
4300 .block_erase = erase_sector_jedec,
4301 }, {
4302 .eraseblocks = { {256 * 1024, 1} },
4303 .block_erase = erase_chip_block_jedec,
4304 },
4305 },
4306 .write = write_jedec_1,
4307 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004308 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004309 },
4310
4311 {
4312 .vendor = "Hyundai",
4313 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004314 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004315 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004316 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004317 .total_size = 256,
4318 .page_size = 256 * 1024,
4319 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4320 .tested = TEST_UNTESTED,
4321 .probe = probe_jedec,
4322 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4323 .block_erasers =
4324 {
4325 {
4326 .eraseblocks = {
4327 {16 * 1024, 1},
4328 {8 * 1024, 2},
4329 {32 * 1024, 1},
4330 {64 * 1024, 3},
4331 },
4332 .block_erase = erase_sector_jedec,
4333 }, {
4334 .eraseblocks = { {256 * 1024, 1} },
4335 .block_erase = erase_chip_block_jedec,
4336 },
4337 },
4338 .write = write_jedec_1,
4339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004340 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004341 },
4342
4343 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004344 .vendor = "Hyundai",
4345 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004346 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004347 .manufacture_id = HYUNDAI_ID,
4348 .model_id = HYUNDAI_HY29F040A,
4349 .total_size = 512,
4350 .page_size = 64 * 1024,
4351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4352 .tested = TEST_UNTESTED,
4353 .probe = probe_jedec,
4354 .probe_timing = TIMING_ZERO,
4355 .block_erasers =
4356 {
4357 {
4358 .eraseblocks = { {64 * 1024, 8} },
4359 .block_erase = erase_sector_jedec,
4360 }, {
4361 .eraseblocks = { {512 * 1024, 1} },
4362 .block_erase = erase_chip_block_jedec,
4363 },
4364 },
4365 .write = write_jedec_1,
4366 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004367 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004368 },
4369
4370 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004371 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004372 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004373 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004374 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004375 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004376 .total_size = 128,
4377 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004378 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004379 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004380 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004381 .block_erasers =
4382 {
4383 {
4384 .eraseblocks = {
4385 {8 * 1024, 1},
4386 {4 * 1024, 2},
4387 {112 * 1024, 1},
4388 },
Sean Nelson28accc22010-03-19 18:47:06 +00004389 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004390 },
4391 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004392 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004393 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004394 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004395 },
4396
4397 {
4398 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004399 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004400 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004401 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004402 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004403 .total_size = 128,
4404 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004405 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004406 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004407 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004408 .block_erasers =
4409 {
4410 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004411 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004412 {112 * 1024, 1},
4413 {4 * 1024, 2},
4414 {8 * 1024, 1},
4415 },
Sean Nelson28accc22010-03-19 18:47:06 +00004416 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004417 },
4418 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004419 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004420 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004421 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004422 },
4423
4424 {
4425 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004426 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004427 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004428 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004429 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004430 .total_size = 256,
4431 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004432 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004433 .probe = probe_82802ab,
4434 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4435 .block_erasers =
4436 {
4437 {
4438 .eraseblocks = {
4439 {128 * 1024, 1},
4440 {96 * 1024, 1},
4441 {8 * 1024, 2},
4442 {16 * 1024, 1},
4443 },
4444 .block_erase = erase_block_82802ab,
4445 },
4446 },
4447 .write = write_82802ab,
4448 .read = read_memmapped,
4449 },
4450
4451 {
4452 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004453 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004454 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004455 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004456 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004457 .total_size = 512,
4458 .page_size = 256,
4459 .tested = TEST_UNTESTED,
4460 .probe = probe_82802ab,
4461 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004462 .block_erasers =
4463 {
4464 {
4465 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004466 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004467 },
4468 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004469 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004470 .write = write_82802ab,
4471 .read = read_memmapped,
4472 },
4473
4474 {
4475 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004476 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004477 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004478 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004479 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004480 .total_size = 512,
4481 .page_size = 128 * 1024, /* maximal block size */
4482 .tested = TEST_UNTESTED,
4483 .probe = probe_82802ab,
4484 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4485 .block_erasers =
4486 {
4487 {
4488 .eraseblocks = {
4489 {16 * 1024, 1},
4490 {8 * 1024, 2},
4491 {96 * 1024, 1},
4492 {128 * 1024, 3},
4493 },
4494 .block_erase = erase_block_82802ab,
4495 },
4496 },
4497 .write = write_82802ab,
4498 .read = read_memmapped,
4499 },
4500
4501 {
4502 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004503 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004504 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004505 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004506 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004507 .total_size = 512,
4508 .page_size = 128 * 1024, /* maximal block size */
4509 .tested = TEST_UNTESTED,
4510 .probe = probe_82802ab,
4511 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4512 .block_erasers =
4513 {
4514 {
4515 .eraseblocks = {
4516 {128 * 1024, 3},
4517 {96 * 1024, 1},
4518 {8 * 1024, 2},
4519 {16 * 1024, 1},
4520 },
4521 .block_erase = erase_block_82802ab,
4522 },
4523 },
4524 .write = write_82802ab,
4525 .read = read_memmapped,
4526 },
4527
4528 {
4529 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004530 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004531 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004532 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004533 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004534 .total_size = 512,
4535 .page_size = 128 * 1024, /* maximal block size */
4536 .feature_bits = FEATURE_ADDR_SHIFTED,
4537 .tested = TEST_UNTESTED,
4538 .probe = probe_82802ab,
4539 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4540 .block_erasers =
4541 {
4542 {
4543 .eraseblocks = {
4544 {16 * 1024, 1},
4545 {8 * 1024, 2},
4546 {96 * 1024, 1},
4547 {128 * 1024, 3},
4548 },
4549 .block_erase = erase_block_82802ab,
4550 },
4551 },
4552 .write = write_82802ab,
4553 .read = read_memmapped,
4554 },
4555
4556 {
4557 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004558 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004559 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004560 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004561 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004562 .total_size = 512,
4563 .page_size = 128 * 1024, /* maximal block size */
4564 .feature_bits = FEATURE_ADDR_SHIFTED,
4565 .tested = TEST_UNTESTED,
4566 .probe = probe_82802ab,
4567 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4568 .block_erasers =
4569 {
4570 {
4571 .eraseblocks = {
4572 {128 * 1024, 3},
4573 {96 * 1024, 1},
4574 {8 * 1024, 2},
4575 {16 * 1024, 1},
4576 },
4577 .block_erase = erase_block_82802ab,
4578 },
4579 },
4580 .write = write_82802ab,
4581 .read = read_memmapped,
4582 },
4583
4584 {
4585 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004586 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004587 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004588 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004589 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004590 .total_size = 512,
4591 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004592 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004593 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004594 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004595 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004596 .block_erasers =
4597 {
4598 {
4599 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004600 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004601 },
4602 },
Sean Nelson28accc22010-03-19 18:47:06 +00004603 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004604 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004605 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004606 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004607 },
4608
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004609 {
4610 .vendor = "Intel",
4611 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004612 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004613 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004614 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004615 .total_size = 1024,
4616 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004617 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004618 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004619 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004620 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004621 .block_erasers =
4622 {
4623 {
4624 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004625 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004626 },
4627 },
Sean Nelson28accc22010-03-19 18:47:06 +00004628 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004629 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004631 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004632 },
4633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004634 {
4635 .vendor = "Macronix",
4636 .name = "MX25L512",
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_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004640 .total_size = 64,
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 Hailfingerf38431a2009-09-05 02:30:58 +00004646 .block_erasers =
4647 {
4648 {
4649 .eraseblocks = { {4 * 1024, 16} },
4650 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004651 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004652 .eraseblocks = { {64 * 1024, 1} },
4653 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004654 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004655 .eraseblocks = { {64 * 1024, 1} },
4656 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004657 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004658 .eraseblocks = { {64 * 1024, 1} },
4659 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004660 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004661 .eraseblocks = { {64 * 1024, 1} },
4662 .block_erase = spi_block_erase_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 = "MX25L1005",
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_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004677 .total_size = 128,
4678 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004679 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004680 .tested = TEST_UNTESTED,
4681 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004682 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004683 .block_erasers =
4684 {
4685 {
4686 .eraseblocks = { {4 * 1024, 32} },
4687 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004688 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004689 .eraseblocks = { {64 * 1024, 2} },
4690 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004691 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004692 .eraseblocks = { {128 * 1024, 1} },
4693 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004694 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004695 .eraseblocks = { {128 * 1024, 1} },
4696 .block_erase = spi_block_erase_c7,
4697 },
4698 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004699 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004700 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004701 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004702 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004703 },
4704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004705 {
4706 .vendor = "Macronix",
4707 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004708 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004709 .manufacture_id = MACRONIX_ID,
4710 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004711 .total_size = 256,
4712 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004713 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004714 .tested = TEST_UNTESTED,
4715 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004716 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004717 .block_erasers =
4718 {
4719 {
4720 .eraseblocks = { {4 * 1024, 64} },
4721 .block_erase = spi_block_erase_20,
4722 }, {
4723 .eraseblocks = { {64 * 1024, 4} },
4724 .block_erase = spi_block_erase_52,
4725 }, {
4726 .eraseblocks = { {64 * 1024, 4} },
4727 .block_erase = spi_block_erase_d8,
4728 }, {
4729 .eraseblocks = { {256 * 1024, 1} },
4730 .block_erase = spi_block_erase_60,
4731 }, {
4732 .eraseblocks = { {256 * 1024, 1} },
4733 .block_erase = spi_block_erase_c7,
4734 },
4735 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004736 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004737 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004738 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004739 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004740 },
4741
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004742 {
4743 .vendor = "Macronix",
4744 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004745 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004746 .manufacture_id = MACRONIX_ID,
4747 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004748 .total_size = 512,
4749 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004750 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004751 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004752 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004753 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004754 .block_erasers =
4755 {
4756 {
4757 .eraseblocks = { {4 * 1024, 128} },
4758 .block_erase = spi_block_erase_20,
4759 }, {
4760 .eraseblocks = { {64 * 1024, 8} },
4761 .block_erase = spi_block_erase_52,
4762 }, {
4763 .eraseblocks = { {64 * 1024, 8} },
4764 .block_erase = spi_block_erase_d8,
4765 }, {
4766 .eraseblocks = { {512 * 1024, 1} },
4767 .block_erase = spi_block_erase_60,
4768 }, {
4769 .eraseblocks = { {512 * 1024, 1} },
4770 .block_erase = spi_block_erase_c7,
4771 },
4772 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004774 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004775 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004776 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004777 },
4778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004779 {
4780 .vendor = "Macronix",
4781 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004782 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004783 .manufacture_id = MACRONIX_ID,
4784 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004785 .total_size = 1024,
4786 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004787 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004788 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004789 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004790 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004791 .block_erasers =
4792 {
4793 {
4794 .eraseblocks = { {4 * 1024, 256} },
4795 .block_erase = spi_block_erase_20,
4796 }, {
4797 .eraseblocks = { {64 * 1024, 16} },
4798 .block_erase = spi_block_erase_52,
4799 }, {
4800 .eraseblocks = { {64 * 1024, 16} },
4801 .block_erase = spi_block_erase_d8,
4802 }, {
4803 .eraseblocks = { {1024 * 1024, 1} },
4804 .block_erase = spi_block_erase_60,
4805 }, {
4806 .eraseblocks = { {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 Guilloux5c5b5252009-01-08 03:40:17 +00004812 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004813 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004814 },
4815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004816 {
4817 .vendor = "Macronix",
4818 .name = "MX25L1605",
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_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004822 .total_size = 2048,
4823 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004824 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004825 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004826 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004827 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004828 .block_erasers =
4829 {
4830 {
4831 .eraseblocks = { {4 * 1024, 512} },
4832 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4833 }, {
4834 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4835 .block_erase = spi_block_erase_52,
4836 }, {
4837 .eraseblocks = { {64 * 1024, 32} },
4838 .block_erase = spi_block_erase_d8,
4839 }, {
4840 .eraseblocks = { {2 * 1024 * 1024, 1} },
4841 .block_erase = spi_block_erase_60,
4842 }, {
4843 .eraseblocks = { {2 * 1024 * 1024, 1} },
4844 .block_erase = spi_block_erase_c7,
4845 },
4846 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004847 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004848 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004849 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004850 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004851 },
4852
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004853 {
4854 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004855 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004856 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004857 .manufacture_id = MACRONIX_ID,
4858 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004859 .total_size = 2048,
4860 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004861 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004862 .tested = TEST_UNTESTED,
4863 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004864 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004865 .block_erasers =
4866 {
4867 {
4868 .eraseblocks = { {4 * 1024, 512} },
4869 .block_erase = spi_block_erase_20,
4870 }, {
4871 .eraseblocks = { {64 * 1024, 32} },
4872 .block_erase = spi_block_erase_d8,
4873 }, {
4874 .eraseblocks = { {2 * 1024 * 1024, 1} },
4875 .block_erase = spi_block_erase_60,
4876 }, {
4877 .eraseblocks = { {2 * 1024 * 1024, 1} },
4878 .block_erase = spi_block_erase_c7,
4879 }
4880 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004881 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004882 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004883 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004884 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004885 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004886
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004887 {
4888 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004889 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004890 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004891 .manufacture_id = MACRONIX_ID,
4892 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004893 .total_size = 2048,
4894 .page_size = 256,
4895 .feature_bits = FEATURE_WRSR_WREN,
4896 .tested = TEST_UNTESTED,
4897 .probe = probe_spi_rdid,
4898 .probe_timing = TIMING_ZERO,
4899 .block_erasers =
4900 {
4901 {
4902 .eraseblocks = { {4 * 1024, 512} },
4903 .block_erase = spi_block_erase_20,
4904 }, {
4905 .eraseblocks = { {64 * 1024, 32} },
4906 .block_erase = spi_block_erase_d8,
4907 }, {
4908 .eraseblocks = { {2 * 1024 * 1024, 1} },
4909 .block_erase = spi_block_erase_60,
4910 }, {
4911 .eraseblocks = { {2 * 1024 * 1024, 1} },
4912 .block_erase = spi_block_erase_c7,
4913 }
4914 },
4915 .unlock = spi_disable_blockprotect,
4916 .write = spi_chip_write_256,
4917 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004918 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004919 },
4920
4921 {
4922 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004923 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004924 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004925 .manufacture_id = MACRONIX_ID,
4926 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004927 .total_size = 4096,
4928 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004929 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004930 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004931 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004932 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = { {4 * 1024, 1024} },
4937 .block_erase = spi_block_erase_20,
4938 }, {
4939 .eraseblocks = { {4 * 1024, 1024} },
4940 .block_erase = spi_block_erase_d8,
4941 }, {
4942 .eraseblocks = { {4 * 1024 * 1024, 1} },
4943 .block_erase = spi_block_erase_60,
4944 }, {
4945 .eraseblocks = { {4 * 1024 * 1024, 1} },
4946 .block_erase = spi_block_erase_c7,
4947 },
4948 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004949 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004950 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004952 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004953 },
4954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004955 {
4956 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004957 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004958 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004959 .manufacture_id = MACRONIX_ID,
4960 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004961 .total_size = 4096,
4962 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004963 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004964 .tested = TEST_UNTESTED,
4965 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004966 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004967 .block_erasers =
4968 {
4969 {
4970 .eraseblocks = { {4 * 1024, 1024} },
4971 .block_erase = spi_block_erase_20,
4972 }, {
4973 .eraseblocks = { {64 * 1024, 64} },
4974 .block_erase = spi_block_erase_d8,
4975 }, {
4976 .eraseblocks = { {4 * 1024 * 1024, 1} },
4977 .block_erase = spi_block_erase_60,
4978 }, {
4979 .eraseblocks = { {4 * 1024 * 1024, 1} },
4980 .block_erase = spi_block_erase_c7,
4981 }
4982 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004983 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004984 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004985 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004986 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004987 },
4988
4989 {
4990 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004991 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004992 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004993 .manufacture_id = MACRONIX_ID,
4994 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004995 .total_size = 8192,
4996 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004997 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00004998 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004999 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005000 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005001 .block_erasers =
5002 {
5003 {
5004 .eraseblocks = { {64 * 1024, 128} },
5005 .block_erase = spi_block_erase_20,
5006 }, {
5007 .eraseblocks = { {64 * 1024, 128} },
5008 .block_erase = spi_block_erase_d8,
5009 }, {
5010 .eraseblocks = { {8 * 1024 * 1024, 1} },
5011 .block_erase = spi_block_erase_60,
5012 }, {
5013 .eraseblocks = { {8 * 1024 * 1024, 1} },
5014 .block_erase = spi_block_erase_c7,
5015 }
5016 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005017 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005018 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005019 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005020 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005021 },
5022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005023 {
5024 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005025 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005026 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005027 .manufacture_id = MACRONIX_ID,
5028 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005029 .total_size = 16384,
5030 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005031 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005032 .tested = TEST_UNTESTED,
5033 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005034 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005035 .block_erasers =
5036 {
5037 {
5038 .eraseblocks = { {4 * 1024, 4096} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 256} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
5044 .eraseblocks = { {16 * 1024 * 1024, 1} },
5045 .block_erase = spi_block_erase_60,
5046 }, {
5047 .eraseblocks = { {16 * 1024 * 1024, 1} },
5048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005051 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005052 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005053 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005054 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005055 },
5056
5057 {
5058 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005059 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005060 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005061 .manufacture_id = MACRONIX_ID,
5062 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005063 .total_size = 128,
5064 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005065 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5066 .tested = TEST_UNTESTED,
5067 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005068 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005069 .block_erasers =
5070 {
5071 {
5072 .eraseblocks = {
5073 {8 * 1024, 1},
5074 {4 * 1024, 2},
5075 {8 * 1024, 2},
5076 {32 * 1024, 1},
5077 {64 * 1024, 1},
5078 },
Sean Nelson35727f72010-01-28 23:55:12 +00005079 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005080 }, {
5081 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005082 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005083 }
5084 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005085 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005086 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005087 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005088 },
5089
5090 {
5091 .vendor = "Macronix",
5092 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005093 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005094 .manufacture_id = MACRONIX_ID,
5095 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005096 .total_size = 128,
5097 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005098 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005099 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005100 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005101 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005102 .block_erasers =
5103 {
5104 {
5105 .eraseblocks = {
5106 {64 * 1024, 1},
5107 {32 * 1024, 1},
5108 {8 * 1024, 2},
5109 {4 * 1024, 2},
5110 {8 * 1024, 1},
5111 },
Sean Nelson35727f72010-01-28 23:55:12 +00005112 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005113 }, {
5114 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005115 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005116 }
5117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005118 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005120 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005121 },
5122
5123 {
5124 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005125 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005126 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005127 .manufacture_id = MACRONIX_ID,
5128 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005129 .total_size = 256,
5130 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005131 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005132 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005133 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005134 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005135 .block_erasers =
5136 {
5137 {
5138 .eraseblocks = {
5139 {16 * 1024, 1},
5140 {8 * 1024, 2},
5141 {32 * 1024, 1},
5142 {64 * 1024, 3},
5143 },
Sean Nelson35727f72010-01-28 23:55:12 +00005144 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005145 }, {
5146 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005147 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005148 },
5149 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005152 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005153 },
5154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005155 {
5156 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005157 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005158 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005159 .manufacture_id = MACRONIX_ID,
5160 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005161 .total_size = 256,
5162 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005163 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005164 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005165 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005166 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005167 .block_erasers =
5168 {
5169 {
5170 .eraseblocks = {
5171 {64 * 1024, 3},
5172 {32 * 1024, 1},
5173 {8 * 1024, 2},
5174 {16 * 1024, 1},
5175 },
Sean Nelson35727f72010-01-28 23:55:12 +00005176 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005177 }, {
5178 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005179 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005180 },
5181 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005182 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005183 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005184 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005185 },
5186
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005187 {
5188 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005189 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005190 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005191 .manufacture_id = MACRONIX_ID,
5192 .model_id = MACRONIX_MX29F040,
5193 .total_size = 512,
5194 .page_size = 64 * 1024,
5195 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5196 .tested = TEST_UNTESTED,
5197 .probe = probe_jedec,
5198 .probe_timing = TIMING_ZERO,
5199 .block_erasers =
5200 {
5201 {
5202 .eraseblocks = { {64 * 1024, 8} },
5203 .block_erase = erase_sector_jedec,
5204 }, {
5205 .eraseblocks = { {512 * 1024, 1} },
5206 .block_erase = erase_chip_block_jedec,
5207 },
5208 },
5209 .write = write_jedec_1,
5210 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005211 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005212 },
5213
5214 {
5215 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005216 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005217 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005218 .manufacture_id = MACRONIX_ID,
5219 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005220 .total_size = 512,
5221 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005222 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5223 .tested = TEST_UNTESTED,
5224 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005225 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005226 .block_erasers =
5227 {
5228 {
5229 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005230 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005231 }, {
5232 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005233 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005234 },
5235 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005236 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005237 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005238 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005239 },
5240
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005241 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005242 .vendor = "MoselVitelic",
5243 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005244 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005245 .manufacture_id = SYNCMOS_MVC_ID,
5246 .model_id = MVC_V29C51000B,
5247 .total_size = 64,
5248 .page_size = 512,
5249 .feature_bits = FEATURE_EITHER_RESET,
5250 .tested = TEST_UNTESTED,
5251 .probe = probe_jedec,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = { {512, 128} },
5257 .block_erase = erase_sector_jedec,
5258 }, {
5259 .eraseblocks = { {64 * 1024, 1} },
5260 .block_erase = erase_chip_block_jedec,
5261 },
5262 },
5263 .write = write_jedec_1,
5264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005265 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005266 },
5267
5268 {
5269 .vendor = "MoselVitelic",
5270 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005271 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005272 .manufacture_id = SYNCMOS_MVC_ID,
5273 .model_id = MVC_V29C51000T,
5274 .total_size = 64,
5275 .page_size = 512,
5276 .feature_bits = FEATURE_EITHER_RESET,
5277 .tested = TEST_UNTESTED,
5278 .probe = probe_jedec,
5279 .probe_timing = TIMING_ZERO,
5280 .block_erasers =
5281 {
5282 {
5283 .eraseblocks = { {512, 128} },
5284 .block_erase = erase_sector_jedec,
5285 }, {
5286 .eraseblocks = { {64 * 1024, 1} },
5287 .block_erase = erase_chip_block_jedec,
5288 },
5289 },
5290 .write = write_jedec_1,
5291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005292 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005293 },
5294
5295 {
5296 .vendor = "MoselVitelic",
5297 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005298 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005299 .manufacture_id = SYNCMOS_MVC_ID,
5300 .model_id = MVC_V29C51400B,
5301 .total_size = 512,
5302 .page_size = 1024,
5303 .feature_bits = FEATURE_EITHER_RESET,
5304 .tested = TEST_UNTESTED,
5305 .probe = probe_jedec,
5306 .probe_timing = TIMING_ZERO,
5307 .block_erasers =
5308 {
5309 {
5310 .eraseblocks = { {1024, 512} },
5311 .block_erase = erase_sector_jedec,
5312 }, {
5313 .eraseblocks = { {512 * 1024, 1} },
5314 .block_erase = erase_chip_block_jedec,
5315 },
5316 },
5317 .write = write_jedec_1,
5318 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005319 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005320 },
5321
5322 {
5323 .vendor = "MoselVitelic",
5324 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005325 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005326 .manufacture_id = SYNCMOS_MVC_ID,
5327 .model_id = MVC_V29C51400T,
5328 .total_size = 512,
5329 .page_size = 1024,
5330 .feature_bits = FEATURE_EITHER_RESET,
5331 .tested = TEST_UNTESTED,
5332 .probe = probe_jedec,
5333 .probe_timing = TIMING_ZERO,
5334 .block_erasers =
5335 {
5336 {
5337 .eraseblocks = { {1024, 512} },
5338 .block_erase = erase_sector_jedec,
5339 }, {
5340 .eraseblocks = { {512 * 1024, 1} },
5341 .block_erase = erase_chip_block_jedec,
5342 },
5343 },
5344 .write = write_jedec_1,
5345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005346 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005347 },
5348
5349 {
5350 .vendor = "MoselVitelic",
5351 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005352 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005353 .manufacture_id = SYNCMOS_MVC_ID,
5354 .model_id = MVC_V29LC51000,
5355 .total_size = 64,
5356 .page_size = 512,
5357 .feature_bits = FEATURE_EITHER_RESET,
5358 .tested = TEST_UNTESTED,
5359 .probe = probe_jedec,
5360 .probe_timing = TIMING_ZERO,
5361 .block_erasers =
5362 {
5363 {
5364 .eraseblocks = { {512, 128} },
5365 .block_erase = erase_sector_jedec,
5366 }, {
5367 .eraseblocks = { {64 * 1024, 1} },
5368 .block_erase = erase_chip_block_jedec,
5369 },
5370 },
5371 .write = write_jedec_1,
5372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005373 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005374 },
5375
5376 {
5377 .vendor = "MoselVitelic",
5378 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005379 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005380 .manufacture_id = SYNCMOS_MVC_ID,
5381 .model_id = MVC_V29LC51001,
5382 .total_size = 128,
5383 .page_size = 512,
5384 .feature_bits = FEATURE_EITHER_RESET,
5385 .tested = TEST_UNTESTED,
5386 .probe = probe_jedec,
5387 .probe_timing = TIMING_ZERO,
5388 .block_erasers =
5389 {
5390 {
5391 .eraseblocks = { {512, 256} },
5392 .block_erase = erase_sector_jedec,
5393 }, {
5394 .eraseblocks = { {128 * 1024, 1} },
5395 .block_erase = erase_chip_block_jedec,
5396 },
5397 },
5398 .write = write_jedec_1,
5399 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005400 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005401 },
5402
5403 {
5404 .vendor = "MoselVitelic",
5405 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005406 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005407 .manufacture_id = SYNCMOS_MVC_ID,
5408 .model_id = MVC_V29LC51002,
5409 .total_size = 256,
5410 .page_size = 512,
5411 .feature_bits = FEATURE_EITHER_RESET,
5412 .tested = TEST_UNTESTED,
5413 .probe = probe_jedec,
5414 .probe_timing = TIMING_ZERO,
5415 .block_erasers =
5416 {
5417 {
5418 .eraseblocks = { {512, 512} },
5419 .block_erase = erase_sector_jedec,
5420 }, {
5421 .eraseblocks = { {256 * 1024, 1} },
5422 .block_erase = erase_chip_block_jedec,
5423 },
5424 },
5425 .write = write_jedec_1,
5426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005427 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005428 },
5429
5430 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005431 .vendor = "Numonyx",
5432 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005433 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005435 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005436 .total_size = 128,
5437 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005438 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005439 .tested = TEST_UNTESTED,
5440 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005441 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005442 .block_erasers =
5443 {
5444 {
5445 .eraseblocks = { {4 * 1024, 32} },
5446 .block_erase = spi_block_erase_20,
5447 }, {
5448 .eraseblocks = { {64 * 1024, 2} },
5449 .block_erase = spi_block_erase_d8,
5450 }, {
5451 .eraseblocks = { {128 * 1024, 1} },
5452 .block_erase = spi_block_erase_c7,
5453 }
5454 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005455 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005456 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005457 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005458 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005459 },
5460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005461 {
5462 .vendor = "Numonyx",
5463 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005464 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005465 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005466 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005467 .total_size = 256,
5468 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005469 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005470 .tested = TEST_UNTESTED,
5471 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005472 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005473 .block_erasers =
5474 {
5475 {
5476 .eraseblocks = { {4 * 1024, 64} },
5477 .block_erase = spi_block_erase_20,
5478 }, {
5479 .eraseblocks = { {64 * 1024, 4} },
5480 .block_erase = spi_block_erase_d8,
5481 }, {
5482 .eraseblocks = { {256 * 1024, 1} },
5483 .block_erase = spi_block_erase_c7,
5484 }
5485 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005486 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005487 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005488 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005489 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005490 },
5491
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005492 {
5493 .vendor = "Numonyx",
5494 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005495 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005496 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005497 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005498 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005499 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005500 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 .tested = TEST_UNTESTED,
5502 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005503 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005504 .block_erasers =
5505 {
5506 {
5507 .eraseblocks = { {4 * 1024, 128} },
5508 .block_erase = spi_block_erase_20,
5509 }, {
5510 .eraseblocks = { {64 * 1024, 8} },
5511 .block_erase = spi_block_erase_d8,
5512 }, {
5513 .eraseblocks = { {512 * 1024, 1} },
5514 .block_erase = spi_block_erase_c7,
5515 }
5516 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005517 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005518 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005519 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005520 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005521 },
5522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005523 {
5524 .vendor = "Numonyx",
5525 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005526 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005527 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005528 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005529 .total_size = 1024,
5530 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005531 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005532 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005533 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005534 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005535 .block_erasers =
5536 {
5537 {
5538 .eraseblocks = { {4 * 1024, 256} },
5539 .block_erase = spi_block_erase_20,
5540 }, {
5541 .eraseblocks = { {64 * 1024, 16} },
5542 .block_erase = spi_block_erase_d8,
5543 }, {
5544 .eraseblocks = { {1024 * 1024, 1} },
5545 .block_erase = spi_block_erase_c7,
5546 }
5547 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005548 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005549 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005550 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005552 },
5553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 {
5555 .vendor = "Numonyx",
5556 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005557 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005558 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005559 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005560 .total_size = 2048,
5561 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005562 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005563 .tested = TEST_UNTESTED,
5564 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005565 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005566 .block_erasers =
5567 {
5568 {
5569 .eraseblocks = { {4 * 1024, 512} },
5570 .block_erase = spi_block_erase_20,
5571 }, {
5572 .eraseblocks = { {64 * 1024, 32} },
5573 .block_erase = spi_block_erase_d8,
5574 }, {
5575 .eraseblocks = { {2 * 1024 * 1024, 1} },
5576 .block_erase = spi_block_erase_c7,
5577 }
5578 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005579 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005580 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005581 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005582 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005583 },
5584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005585 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005586 .vendor = "Numonyx",
5587 .name = "N25Q064",
5588 .bustype = BUS_SPI,
5589 .manufacture_id = ST_ID,
5590 .model_id = ST_N25Q064,
5591 .total_size = 8192,
5592 .page_size = 256,
5593 .tested = TEST_OK_PREW,
5594 .probe = probe_spi_rdid,
5595 .probe_timing = TIMING_ZERO,
5596 .block_erasers =
5597 {
5598 {
5599 .eraseblocks = { {4 * 1024, 2048 } },
5600 .block_erase = spi_block_erase_20,
5601 }, {
5602 .eraseblocks = { {64 * 1024, 128} },
5603 .block_erase = spi_block_erase_d8,
5604 }, {
5605 .eraseblocks = { {8 * 1024 * 1024, 1} },
5606 .block_erase = spi_block_erase_c7,
5607 }
5608 },
5609 .unlock = spi_disable_blockprotect,
5610 .write = spi_chip_write_256,
5611 .read = spi_chip_read,
5612 },
5613
5614 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005615 .vendor = "PMC",
5616 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005617 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005618 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005619 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005620 .total_size = 128,
5621 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005622 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .tested = TEST_UNTESTED,
5624 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005625 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005626 .block_erasers =
5627 {
5628 {
5629 .eraseblocks = { {4 * 1024, 32} },
5630 .block_erase = spi_block_erase_d7,
5631 }, {
5632 .eraseblocks = { {32 * 1024, 4} },
5633 .block_erase = spi_block_erase_d8,
5634 }, {
5635 .eraseblocks = { {128 * 1024, 1} },
5636 .block_erase = spi_block_erase_c7,
5637 }
5638 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005639 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005640 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005641 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005642 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005643 },
5644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005645 {
5646 .vendor = "PMC",
5647 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005648 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005649 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005650 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 .total_size = 2048,
5652 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005653 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005654 .tested = TEST_UNTESTED,
5655 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005656 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005657 .block_erasers =
5658 {
5659 {
5660 .eraseblocks = { {4 * 1024, 512} },
5661 .block_erase = spi_block_erase_d7,
5662 }, {
5663 .eraseblocks = { {4 * 1024, 512} },
5664 .block_erase = spi_block_erase_20,
5665 }, {
5666 .eraseblocks = { {64 * 1024, 32} },
5667 .block_erase = spi_block_erase_d8,
5668 }, {
5669 .eraseblocks = { {2 * 1024 * 1024, 1} },
5670 .block_erase = spi_block_erase_60,
5671 }, {
5672 .eraseblocks = { {2 * 1024 * 1024, 1} },
5673 .block_erase = spi_block_erase_c7,
5674 }
5675 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005676 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005677 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005678 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005679 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005680 },
5681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005682 {
5683 .vendor = "PMC",
5684 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005685 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005686 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005687 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005688 .total_size = 256,
5689 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005690 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005691 .tested = TEST_UNTESTED,
5692 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005693 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005694 .block_erasers =
5695 {
5696 {
5697 .eraseblocks = { {4 * 1024, 64} },
5698 .block_erase = spi_block_erase_d7,
5699 }, {
5700 .eraseblocks = { {64 * 1024, 4} },
5701 .block_erase = spi_block_erase_d8,
5702 }, {
5703 .eraseblocks = { {256 * 1024, 1} },
5704 .block_erase = spi_block_erase_c7,
5705 }
5706 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005707 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005708 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005710 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005711 },
5712
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005713 {
5714 .vendor = "PMC",
5715 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005716 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005717 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005718 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005719 .total_size = 512,
5720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005721 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00005722 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005723 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005724 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005725 .block_erasers =
5726 {
5727 {
5728 .eraseblocks = { {4 * 1024, 128} },
5729 .block_erase = spi_block_erase_d7,
5730 }, {
5731 .eraseblocks = { {64 * 1024, 8} },
5732 .block_erase = spi_block_erase_d8,
5733 }, {
5734 .eraseblocks = { {512 * 1024, 1} },
5735 .block_erase = spi_block_erase_c7,
5736 }
5737 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005738 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005739 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005740 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005741 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005742 },
5743
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005744 {
5745 .vendor = "PMC",
5746 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005747 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005748 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005749 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005750 .total_size = 1024,
5751 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005752 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005753 .tested = TEST_UNTESTED,
5754 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005755 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005756 .block_erasers =
5757 {
5758 {
5759 .eraseblocks = { {4 * 1024, 256} },
5760 .block_erase = spi_block_erase_d7,
5761 }, {
5762 .eraseblocks = { {4 * 1024, 256} },
5763 .block_erase = spi_block_erase_20,
5764 }, {
5765 .eraseblocks = { {64 * 1024, 16} },
5766 .block_erase = spi_block_erase_d8,
5767 }, {
5768 .eraseblocks = { {1024 * 1024, 1} },
5769 .block_erase = spi_block_erase_60,
5770 }, {
5771 .eraseblocks = { {1024 * 1024, 1} },
5772 .block_erase = spi_block_erase_c7,
5773 }
5774 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005775 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005776 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005777 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005778 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005779 },
5780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005781 {
5782 .vendor = "PMC",
5783 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005784 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005785 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005786 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005787 .total_size = 64,
5788 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005789 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 .tested = TEST_UNTESTED,
5791 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005792 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005793 .block_erasers =
5794 {
5795 {
5796 .eraseblocks = { {4 * 1024, 16} },
5797 .block_erase = spi_block_erase_d7,
5798 }, {
5799 .eraseblocks = { {32 * 1024, 2} },
5800 .block_erase = spi_block_erase_d8,
5801 }, {
5802 .eraseblocks = { {64 * 1024, 1} },
5803 .block_erase = spi_block_erase_c7,
5804 }
5805 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005806 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005807 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005808 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005809 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005810 },
5811
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005812 {
5813 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005814 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005815 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005816 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005817 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005818 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005819 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005820 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005821 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005822 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005823 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005824 .block_erasers =
5825 {
5826 {
5827 .eraseblocks = {
5828 {128 * 1024, 1},
5829 {96 * 1024, 1},
5830 {8 * 1024, 2},
5831 {16 * 1024, 1},
5832 },
Sean Nelson35727f72010-01-28 23:55:12 +00005833 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005834 }, {
5835 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005836 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005837 },
5838 },
Sean Nelson35727f72010-01-28 23:55:12 +00005839 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005840 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005841 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005842 },
5843
5844 {
5845 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005846 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005847 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005848 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005849 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005850 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005851 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005852 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005853 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005854 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005855 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005856 .block_erasers =
5857 {
5858 {
5859 .eraseblocks = {
5860 {16 * 1024, 1},
5861 {8 * 1024, 2},
5862 {96 * 1024, 1},
5863 {128 * 1024, 1},
5864 },
Sean Nelson35727f72010-01-28 23:55:12 +00005865 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005866 }, {
5867 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005868 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005869 },
5870 },
Sean Nelson35727f72010-01-28 23:55:12 +00005871 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005872 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005873 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005874 },
5875
5876 {
5877 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005878 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005879 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005880 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005881 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005882 .total_size = 128,
5883 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005884 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005885 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005886 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005887 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005888 .block_erasers =
5889 {
5890 {
5891 .eraseblocks = { {4 * 1024, 32} },
5892 .block_erase = erase_sector_jedec,
5893 }, {
5894 .eraseblocks = { {64 * 1024, 2} },
5895 .block_erase = erase_block_jedec,
5896 }, {
5897 .eraseblocks = { {128 * 1024, 1} },
5898 .block_erase = erase_chip_block_jedec,
5899 }
5900 },
Sean Nelson35727f72010-01-28 23:55:12 +00005901 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005902 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005903 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005904 },
5905
5906 {
5907 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005908 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005909 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005910 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005911 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005912 .total_size = 256,
5913 .page_size = 4096,
5914 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5915 .tested = TEST_UNTESTED,
5916 .probe = probe_jedec,
5917 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5918 .block_erasers =
5919 {
5920 {
5921 .eraseblocks = { {4 * 1024, 64} },
5922 .block_erase = erase_sector_jedec,
5923 }, {
5924 .eraseblocks = { {64 * 1024, 4} },
5925 .block_erase = erase_block_jedec,
5926 }, {
5927 .eraseblocks = { {256 * 1024, 1} },
5928 .block_erase = erase_chip_block_jedec,
5929 }
5930 },
5931 .write = write_jedec_1,
5932 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005933 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005934 },
5935
5936 {
5937 .vendor = "PMC",
5938 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005939 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005940 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005941 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005942 .total_size = 512,
5943 .page_size = 4096,
5944 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005945 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005946 .probe = probe_jedec,
5947 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5948 .block_erasers =
5949 {
5950 {
5951 .eraseblocks = { {4 * 1024, 128} },
5952 .block_erase = erase_sector_jedec,
5953 }, {
5954 .eraseblocks = { {64 * 1024, 8} },
5955 .block_erase = erase_block_jedec,
5956 }, {
5957 .eraseblocks = { {512 * 1024, 1} },
5958 .block_erase = erase_chip_block_jedec,
5959 }
5960 },
5961 .write = write_jedec_1,
5962 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005963 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005964 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00005965
5966 {
5967 .vendor = "PMC",
5968 .name = "Pm39LV512",
5969 .bustype = BUS_PARALLEL,
5970 .manufacture_id = PMC_ID_NOPREFIX,
5971 .model_id = PMC_PM39LV512,
5972 .total_size = 64,
5973 .page_size = 4096,
5974 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5975 .tested = TEST_OK_PREW,
5976 .probe = probe_jedec,
5977 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {4 * 1024, 16} },
5982 .block_erase = erase_sector_jedec,
5983 }, {
5984 .eraseblocks = { {64 * 1024, 1} },
5985 .block_erase = erase_block_jedec,
5986 }, {
5987 .eraseblocks = { {64 * 1024, 1} },
5988 .block_erase = erase_chip_block_jedec,
5989 }
5990 },
5991 .write = write_jedec_1,
5992 .read = read_memmapped,
5993 .voltage = {2700, 3600},
5994 },
5995
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005996 {
5997 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005998 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005999 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006000 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006001 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 .total_size = 256,
6003 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006004 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00006005 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006006 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006007 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006008 .block_erasers =
6009 {
6010 {
6011 .eraseblocks = { {4 * 1024, 64} },
6012 .block_erase = erase_sector_jedec,
6013 }, {
6014 .eraseblocks = { {16 * 1024, 16} },
6015 .block_erase = erase_block_jedec,
6016 }, {
6017 .eraseblocks = { {256 * 1024, 1} },
6018 .block_erase = erase_chip_block_jedec,
6019 }
6020 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006021 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006022 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006024 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006025 },
6026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006027 {
6028 .vendor = "PMC",
6029 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006030 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006031 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006032 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006033 .total_size = 512,
6034 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006035 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006036 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006037 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006038 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006039 .block_erasers =
6040 {
6041 {
6042 .eraseblocks = { {4 * 1024, 128} },
6043 .block_erase = erase_sector_jedec,
6044 }, {
6045 .eraseblocks = { {64 * 1024, 8} },
6046 .block_erase = erase_block_jedec,
6047 }, {
6048 .eraseblocks = { {512 * 1024, 1} },
6049 .block_erase = erase_chip_block_jedec,
6050 }
6051 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006052 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006053 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006055 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006056 },
6057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006058 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00006059 .vendor = "Sanyo",
6060 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006061 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006062 .manufacture_id = SANYO_ID,
6063 .model_id = SANYO_LE25FW203A,
6064 .total_size = 2048,
6065 .page_size = 256,
6066 .tested = TEST_UNTESTED,
6067 .probe = probe_spi_rdid,
6068 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006069 .block_erasers =
6070 {
6071 {
6072 .eraseblocks = { {64 * 1024, 32} },
6073 .block_erase = spi_block_erase_d8,
6074 }, {
6075 .eraseblocks = { {2 * 1024 * 1024, 1} },
6076 .block_erase = spi_block_erase_c7,
6077 }
6078 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006079 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006080 .write = spi_chip_write_256,
6081 .read = spi_chip_read,
6082 },
6083
6084 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006085 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00006086 .name = "LH28F008BJT-BTLZ1",
6087 .bustype = BUS_PARALLEL,
6088 .manufacture_id = SHARP_ID,
6089 .model_id = SHARP_LH28F008BJxxPB,
6090 .total_size = 1024,
6091 .page_size = 64 * 1024,
6092 .tested = TEST_OK_PREW,
6093 .probe = probe_82802ab,
6094 .probe_timing = TIMING_ZERO,
6095 .block_erasers =
6096 {
6097 {
6098 .eraseblocks = {
6099 {8 * 1024, 8},
6100 {64 * 1024, 15}
6101 },
6102 .block_erase = erase_block_82802ab,
6103 }, {
6104 .eraseblocks = { {1024 * 1024, 1} },
6105 .block_erase = erase_sector_49lfxxxc,
6106 }
6107 },
6108 .unlock = unlock_lh28f008bjt,
6109 .write = write_82802ab,
6110 .read = read_memmapped,
6111 .voltage = {2700, 3600},
6112 },
6113
6114 {
6115 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006116 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006117 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006118 .manufacture_id = SHARP_ID,
6119 .model_id = SHARP_LHF00L04,
6120 .total_size = 1024,
6121 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006122 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006123 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006124 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006125 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006126 .block_erasers =
6127 {
6128 {
6129 .eraseblocks = {
6130 {64 * 1024, 15},
6131 {8 * 1024, 8}
6132 },
Sean Nelson28accc22010-03-19 18:47:06 +00006133 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006134 }, {
6135 .eraseblocks = {
6136 {1024 * 1024, 1}
6137 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006138 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006139 },
6140 },
Sean Nelson28accc22010-03-19 18:47:06 +00006141 .unlock = unlock_82802ab,
6142 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006144 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006145 },
6146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006147 {
6148 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00006149 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006150 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006151 .manufacture_id = SPANSION_ID,
6152 .model_id = SPANSION_S25FL004A,
6153 .total_size = 512,
6154 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006155 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006156 .tested = TEST_UNTESTED,
6157 .probe = probe_spi_rdid,
6158 .probe_timing = TIMING_ZERO,
6159 .block_erasers =
6160 {
6161 {
6162 .eraseblocks = { {64 * 1024, 8} },
6163 .block_erase = spi_block_erase_d8,
6164 }, {
6165 .eraseblocks = { {512 * 1024, 1} },
6166 .block_erase = spi_block_erase_c7,
6167 }
6168 },
6169 .unlock = spi_disable_blockprotect,
6170 .write = spi_chip_write_256,
6171 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006172 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006173 },
6174
6175 {
6176 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00006177 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006178 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00006179 .manufacture_id = SPANSION_ID,
6180 .model_id = SPANSION_S25FL008A,
6181 .total_size = 1024,
6182 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006183 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006184 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00006185 .probe = probe_spi_rdid,
6186 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00006187 .block_erasers =
6188 {
6189 {
6190 .eraseblocks = { {64 * 1024, 16} },
6191 .block_erase = spi_block_erase_d8,
6192 }, {
6193 .eraseblocks = { {1024 * 1024, 1} },
6194 .block_erase = spi_block_erase_c7,
6195 }
6196 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006197 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006198 .write = spi_chip_write_256,
6199 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006200 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006201 },
6202
6203 {
6204 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006205 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006206 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006207 .manufacture_id = SPANSION_ID,
6208 .model_id = SPANSION_S25FL016A,
6209 .total_size = 2048,
6210 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006211 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006212 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006213 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006214 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006215 .block_erasers =
6216 {
6217 {
6218 .eraseblocks = { {64 * 1024, 32} },
6219 .block_erase = spi_block_erase_d8,
6220 }, {
6221 .eraseblocks = { {2 * 1024 * 1024, 1} },
6222 .block_erase = spi_block_erase_c7,
6223 }
6224 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006225 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006226 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006227 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006228 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006229 },
6230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006231 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006232 .vendor = "Spansion",
6233 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006234 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006235 .manufacture_id = SPANSION_ID,
6236 .model_id = SPANSION_S25FL032A,
6237 .total_size = 4096,
6238 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006239 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006240 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006241 .probe = probe_spi_rdid,
6242 .probe_timing = TIMING_ZERO,
6243 .block_erasers =
6244 {
6245 {
6246 .eraseblocks = { {64 * 1024, 64} },
6247 .block_erase = spi_block_erase_d8,
6248 }, {
6249 .eraseblocks = { {4 * 1024 * 1024, 1} },
6250 .block_erase = spi_block_erase_c7,
6251 }
6252 },
6253 .unlock = spi_disable_blockprotect,
6254 .write = spi_chip_write_256,
6255 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006256 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006257 },
6258
6259 {
6260 .vendor = "Spansion",
6261 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006262 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006263 .manufacture_id = SPANSION_ID,
6264 .model_id = SPANSION_S25FL064A,
6265 .total_size = 8192,
6266 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006267 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006268 .tested = TEST_OK_PREW,
6269 .probe = probe_spi_rdid,
6270 .probe_timing = TIMING_ZERO,
6271 .block_erasers =
6272 {
6273 {
6274 .eraseblocks = { {64 * 1024, 128} },
6275 .block_erase = spi_block_erase_d8,
6276 }, {
6277 .eraseblocks = { {8 * 1024 * 1024, 1} },
6278 .block_erase = spi_block_erase_c7,
6279 }
6280 },
6281 .unlock = spi_disable_blockprotect,
6282 .write = spi_chip_write_256,
6283 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006284 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006285 },
6286
6287 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006288 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006289 .name = "SST25LF040A",
6290 .bustype = BUS_SPI,
6291 .manufacture_id = SST_ID,
6292 .model_id = SST_SST25VF040_REMS,
6293 .total_size = 512,
6294 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006295 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006296 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006297 .probe = probe_spi_res2,
6298 .probe_timing = TIMING_ZERO,
6299 .block_erasers =
6300 {
6301 {
6302 .eraseblocks = { {4 * 1024, 128} },
6303 .block_erase = spi_block_erase_20,
6304 }, {
6305 .eraseblocks = { {32 * 1024, 16} },
6306 .block_erase = spi_block_erase_52,
6307 }, {
6308 .eraseblocks = { {512 * 1024, 1} },
6309 .block_erase = spi_block_erase_60,
6310 },
6311 },
6312 .unlock = spi_disable_blockprotect,
6313 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6314 .read = spi_chip_read,
6315 .voltage = {3000, 3600},
6316 },
6317
6318 {
6319 .vendor = "SST",
6320 .name = "SST25LF080A",
6321 .bustype = BUS_SPI,
6322 .manufacture_id = SST_ID,
6323 .model_id = SST_SST25VF080_REMS,
6324 .total_size = 1024,
6325 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006326 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006327 .tested = TEST_UNTESTED,
6328 .probe = probe_spi_res2,
6329 .probe_timing = TIMING_ZERO,
6330 .block_erasers =
6331 {
6332 {
6333 .eraseblocks = { {4 * 1024, 256} },
6334 .block_erase = spi_block_erase_20,
6335 }, {
6336 .eraseblocks = { {32 * 1024, 32} },
6337 .block_erase = spi_block_erase_52,
6338 }, {
6339 .eraseblocks = { {1024 * 1024, 1} },
6340 .block_erase = spi_block_erase_60,
6341 },
6342 },
6343 .unlock = spi_disable_blockprotect,
6344 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6345 .read = spi_chip_read,
6346 .voltage = {3000, 3600},
6347 },
6348
6349 {
6350 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006351 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006352 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006353 .manufacture_id = SST_ID,
6354 .model_id = SST_SST25VF010_REMS,
6355 .total_size = 128,
6356 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006357 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006358 .tested = TEST_OK_PREW,
6359 .probe = probe_spi_rems,
6360 .probe_timing = TIMING_ZERO,
6361 .block_erasers =
6362 {
6363 {
6364 .eraseblocks = { {4 * 1024, 32} },
6365 .block_erase = spi_block_erase_20,
6366 }, {
6367 .eraseblocks = { {32 * 1024, 4} },
6368 .block_erase = spi_block_erase_52,
6369 }, {
6370 .eraseblocks = { {128 * 1024, 1} },
6371 .block_erase = spi_block_erase_60,
6372 },
6373 },
6374 .unlock = spi_disable_blockprotect,
6375 .write = spi_chip_write_1,
6376 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006377 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006378 },
6379
6380 {
6381 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006382 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006383 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006385 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006386 .total_size = 2048,
6387 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006388 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006389 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006390 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006391 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006392 .block_erasers =
6393 {
6394 {
6395 .eraseblocks = { {4 * 1024, 512} },
6396 .block_erase = spi_block_erase_20,
6397 }, {
6398 .eraseblocks = { {32 * 1024, 64} },
6399 .block_erase = spi_block_erase_52,
6400 }, {
6401 .eraseblocks = { {64 * 1024, 32} },
6402 .block_erase = spi_block_erase_d8,
6403 }, {
6404 .eraseblocks = { {2 * 1024 * 1024, 1} },
6405 .block_erase = spi_block_erase_60,
6406 }, {
6407 .eraseblocks = { {2 * 1024 * 1024, 1} },
6408 .block_erase = spi_block_erase_c7,
6409 },
6410 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006411 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006412 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006413 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006414 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006415 },
6416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006417 {
6418 .vendor = "SST",
6419 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006420 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006421 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006422 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006423 .total_size = 4096,
6424 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006425 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006426 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006427 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006428 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006429 .block_erasers =
6430 {
6431 {
6432 .eraseblocks = { {4 * 1024, 1024} },
6433 .block_erase = spi_block_erase_20,
6434 }, {
6435 .eraseblocks = { {32 * 1024, 128} },
6436 .block_erase = spi_block_erase_52,
6437 }, {
6438 .eraseblocks = { {64 * 1024, 64} },
6439 .block_erase = spi_block_erase_d8,
6440 }, {
6441 .eraseblocks = { {4 * 1024 * 1024, 1} },
6442 .block_erase = spi_block_erase_60,
6443 }, {
6444 .eraseblocks = { {4 * 1024 * 1024, 1} },
6445 .block_erase = spi_block_erase_c7,
6446 },
6447 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006448 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006449 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006450 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006451 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006452 },
6453
6454 {
6455 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006456 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006457 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006458 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006459 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006460 .total_size = 8192,
6461 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006462 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006463 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006464 .probe = probe_spi_rdid,
6465 .probe_timing = TIMING_ZERO,
6466 .block_erasers =
6467 {
6468 {
6469 .eraseblocks = { {4 * 1024, 2048} },
6470 .block_erase = spi_block_erase_20,
6471 }, {
6472 .eraseblocks = { {32 * 1024, 256} },
6473 .block_erase = spi_block_erase_52,
6474 }, {
6475 .eraseblocks = { {64 * 1024, 128} },
6476 .block_erase = spi_block_erase_d8,
6477 }, {
6478 .eraseblocks = { {8 * 1024 * 1024, 1} },
6479 .block_erase = spi_block_erase_60,
6480 }, {
6481 .eraseblocks = { {8 * 1024 * 1024, 1} },
6482 .block_erase = spi_block_erase_c7,
6483 },
6484 },
6485 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006486 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006487 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006488 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006489 },
6490
6491 {
6492 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006493 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006494 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006495 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006496 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006497 .total_size = 512,
6498 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006499 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006500 .tested = TEST_OK_PR,
6501 .probe = probe_spi_rems,
6502 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006503 .block_erasers =
6504 {
6505 {
6506 .eraseblocks = { {4 * 1024, 128} },
6507 .block_erase = spi_block_erase_20,
6508 }, {
6509 .eraseblocks = { {32 * 1024, 16} },
6510 .block_erase = spi_block_erase_52,
6511 }, {
6512 .eraseblocks = { {512 * 1024, 1} },
6513 .block_erase = spi_block_erase_60,
6514 },
6515 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006516 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006517 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006518 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006519 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006520 },
6521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006522 {
6523 .vendor = "SST",
6524 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006525 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006526 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006527 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006528 .total_size = 512,
6529 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006530 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006531 .tested = TEST_UNTESTED,
6532 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006533 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006534 .block_erasers =
6535 {
6536 {
6537 .eraseblocks = { {4 * 1024, 128} },
6538 .block_erase = spi_block_erase_20,
6539 }, {
6540 .eraseblocks = { {32 * 1024, 16} },
6541 .block_erase = spi_block_erase_52,
6542 }, {
6543 .eraseblocks = { {64 * 1024, 8} },
6544 .block_erase = spi_block_erase_d8,
6545 }, {
6546 .eraseblocks = { {512 * 1024, 1} },
6547 .block_erase = spi_block_erase_60,
6548 }, {
6549 .eraseblocks = { {512 * 1024, 1} },
6550 .block_erase = spi_block_erase_c7,
6551 },
6552 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006553 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006554 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006555 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006556 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006557 },
6558
6559 {
6560 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006561 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006562 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006563 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006564 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006565 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006566 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006567 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00006568 .tested = TEST_OK_PR,
6569 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006570 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006571 .block_erasers =
6572 {
6573 {
6574 .eraseblocks = { {4 * 1024, 128} },
6575 .block_erase = spi_block_erase_20,
6576 }, {
6577 .eraseblocks = { {32 * 1024, 16} },
6578 .block_erase = spi_block_erase_52,
6579 }, {
6580 .eraseblocks = { {64 * 1024, 8} },
6581 .block_erase = spi_block_erase_d8,
6582 }, {
6583 .eraseblocks = { {512 * 1024, 1} },
6584 .block_erase = spi_block_erase_60,
6585 }, {
6586 .eraseblocks = { {512 * 1024, 1} },
6587 .block_erase = spi_block_erase_c7,
6588 },
6589 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006590 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006591 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006592 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006593 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006594 },
6595
6596 {
6597 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006598 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006599 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006600 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006601 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006602 .total_size = 1024,
6603 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006604 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00006605 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006606 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006607 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006608 .block_erasers =
6609 {
6610 {
6611 .eraseblocks = { {4 * 1024, 256} },
6612 .block_erase = spi_block_erase_20,
6613 }, {
6614 .eraseblocks = { {32 * 1024, 32} },
6615 .block_erase = spi_block_erase_52,
6616 }, {
6617 .eraseblocks = { {64 * 1024, 16} },
6618 .block_erase = spi_block_erase_d8,
6619 }, {
6620 .eraseblocks = { {1024 * 1024, 1} },
6621 .block_erase = spi_block_erase_60,
6622 }, {
6623 .eraseblocks = { {1024 * 1024, 1} },
6624 .block_erase = spi_block_erase_c7,
6625 },
6626 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006627 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006628 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006631 },
6632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006633 {
6634 .vendor = "SST",
6635 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006636 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006637 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006638 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006639 .total_size = 512,
6640 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006641 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006642 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006643 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006644 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006645 .block_erasers =
6646 {
6647 {
6648 .eraseblocks = { {128, 4096} },
6649 .block_erase = erase_sector_28sf040,
6650 }, {
6651 .eraseblocks = { {512 * 1024, 1} },
6652 .block_erase = erase_chip_28sf040,
6653 }
6654 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006655 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006656 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006657 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006658 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006659 },
6660
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006661 {
6662 .vendor = "SST",
6663 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006664 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006665 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006666 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006667 .total_size = 128,
6668 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006669 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006670 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006671 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006672 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006673 .block_erasers =
6674 {
6675 {
6676 .eraseblocks = { {128 * 1024, 1} },
6677 .block_erase = erase_chip_block_jedec,
6678 }
6679 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006680 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006682 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006683 },
6684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006685 {
6686 .vendor = "SST",
6687 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006688 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006689 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006690 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006691 .total_size = 128,
6692 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006693 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006694 .tested = TEST_UNTESTED,
6695 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006696 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006697 .block_erasers =
6698 {
6699 {
6700 .eraseblocks = { {128 * 1024, 1} },
6701 .block_erase = erase_chip_block_jedec,
6702 }
6703 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006704 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006705 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006706 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006707 },
6708
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006709 {
6710 .vendor = "SST",
6711 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006712 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006713 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006714 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006715 .total_size = 256,
6716 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006717 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006718 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006719 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006720 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006721 .block_erasers =
6722 {
6723 {
6724 .eraseblocks = { {256 * 1024, 1} },
6725 .block_erase = erase_chip_block_jedec,
6726 }
6727 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006728 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006729 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006730 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006731 },
6732
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006733 {
6734 .vendor = "SST",
6735 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006736 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006737 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006738 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006739 .total_size = 256,
6740 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006741 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006742 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006743 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006744 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006745 .block_erasers =
6746 {
6747 {
6748 .eraseblocks = { {256 * 1024, 1} },
6749 .block_erase = erase_chip_block_jedec,
6750 }
6751 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006752 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006754 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006755 },
6756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006757 {
6758 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006759 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006760 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006761 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006762 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006763 .total_size = 64,
6764 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006765 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006766 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006767 .probe = probe_jedec,
6768 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006769 .block_erasers =
6770 {
6771 {
6772 .eraseblocks = { {4 * 1024, 16} },
6773 .block_erase = erase_sector_jedec,
6774 }, {
6775 .eraseblocks = { {64 * 1024, 1} },
6776 .block_erase = erase_chip_block_jedec,
6777 }
6778 },
Sean Nelson35727f72010-01-28 23:55:12 +00006779 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006781 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006782 },
6783
6784 {
6785 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006786 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006787 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006788 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006789 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006790 .total_size = 128,
6791 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006792 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006793 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006794 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006795 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006796 .block_erasers =
6797 {
6798 {
6799 .eraseblocks = { {4 * 1024, 32} },
6800 .block_erase = erase_sector_jedec,
6801 }, {
6802 .eraseblocks = { {128 * 1024, 1} },
6803 .block_erase = erase_chip_block_jedec,
6804 }
6805 },
Sean Nelson35727f72010-01-28 23:55:12 +00006806 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006808 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006809 },
6810
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006811 {
6812 .vendor = "SST",
6813 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006814 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006815 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006816 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006817 .total_size = 256,
6818 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006819 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006820 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006821 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006822 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006823 .block_erasers =
6824 {
6825 {
6826 .eraseblocks = { {4 * 1024, 64} },
6827 .block_erase = erase_sector_jedec,
6828 }, {
6829 .eraseblocks = { {256 * 1024, 1} },
6830 .block_erase = erase_chip_block_jedec,
6831 }
6832 },
Sean Nelson35727f72010-01-28 23:55:12 +00006833 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006834 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006835 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006836 },
6837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006838 {
6839 .vendor = "SST",
6840 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006841 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006842 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006843 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006844 .total_size = 512,
6845 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006846 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006847 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006848 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006849 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006850 .block_erasers =
6851 {
6852 {
6853 .eraseblocks = { {4 * 1024, 128} },
6854 .block_erase = erase_sector_jedec,
6855 }, {
6856 .eraseblocks = { {512 * 1024, 1} },
6857 .block_erase = erase_chip_block_jedec,
6858 }
6859 },
Sean Nelson35727f72010-01-28 23:55:12 +00006860 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006862 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006863 },
6864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006865 {
6866 .vendor = "SST",
6867 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006868 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006869 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006870 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006871 .total_size = 64,
6872 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006873 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006874 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006875 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006876 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006877 .block_erasers =
6878 {
6879 {
6880 .eraseblocks = { {4 * 1024, 16} },
6881 .block_erase = erase_sector_jedec,
6882 }, {
6883 .eraseblocks = { {64 * 1024, 1} },
6884 .block_erase = erase_chip_block_jedec,
6885 }
6886 },
Sean Nelson35727f72010-01-28 23:55:12 +00006887 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006889 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006890 },
6891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006892 {
6893 .vendor = "SST",
6894 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006895 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006896 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006897 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006898 .total_size = 128,
6899 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006900 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00006901 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006902 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006903 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006904 .block_erasers =
6905 {
6906 {
6907 .eraseblocks = { {4 * 1024, 32} },
6908 .block_erase = erase_sector_jedec,
6909 }, {
6910 .eraseblocks = { {128 * 1024, 1} },
6911 .block_erase = erase_chip_block_jedec,
6912 }
6913 },
Sean Nelson35727f72010-01-28 23:55:12 +00006914 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006916 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006917 },
6918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006919 {
6920 .vendor = "SST",
6921 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006922 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006923 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006924 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006925 .total_size = 256,
6926 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006927 .feature_bits = FEATURE_EITHER_RESET,
6928 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006929 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006930 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006931 .block_erasers =
6932 {
6933 {
6934 .eraseblocks = { {4 * 1024, 64} },
6935 .block_erase = erase_sector_jedec,
6936 }, {
6937 .eraseblocks = { {256 * 1024, 1} },
6938 .block_erase = erase_chip_block_jedec,
6939 }
6940 },
Sean Nelson35727f72010-01-28 23:55:12 +00006941 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006942 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006943 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006944 },
6945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006946 {
6947 .vendor = "SST",
6948 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006949 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006950 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006951 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006952 .total_size = 512,
6953 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006954 .feature_bits = FEATURE_EITHER_RESET,
6955 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006956 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006957 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006958 .block_erasers =
6959 {
6960 {
6961 .eraseblocks = { {4 * 1024, 128} },
6962 .block_erase = erase_sector_jedec,
6963 }, {
6964 .eraseblocks = { {512 * 1024, 1} },
6965 .block_erase = erase_chip_block_jedec,
6966 }
6967 },
Sean Nelson35727f72010-01-28 23:55:12 +00006968 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006970 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006971 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006973 {
6974 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006975 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006976 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006977 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006978 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006979 .total_size = 1024,
6980 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006981 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006982 .tested = TEST_UNTESTED,
6983 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006984 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006985 .block_erasers =
6986 {
6987 {
6988 .eraseblocks = { {4 * 1024, 256} },
6989 .block_erase = erase_sector_jedec,
6990 }, {
6991 .eraseblocks = { {64 * 1024, 16} },
6992 .block_erase = erase_block_jedec,
6993 }, {
6994 .eraseblocks = { {1024 * 1024, 1} },
6995 .block_erase = erase_chip_block_jedec,
6996 }
6997 },
Sean Nelson35727f72010-01-28 23:55:12 +00006998 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007000 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00007001 },
7002
7003 {
7004 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007006 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007007 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007008 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007009 .total_size = 256,
7010 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007011 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007012 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007013 .probe = probe_jedec,
7014 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007015 .block_erasers =
7016 {
7017 {
7018 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007019 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007020 }, {
7021 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007022 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007023 }, {
7024 .eraseblocks = { {256 * 1024, 1} },
7025 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7026 }
7027 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007028 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007029 .unlock = unlock_sst_fwhub,
7030 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007031 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007032 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007033 },
7034
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007035 {
7036 .vendor = "SST",
7037 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007038 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007040 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007041 .total_size = 384,
7042 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007043 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00007044 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007045 .probe = probe_jedec,
7046 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007047 .block_erasers =
7048 {
7049 {
7050 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007051 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007052 }, {
7053 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007054 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007055 }, {
7056 .eraseblocks = { {384 * 1024, 1} },
7057 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7058 }
7059 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007060 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007061 .unlock = unlock_sst_fwhub,
7062 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007064 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007065 },
7066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007067 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007068 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
7069 * and is only honored for 64k block erase, but not 4k sector erase.
7070 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007071 .vendor = "SST",
7072 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007073 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007074 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007075 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007076 .total_size = 512,
7077 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007078 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007079 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007080 .probe = probe_jedec,
7081 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007082 .block_erasers =
7083 {
7084 {
7085 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007086 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007087 }, {
7088 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007089 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007090 }, {
7091 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007092 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007093 },
7094 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007095 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007096 .unlock = unlock_sst_fwhub,
7097 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007099 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007100 },
7101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007102 {
7103 .vendor = "SST",
7104 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007105 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007106 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007107 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007108 .total_size = 512,
7109 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007110 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007111 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007112 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007113 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007114 .block_erasers =
7115 {
7116 {
7117 .eraseblocks = { {4 * 1024, 128} },
7118 .block_erase = erase_sector_49lfxxxc,
7119 }, {
7120 .eraseblocks = {
7121 {64 * 1024, 7},
7122 {32 * 1024, 1},
7123 {8 * 1024, 2},
7124 {16 * 1024, 1},
7125 },
Sean Nelson69e58112010-03-23 17:10:28 +00007126 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007127 }
7128 },
Sean Nelson69e58112010-03-23 17:10:28 +00007129 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007130 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007132 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007133 },
7134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007135 {
7136 .vendor = "SST",
7137 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007138 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007139 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007140 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007141 .total_size = 1024,
7142 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007143 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007144 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007145 .probe = probe_jedec,
7146 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007147 .block_erasers =
7148 {
7149 {
7150 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007151 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007152 }, {
7153 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007154 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007155 }, {
7156 .eraseblocks = { {1024 * 1024, 1} },
7157 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7158 }
7159 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007160 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007161 .unlock = unlock_sst_fwhub,
7162 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007164 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007165 },
7166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007167 {
7168 .vendor = "SST",
7169 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007170 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007171 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007172 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007173 .total_size = 1024,
7174 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007175 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007176 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007177 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007178 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007179 .block_erasers =
7180 {
7181 {
7182 .eraseblocks = { {4 * 1024, 256} },
7183 .block_erase = erase_sector_49lfxxxc,
7184 }, {
7185 .eraseblocks = {
7186 {64 * 1024, 15},
7187 {32 * 1024, 1},
7188 {8 * 1024, 2},
7189 {16 * 1024, 1},
7190 },
Sean Nelson69e58112010-03-23 17:10:28 +00007191 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007192 }
7193 },
Sean Nelson69e58112010-03-23 17:10:28 +00007194 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007195 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007197 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007198 },
7199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007200 {
7201 .vendor = "SST",
7202 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007203 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007204 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007205 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007206 .total_size = 2048,
7207 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007208 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007209 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007210 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007211 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007212 .block_erasers =
7213 {
7214 {
7215 .eraseblocks = { {4 * 1024, 512} },
7216 .block_erase = erase_sector_49lfxxxc,
7217 }, {
7218 .eraseblocks = {
7219 {64 * 1024, 31},
7220 {32 * 1024, 1},
7221 {8 * 1024, 2},
7222 {16 * 1024, 1},
7223 },
Sean Nelson69e58112010-03-23 17:10:28 +00007224 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007225 }
7226 },
Sean Nelson69e58112010-03-23 17:10:28 +00007227 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007228 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007230 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007231 },
7232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007233 {
7234 .vendor = "SST",
7235 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007236 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007237 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007238 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007239 .total_size = 256,
7240 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007241 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007242 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007243 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007244 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007245 .block_erasers =
7246 {
7247 {
7248 .eraseblocks = { {4 * 1024, 64} },
7249 .block_erase = erase_sector_jedec,
7250 }, {
7251 .eraseblocks = { {16 * 1024, 16} },
7252 .block_erase = erase_block_jedec,
7253 }, {
7254 .eraseblocks = { {256 * 1024, 1} },
7255 .block_erase = NULL,
7256 }
7257 },
Sean Nelson35727f72010-01-28 23:55:12 +00007258 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007259 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007260 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007261 },
7262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007263 {
7264 .vendor = "SST",
7265 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007266 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007267 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007268 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007269 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007270 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007271 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007272 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007273 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007274 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007275 .block_erasers =
7276 {
7277 {
7278 .eraseblocks = { {4 * 1024, 64} },
7279 .block_erase = erase_sector_jedec,
7280 }, {
7281 .eraseblocks = { {16 * 1024, 16} },
7282 .block_erase = erase_block_jedec,
7283 }, {
7284 .eraseblocks = { {256 * 1024, 1} },
7285 .block_erase = NULL,
7286 }
7287 },
Sean Nelson35727f72010-01-28 23:55:12 +00007288 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007290 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007291 },
7292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007293 {
7294 .vendor = "SST",
7295 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007296 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007297 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007298 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007299 .total_size = 512,
7300 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007301 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007302 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007303 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007304 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007305 .block_erasers =
7306 {
7307 {
7308 .eraseblocks = { {4 * 1024, 128} },
7309 .block_erase = erase_sector_jedec,
7310 }, {
7311 .eraseblocks = { {64 * 1024, 8} },
7312 .block_erase = erase_block_jedec,
7313 }, {
7314 .eraseblocks = { {512 * 1024, 1} },
7315 .block_erase = NULL,
7316 }
7317 },
Sean Nelson35727f72010-01-28 23:55:12 +00007318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007320 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007321 },
7322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007323 {
7324 .vendor = "SST",
7325 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007326 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007327 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007328 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007329 .total_size = 512,
7330 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007331 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007332 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007333 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007334 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007335 .block_erasers =
7336 {
7337 {
7338 .eraseblocks = { {4 * 1024, 128} },
7339 .block_erase = erase_sector_jedec,
7340 }, {
7341 .eraseblocks = { {64 * 1024, 8} },
7342 .block_erase = erase_block_jedec,
7343 }, {
7344 .eraseblocks = { {512 * 1024, 1} },
7345 .block_erase = NULL,
7346 }
7347 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007348 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007349 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007350 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007351 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007352 },
7353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007354 {
7355 .vendor = "SST",
7356 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007357 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007358 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007359 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007360 .total_size = 1024,
7361 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007362 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007363 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007364 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007365 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007366 .block_erasers =
7367 {
7368 {
7369 .eraseblocks = { {4 * 1024, 256} },
7370 .block_erase = erase_sector_jedec,
7371 }, {
7372 .eraseblocks = { {64 * 1024, 16} },
7373 .block_erase = erase_block_jedec,
7374 }, {
7375 .eraseblocks = { {1024 * 1024, 1} },
7376 .block_erase = NULL,
7377 }
7378 },
Sean Nelson35727f72010-01-28 23:55:12 +00007379 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007380 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007381 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007382 },
7383
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007384 {
7385 .vendor = "SST",
7386 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007387 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007388 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007389 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007390 .total_size = 2048,
7391 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007392 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007393 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007394 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007395 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007396 .block_erasers =
7397 {
7398 {
7399 .eraseblocks = { {4 * 1024, 512} },
7400 .block_erase = erase_sector_49lfxxxc,
7401 }, {
7402 .eraseblocks = {
7403 {64 * 1024, 31},
7404 {32 * 1024, 1},
7405 {8 * 1024, 2},
7406 {16 * 1024, 1},
7407 },
Sean Nelson69e58112010-03-23 17:10:28 +00007408 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007409 }
7410 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007411 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007412 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007414 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007415 },
7416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007417 {
7418 .vendor = "ST",
7419 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007420 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007421 .manufacture_id = ST_ID,
7422 .model_id = ST_M25P05A,
7423 .total_size = 64,
7424 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007425 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007426 .tested = TEST_UNTESTED,
7427 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007428 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007429 .block_erasers =
7430 {
7431 {
7432 .eraseblocks = { {32 * 1024, 2} },
7433 .block_erase = spi_block_erase_d8,
7434 }, {
7435 .eraseblocks = { {64 * 1024, 1} },
7436 .block_erase = spi_block_erase_c7,
7437 }
7438 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007439 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007440 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007441 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007442 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007443 },
7444
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007445 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7446 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007447 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007448 * only is successful if RDID does not work.
7449 */
7450 {
7451 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007452 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007453 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007454 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007455 .model_id = ST_M25P05_RES,
7456 .total_size = 64,
7457 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007458 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007459 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007460 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007461 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = { {32 * 1024, 2} },
7466 .block_erase = spi_block_erase_d8,
7467 }, {
7468 .eraseblocks = { {64 * 1024, 1} },
7469 .block_erase = spi_block_erase_c7,
7470 }
7471 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007472 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007473 .write = spi_chip_write_1, /* 128 */
7474 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007475 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007476 },
7477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007478 {
7479 .vendor = "ST",
7480 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007481 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007482 .manufacture_id = ST_ID,
7483 .model_id = ST_M25P10A,
7484 .total_size = 128,
7485 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007486 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007487 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007488 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007489 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007490 .block_erasers =
7491 {
7492 {
7493 .eraseblocks = { {32 * 1024, 4} },
7494 .block_erase = spi_block_erase_d8,
7495 }, {
7496 .eraseblocks = { {128 * 1024, 1} },
7497 .block_erase = spi_block_erase_c7,
7498 }
7499 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007500 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007501 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007502 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007503 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007504 },
7505
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007506 /* The ST M25P10 has the same problem as the M25P05. */
7507 {
7508 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007509 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007510 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007511 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007512 .model_id = ST_M25P10_RES,
7513 .total_size = 128,
7514 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007515 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007516 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007517 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007518 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007519 .block_erasers =
7520 {
7521 {
7522 .eraseblocks = { {32 * 1024, 4} },
7523 .block_erase = spi_block_erase_d8,
7524 }, {
7525 .eraseblocks = { {128 * 1024, 1} },
7526 .block_erase = spi_block_erase_c7,
7527 }
7528 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007530 .write = spi_chip_write_1, /* 128 */
7531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007532 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007533 },
7534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007535 {
7536 .vendor = "ST",
7537 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007538 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007539 .manufacture_id = ST_ID,
7540 .model_id = ST_M25P20,
7541 .total_size = 256,
7542 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007543 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007544 .tested = TEST_UNTESTED,
7545 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007546 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007547 .block_erasers =
7548 {
7549 {
7550 .eraseblocks = { {64 * 1024, 4} },
7551 .block_erase = spi_block_erase_d8,
7552 }, {
7553 .eraseblocks = { {256 * 1024, 1} },
7554 .block_erase = spi_block_erase_c7,
7555 }
7556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007557 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007558 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007560 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007561 },
7562
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007563 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007564 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007565 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007567 .manufacture_id = ST_ID,
7568 .model_id = ST_M25P40,
7569 .total_size = 512,
7570 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007571 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007574 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007575 .block_erasers =
7576 {
7577 {
7578 .eraseblocks = { {64 * 1024, 8} },
7579 .block_erase = spi_block_erase_d8,
7580 }, {
7581 .eraseblocks = { {512 * 1024, 1} },
7582 .block_erase = spi_block_erase_c7,
7583 }
7584 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007585 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007589 },
7590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007591 {
7592 .vendor = "ST",
7593 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007594 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007595 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 .model_id = ST_M25P40_RES,
7597 .total_size = 512,
7598 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007601 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007602 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007603 .block_erasers =
7604 {
7605 {
7606 .eraseblocks = { {64 * 1024, 8} },
7607 .block_erase = spi_block_erase_d8,
7608 }, {
7609 .eraseblocks = { {512 * 1024, 1} },
7610 .block_erase = spi_block_erase_c7,
7611 }
7612 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007613 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007614 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007615 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007616 },
7617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007618 {
7619 .vendor = "ST",
7620 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007621 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007622 .manufacture_id = ST_ID,
7623 .model_id = ST_M25P80,
7624 .total_size = 1024,
7625 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007626 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007627 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007628 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007629 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007630 .block_erasers =
7631 {
7632 {
7633 .eraseblocks = { {64 * 1024, 16} },
7634 .block_erase = spi_block_erase_d8,
7635 }, {
7636 .eraseblocks = { {1024 * 1024, 1} },
7637 .block_erase = spi_block_erase_c7,
7638 }
7639 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007640 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007641 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007642 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007643 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007644 },
7645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007646 {
7647 .vendor = "ST",
7648 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007649 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007650 .manufacture_id = ST_ID,
7651 .model_id = ST_M25P16,
7652 .total_size = 2048,
7653 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007654 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007655 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007656 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007657 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007658 .block_erasers =
7659 {
7660 {
7661 .eraseblocks = { {64 * 1024, 32} },
7662 .block_erase = spi_block_erase_d8,
7663 }, {
7664 .eraseblocks = { {2 * 1024 * 1024, 1} },
7665 .block_erase = spi_block_erase_c7,
7666 }
7667 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007668 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007669 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007670 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007671 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007672 },
7673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007674 {
7675 .vendor = "ST",
7676 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007677 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007678 .manufacture_id = ST_ID,
7679 .model_id = ST_M25P32,
7680 .total_size = 4096,
7681 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007682 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007683 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007684 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007685 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007686 .block_erasers =
7687 {
7688 {
7689 .eraseblocks = { {64 * 1024, 64} },
7690 .block_erase = spi_block_erase_d8,
7691 }, {
7692 .eraseblocks = { {4 * 1024 * 1024, 1} },
7693 .block_erase = spi_block_erase_c7,
7694 }
7695 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007696 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007697 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007698 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007699 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007700 },
7701
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007702 {
7703 .vendor = "ST",
7704 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007705 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007706 .manufacture_id = ST_ID,
7707 .model_id = ST_M25P64,
7708 .total_size = 8192,
7709 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007710 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007711 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007712 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007713 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007714 .block_erasers =
7715 {
7716 {
7717 .eraseblocks = { {64 * 1024, 128} },
7718 .block_erase = spi_block_erase_d8,
7719 }, {
7720 .eraseblocks = { {8 * 1024 * 1024, 1} },
7721 .block_erase = spi_block_erase_c7,
7722 }
7723 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007724 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007725 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007726 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007728 },
7729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007730 {
7731 .vendor = "ST",
7732 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007734 .manufacture_id = ST_ID,
7735 .model_id = ST_M25P128,
7736 .total_size = 16384,
7737 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007738 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007739 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007740 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007741 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007742 .block_erasers =
7743 {
7744 {
7745 .eraseblocks = { {256 * 1024, 64} },
7746 .block_erase = spi_block_erase_d8,
7747 }, {
7748 .eraseblocks = { {16 * 1024 * 1024, 1} },
7749 .block_erase = spi_block_erase_c7,
7750 }
7751 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007752 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007753 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007754 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007755 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007756 },
7757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007758 {
7759 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007760 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007761 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007762 .manufacture_id = ST_ID,
7763 .model_id = ST_M25PX16,
7764 .total_size = 2048,
7765 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007766 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00007767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007768 .tested = TEST_OK_PREW,
7769 .probe = probe_spi_rdid,
7770 .probe_timing = TIMING_ZERO,
7771 .block_erasers =
7772 {
7773 {
7774 .eraseblocks = { { 4 * 1024, 512 } },
7775 .block_erase = spi_block_erase_20,
7776 }, {
7777 .eraseblocks = { {64 * 1024, 32} },
7778 .block_erase = spi_block_erase_d8,
7779 }, {
7780 .eraseblocks = { {2 * 1024 * 1024, 1} },
7781 .block_erase = spi_block_erase_c7,
7782 }
7783 },
7784 .unlock = spi_disable_blockprotect,
7785 .write = spi_chip_write_256,
7786 .read = spi_chip_read,
7787 },
7788
7789 {
7790 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007791 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007792 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007793 .manufacture_id = ST_ID,
7794 .model_id = ST_M25PX32,
7795 .total_size = 4096,
7796 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007797 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007798 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007799 .probe = probe_spi_rdid,
7800 .probe_timing = TIMING_ZERO,
7801 .block_erasers =
7802 {
7803 {
7804 .eraseblocks = { { 4 * 1024, 1024 } },
7805 .block_erase = spi_block_erase_20,
7806 }, {
7807 .eraseblocks = { {64 * 1024, 64} },
7808 .block_erase = spi_block_erase_d8,
7809 }, {
7810 .eraseblocks = { {4 * 1024 * 1024, 1} },
7811 .block_erase = spi_block_erase_c7,
7812 }
7813 },
7814 .unlock = spi_disable_blockprotect,
7815 .write = spi_chip_write_256,
7816 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007817 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007818 },
7819
7820 {
7821 .vendor = "ST",
7822 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007823 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007824 .manufacture_id = ST_ID,
7825 .model_id = ST_M25PX64,
7826 .total_size = 8192,
7827 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007828 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007829 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007830 .probe = probe_spi_rdid,
7831 .probe_timing = TIMING_ZERO,
7832 .block_erasers =
7833 {
7834 {
7835 .eraseblocks = { { 4 * 1024, 2048 } },
7836 .block_erase = spi_block_erase_20,
7837 }, {
7838 .eraseblocks = { {64 * 1024, 128} },
7839 .block_erase = spi_block_erase_d8,
7840 }, {
7841 .eraseblocks = { {8 * 1024 * 1024, 1} },
7842 .block_erase = spi_block_erase_c7,
7843 }
7844 },
7845 .unlock = spi_disable_blockprotect,
7846 .write = spi_chip_write_256,
7847 .read = spi_chip_read,
7848 },
7849
7850 {
7851 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007852 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007853 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007854 .manufacture_id = ST_ID,
7855 .model_id = ST_M29F002B,
7856 .total_size = 256,
7857 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007858 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007859 .tested = TEST_UNTESTED,
7860 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007861 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007862 .block_erasers =
7863 {
7864 {
7865 .eraseblocks = {
7866 {16 * 1024, 1},
7867 {8 * 1024, 2},
7868 {32 * 1024, 1},
7869 {64 * 1024, 3},
7870 },
7871 .block_erase = erase_sector_jedec,
7872 }, {
7873 .eraseblocks = { {256 * 1024, 1} },
7874 .block_erase = erase_chip_block_jedec,
7875 }
7876 },
Sean Nelson35727f72010-01-28 23:55:12 +00007877 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007878 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007879 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007880 },
7881
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007882 {
7883 .vendor = "ST",
7884 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007885 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007886 .manufacture_id = ST_ID,
7887 .model_id = ST_M29F002T,
7888 .total_size = 256,
7889 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007890 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7891 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007892 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007893 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007894 .block_erasers =
7895 {
7896 {
7897 .eraseblocks = {
7898 {64 * 1024, 3},
7899 {32 * 1024, 1},
7900 {8 * 1024, 2},
7901 {16 * 1024, 1},
7902 },
7903 .block_erase = erase_sector_jedec,
7904 }, {
7905 .eraseblocks = { {256 * 1024, 1} },
7906 .block_erase = erase_chip_block_jedec,
7907 }
7908 },
Sean Nelson35727f72010-01-28 23:55:12 +00007909 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007910 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007911 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007912 },
7913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007914 {
7915 .vendor = "ST",
7916 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007917 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007918 .manufacture_id = ST_ID,
7919 .model_id = ST_M29F040B,
7920 .total_size = 512,
7921 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007922 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7923 .tested = TEST_UNTESTED,
7924 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007925 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007926 .block_erasers =
7927 {
7928 {
7929 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007930 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007931 }, {
7932 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007933 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007934 }
7935 },
Sean Nelson35727f72010-01-28 23:55:12 +00007936 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007937 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007938 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007939 },
7940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007941 {
Sean Nelson35727f72010-01-28 23:55:12 +00007942 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007943 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007944 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007945 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007946 .manufacture_id = ST_ID,
7947 .model_id = ST_M29F400BB,
7948 .total_size = 512,
7949 .page_size = 64 * 1024,
7950 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007951 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007952 .probe = probe_m29f400bt,
7953 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7954 .block_erasers =
7955 {
7956 {
7957 .eraseblocks = {
7958 {16 * 1024, 1},
7959 {8 * 1024, 2},
7960 {32 * 1024, 1},
7961 {64 * 1024, 7},
7962 },
7963 .block_erase = block_erase_m29f400bt,
7964 }, {
7965 .eraseblocks = { {512 * 1024, 1} },
7966 .block_erase = block_erase_chip_m29f400bt,
7967 }
7968 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007969 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007970 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007971 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007972 },
7973 {
7974 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7975 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007976 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007977 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007978 .manufacture_id = ST_ID,
7979 .model_id = ST_M29F400BT,
7980 .total_size = 512,
7981 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007982 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007983 .tested = TEST_UNTESTED,
7984 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007985 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007986 .block_erasers =
7987 {
7988 {
7989 .eraseblocks = {
7990 {64 * 1024, 7},
7991 {32 * 1024, 1},
7992 {8 * 1024, 2},
7993 {16 * 1024, 1},
7994 },
7995 .block_erase = block_erase_m29f400bt,
7996 }, {
7997 .eraseblocks = { {512 * 1024, 1} },
7998 .block_erase = block_erase_chip_m29f400bt,
7999 }
8000 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008001 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008003 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008004 },
8005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008006 {
8007 .vendor = "ST",
8008 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008009 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008010 .manufacture_id = ST_ID,
8011 .model_id = ST_M29W010B,
8012 .total_size = 128,
8013 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008014 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008015 .tested = TEST_UNTESTED,
8016 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008017 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008018 .block_erasers =
8019 {
8020 {
8021 .eraseblocks = { {16 * 1024, 8}, },
8022 .block_erase = erase_sector_jedec,
8023 }, {
8024 .eraseblocks = { {128 * 1024, 1} },
8025 .block_erase = erase_chip_block_jedec,
8026 }
8027 },
Sean Nelson35727f72010-01-28 23:55:12 +00008028 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008030 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008031 },
8032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008033 {
8034 .vendor = "ST",
8035 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008037 .manufacture_id = ST_ID,
8038 .model_id = ST_M29W040B,
8039 .total_size = 512,
8040 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008041 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008042 .tested = TEST_UNTESTED,
8043 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008044 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008045 .block_erasers =
8046 {
8047 {
8048 .eraseblocks = { {64 * 1024, 8}, },
8049 .block_erase = erase_sector_jedec,
8050 }, {
8051 .eraseblocks = { {512 * 1024, 1} },
8052 .block_erase = erase_chip_block_jedec,
8053 }
8054 },
Sean Nelson35727f72010-01-28 23:55:12 +00008055 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008057 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008058 },
8059
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008060 {
8061 .vendor = "ST",
8062 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008063 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008064 .manufacture_id = ST_ID,
8065 .model_id = ST_M29W512B,
8066 .total_size = 64,
8067 .page_size = 64 * 1024,
8068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008069 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008070 .probe = probe_jedec,
8071 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008072 .block_erasers =
8073 {
8074 {
8075 .eraseblocks = { {64 * 1024, 1} },
8076 .block_erase = erase_chip_block_jedec,
8077 }
8078 },
8079 .write = write_jedec_1,
8080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008081 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008082 },
8083
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008084 {
8085 .vendor = "ST",
8086 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008087 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008088 .manufacture_id = ST_ID,
8089 .model_id = ST_M50FLW040A,
8090 .total_size = 512,
8091 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008092 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008093 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008094 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008095 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008096 .block_erasers =
8097 {
8098 {
Sean Nelson329bde72010-01-19 16:39:19 +00008099 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008100 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008101 {64 * 1024, 5}, /* block */
8102 {4 * 1024, 16}, /* sector */
8103 {4 * 1024, 16}, /* sector */
8104 },
8105 .block_erase = NULL,
8106 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008107 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008108 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008109 }
8110 },
Sean Nelson28accc22010-03-19 18:47:06 +00008111 .unlock = unlock_stm50flw0x0x,
8112 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008113 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008114 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008115 },
8116
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008117 {
8118 .vendor = "ST",
8119 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008120 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008121 .manufacture_id = ST_ID,
8122 .model_id = ST_M50FLW040B,
8123 .total_size = 512,
8124 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008125 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008126 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008127 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008128 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008129 .block_erasers =
8130 {
8131 {
Sean Nelson329bde72010-01-19 16:39:19 +00008132 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008133 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008134 {4 * 1024, 16}, /* sector */
8135 {64 * 1024, 5}, /* block */
8136 {4 * 1024, 16}, /* sector */
8137 },
8138 .block_erase = NULL,
8139 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008140 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008141 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008142 }
8143 },
Sean Nelson28accc22010-03-19 18:47:06 +00008144 .unlock = unlock_stm50flw0x0x,
8145 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008147 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008148 },
8149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008150 {
8151 .vendor = "ST",
8152 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008153 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008154 .manufacture_id = ST_ID,
8155 .model_id = ST_M50FLW080A,
8156 .total_size = 1024,
8157 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008158 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008159 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00008160 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008161 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008162 .block_erasers =
8163 {
8164 {
Sean Nelson329bde72010-01-19 16:39:19 +00008165 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008166 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008167 {64 * 1024, 13}, /* block */
8168 {4 * 1024, 16}, /* sector */
8169 {4 * 1024, 16}, /* sector */
8170 },
8171 .block_erase = NULL,
8172 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008173 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008174 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008175 }
8176 },
Sean Nelson28accc22010-03-19 18:47:06 +00008177 .unlock = unlock_stm50flw0x0x,
8178 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008179 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008180 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008181 },
8182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008183 {
8184 .vendor = "ST",
8185 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008186 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008187 .manufacture_id = ST_ID,
8188 .model_id = ST_M50FLW080B,
8189 .total_size = 1024,
8190 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008191 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008192 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008193 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008194 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008195 .block_erasers =
8196 {
8197 {
Sean Nelson329bde72010-01-19 16:39:19 +00008198 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008199 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008200 {4 * 1024, 16}, /* sector */
8201 {64 * 1024, 13}, /* block */
8202 {4 * 1024, 16}, /* sector */
8203 },
8204 .block_erase = NULL,
8205 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008206 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008207 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008208 }
8209 },
Sean Nelson28accc22010-03-19 18:47:06 +00008210 .unlock = unlock_stm50flw0x0x,
8211 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008213 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008214 },
8215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008216 {
8217 .vendor = "ST",
8218 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008219 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008220 .manufacture_id = ST_ID,
8221 .model_id = ST_M50FW002,
8222 .total_size = 256,
8223 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008224 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008225 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008226 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008227 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008228 .block_erasers =
8229 {
8230 {
8231 .eraseblocks = {
8232 {64 * 1024, 3},
8233 {32 * 1024, 1},
8234 {8 * 1024, 2},
8235 {16 * 1024, 1},
8236 },
Sean Nelson28accc22010-03-19 18:47:06 +00008237 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008238 }
8239 },
Sean Nelson28accc22010-03-19 18:47:06 +00008240 .unlock = unlock_stm50flw0x0x,
8241 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008242 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008243 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008244 },
8245
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008246 {
8247 .vendor = "ST",
8248 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008249 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008250 .manufacture_id = ST_ID,
8251 .model_id = ST_M50FW016,
8252 .total_size = 2048,
8253 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008254 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008255 .tested = TEST_UNTESTED,
8256 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008257 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008258 .block_erasers =
8259 {
8260 {
8261 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008262 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008263 }
8264 },
Sean Nelson28accc22010-03-19 18:47:06 +00008265 .unlock = unlock_stm50flw0x0x,
8266 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008268 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008269 },
8270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008271 {
8272 .vendor = "ST",
8273 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008274 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008275 .manufacture_id = ST_ID,
8276 .model_id = ST_M50FW040,
8277 .total_size = 512,
8278 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008279 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008280 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008281 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008282 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008283 .block_erasers =
8284 {
8285 {
8286 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008287 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008288 }
8289 },
Sean Nelson28accc22010-03-19 18:47:06 +00008290 .unlock = unlock_stm50flw0x0x,
8291 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008293 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008294 },
8295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008296 {
8297 .vendor = "ST",
8298 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008299 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008300 .manufacture_id = ST_ID,
8301 .model_id = ST_M50FW080,
8302 .total_size = 1024,
8303 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008304 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008305 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008306 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008307 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008308 .block_erasers =
8309 {
8310 {
8311 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008312 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008313 }
8314 },
Sean Nelson28accc22010-03-19 18:47:06 +00008315 .unlock = unlock_stm50flw0x0x,
8316 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008317 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008318 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008319 },
8320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008321 {
8322 .vendor = "ST",
8323 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008324 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008325 .manufacture_id = ST_ID,
8326 .model_id = ST_M50LPW116,
8327 .total_size = 2048,
8328 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008329 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008330 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008331 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008332 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008333 .block_erasers =
8334 {
8335 {
8336 .eraseblocks = {
8337 {4 * 1024, 16},
8338 {64 * 1024, 30},
8339 {32 * 1024, 1},
8340 {8 * 1024, 2},
8341 {16 * 1024, 1},
8342 },
Sean Nelson28accc22010-03-19 18:47:06 +00008343 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008344 }
8345 },
Sean Nelson28accc22010-03-19 18:47:06 +00008346 .unlock = unlock_stm50flw0x0x,
8347 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008349 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008350 },
8351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008352 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008353 .vendor = "SyncMOS/MoselVitelic",
8354 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008355 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008356 .manufacture_id = SYNCMOS_MVC_ID,
8357 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008358 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008359 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008360 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008361 .tested = TEST_UNTESTED,
8362 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008363 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008364 .block_erasers =
8365 {
8366 {
8367 .eraseblocks = { {512, 256} },
8368 .block_erase = erase_sector_jedec,
8369 }, {
8370 .eraseblocks = { {128 * 1024, 1} },
8371 .block_erase = erase_chip_block_jedec,
8372 },
8373 },
Sean Nelson35727f72010-01-28 23:55:12 +00008374 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008376 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008377 },
8378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008379 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008380 .vendor = "SyncMOS/MoselVitelic",
8381 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008382 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008383 .manufacture_id = SYNCMOS_MVC_ID,
8384 .model_id = SM_MVC_29C51001T,
8385 .total_size = 128,
8386 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008387 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008388 .tested = TEST_UNTESTED,
8389 .probe = probe_jedec,
8390 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8391 .block_erasers =
8392 {
8393 {
8394 .eraseblocks = { {512, 256} },
8395 .block_erase = erase_sector_jedec,
8396 }, {
8397 .eraseblocks = { {128 * 1024, 1} },
8398 .block_erase = erase_chip_block_jedec,
8399 },
8400 },
8401 .write = write_jedec_1,
8402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008403 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008404 },
8405
8406 {
8407 .vendor = "SyncMOS/MoselVitelic",
8408 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008409 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008410 .manufacture_id = SYNCMOS_MVC_ID,
8411 .model_id = SM_MVC_29C51002B,
8412 .total_size = 256,
8413 .page_size = 512,
8414 .feature_bits = FEATURE_EITHER_RESET,
8415 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008416 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008417 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008418 .block_erasers =
8419 {
8420 {
8421 .eraseblocks = { {512, 512} },
8422 .block_erase = erase_sector_jedec,
8423 }, {
8424 .eraseblocks = { {256 * 1024, 1} },
8425 .block_erase = erase_chip_block_jedec,
8426 },
8427 },
Sean Nelson35727f72010-01-28 23:55:12 +00008428 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008429 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008430 },
8431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008432 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008433 .vendor = "SyncMOS/MoselVitelic",
8434 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008435 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008436 .manufacture_id = SYNCMOS_MVC_ID,
8437 .model_id = SM_MVC_29C51002T,
8438 .total_size = 256,
8439 .page_size = 512,
8440 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008441 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008442 .probe = probe_jedec,
8443 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8444 .block_erasers =
8445 {
8446 {
8447 .eraseblocks = { {512, 512} },
8448 .block_erase = erase_sector_jedec,
8449 }, {
8450 .eraseblocks = { {256 * 1024, 1} },
8451 .block_erase = erase_chip_block_jedec,
8452 },
8453 },
8454 .write = write_jedec_1,
8455 .read = read_memmapped,
8456 },
8457
8458 {
8459 .vendor = "SyncMOS/MoselVitelic",
8460 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008461 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008462 .manufacture_id = SYNCMOS_MVC_ID,
8463 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008464 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008465 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008466 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008467 .tested = TEST_UNTESTED,
8468 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008469 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008470 .block_erasers =
8471 {
8472 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008473 .eraseblocks = { {1024, 512} },
8474 .block_erase = erase_sector_jedec,
8475 }, {
8476 .eraseblocks = { {512 * 1024, 1} },
8477 .block_erase = erase_chip_block_jedec,
8478 },
8479 },
8480 .write = write_jedec_1,
8481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008482 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008483 },
8484
8485 {
8486 .vendor = "SyncMOS/MoselVitelic",
8487 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008488 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008489 .manufacture_id = SYNCMOS_MVC_ID,
8490 .model_id = SM_MVC_29C51004T,
8491 .total_size = 512,
8492 .page_size = 1024,
8493 .feature_bits = FEATURE_EITHER_RESET,
8494 .tested = TEST_UNTESTED,
8495 .probe = probe_jedec,
8496 .probe_timing = TIMING_ZERO,
8497 .block_erasers =
8498 {
8499 {
8500 .eraseblocks = { {1024, 512} },
8501 .block_erase = erase_sector_jedec,
8502 }, {
8503 .eraseblocks = { {512 * 1024, 1} },
8504 .block_erase = erase_chip_block_jedec,
8505 },
8506 },
8507 .write = write_jedec_1,
8508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008509 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008510 },
8511
8512 {
8513 .vendor = "SyncMOS/MoselVitelic",
8514 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008515 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008516 .manufacture_id = SYNCMOS_MVC_ID,
8517 .model_id = SM_MVC_29C31004B,
8518 .total_size = 512,
8519 .page_size = 1024,
8520 .feature_bits = FEATURE_EITHER_RESET,
8521 .tested = TEST_UNTESTED,
8522 .probe = probe_jedec,
8523 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8524 .block_erasers =
8525 {
8526 {
8527 .eraseblocks = { {1024, 512} },
8528 .block_erase = erase_sector_jedec,
8529 }, {
8530 .eraseblocks = { {512 * 1024, 1} },
8531 .block_erase = erase_chip_block_jedec,
8532 },
8533 },
8534 .write = write_jedec_1,
8535 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008536 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008537 },
8538
8539 {
8540 .vendor = "SyncMOS/MoselVitelic",
8541 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008542 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008543 .manufacture_id = SYNCMOS_MVC_ID,
8544 .model_id = SM_MVC_29C31004T,
8545 .total_size = 512,
8546 .page_size = 1024,
8547 .feature_bits = FEATURE_EITHER_RESET,
8548 .tested = TEST_UNTESTED,
8549 .probe = probe_jedec,
8550 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8551 .block_erasers =
8552 {
8553 {
8554 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008555 .block_erase = erase_sector_jedec,
8556 }, {
8557 .eraseblocks = { {512 * 1024, 1} },
8558 .block_erase = erase_chip_block_jedec,
8559 },
8560 },
Sean Nelson35727f72010-01-28 23:55:12 +00008561 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008563 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008564 },
8565
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008566 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008567 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008568 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008569 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008570 .manufacture_id = TI_OLD_ID,
8571 .model_id = TI_TMS29F002RB,
8572 .total_size = 256,
8573 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008575 .tested = TEST_UNTESTED,
8576 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008577 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008578 .block_erasers =
8579 {
8580 {
8581 .eraseblocks = {
8582 {16 * 1024, 1},
8583 {8 * 1024, 2},
8584 {32 * 1024, 1},
8585 {64 * 1024, 3},
8586 },
8587 .block_erase = erase_sector_jedec,
8588 }, {
8589 .eraseblocks = { {256 * 1024, 1} },
8590 .block_erase = erase_chip_block_jedec,
8591 },
8592 },
Sean Nelson35727f72010-01-28 23:55:12 +00008593 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008595 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008596 },
8597
8598 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008599 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008600 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008601 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008602 .manufacture_id = TI_OLD_ID,
8603 .model_id = TI_TMS29F002RT,
8604 .total_size = 256,
8605 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008606 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008607 .tested = TEST_UNTESTED,
8608 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008609 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008610 .block_erasers =
8611 {
8612 {
8613 .eraseblocks = {
8614 {64 * 1024, 3},
8615 {32 * 1024, 1},
8616 {8 * 1024, 2},
8617 {16 * 1024, 1},
8618 },
8619 .block_erase = erase_sector_jedec,
8620 }, {
8621 .eraseblocks = { {256 * 1024, 1} },
8622 .block_erase = erase_chip_block_jedec,
8623 },
8624 },
Sean Nelson35727f72010-01-28 23:55:12 +00008625 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008626 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008627 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008628 },
8629
8630 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008631 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008632 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008633 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008634 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008635 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008636 .total_size = 1024,
8637 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008638 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008640 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008641 .probe = probe_spi_rdid,
8642 .probe_timing = TIMING_ZERO,
8643 .block_erasers =
8644 {
8645 {
8646 .eraseblocks = { {4 * 1024, 256} },
8647 .block_erase = spi_block_erase_20,
8648 }, {
8649 .eraseblocks = { {32 * 1024, 32} },
8650 .block_erase = spi_block_erase_52,
8651 }, {
8652 .eraseblocks = { {64 * 1024, 16} },
8653 .block_erase = spi_block_erase_d8,
8654 }, {
8655 .eraseblocks = { {1024 * 1024, 1} },
8656 .block_erase = spi_block_erase_60,
8657 }, {
8658 .eraseblocks = { {1024 * 1024, 1} },
8659 .block_erase = spi_block_erase_c7,
8660 }
8661 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008662 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008663 .write = spi_chip_write_256,
8664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008665 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008666 },
8667
8668 {
8669 .vendor = "Winbond",
8670 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008671 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008672 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008673 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008674 .total_size = 2048,
8675 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008676 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008678 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008679 .probe = probe_spi_rdid,
8680 .probe_timing = TIMING_ZERO,
8681 .block_erasers =
8682 {
8683 {
8684 .eraseblocks = { {4 * 1024, 512} },
8685 .block_erase = spi_block_erase_20,
8686 }, {
8687 .eraseblocks = { {32 * 1024, 64} },
8688 .block_erase = spi_block_erase_52,
8689 }, {
8690 .eraseblocks = { {64 * 1024, 32} },
8691 .block_erase = spi_block_erase_d8,
8692 }, {
8693 .eraseblocks = { {2 * 1024 * 1024, 1} },
8694 .block_erase = spi_block_erase_60,
8695 }, {
8696 .eraseblocks = { {2 * 1024 * 1024, 1} },
8697 .block_erase = spi_block_erase_c7,
8698 }
8699 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008700 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008701 .write = spi_chip_write_256,
8702 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008703 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008704 },
8705
8706 {
8707 .vendor = "Winbond",
8708 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008709 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008710 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008711 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008712 .total_size = 4096,
8713 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008714 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008716 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008717 .probe = probe_spi_rdid,
8718 .probe_timing = TIMING_ZERO,
8719 .block_erasers =
8720 {
8721 {
8722 .eraseblocks = { {4 * 1024, 1024} },
8723 .block_erase = spi_block_erase_20,
8724 }, {
8725 .eraseblocks = { {32 * 1024, 128} },
8726 .block_erase = spi_block_erase_52,
8727 }, {
8728 .eraseblocks = { {64 * 1024, 64} },
8729 .block_erase = spi_block_erase_d8,
8730 }, {
8731 .eraseblocks = { {4 * 1024 * 1024, 1} },
8732 .block_erase = spi_block_erase_60,
8733 }, {
8734 .eraseblocks = { {4 * 1024 * 1024, 1} },
8735 .block_erase = spi_block_erase_c7,
8736 }
8737 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008738 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008739 .write = spi_chip_write_256,
8740 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008741 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008742 },
8743
8744 {
8745 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008746 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008747 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008748 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008749 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008750 .total_size = 8192,
8751 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008752 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008754 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008755 .probe = probe_spi_rdid,
8756 .probe_timing = TIMING_ZERO,
8757 .block_erasers =
8758 {
8759 {
8760 .eraseblocks = { {4 * 1024, 2048} },
8761 .block_erase = spi_block_erase_20,
8762 }, {
8763 .eraseblocks = { {32 * 1024, 256} },
8764 .block_erase = spi_block_erase_52,
8765 }, {
8766 .eraseblocks = { {64 * 1024, 128} },
8767 .block_erase = spi_block_erase_d8,
8768 }, {
8769 .eraseblocks = { {8 * 1024 * 1024, 1} },
8770 .block_erase = spi_block_erase_60,
8771 }, {
8772 .eraseblocks = { {8 * 1024 * 1024, 1} },
8773 .block_erase = spi_block_erase_c7,
8774 }
8775 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008776 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008777 .write = spi_chip_write_256,
8778 .read = spi_chip_read,
8779 },
8780
8781 {
8782 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008783 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008784 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008785 .manufacture_id = WINBOND_NEX_ID,
8786 .model_id = WINBOND_NEX_W25Q128,
8787 .total_size = 16384,
8788 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008789 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8790 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008791 .tested = TEST_OK_PROBE,
8792 .probe = probe_spi_rdid,
8793 .probe_timing = TIMING_ZERO,
8794 .block_erasers =
8795 {
8796 {
8797 .eraseblocks = { {4 * 1024, 4096} },
8798 .block_erase = spi_block_erase_20,
8799 }, {
8800 .eraseblocks = { {32 * 1024, 512} },
8801 .block_erase = spi_block_erase_52,
8802 }, {
8803 .eraseblocks = { {64 * 1024, 256} },
8804 .block_erase = spi_block_erase_d8,
8805 }, {
8806 .eraseblocks = { {16 * 1024 * 1024, 1} },
8807 .block_erase = spi_block_erase_60,
8808 }, {
8809 .eraseblocks = { {16 * 1024 * 1024, 1} },
8810 .block_erase = spi_block_erase_c7,
8811 }
8812 },
8813 .unlock = spi_disable_blockprotect,
8814 .write = spi_chip_write_256,
8815 .read = spi_chip_read,
8816 },
8817
8818 {
8819 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008820 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008821 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008822 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008823 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008824 .total_size = 128,
8825 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008826 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008827 .tested = TEST_UNTESTED,
8828 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008829 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008830 .block_erasers =
8831 {
8832 {
8833 .eraseblocks = { {4 * 1024, 32} },
8834 .block_erase = spi_block_erase_20,
8835 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008836 .eraseblocks = { {64 * 1024, 2} },
8837 .block_erase = spi_block_erase_d8,
8838 }, {
8839 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008840 .block_erase = spi_block_erase_c7,
8841 }
8842 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008843 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008844 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008845 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008846 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008847 },
8848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008849 {
8850 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008851 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008852 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008853 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008854 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008855 .total_size = 256,
8856 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008857 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008858 .tested = TEST_UNTESTED,
8859 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008860 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008861 .block_erasers =
8862 {
8863 {
8864 .eraseblocks = { {4 * 1024, 64} },
8865 .block_erase = spi_block_erase_20,
8866 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008867 .eraseblocks = { {64 * 1024, 4} },
8868 .block_erase = spi_block_erase_d8,
8869 }, {
8870 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008871 .block_erase = spi_block_erase_c7,
8872 }
8873 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008874 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008875 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008876 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008877 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008878 },
8879
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008880 {
8881 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008882 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008883 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008884 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008885 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008886 .total_size = 512,
8887 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008888 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008889 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008890 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008891 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008892 .block_erasers =
8893 {
8894 {
8895 .eraseblocks = { {4 * 1024, 128} },
8896 .block_erase = spi_block_erase_20,
8897 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008898 .eraseblocks = { {64 * 1024, 8} },
8899 .block_erase = spi_block_erase_d8,
8900 }, {
8901 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008902 .block_erase = spi_block_erase_c7,
8903 }
8904 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008905 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008906 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008907 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008908 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008909 },
8910
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008911 {
8912 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008913 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008914 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008915 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008916 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008917 .total_size = 1024,
8918 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008919 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008920 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008921 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008922 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008923 .block_erasers =
8924 {
8925 {
8926 .eraseblocks = { {4 * 1024, 256} },
8927 .block_erase = spi_block_erase_20,
8928 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008929 .eraseblocks = { {64 * 1024, 16} },
8930 .block_erase = spi_block_erase_d8,
8931 }, {
8932 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008933 .block_erase = spi_block_erase_c7,
8934 }
8935 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008936 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008937 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008938 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008939 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008940 },
8941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008942 {
8943 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008944 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008945 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008946 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008947 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008948 .total_size = 2048,
8949 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008950 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008951 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008952 .probe = probe_spi_rdid,
8953 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008954 .block_erasers =
8955 {
8956 {
8957 .eraseblocks = { {4 * 1024, 512} },
8958 .block_erase = spi_block_erase_20,
8959 }, {
8960 .eraseblocks = { {32 * 1024, 64} },
8961 .block_erase = spi_block_erase_52,
8962 }, {
8963 .eraseblocks = { {64 * 1024, 32} },
8964 .block_erase = spi_block_erase_d8,
8965 }, {
8966 .eraseblocks = { {2 * 1024 * 1024, 1} },
8967 .block_erase = spi_block_erase_60,
8968 }, {
8969 .eraseblocks = { {2 * 1024 * 1024, 1} },
8970 .block_erase = spi_block_erase_c7,
8971 }
8972 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008973 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008974 .write = spi_chip_write_256,
8975 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008976 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008977 },
8978
8979 {
8980 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008981 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008982 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008983 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008984 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008985 .total_size = 4096,
8986 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008987 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008988 .tested = TEST_OK_PROBE,
8989 .probe = probe_spi_rdid,
8990 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008991 .block_erasers =
8992 {
8993 {
8994 .eraseblocks = { {4 * 1024, 1024} },
8995 .block_erase = spi_block_erase_20,
8996 }, {
8997 .eraseblocks = { {32 * 1024, 128} },
8998 .block_erase = spi_block_erase_52,
8999 }, {
9000 .eraseblocks = { {64 * 1024, 64} },
9001 .block_erase = spi_block_erase_d8,
9002 }, {
9003 .eraseblocks = { {4 * 1024 * 1024, 1} },
9004 .block_erase = spi_block_erase_60,
9005 }, {
9006 .eraseblocks = { {4 * 1024 * 1024, 1} },
9007 .block_erase = spi_block_erase_c7,
9008 }
9009 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009010 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009011 .write = spi_chip_write_256,
9012 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009013 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009014 },
9015
9016 {
9017 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009018 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009019 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009020 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009021 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00009022 .total_size = 8192,
9023 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009024 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009025 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00009026 .probe = probe_spi_rdid,
9027 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009028 .block_erasers =
9029 {
9030 {
9031 .eraseblocks = { {4 * 1024, 2048} },
9032 .block_erase = spi_block_erase_20,
9033 }, {
9034 .eraseblocks = { {32 * 1024, 256} },
9035 .block_erase = spi_block_erase_52,
9036 }, {
9037 .eraseblocks = { {64 * 1024, 128} },
9038 .block_erase = spi_block_erase_d8,
9039 }, {
9040 .eraseblocks = { {8 * 1024 * 1024, 1} },
9041 .block_erase = spi_block_erase_60,
9042 }, {
9043 .eraseblocks = { {8 * 1024 * 1024, 1} },
9044 .block_erase = spi_block_erase_c7,
9045 }
9046 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009047 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009048 .write = spi_chip_write_256,
9049 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009050 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009051 },
9052
9053 {
9054 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009055 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009056 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009057 .manufacture_id = WINBOND_ID,
9058 .model_id = WINBOND_W29C010,
9059 .total_size = 128,
9060 .page_size = 128,
9061 .feature_bits = FEATURE_LONG_RESET,
9062 .tested = TEST_OK_PRE,
9063 .probe = probe_w29ee011,
9064 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
9065 .block_erasers =
9066 {
9067 {
9068 .eraseblocks = { {128 * 1024, 1} },
9069 .block_erase = erase_chip_block_jedec,
9070 }
9071 },
9072 .write = write_jedec,
9073 .read = read_memmapped,
9074 },
9075
9076 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
9077 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009078 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009079 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009080 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009081 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009082 .total_size = 128,
9083 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009084 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00009085 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009086 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009087 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009088 .block_erasers =
9089 {
9090 {
9091 .eraseblocks = { {128 * 1024, 1} },
9092 .block_erase = erase_chip_block_jedec,
9093 }
9094 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009095 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009096 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009097 },
9098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009099 {
9100 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009101 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009102 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009103 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009104 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009105 .total_size = 256,
9106 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009107 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009108 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009109 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009110 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009111 .block_erasers =
9112 {
9113 {
9114 .eraseblocks = { {256 * 1024, 1} },
9115 .block_erase = erase_chip_block_jedec,
9116 }
9117 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009118 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009120 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009121 },
9122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009123 {
9124 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009125 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009126 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009127 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009128 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009129 .total_size = 512,
9130 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009131 .feature_bits = FEATURE_LONG_RESET,
9132 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009133 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00009134 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009135 .block_erasers =
9136 {
9137 {
9138 .eraseblocks = { {512 * 1024, 1} },
9139 .block_erase = erase_chip_block_jedec,
9140 }
9141 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009142 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009144 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009145 },
9146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009147 {
9148 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00009149 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009150 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00009151 .manufacture_id = WINBOND_ID,
9152 .model_id = WINBOND_W39L040,
9153 .total_size = 512,
9154 .page_size = 64 * 1024,
9155 .feature_bits = FEATURE_EITHER_RESET,
9156 .tested = TEST_OK_PR,
9157 .probe = probe_jedec,
9158 .probe_timing = 10,
9159 .block_erasers =
9160 {
9161 {
9162 .eraseblocks = { {4 * 1024, 128} },
9163 .block_erase = erase_block_jedec,
9164 }, {
9165 .eraseblocks = { {64 * 1024, 8} },
9166 .block_erase = erase_sector_jedec,
9167 }, {
9168 .eraseblocks = { {512 * 1024, 1} },
9169 .block_erase = erase_chip_block_jedec,
9170 }
9171 },
9172 .printlock = printlock_w39l040,
9173 .write = write_jedec_1,
9174 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009175 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00009176 },
9177
9178 {
9179 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009180 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009181 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009182 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009183 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009184 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009186 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009187 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009188 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00009189 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009190 .block_erasers =
9191 {
9192 {
9193 .eraseblocks = { {64 * 1024, 8} },
9194 .block_erase = erase_sector_jedec,
9195 }, {
9196 .eraseblocks = { {512 * 1024, 1} },
9197 .block_erase = erase_chip_block_jedec,
9198 }
9199 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009200 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00009201 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009203 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009204 },
9205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009206 {
9207 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009208 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009209 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009210 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009211 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009212 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009213 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009214 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009215 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009216 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00009217 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009218 .block_erasers =
9219 {
9220 {
9221 .eraseblocks = { {64 * 1024, 8} },
9222 .block_erase = erase_sector_jedec,
9223 }, {
9224 .eraseblocks = { {512 * 1024, 1} },
9225 .block_erase = erase_chip_block_jedec,
9226 }
9227 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009228 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009229 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009230 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009231 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009232 },
9233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009234 {
9235 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009236 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009237 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009238 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009239 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009240 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009241 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009242 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009243 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009244 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009245 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009246 .block_erasers =
9247 {
9248 {
9249 .eraseblocks = { {64 * 1024, 8} },
9250 .block_erase = erase_sector_jedec,
9251 }, {
9252 .eraseblocks = { {512 * 1024, 1} },
9253 .block_erase = erase_chip_block_jedec,
9254 }
9255 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009256 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009257 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009259 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009260 },
9261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009262 {
9263 .vendor = "Winbond",
9264 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009265 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009266 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009267 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009268 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009269 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009270 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009271 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009272 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009273 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009274 .block_erasers =
9275 {
9276 {
9277 .eraseblocks = { {4 * 1024, 128} },
9278 .block_erase = erase_block_jedec,
9279 }, {
9280 .eraseblocks = { {64 * 1024, 8} },
9281 .block_erase = erase_sector_jedec,
9282 }, {
9283 .eraseblocks = { {512 * 1024, 1} },
9284 .block_erase = erase_chip_block_jedec,
9285 }
9286 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009287 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00009288 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00009289 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009291 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009292 },
9293
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009294 {
9295 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009296 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009297 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009298 .manufacture_id = WINBOND_ID,
9299 .model_id = WINBOND_W39V040B,
9300 .total_size = 512,
9301 .page_size = 64 * 1024,
9302 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009303 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009304 .probe = probe_jedec,
9305 .probe_timing = 10,
9306 .block_erasers =
9307 {
9308 {
9309 .eraseblocks = { {64 * 1024, 8} },
9310 .block_erase = erase_sector_jedec,
9311 }, {
9312 .eraseblocks = { {512 * 1024, 1} },
9313 .block_erase = erase_chip_block_jedec,
9314 }
9315 },
9316 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00009317 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009318 .write = write_jedec_1,
9319 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009320 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009321 },
9322
9323 {
9324 .vendor = "Winbond",
9325 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009326 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009327 .manufacture_id = WINBOND_ID,
9328 .model_id = WINBOND_W39V040C,
9329 .total_size = 512,
9330 .page_size = 64 * 1024,
9331 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009332 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009333 .probe = probe_jedec,
9334 .probe_timing = 10,
9335 .block_erasers =
9336 {
9337 {
9338 .eraseblocks = { {64 * 1024, 8} },
9339 .block_erase = erase_sector_jedec,
9340 }, {
9341 .eraseblocks = { {512 * 1024, 1} },
9342 .block_erase = erase_chip_block_jedec,
9343 }
9344 },
9345 .printlock = printlock_w39v040fc,
9346 .write = write_jedec_1,
9347 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009348 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009349 },
9350
9351 {
9352 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009353 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009354 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009355 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009356 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009357 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009358 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009359 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009360 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009361 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009362 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009363 .block_erasers =
9364 {
9365 {
9366 .eraseblocks = { {64 * 1024, 16} },
9367 .block_erase = erase_sector_jedec,
9368 }, {
9369 .eraseblocks = { {1024 * 1024, 1} },
9370 .block_erase = erase_chip_block_jedec,
9371 }
9372 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009373 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009374 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009376 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009377 },
9378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009379 {
9380 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009381 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009382 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009383 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009384 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009385 .total_size = 256,
9386 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009387 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009388 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009389 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009390 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009391 .block_erasers =
9392 {
9393 {
9394 .eraseblocks = {
9395 {128 * 1024, 1},
9396 {96 * 1024, 1},
9397 {8 * 1024, 2},
9398 {16 * 1024, 1},
9399 },
9400 .block_erase = erase_sector_jedec,
9401 }, {
9402 .eraseblocks = { {256 * 1024, 1} },
9403 .block_erase = erase_chip_block_jedec,
9404 }
9405 },
Sean Nelson35727f72010-01-28 23:55:12 +00009406 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009407 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009408 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009409 },
9410
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009411 {
9412 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009413 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009414 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009415 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009416 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009417 .total_size = 256,
9418 .page_size = 128,
9419 .feature_bits = FEATURE_EITHER_RESET,
9420 .tested = TEST_OK_PROBE,
9421 .probe = probe_jedec,
9422 .probe_timing = 10,
9423 .block_erasers =
9424 {
9425 {
9426 .eraseblocks = { {256 * 1024, 1} },
9427 .block_erase = erase_chip_block_jedec,
9428 }
9429 },
9430 .write = write_jedec_1,
9431 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009432 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009433 },
9434
9435 {
9436 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009437 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009438 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009439 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009440 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009441 .total_size = 256,
9442 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009443 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009444 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009445 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009446 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009447 .block_erasers =
9448 {
9449 {
9450 .eraseblocks = {
9451 {64 * 1024, 3},
9452 {32 * 1024, 1},
9453 {8 * 1024, 2},
9454 {16 * 1024, 1},
9455 },
9456 .block_erase = erase_sector_jedec,
9457 }, {
9458 .eraseblocks = { {256 * 1024, 1} },
9459 .block_erase = erase_chip_block_jedec,
9460 }
9461 },
Sean Nelson35727f72010-01-28 23:55:12 +00009462 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009464 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009465 },
9466
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009467 {
9468 .vendor = "Winbond",
9469 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009470 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009471 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009472 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009473 .total_size = 256,
9474 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009475 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009476 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009477 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009478 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009479 .block_erasers =
9480 {
9481 {
9482 .eraseblocks = {
9483 {64 * 1024, 3},
9484 {32 * 1024, 1},
9485 {8 * 1024, 2},
9486 {16 * 1024, 1},
9487 },
9488 .block_erase = erase_sector_jedec,
9489 }, {
9490 .eraseblocks = { {256 * 1024, 1} },
9491 .block_erase = erase_chip_block_jedec,
9492 }
9493 },
Sean Nelson35727f72010-01-28 23:55:12 +00009494 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009496 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009497 },
9498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009499 {
9500 .vendor = "Winbond",
9501 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009502 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009503 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009504 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009505 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009506 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009507 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009508 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009509 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009510 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009511 .block_erasers =
9512 {
9513 {
9514 .eraseblocks = { {64 * 1024, 16}, },
9515 .block_erase = erase_sector_jedec,
9516 }, {
9517 .eraseblocks = { {1024 * 1024, 1} },
9518 .block_erase = erase_chip_block_jedec,
9519 }
9520 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009521 .printlock = printlock_w39v080fa,
9522 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009523 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009524 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009525 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009526 },
9527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009528 {
9529 .vendor = "Winbond",
9530 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009531 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009532 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009533 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009534 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009535 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009536 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009537 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009538 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009539 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009540 .block_erasers =
9541 {
9542 {
9543 .eraseblocks = { {64 * 1024, 8}, },
9544 .block_erase = erase_sector_jedec,
9545 }, {
9546 .eraseblocks = { {512 * 1024, 1} },
9547 .block_erase = erase_chip_block_jedec,
9548 }
9549 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009550 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009551 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009552 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009553 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009554 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009555
9556 {
9557 .vendor = "Unknown",
9558 .name = "SFDP-capable chip",
9559 .bustype = BUS_SPI,
9560 .manufacture_id = GENERIC_MANUF_ID,
9561 .model_id = SFDP_DEVICE_ID,
9562 /* We present our own "report this" text hence we do not
9563 * want the default "This flash part has status UNTESTED..."
9564 * text to be printed. */
9565 .tested = TEST_OK_PREW,
9566 .probe = probe_spi_sfdp,
9567 .unlock = spi_disable_blockprotect, /* is this safe? */
9568 .read = spi_chip_read,
9569 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +00009570 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009571 /* Everything below will be set by the probing function. */
9572 .write = NULL,
9573 .total_size = 0,
9574 .page_size = 0,
9575 .feature_bits = 0,
9576 .block_erasers = {},
9577 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009578
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009579 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009580 .vendor = "Programmer",
9581 .name = "Opaque flash chip",
9582 .bustype = BUS_PROG,
9583 .manufacture_id = PROGMANUF_ID,
9584 .model_id = PROGDEV_ID,
9585 .total_size = 0,
9586 .page_size = 256,
9587 /* probe is assumed to work, rest will be filled in by probe */
9588 .tested = TEST_OK_PROBE,
9589 .probe = probe_opaque,
9590 /* eraseblock sizes will be set by the probing function */
9591 .block_erasers =
9592 {
9593 {
9594 .block_erase = erase_opaque,
9595 }
9596 },
9597 .write = write_opaque,
9598 .read = read_opaque,
9599 },
9600
9601 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009602 .vendor = "AMIC",
9603 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009604 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009605 .manufacture_id = AMIC_ID,
9606 .model_id = GENERIC_DEVICE_ID,
9607 .total_size = 0,
9608 .page_size = 256,
9609 .tested = TEST_BAD_PREW,
9610 .probe = probe_spi_rdid4,
9611 .probe_timing = TIMING_ZERO,
9612 .write = NULL,
9613 .read = NULL,
9614 },
9615
9616 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009617 .vendor = "Atmel",
9618 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009619 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009620 .manufacture_id = ATMEL_ID,
9621 .model_id = GENERIC_DEVICE_ID,
9622 .total_size = 0,
9623 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009624 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009625 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009626 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009627 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009628 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009629 },
9630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009631 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009632 .vendor = "Eon",
9633 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009634 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009635 .manufacture_id = EON_ID_NOPREFIX,
9636 .model_id = GENERIC_DEVICE_ID,
9637 .total_size = 0,
9638 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009639 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009640 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009641 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009642 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009643 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009644 },
9645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009646 {
9647 .vendor = "Macronix",
9648 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009649 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009650 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009651 .model_id = GENERIC_DEVICE_ID,
9652 .total_size = 0,
9653 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009654 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009655 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009656 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009657 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009658 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009659 },
9660
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009661 {
9662 .vendor = "PMC",
9663 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009664 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009665 .manufacture_id = PMC_ID,
9666 .model_id = GENERIC_DEVICE_ID,
9667 .total_size = 0,
9668 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009669 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009670 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009671 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009672 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009673 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009674 },
9675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009676 {
9677 .vendor = "SST",
9678 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009680 .manufacture_id = SST_ID,
9681 .model_id = GENERIC_DEVICE_ID,
9682 .total_size = 0,
9683 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009684 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009685 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009686 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009687 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009688 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009689 },
9690
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009691 {
9692 .vendor = "ST",
9693 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009694 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009695 .manufacture_id = ST_ID,
9696 .model_id = GENERIC_DEVICE_ID,
9697 .total_size = 0,
9698 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009699 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009701 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009702 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009703 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009704 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009705
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009706 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009707 .vendor = "Sanyo",
9708 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009709 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009710 .manufacture_id = SANYO_ID,
9711 .model_id = GENERIC_DEVICE_ID,
9712 .total_size = 0,
9713 .page_size = 256,
9714 .tested = TEST_BAD_PREW,
9715 .probe = probe_spi_rdid,
9716 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009717 .write = NULL,
9718 .read = NULL,
9719 },
9720
9721 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009722 .vendor = "Generic",
9723 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009724 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009725 .manufacture_id = GENERIC_MANUF_ID,
9726 .model_id = GENERIC_DEVICE_ID,
9727 .total_size = 0,
9728 .page_size = 256,
9729 .tested = TEST_BAD_PREW,
9730 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009731 .write = NULL,
9732 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009733
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009734 {
9735 .vendor = "Generic",
9736 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009737 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009738 .manufacture_id = GENERIC_MANUF_ID,
9739 .model_id = GENERIC_DEVICE_ID,
9740 .total_size = 0,
9741 .page_size = 256,
9742 .tested = TEST_BAD_PREW,
9743 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009744 .write = NULL,
9745 },
9746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009747 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009748};