blob: 22ff2d7610d59501fb9ca85b9e33ea803a129c1d [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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000567 .printlock = spi_prettyprint_status_register_default_bp1,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000601 .printlock = spi_prettyprint_status_register_default_bp1,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000636 .printlock = spi_prettyprint_status_register_default_bp1,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000671 .printlock = spi_prettyprint_status_register_default_bp1,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000706 .printlock = spi_prettyprint_status_register_default_bp1,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000741 .printlock = spi_prettyprint_status_register_default_bp1,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000781 .printlock = spi_prettyprint_status_register_default_bp2,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000816 .printlock = spi_prettyprint_status_register_default_bp2,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000851 .printlock = spi_prettyprint_status_register_default_bp2,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000889 .printlock = spi_prettyprint_status_register_default_bp2,
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000927 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000959 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000991 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001023 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001055 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001087 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001119 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001159 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
1167 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001168 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ032,
1171 .total_size = 4096,
1172 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001173 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .tested = TEST_UNTESTED,
1176 .probe = probe_spi_rdid,
1177 .probe_timing = TIMING_ZERO,
1178 .block_erasers =
1179 {
1180 {
1181 .eraseblocks = { { 4 * 1024, 1024 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 64 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 64 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 4096 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 4096 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001195 }
Dan Lenski11617122010-07-29 15:00:40 +00001196 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001197 .printlock = spi_prettyprint_status_register_amic_a25l032,
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",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001670 .name = "AT25F512",
1671 .bustype = BUS_SPI,
1672 .manufacture_id = ATMEL_ID,
1673 .model_id = ATMEL_AT25F512,
1674 .total_size = 64,
1675 .page_size = 256,
1676 .feature_bits = FEATURE_WRSR_WREN,
1677 .tested = TEST_UNTESTED,
1678 .probe = probe_spi_at25f,
1679 .probe_timing = TIMING_ZERO,
1680 .block_erasers =
1681 {
1682 {
1683 .eraseblocks = { {32 * 1024, 2} },
1684 .block_erase = spi_block_erase_52,
1685 }, {
1686 .eraseblocks = { {64 * 1024, 1} },
1687 .block_erase = spi_block_erase_62,
1688 }
1689 },
1690 .printlock = spi_prettyprint_status_register_at25f,
1691 .unlock = spi_disable_blockprotect_at25f,
1692 .write = spi_chip_write_256,
1693 .read = spi_chip_read,
1694 .voltage = {2700, 3600},
1695 },
1696
1697 {
1698 .vendor = "Atmel",
1699 .name = "AT25F512A",
1700 .bustype = BUS_SPI,
1701 .manufacture_id = ATMEL_ID,
1702 .model_id = ATMEL_AT25F512A,
1703 .total_size = 64,
1704 .page_size = 128,
1705 .feature_bits = FEATURE_WRSR_WREN,
1706 .tested = TEST_UNTESTED,
1707 .probe = probe_spi_at25f,
1708 .probe_timing = TIMING_ZERO,
1709 .block_erasers =
1710 {
1711 {
1712 .eraseblocks = { {32 * 1024, 2} },
1713 .block_erase = spi_block_erase_52,
1714 }, {
1715 .eraseblocks = { {64 * 1024, 1} },
1716 .block_erase = spi_block_erase_62,
1717 }
1718 },
1719 .printlock = spi_prettyprint_status_register_at25f512a,
1720 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1721 .unlock = spi_disable_blockprotect_at25f512a,
1722 .write = spi_chip_write_256,
1723 .read = spi_chip_read,
1724 .voltage = {2700, 3600},
1725 },
1726
1727 {
1728 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001729 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001730 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001731 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001732 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001733 .total_size = 64,
1734 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001735 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001737 .tested = TEST_UNTESTED,
1738 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001739 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001740 .block_erasers =
1741 {
1742 {
1743 .eraseblocks = { {4 * 1024, 16} },
1744 .block_erase = spi_block_erase_20,
1745 }, {
1746 .eraseblocks = { {32 * 1024, 2} },
1747 .block_erase = spi_block_erase_52,
1748 }, {
1749 .eraseblocks = { {32 * 1024, 2} },
1750 .block_erase = spi_block_erase_d8,
1751 }, {
1752 .eraseblocks = { {64 * 1024, 1} },
1753 .block_erase = spi_block_erase_60,
1754 }, {
1755 .eraseblocks = { {64 * 1024, 1} },
1756 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001757 }, {
1758 .eraseblocks = { {64 * 1024, 1} },
1759 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001760 }
1761 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001762 .printlock = spi_prettyprint_status_register_at25f512b,
1763 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001764 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001766 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001767 },
1768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001769 {
1770 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001771 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1772 * All other properties seem to be the same.*/
1773 .name = "AT25F1024(A)",
1774 .bustype = BUS_SPI,
1775 .manufacture_id = ATMEL_ID,
1776 .model_id = ATMEL_AT25F1024,
1777 .total_size = 128,
1778 .page_size = 256,
1779 .feature_bits = FEATURE_WRSR_WREN,
1780 .tested = TEST_OK_PREW,
1781 .probe = probe_spi_at25f,
1782 .probe_timing = TIMING_ZERO,
1783 .block_erasers =
1784 {
1785 {
1786 .eraseblocks = { {32 * 1024, 4} },
1787 .block_erase = spi_block_erase_52,
1788 }, {
1789 .eraseblocks = { {128 * 1024, 1} },
1790 .block_erase = spi_block_erase_62,
1791 }
1792 },
1793 .printlock = spi_prettyprint_status_register_at25f,
1794 .unlock = spi_disable_blockprotect_at25f,
1795 .write = spi_chip_write_256,
1796 .read = spi_chip_read,
1797 .voltage = {2700, 3600},
1798 },
1799
1800 {
1801 .vendor = "Atmel",
1802 .name = "AT25F2048",
1803 .bustype = BUS_SPI,
1804 .manufacture_id = ATMEL_ID,
1805 .model_id = ATMEL_AT25F2048,
1806 .total_size = 256,
1807 .page_size = 256,
1808 .feature_bits = FEATURE_WRSR_WREN,
1809 .tested = TEST_UNTESTED,
1810 .probe = probe_spi_at25f,
1811 .probe_timing = TIMING_ZERO,
1812 .block_erasers =
1813 {
1814 {
1815 .eraseblocks = { {64 * 1024, 4} },
1816 .block_erase = spi_block_erase_52,
1817 }, {
1818 .eraseblocks = { {256 * 1024, 1} },
1819 .block_erase = spi_block_erase_62,
1820 }
1821 },
1822 .printlock = spi_prettyprint_status_register_at25f,
1823 .unlock = spi_disable_blockprotect_at25f,
1824 .write = spi_chip_write_256,
1825 .read = spi_chip_read,
1826 .voltage = {2700, 3600},
1827 },
1828
1829 {
1830 .vendor = "Atmel",
1831 .name = "AT25F4096",
1832 .bustype = BUS_SPI,
1833 .manufacture_id = ATMEL_ID,
1834 .model_id = ATMEL_AT25F4096,
1835 .total_size = 512,
1836 .page_size = 256,
1837 .feature_bits = FEATURE_WRSR_WREN,
1838 .tested = TEST_UNTESTED,
1839 .probe = probe_spi_at25f,
1840 .probe_timing = TIMING_ZERO,
1841 .block_erasers =
1842 {
1843 {
1844 .eraseblocks = { {64 * 1024, 8} },
1845 .block_erase = spi_block_erase_52,
1846 }, {
1847 .eraseblocks = { {512 * 1024, 1} },
1848 .block_erase = spi_block_erase_62,
1849 }
1850 },
1851 .printlock = spi_prettyprint_status_register_at25f4096,
1852 .unlock = spi_disable_blockprotect_at25f4096,
1853 .write = spi_chip_write_256,
1854 .read = spi_chip_read,
1855 .voltage = {2700, 3600},
1856 },
1857
1858 {
1859 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001860 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001861 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001862 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001863 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001864 .total_size = 128,
1865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001866 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001867 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001868 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001869 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001870 .block_erasers =
1871 {
1872 {
1873 .eraseblocks = { {4 * 1024, 32} },
1874 .block_erase = spi_block_erase_20,
1875 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001876 .eraseblocks = { {4 * 1024, 32} },
1877 .block_erase = spi_block_erase_d7,
1878 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001879 .eraseblocks = { {32 * 1024, 4} },
1880 .block_erase = spi_block_erase_52,
1881 }, {
1882 .eraseblocks = { {32 * 1024, 4} },
1883 .block_erase = spi_block_erase_d8,
1884 }, {
1885 .eraseblocks = { {128 * 1024, 1} },
1886 .block_erase = spi_block_erase_60,
1887 }, {
1888 .eraseblocks = { {128 * 1024, 1} },
1889 .block_erase = spi_block_erase_c7,
1890 }
1891 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001892 .printlock = spi_prettyprint_status_register_at25fs010,
1893 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001894 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001895 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001896 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001897 },
1898
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001899 {
1900 .vendor = "Atmel",
1901 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001902 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001903 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001904 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001905 .total_size = 512,
1906 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001907 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001908 .tested = TEST_UNTESTED,
1909 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001910 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001911 .block_erasers =
1912 {
1913 {
1914 .eraseblocks = { {4 * 1024, 128} },
1915 .block_erase = spi_block_erase_20,
1916 }, {
1917 .eraseblocks = { {64 * 1024, 8} },
1918 .block_erase = spi_block_erase_52,
1919 }, {
1920 .eraseblocks = { {64 * 1024, 8} },
1921 .block_erase = spi_block_erase_d8,
1922 }, {
1923 .eraseblocks = { {512 * 1024, 1} },
1924 .block_erase = spi_block_erase_60,
1925 }, {
1926 .eraseblocks = { {512 * 1024, 1} },
1927 .block_erase = spi_block_erase_c7,
1928 }
1929 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001930 .printlock = spi_prettyprint_status_register_at25fs040,
1931 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001932 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001934 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001935 },
1936
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001937 {
1938 .vendor = "Atmel",
1939 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001940 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001941 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001942 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 .total_size = 512,
1944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001945 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001946 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001948 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001949 .block_erasers =
1950 {
1951 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00001952 .eraseblocks = { {256, 2048} },
1953 .block_erase = spi_block_erase_81,
1954 }, {
1955 .eraseblocks = { {2 * 1024, 256} },
1956 .block_erase = spi_block_erase_50,
1957 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001958 .eraseblocks = { {4 * 1024, 128} },
1959 .block_erase = spi_block_erase_20,
1960 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001961 },
1962 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
1963 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001964 .write = spi_chip_write_1,
1965 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00001966 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001967 },
1968
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001969 {
1970 .vendor = "Atmel",
1971 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001972 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001973 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001974 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001975 .total_size = 1024,
1976 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001977 .feature_bits = FEATURE_WRSR_WREN,
1978 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001979 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001980 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001981 .block_erasers =
1982 {
1983 {
1984 .eraseblocks = { {4 * 1024, 256} },
1985 .block_erase = spi_block_erase_20,
1986 }, {
1987 .eraseblocks = { {32 * 1024, 32} },
1988 .block_erase = spi_block_erase_52,
1989 }, {
1990 .eraseblocks = { {64 * 1024, 16} },
1991 .block_erase = spi_block_erase_d8,
1992 }, {
1993 .eraseblocks = { {1024 * 1024, 1} },
1994 .block_erase = spi_block_erase_60,
1995 }, {
1996 .eraseblocks = { {1024 * 1024, 1} },
1997 .block_erase = spi_block_erase_c7,
1998 }
1999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002000 .printlock = spi_prettyprint_status_register_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002001 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002002 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002003 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002004 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002005 },
2006
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002007 {
2008 .vendor = "Atmel",
2009 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002010 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002011 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002012 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .total_size = 2048,
2014 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002015 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002016 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002017 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002018 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002019 .block_erasers =
2020 {
2021 {
2022 .eraseblocks = { {4 * 1024, 512} },
2023 .block_erase = spi_block_erase_20,
2024 }, {
2025 .eraseblocks = { {32 * 1024, 64} },
2026 .block_erase = spi_block_erase_52,
2027 }, {
2028 .eraseblocks = { {64 * 1024, 32} },
2029 .block_erase = spi_block_erase_d8,
2030 }, {
2031 .eraseblocks = { {2 * 1024 * 1024, 1} },
2032 .block_erase = spi_block_erase_60,
2033 }, {
2034 .eraseblocks = { {2 * 1024 * 1024, 1} },
2035 .block_erase = spi_block_erase_c7,
2036 }
2037 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002038 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002039 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002040 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002041 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002042 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002043 },
2044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002045 {
2046 .vendor = "Atmel",
2047 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002048 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002049 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002050 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 .total_size = 2048,
2052 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002053 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002054 .tested = TEST_UNTESTED,
2055 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002056 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002057 .block_erasers =
2058 {
2059 {
2060 .eraseblocks = { {4 * 1024, 512} },
2061 .block_erase = spi_block_erase_20,
2062 }, {
2063 .eraseblocks = { {32 * 1024, 64} },
2064 .block_erase = spi_block_erase_52,
2065 }, {
2066 .eraseblocks = { {64 * 1024, 32} },
2067 .block_erase = spi_block_erase_d8,
2068 }, {
2069 .eraseblocks = { {2 * 1024 * 1024, 1} },
2070 .block_erase = spi_block_erase_60,
2071 }, {
2072 .eraseblocks = { {2 * 1024 * 1024, 1} },
2073 .block_erase = spi_block_erase_c7,
2074 }
2075 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002076 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002077 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002078 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002079 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002080 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002081 },
2082
2083 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 /*{
2085 .vendor = "Atmel",
2086 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002087 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002088 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002089 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002090 .total_size = 4096,
2091 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002092 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .tested = TEST_UNTESTED,
2094 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002095 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002096 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002098 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .read = spi_chip_read,
2100 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002102 {
2103 .vendor = "Atmel",
2104 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002105 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002106 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002107 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002108 .total_size = 512,
2109 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002110 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002111 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002112 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002113 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002114 .block_erasers =
2115 {
2116 {
2117 .eraseblocks = { {4 * 1024, 128} },
2118 .block_erase = spi_block_erase_20,
2119 }, {
2120 .eraseblocks = { {32 * 1024, 16} },
2121 .block_erase = spi_block_erase_52,
2122 }, {
2123 .eraseblocks = { {64 * 1024, 8} },
2124 .block_erase = spi_block_erase_d8,
2125 }, {
2126 .eraseblocks = { {512 * 1024, 1} },
2127 .block_erase = spi_block_erase_60,
2128 }, {
2129 .eraseblocks = { {512 * 1024, 1} },
2130 .block_erase = spi_block_erase_c7,
2131 }
2132 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002133 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002134 .write = NULL /* Incompatible Page write */,
2135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002141 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002145 .total_size = 64,
2146 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002147 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002148 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002149 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002150 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {64 * 1024, 1} },
2155 .block_erase = erase_chip_block_jedec,
2156 }
2157 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002158 .write = write_jedec,
2159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002160 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002161 },
2162
2163 {
2164 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002165 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002166 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002167 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002168 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002169 .total_size = 128,
2170 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002171 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002172 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002173 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002174 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002175 .block_erasers =
2176 {
2177 {
2178 .eraseblocks = { {128 * 1024, 1} },
2179 .block_erase = erase_chip_block_jedec,
2180 }
2181 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002182 .write = write_jedec, /* FIXME */
2183 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002184 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002185 },
2186
2187 {
2188 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002190 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002191 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002192 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002193 .total_size = 256,
2194 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002195 .feature_bits = FEATURE_LONG_RESET,
2196 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002197 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002198 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002199 .block_erasers =
2200 {
2201 {
2202 .eraseblocks = { {256 * 1024, 1} },
2203 .block_erase = erase_chip_block_jedec,
2204 }
2205 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002206 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002208 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002209 },
2210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 {
2212 .vendor = "Atmel",
2213 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002214 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002216 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002217 .total_size = 512,
2218 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002219 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .tested = TEST_UNTESTED,
2221 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002222 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002223 .block_erasers =
2224 {
2225 {
2226 .eraseblocks = { {512 * 1024, 1} },
2227 .block_erase = erase_chip_block_jedec,
2228 }
2229 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002232 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002233 },
2234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002235 {
2236 .vendor = "Atmel",
2237 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002238 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002240 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002241 .total_size = 16896 /* No power of two sizes */,
2242 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002243 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002244 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002245 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002246 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002247 .write = NULL /* Incompatible Page write */,
2248 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002249 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002250 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002251
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 {
2253 .vendor = "Atmel",
2254 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002255 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002256 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002257 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002258 .total_size = 128 /* Size can only be determined from status register */,
2259 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002260 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002261 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002263 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002264 .write = NULL,
2265 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002267 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002269 {
2270 .vendor = "Atmel",
2271 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002275 .total_size = 256 /* Size can only be determined from status register */,
2276 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002277 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002278 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002280 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002281 .write = NULL,
2282 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002284 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002292 .total_size = 512 /* Size can only be determined from status register */,
2293 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002294 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002295 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002297 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002298 .write = NULL,
2299 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002300 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002301 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002303 {
2304 .vendor = "Atmel",
2305 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002306 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002307 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002308 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002309 .total_size = 1024 /* Size can only be determined from status register */,
2310 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002311 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002312 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002313 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002314 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002315 .write = NULL,
2316 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002317 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002318 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002320 {
2321 .vendor = "Atmel",
2322 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002323 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002324 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002325 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002326 .total_size = 2048 /* Size can only be determined from status register */,
2327 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002328 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002329 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002330 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002331 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002332 .write = NULL,
2333 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002334 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002335 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002337 {
2338 .vendor = "Atmel",
2339 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002340 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002341 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002342 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002343 .total_size = 4224 /* No power of two sizes */,
2344 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002345 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002346 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002347 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002348 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .write = NULL,
2350 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002351 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002352 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002354 {
2355 .vendor = "Atmel",
2356 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002357 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002358 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002359 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002360 .total_size = 4096 /* Size can only be determined from status register */,
2361 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002362 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002363 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002364 .feature_bits = FEATURE_OTP,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002365 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002367 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002368 .write = NULL,
2369 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002370 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002371 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002373 {
2374 .vendor = "Atmel",
2375 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002376 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002378 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002379 .total_size = 8192 /* Size can only be determined from status register */,
2380 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002381 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002382 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002383 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002384 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002385 .write = NULL,
2386 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002387 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002388 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 {
2391 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002392 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002393 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002394 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002395 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002396 .total_size = 64,
2397 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002398 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002399 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002400 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002401 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002402 .block_erasers =
2403 {
2404 {
2405 .eraseblocks = { {64 * 1024, 1} },
2406 .block_erase = erase_chip_block_jedec,
2407 }
2408 },
Sean Nelson35727f72010-01-28 23:55:12 +00002409 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002411 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002412 },
2413
2414 {
2415 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002416 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002417 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002418 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002419 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002420 .total_size = 256,
2421 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002422 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .tested = TEST_UNTESTED,
2424 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002425 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002426 .block_erasers =
2427 {
2428 {
2429 .eraseblocks = {
2430 {16 * 1024, 1},
2431 {8 * 1024, 2},
2432 {96 * 1024, 1},
2433 {128 * 1024, 1},
2434 },
2435 .block_erase = erase_sector_jedec,
2436 }, {
2437 .eraseblocks = { {256 * 1024, 1} },
2438 .block_erase = erase_chip_block_jedec,
2439 }
2440 },
Sean Nelson35727f72010-01-28 23:55:12 +00002441 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002442 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002443 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002444 },
2445
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002446 {
2447 .vendor = "Atmel",
2448 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002449 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002450 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002451 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002452 .total_size = 256,
2453 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002454 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002455 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002456 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002457 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002458 .block_erasers =
2459 {
2460 {
2461 .eraseblocks = {
2462 {128 * 1024, 1},
2463 {96 * 1024, 1},
2464 {8 * 1024, 2},
2465 {16 * 1024, 1},
2466 },
2467 .block_erase = erase_sector_jedec,
2468 }, {
2469 .eraseblocks = { {256 * 1024, 1} },
2470 .block_erase = erase_chip_block_jedec,
2471 }
2472 },
Sean Nelson35727f72010-01-28 23:55:12 +00002473 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002475 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002476 },
2477
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002478 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002479 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002480 .name = "AT49(H)F010",
2481 .bustype = BUS_PARALLEL,
2482 .manufacture_id = ATMEL_ID,
2483 .model_id = ATMEL_AT49F010,
2484 .total_size = 128,
2485 .page_size = 0, /* unused */
2486 .feature_bits = FEATURE_EITHER_RESET,
2487 .tested = TEST_OK_PREW,
2488 .probe = probe_jedec,
2489 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2490 .block_erasers =
2491 {
2492 {
2493 .eraseblocks = { {128 * 1024, 1} },
2494 .block_erase = erase_chip_block_jedec,
2495 }
2496 },
2497 .printlock = printlock_at49f,
2498 .write = write_jedec_1,
2499 .read = read_memmapped,
2500 .voltage = {4500, 5500},
2501 },
2502
2503 {
2504 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002505 .name = "AT49F020",
2506 .bustype = BUS_PARALLEL,
2507 .manufacture_id = ATMEL_ID,
2508 .model_id = ATMEL_AT49F020,
2509 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002510 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002511 .feature_bits = FEATURE_EITHER_RESET,
2512 .tested = TEST_OK_PRE,
2513 .probe = probe_jedec,
2514 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2515 .block_erasers =
2516 {
2517 {
2518 .eraseblocks = { {256 * 1024, 1} },
2519 .block_erase = erase_chip_block_jedec,
2520 }
2521 /* Chip features an optional permanent write protection
2522 * of the first 8 kB. The erase function is the same as
2523 * above, but 00000H to 01FFFH will not be erased.
2524 * FIXME: add another eraser when partial erasers are
2525 * supported.
2526 */
2527 },
2528 .printlock = printlock_at49f,
2529 .write = write_jedec_1,
2530 .read = read_memmapped,
2531 .voltage = {4500, 5500},
2532 },
2533
2534 {
2535 .vendor = "Atmel",
2536 .name = "AT49F040",
2537 .bustype = BUS_PARALLEL,
2538 .manufacture_id = ATMEL_ID,
2539 .model_id = ATMEL_AT49F040,
2540 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002541 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002542 .feature_bits = FEATURE_EITHER_RESET,
2543 .tested = TEST_UNTESTED,
2544 .probe = probe_jedec,
2545 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2546 .block_erasers =
2547 {
2548 {
2549 .eraseblocks = { {512 * 1024, 1} },
2550 .block_erase = erase_chip_block_jedec,
2551 }
2552 /* Chip features an optional permanent write protection
2553 * of the first 16 kB. The erase function is the same as
2554 * above, but 00000H to 03FFFH will not be erased.
2555 * FIXME: add another eraser when partial erasers are
2556 * supported.
2557 */
2558 },
2559 .printlock = printlock_at49f,
2560 .write = write_jedec_1,
2561 .read = read_memmapped,
2562 .voltage = {4500, 5500},
2563 },
2564
2565 {
2566 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002567 .name = "AT49F080",
2568 .bustype = BUS_PARALLEL,
2569 .manufacture_id = ATMEL_ID,
2570 .model_id = ATMEL_AT49F080,
2571 .total_size = 1024,
2572 .page_size = 0, /* unused */
2573 .feature_bits = FEATURE_EITHER_RESET,
2574 .tested = TEST_UNTESTED,
2575 .probe = probe_jedec,
2576 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2577 .block_erasers =
2578 {
2579 {
2580 .eraseblocks = { {1024 * 1024, 1} },
2581 .block_erase = erase_chip_block_jedec,
2582 }
2583 /* Chip features an optional permanent write protection
2584 * of the first 16 kB. The erase function is the same as
2585 * above, but 00000H to 03FFFH will not be erased.
2586 * FIXME: add another eraser when partial erasers are
2587 * supported.
2588 */
2589 },
2590 .printlock = printlock_at49f,
2591 .write = write_jedec_1,
2592 .read = read_memmapped,
2593 .voltage = {4500, 5500},
2594 },
2595
2596 {
2597 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2598 .vendor = "Atmel",
2599 .name = "AT49F080T",
2600 .bustype = BUS_PARALLEL,
2601 .manufacture_id = ATMEL_ID,
2602 .model_id = ATMEL_AT49F080T,
2603 .total_size = 1024,
2604 .page_size = 0, /* unused */
2605 .feature_bits = FEATURE_EITHER_RESET,
2606 .tested = TEST_UNTESTED,
2607 .probe = probe_jedec,
2608 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {1024 * 1024, 1} },
2613 .block_erase = erase_chip_block_jedec,
2614 }
2615 /* Chip features an optional permanent write protection
2616 * of the first 16 kB. The erase function is the same as
2617 * above, but FC000H to FFFFFH will not be erased.
2618 * FIXME: add another eraser when partial erasers are
2619 * supported.
2620 */
2621 },
2622 .printlock = printlock_at49f,
2623 .write = write_jedec_1,
2624 .read = read_memmapped,
2625 .voltage = {4500, 5500},
2626 },
2627
2628 {
2629 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002630 .name = "AT49LH002",
2631 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2632 .manufacture_id = ATMEL_ID,
2633 .model_id = ATMEL_AT49LH002,
2634 .total_size = 256,
2635 .page_size = 0, /* unused */
2636 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2637 .tested = TEST_UNTESTED,
2638 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2639 .probe_timing = TIMING_FIXME,
2640 .block_erasers =
2641 {
2642 {
2643 .eraseblocks = {
2644 {64 * 1024, 3},
2645 {32 * 1024, 1},
2646 {8 * 1024, 2},
2647 {16 * 1024, 1},
2648 },
2649 .block_erase = erase_block_82802ab,
2650 }, {
2651 .eraseblocks = {
2652 {64 * 1024, 4},
2653 },
2654 .block_erase = NULL, /* TODO: Implement. */
2655 },
2656 },
2657 .printlock = NULL, /* TODO */
2658 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2659 .write = write_82802ab,
2660 .read = read_memmapped,
2661 .voltage = {3000, 3600},
2662 },
2663
2664 {
Andrew Morganca081462011-09-13 22:05:44 +00002665 .vendor = "Catalyst",
2666 .name = "CAT28F512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = CATALYST_ID,
2669 .model_id = CATALYST_CAT28F512,
2670 .total_size = 64,
2671 .page_size = 0, /* unused */
2672 .feature_bits = 0,
2673 .tested = TEST_OK_PR,
2674 .probe = probe_jedec, /* FIXME! */
2675 .probe_timing = TIMING_ZERO,
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = NULL, /* TODO */
2681 },
2682 },
2683 .write = NULL, /* TODO */
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002689 .vendor = "Bright",
2690 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002692 .manufacture_id = BRIGHT_ID,
2693 .model_id = BRIGHT_BM29F040,
2694 .total_size = 512,
2695 .page_size = 64 * 1024,
2696 .feature_bits = FEATURE_EITHER_RESET,
2697 .tested = TEST_OK_PR,
2698 .probe = probe_jedec,
2699 .probe_timing = TIMING_ZERO,
2700 .block_erasers =
2701 {
2702 {
2703 .eraseblocks = { {64 * 1024, 8} },
2704 .block_erase = erase_sector_jedec,
2705 }, {
2706 .eraseblocks = { {512 * 1024, 1} },
2707 .block_erase = erase_chip_block_jedec,
2708 },
2709 },
2710 .write = write_jedec_1,
2711 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002712 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002713 },
2714
2715 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002716 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002717 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002718 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002719 .manufacture_id = ESMT_ID,
2720 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002721 .total_size = 256,
2722 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002723 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .tested = TEST_UNTESTED,
2725 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002726 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002727 .block_erasers =
2728 {
2729 {
2730 .eraseblocks = {
2731 {128 * 1024, 1},
2732 {96 * 1024, 1},
2733 {8 * 1024, 2},
2734 {16 * 1024, 1},
2735 },
2736 .block_erase = erase_sector_jedec,
2737 }, {
2738 .eraseblocks = { {256 * 1024, 1} },
2739 .block_erase = erase_chip_block_jedec,
2740 }
2741 },
Sean Nelson35727f72010-01-28 23:55:12 +00002742 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002744 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002745 },
2746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002747 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002748 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00002749 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002750 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002751 .manufacture_id = ESMT_ID,
2752 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002753 .total_size = 1024,
2754 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002755 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002756 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002757 .probe = probe_spi_rdid,
2758 .probe_timing = TIMING_ZERO,
2759 .block_erasers =
2760 {
2761 {
2762 .eraseblocks = { {4 * 1024, 256} },
2763 .block_erase = spi_block_erase_20,
2764 }, {
2765 .eraseblocks = { {64 * 1024, 16} },
2766 .block_erase = spi_block_erase_d8,
2767 }, {
2768 .eraseblocks = { {1024 * 1024, 1} },
2769 .block_erase = spi_block_erase_60,
2770 }, {
2771 .eraseblocks = { {1024 * 1024, 1} },
2772 .block_erase = spi_block_erase_c7,
2773 }
2774 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002775 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002776 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002777 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002778 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002779 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002780 },
2781
2782 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002783 .vendor = "Eon",
2784 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002785 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002786 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002787 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002788 .total_size = 64,
2789 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002790 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002791 .tested = TEST_UNTESTED,
2792 .probe = probe_spi_rdid,
2793 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002794 .block_erasers =
2795 {
2796 {
2797 .eraseblocks = {
2798 {4 * 1024, 2},
2799 {8 * 1024, 1},
2800 {16 * 1024, 1},
2801 {32 * 1024, 1},
2802 },
2803 .block_erase = spi_block_erase_d8,
2804 }, {
2805 .eraseblocks = { {64 * 1024, 1} },
2806 .block_erase = spi_block_erase_c7,
2807 }
2808 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002809 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002810 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002811 .write = spi_chip_write_256,
2812 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002813 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002814 },
2815
2816 {
2817 .vendor = "Eon",
2818 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002819 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002820 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002821 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002822 .total_size = 64,
2823 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002824 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002825 .tested = TEST_UNTESTED,
2826 .probe = probe_spi_rdid,
2827 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = {
2832 {32 * 1024, 1},
2833 {16 * 1024, 1},
2834 {8 * 1024, 1},
2835 {4 * 1024, 2},
2836 },
2837 .block_erase = spi_block_erase_d8,
2838 }, {
2839 .eraseblocks = { {64 * 1024, 1} },
2840 .block_erase = spi_block_erase_c7,
2841 }
2842 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002843 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002844 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002845 .write = spi_chip_write_256,
2846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002847 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002848 },
2849
2850 {
2851 .vendor = "Eon",
2852 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002853 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002854 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002855 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002856 .total_size = 128,
2857 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002858 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002859 .tested = TEST_UNTESTED,
2860 .probe = probe_spi_rdid,
2861 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002862 .block_erasers =
2863 {
2864 {
2865 .eraseblocks = {
2866 {4 * 1024, 2},
2867 {8 * 1024, 1},
2868 {16 * 1024, 1},
2869 {32 * 1024, 3},
2870 },
2871 .block_erase = spi_block_erase_d8,
2872 }, {
2873 .eraseblocks = { {128 * 1024, 1} },
2874 .block_erase = spi_block_erase_c7,
2875 }
2876 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002877 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002878 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002879 .write = spi_chip_write_256,
2880 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002881 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002882 },
2883
2884 {
2885 .vendor = "Eon",
2886 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002887 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002888 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002889 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002890 .total_size = 128,
2891 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002892 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002893 .tested = TEST_UNTESTED,
2894 .probe = probe_spi_rdid,
2895 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002896 .block_erasers =
2897 {
2898 {
2899 .eraseblocks = {
2900 {32 * 1024, 3},
2901 {16 * 1024, 1},
2902 {8 * 1024, 1},
2903 {4 * 1024, 2},
2904 },
2905 .block_erase = spi_block_erase_d8,
2906 }, {
2907 .eraseblocks = { {128 * 1024, 1} },
2908 .block_erase = spi_block_erase_c7,
2909 }
2910 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002911 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002912 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002913 .write = spi_chip_write_256,
2914 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002915 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002916 },
2917
2918 {
2919 .vendor = "Eon",
2920 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002921 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002922 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002923 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002924 .total_size = 256,
2925 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002926 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002927 .tested = TEST_UNTESTED,
2928 .probe = probe_spi_rdid,
2929 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002930 .block_erasers =
2931 {
2932 {
2933 .eraseblocks = {
2934 {4 * 1024, 2},
2935 {8 * 1024, 1},
2936 {16 * 1024, 1},
2937 {32 * 1024, 1},
2938 {64 * 1024, 3}
2939 },
2940 .block_erase = spi_block_erase_d8,
2941 }, {
2942 .eraseblocks = { {256 * 1024, 1} },
2943 .block_erase = spi_block_erase_c7,
2944 }
2945 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002947 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002948 .write = spi_chip_write_256,
2949 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002950 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002951 },
2952
2953 {
2954 .vendor = "Eon",
2955 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002956 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002957 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002958 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002959 .total_size = 256,
2960 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002961 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002962 .tested = TEST_UNTESTED,
2963 .probe = probe_spi_rdid,
2964 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002965 .block_erasers =
2966 {
2967 {
2968 .eraseblocks = {
2969 {64 * 1024, 3},
2970 {32 * 1024, 1},
2971 {16 * 1024, 1},
2972 {8 * 1024, 1},
2973 {4 * 1024, 2},
2974 },
2975 .block_erase = spi_block_erase_d8,
2976 }, {
2977 .eraseblocks = { {256 * 1024, 1} },
2978 .block_erase = spi_block_erase_c7,
2979 }
2980 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002982 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002983 .write = spi_chip_write_256,
2984 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002985 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002986 },
2987
2988 {
2989 .vendor = "Eon",
2990 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002991 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002992 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002993 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002994 .total_size = 512,
2995 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002996 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002997 .tested = TEST_UNTESTED,
2998 .probe = probe_spi_rdid,
2999 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003000 .block_erasers =
3001 {
3002 {
3003 .eraseblocks = {
3004 {4 * 1024, 2},
3005 {8 * 1024, 1},
3006 {16 * 1024, 1},
3007 {32 * 1024, 1},
3008 {64 * 1024, 7}
3009 },
3010 .block_erase = spi_block_erase_d8,
3011 }, {
3012 .eraseblocks = { {512 * 1024, 1} },
3013 .block_erase = spi_block_erase_c7,
3014 }
3015 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003016 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003017 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003018 .write = spi_chip_write_256,
3019 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003020 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003021 },
3022
3023 {
3024 .vendor = "Eon",
3025 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003026 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003027 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003028 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003029 .total_size = 512,
3030 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003031 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003032 .tested = TEST_UNTESTED,
3033 .probe = probe_spi_rdid,
3034 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003035 .block_erasers =
3036 {
3037 {
3038 .eraseblocks = {
3039 {64 * 1024, 7},
3040 {32 * 1024, 1},
3041 {16 * 1024, 1},
3042 {8 * 1024, 1},
3043 {4 * 1024, 2},
3044 },
3045 .block_erase = spi_block_erase_d8,
3046 }, {
3047 .eraseblocks = { {512 * 1024, 1} },
3048 .block_erase = spi_block_erase_c7,
3049 }
3050 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003051 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003052 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003053 .write = spi_chip_write_256,
3054 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003055 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003056 },
3057
3058 {
3059 .vendor = "Eon",
3060 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003061 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003062 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003063 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003064 .total_size = 1024,
3065 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003066 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003067 .tested = TEST_UNTESTED,
3068 .probe = probe_spi_rdid,
3069 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003070 .block_erasers =
3071 {
3072 {
3073 .eraseblocks = {
3074 {4 * 1024, 2},
3075 {8 * 1024, 1},
3076 {16 * 1024, 1},
3077 {32 * 1024, 1},
3078 {64 * 1024, 15}
3079 },
3080 .block_erase = spi_block_erase_d8,
3081 }, {
3082 .eraseblocks = { {1024 * 1024, 1} },
3083 .block_erase = spi_block_erase_c7,
3084 }
3085 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003086 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003087 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003088 .write = spi_chip_write_256,
3089 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003090 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003091 },
3092
3093 {
3094 .vendor = "Eon",
3095 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003096 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003097 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003098 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003099 .total_size = 1024,
3100 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003101 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +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 {64 * 1024, 15},
3110 {32 * 1024, 1},
3111 {16 * 1024, 1},
3112 {8 * 1024, 1},
3113 {4 * 1024, 2},
3114 },
3115 .block_erase = spi_block_erase_d8,
3116 }, {
3117 .eraseblocks = { {1024 * 1024, 1} },
3118 .block_erase = spi_block_erase_c7,
3119 }
3120 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003121 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003122 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003123 .write = spi_chip_write_256,
3124 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003125 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003126 },
3127
3128 {
3129 .vendor = "Eon",
3130 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003131 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003132 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003133 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003134 .total_size = 2048,
3135 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003136 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003137 .tested = TEST_UNTESTED,
3138 .probe = probe_spi_rdid,
3139 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003140 .block_erasers =
3141 {
3142 {
3143 .eraseblocks = {
3144 {4 * 1024, 2},
3145 {8 * 1024, 1},
3146 {16 * 1024, 1},
3147 {32 * 1024, 1},
3148 {64 * 1024, 31},
3149 },
3150 .block_erase = spi_block_erase_d8,
3151 }, {
3152 .eraseblocks = { {2 * 1024 * 1024, 1} },
3153 .block_erase = spi_block_erase_c7,
3154 }
3155 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003156 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003157 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003158 .write = spi_chip_write_256,
3159 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003161 },
3162
3163 {
3164 .vendor = "Eon",
3165 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003166 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003167 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003168 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003169 .total_size = 2048,
3170 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003171 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003172 .tested = TEST_UNTESTED,
3173 .probe = probe_spi_rdid,
3174 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = {
3179 {64 * 1024, 31},
3180 {32 * 1024, 1},
3181 {16 * 1024, 1},
3182 {8 * 1024, 1},
3183 {4 * 1024, 2},
3184 },
3185 .block_erase = spi_block_erase_d8,
3186 }, {
3187 .eraseblocks = { {2 * 1024 * 1024, 1} },
3188 .block_erase = spi_block_erase_c7,
3189 }
3190 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003192 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003193 .write = spi_chip_write_256,
3194 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003195 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003196 },
3197
3198 {
3199 .vendor = "Eon",
3200 .name = "EN25B32",
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_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003204 .total_size = 4096,
3205 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003206 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +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 = {
3214 {4 * 1024, 2},
3215 {8 * 1024, 1},
3216 {16 * 1024, 1},
3217 {32 * 1024, 1},
3218 {64 * 1024, 63},
3219 },
3220 .block_erase = spi_block_erase_d8,
3221 }, {
3222 .eraseblocks = { {4 * 1024 * 1024, 1} },
3223 .block_erase = spi_block_erase_c7,
3224 }
3225 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003226 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003227 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003228 .write = spi_chip_write_256,
3229 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003230 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003231 },
3232
3233 {
3234 .vendor = "Eon",
3235 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003236 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003237 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003238 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003239 .total_size = 4096,
3240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003241 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003242 .tested = TEST_UNTESTED,
3243 .probe = probe_spi_rdid,
3244 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = {
3249 {64 * 1024, 63},
3250 {32 * 1024, 1},
3251 {16 * 1024, 1},
3252 {8 * 1024, 1},
3253 {4 * 1024, 2},
3254 },
3255 .block_erase = spi_block_erase_d8,
3256 }, {
3257 .eraseblocks = { {4 * 1024 * 1024, 1} },
3258 .block_erase = spi_block_erase_c7,
3259 }
3260 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003261 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003262 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003263 .write = spi_chip_write_256,
3264 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003265 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003266 },
3267
3268 {
3269 .vendor = "Eon",
3270 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003271 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003272 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003273 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003274 .total_size = 8192,
3275 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003276 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003277 .tested = TEST_UNTESTED,
3278 .probe = probe_spi_rdid,
3279 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003280 .block_erasers =
3281 {
3282 {
3283 .eraseblocks = {
3284 {4 * 1024, 2},
3285 {8 * 1024, 1},
3286 {16 * 1024, 1},
3287 {32 * 1024, 1},
3288 {64 * 1024, 127},
3289 },
3290 .block_erase = spi_block_erase_d8,
3291 }, {
3292 .eraseblocks = { {8 * 1024 * 1024, 1} },
3293 .block_erase = spi_block_erase_c7,
3294 }
3295 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003297 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003298 .write = spi_chip_write_256,
3299 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003300 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003301 },
3302
3303 {
3304 .vendor = "Eon",
3305 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003306 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003307 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003308 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003309 .total_size = 8192,
3310 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003311 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003312 .tested = TEST_UNTESTED,
3313 .probe = probe_spi_rdid,
3314 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003315 .block_erasers =
3316 {
3317 {
3318 .eraseblocks = {
3319 {64 * 1024, 127},
3320 {32 * 1024, 1},
3321 {16 * 1024, 1},
3322 {8 * 1024, 1},
3323 {4 * 1024, 2},
3324 },
3325 .block_erase = spi_block_erase_d8,
3326 }, {
3327 .eraseblocks = { {8 * 1024 * 1024, 1} },
3328 .block_erase = spi_block_erase_c7,
3329 }
3330 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003331 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003332 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003333 .write = spi_chip_write_256,
3334 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003335 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003336 },
3337
3338 {
3339 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003340 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003341 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003342 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003343 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003344 .total_size = 64,
3345 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003346 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003347 .tested = TEST_UNTESTED,
3348 .probe = probe_spi_rdid,
3349 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003350 .block_erasers =
3351 {
3352 {
3353 .eraseblocks = { {4 * 1024, 16} },
3354 .block_erase = spi_block_erase_20,
3355 }, {
3356 .eraseblocks = { {32 * 1024, 2} },
3357 .block_erase = spi_block_erase_d8,
3358 }, {
3359 .eraseblocks = { {32 * 1024, 2} },
3360 .block_erase = spi_block_erase_52,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 1} },
3363 .block_erase = spi_block_erase_60,
3364 }, {
3365 .eraseblocks = { {64 * 1024, 1} },
3366 .block_erase = spi_block_erase_c7,
3367 }
3368 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003369 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003370 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003371 .write = spi_chip_write_256,
3372 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003373 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003374 },
3375
3376 {
3377 .vendor = "Eon",
3378 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003379 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003380 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003381 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003382 .total_size = 128,
3383 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003384 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003385 .tested = TEST_UNTESTED,
3386 .probe = probe_spi_rdid,
3387 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003388 .block_erasers =
3389 {
3390 {
3391 .eraseblocks = { {4 * 1024, 32} },
3392 .block_erase = spi_block_erase_20,
3393 }, {
3394 .eraseblocks = { {32 * 1024, 4} },
3395 .block_erase = spi_block_erase_d8,
3396 }, {
3397 .eraseblocks = { {32 * 1024, 4} },
3398 .block_erase = spi_block_erase_52,
3399 }, {
3400 .eraseblocks = { {128 * 1024, 1} },
3401 .block_erase = spi_block_erase_60,
3402 }, {
3403 .eraseblocks = { {128 * 1024, 1} },
3404 .block_erase = spi_block_erase_c7,
3405 }
3406 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003407 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003409 .write = spi_chip_write_256,
3410 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003411 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003412 },
3413
3414 {
3415 .vendor = "Eon",
3416 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003417 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003418 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003419 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003420 .total_size = 256,
3421 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003422 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003423 .tested = TEST_UNTESTED,
3424 .probe = probe_spi_rdid,
3425 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .block_erasers =
3427 {
3428 {
3429 .eraseblocks = { {4 * 1024, 64} },
3430 .block_erase = spi_block_erase_20,
3431 }, {
3432 .eraseblocks = { {64 * 1024, 4} },
3433 .block_erase = spi_block_erase_d8,
3434 }, {
3435 .eraseblocks = { {64 * 1024, 4} },
3436 .block_erase = spi_block_erase_52,
3437 }, {
3438 .eraseblocks = { {256 * 1024, 1} },
3439 .block_erase = spi_block_erase_60,
3440 }, {
3441 .eraseblocks = { {256 * 1024, 1} },
3442 .block_erase = spi_block_erase_c7,
3443 }
3444 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003445 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003447 .write = spi_chip_write_256,
3448 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003449 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003450 },
3451
3452 {
3453 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003454 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003455 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003456 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003457 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003458 .total_size = 512,
3459 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003460 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003461 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003462 .probe = probe_spi_rdid,
3463 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003464 .block_erasers =
3465 {
3466 {
Sean Nelson54596372010-01-09 05:30:14 +00003467 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003468 .block_erase = spi_block_erase_20,
3469 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003470 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003471 .block_erase = spi_block_erase_d8,
3472 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003473 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003474 .block_erase = spi_block_erase_60,
3475 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003476 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003477 .block_erase = spi_block_erase_c7,
3478 },
3479 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003480 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003481 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003482 .write = spi_chip_write_256,
3483 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003484 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003485 },
3486
3487 {
3488 .vendor = "Eon",
3489 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003490 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003491 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003492 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003493 .total_size = 1024,
3494 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003495 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003496 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003497 .probe = probe_spi_rdid,
3498 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003499 .block_erasers =
3500 {
3501 {
3502 .eraseblocks = { {4 * 1024, 256} },
3503 .block_erase = spi_block_erase_20,
3504 }, {
3505 .eraseblocks = { {64 * 1024, 16} },
3506 .block_erase = spi_block_erase_d8,
3507 }, {
3508 .eraseblocks = { {1024 * 1024, 1} },
3509 .block_erase = spi_block_erase_60,
3510 }, {
3511 .eraseblocks = { {1024 * 1024, 1} },
3512 .block_erase = spi_block_erase_c7,
3513 }
3514 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003515 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003516 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003517 .write = spi_chip_write_256,
3518 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003519 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003520 },
3521
3522 {
3523 .vendor = "Eon",
3524 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003525 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003526 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003527 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003528 .total_size = 2048,
3529 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003530 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003531 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003532 .probe = probe_spi_rdid,
3533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003534 .block_erasers =
3535 {
3536 {
3537 .eraseblocks = { {4 * 1024, 512} },
3538 .block_erase = spi_block_erase_20,
3539 }, {
3540 .eraseblocks = { {64 * 1024, 32} },
3541 .block_erase = spi_block_erase_d8,
3542 }, {
3543 .eraseblocks = { {2 * 1024 * 1024, 1} },
3544 .block_erase = spi_block_erase_60,
3545 }, {
3546 .eraseblocks = { {2 * 1024 * 1024, 1} },
3547 .block_erase = spi_block_erase_c7,
3548 }
3549 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003550 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003551 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003552 .write = spi_chip_write_256,
3553 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003554 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003555 },
3556
3557 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003558 .vendor = "Eon",
3559 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003560 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003561 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003562 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003563 .total_size = 4096,
3564 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003565 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003566 .tested = TEST_UNTESTED,
3567 .probe = probe_spi_rdid,
3568 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003569 .block_erasers =
3570 {
3571 {
3572 .eraseblocks = { {4 * 1024, 1024} },
3573 .block_erase = spi_block_erase_20,
3574 }, {
3575 .eraseblocks = { {64 * 1024, 64} },
3576 .block_erase = spi_block_erase_d8,
3577 }, {
3578 .eraseblocks = { {4 * 1024 * 1024, 1} },
3579 .block_erase = spi_block_erase_60,
3580 }, {
3581 .eraseblocks = { {4 * 1024 * 1024, 1} },
3582 .block_erase = spi_block_erase_c7,
3583 }
3584 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003585 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003586 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003587 .write = spi_chip_write_256,
3588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003589 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003590 },
3591
3592 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003593 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003594 .name = "EN25F64",
3595 .bustype = BUS_SPI,
3596 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003597 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003598 .total_size = 8192,
3599 .page_size = 256,
3600 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003601 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003602 .probe = probe_spi_rdid,
3603 .probe_timing = TIMING_ZERO,
3604 .block_erasers =
3605 {
3606 {
3607 .eraseblocks = { {4 * 1024, 2048} },
3608 .block_erase = spi_block_erase_20,
3609 }, {
3610 .eraseblocks = { {64 * 1024, 128} },
3611 .block_erase = spi_block_erase_d8,
3612 }, {
3613 .eraseblocks = { {8 * 1024 * 1024, 1} },
3614 .block_erase = spi_block_erase_60,
3615 }, {
3616 .eraseblocks = { {8 * 1024 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
3618 }
3619 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003620 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003621 .unlock = spi_disable_blockprotect,
3622 .write = spi_chip_write_256,
3623 .read = spi_chip_read,
3624 .voltage = {2700, 3600},
3625 },
3626
3627 {
3628 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003629 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003630 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003631 .manufacture_id = EON_ID_NOPREFIX,
3632 .model_id = EON_EN25Q40,
3633 .total_size = 512,
3634 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003635 /* OTP: 256B total; enter 0x3A */
3636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003637 .tested = TEST_UNTESTED,
3638 .probe = probe_spi_rdid,
3639 .probe_timing = TIMING_ZERO,
3640 .block_erasers =
3641 {
3642 {
3643 .eraseblocks = { {4 * 1024, 128} },
3644 .block_erase = spi_block_erase_20,
3645 }, {
3646 .eraseblocks = { {64 * 1024, 8} },
3647 .block_erase = spi_block_erase_d8,
3648 }, {
3649 .eraseblocks = { {512 * 1024, 1} },
3650 .block_erase = spi_block_erase_60,
3651 }, {
3652 .eraseblocks = { {512 * 1024, 1} },
3653 .block_erase = spi_block_erase_c7,
3654 }
3655 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003656 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003657 .unlock = spi_disable_blockprotect,
3658 .write = spi_chip_write_256,
3659 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003660 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003661 },
3662
3663 {
3664 .vendor = "Eon",
3665 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003666 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003667 .manufacture_id = EON_ID_NOPREFIX,
3668 .model_id = EON_EN25Q80,
3669 .total_size = 1024,
3670 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003671 /* OTP: 256B total; enter 0x3A */
3672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003673 .tested = TEST_UNTESTED,
3674 .probe = probe_spi_rdid,
3675 .probe_timing = TIMING_ZERO,
3676 .block_erasers =
3677 {
3678 {
3679 .eraseblocks = { {4 * 1024, 256} },
3680 .block_erase = spi_block_erase_20,
3681 }, {
3682 .eraseblocks = { {64 * 1024, 16} },
3683 .block_erase = spi_block_erase_d8,
3684 }, {
3685 .eraseblocks = { {1024 * 1024, 1} },
3686 .block_erase = spi_block_erase_60,
3687 }, {
3688 .eraseblocks = { {1024 * 1024, 1} },
3689 .block_erase = spi_block_erase_c7,
3690 }
3691 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003693 .unlock = spi_disable_blockprotect,
3694 .write = spi_chip_write_256,
3695 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003696 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003697 },
3698
3699 {
3700 /* Note: EN25D16 is an evil twin which shares the model ID
3701 but has different write protection capabilities */
3702 .vendor = "Eon",
3703 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003704 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003705 .manufacture_id = EON_ID_NOPREFIX,
3706 .model_id = EON_EN25Q16,
3707 .total_size = 2048,
3708 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003709 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3710 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003711 .tested = TEST_UNTESTED,
3712 .probe = probe_spi_rdid,
3713 .probe_timing = TIMING_ZERO,
3714 .block_erasers =
3715 {
3716 {
3717 .eraseblocks = { {4 * 1024, 512} },
3718 .block_erase = spi_block_erase_20,
3719 }, {
3720 .eraseblocks = { {64 * 1024, 32} },
3721 .block_erase = spi_block_erase_d8,
3722 }, {
3723 /* not supported by Q16 version */
3724 .eraseblocks = { {64 * 1024, 32} },
3725 .block_erase = spi_block_erase_52,
3726 }, {
3727 .eraseblocks = { {2 * 1024 * 1024, 1} },
3728 .block_erase = spi_block_erase_60,
3729 }, {
3730 .eraseblocks = { {2 * 1024 * 1024, 1} },
3731 .block_erase = spi_block_erase_c7,
3732 }
3733 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003734 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003735 .unlock = spi_disable_blockprotect,
3736 .write = spi_chip_write_256,
3737 .read = spi_chip_read,
3738 .voltage = {2700, 3600},
3739 },
3740
3741 {
3742 .vendor = "Eon",
3743 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003744 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003745 .manufacture_id = EON_ID_NOPREFIX,
3746 .model_id = EON_EN25Q32,
3747 .total_size = 4096,
3748 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003749 /* OTP: 512B total; enter 0x3A */
3750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003751 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003752 .probe = probe_spi_rdid,
3753 .probe_timing = TIMING_ZERO,
3754 .block_erasers =
3755 {
3756 {
3757 .eraseblocks = { {4 * 1024, 1024} },
3758 .block_erase = spi_block_erase_20,
3759 }, {
3760 .eraseblocks = { {64 * 1024, 64} },
3761 .block_erase = spi_block_erase_d8,
3762 }, {
3763 .eraseblocks = { {4 * 1024 * 1024, 1} },
3764 .block_erase = spi_block_erase_60,
3765 }, {
3766 .eraseblocks = { {4 * 1024 * 1024, 1} },
3767 .block_erase = spi_block_erase_c7,
3768 }
3769 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003770 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003771 .unlock = spi_disable_blockprotect,
3772 .write = spi_chip_write_256,
3773 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003774 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003775 },
3776
3777 {
3778 .vendor = "Eon",
3779 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003780 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003781 .manufacture_id = EON_ID_NOPREFIX,
3782 .model_id = EON_EN25Q64,
3783 .total_size = 8192,
3784 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003785 /* OTP: 512B total; enter 0x3A */
3786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003787 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003788 .probe = probe_spi_rdid,
3789 .probe_timing = TIMING_ZERO,
3790 .block_erasers =
3791 {
3792 {
3793 .eraseblocks = { {4 * 1024, 2048} },
3794 .block_erase = spi_block_erase_20,
3795 }, {
3796 .eraseblocks = { {64 * 1024, 128} },
3797 .block_erase = spi_block_erase_d8,
3798 }, {
3799 .eraseblocks = { {8 * 1024 * 1024, 1} },
3800 .block_erase = spi_block_erase_60,
3801 }, {
3802 .eraseblocks = { {8 * 1024 * 1024, 1} },
3803 .block_erase = spi_block_erase_c7,
3804 }
3805 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003806 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003807 .unlock = spi_disable_blockprotect,
3808 .write = spi_chip_write_256,
3809 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003810 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003811 },
3812
3813 {
3814 .vendor = "Eon",
3815 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003816 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003817 .manufacture_id = EON_ID_NOPREFIX,
3818 .model_id = EON_EN25Q128,
3819 .total_size = 16384,
3820 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003821 /* OTP: 512B total; enter 0x3A */
3822 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003823 .tested = TEST_UNTESTED,
3824 .probe = probe_spi_rdid,
3825 .probe_timing = TIMING_ZERO,
3826 .block_erasers =
3827 {
3828 {
3829 .eraseblocks = { {4 * 1024, 4096} },
3830 .block_erase = spi_block_erase_20,
3831 }, {
3832 .eraseblocks = { {64 * 1024, 256} },
3833 .block_erase = spi_block_erase_d8,
3834 }, {
3835 .eraseblocks = { {16 * 1024 * 1024, 1} },
3836 .block_erase = spi_block_erase_60,
3837 }, {
3838 .eraseblocks = { {16 * 1024 * 1024, 1} },
3839 .block_erase = spi_block_erase_c7,
3840 }
3841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003843 .unlock = spi_disable_blockprotect,
3844 .write = spi_chip_write_256,
3845 .read = spi_chip_read,
3846 },
3847
3848 {
3849 .vendor = "Eon",
3850 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003851 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003852 .manufacture_id = EON_ID_NOPREFIX,
3853 .model_id = EON_EN25QH16,
3854 .total_size = 2048,
3855 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003856 /* supports SFDP */
3857 /* OTP: 512B total; enter 0x3A */
3858 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003859 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003860 .probe = probe_spi_rdid,
3861 .probe_timing = TIMING_ZERO,
3862 .block_erasers =
3863 {
3864 {
3865 .eraseblocks = { {4 * 1024, 512} },
3866 .block_erase = spi_block_erase_20,
3867 }, {
3868 .eraseblocks = { {64 * 1024, 32} },
3869 .block_erase = spi_block_erase_d8,
3870 }, {
3871 .eraseblocks = { {1024 * 2048, 1} },
3872 .block_erase = spi_block_erase_60,
3873 }, {
3874 .eraseblocks = { {1024 * 2048, 1} },
3875 .block_erase = spi_block_erase_c7,
3876 }
3877 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003879 .unlock = spi_disable_blockprotect,
3880 .write = spi_chip_write_256,
3881 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003882 .voltage = {2700, 3600},
3883 },
3884
3885 {
3886 .vendor = "Eon",
3887 .name = "EN25QH32",
3888 .bustype = BUS_SPI,
3889 .manufacture_id = EON_ID_NOPREFIX,
3890 .model_id = EON_EN25QH32,
3891 .total_size = 4096,
3892 .page_size = 256,
3893 /* supports SFDP */
3894 /* OTP: 512B total; enter 0x3A */
3895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3896 .tested = TEST_UNTESTED,
3897 .probe = probe_spi_rdid,
3898 .probe_timing = TIMING_ZERO,
3899 .block_erasers =
3900 {
3901 {
3902 .eraseblocks = { {4 * 1024, 1024} },
3903 .block_erase = spi_block_erase_20,
3904 }, {
3905 .eraseblocks = { {64 * 1024, 64} },
3906 .block_erase = spi_block_erase_d8,
3907 }, {
3908 .eraseblocks = { {1024 * 4096, 1} },
3909 .block_erase = spi_block_erase_60,
3910 }, {
3911 .eraseblocks = { {1024 * 4096, 1} },
3912 .block_erase = spi_block_erase_c7,
3913 }
3914 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003915 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Tauner2cef9162012-05-14 01:51:46 +00003916 .unlock = spi_disable_blockprotect,
3917 .write = spi_chip_write_256,
3918 .read = spi_chip_read,
3919 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003920 },
3921
3922 {
3923 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003924 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003925 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003926 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003927 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003928 .total_size = 128,
3929 .page_size = 128,
3930 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003931 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003932 .probe = probe_jedec,
3933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3934 .block_erasers =
3935 {
3936 {
3937 .eraseblocks = { {16 * 1024, 8} },
3938 .block_erase = erase_sector_jedec,
3939 },
3940 {
3941 .eraseblocks = { {128 * 1024, 1} },
3942 .block_erase = erase_chip_block_jedec,
3943 },
3944 },
3945 .write = write_jedec_1,
3946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003947 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003948 },
3949
3950 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003951 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003952 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003953 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003954 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003955 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003956 .total_size = 256,
3957 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003958 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003959 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003960 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003962 .block_erasers =
3963 {
3964 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003965 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003966 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003967 {8 * 1024, 2},
3968 {32 * 1024, 1},
3969 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003970 },
3971 .block_erase = erase_sector_jedec,
3972 }, {
3973 .eraseblocks = { {256 * 1024, 1} },
3974 .block_erase = erase_chip_block_jedec,
3975 },
3976 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003977 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003979 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003980 },
3981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003982 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003983 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003984 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003985 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003986 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003987 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003988 .total_size = 256,
3989 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003990 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003991 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003992 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003993 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003994 .block_erasers =
3995 {
3996 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003997 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003998 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003999 {32 * 1024, 1},
4000 {8 * 1024, 2},
4001 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004002 },
4003 .block_erase = erase_sector_jedec,
4004 }, {
4005 .eraseblocks = { {256 * 1024, 1} },
4006 .block_erase = erase_chip_block_jedec,
4007 },
4008 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004011 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004012 },
4013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004014 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004015 .vendor = "Eon",
4016 .name = "EN29LV640B",
4017 .bustype = BUS_PARALLEL,
4018 .manufacture_id = EON_ID,
4019 .model_id = EON_EN29LV640B,
4020 .total_size = 8192,
4021 .page_size = 8192,
4022 .feature_bits = 0,
4023 .tested = TEST_OK_PREW,
4024 .probe = probe_en29lv640b,
4025 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4026 .block_erasers =
4027 {
4028 {
4029 .eraseblocks = {
4030 {8 * 1024, 8},
4031 {64 * 1024, 127},
4032 },
4033 .block_erase = block_erase_en29lv640b,
4034 }, {
4035 .eraseblocks = { {8 * 1024 * 1024, 1} },
4036 .block_erase = block_erase_chip_en29lv640b,
4037 },
4038 },
4039 .write = write_en29lv640b,
4040 .read = read_memmapped,
4041 .voltage = {2700, 3600},
4042 },
4043
4044 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004045 .vendor = "Fujitsu",
4046 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004047 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004048 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004049 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004050 .total_size = 512,
4051 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004052 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004053 .tested = TEST_UNTESTED,
4054 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004055 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004056 .block_erasers =
4057 {
4058 {
4059 .eraseblocks = {
4060 {16 * 1024, 1},
4061 {8 * 1024, 2},
4062 {32 * 1024, 1},
4063 {64 * 1024, 7},
4064 },
Sean Nelson35727f72010-01-28 23:55:12 +00004065 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004066 }, {
4067 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004068 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004069 },
4070 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004071 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004073 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004074 },
4075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004076 {
4077 .vendor = "Fujitsu",
4078 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004079 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004080 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004081 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004082 .total_size = 512,
4083 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004084 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004085 .tested = TEST_UNTESTED,
4086 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004087 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004088 .block_erasers =
4089 {
4090 {
4091 .eraseblocks = {
4092 {64 * 1024, 7},
4093 {32 * 1024, 1},
4094 {8 * 1024, 2},
4095 {16 * 1024, 1},
4096 },
Sean Nelson35727f72010-01-28 23:55:12 +00004097 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004098 }, {
4099 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004100 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004101 },
4102 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004103 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004105 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004106 },
4107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004108 {
Sean Nelson35727f72010-01-28 23:55:12 +00004109 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004110 .vendor = "Fujitsu",
4111 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004112 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004113 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004114 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004115 .total_size = 512,
4116 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004117 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004118 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004119 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004120 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004121 .block_erasers =
4122 {
4123 {
4124 .eraseblocks = {
4125 {16 * 1024, 1},
4126 {8 * 1024, 2},
4127 {32 * 1024, 1},
4128 {64 * 1024, 7},
4129 },
4130 .block_erase = block_erase_m29f400bt,
4131 }, {
4132 .eraseblocks = { {512 * 1024, 1} },
4133 .block_erase = block_erase_chip_m29f400bt,
4134 },
4135 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004136 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004137 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004138 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004139 },
4140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004141 {
4142 .vendor = "Fujitsu",
4143 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004144 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004145 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004146 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004147 .total_size = 512,
4148 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004149 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004150 .tested = TEST_UNTESTED,
4151 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004152 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004153 .block_erasers =
4154 {
4155 {
4156 .eraseblocks = {
4157 {64 * 1024, 7},
4158 {32 * 1024, 1},
4159 {8 * 1024, 2},
4160 {16 * 1024, 1},
4161 },
4162 .block_erase = block_erase_m29f400bt,
4163 }, {
4164 .eraseblocks = { {512 * 1024, 1} },
4165 .block_erase = block_erase_chip_m29f400bt,
4166 },
4167 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004168 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004169 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004170 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004171 },
4172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004173 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004174 .vendor = "GigaDevice",
4175 .name = "GD25Q20",
4176 .bustype = BUS_SPI,
4177 .manufacture_id = GIGADEVICE_ID,
4178 .model_id = GIGADEVICE_GD25Q20,
4179 .total_size = 256,
4180 .page_size = 256,
4181 .feature_bits = FEATURE_WRSR_WREN,
4182 .tested = TEST_UNTESTED,
4183 .probe = probe_spi_rdid,
4184 .probe_timing = TIMING_ZERO,
4185 .block_erasers =
4186 {
4187 {
4188 .eraseblocks = { {4 * 1024, 64} },
4189 .block_erase = spi_block_erase_20,
4190 }, {
4191 .eraseblocks = { {32 * 1024, 8} },
4192 .block_erase = spi_block_erase_52,
4193 }, {
4194 .eraseblocks = { {64 * 1024, 4} },
4195 .block_erase = spi_block_erase_d8,
4196 }, {
4197 .eraseblocks = { {256 * 1024, 1} },
4198 .block_erase = spi_block_erase_60,
4199 }, {
4200 .eraseblocks = { {256 * 1024, 1} },
4201 .block_erase = spi_block_erase_c7,
4202 }
4203 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004204 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004205 .unlock = spi_disable_blockprotect,
4206 .write = spi_chip_write_256,
4207 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004208 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004209 },
4210
4211 {
4212 .vendor = "GigaDevice",
4213 .name = "GD25Q40",
4214 .bustype = BUS_SPI,
4215 .manufacture_id = GIGADEVICE_ID,
4216 .model_id = GIGADEVICE_GD25Q40,
4217 .total_size = 512,
4218 .page_size = 256,
4219 .feature_bits = FEATURE_WRSR_WREN,
4220 .tested = TEST_UNTESTED,
4221 .probe = probe_spi_rdid,
4222 .probe_timing = TIMING_ZERO,
4223 .block_erasers =
4224 {
4225 {
4226 .eraseblocks = { {4 * 1024, 128} },
4227 .block_erase = spi_block_erase_20,
4228 }, {
4229 .eraseblocks = { {32 * 1024, 16} },
4230 .block_erase = spi_block_erase_52,
4231 }, {
4232 .eraseblocks = { {64 * 1024, 8} },
4233 .block_erase = spi_block_erase_d8,
4234 }, {
4235 .eraseblocks = { {512 * 1024, 1} },
4236 .block_erase = spi_block_erase_60,
4237 }, {
4238 .eraseblocks = { {512 * 1024, 1} },
4239 .block_erase = spi_block_erase_c7,
4240 }
4241 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004243 .unlock = spi_disable_blockprotect,
4244 .write = spi_chip_write_256,
4245 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004246 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004247 },
4248
4249 {
4250 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004251 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004252 .bustype = BUS_SPI,
4253 .manufacture_id = GIGADEVICE_ID,
4254 .model_id = GIGADEVICE_GD25Q80,
4255 .total_size = 1024,
4256 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004257 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004258 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4259 .tested = TEST_OK_PREW,
4260 .probe = probe_spi_rdid,
4261 .probe_timing = TIMING_ZERO,
4262 .block_erasers =
4263 {
4264 {
4265 .eraseblocks = { {4 * 1024, 256} },
4266 .block_erase = spi_block_erase_20,
4267 }, {
4268 .eraseblocks = { {32 * 1024, 32} },
4269 .block_erase = spi_block_erase_52,
4270 }, {
4271 .eraseblocks = { {64 * 1024, 16} },
4272 .block_erase = spi_block_erase_d8,
4273 }, {
4274 .eraseblocks = { {1024 * 1024, 1} },
4275 .block_erase = spi_block_erase_60,
4276 }, {
4277 .eraseblocks = { {1024 * 1024, 1} },
4278 .block_erase = spi_block_erase_c7,
4279 }
4280 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004281 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004282 .unlock = spi_disable_blockprotect,
4283 .write = spi_chip_write_256,
4284 .read = spi_chip_read,
4285 .voltage = {2700, 3600},
4286 },
4287
4288 {
4289 .vendor = "GigaDevice",
4290 .name = "GD25Q16",
4291 .bustype = BUS_SPI,
4292 .manufacture_id = GIGADEVICE_ID,
4293 .model_id = GIGADEVICE_GD25Q16,
4294 .total_size = 2048,
4295 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004296 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4298 .tested = TEST_UNTESTED,
4299 .probe = probe_spi_rdid,
4300 .probe_timing = TIMING_ZERO,
4301 .block_erasers =
4302 {
4303 {
4304 .eraseblocks = { {4 * 1024, 512} },
4305 .block_erase = spi_block_erase_20,
4306 }, {
4307 .eraseblocks = { {32 * 1024, 64} },
4308 .block_erase = spi_block_erase_52,
4309 }, {
4310 .eraseblocks = { {64 * 1024, 32} },
4311 .block_erase = spi_block_erase_d8,
4312 }, {
4313 .eraseblocks = { {2 * 1024 * 1024, 1} },
4314 .block_erase = spi_block_erase_60,
4315 }, {
4316 .eraseblocks = { {2 * 1024 * 1024, 1} },
4317 .block_erase = spi_block_erase_c7,
4318 }
4319 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004320 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004321 .unlock = spi_disable_blockprotect,
4322 .write = spi_chip_write_256,
4323 .read = spi_chip_read,
4324 .voltage = {2700, 3600},
4325 },
4326
4327 {
4328 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004329 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004330 .bustype = BUS_SPI,
4331 .manufacture_id = GIGADEVICE_ID,
4332 .model_id = GIGADEVICE_GD25Q32,
4333 .total_size = 4096,
4334 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004335 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4337 .tested = TEST_UNTESTED,
4338 .probe = probe_spi_rdid,
4339 .probe_timing = TIMING_ZERO,
4340 .block_erasers =
4341 {
4342 {
4343 .eraseblocks = { {4 * 1024, 1024} },
4344 .block_erase = spi_block_erase_20,
4345 }, {
4346 .eraseblocks = { {32 * 1024, 128} },
4347 .block_erase = spi_block_erase_52,
4348 }, {
4349 .eraseblocks = { {64 * 1024, 64} },
4350 .block_erase = spi_block_erase_d8,
4351 }, {
4352 .eraseblocks = { {4 * 1024 * 1024, 1} },
4353 .block_erase = spi_block_erase_60,
4354 }, {
4355 .eraseblocks = { {4 * 1024 * 1024, 1} },
4356 .block_erase = spi_block_erase_c7,
4357 }
4358 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004359 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004360 .unlock = spi_disable_blockprotect,
4361 .write = spi_chip_write_256,
4362 .read = spi_chip_read,
4363 .voltage = {2700, 3600},
4364 },
4365
4366 {
4367 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004368 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004369 .bustype = BUS_SPI,
4370 .manufacture_id = GIGADEVICE_ID,
4371 .model_id = GIGADEVICE_GD25Q64,
4372 .total_size = 8192,
4373 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004374 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004375 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004376 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004377 .probe = probe_spi_rdid,
4378 .probe_timing = TIMING_ZERO,
4379 .block_erasers =
4380 {
4381 {
4382 .eraseblocks = { {4 * 1024, 2048} },
4383 .block_erase = spi_block_erase_20,
4384 }, {
4385 .eraseblocks = { {32 * 1024, 256} },
4386 .block_erase = spi_block_erase_52,
4387 }, {
4388 .eraseblocks = { {64 * 1024, 128} },
4389 .block_erase = spi_block_erase_d8,
4390 }, {
4391 .eraseblocks = { {8 * 1024 * 1024, 1} },
4392 .block_erase = spi_block_erase_60,
4393 }, {
4394 .eraseblocks = { {8 * 1024 * 1024, 1} },
4395 .block_erase = spi_block_erase_c7,
4396 }
4397 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004398 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004399 .unlock = spi_disable_blockprotect,
4400 .write = spi_chip_write_256,
4401 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004402 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004403 },
4404
4405 {
4406 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004407 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004408 .bustype = BUS_SPI,
4409 .manufacture_id = GIGADEVICE_ID,
4410 .model_id = GIGADEVICE_GD25Q128,
4411 .total_size = 16384,
4412 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004413 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004414 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4415 .tested = TEST_UNTESTED,
4416 .probe = probe_spi_rdid,
4417 .probe_timing = TIMING_ZERO,
4418 .block_erasers =
4419 {
4420 {
4421 .eraseblocks = { {4 * 1024, 4096} },
4422 .block_erase = spi_block_erase_20,
4423 }, {
4424 .eraseblocks = { {32 * 1024, 512} },
4425 .block_erase = spi_block_erase_52,
4426 }, {
4427 .eraseblocks = { {64 * 1024, 256} },
4428 .block_erase = spi_block_erase_d8,
4429 }, {
4430 .eraseblocks = { {16 * 1024 * 1024, 1} },
4431 .block_erase = spi_block_erase_60,
4432 }, {
4433 .eraseblocks = { {16 * 1024 * 1024, 1} },
4434 .block_erase = spi_block_erase_c7,
4435 }
4436 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004437 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004438 .unlock = spi_disable_blockprotect,
4439 .write = spi_chip_write_256,
4440 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004441 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004442 },
4443
4444 {
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004445 .vendor = "GigaDevice",
4446 .name = "GD25LQ32",
4447 .bustype = BUS_SPI,
4448 .manufacture_id = GIGADEVICE_ID,
4449 .model_id = GIGADEVICE_GD25LQ32,
4450 .total_size = 4096,
4451 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004452 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004454 .tested = TEST_OK_PREW,
4455 .probe = probe_spi_rdid,
4456 .probe_timing = TIMING_ZERO,
4457 .block_erasers =
4458 {
4459 {
4460 .eraseblocks = { {4 * 1024, 1024} },
4461 .block_erase = spi_block_erase_20,
4462 }, {
4463 .eraseblocks = { {32 * 1024, 128} },
4464 .block_erase = spi_block_erase_52,
4465 }, {
4466 .eraseblocks = { {64 * 1024, 64} },
4467 .block_erase = spi_block_erase_d8,
4468 }, {
4469 .eraseblocks = { {4 * 1024 * 1024, 1} },
4470 .block_erase = spi_block_erase_60,
4471 }, {
4472 .eraseblocks = { {4 * 1024 * 1024, 1} },
4473 .block_erase = spi_block_erase_c7,
4474 }
4475 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004476 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004477 .unlock = spi_disable_blockprotect,
4478 .write = spi_chip_write_256,
4479 .read = spi_chip_read,
4480 .voltage = {1700, 1950},
4481 },
4482
4483 {
David Borgc96a8bd2010-06-21 16:12:22 +00004484 .vendor = "Hyundai",
4485 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004486 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004487 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004488 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004489 .total_size = 256,
4490 .page_size = 256 * 1024,
4491 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004492 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004493 .probe = probe_jedec,
4494 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4495 .block_erasers =
4496 {
4497 {
4498 .eraseblocks = {
4499 {64 * 1024, 3},
4500 {32 * 1024, 1},
4501 {8 * 1024, 2},
4502 {16 * 1024, 1},
4503 },
4504 .block_erase = erase_sector_jedec,
4505 }, {
4506 .eraseblocks = { {256 * 1024, 1} },
4507 .block_erase = erase_chip_block_jedec,
4508 },
4509 },
4510 .write = write_jedec_1,
4511 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004512 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004513 },
4514
4515 {
4516 .vendor = "Hyundai",
4517 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004518 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004519 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004520 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004521 .total_size = 256,
4522 .page_size = 256 * 1024,
4523 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4524 .tested = TEST_UNTESTED,
4525 .probe = probe_jedec,
4526 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4527 .block_erasers =
4528 {
4529 {
4530 .eraseblocks = {
4531 {16 * 1024, 1},
4532 {8 * 1024, 2},
4533 {32 * 1024, 1},
4534 {64 * 1024, 3},
4535 },
4536 .block_erase = erase_sector_jedec,
4537 }, {
4538 .eraseblocks = { {256 * 1024, 1} },
4539 .block_erase = erase_chip_block_jedec,
4540 },
4541 },
4542 .write = write_jedec_1,
4543 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004544 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004545 },
4546
4547 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004548 .vendor = "Hyundai",
4549 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004550 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004551 .manufacture_id = HYUNDAI_ID,
4552 .model_id = HYUNDAI_HY29F040A,
4553 .total_size = 512,
4554 .page_size = 64 * 1024,
4555 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4556 .tested = TEST_UNTESTED,
4557 .probe = probe_jedec,
4558 .probe_timing = TIMING_ZERO,
4559 .block_erasers =
4560 {
4561 {
4562 .eraseblocks = { {64 * 1024, 8} },
4563 .block_erase = erase_sector_jedec,
4564 }, {
4565 .eraseblocks = { {512 * 1024, 1} },
4566 .block_erase = erase_chip_block_jedec,
4567 },
4568 },
4569 .write = write_jedec_1,
4570 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004571 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004572 },
4573
4574 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004575 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00004576 .name = "25F160S33B8",
4577 .bustype = BUS_SPI,
4578 .manufacture_id = INTEL_ID,
4579 .model_id = INTEL_25F160S33B8,
4580 .total_size = 2048,
4581 .page_size = 256,
4582 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4583 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4584 .tested = TEST_UNTESTED,
4585 .probe = probe_spi_rdid,
4586 .probe_timing = TIMING_ZERO,
4587 .block_erasers =
4588 {
4589 {
4590 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4591 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4592 * have no effect on the memory contents, but sets a flag in the SR.
4593 .eraseblocks = {
4594 {8 * 1024, 8},
4595 {64 * 1024, 31} // inaccessible
4596 },
4597 .block_erase = spi_block_erase_40,
4598 }, { */
4599 .eraseblocks = { {64 * 1024, 32} },
4600 .block_erase = spi_block_erase_d8,
4601 }, {
4602 .eraseblocks = { {2 * 1024 * 1024, 1} },
4603 .block_erase = spi_block_erase_c7,
4604 }
4605 },
4606 .printlock = spi_prettyprint_status_register_s33,
4607 .unlock = spi_disable_blockprotect_s33,
4608 .write = spi_chip_write_256,
4609 .read = spi_chip_read, /* also fast read 0x0B */
4610 .voltage = {2700, 3600},
4611 },
4612
4613 {
4614 .vendor = "Intel",
4615 .name = "25F160S33T8",
4616 .bustype = BUS_SPI,
4617 .manufacture_id = INTEL_ID,
4618 .model_id = INTEL_25F160S33T8,
4619 .total_size = 2048,
4620 .page_size = 256,
4621 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4622 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4623 .tested = TEST_UNTESTED,
4624 .probe = probe_spi_rdid,
4625 .probe_timing = TIMING_ZERO,
4626 .block_erasers =
4627 {
4628 {
4629 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4630 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4631 * have no effect on the memory contents, but sets a flag in the SR.
4632 .eraseblocks = {
4633 {64 * 1024, 31}, // inaccessible
4634 {8 * 1024, 8}
4635 },
4636 .block_erase = spi_block_erase_40,
4637 }, { */
4638 .eraseblocks = { {64 * 1024, 32} },
4639 .block_erase = spi_block_erase_d8,
4640 }, {
4641 .eraseblocks = { {2 * 1024 * 1024, 1} },
4642 .block_erase = spi_block_erase_c7,
4643 }
4644 },
4645 .printlock = spi_prettyprint_status_register_s33,
4646 .unlock = spi_disable_blockprotect_s33,
4647 .write = spi_chip_write_256,
4648 .read = spi_chip_read, /* also fast read 0x0B */
4649 .voltage = {2700, 3600},
4650 },
4651
4652 {
4653 .vendor = "Intel",
4654 .name = "25F320S33B8",
4655 .bustype = BUS_SPI,
4656 .manufacture_id = INTEL_ID,
4657 .model_id = INTEL_25F320S33B8,
4658 .total_size = 4096,
4659 .page_size = 256,
4660 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4661 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4662 .tested = TEST_UNTESTED,
4663 .probe = probe_spi_rdid,
4664 .probe_timing = TIMING_ZERO,
4665 .block_erasers =
4666 {
4667 {
4668 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4669 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4670 * have no effect on the memory contents, but sets a flag in the SR.
4671 .eraseblocks = {
4672 {8 * 1024, 8},
4673 {64 * 1024, 63} // inaccessible
4674 },
4675 .block_erase = spi_block_erase_40,
4676 }, { */
4677 .eraseblocks = { {64 * 1024, 64} },
4678 .block_erase = spi_block_erase_d8,
4679 }, {
4680 .eraseblocks = { {4 * 1024 * 1024, 1} },
4681 .block_erase = spi_block_erase_c7,
4682 }
4683 },
4684 .printlock = spi_prettyprint_status_register_s33,
4685 .unlock = spi_disable_blockprotect_s33,
4686 .write = spi_chip_write_256,
4687 .read = spi_chip_read, /* also fast read 0x0B */
4688 .voltage = {2700, 3600},
4689 },
4690
4691 {
4692 .vendor = "Intel",
4693 .name = "25F320S33T8",
4694 .bustype = BUS_SPI,
4695 .manufacture_id = INTEL_ID,
4696 .model_id = INTEL_25F320S33T8,
4697 .total_size = 4096,
4698 .page_size = 256,
4699 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4700 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4701 .tested = TEST_UNTESTED,
4702 .probe = probe_spi_rdid,
4703 .probe_timing = TIMING_ZERO,
4704 .block_erasers =
4705 {
4706 {
4707 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4708 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4709 * have no effect on the memory contents, but sets a flag in the SR.
4710 .eraseblocks = {
4711 {64 * 1024, 63}, // inaccessible
4712 {8 * 1024, 8}
4713 },
4714 .block_erase = spi_block_erase_40,
4715 }, { */
4716 .eraseblocks = { {64 * 1024, 64} },
4717 .block_erase = spi_block_erase_d8,
4718 }, {
4719 .eraseblocks = { {4 * 1024 * 1024, 1} },
4720 .block_erase = spi_block_erase_c7,
4721 }
4722 },
4723 .printlock = spi_prettyprint_status_register_s33,
4724 .unlock = spi_disable_blockprotect_s33,
4725 .write = spi_chip_write_256,
4726 .read = spi_chip_read, /* also fast read 0x0B */
4727 .voltage = {2700, 3600},
4728 },
4729
4730 {
4731 .vendor = "Intel",
4732 .name = "25F640S33B8",
4733 .bustype = BUS_SPI,
4734 .manufacture_id = INTEL_ID,
4735 .model_id = INTEL_25F640S33B8,
4736 .total_size = 8192,
4737 .page_size = 256,
4738 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4739 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4740 .tested = TEST_UNTESTED,
4741 .probe = probe_spi_rdid,
4742 .probe_timing = TIMING_ZERO,
4743 .block_erasers =
4744 {
4745 {
4746 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4747 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4748 * have no effect on the memory contents, but sets a flag in the SR.
4749 .eraseblocks = {
4750 {8 * 1024, 8},
4751 {64 * 1024, 127} // inaccessible
4752 },
4753 .block_erase = spi_block_erase_40,
4754 }, { */
4755 .eraseblocks = { {64 * 1024, 128} },
4756 .block_erase = spi_block_erase_d8,
4757 }, {
4758 .eraseblocks = { {8 * 1024 * 1024, 1} },
4759 .block_erase = spi_block_erase_c7,
4760 }
4761 },
4762 .printlock = spi_prettyprint_status_register_s33,
4763 .unlock = spi_disable_blockprotect_s33,
4764 .write = spi_chip_write_256,
4765 .read = spi_chip_read, /* also fast read 0x0B */
4766 .voltage = {2700, 3600},
4767 },
4768
4769 {
4770 .vendor = "Intel",
4771 .name = "25F640S33T8",
4772 .bustype = BUS_SPI,
4773 .manufacture_id = INTEL_ID,
4774 .model_id = INTEL_25F640S33T8,
4775 .total_size = 8192,
4776 .page_size = 256,
4777 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4779 .tested = TEST_UNTESTED,
4780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers =
4783 {
4784 {
4785 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4786 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4787 * have no effect on the memory contents, but sets a flag in the SR.
4788 .eraseblocks = {
4789 {64 * 1024, 127}, // inaccessible
4790 {8 * 1024, 8}
4791 },
4792 .block_erase = spi_block_erase_40,
4793 }, { */
4794 .eraseblocks = { {64 * 1024, 128} },
4795 .block_erase = spi_block_erase_d8,
4796 }, {
4797 .eraseblocks = { {8 * 1024 * 1024, 1} },
4798 .block_erase = spi_block_erase_c7,
4799 }
4800 },
4801 .printlock = spi_prettyprint_status_register_s33,
4802 .unlock = spi_disable_blockprotect_s33,
4803 .write = spi_chip_write_256,
4804 .read = spi_chip_read, /* also fast read 0x0B */
4805 .voltage = {2700, 3600},
4806 },
4807
4808 {
4809 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004810 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004811 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004812 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004813 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004814 .total_size = 128,
4815 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004816 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004817 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004818 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004819 .block_erasers =
4820 {
4821 {
4822 .eraseblocks = {
4823 {8 * 1024, 1},
4824 {4 * 1024, 2},
4825 {112 * 1024, 1},
4826 },
Sean Nelson28accc22010-03-19 18:47:06 +00004827 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004828 },
4829 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004830 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004832 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004833 },
4834
4835 {
4836 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004837 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004838 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004839 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004840 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004841 .total_size = 128,
4842 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004843 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004844 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004845 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004846 .block_erasers =
4847 {
4848 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004849 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004850 {112 * 1024, 1},
4851 {4 * 1024, 2},
4852 {8 * 1024, 1},
4853 },
Sean Nelson28accc22010-03-19 18:47:06 +00004854 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004855 },
4856 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004857 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004859 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004860 },
4861
4862 {
4863 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004864 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004865 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004866 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004867 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004868 .total_size = 256,
4869 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004870 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004871 .probe = probe_82802ab,
4872 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4873 .block_erasers =
4874 {
4875 {
4876 .eraseblocks = {
4877 {128 * 1024, 1},
4878 {96 * 1024, 1},
4879 {8 * 1024, 2},
4880 {16 * 1024, 1},
4881 },
4882 .block_erase = erase_block_82802ab,
4883 },
4884 },
4885 .write = write_82802ab,
4886 .read = read_memmapped,
4887 },
4888
4889 {
4890 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004891 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004892 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004893 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004894 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004895 .total_size = 512,
4896 .page_size = 256,
4897 .tested = TEST_UNTESTED,
4898 .probe = probe_82802ab,
4899 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004900 .block_erasers =
4901 {
4902 {
4903 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004904 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004905 },
4906 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004907 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004908 .write = write_82802ab,
4909 .read = read_memmapped,
4910 },
4911
4912 {
4913 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004914 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004915 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004916 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004917 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004918 .total_size = 512,
4919 .page_size = 128 * 1024, /* maximal block size */
4920 .tested = TEST_UNTESTED,
4921 .probe = probe_82802ab,
4922 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4923 .block_erasers =
4924 {
4925 {
4926 .eraseblocks = {
4927 {16 * 1024, 1},
4928 {8 * 1024, 2},
4929 {96 * 1024, 1},
4930 {128 * 1024, 3},
4931 },
4932 .block_erase = erase_block_82802ab,
4933 },
4934 },
4935 .write = write_82802ab,
4936 .read = read_memmapped,
4937 },
4938
4939 {
4940 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004941 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004942 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004943 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004944 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004945 .total_size = 512,
4946 .page_size = 128 * 1024, /* maximal block size */
4947 .tested = TEST_UNTESTED,
4948 .probe = probe_82802ab,
4949 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4950 .block_erasers =
4951 {
4952 {
4953 .eraseblocks = {
4954 {128 * 1024, 3},
4955 {96 * 1024, 1},
4956 {8 * 1024, 2},
4957 {16 * 1024, 1},
4958 },
4959 .block_erase = erase_block_82802ab,
4960 },
4961 },
4962 .write = write_82802ab,
4963 .read = read_memmapped,
4964 },
4965
4966 {
4967 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004968 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004969 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004970 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004971 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004972 .total_size = 512,
4973 .page_size = 128 * 1024, /* maximal block size */
4974 .feature_bits = FEATURE_ADDR_SHIFTED,
4975 .tested = TEST_UNTESTED,
4976 .probe = probe_82802ab,
4977 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4978 .block_erasers =
4979 {
4980 {
4981 .eraseblocks = {
4982 {16 * 1024, 1},
4983 {8 * 1024, 2},
4984 {96 * 1024, 1},
4985 {128 * 1024, 3},
4986 },
4987 .block_erase = erase_block_82802ab,
4988 },
4989 },
4990 .write = write_82802ab,
4991 .read = read_memmapped,
4992 },
4993
4994 {
4995 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004996 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004997 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004998 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004999 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005000 .total_size = 512,
5001 .page_size = 128 * 1024, /* maximal block size */
5002 .feature_bits = FEATURE_ADDR_SHIFTED,
5003 .tested = TEST_UNTESTED,
5004 .probe = probe_82802ab,
5005 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5006 .block_erasers =
5007 {
5008 {
5009 .eraseblocks = {
5010 {128 * 1024, 3},
5011 {96 * 1024, 1},
5012 {8 * 1024, 2},
5013 {16 * 1024, 1},
5014 },
5015 .block_erase = erase_block_82802ab,
5016 },
5017 },
5018 .write = write_82802ab,
5019 .read = read_memmapped,
5020 },
5021
5022 {
5023 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005024 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005025 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005026 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005027 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005028 .total_size = 512,
5029 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005030 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005031 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005032 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005033 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005034 .block_erasers =
5035 {
5036 {
5037 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005038 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005039 },
5040 },
Sean Nelson28accc22010-03-19 18:47:06 +00005041 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005042 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005043 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005044 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005045 },
5046
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005047 {
5048 .vendor = "Intel",
5049 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005050 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005051 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005052 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005053 .total_size = 1024,
5054 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005055 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005056 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005057 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005058 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005059 .block_erasers =
5060 {
5061 {
5062 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005063 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005064 },
5065 },
Sean Nelson28accc22010-03-19 18:47:06 +00005066 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005067 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005069 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005070 },
5071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005072 {
5073 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005074 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005075 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005076 .manufacture_id = MACRONIX_ID,
5077 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005078 .total_size = 64,
5079 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005080 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005081 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005082 .tested = TEST_UNTESTED,
5083 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005084 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005085 .block_erasers =
5086 {
5087 {
5088 .eraseblocks = { {4 * 1024, 16} },
5089 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005090 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005091 .eraseblocks = { {64 * 1024, 1} },
5092 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005093 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005094 .eraseblocks = { {64 * 1024, 1} },
5095 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005096 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005097 .eraseblocks = { {64 * 1024, 1} },
5098 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005099 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005100 .eraseblocks = { {64 * 1024, 1} },
5101 .block_erase = spi_block_erase_c7,
5102 },
5103 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005104 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005105 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005106 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005107 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5108 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005109 },
5110
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005111 {
5112 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005113 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005114 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005115 .manufacture_id = MACRONIX_ID,
5116 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005117 .total_size = 128,
5118 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005119 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005120 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005121 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005122 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005123 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005124 .block_erasers =
5125 {
5126 {
5127 .eraseblocks = { {4 * 1024, 32} },
5128 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005129 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005130 .eraseblocks = { {64 * 1024, 2} },
5131 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005132 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005133 .eraseblocks = { {128 * 1024, 1} },
5134 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005135 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005136 .eraseblocks = { {128 * 1024, 1} },
5137 .block_erase = spi_block_erase_c7,
5138 },
5139 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005140 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005141 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005142 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005143 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005144 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005145 },
5146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005147 {
5148 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005149 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005150 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005151 .manufacture_id = MACRONIX_ID,
5152 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005153 .total_size = 256,
5154 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005155 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005156 .tested = TEST_UNTESTED,
5157 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005158 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005159 .block_erasers =
5160 {
5161 {
5162 .eraseblocks = { {4 * 1024, 64} },
5163 .block_erase = spi_block_erase_20,
5164 }, {
5165 .eraseblocks = { {64 * 1024, 4} },
5166 .block_erase = spi_block_erase_52,
5167 }, {
5168 .eraseblocks = { {64 * 1024, 4} },
5169 .block_erase = spi_block_erase_d8,
5170 }, {
5171 .eraseblocks = { {256 * 1024, 1} },
5172 .block_erase = spi_block_erase_60,
5173 }, {
5174 .eraseblocks = { {256 * 1024, 1} },
5175 .block_erase = spi_block_erase_c7,
5176 },
5177 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005178 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005179 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005180 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005181 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005182 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005183 },
5184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005185 {
5186 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005187 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005188 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005189 .manufacture_id = MACRONIX_ID,
5190 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005191 .total_size = 512,
5192 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005193 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005195 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005196 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005197 .block_erasers =
5198 {
5199 {
5200 .eraseblocks = { {4 * 1024, 128} },
5201 .block_erase = spi_block_erase_20,
5202 }, {
5203 .eraseblocks = { {64 * 1024, 8} },
5204 .block_erase = spi_block_erase_52,
5205 }, {
5206 .eraseblocks = { {64 * 1024, 8} },
5207 .block_erase = spi_block_erase_d8,
5208 }, {
5209 .eraseblocks = { {512 * 1024, 1} },
5210 .block_erase = spi_block_erase_60,
5211 }, {
5212 .eraseblocks = { {512 * 1024, 1} },
5213 .block_erase = spi_block_erase_c7,
5214 },
5215 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005216 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005217 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005218 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005219 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005220 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005221 },
5222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005223 {
5224 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005225 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005226 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005227 .manufacture_id = MACRONIX_ID,
5228 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005229 .total_size = 1024,
5230 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005231 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005232 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005233 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005234 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005235 .block_erasers =
5236 {
5237 {
5238 .eraseblocks = { {4 * 1024, 256} },
5239 .block_erase = spi_block_erase_20,
5240 }, {
5241 .eraseblocks = { {64 * 1024, 16} },
5242 .block_erase = spi_block_erase_52,
5243 }, {
5244 .eraseblocks = { {64 * 1024, 16} },
5245 .block_erase = spi_block_erase_d8,
5246 }, {
5247 .eraseblocks = { {1024 * 1024, 1} },
5248 .block_erase = spi_block_erase_60,
5249 }, {
5250 .eraseblocks = { {1024 * 1024, 1} },
5251 .block_erase = spi_block_erase_c7,
5252 },
5253 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005254 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005255 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005256 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005257 .read = spi_chip_read, /* Fast read (0x0B) supported */
5258 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005259 },
5260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005261 {
5262 .vendor = "Macronix",
5263 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005264 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005265 .manufacture_id = MACRONIX_ID,
5266 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005267 .total_size = 2048,
5268 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005269 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005270 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005271 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005272 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005273 .block_erasers =
5274 {
5275 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005276 .eraseblocks = { {64 * 1024, 32} },
5277 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005278 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005279 .eraseblocks = { {64 * 1024, 32} },
5280 .block_erase = spi_block_erase_d8,
5281 }, {
5282 .eraseblocks = { {2 * 1024 * 1024, 1} },
5283 .block_erase = spi_block_erase_60,
5284 }, {
5285 .eraseblocks = { {2 * 1024 * 1024, 1} },
5286 .block_erase = spi_block_erase_c7,
5287 },
5288 },
5289 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
5290 .unlock = spi_disable_blockprotect,
5291 .write = spi_chip_write_256,
5292 .read = spi_chip_read, /* Fast read (0x0B) supported */
5293 .voltage = {2700, 3600},
5294 },
5295
5296 {
5297 .vendor = "Macronix",
5298 .name = "MX25L1605A/MX25L1606E",
5299 .bustype = BUS_SPI,
5300 .manufacture_id = MACRONIX_ID,
5301 .model_id = MACRONIX_MX25L1605,
5302 .total_size = 2048,
5303 .page_size = 256,
5304 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
5305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5306 .tested = TEST_OK_PREW,
5307 .probe = probe_spi_rdid,
5308 .probe_timing = TIMING_ZERO,
5309 .block_erasers =
5310 {
5311 {
5312 .eraseblocks = { {4 * 1024, 512} },
5313 .block_erase = spi_block_erase_20,
5314 }, {
5315 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005316 .block_erase = spi_block_erase_52,
5317 }, {
5318 .eraseblocks = { {64 * 1024, 32} },
5319 .block_erase = spi_block_erase_d8,
5320 }, {
5321 .eraseblocks = { {2 * 1024 * 1024, 1} },
5322 .block_erase = spi_block_erase_60,
5323 }, {
5324 .eraseblocks = { {2 * 1024 * 1024, 1} },
5325 .block_erase = spi_block_erase_c7,
5326 },
5327 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005328 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005329 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005330 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005331 .read = spi_chip_read, /* Fast read (0x0B) supported */
5332 .voltage = {2700, 3600},
5333 },
5334
5335 {
5336 .vendor = "Macronix",
5337 .name = "MX25L1605D/MX25L1608D",
5338 .bustype = BUS_SPI,
5339 .manufacture_id = MACRONIX_ID,
5340 .model_id = MACRONIX_MX25L1605,
5341 .total_size = 2048,
5342 .page_size = 256,
5343 .feature_bits = FEATURE_WRSR_WREN,
5344 .tested = TEST_OK_PREW,
5345 .probe = probe_spi_rdid,
5346 .probe_timing = TIMING_ZERO,
5347 .block_erasers =
5348 {
5349 {
5350 .eraseblocks = { {4 * 1024, 512} },
5351 .block_erase = spi_block_erase_20,
5352 }, {
5353 .eraseblocks = { {64 * 1024, 32} },
5354 .block_erase = spi_block_erase_d8,
5355 }, {
5356 .eraseblocks = { {2 * 1024 * 1024, 1} },
5357 .block_erase = spi_block_erase_60,
5358 }, {
5359 .eraseblocks = { {2 * 1024 * 1024, 1} },
5360 .block_erase = spi_block_erase_c7,
5361 },
5362 },
5363 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
5364 .unlock = spi_disable_blockprotect,
5365 .write = spi_chip_write_256,
5366 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005367 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005368 },
5369
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005370 {
5371 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005372 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005373 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005374 .manufacture_id = MACRONIX_ID,
5375 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005376 .total_size = 2048,
5377 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005378 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005380 .tested = TEST_UNTESTED,
5381 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005382 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005383 .block_erasers =
5384 {
5385 {
5386 .eraseblocks = { {4 * 1024, 512} },
5387 .block_erase = spi_block_erase_20,
5388 }, {
5389 .eraseblocks = { {64 * 1024, 32} },
5390 .block_erase = spi_block_erase_d8,
5391 }, {
5392 .eraseblocks = { {2 * 1024 * 1024, 1} },
5393 .block_erase = spi_block_erase_60,
5394 }, {
5395 .eraseblocks = { {2 * 1024 * 1024, 1} },
5396 .block_erase = spi_block_erase_c7,
5397 }
5398 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005399 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005400 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005401 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005402 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005403 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005404 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005405
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005406 {
5407 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005408 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005409 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005410 .manufacture_id = MACRONIX_ID,
5411 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005412 .total_size = 2048,
5413 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005414 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005416 .tested = TEST_UNTESTED,
5417 .probe = probe_spi_rdid,
5418 .probe_timing = TIMING_ZERO,
5419 .block_erasers =
5420 {
5421 {
5422 .eraseblocks = { {4 * 1024, 512} },
5423 .block_erase = spi_block_erase_20,
5424 }, {
5425 .eraseblocks = { {64 * 1024, 32} },
5426 .block_erase = spi_block_erase_d8,
5427 }, {
5428 .eraseblocks = { {2 * 1024 * 1024, 1} },
5429 .block_erase = spi_block_erase_60,
5430 }, {
5431 .eraseblocks = { {2 * 1024 * 1024, 1} },
5432 .block_erase = spi_block_erase_c7,
5433 }
5434 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005435 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005436 .unlock = spi_disable_blockprotect,
5437 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005438 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00005439 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005440 },
5441
5442 {
5443 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005444 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005445 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005446 .manufacture_id = MACRONIX_ID,
5447 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005448 .total_size = 4096,
5449 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005450 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00005451 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005452 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005453 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005454 .block_erasers =
5455 {
5456 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005457 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005458 .block_erase = spi_block_erase_20,
5459 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005460 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005461 .block_erase = spi_block_erase_d8,
5462 }, {
5463 .eraseblocks = { {4 * 1024 * 1024, 1} },
5464 .block_erase = spi_block_erase_60,
5465 }, {
5466 .eraseblocks = { {4 * 1024 * 1024, 1} },
5467 .block_erase = spi_block_erase_c7,
5468 },
5469 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005470 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005471 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005472 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005473 .read = spi_chip_read, /* Fast read (0x0B) supported */
5474 .voltage = {2700, 3600},
5475 },
5476
5477 {
5478 .vendor = "Macronix",
5479 .name = "MX25L3205D/MX25L3208D",
5480 .bustype = BUS_SPI,
5481 .manufacture_id = MACRONIX_ID,
5482 .model_id = MACRONIX_MX25L3205,
5483 .total_size = 4096,
5484 .page_size = 256,
5485 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5487 .tested = TEST_OK_PREW,
5488 .probe = probe_spi_rdid,
5489 .probe_timing = TIMING_ZERO,
5490 .block_erasers =
5491 {
5492 {
5493 .eraseblocks = { {4 * 1024, 1024} },
5494 .block_erase = spi_block_erase_20,
5495 }, {
5496 .eraseblocks = { {64 * 1024, 64} },
5497 .block_erase = spi_block_erase_d8,
5498 }, {
5499 .eraseblocks = { {4 * 1024 * 1024, 1} },
5500 .block_erase = spi_block_erase_60,
5501 }, {
5502 .eraseblocks = { {4 * 1024 * 1024, 1} },
5503 .block_erase = spi_block_erase_c7,
5504 },
5505 },
5506 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
5507 .unlock = spi_disable_blockprotect,
5508 .write = spi_chip_write_256,
5509 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
5510 .voltage = {2700, 3600},
5511 },
5512
5513 {
5514 .vendor = "Macronix",
5515 .name = "MX25L3206E",
5516 .bustype = BUS_SPI,
5517 .manufacture_id = MACRONIX_ID,
5518 .model_id = MACRONIX_MX25L3205,
5519 .total_size = 4096,
5520 .page_size = 256,
5521 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5523 .tested = TEST_OK_PREW,
5524 .probe = probe_spi_rdid,
5525 .probe_timing = TIMING_ZERO,
5526 .block_erasers =
5527 {
5528 {
5529 .eraseblocks = { {4 * 1024, 1024} },
5530 .block_erase = spi_block_erase_20,
5531 }, {
5532 .eraseblocks = { {64 * 1024, 64} },
5533 .block_erase = spi_block_erase_d8,
5534 }, {
5535 .eraseblocks = { {64 * 1024, 64} },
5536 .block_erase = spi_block_erase_52,
5537 }, {
5538 .eraseblocks = { {4 * 1024 * 1024, 1} },
5539 .block_erase = spi_block_erase_60,
5540 }, {
5541 .eraseblocks = { {4 * 1024 * 1024, 1} },
5542 .block_erase = spi_block_erase_c7,
5543 },
5544 },
5545 .printlock = spi_prettyprint_status_register_default_bp3,
5546 .unlock = spi_disable_blockprotect,
5547 .write = spi_chip_write_256,
5548 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005550 },
5551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005552 {
5553 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005554 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005555 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005556 .manufacture_id = MACRONIX_ID,
5557 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005558 .total_size = 4096,
5559 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005560 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
5561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005562 .tested = TEST_UNTESTED,
5563 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005564 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005565 .block_erasers =
5566 {
5567 {
5568 .eraseblocks = { {4 * 1024, 1024} },
5569 .block_erase = spi_block_erase_20,
5570 }, {
5571 .eraseblocks = { {64 * 1024, 64} },
5572 .block_erase = spi_block_erase_d8,
5573 }, {
5574 .eraseblocks = { {4 * 1024 * 1024, 1} },
5575 .block_erase = spi_block_erase_60,
5576 }, {
5577 .eraseblocks = { {4 * 1024 * 1024, 1} },
5578 .block_erase = spi_block_erase_c7,
5579 }
5580 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005581 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005582 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005583 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005584 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005585 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005586 },
5587
5588 {
5589 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005590 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005591 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005592 .manufacture_id = MACRONIX_ID,
5593 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005594 .total_size = 8192,
5595 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005596 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
5597 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00005598 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005599 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005600 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005601 .block_erasers =
5602 {
5603 {
5604 .eraseblocks = { {64 * 1024, 128} },
5605 .block_erase = spi_block_erase_20,
5606 }, {
5607 .eraseblocks = { {64 * 1024, 128} },
5608 .block_erase = spi_block_erase_d8,
5609 }, {
5610 .eraseblocks = { {8 * 1024 * 1024, 1} },
5611 .block_erase = spi_block_erase_60,
5612 }, {
5613 .eraseblocks = { {8 * 1024 * 1024, 1} },
5614 .block_erase = spi_block_erase_c7,
5615 }
5616 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005617 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005618 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005619 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005620 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005621 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005622 },
5623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005624 {
5625 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005626 .name = "MX25L6406E/MX25L6436E",
5627 .bustype = BUS_SPI,
5628 .manufacture_id = MACRONIX_ID,
5629 .model_id = MACRONIX_MX25L6405,
5630 .total_size = 8192,
5631 .page_size = 256,
5632 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
5633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5634 .tested = TEST_OK_PREW,
5635 .probe = probe_spi_rdid,
5636 .probe_timing = TIMING_ZERO,
5637 .block_erasers =
5638 {
5639 {
5640 .eraseblocks = { {4 * 1024, 2048} },
5641 .block_erase = spi_block_erase_20,
5642 }, {
5643 .eraseblocks = { {64 * 1024, 128} },
5644 .block_erase = spi_block_erase_d8,
5645 }, {
5646 .eraseblocks = { {8 * 1024 * 1024, 1} },
5647 .block_erase = spi_block_erase_60,
5648 }, {
5649 .eraseblocks = { {8 * 1024 * 1024, 1} },
5650 .block_erase = spi_block_erase_c7,
5651 }
5652 },
5653 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
5654 .unlock = spi_disable_blockprotect,
5655 .write = spi_chip_write_256,
5656 .read = spi_chip_read,
5657 .voltage = {2700, 3600},
5658 },
5659
5660 {
5661 .vendor = "Macronix",
5662 .name = "MX25L6445E",
5663 .bustype = BUS_SPI,
5664 .manufacture_id = MACRONIX_ID,
5665 .model_id = MACRONIX_MX25L6405,
5666 .total_size = 8192,
5667 .page_size = 256,
5668 /* supports SFDP */
5669 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5671 .tested = TEST_OK_PREW,
5672 .probe = probe_spi_rdid,
5673 .probe_timing = TIMING_ZERO,
5674 .block_erasers =
5675 {
5676 {
5677 .eraseblocks = { {4 * 1024, 2048} },
5678 .block_erase = spi_block_erase_20,
5679 }, {
5680 .eraseblocks = { {32 * 1024, 256} },
5681 .block_erase = spi_block_erase_52,
5682 }, {
5683 .eraseblocks = { {64 * 1024, 128} },
5684 .block_erase = spi_block_erase_d8,
5685 }, {
5686 .eraseblocks = { {8 * 1024 * 1024, 1} },
5687 .block_erase = spi_block_erase_60,
5688 }, {
5689 .eraseblocks = { {8 * 1024 * 1024, 1} },
5690 .block_erase = spi_block_erase_c7,
5691 }
5692 },
5693 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5694 .unlock = spi_disable_blockprotect,
5695 .write = spi_chip_write_256,
5696 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5697 .voltage = {2700, 3600},
5698 },
5699
5700 {
5701 .vendor = "Macronix",
5702 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005703 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005704 .manufacture_id = MACRONIX_ID,
5705 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005706 .total_size = 16384,
5707 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005708 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
5709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005710 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005711 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005712 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005713 .block_erasers =
5714 {
5715 {
5716 .eraseblocks = { {4 * 1024, 4096} },
5717 .block_erase = spi_block_erase_20,
5718 }, {
5719 .eraseblocks = { {64 * 1024, 256} },
5720 .block_erase = spi_block_erase_d8,
5721 }, {
5722 .eraseblocks = { {16 * 1024 * 1024, 1} },
5723 .block_erase = spi_block_erase_60,
5724 }, {
5725 .eraseblocks = { {16 * 1024 * 1024, 1} },
5726 .block_erase = spi_block_erase_c7,
5727 }
5728 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005729 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005730 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005731 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005732 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005733 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005734 },
5735
5736 {
5737 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00005738 .name = "MX25U1635E",
5739 .bustype = BUS_SPI,
5740 .manufacture_id = MACRONIX_ID,
5741 .model_id = MACRONIX_MX25U1635E,
5742 .total_size = 2048,
5743 .page_size = 256,
5744 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5745 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5746 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5747 .tested = TEST_UNTESTED,
5748 .probe = probe_spi_rdid,
5749 .probe_timing = TIMING_ZERO,
5750 .block_erasers =
5751 {
5752 {
5753 .eraseblocks = { {4 * 1024, 512} },
5754 .block_erase = spi_block_erase_20,
5755 }, {
5756 .eraseblocks = { {32 * 1024, 64} },
5757 .block_erase = spi_block_erase_52,
5758 }, {
5759 .eraseblocks = { {64 * 1024, 32} },
5760 .block_erase = spi_block_erase_d8,
5761 }, {
5762 .eraseblocks = { {2 * 1024 * 1024, 1} },
5763 .block_erase = spi_block_erase_60,
5764 }, {
5765 .eraseblocks = { {2 * 1024 * 1024, 1} },
5766 .block_erase = spi_block_erase_c7,
5767 }
5768 },
5769 /* TODO: security register */
5770 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5771 .unlock = spi_disable_blockprotect,
5772 .write = spi_chip_write_256,
5773 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5774 .voltage = {1650, 2000},
5775 },
5776
5777 {
5778 .vendor = "Macronix",
5779 .name = "MX25U3235E/F",
5780 .bustype = BUS_SPI,
5781 .manufacture_id = MACRONIX_ID,
5782 .model_id = MACRONIX_MX25U3235E,
5783 .total_size = 4096,
5784 .page_size = 256,
5785 /* F model supports SFDP */
5786 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5787 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5788 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5789 .tested = TEST_OK_PREW,
5790 .probe = probe_spi_rdid,
5791 .probe_timing = TIMING_ZERO,
5792 .block_erasers =
5793 {
5794 {
5795 .eraseblocks = { {4 * 1024, 1024} },
5796 .block_erase = spi_block_erase_20,
5797 }, {
5798 .eraseblocks = { {32 * 1024, 128} },
5799 .block_erase = spi_block_erase_52,
5800 }, {
5801 .eraseblocks = { {64 * 1024, 64} },
5802 .block_erase = spi_block_erase_d8,
5803 }, {
5804 .eraseblocks = { {4 * 1024 * 1024, 1} },
5805 .block_erase = spi_block_erase_60,
5806 }, {
5807 .eraseblocks = { {4 * 1024 * 1024, 1} },
5808 .block_erase = spi_block_erase_c7,
5809 }
5810 },
5811 /* TODO: security register */
5812 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5813 .unlock = spi_disable_blockprotect,
5814 .write = spi_chip_write_256,
5815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5816 .voltage = {1650, 2000},
5817 },
5818
5819 {
5820 .vendor = "Macronix",
5821 .name = "MX25U6435E/F",
5822 .bustype = BUS_SPI,
5823 .manufacture_id = MACRONIX_ID,
5824 .model_id = MACRONIX_MX25U6435E,
5825 .total_size = 8192,
5826 .page_size = 256,
5827 /* F model supports SFDP */
5828 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5829 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5830 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5831 .tested = TEST_UNTESTED,
5832 .probe = probe_spi_rdid,
5833 .probe_timing = TIMING_ZERO,
5834 .block_erasers =
5835 {
5836 {
5837 .eraseblocks = { {4 * 1024, 2048} },
5838 .block_erase = spi_block_erase_20,
5839 }, {
5840 .eraseblocks = { {32 * 1024, 256} },
5841 .block_erase = spi_block_erase_52,
5842 }, {
5843 .eraseblocks = { {64 * 1024, 128} },
5844 .block_erase = spi_block_erase_d8,
5845 }, {
5846 .eraseblocks = { {8 * 1024 * 1024, 1} },
5847 .block_erase = spi_block_erase_60,
5848 }, {
5849 .eraseblocks = { {8 * 1024 * 1024, 1} },
5850 .block_erase = spi_block_erase_c7,
5851 }
5852 },
5853 /* TODO: security register */
5854 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5855 .unlock = spi_disable_blockprotect,
5856 .write = spi_chip_write_256,
5857 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5858 .voltage = {1650, 2000},
5859 },
5860
5861 {
5862 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005863 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005864 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005865 .manufacture_id = MACRONIX_ID,
5866 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005867 .total_size = 128,
5868 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005869 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5870 .tested = TEST_UNTESTED,
5871 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005872 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005873 .block_erasers =
5874 {
5875 {
5876 .eraseblocks = {
5877 {8 * 1024, 1},
5878 {4 * 1024, 2},
5879 {8 * 1024, 2},
5880 {32 * 1024, 1},
5881 {64 * 1024, 1},
5882 },
Sean Nelson35727f72010-01-28 23:55:12 +00005883 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005884 }, {
5885 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005886 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005887 }
5888 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005889 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005891 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005892 },
5893
5894 {
5895 .vendor = "Macronix",
5896 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005897 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005898 .manufacture_id = MACRONIX_ID,
5899 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005900 .total_size = 128,
5901 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005902 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005903 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005904 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005905 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005906 .block_erasers =
5907 {
5908 {
5909 .eraseblocks = {
5910 {64 * 1024, 1},
5911 {32 * 1024, 1},
5912 {8 * 1024, 2},
5913 {4 * 1024, 2},
5914 {8 * 1024, 1},
5915 },
Sean Nelson35727f72010-01-28 23:55:12 +00005916 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005917 }, {
5918 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005919 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005920 }
5921 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005922 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005923 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005924 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005925 },
5926
5927 {
5928 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005929 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005930 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005931 .manufacture_id = MACRONIX_ID,
5932 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005933 .total_size = 256,
5934 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005935 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005936 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005937 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005938 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = {
5943 {16 * 1024, 1},
5944 {8 * 1024, 2},
5945 {32 * 1024, 1},
5946 {64 * 1024, 3},
5947 },
Sean Nelson35727f72010-01-28 23:55:12 +00005948 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005949 }, {
5950 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005951 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005952 },
5953 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005954 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005955 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005956 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005957 },
5958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005959 {
5960 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005961 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005962 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005963 .manufacture_id = MACRONIX_ID,
5964 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005965 .total_size = 256,
5966 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005967 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005968 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005969 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005970 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005971 .block_erasers =
5972 {
5973 {
5974 .eraseblocks = {
5975 {64 * 1024, 3},
5976 {32 * 1024, 1},
5977 {8 * 1024, 2},
5978 {16 * 1024, 1},
5979 },
Sean Nelson35727f72010-01-28 23:55:12 +00005980 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005981 }, {
5982 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005983 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005984 },
5985 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005986 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005988 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005989 },
5990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005991 {
5992 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005993 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005994 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005995 .manufacture_id = MACRONIX_ID,
5996 .model_id = MACRONIX_MX29F040,
5997 .total_size = 512,
5998 .page_size = 64 * 1024,
5999 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6000 .tested = TEST_UNTESTED,
6001 .probe = probe_jedec,
6002 .probe_timing = TIMING_ZERO,
6003 .block_erasers =
6004 {
6005 {
6006 .eraseblocks = { {64 * 1024, 8} },
6007 .block_erase = erase_sector_jedec,
6008 }, {
6009 .eraseblocks = { {512 * 1024, 1} },
6010 .block_erase = erase_chip_block_jedec,
6011 },
6012 },
6013 .write = write_jedec_1,
6014 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006015 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006016 },
6017
6018 {
6019 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006020 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006021 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006022 .manufacture_id = MACRONIX_ID,
6023 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006024 .total_size = 512,
6025 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006026 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6027 .tested = TEST_UNTESTED,
6028 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006029 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006030 .block_erasers =
6031 {
6032 {
6033 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006034 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006035 }, {
6036 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006037 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006038 },
6039 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006042 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006043 },
6044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006046 .vendor = "MoselVitelic",
6047 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006048 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006049 .manufacture_id = SYNCMOS_MVC_ID,
6050 .model_id = MVC_V29C51000B,
6051 .total_size = 64,
6052 .page_size = 512,
6053 .feature_bits = FEATURE_EITHER_RESET,
6054 .tested = TEST_UNTESTED,
6055 .probe = probe_jedec,
6056 .probe_timing = TIMING_ZERO,
6057 .block_erasers =
6058 {
6059 {
6060 .eraseblocks = { {512, 128} },
6061 .block_erase = erase_sector_jedec,
6062 }, {
6063 .eraseblocks = { {64 * 1024, 1} },
6064 .block_erase = erase_chip_block_jedec,
6065 },
6066 },
6067 .write = write_jedec_1,
6068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006069 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006070 },
6071
6072 {
6073 .vendor = "MoselVitelic",
6074 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006075 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006076 .manufacture_id = SYNCMOS_MVC_ID,
6077 .model_id = MVC_V29C51000T,
6078 .total_size = 64,
6079 .page_size = 512,
6080 .feature_bits = FEATURE_EITHER_RESET,
6081 .tested = TEST_UNTESTED,
6082 .probe = probe_jedec,
6083 .probe_timing = TIMING_ZERO,
6084 .block_erasers =
6085 {
6086 {
6087 .eraseblocks = { {512, 128} },
6088 .block_erase = erase_sector_jedec,
6089 }, {
6090 .eraseblocks = { {64 * 1024, 1} },
6091 .block_erase = erase_chip_block_jedec,
6092 },
6093 },
6094 .write = write_jedec_1,
6095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006096 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006097 },
6098
6099 {
6100 .vendor = "MoselVitelic",
6101 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006102 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006103 .manufacture_id = SYNCMOS_MVC_ID,
6104 .model_id = MVC_V29C51400B,
6105 .total_size = 512,
6106 .page_size = 1024,
6107 .feature_bits = FEATURE_EITHER_RESET,
6108 .tested = TEST_UNTESTED,
6109 .probe = probe_jedec,
6110 .probe_timing = TIMING_ZERO,
6111 .block_erasers =
6112 {
6113 {
6114 .eraseblocks = { {1024, 512} },
6115 .block_erase = erase_sector_jedec,
6116 }, {
6117 .eraseblocks = { {512 * 1024, 1} },
6118 .block_erase = erase_chip_block_jedec,
6119 },
6120 },
6121 .write = write_jedec_1,
6122 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006123 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006124 },
6125
6126 {
6127 .vendor = "MoselVitelic",
6128 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006129 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006130 .manufacture_id = SYNCMOS_MVC_ID,
6131 .model_id = MVC_V29C51400T,
6132 .total_size = 512,
6133 .page_size = 1024,
6134 .feature_bits = FEATURE_EITHER_RESET,
6135 .tested = TEST_UNTESTED,
6136 .probe = probe_jedec,
6137 .probe_timing = TIMING_ZERO,
6138 .block_erasers =
6139 {
6140 {
6141 .eraseblocks = { {1024, 512} },
6142 .block_erase = erase_sector_jedec,
6143 }, {
6144 .eraseblocks = { {512 * 1024, 1} },
6145 .block_erase = erase_chip_block_jedec,
6146 },
6147 },
6148 .write = write_jedec_1,
6149 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006150 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006151 },
6152
6153 {
6154 .vendor = "MoselVitelic",
6155 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006156 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006157 .manufacture_id = SYNCMOS_MVC_ID,
6158 .model_id = MVC_V29LC51000,
6159 .total_size = 64,
6160 .page_size = 512,
6161 .feature_bits = FEATURE_EITHER_RESET,
6162 .tested = TEST_UNTESTED,
6163 .probe = probe_jedec,
6164 .probe_timing = TIMING_ZERO,
6165 .block_erasers =
6166 {
6167 {
6168 .eraseblocks = { {512, 128} },
6169 .block_erase = erase_sector_jedec,
6170 }, {
6171 .eraseblocks = { {64 * 1024, 1} },
6172 .block_erase = erase_chip_block_jedec,
6173 },
6174 },
6175 .write = write_jedec_1,
6176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006177 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006178 },
6179
6180 {
6181 .vendor = "MoselVitelic",
6182 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006183 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006184 .manufacture_id = SYNCMOS_MVC_ID,
6185 .model_id = MVC_V29LC51001,
6186 .total_size = 128,
6187 .page_size = 512,
6188 .feature_bits = FEATURE_EITHER_RESET,
6189 .tested = TEST_UNTESTED,
6190 .probe = probe_jedec,
6191 .probe_timing = TIMING_ZERO,
6192 .block_erasers =
6193 {
6194 {
6195 .eraseblocks = { {512, 256} },
6196 .block_erase = erase_sector_jedec,
6197 }, {
6198 .eraseblocks = { {128 * 1024, 1} },
6199 .block_erase = erase_chip_block_jedec,
6200 },
6201 },
6202 .write = write_jedec_1,
6203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006204 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006205 },
6206
6207 {
6208 .vendor = "MoselVitelic",
6209 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006210 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006211 .manufacture_id = SYNCMOS_MVC_ID,
6212 .model_id = MVC_V29LC51002,
6213 .total_size = 256,
6214 .page_size = 512,
6215 .feature_bits = FEATURE_EITHER_RESET,
6216 .tested = TEST_UNTESTED,
6217 .probe = probe_jedec,
6218 .probe_timing = TIMING_ZERO,
6219 .block_erasers =
6220 {
6221 {
6222 .eraseblocks = { {512, 512} },
6223 .block_erase = erase_sector_jedec,
6224 }, {
6225 .eraseblocks = { {256 * 1024, 1} },
6226 .block_erase = erase_chip_block_jedec,
6227 },
6228 },
6229 .write = write_jedec_1,
6230 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006231 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006232 },
6233
6234 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006235 .vendor = "Numonyx",
6236 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006237 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006238 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006239 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006240 .total_size = 128,
6241 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006242 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006243 .tested = TEST_UNTESTED,
6244 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006245 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006246 .block_erasers =
6247 {
6248 {
6249 .eraseblocks = { {4 * 1024, 32} },
6250 .block_erase = spi_block_erase_20,
6251 }, {
6252 .eraseblocks = { {64 * 1024, 2} },
6253 .block_erase = spi_block_erase_d8,
6254 }, {
6255 .eraseblocks = { {128 * 1024, 1} },
6256 .block_erase = spi_block_erase_c7,
6257 }
6258 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006259 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006260 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006261 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006262 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006263 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006264 },
6265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006266 {
6267 .vendor = "Numonyx",
6268 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006269 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006270 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006271 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006272 .total_size = 256,
6273 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006274 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006275 .tested = TEST_UNTESTED,
6276 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006277 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006278 .block_erasers =
6279 {
6280 {
6281 .eraseblocks = { {4 * 1024, 64} },
6282 .block_erase = spi_block_erase_20,
6283 }, {
6284 .eraseblocks = { {64 * 1024, 4} },
6285 .block_erase = spi_block_erase_d8,
6286 }, {
6287 .eraseblocks = { {256 * 1024, 1} },
6288 .block_erase = spi_block_erase_c7,
6289 }
6290 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006291 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006292 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006293 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006294 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006295 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006296 },
6297
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006298 {
6299 .vendor = "Numonyx",
6300 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006301 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006302 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006303 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00006304 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006305 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006306 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006307 .tested = TEST_UNTESTED,
6308 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006309 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006310 .block_erasers =
6311 {
6312 {
6313 .eraseblocks = { {4 * 1024, 128} },
6314 .block_erase = spi_block_erase_20,
6315 }, {
6316 .eraseblocks = { {64 * 1024, 8} },
6317 .block_erase = spi_block_erase_d8,
6318 }, {
6319 .eraseblocks = { {512 * 1024, 1} },
6320 .block_erase = spi_block_erase_c7,
6321 }
6322 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006323 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006324 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006325 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006326 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006327 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006328 },
6329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006330 {
6331 .vendor = "Numonyx",
6332 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006333 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006334 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006335 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006336 .total_size = 1024,
6337 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006338 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00006339 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006340 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006341 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006342 .block_erasers =
6343 {
6344 {
6345 .eraseblocks = { {4 * 1024, 256} },
6346 .block_erase = spi_block_erase_20,
6347 }, {
6348 .eraseblocks = { {64 * 1024, 16} },
6349 .block_erase = spi_block_erase_d8,
6350 }, {
6351 .eraseblocks = { {1024 * 1024, 1} },
6352 .block_erase = spi_block_erase_c7,
6353 }
6354 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006355 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006356 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006358 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006359 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006360 },
6361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006362 {
6363 .vendor = "Numonyx",
6364 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006366 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006367 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006368 .total_size = 2048,
6369 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006370 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006371 .tested = TEST_UNTESTED,
6372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006373 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006374 .block_erasers =
6375 {
6376 {
6377 .eraseblocks = { {4 * 1024, 512} },
6378 .block_erase = spi_block_erase_20,
6379 }, {
6380 .eraseblocks = { {64 * 1024, 32} },
6381 .block_erase = spi_block_erase_d8,
6382 }, {
6383 .eraseblocks = { {2 * 1024 * 1024, 1} },
6384 .block_erase = spi_block_erase_c7,
6385 }
6386 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006387 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006388 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006389 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006390 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006391 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006392 },
6393
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006394 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006395 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00006396 .name = "N25Q016",
6397 .bustype = BUS_SPI,
6398 .manufacture_id = ST_ID,
6399 .model_id = ST_N25Q016__1E,
6400 .total_size = 2048,
6401 .page_size = 256,
6402 /* supports SFDP */
6403 /* OTP: 64B total; read 0x4B, write 0x42 */
6404 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6405 .tested = TEST_UNTESTED,
6406 .probe = probe_spi_rdid,
6407 .probe_timing = TIMING_ZERO,
6408 .block_erasers =
6409 {
6410 {
6411 .eraseblocks = { {4 * 1024, 512} },
6412 .block_erase = spi_block_erase_20,
6413 }, {
6414 .eraseblocks = { {32 * 1024, 64} },
6415 .block_erase = spi_block_erase_52,
6416 }, {
6417 .eraseblocks = { {64 * 1024, 32} },
6418 .block_erase = spi_block_erase_d8,
6419 }, {
6420 .eraseblocks = { {2 * 1024 * 1024, 1} },
6421 .block_erase = spi_block_erase_c7,
6422 }
6423 },
6424 .unlock = spi_disable_blockprotect,
6425 .write = spi_chip_write_256,
6426 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6427 .voltage = {1700, 2000},
6428 },
6429
6430 {
6431 .vendor = "Numonyx",
6432 .name = "N25Q032..1E",
6433 .bustype = BUS_SPI,
6434 .manufacture_id = ST_ID,
6435 .model_id = ST_N25Q032__1E,
6436 .total_size = 4096,
6437 .page_size = 256,
6438 /* supports SFDP */
6439 /* OTP: 64B total; read 0x4B, write 0x42 */
6440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6441 .tested = TEST_UNTESTED,
6442 .probe = probe_spi_rdid,
6443 .probe_timing = TIMING_ZERO,
6444 .block_erasers =
6445 {
6446 {
6447 .eraseblocks = { {4 * 1024, 1024} },
6448 .block_erase = spi_block_erase_20,
6449 }, {
6450 .eraseblocks = { {64 * 1024, 64} },
6451 .block_erase = spi_block_erase_d8,
6452 }, {
6453 .eraseblocks = { {4 * 1024 * 1024, 1} },
6454 .block_erase = spi_block_erase_c7,
6455 }
6456 },
6457 .unlock = spi_disable_blockprotect,
6458 .write = spi_chip_write_256,
6459 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6460 .voltage = {1700, 2000},
6461 },
6462
6463 {
6464 .vendor = "Numonyx",
6465 .name = "N25Q032..3E",
6466 .bustype = BUS_SPI,
6467 .manufacture_id = ST_ID,
6468 .model_id = ST_N25Q032__3E,
6469 .total_size = 4096,
6470 .page_size = 256,
6471 /* supports SFDP */
6472 /* OTP: 64B total; read 0x4B, write 0x42 */
6473 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6474 .tested = TEST_UNTESTED,
6475 .probe = probe_spi_rdid,
6476 .probe_timing = TIMING_ZERO,
6477 .block_erasers =
6478 {
6479 {
6480 .eraseblocks = { {4 * 1024, 1024} },
6481 .block_erase = spi_block_erase_20,
6482 }, {
6483 .eraseblocks = { {64 * 1024, 64} },
6484 .block_erase = spi_block_erase_d8,
6485 }, {
6486 .eraseblocks = { {4 * 1024 * 1024, 1} },
6487 .block_erase = spi_block_erase_c7,
6488 }
6489 },
6490 .unlock = spi_disable_blockprotect,
6491 .write = spi_chip_write_256,
6492 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6493 .voltage = {2700, 3600},
6494 },
6495
6496 {
6497 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00006498 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006499 .bustype = BUS_SPI,
6500 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00006501 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006502 .total_size = 8192,
6503 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00006504 /* supports SFDP */
6505 /* OTP: 64B total; read 0x4B, write 0x42 */
6506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6507 .tested = TEST_UNTESTED,
6508 .probe = probe_spi_rdid,
6509 .probe_timing = TIMING_ZERO,
6510 .block_erasers =
6511 {
6512 {
6513 .eraseblocks = { {4 * 1024, 2048 } },
6514 .block_erase = spi_block_erase_20,
6515 }, {
6516 .eraseblocks = { {64 * 1024, 128} },
6517 .block_erase = spi_block_erase_d8,
6518 }, {
6519 .eraseblocks = { {8 * 1024 * 1024, 1} },
6520 .block_erase = spi_block_erase_c7,
6521 }
6522 },
6523 .unlock = spi_disable_blockprotect,
6524 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006525 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006526 .voltage = {1700, 2000},
6527 },
6528
6529 {
6530 .vendor = "Numonyx",
6531 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
6532 .bustype = BUS_SPI,
6533 .manufacture_id = ST_ID,
6534 .model_id = ST_N25Q064__3E,
6535 .total_size = 8192,
6536 .page_size = 256,
6537 /* supports SFDP */
6538 /* OTP: 64B total; read 0x4B, write 0x42 */
6539 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006540 .tested = TEST_OK_PREW,
6541 .probe = probe_spi_rdid,
6542 .probe_timing = TIMING_ZERO,
6543 .block_erasers =
6544 {
6545 {
6546 .eraseblocks = { {4 * 1024, 2048 } },
6547 .block_erase = spi_block_erase_20,
6548 }, {
6549 .eraseblocks = { {64 * 1024, 128} },
6550 .block_erase = spi_block_erase_d8,
6551 }, {
6552 .eraseblocks = { {8 * 1024 * 1024, 1} },
6553 .block_erase = spi_block_erase_c7,
6554 }
6555 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006557 .unlock = spi_disable_blockprotect,
6558 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006559 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006560 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006561 },
6562
6563 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006564 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006565 .name = "Pm25LV512(A)",
6566 .bustype = BUS_SPI,
6567 .manufacture_id = PMC_ID,
6568 .model_id = PMC_PM25LV512,
6569 .total_size = 64,
6570 .page_size = 256,
6571 .feature_bits = FEATURE_WRSR_WREN,
6572 .tested = TEST_UNTESTED,
6573 .probe = probe_spi_res3,
6574 .probe_timing = TIMING_ZERO,
6575 .block_erasers =
6576 {
6577 {
6578 .eraseblocks = { {4 * 1024, 16} },
6579 .block_erase = spi_block_erase_d7,
6580 }, {
6581 .eraseblocks = { {32 * 1024, 2} },
6582 .block_erase = spi_block_erase_d8,
6583 }, {
6584 .eraseblocks = { {64 * 1024, 1} },
6585 .block_erase = spi_block_erase_c7,
6586 }
6587 },
6588 .printlock = spi_prettyprint_status_register_default_bp1,
6589 .unlock = spi_disable_blockprotect,
6590 .write = spi_chip_write_256,
6591 .read = spi_chip_read, /* Fast read (0x0B) supported */
6592 .voltage = {2700, 3600},
6593 },
6594
6595 {
6596 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006597 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006599 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006600 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006601 .total_size = 128,
6602 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006603 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006604 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006605 .probe = probe_spi_res3,
6606 .probe_timing = TIMING_ZERO,
6607 .block_erasers =
6608 {
6609 {
6610 .eraseblocks = { {4 * 1024, 32} },
6611 .block_erase = spi_block_erase_d7,
6612 }, {
6613 .eraseblocks = { {32 * 1024, 4} },
6614 .block_erase = spi_block_erase_d8,
6615 }, {
6616 .eraseblocks = { {128 * 1024, 1} },
6617 .block_erase = spi_block_erase_c7,
6618 }
6619 },
6620 .printlock = spi_prettyprint_status_register_default_bp1,
6621 .unlock = spi_disable_blockprotect,
6622 .write = spi_chip_write_256,
6623 .read = spi_chip_read, /* Fast read (0x0B) supported */
6624 .voltage = {2700, 3600},
6625 },
6626
6627 {
6628 .vendor = "PMC",
6629 .name = "Pm25LV010A",
6630 .bustype = BUS_SPI,
6631 .manufacture_id = PMC_ID,
6632 .model_id = PMC_PM25LV010,
6633 .total_size = 128,
6634 .page_size = 256,
6635 .feature_bits = FEATURE_WRSR_WREN,
6636 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006637 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006638 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006639 .block_erasers =
6640 {
6641 {
6642 .eraseblocks = { {4 * 1024, 32} },
6643 .block_erase = spi_block_erase_d7,
6644 }, {
6645 .eraseblocks = { {32 * 1024, 4} },
6646 .block_erase = spi_block_erase_d8,
6647 }, {
6648 .eraseblocks = { {128 * 1024, 1} },
6649 .block_erase = spi_block_erase_c7,
6650 }
6651 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006652 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006653 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006654 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006655 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006656 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006657 },
6658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006659 {
6660 .vendor = "PMC",
6661 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006662 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006663 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006664 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006665 .total_size = 256,
6666 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006667 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006668 .tested = TEST_UNTESTED,
6669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006670 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006671 .block_erasers =
6672 {
6673 {
6674 .eraseblocks = { {4 * 1024, 64} },
6675 .block_erase = spi_block_erase_d7,
6676 }, {
6677 .eraseblocks = { {64 * 1024, 4} },
6678 .block_erase = spi_block_erase_d8,
6679 }, {
6680 .eraseblocks = { {256 * 1024, 1} },
6681 .block_erase = spi_block_erase_c7,
6682 }
6683 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006684 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006685 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006686 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006687 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006688 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006689 },
6690
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006691 {
6692 .vendor = "PMC",
6693 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006694 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006695 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006696 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006697 .total_size = 512,
6698 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006699 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00006700 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006701 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006702 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006703 .block_erasers =
6704 {
6705 {
6706 .eraseblocks = { {4 * 1024, 128} },
6707 .block_erase = spi_block_erase_d7,
6708 }, {
6709 .eraseblocks = { {64 * 1024, 8} },
6710 .block_erase = spi_block_erase_d8,
6711 }, {
6712 .eraseblocks = { {512 * 1024, 1} },
6713 .block_erase = spi_block_erase_c7,
6714 }
6715 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006716 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006717 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006718 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006719 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006720 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006721 },
6722
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006723 {
6724 .vendor = "PMC",
6725 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006726 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006727 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006728 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006729 .total_size = 1024,
6730 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006731 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006732 .tested = TEST_UNTESTED,
6733 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006734 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006735 .block_erasers =
6736 {
6737 {
6738 .eraseblocks = { {4 * 1024, 256} },
6739 .block_erase = spi_block_erase_d7,
6740 }, {
6741 .eraseblocks = { {4 * 1024, 256} },
6742 .block_erase = spi_block_erase_20,
6743 }, {
6744 .eraseblocks = { {64 * 1024, 16} },
6745 .block_erase = spi_block_erase_d8,
6746 }, {
6747 .eraseblocks = { {1024 * 1024, 1} },
6748 .block_erase = spi_block_erase_60,
6749 }, {
6750 .eraseblocks = { {1024 * 1024, 1} },
6751 .block_erase = spi_block_erase_c7,
6752 }
6753 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006754 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006755 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006756 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006757 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006758 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006759 },
6760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006761 {
6762 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006763 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006764 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006765 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006766 .model_id = PMC_PM25LV016B,
6767 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006768 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006769 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006770 .tested = TEST_UNTESTED,
6771 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006772 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006773 .block_erasers =
6774 {
6775 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006776 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00006777 .block_erase = spi_block_erase_d7,
6778 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006779 .eraseblocks = { {4 * 1024, 512} },
6780 .block_erase = spi_block_erase_20,
6781 }, {
6782 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00006783 .block_erase = spi_block_erase_d8,
6784 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006785 .eraseblocks = { {2 * 1024 * 1024, 1} },
6786 .block_erase = spi_block_erase_60,
6787 }, {
6788 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00006789 .block_erase = spi_block_erase_c7,
6790 }
6791 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006792 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006793 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006794 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006795 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006796 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006797 },
6798
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006799 {
6800 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006801 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006802 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006803 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006804 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006805 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006806 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006807 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006808 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006809 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006810 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006811 .block_erasers =
6812 {
6813 {
6814 .eraseblocks = {
6815 {128 * 1024, 1},
6816 {96 * 1024, 1},
6817 {8 * 1024, 2},
6818 {16 * 1024, 1},
6819 },
Sean Nelson35727f72010-01-28 23:55:12 +00006820 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006821 }, {
6822 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006823 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006824 },
6825 },
Sean Nelson35727f72010-01-28 23:55:12 +00006826 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006828 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006829 },
6830
6831 {
6832 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006833 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006834 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006835 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006836 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006837 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006838 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006839 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006840 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006841 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006842 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006843 .block_erasers =
6844 {
6845 {
6846 .eraseblocks = {
6847 {16 * 1024, 1},
6848 {8 * 1024, 2},
6849 {96 * 1024, 1},
6850 {128 * 1024, 1},
6851 },
Sean Nelson35727f72010-01-28 23:55:12 +00006852 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006853 }, {
6854 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006855 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006856 },
6857 },
Sean Nelson35727f72010-01-28 23:55:12 +00006858 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006859 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006860 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006861 },
6862
6863 {
6864 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006865 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006866 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006867 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006868 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006869 .total_size = 128,
6870 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006871 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006872 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006873 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006874 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00006875 .block_erasers =
6876 {
6877 {
6878 .eraseblocks = { {4 * 1024, 32} },
6879 .block_erase = erase_sector_jedec,
6880 }, {
6881 .eraseblocks = { {64 * 1024, 2} },
6882 .block_erase = erase_block_jedec,
6883 }, {
6884 .eraseblocks = { {128 * 1024, 1} },
6885 .block_erase = erase_chip_block_jedec,
6886 }
6887 },
Sean Nelson35727f72010-01-28 23:55:12 +00006888 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006889 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006890 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006891 },
6892
6893 {
6894 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006895 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006896 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006897 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006898 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006899 .total_size = 256,
6900 .page_size = 4096,
6901 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6902 .tested = TEST_UNTESTED,
6903 .probe = probe_jedec,
6904 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6905 .block_erasers =
6906 {
6907 {
6908 .eraseblocks = { {4 * 1024, 64} },
6909 .block_erase = erase_sector_jedec,
6910 }, {
6911 .eraseblocks = { {64 * 1024, 4} },
6912 .block_erase = erase_block_jedec,
6913 }, {
6914 .eraseblocks = { {256 * 1024, 1} },
6915 .block_erase = erase_chip_block_jedec,
6916 }
6917 },
6918 .write = write_jedec_1,
6919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006920 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006921 },
6922
6923 {
6924 .vendor = "PMC",
6925 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006926 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006927 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006928 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006929 .total_size = 512,
6930 .page_size = 4096,
6931 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006932 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006933 .probe = probe_jedec,
6934 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6935 .block_erasers =
6936 {
6937 {
6938 .eraseblocks = { {4 * 1024, 128} },
6939 .block_erase = erase_sector_jedec,
6940 }, {
6941 .eraseblocks = { {64 * 1024, 8} },
6942 .block_erase = erase_block_jedec,
6943 }, {
6944 .eraseblocks = { {512 * 1024, 1} },
6945 .block_erase = erase_chip_block_jedec,
6946 }
6947 },
6948 .write = write_jedec_1,
6949 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006950 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006951 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00006952
6953 {
6954 .vendor = "PMC",
6955 .name = "Pm39LV512",
6956 .bustype = BUS_PARALLEL,
6957 .manufacture_id = PMC_ID_NOPREFIX,
6958 .model_id = PMC_PM39LV512,
6959 .total_size = 64,
6960 .page_size = 4096,
6961 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6962 .tested = TEST_OK_PREW,
6963 .probe = probe_jedec,
6964 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6965 .block_erasers =
6966 {
6967 {
6968 .eraseblocks = { {4 * 1024, 16} },
6969 .block_erase = erase_sector_jedec,
6970 }, {
6971 .eraseblocks = { {64 * 1024, 1} },
6972 .block_erase = erase_block_jedec,
6973 }, {
6974 .eraseblocks = { {64 * 1024, 1} },
6975 .block_erase = erase_chip_block_jedec,
6976 }
6977 },
6978 .write = write_jedec_1,
6979 .read = read_memmapped,
6980 .voltage = {2700, 3600},
6981 },
6982
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006983 {
6984 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006985 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006986 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006987 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006988 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006989 .total_size = 256,
6990 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006991 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00006992 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006993 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006994 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006995 .block_erasers =
6996 {
6997 {
6998 .eraseblocks = { {4 * 1024, 64} },
6999 .block_erase = erase_sector_jedec,
7000 }, {
7001 .eraseblocks = { {16 * 1024, 16} },
7002 .block_erase = erase_block_jedec,
7003 }, {
7004 .eraseblocks = { {256 * 1024, 1} },
7005 .block_erase = erase_chip_block_jedec,
7006 }
7007 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007008 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007011 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007012 },
7013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007014 {
7015 .vendor = "PMC",
7016 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007017 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007018 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007019 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007020 .total_size = 512,
7021 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007022 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007023 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007024 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007025 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007026 .block_erasers =
7027 {
7028 {
7029 .eraseblocks = { {4 * 1024, 128} },
7030 .block_erase = erase_sector_jedec,
7031 }, {
7032 .eraseblocks = { {64 * 1024, 8} },
7033 .block_erase = erase_block_jedec,
7034 }, {
7035 .eraseblocks = { {512 * 1024, 1} },
7036 .block_erase = erase_chip_block_jedec,
7037 }
7038 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007039 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007042 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007043 },
7044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007045 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00007046 .vendor = "Sanyo",
7047 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007048 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007049 .manufacture_id = SANYO_ID,
7050 .model_id = SANYO_LE25FW203A,
7051 .total_size = 2048,
7052 .page_size = 256,
7053 .tested = TEST_UNTESTED,
7054 .probe = probe_spi_rdid,
7055 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007056 .block_erasers =
7057 {
7058 {
7059 .eraseblocks = { {64 * 1024, 32} },
7060 .block_erase = spi_block_erase_d8,
7061 }, {
7062 .eraseblocks = { {2 * 1024 * 1024, 1} },
7063 .block_erase = spi_block_erase_c7,
7064 }
7065 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007066 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007067 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007068 .write = spi_chip_write_256,
7069 .read = spi_chip_read,
7070 },
7071
7072 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007073 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00007074 .name = "LH28F008BJT-BTLZ1",
7075 .bustype = BUS_PARALLEL,
7076 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007077 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00007078 .total_size = 1024,
7079 .page_size = 64 * 1024,
7080 .tested = TEST_OK_PREW,
7081 .probe = probe_82802ab,
7082 .probe_timing = TIMING_ZERO,
7083 .block_erasers =
7084 {
7085 {
7086 .eraseblocks = {
7087 {8 * 1024, 8},
7088 {64 * 1024, 15}
7089 },
7090 .block_erase = erase_block_82802ab,
7091 }, {
7092 .eraseblocks = { {1024 * 1024, 1} },
7093 .block_erase = erase_sector_49lfxxxc,
7094 }
7095 },
7096 .unlock = unlock_lh28f008bjt,
7097 .write = write_82802ab,
7098 .read = read_memmapped,
7099 .voltage = {2700, 3600},
7100 },
7101
7102 {
7103 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007104 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007105 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007106 .manufacture_id = SHARP_ID,
7107 .model_id = SHARP_LHF00L04,
7108 .total_size = 1024,
7109 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007110 .feature_bits = FEATURE_EITHER_RESET | 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,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007113 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007114 .block_erasers =
7115 {
7116 {
7117 .eraseblocks = {
7118 {64 * 1024, 15},
7119 {8 * 1024, 8}
7120 },
Sean Nelson28accc22010-03-19 18:47:06 +00007121 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007122 }, {
7123 .eraseblocks = {
7124 {1024 * 1024, 1}
7125 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007126 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007127 },
7128 },
Sean Nelson28accc22010-03-19 18:47:06 +00007129 .unlock = unlock_82802ab,
7130 .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 = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00007137 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007138 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007139 .manufacture_id = SPANSION_ID,
7140 .model_id = SPANSION_S25FL004A,
7141 .total_size = 512,
7142 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007143 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00007144 .tested = TEST_UNTESTED,
7145 .probe = probe_spi_rdid,
7146 .probe_timing = TIMING_ZERO,
7147 .block_erasers =
7148 {
7149 {
7150 .eraseblocks = { {64 * 1024, 8} },
7151 .block_erase = spi_block_erase_d8,
7152 }, {
7153 .eraseblocks = { {512 * 1024, 1} },
7154 .block_erase = spi_block_erase_c7,
7155 }
7156 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007157 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00007158 .unlock = spi_disable_blockprotect,
7159 .write = spi_chip_write_256,
7160 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007161 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00007162 },
7163
7164 {
7165 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00007166 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007167 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00007168 .manufacture_id = SPANSION_ID,
7169 .model_id = SPANSION_S25FL008A,
7170 .total_size = 1024,
7171 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007172 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007173 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00007174 .probe = probe_spi_rdid,
7175 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00007176 .block_erasers =
7177 {
7178 {
7179 .eraseblocks = { {64 * 1024, 16} },
7180 .block_erase = spi_block_erase_d8,
7181 }, {
7182 .eraseblocks = { {1024 * 1024, 1} },
7183 .block_erase = spi_block_erase_c7,
7184 }
7185 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007186 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007187 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00007188 .write = spi_chip_write_256,
7189 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007190 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00007191 },
7192
7193 {
7194 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007195 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007196 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007197 .manufacture_id = SPANSION_ID,
7198 .model_id = SPANSION_S25FL016A,
7199 .total_size = 2048,
7200 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007201 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007202 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007203 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007204 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007205 .block_erasers =
7206 {
7207 {
7208 .eraseblocks = { {64 * 1024, 32} },
7209 .block_erase = spi_block_erase_d8,
7210 }, {
7211 .eraseblocks = { {2 * 1024 * 1024, 1} },
7212 .block_erase = spi_block_erase_c7,
7213 }
7214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007216 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007217 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007218 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007219 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007220 },
7221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007222 {
Rudy Hostf4e57772010-11-29 00:37:49 +00007223 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00007224 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007225 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007226 .manufacture_id = SPANSION_ID,
7227 .model_id = SPANSION_S25FL032A,
7228 .total_size = 4096,
7229 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007230 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00007231 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00007232 .probe = probe_spi_rdid,
7233 .probe_timing = TIMING_ZERO,
7234 .block_erasers =
7235 {
7236 {
7237 .eraseblocks = { {64 * 1024, 64} },
7238 .block_erase = spi_block_erase_d8,
7239 }, {
7240 .eraseblocks = { {4 * 1024 * 1024, 1} },
7241 .block_erase = spi_block_erase_c7,
7242 }
7243 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007244 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00007245 .unlock = spi_disable_blockprotect,
7246 .write = spi_chip_write_256,
7247 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007248 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00007249 },
7250
7251 {
7252 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00007253 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007254 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007255 .manufacture_id = SPANSION_ID,
7256 .model_id = SPANSION_S25FL064A,
7257 .total_size = 8192,
7258 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007259 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00007260 .tested = TEST_OK_PREW,
7261 .probe = probe_spi_rdid,
7262 .probe_timing = TIMING_ZERO,
7263 .block_erasers =
7264 {
7265 {
7266 .eraseblocks = { {64 * 1024, 128} },
7267 .block_erase = spi_block_erase_d8,
7268 }, {
7269 .eraseblocks = { {8 * 1024 * 1024, 1} },
7270 .block_erase = spi_block_erase_c7,
7271 }
7272 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007273 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00007274 .unlock = spi_disable_blockprotect,
7275 .write = spi_chip_write_256,
7276 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007277 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00007278 },
7279
7280 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007281 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00007282 .name = "SST25LF040A",
7283 .bustype = BUS_SPI,
7284 .manufacture_id = SST_ID,
7285 .model_id = SST_SST25VF040_REMS,
7286 .total_size = 512,
7287 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007288 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00007289 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00007290 .probe = probe_spi_res2,
7291 .probe_timing = TIMING_ZERO,
7292 .block_erasers =
7293 {
7294 {
7295 .eraseblocks = { {4 * 1024, 128} },
7296 .block_erase = spi_block_erase_20,
7297 }, {
7298 .eraseblocks = { {32 * 1024, 16} },
7299 .block_erase = spi_block_erase_52,
7300 }, {
7301 .eraseblocks = { {512 * 1024, 1} },
7302 .block_erase = spi_block_erase_60,
7303 },
7304 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007305 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00007306 .unlock = spi_disable_blockprotect,
7307 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
7308 .read = spi_chip_read,
7309 .voltage = {3000, 3600},
7310 },
7311
7312 {
7313 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00007314 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00007315 .bustype = BUS_SPI,
7316 .manufacture_id = SST_ID,
7317 .model_id = SST_SST25VF080_REMS,
7318 .total_size = 1024,
7319 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00007320 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00007321 .tested = TEST_UNTESTED,
7322 .probe = probe_spi_res2,
7323 .probe_timing = TIMING_ZERO,
7324 .block_erasers =
7325 {
7326 {
7327 .eraseblocks = { {4 * 1024, 256} },
7328 .block_erase = spi_block_erase_20,
7329 }, {
7330 .eraseblocks = { {32 * 1024, 32} },
7331 .block_erase = spi_block_erase_52,
7332 }, {
7333 .eraseblocks = { {1024 * 1024, 1} },
7334 .block_erase = spi_block_erase_60,
7335 },
7336 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007337 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00007338 .unlock = spi_disable_blockprotect,
7339 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
7340 .read = spi_chip_read,
7341 .voltage = {3000, 3600},
7342 },
7343
7344 {
7345 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007346 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007347 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00007348 .manufacture_id = SST_ID,
7349 .model_id = SST_SST25VF010_REMS,
7350 .total_size = 128,
7351 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007352 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00007353 .tested = TEST_OK_PREW,
7354 .probe = probe_spi_rems,
7355 .probe_timing = TIMING_ZERO,
7356 .block_erasers =
7357 {
7358 {
7359 .eraseblocks = { {4 * 1024, 32} },
7360 .block_erase = spi_block_erase_20,
7361 }, {
7362 .eraseblocks = { {32 * 1024, 4} },
7363 .block_erase = spi_block_erase_52,
7364 }, {
7365 .eraseblocks = { {128 * 1024, 1} },
7366 .block_erase = spi_block_erase_60,
7367 },
7368 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007369 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00007370 .unlock = spi_disable_blockprotect,
7371 .write = spi_chip_write_1,
7372 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007373 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00007374 },
7375
7376 {
7377 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007378 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007379 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007380 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007381 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007382 .total_size = 2048,
7383 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00007384 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00007385 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007386 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007387 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007388 .block_erasers =
7389 {
7390 {
7391 .eraseblocks = { {4 * 1024, 512} },
7392 .block_erase = spi_block_erase_20,
7393 }, {
7394 .eraseblocks = { {32 * 1024, 64} },
7395 .block_erase = spi_block_erase_52,
7396 }, {
7397 .eraseblocks = { {64 * 1024, 32} },
7398 .block_erase = spi_block_erase_d8,
7399 }, {
7400 .eraseblocks = { {2 * 1024 * 1024, 1} },
7401 .block_erase = spi_block_erase_60,
7402 }, {
7403 .eraseblocks = { {2 * 1024 * 1024, 1} },
7404 .block_erase = spi_block_erase_c7,
7405 },
7406 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007407 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007408 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007409 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007410 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007411 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007412 },
7413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007414 {
7415 .vendor = "SST",
7416 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007417 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007418 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007419 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007420 .total_size = 4096,
7421 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007422 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00007423 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007424 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007425 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007426 .block_erasers =
7427 {
7428 {
7429 .eraseblocks = { {4 * 1024, 1024} },
7430 .block_erase = spi_block_erase_20,
7431 }, {
7432 .eraseblocks = { {32 * 1024, 128} },
7433 .block_erase = spi_block_erase_52,
7434 }, {
7435 .eraseblocks = { {64 * 1024, 64} },
7436 .block_erase = spi_block_erase_d8,
7437 }, {
7438 .eraseblocks = { {4 * 1024 * 1024, 1} },
7439 .block_erase = spi_block_erase_60,
7440 }, {
7441 .eraseblocks = { {4 * 1024 * 1024, 1} },
7442 .block_erase = spi_block_erase_c7,
7443 },
7444 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007445 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007446 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00007447 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007448 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007449 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007450 },
7451
7452 {
7453 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007454 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007455 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007456 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007457 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007458 .total_size = 8192,
7459 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007460 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00007461 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007462 .probe = probe_spi_rdid,
7463 .probe_timing = TIMING_ZERO,
7464 .block_erasers =
7465 {
7466 {
7467 .eraseblocks = { {4 * 1024, 2048} },
7468 .block_erase = spi_block_erase_20,
7469 }, {
7470 .eraseblocks = { {32 * 1024, 256} },
7471 .block_erase = spi_block_erase_52,
7472 }, {
7473 .eraseblocks = { {64 * 1024, 128} },
7474 .block_erase = spi_block_erase_d8,
7475 }, {
7476 .eraseblocks = { {8 * 1024 * 1024, 1} },
7477 .block_erase = spi_block_erase_60,
7478 }, {
7479 .eraseblocks = { {8 * 1024 * 1024, 1} },
7480 .block_erase = spi_block_erase_c7,
7481 },
7482 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007483 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007484 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00007485 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007486 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007487 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007488 },
7489
7490 {
7491 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007492 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007493 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007494 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007495 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007496 .total_size = 512,
7497 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007498 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007499 .tested = TEST_OK_PR,
7500 .probe = probe_spi_rems,
7501 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007502 .block_erasers =
7503 {
7504 {
7505 .eraseblocks = { {4 * 1024, 128} },
7506 .block_erase = spi_block_erase_20,
7507 }, {
7508 .eraseblocks = { {32 * 1024, 16} },
7509 .block_erase = spi_block_erase_52,
7510 }, {
7511 .eraseblocks = { {512 * 1024, 1} },
7512 .block_erase = spi_block_erase_60,
7513 },
7514 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007515 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007516 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007517 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007518 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007519 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007520 },
7521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007522 {
7523 .vendor = "SST",
7524 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007525 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007526 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007527 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007528 .total_size = 512,
7529 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007530 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007531 .tested = TEST_UNTESTED,
7532 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007533 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007534 .block_erasers =
7535 {
7536 {
7537 .eraseblocks = { {4 * 1024, 128} },
7538 .block_erase = spi_block_erase_20,
7539 }, {
7540 .eraseblocks = { {32 * 1024, 16} },
7541 .block_erase = spi_block_erase_52,
7542 }, {
7543 .eraseblocks = { {64 * 1024, 8} },
7544 .block_erase = spi_block_erase_d8,
7545 }, {
7546 .eraseblocks = { {512 * 1024, 1} },
7547 .block_erase = spi_block_erase_60,
7548 }, {
7549 .eraseblocks = { {512 * 1024, 1} },
7550 .block_erase = spi_block_erase_c7,
7551 },
7552 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007553 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007554 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007555 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00007556 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007557 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00007558 },
7559
7560 {
7561 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00007562 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007563 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007564 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007565 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00007566 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007567 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007568 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00007569 .tested = TEST_OK_PR,
7570 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007571 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007572 .block_erasers =
7573 {
7574 {
7575 .eraseblocks = { {4 * 1024, 128} },
7576 .block_erase = spi_block_erase_20,
7577 }, {
7578 .eraseblocks = { {32 * 1024, 16} },
7579 .block_erase = spi_block_erase_52,
7580 }, {
7581 .eraseblocks = { {64 * 1024, 8} },
7582 .block_erase = spi_block_erase_d8,
7583 }, {
7584 .eraseblocks = { {512 * 1024, 1} },
7585 .block_erase = spi_block_erase_60,
7586 }, {
7587 .eraseblocks = { {512 * 1024, 1} },
7588 .block_erase = spi_block_erase_c7,
7589 },
7590 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007591 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007592 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007593 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00007594 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007595 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00007596 },
7597
7598 {
7599 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007601 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007602 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007603 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007604 .total_size = 1024,
7605 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007606 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00007607 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007608 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007609 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007610 .block_erasers =
7611 {
7612 {
7613 .eraseblocks = { {4 * 1024, 256} },
7614 .block_erase = spi_block_erase_20,
7615 }, {
7616 .eraseblocks = { {32 * 1024, 32} },
7617 .block_erase = spi_block_erase_52,
7618 }, {
7619 .eraseblocks = { {64 * 1024, 16} },
7620 .block_erase = spi_block_erase_d8,
7621 }, {
7622 .eraseblocks = { {1024 * 1024, 1} },
7623 .block_erase = spi_block_erase_60,
7624 }, {
7625 .eraseblocks = { {1024 * 1024, 1} },
7626 .block_erase = spi_block_erase_c7,
7627 },
7628 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007629 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007630 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007631 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007632 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007633 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007634 },
7635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007636 {
7637 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00007638 .name = "SST25WF512",
7639 .bustype = BUS_SPI,
7640 .manufacture_id = SST_ID,
7641 .model_id = SST_SST25WF512,
7642 .total_size = 64,
7643 .page_size = 256,
7644 .feature_bits = FEATURE_WRSR_EITHER,
7645 .tested = TEST_UNTESTED,
7646 .probe = probe_spi_rdid,
7647 .probe_timing = TIMING_ZERO,
7648 .block_erasers =
7649 {
7650 {
7651 .eraseblocks = { {4 * 1024, 16} },
7652 .block_erase = spi_block_erase_20,
7653 }, {
7654 .eraseblocks = { {32 * 1024, 2} },
7655 .block_erase = spi_block_erase_52,
7656 }, {
7657 .eraseblocks = { {1024 * 64, 1} },
7658 .block_erase = spi_block_erase_60,
7659 }, {
7660 .eraseblocks = { {1024 * 64, 1} },
7661 .block_erase = spi_block_erase_c7,
7662 },
7663 },
7664 .unlock = spi_disable_blockprotect,
7665 .write = spi_aai_write,
7666 .read = spi_chip_read, /* Fast read (0x0B) supported */
7667 .voltage = {1650, 1950},
7668 },
7669
7670 {
7671 .vendor = "SST",
7672 .name = "SST25WF010",
7673 .bustype = BUS_SPI,
7674 .manufacture_id = SST_ID,
7675 .model_id = SST_SST25WF010,
7676 .total_size = 128,
7677 .page_size = 256,
7678 .feature_bits = FEATURE_WRSR_EITHER,
7679 .tested = TEST_UNTESTED,
7680 .probe = probe_spi_rdid,
7681 .probe_timing = TIMING_ZERO,
7682 .block_erasers =
7683 {
7684 {
7685 .eraseblocks = { {4 * 1024, 32} },
7686 .block_erase = spi_block_erase_20,
7687 }, {
7688 .eraseblocks = { {32 * 1024, 4} },
7689 .block_erase = spi_block_erase_52,
7690 }, {
7691 .eraseblocks = { {1024 * 128, 1} },
7692 .block_erase = spi_block_erase_60,
7693 }, {
7694 .eraseblocks = { {1024 * 128, 1} },
7695 .block_erase = spi_block_erase_c7,
7696 },
7697 },
7698 .unlock = spi_disable_blockprotect,
7699 .write = spi_aai_write,
7700 .read = spi_chip_read, /* Fast read (0x0B) supported */
7701 .voltage = {1650, 1950},
7702 },
7703
7704 {
7705 .vendor = "SST",
7706 .name = "SST25WF020",
7707 .bustype = BUS_SPI,
7708 .manufacture_id = SST_ID,
7709 .model_id = SST_SST25WF020,
7710 .total_size = 256,
7711 .page_size = 256,
7712 .feature_bits = FEATURE_WRSR_EITHER,
7713 .tested = TEST_UNTESTED,
7714 .probe = probe_spi_rdid,
7715 .probe_timing = TIMING_ZERO,
7716 .block_erasers =
7717 {
7718 {
7719 .eraseblocks = { {4 * 1024, 64} },
7720 .block_erase = spi_block_erase_20,
7721 }, {
7722 .eraseblocks = { {32 * 1024, 8} },
7723 .block_erase = spi_block_erase_52,
7724 }, {
7725 .eraseblocks = { {64 * 1024, 4} },
7726 .block_erase = spi_block_erase_d8,
7727 }, {
7728 .eraseblocks = { {1024 * 256, 1} },
7729 .block_erase = spi_block_erase_60,
7730 }, {
7731 .eraseblocks = { {1024 * 256, 1} },
7732 .block_erase = spi_block_erase_c7,
7733 },
7734 },
7735 .unlock = spi_disable_blockprotect,
7736 .write = spi_aai_write,
7737 .read = spi_chip_read, /* Fast read (0x0B) supported */
7738 .voltage = {1650, 1950},
7739 },
7740
7741 {
7742 .vendor = "SST",
7743 .name = "SST25WF040",
7744 .bustype = BUS_SPI,
7745 .manufacture_id = SST_ID,
7746 .model_id = SST_SST25WF040,
7747 .total_size = 512,
7748 .page_size = 256,
7749 .feature_bits = FEATURE_WRSR_EITHER,
7750 .tested = TEST_UNTESTED,
7751 .probe = probe_spi_rdid,
7752 .probe_timing = TIMING_ZERO,
7753 .block_erasers =
7754 {
7755 {
7756 .eraseblocks = { {4 * 1024, 128} },
7757 .block_erase = spi_block_erase_20,
7758 }, {
7759 .eraseblocks = { {32 * 1024, 16} },
7760 .block_erase = spi_block_erase_52,
7761 }, {
7762 .eraseblocks = { {64 * 1024, 8} },
7763 .block_erase = spi_block_erase_d8,
7764 }, {
7765 .eraseblocks = { {1024 * 512, 1} },
7766 .block_erase = spi_block_erase_60,
7767 }, {
7768 .eraseblocks = { {1024 * 512, 1} },
7769 .block_erase = spi_block_erase_c7,
7770 },
7771 },
7772 .unlock = spi_disable_blockprotect,
7773 .write = spi_aai_write,
7774 .read = spi_chip_read, /* Fast read (0x0B) supported */
7775 .voltage = {1650, 1950},
7776 },
7777
7778 {
7779 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007780 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007781 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007782 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007783 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007784 .total_size = 512,
7785 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00007786 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007787 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007788 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007789 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007790 .block_erasers =
7791 {
7792 {
7793 .eraseblocks = { {128, 4096} },
7794 .block_erase = erase_sector_28sf040,
7795 }, {
7796 .eraseblocks = { {512 * 1024, 1} },
7797 .block_erase = erase_chip_28sf040,
7798 }
7799 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007800 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007801 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007803 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007804 },
7805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007806 {
7807 .vendor = "SST",
7808 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007810 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007811 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007812 .total_size = 128,
7813 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007814 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007815 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007816 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007817 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007818 .block_erasers =
7819 {
7820 {
7821 .eraseblocks = { {128 * 1024, 1} },
7822 .block_erase = erase_chip_block_jedec,
7823 }
7824 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007825 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007827 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007828 },
7829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007830 {
7831 .vendor = "SST",
7832 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007834 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007835 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007836 .total_size = 128,
7837 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007838 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007839 .tested = TEST_UNTESTED,
7840 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007841 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007842 .block_erasers =
7843 {
7844 {
7845 .eraseblocks = { {128 * 1024, 1} },
7846 .block_erase = erase_chip_block_jedec,
7847 }
7848 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007849 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007851 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007852 },
7853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007854 {
7855 .vendor = "SST",
7856 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007857 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007858 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007859 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007860 .total_size = 256,
7861 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007862 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007863 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007865 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007866 .block_erasers =
7867 {
7868 {
7869 .eraseblocks = { {256 * 1024, 1} },
7870 .block_erase = erase_chip_block_jedec,
7871 }
7872 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007873 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007875 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007876 },
7877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007878 {
7879 .vendor = "SST",
7880 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007881 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007882 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007883 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007884 .total_size = 256,
7885 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007886 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007887 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007888 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007889 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007890 .block_erasers =
7891 {
7892 {
7893 .eraseblocks = { {256 * 1024, 1} },
7894 .block_erase = erase_chip_block_jedec,
7895 }
7896 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007897 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007898 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007899 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007900 },
7901
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007902 {
7903 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00007904 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007905 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007906 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007907 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007908 .total_size = 64,
7909 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007910 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00007911 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007912 .probe = probe_jedec,
7913 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00007914 .block_erasers =
7915 {
7916 {
7917 .eraseblocks = { {4 * 1024, 16} },
7918 .block_erase = erase_sector_jedec,
7919 }, {
7920 .eraseblocks = { {64 * 1024, 1} },
7921 .block_erase = erase_chip_block_jedec,
7922 }
7923 },
Sean Nelson35727f72010-01-28 23:55:12 +00007924 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007925 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007926 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00007927 },
7928
7929 {
7930 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007931 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007932 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007933 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007934 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007935 .total_size = 128,
7936 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007937 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007938 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007939 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007940 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007941 .block_erasers =
7942 {
7943 {
7944 .eraseblocks = { {4 * 1024, 32} },
7945 .block_erase = erase_sector_jedec,
7946 }, {
7947 .eraseblocks = { {128 * 1024, 1} },
7948 .block_erase = erase_chip_block_jedec,
7949 }
7950 },
Sean Nelson35727f72010-01-28 23:55:12 +00007951 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007953 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007954 },
7955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007956 {
7957 .vendor = "SST",
7958 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007959 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007960 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007961 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007962 .total_size = 256,
7963 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007964 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007965 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007966 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007967 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007968 .block_erasers =
7969 {
7970 {
7971 .eraseblocks = { {4 * 1024, 64} },
7972 .block_erase = erase_sector_jedec,
7973 }, {
7974 .eraseblocks = { {256 * 1024, 1} },
7975 .block_erase = erase_chip_block_jedec,
7976 }
7977 },
Sean Nelson35727f72010-01-28 23:55:12 +00007978 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007980 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007981 },
7982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007983 {
7984 .vendor = "SST",
7985 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007986 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007987 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007988 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007989 .total_size = 512,
7990 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007991 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007992 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007993 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007994 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007995 .block_erasers =
7996 {
7997 {
7998 .eraseblocks = { {4 * 1024, 128} },
7999 .block_erase = erase_sector_jedec,
8000 }, {
8001 .eraseblocks = { {512 * 1024, 1} },
8002 .block_erase = erase_chip_block_jedec,
8003 }
8004 },
Sean Nelson35727f72010-01-28 23:55:12 +00008005 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008006 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008007 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008008 },
8009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008010 {
8011 .vendor = "SST",
8012 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008013 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008014 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008015 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008016 .total_size = 64,
8017 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008018 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008019 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008020 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008021 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008022 .block_erasers =
8023 {
8024 {
8025 .eraseblocks = { {4 * 1024, 16} },
8026 .block_erase = erase_sector_jedec,
8027 }, {
8028 .eraseblocks = { {64 * 1024, 1} },
8029 .block_erase = erase_chip_block_jedec,
8030 }
8031 },
Sean Nelson35727f72010-01-28 23:55:12 +00008032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008034 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008035 },
8036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008037 {
8038 .vendor = "SST",
8039 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008040 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008041 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008042 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008043 .total_size = 128,
8044 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008045 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008046 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008047 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008048 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008049 .block_erasers =
8050 {
8051 {
8052 .eraseblocks = { {4 * 1024, 32} },
8053 .block_erase = erase_sector_jedec,
8054 }, {
8055 .eraseblocks = { {128 * 1024, 1} },
8056 .block_erase = erase_chip_block_jedec,
8057 }
8058 },
Sean Nelson35727f72010-01-28 23:55:12 +00008059 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008060 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008061 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008062 },
8063
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008064 {
8065 .vendor = "SST",
8066 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008067 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008068 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008069 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008070 .total_size = 256,
8071 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008072 .feature_bits = FEATURE_EITHER_RESET,
8073 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008074 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008075 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008076 .block_erasers =
8077 {
8078 {
8079 .eraseblocks = { {4 * 1024, 64} },
8080 .block_erase = erase_sector_jedec,
8081 }, {
8082 .eraseblocks = { {256 * 1024, 1} },
8083 .block_erase = erase_chip_block_jedec,
8084 }
8085 },
Sean Nelson35727f72010-01-28 23:55:12 +00008086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008088 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008089 },
8090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008091 {
8092 .vendor = "SST",
8093 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008095 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008096 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008097 .total_size = 512,
8098 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008099 .feature_bits = FEATURE_EITHER_RESET,
8100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008101 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008102 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008103 .block_erasers =
8104 {
8105 {
8106 .eraseblocks = { {4 * 1024, 128} },
8107 .block_erase = erase_sector_jedec,
8108 }, {
8109 .eraseblocks = { {512 * 1024, 1} },
8110 .block_erase = erase_chip_block_jedec,
8111 }
8112 },
Sean Nelson35727f72010-01-28 23:55:12 +00008113 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008114 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008115 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00008116 },
FENG yu ningff692fb2008-12-08 18:15:10 +00008117
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008118 {
8119 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00008120 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008121 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008122 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008123 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00008124 .total_size = 1024,
8125 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008126 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00008127 .tested = TEST_UNTESTED,
8128 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008129 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008130 .block_erasers =
8131 {
8132 {
8133 .eraseblocks = { {4 * 1024, 256} },
8134 .block_erase = erase_sector_jedec,
8135 }, {
8136 .eraseblocks = { {64 * 1024, 16} },
8137 .block_erase = erase_block_jedec,
8138 }, {
8139 .eraseblocks = { {1024 * 1024, 1} },
8140 .block_erase = erase_chip_block_jedec,
8141 }
8142 },
Sean Nelson35727f72010-01-28 23:55:12 +00008143 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008145 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00008146 },
8147
8148 {
8149 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008150 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008151 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008152 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008153 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008154 .total_size = 256,
8155 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008156 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008157 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008158 .probe = probe_jedec,
8159 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008160 .block_erasers =
8161 {
8162 {
8163 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008164 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008165 }, {
8166 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008167 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008168 }, {
8169 .eraseblocks = { {256 * 1024, 1} },
8170 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8171 }
8172 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008173 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008174 .unlock = unlock_sst_fwhub,
8175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008177 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008178 },
8179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008180 {
8181 .vendor = "SST",
8182 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008183 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008184 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008185 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008186 .total_size = 384,
8187 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008188 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00008189 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008190 .probe = probe_jedec,
8191 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008192 .block_erasers =
8193 {
8194 {
8195 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008196 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008197 }, {
8198 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008199 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008200 }, {
8201 .eraseblocks = { {384 * 1024, 1} },
8202 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8203 }
8204 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008205 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008206 .unlock = unlock_sst_fwhub,
8207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008209 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008210 },
8211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008212 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008213 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
8214 * and is only honored for 64k block erase, but not 4k sector erase.
8215 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008216 .vendor = "SST",
8217 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008218 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008219 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008220 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008221 .total_size = 512,
8222 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008223 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008224 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008225 .probe = probe_jedec,
8226 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008227 .block_erasers =
8228 {
8229 {
8230 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008231 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008232 }, {
8233 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008234 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008235 }, {
8236 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00008237 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008238 },
8239 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008240 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008241 .unlock = unlock_sst_fwhub,
8242 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008243 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008244 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008245 },
8246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008247 {
8248 .vendor = "SST",
8249 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008250 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008251 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008252 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008253 .total_size = 512,
8254 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008255 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008256 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008257 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008258 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008259 .block_erasers =
8260 {
8261 {
8262 .eraseblocks = { {4 * 1024, 128} },
8263 .block_erase = erase_sector_49lfxxxc,
8264 }, {
8265 .eraseblocks = {
8266 {64 * 1024, 7},
8267 {32 * 1024, 1},
8268 {8 * 1024, 2},
8269 {16 * 1024, 1},
8270 },
Sean Nelson69e58112010-03-23 17:10:28 +00008271 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008272 }
8273 },
Sean Nelson69e58112010-03-23 17:10:28 +00008274 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008275 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008276 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008277 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008278 },
8279
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008280 {
8281 .vendor = "SST",
8282 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008283 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008284 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008285 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008286 .total_size = 1024,
8287 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008288 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008289 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008290 .probe = probe_jedec,
8291 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008292 .block_erasers =
8293 {
8294 {
8295 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008296 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008297 }, {
8298 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008299 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008300 }, {
8301 .eraseblocks = { {1024 * 1024, 1} },
8302 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8303 }
8304 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008305 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008306 .unlock = unlock_sst_fwhub,
8307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008309 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008310 },
8311
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008312 {
8313 .vendor = "SST",
8314 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008315 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008316 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008317 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008318 .total_size = 1024,
8319 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008320 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008321 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008322 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008323 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008324 .block_erasers =
8325 {
8326 {
8327 .eraseblocks = { {4 * 1024, 256} },
8328 .block_erase = erase_sector_49lfxxxc,
8329 }, {
8330 .eraseblocks = {
8331 {64 * 1024, 15},
8332 {32 * 1024, 1},
8333 {8 * 1024, 2},
8334 {16 * 1024, 1},
8335 },
Sean Nelson69e58112010-03-23 17:10:28 +00008336 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008337 }
8338 },
Sean Nelson69e58112010-03-23 17:10:28 +00008339 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008340 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008341 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008342 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008343 },
8344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008345 {
8346 .vendor = "SST",
8347 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008348 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008349 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008350 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008351 .total_size = 2048,
8352 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008353 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00008354 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008355 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008356 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008357 .block_erasers =
8358 {
8359 {
8360 .eraseblocks = { {4 * 1024, 512} },
8361 .block_erase = erase_sector_49lfxxxc,
8362 }, {
8363 .eraseblocks = {
8364 {64 * 1024, 31},
8365 {32 * 1024, 1},
8366 {8 * 1024, 2},
8367 {16 * 1024, 1},
8368 },
Sean Nelson69e58112010-03-23 17:10:28 +00008369 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008370 }
8371 },
Sean Nelson69e58112010-03-23 17:10:28 +00008372 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008373 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008374 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008375 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008376 },
8377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008378 {
8379 .vendor = "SST",
8380 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008381 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008382 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008383 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008384 .total_size = 256,
8385 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008386 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00008387 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008388 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008389 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008390 .block_erasers =
8391 {
8392 {
8393 .eraseblocks = { {4 * 1024, 64} },
8394 .block_erase = erase_sector_jedec,
8395 }, {
8396 .eraseblocks = { {16 * 1024, 16} },
8397 .block_erase = erase_block_jedec,
8398 }, {
8399 .eraseblocks = { {256 * 1024, 1} },
8400 .block_erase = NULL,
8401 }
8402 },
Sean Nelson35727f72010-01-28 23:55:12 +00008403 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008404 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008405 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00008406 },
8407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008408 {
8409 .vendor = "SST",
8410 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008411 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008412 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008413 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008414 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00008415 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008416 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008417 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008418 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008419 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008420 .block_erasers =
8421 {
8422 {
8423 .eraseblocks = { {4 * 1024, 64} },
8424 .block_erase = erase_sector_jedec,
8425 }, {
8426 .eraseblocks = { {16 * 1024, 16} },
8427 .block_erase = erase_block_jedec,
8428 }, {
8429 .eraseblocks = { {256 * 1024, 1} },
8430 .block_erase = NULL,
8431 }
8432 },
Sean Nelson35727f72010-01-28 23:55:12 +00008433 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008434 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008435 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008436 },
8437
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008438 {
8439 .vendor = "SST",
8440 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008441 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008442 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008443 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008444 .total_size = 512,
8445 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008446 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008447 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008448 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008449 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008450 .block_erasers =
8451 {
8452 {
8453 .eraseblocks = { {4 * 1024, 128} },
8454 .block_erase = erase_sector_jedec,
8455 }, {
8456 .eraseblocks = { {64 * 1024, 8} },
8457 .block_erase = erase_block_jedec,
8458 }, {
8459 .eraseblocks = { {512 * 1024, 1} },
8460 .block_erase = NULL,
8461 }
8462 },
Sean Nelson35727f72010-01-28 23:55:12 +00008463 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008464 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008465 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008466 },
8467
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008468 {
8469 .vendor = "SST",
8470 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008471 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008472 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008473 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008474 .total_size = 512,
8475 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00008476 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008477 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008478 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008479 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008480 .block_erasers =
8481 {
8482 {
8483 .eraseblocks = { {4 * 1024, 128} },
8484 .block_erase = erase_sector_jedec,
8485 }, {
8486 .eraseblocks = { {64 * 1024, 8} },
8487 .block_erase = erase_block_jedec,
8488 }, {
8489 .eraseblocks = { {512 * 1024, 1} },
8490 .block_erase = NULL,
8491 }
8492 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00008493 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00008494 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008496 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008497 },
8498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008499 {
8500 .vendor = "SST",
8501 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008502 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008503 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008504 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008505 .total_size = 1024,
8506 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008507 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00008508 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008509 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00008510 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008511 .block_erasers =
8512 {
8513 {
8514 .eraseblocks = { {4 * 1024, 256} },
8515 .block_erase = erase_sector_jedec,
8516 }, {
8517 .eraseblocks = { {64 * 1024, 16} },
8518 .block_erase = erase_block_jedec,
8519 }, {
8520 .eraseblocks = { {1024 * 1024, 1} },
8521 .block_erase = NULL,
8522 }
8523 },
Sean Nelson35727f72010-01-28 23:55:12 +00008524 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008525 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008526 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008527 },
8528
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008529 {
8530 .vendor = "SST",
8531 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008532 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008533 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008534 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008535 .total_size = 2048,
8536 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008537 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008538 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008539 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008540 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008541 .block_erasers =
8542 {
8543 {
8544 .eraseblocks = { {4 * 1024, 512} },
8545 .block_erase = erase_sector_49lfxxxc,
8546 }, {
8547 .eraseblocks = {
8548 {64 * 1024, 31},
8549 {32 * 1024, 1},
8550 {8 * 1024, 2},
8551 {16 * 1024, 1},
8552 },
Sean Nelson69e58112010-03-23 17:10:28 +00008553 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008554 }
8555 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008556 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008557 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008559 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008560 },
8561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008562 {
8563 .vendor = "ST",
8564 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008565 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008566 .manufacture_id = ST_ID,
8567 .model_id = ST_M25P05A,
8568 .total_size = 64,
8569 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008570 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008571 .tested = TEST_UNTESTED,
8572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008573 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008574 .block_erasers =
8575 {
8576 {
8577 .eraseblocks = { {32 * 1024, 2} },
8578 .block_erase = spi_block_erase_d8,
8579 }, {
8580 .eraseblocks = { {64 * 1024, 1} },
8581 .block_erase = spi_block_erase_c7,
8582 }
8583 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008584 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008585 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008589 },
8590
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008591 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8592 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008593 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008594 * only is successful if RDID does not work.
8595 */
8596 {
8597 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008598 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008599 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008600 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008601 .model_id = ST_M25P05_RES,
8602 .total_size = 64,
8603 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008604 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008605 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008606 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008607 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008608 .block_erasers =
8609 {
8610 {
8611 .eraseblocks = { {32 * 1024, 2} },
8612 .block_erase = spi_block_erase_d8,
8613 }, {
8614 .eraseblocks = { {64 * 1024, 1} },
8615 .block_erase = spi_block_erase_c7,
8616 }
8617 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008618 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008619 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008620 .write = spi_chip_write_1, /* 128 */
8621 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008622 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008623 },
8624
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008625 {
8626 .vendor = "ST",
8627 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008628 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008629 .manufacture_id = ST_ID,
8630 .model_id = ST_M25P10A,
8631 .total_size = 128,
8632 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008633 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008634 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008635 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008636 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008637 .block_erasers =
8638 {
8639 {
8640 .eraseblocks = { {32 * 1024, 4} },
8641 .block_erase = spi_block_erase_d8,
8642 }, {
8643 .eraseblocks = { {128 * 1024, 1} },
8644 .block_erase = spi_block_erase_c7,
8645 }
8646 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008647 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008648 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008649 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008650 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008651 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008652 },
8653
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008654 /* The ST M25P10 has the same problem as the M25P05. */
8655 {
8656 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008657 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008658 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008659 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008660 .model_id = ST_M25P10_RES,
8661 .total_size = 128,
8662 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008663 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008664 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008665 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008666 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008667 .block_erasers =
8668 {
8669 {
8670 .eraseblocks = { {32 * 1024, 4} },
8671 .block_erase = spi_block_erase_d8,
8672 }, {
8673 .eraseblocks = { {128 * 1024, 1} },
8674 .block_erase = spi_block_erase_c7,
8675 }
8676 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008677 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008678 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008679 .write = spi_chip_write_1, /* 128 */
8680 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008681 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008682 },
8683
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008684 {
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00008685 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008686 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008687 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008688 .manufacture_id = ST_ID,
8689 .model_id = ST_M25P20,
8690 .total_size = 256,
8691 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008692 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008693 .tested = TEST_UNTESTED,
8694 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008695 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008696 .block_erasers =
8697 {
8698 {
8699 .eraseblocks = { {64 * 1024, 4} },
8700 .block_erase = spi_block_erase_d8,
8701 }, {
8702 .eraseblocks = { {256 * 1024, 1} },
8703 .block_erase = spi_block_erase_c7,
8704 }
8705 },
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00008706 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008707 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008708 .write = spi_chip_write_256,
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00008709 .read = spi_chip_read, /* Fast read (0x0B) supported */
8710 .voltage = {2700, 3600},
8711 },
8712
8713 {
8714 .vendor = "ST",
8715 .name = "M25P20-old",
8716 .bustype = BUS_SPI,
8717 .manufacture_id = 0, /* Not used. */
8718 .model_id = ST_M25P20_RES,
8719 .total_size = 256,
8720 .page_size = 256,
8721 .feature_bits = FEATURE_WRSR_WREN,
8722 .tested = TEST_OK_PREW,
8723 .probe = probe_spi_res1,
8724 .probe_timing = TIMING_ZERO,
8725 .block_erasers =
8726 {
8727 {
8728 .eraseblocks = { {64 * 1024, 4} },
8729 .block_erase = spi_block_erase_d8,
8730 }, {
8731 .eraseblocks = { {256 * 1024, 1} },
8732 .block_erase = spi_block_erase_c7,
8733 }
8734 },
8735 .printlock = spi_prettyprint_status_register_default_bp1,
8736 .unlock = spi_disable_blockprotect,
8737 .write = spi_chip_write_256,
8738 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008739 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008740 },
8741
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008742 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008743 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008744 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008745 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008746 .manufacture_id = ST_ID,
8747 .model_id = ST_M25P40,
8748 .total_size = 512,
8749 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008750 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008751 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008752 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008753 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008754 .block_erasers =
8755 {
8756 {
8757 .eraseblocks = { {64 * 1024, 8} },
8758 .block_erase = spi_block_erase_d8,
8759 }, {
8760 .eraseblocks = { {512 * 1024, 1} },
8761 .block_erase = spi_block_erase_c7,
8762 }
8763 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008764 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008765 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008766 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008767 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008768 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008769 },
8770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008771 {
8772 .vendor = "ST",
8773 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008774 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008775 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008776 .model_id = ST_M25P40_RES,
8777 .total_size = 512,
8778 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008779 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008780 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008781 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008782 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008783 .block_erasers =
8784 {
8785 {
8786 .eraseblocks = { {64 * 1024, 8} },
8787 .block_erase = spi_block_erase_d8,
8788 }, {
8789 .eraseblocks = { {512 * 1024, 1} },
8790 .block_erase = spi_block_erase_c7,
8791 }
8792 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008793 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008794 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008795 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008796 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00008797 },
8798
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008799 {
8800 .vendor = "ST",
8801 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008802 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008803 .manufacture_id = ST_ID,
8804 .model_id = ST_M25P80,
8805 .total_size = 1024,
8806 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008807 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00008808 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008809 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008810 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008811 .block_erasers =
8812 {
8813 {
8814 .eraseblocks = { {64 * 1024, 16} },
8815 .block_erase = spi_block_erase_d8,
8816 }, {
8817 .eraseblocks = { {1024 * 1024, 1} },
8818 .block_erase = spi_block_erase_c7,
8819 }
8820 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008821 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008822 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008823 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008824 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008825 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008826 },
8827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008828 {
8829 .vendor = "ST",
8830 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008831 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008832 .manufacture_id = ST_ID,
8833 .model_id = ST_M25P16,
8834 .total_size = 2048,
8835 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008836 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008837 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008838 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008839 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008840 .block_erasers =
8841 {
8842 {
8843 .eraseblocks = { {64 * 1024, 32} },
8844 .block_erase = spi_block_erase_d8,
8845 }, {
8846 .eraseblocks = { {2 * 1024 * 1024, 1} },
8847 .block_erase = spi_block_erase_c7,
8848 }
8849 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008850 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008851 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008852 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008853 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008854 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008855 },
8856
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 {
8858 .vendor = "ST",
8859 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008860 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008861 .manufacture_id = ST_ID,
8862 .model_id = ST_M25P32,
8863 .total_size = 4096,
8864 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008865 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008866 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008867 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008868 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008869 .block_erasers =
8870 {
8871 {
8872 .eraseblocks = { {64 * 1024, 64} },
8873 .block_erase = spi_block_erase_d8,
8874 }, {
8875 .eraseblocks = { {4 * 1024 * 1024, 1} },
8876 .block_erase = spi_block_erase_c7,
8877 }
8878 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008879 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008884 },
8885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008886 {
8887 .vendor = "ST",
8888 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008890 .manufacture_id = ST_ID,
8891 .model_id = ST_M25P64,
8892 .total_size = 8192,
8893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008894 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008895 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008896 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008897 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008898 .block_erasers =
8899 {
8900 {
8901 .eraseblocks = { {64 * 1024, 128} },
8902 .block_erase = spi_block_erase_d8,
8903 }, {
8904 .eraseblocks = { {8 * 1024 * 1024, 1} },
8905 .block_erase = spi_block_erase_c7,
8906 }
8907 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008908 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008909 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008910 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008911 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008912 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008913 },
8914
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008915 {
8916 .vendor = "ST",
8917 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008918 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008919 .manufacture_id = ST_ID,
8920 .model_id = ST_M25P128,
8921 .total_size = 16384,
8922 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008923 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008924 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008925 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008926 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008927 .block_erasers =
8928 {
8929 {
8930 .eraseblocks = { {256 * 1024, 64} },
8931 .block_erase = spi_block_erase_d8,
8932 }, {
8933 .eraseblocks = { {16 * 1024 * 1024, 1} },
8934 .block_erase = spi_block_erase_c7,
8935 }
8936 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008937 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008938 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008939 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008940 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008941 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008942 },
8943
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008944 {
8945 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00008946 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008947 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008948 .manufacture_id = ST_ID,
8949 .model_id = ST_M25PX16,
8950 .total_size = 2048,
8951 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008952 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00008953 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008954 .tested = TEST_OK_PREW,
8955 .probe = probe_spi_rdid,
8956 .probe_timing = TIMING_ZERO,
8957 .block_erasers =
8958 {
8959 {
8960 .eraseblocks = { { 4 * 1024, 512 } },
8961 .block_erase = spi_block_erase_20,
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_c7,
8968 }
8969 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008970 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +00008971 .unlock = spi_disable_blockprotect,
8972 .write = spi_chip_write_256,
8973 .read = spi_chip_read,
8974 },
8975
8976 {
8977 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00008978 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008979 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008980 .manufacture_id = ST_ID,
8981 .model_id = ST_M25PX32,
8982 .total_size = 4096,
8983 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008984 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008985 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008986 .probe = probe_spi_rdid,
8987 .probe_timing = TIMING_ZERO,
8988 .block_erasers =
8989 {
8990 {
8991 .eraseblocks = { { 4 * 1024, 1024 } },
8992 .block_erase = spi_block_erase_20,
8993 }, {
8994 .eraseblocks = { {64 * 1024, 64} },
8995 .block_erase = spi_block_erase_d8,
8996 }, {
8997 .eraseblocks = { {4 * 1024 * 1024, 1} },
8998 .block_erase = spi_block_erase_c7,
8999 }
9000 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009001 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00009002 .unlock = spi_disable_blockprotect,
9003 .write = spi_chip_write_256,
9004 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009005 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00009006 },
9007
9008 {
9009 .vendor = "ST",
9010 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009011 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009012 .manufacture_id = ST_ID,
9013 .model_id = ST_M25PX64,
9014 .total_size = 8192,
9015 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009016 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009017 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009018 .probe = probe_spi_rdid,
9019 .probe_timing = TIMING_ZERO,
9020 .block_erasers =
9021 {
9022 {
9023 .eraseblocks = { { 4 * 1024, 2048 } },
9024 .block_erase = spi_block_erase_20,
9025 }, {
9026 .eraseblocks = { {64 * 1024, 128} },
9027 .block_erase = spi_block_erase_d8,
9028 }, {
9029 .eraseblocks = { {8 * 1024 * 1024, 1} },
9030 .block_erase = spi_block_erase_c7,
9031 }
9032 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009033 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00009034 .unlock = spi_disable_blockprotect,
9035 .write = spi_chip_write_256,
9036 .read = spi_chip_read,
9037 },
9038
9039 {
9040 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009041 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009042 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009043 .manufacture_id = ST_ID,
9044 .model_id = ST_M29F002B,
9045 .total_size = 256,
9046 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009047 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009048 .tested = TEST_UNTESTED,
9049 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009050 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009051 .block_erasers =
9052 {
9053 {
9054 .eraseblocks = {
9055 {16 * 1024, 1},
9056 {8 * 1024, 2},
9057 {32 * 1024, 1},
9058 {64 * 1024, 3},
9059 },
9060 .block_erase = erase_sector_jedec,
9061 }, {
9062 .eraseblocks = { {256 * 1024, 1} },
9063 .block_erase = erase_chip_block_jedec,
9064 }
9065 },
Sean Nelson35727f72010-01-28 23:55:12 +00009066 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009067 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009068 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00009069 },
9070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009071 {
9072 .vendor = "ST",
9073 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009074 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009075 .manufacture_id = ST_ID,
9076 .model_id = ST_M29F002T,
9077 .total_size = 256,
9078 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009079 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009080 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009081 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009082 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009083 .block_erasers =
9084 {
9085 {
9086 .eraseblocks = {
9087 {64 * 1024, 3},
9088 {32 * 1024, 1},
9089 {8 * 1024, 2},
9090 {16 * 1024, 1},
9091 },
9092 .block_erase = erase_sector_jedec,
9093 }, {
9094 .eraseblocks = { {256 * 1024, 1} },
9095 .block_erase = erase_chip_block_jedec,
9096 }
9097 },
Sean Nelson35727f72010-01-28 23:55:12 +00009098 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009099 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009100 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00009101 },
9102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009103 {
9104 .vendor = "ST",
9105 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009106 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009107 .manufacture_id = ST_ID,
9108 .model_id = ST_M29F040B,
9109 .total_size = 512,
9110 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009111 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9112 .tested = TEST_UNTESTED,
9113 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009114 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00009115 .block_erasers =
9116 {
9117 {
9118 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00009119 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00009120 }, {
9121 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009122 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00009123 }
9124 },
Sean Nelson35727f72010-01-28 23:55:12 +00009125 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009126 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009127 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009128 },
9129
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009130 {
Sean Nelson35727f72010-01-28 23:55:12 +00009131 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009132 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009133 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009134 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009135 .manufacture_id = ST_ID,
9136 .model_id = ST_M29F400BB,
9137 .total_size = 512,
9138 .page_size = 64 * 1024,
9139 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009140 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009141 .probe = probe_m29f400bt,
9142 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
9143 .block_erasers =
9144 {
9145 {
9146 .eraseblocks = {
9147 {16 * 1024, 1},
9148 {8 * 1024, 2},
9149 {32 * 1024, 1},
9150 {64 * 1024, 7},
9151 },
9152 .block_erase = block_erase_m29f400bt,
9153 }, {
9154 .eraseblocks = { {512 * 1024, 1} },
9155 .block_erase = block_erase_chip_m29f400bt,
9156 }
9157 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009158 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009160 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009161 },
9162 {
9163 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
9164 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009165 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009166 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009167 .manufacture_id = ST_ID,
9168 .model_id = ST_M29F400BT,
9169 .total_size = 512,
9170 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009171 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009172 .tested = TEST_UNTESTED,
9173 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009174 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = {
9179 {64 * 1024, 7},
9180 {32 * 1024, 1},
9181 {8 * 1024, 2},
9182 {16 * 1024, 1},
9183 },
9184 .block_erase = block_erase_m29f400bt,
9185 }, {
9186 .eraseblocks = { {512 * 1024, 1} },
9187 .block_erase = block_erase_chip_m29f400bt,
9188 }
9189 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009190 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009192 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009193 },
9194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009195 {
9196 .vendor = "ST",
9197 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009198 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009199 .manufacture_id = ST_ID,
9200 .model_id = ST_M29W010B,
9201 .total_size = 128,
9202 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009203 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009204 .tested = TEST_UNTESTED,
9205 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009206 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009207 .block_erasers =
9208 {
9209 {
9210 .eraseblocks = { {16 * 1024, 8}, },
9211 .block_erase = erase_sector_jedec,
9212 }, {
9213 .eraseblocks = { {128 * 1024, 1} },
9214 .block_erase = erase_chip_block_jedec,
9215 }
9216 },
Sean Nelson35727f72010-01-28 23:55:12 +00009217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009219 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009220 },
9221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009222 {
9223 .vendor = "ST",
9224 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009225 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009226 .manufacture_id = ST_ID,
9227 .model_id = ST_M29W040B,
9228 .total_size = 512,
9229 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009230 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009231 .tested = TEST_UNTESTED,
9232 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009234 .block_erasers =
9235 {
9236 {
9237 .eraseblocks = { {64 * 1024, 8}, },
9238 .block_erase = erase_sector_jedec,
9239 }, {
9240 .eraseblocks = { {512 * 1024, 1} },
9241 .block_erase = erase_chip_block_jedec,
9242 }
9243 },
Sean Nelson35727f72010-01-28 23:55:12 +00009244 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009245 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009246 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009247 },
9248
Stefan Taunereb582572012-09-21 12:52:50 +00009249 {
9250 .vendor = "ST",
9251 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009252 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +00009253 .manufacture_id = ST_ID,
9254 .model_id = ST_M29W512B,
9255 .total_size = 64,
9256 .page_size = 64 * 1024,
9257 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009258 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +00009259 .probe = probe_jedec,
9260 .probe_timing = TIMING_ZERO,
9261 .block_erasers =
9262 {
9263 {
9264 .eraseblocks = { {64 * 1024, 1} },
9265 .block_erase = erase_chip_block_jedec,
9266 }
9267 },
9268 .write = write_jedec_1,
9269 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009270 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +00009271 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00009272
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009273 {
9274 .vendor = "ST",
9275 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009276 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009277 .manufacture_id = ST_ID,
9278 .model_id = ST_M50FLW040A,
9279 .total_size = 512,
9280 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009281 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009282 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009283 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009284 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009285 .block_erasers =
9286 {
9287 {
Sean Nelson329bde72010-01-19 16:39:19 +00009288 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009289 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009290 {64 * 1024, 5}, /* block */
9291 {4 * 1024, 16}, /* sector */
9292 {4 * 1024, 16}, /* sector */
9293 },
9294 .block_erase = NULL,
9295 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009296 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009297 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009298 }
9299 },
Sean Nelson28accc22010-03-19 18:47:06 +00009300 .unlock = unlock_stm50flw0x0x,
9301 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009302 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009303 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009304 },
9305
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009306 {
9307 .vendor = "ST",
9308 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009309 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009310 .manufacture_id = ST_ID,
9311 .model_id = ST_M50FLW040B,
9312 .total_size = 512,
9313 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009314 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009315 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009316 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009317 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009318 .block_erasers =
9319 {
9320 {
Sean Nelson329bde72010-01-19 16:39:19 +00009321 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009322 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009323 {4 * 1024, 16}, /* sector */
9324 {64 * 1024, 5}, /* block */
9325 {4 * 1024, 16}, /* sector */
9326 },
9327 .block_erase = NULL,
9328 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009329 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009330 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009331 }
9332 },
Sean Nelson28accc22010-03-19 18:47:06 +00009333 .unlock = unlock_stm50flw0x0x,
9334 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009335 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009336 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009337 },
9338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009339 {
9340 .vendor = "ST",
9341 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009342 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009343 .manufacture_id = ST_ID,
9344 .model_id = ST_M50FLW080A,
9345 .total_size = 1024,
9346 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009347 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009348 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00009349 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009350 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009351 .block_erasers =
9352 {
9353 {
Sean Nelson329bde72010-01-19 16:39:19 +00009354 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009355 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009356 {64 * 1024, 13}, /* block */
9357 {4 * 1024, 16}, /* sector */
9358 {4 * 1024, 16}, /* sector */
9359 },
9360 .block_erase = NULL,
9361 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009362 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009363 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009364 }
9365 },
Sean Nelson28accc22010-03-19 18:47:06 +00009366 .unlock = unlock_stm50flw0x0x,
9367 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009368 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009369 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009370 },
9371
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009372 {
9373 .vendor = "ST",
9374 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009375 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009376 .manufacture_id = ST_ID,
9377 .model_id = ST_M50FLW080B,
9378 .total_size = 1024,
9379 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009380 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009381 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009382 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009383 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009384 .block_erasers =
9385 {
9386 {
Sean Nelson329bde72010-01-19 16:39:19 +00009387 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009388 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009389 {4 * 1024, 16}, /* sector */
9390 {64 * 1024, 13}, /* block */
9391 {4 * 1024, 16}, /* sector */
9392 },
9393 .block_erase = NULL,
9394 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009395 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009396 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009397 }
9398 },
Sean Nelson28accc22010-03-19 18:47:06 +00009399 .unlock = unlock_stm50flw0x0x,
9400 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009401 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009402 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009403 },
9404
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009405 {
9406 .vendor = "ST",
9407 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009408 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009409 .manufacture_id = ST_ID,
9410 .model_id = ST_M50FW002,
9411 .total_size = 256,
9412 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009413 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009414 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009415 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009416 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009417 .block_erasers =
9418 {
9419 {
9420 .eraseblocks = {
9421 {64 * 1024, 3},
9422 {32 * 1024, 1},
9423 {8 * 1024, 2},
9424 {16 * 1024, 1},
9425 },
Sean Nelson28accc22010-03-19 18:47:06 +00009426 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009427 }
9428 },
Sean Nelson28accc22010-03-19 18:47:06 +00009429 .unlock = unlock_stm50flw0x0x,
9430 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009431 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009432 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009433 },
9434
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009435 {
9436 .vendor = "ST",
9437 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009438 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009439 .manufacture_id = ST_ID,
9440 .model_id = ST_M50FW016,
9441 .total_size = 2048,
9442 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009443 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009444 .tested = TEST_UNTESTED,
9445 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009446 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009447 .block_erasers =
9448 {
9449 {
9450 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009451 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009452 }
9453 },
Sean Nelson28accc22010-03-19 18:47:06 +00009454 .unlock = unlock_stm50flw0x0x,
9455 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009457 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009458 },
9459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009460 {
9461 .vendor = "ST",
9462 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009463 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009464 .manufacture_id = ST_ID,
9465 .model_id = ST_M50FW040,
9466 .total_size = 512,
9467 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009468 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00009469 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009470 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009471 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009472 .block_erasers =
9473 {
9474 {
9475 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009476 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009477 }
9478 },
Sean Nelson28accc22010-03-19 18:47:06 +00009479 .unlock = unlock_stm50flw0x0x,
9480 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009482 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009483 },
9484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009485 {
9486 .vendor = "ST",
9487 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009488 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009489 .manufacture_id = ST_ID,
9490 .model_id = ST_M50FW080,
9491 .total_size = 1024,
9492 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009493 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009494 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009495 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009496 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009497 .block_erasers =
9498 {
9499 {
9500 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009501 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009502 }
9503 },
Sean Nelson28accc22010-03-19 18:47:06 +00009504 .unlock = unlock_stm50flw0x0x,
9505 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009506 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009507 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009508 },
9509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009510 {
9511 .vendor = "ST",
9512 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009513 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009514 .manufacture_id = ST_ID,
9515 .model_id = ST_M50LPW116,
9516 .total_size = 2048,
9517 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009518 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009519 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009520 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00009521 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009522 .block_erasers =
9523 {
9524 {
9525 .eraseblocks = {
9526 {4 * 1024, 16},
9527 {64 * 1024, 30},
9528 {32 * 1024, 1},
9529 {8 * 1024, 2},
9530 {16 * 1024, 1},
9531 },
Sean Nelson28accc22010-03-19 18:47:06 +00009532 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009533 }
9534 },
Sean Nelson28accc22010-03-19 18:47:06 +00009535 .unlock = unlock_stm50flw0x0x,
9536 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009538 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009539 },
9540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009541 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009542 .vendor = "SyncMOS/MoselVitelic",
9543 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009544 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009545 .manufacture_id = SYNCMOS_MVC_ID,
9546 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009547 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009548 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00009549 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009550 .tested = TEST_UNTESTED,
9551 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009552 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009553 .block_erasers =
9554 {
9555 {
9556 .eraseblocks = { {512, 256} },
9557 .block_erase = erase_sector_jedec,
9558 }, {
9559 .eraseblocks = { {128 * 1024, 1} },
9560 .block_erase = erase_chip_block_jedec,
9561 },
9562 },
Sean Nelson35727f72010-01-28 23:55:12 +00009563 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009565 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009566 },
9567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009568 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009569 .vendor = "SyncMOS/MoselVitelic",
9570 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009571 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009572 .manufacture_id = SYNCMOS_MVC_ID,
9573 .model_id = SM_MVC_29C51001T,
9574 .total_size = 128,
9575 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00009576 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009577 .tested = TEST_UNTESTED,
9578 .probe = probe_jedec,
9579 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9580 .block_erasers =
9581 {
9582 {
9583 .eraseblocks = { {512, 256} },
9584 .block_erase = erase_sector_jedec,
9585 }, {
9586 .eraseblocks = { {128 * 1024, 1} },
9587 .block_erase = erase_chip_block_jedec,
9588 },
9589 },
9590 .write = write_jedec_1,
9591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009592 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009593 },
9594
9595 {
9596 .vendor = "SyncMOS/MoselVitelic",
9597 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009598 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009599 .manufacture_id = SYNCMOS_MVC_ID,
9600 .model_id = SM_MVC_29C51002B,
9601 .total_size = 256,
9602 .page_size = 512,
9603 .feature_bits = FEATURE_EITHER_RESET,
9604 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009605 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009606 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009607 .block_erasers =
9608 {
9609 {
9610 .eraseblocks = { {512, 512} },
9611 .block_erase = erase_sector_jedec,
9612 }, {
9613 .eraseblocks = { {256 * 1024, 1} },
9614 .block_erase = erase_chip_block_jedec,
9615 },
9616 },
Sean Nelson35727f72010-01-28 23:55:12 +00009617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009618 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009619 },
9620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009621 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009622 .vendor = "SyncMOS/MoselVitelic",
9623 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009624 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009625 .manufacture_id = SYNCMOS_MVC_ID,
9626 .model_id = SM_MVC_29C51002T,
9627 .total_size = 256,
9628 .page_size = 512,
9629 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009630 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009631 .probe = probe_jedec,
9632 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9633 .block_erasers =
9634 {
9635 {
9636 .eraseblocks = { {512, 512} },
9637 .block_erase = erase_sector_jedec,
9638 }, {
9639 .eraseblocks = { {256 * 1024, 1} },
9640 .block_erase = erase_chip_block_jedec,
9641 },
9642 },
9643 .write = write_jedec_1,
9644 .read = read_memmapped,
9645 },
9646
9647 {
9648 .vendor = "SyncMOS/MoselVitelic",
9649 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009650 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009651 .manufacture_id = SYNCMOS_MVC_ID,
9652 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009653 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009654 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009655 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009656 .tested = TEST_UNTESTED,
9657 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009658 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009659 .block_erasers =
9660 {
9661 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009662 .eraseblocks = { {1024, 512} },
9663 .block_erase = erase_sector_jedec,
9664 }, {
9665 .eraseblocks = { {512 * 1024, 1} },
9666 .block_erase = erase_chip_block_jedec,
9667 },
9668 },
9669 .write = write_jedec_1,
9670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009671 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009672 },
9673
9674 {
9675 .vendor = "SyncMOS/MoselVitelic",
9676 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009677 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009678 .manufacture_id = SYNCMOS_MVC_ID,
9679 .model_id = SM_MVC_29C51004T,
9680 .total_size = 512,
9681 .page_size = 1024,
9682 .feature_bits = FEATURE_EITHER_RESET,
9683 .tested = TEST_UNTESTED,
9684 .probe = probe_jedec,
9685 .probe_timing = TIMING_ZERO,
9686 .block_erasers =
9687 {
9688 {
9689 .eraseblocks = { {1024, 512} },
9690 .block_erase = erase_sector_jedec,
9691 }, {
9692 .eraseblocks = { {512 * 1024, 1} },
9693 .block_erase = erase_chip_block_jedec,
9694 },
9695 },
9696 .write = write_jedec_1,
9697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009698 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009699 },
9700
9701 {
9702 .vendor = "SyncMOS/MoselVitelic",
9703 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009704 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009705 .manufacture_id = SYNCMOS_MVC_ID,
9706 .model_id = SM_MVC_29C31004B,
9707 .total_size = 512,
9708 .page_size = 1024,
9709 .feature_bits = FEATURE_EITHER_RESET,
9710 .tested = TEST_UNTESTED,
9711 .probe = probe_jedec,
9712 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9713 .block_erasers =
9714 {
9715 {
9716 .eraseblocks = { {1024, 512} },
9717 .block_erase = erase_sector_jedec,
9718 }, {
9719 .eraseblocks = { {512 * 1024, 1} },
9720 .block_erase = erase_chip_block_jedec,
9721 },
9722 },
9723 .write = write_jedec_1,
9724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009725 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009726 },
9727
9728 {
9729 .vendor = "SyncMOS/MoselVitelic",
9730 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009731 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009732 .manufacture_id = SYNCMOS_MVC_ID,
9733 .model_id = SM_MVC_29C31004T,
9734 .total_size = 512,
9735 .page_size = 1024,
9736 .feature_bits = FEATURE_EITHER_RESET,
9737 .tested = TEST_UNTESTED,
9738 .probe = probe_jedec,
9739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9740 .block_erasers =
9741 {
9742 {
9743 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00009744 .block_erase = erase_sector_jedec,
9745 }, {
9746 .eraseblocks = { {512 * 1024, 1} },
9747 .block_erase = erase_chip_block_jedec,
9748 },
9749 },
Sean Nelson35727f72010-01-28 23:55:12 +00009750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009752 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009753 },
9754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009755 {
Uwe Hermanna106d152009-05-27 23:17:40 +00009756 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009757 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009758 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009759 .manufacture_id = TI_OLD_ID,
9760 .model_id = TI_TMS29F002RB,
9761 .total_size = 256,
9762 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00009763 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009764 .tested = TEST_UNTESTED,
9765 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009766 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009767 .block_erasers =
9768 {
9769 {
9770 .eraseblocks = {
9771 {16 * 1024, 1},
9772 {8 * 1024, 2},
9773 {32 * 1024, 1},
9774 {64 * 1024, 3},
9775 },
9776 .block_erase = erase_sector_jedec,
9777 }, {
9778 .eraseblocks = { {256 * 1024, 1} },
9779 .block_erase = erase_chip_block_jedec,
9780 },
9781 },
Sean Nelson35727f72010-01-28 23:55:12 +00009782 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009784 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009785 },
9786
9787 {
Uwe Hermanna106d152009-05-27 23:17:40 +00009788 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009789 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009790 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009791 .manufacture_id = TI_OLD_ID,
9792 .model_id = TI_TMS29F002RT,
9793 .total_size = 256,
9794 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00009795 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009796 .tested = TEST_UNTESTED,
9797 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009798 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009799 .block_erasers =
9800 {
9801 {
9802 .eraseblocks = {
9803 {64 * 1024, 3},
9804 {32 * 1024, 1},
9805 {8 * 1024, 2},
9806 {16 * 1024, 1},
9807 },
9808 .block_erase = erase_sector_jedec,
9809 }, {
9810 .eraseblocks = { {256 * 1024, 1} },
9811 .block_erase = erase_chip_block_jedec,
9812 },
9813 },
Sean Nelson35727f72010-01-28 23:55:12 +00009814 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009815 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009816 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009817 },
9818
9819 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009820 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00009821 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009822 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009823 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009824 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009825 .total_size = 1024,
9826 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009827 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009829 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009830 .probe = probe_spi_rdid,
9831 .probe_timing = TIMING_ZERO,
9832 .block_erasers =
9833 {
9834 {
9835 .eraseblocks = { {4 * 1024, 256} },
9836 .block_erase = spi_block_erase_20,
9837 }, {
9838 .eraseblocks = { {32 * 1024, 32} },
9839 .block_erase = spi_block_erase_52,
9840 }, {
9841 .eraseblocks = { {64 * 1024, 16} },
9842 .block_erase = spi_block_erase_d8,
9843 }, {
9844 .eraseblocks = { {1024 * 1024, 1} },
9845 .block_erase = spi_block_erase_60,
9846 }, {
9847 .eraseblocks = { {1024 * 1024, 1} },
9848 .block_erase = spi_block_erase_c7,
9849 }
9850 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009851 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009852 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009853 .write = spi_chip_write_256,
9854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009855 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009856 },
9857
9858 {
9859 .vendor = "Winbond",
9860 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009861 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009862 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009863 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009864 .total_size = 2048,
9865 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009866 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00009868 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009869 .probe = probe_spi_rdid,
9870 .probe_timing = TIMING_ZERO,
9871 .block_erasers =
9872 {
9873 {
9874 .eraseblocks = { {4 * 1024, 512} },
9875 .block_erase = spi_block_erase_20,
9876 }, {
9877 .eraseblocks = { {32 * 1024, 64} },
9878 .block_erase = spi_block_erase_52,
9879 }, {
9880 .eraseblocks = { {64 * 1024, 32} },
9881 .block_erase = spi_block_erase_d8,
9882 }, {
9883 .eraseblocks = { {2 * 1024 * 1024, 1} },
9884 .block_erase = spi_block_erase_60,
9885 }, {
9886 .eraseblocks = { {2 * 1024 * 1024, 1} },
9887 .block_erase = spi_block_erase_c7,
9888 }
9889 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009890 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009891 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009892 .write = spi_chip_write_256,
9893 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009894 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009895 },
9896
9897 {
9898 .vendor = "Winbond",
9899 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009900 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009901 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009902 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009903 .total_size = 4096,
9904 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009905 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009907 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009908 .probe = probe_spi_rdid,
9909 .probe_timing = TIMING_ZERO,
9910 .block_erasers =
9911 {
9912 {
9913 .eraseblocks = { {4 * 1024, 1024} },
9914 .block_erase = spi_block_erase_20,
9915 }, {
9916 .eraseblocks = { {32 * 1024, 128} },
9917 .block_erase = spi_block_erase_52,
9918 }, {
9919 .eraseblocks = { {64 * 1024, 64} },
9920 .block_erase = spi_block_erase_d8,
9921 }, {
9922 .eraseblocks = { {4 * 1024 * 1024, 1} },
9923 .block_erase = spi_block_erase_60,
9924 }, {
9925 .eraseblocks = { {4 * 1024 * 1024, 1} },
9926 .block_erase = spi_block_erase_c7,
9927 }
9928 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009929 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009930 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009931 .write = spi_chip_write_256,
9932 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009933 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009934 },
9935
9936 {
9937 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00009938 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009939 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00009940 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009941 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00009942 .total_size = 8192,
9943 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009944 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009946 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00009947 .probe = probe_spi_rdid,
9948 .probe_timing = TIMING_ZERO,
9949 .block_erasers =
9950 {
9951 {
9952 .eraseblocks = { {4 * 1024, 2048} },
9953 .block_erase = spi_block_erase_20,
9954 }, {
9955 .eraseblocks = { {32 * 1024, 256} },
9956 .block_erase = spi_block_erase_52,
9957 }, {
9958 .eraseblocks = { {64 * 1024, 128} },
9959 .block_erase = spi_block_erase_d8,
9960 }, {
9961 .eraseblocks = { {8 * 1024 * 1024, 1} },
9962 .block_erase = spi_block_erase_60,
9963 }, {
9964 .eraseblocks = { {8 * 1024 * 1024, 1} },
9965 .block_erase = spi_block_erase_c7,
9966 }
9967 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009969 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00009970 .write = spi_chip_write_256,
9971 .read = spi_chip_read,
9972 },
9973
9974 {
9975 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00009976 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009977 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009978 .manufacture_id = WINBOND_NEX_ID,
9979 .model_id = WINBOND_NEX_W25Q128,
9980 .total_size = 16384,
9981 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009982 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9983 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009984 .tested = TEST_OK_PROBE,
9985 .probe = probe_spi_rdid,
9986 .probe_timing = TIMING_ZERO,
9987 .block_erasers =
9988 {
9989 {
9990 .eraseblocks = { {4 * 1024, 4096} },
9991 .block_erase = spi_block_erase_20,
9992 }, {
9993 .eraseblocks = { {32 * 1024, 512} },
9994 .block_erase = spi_block_erase_52,
9995 }, {
9996 .eraseblocks = { {64 * 1024, 256} },
9997 .block_erase = spi_block_erase_d8,
9998 }, {
9999 .eraseblocks = { {16 * 1024 * 1024, 1} },
10000 .block_erase = spi_block_erase_60,
10001 }, {
10002 .eraseblocks = { {16 * 1024 * 1024, 1} },
10003 .block_erase = spi_block_erase_c7,
10004 }
10005 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010006 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000010007 .unlock = spi_disable_blockprotect,
10008 .write = spi_chip_write_256,
10009 .read = spi_chip_read,
10010 },
10011
10012 {
10013 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010014 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010015 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010016 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010017 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010018 .total_size = 128,
10019 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010020 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010021 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010022 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010023 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010024 .block_erasers =
10025 {
10026 {
10027 .eraseblocks = { {4 * 1024, 32} },
10028 .block_erase = spi_block_erase_20,
10029 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010030 .eraseblocks = { {64 * 1024, 2} },
10031 .block_erase = spi_block_erase_d8,
10032 }, {
10033 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010034 .block_erase = spi_block_erase_c7,
10035 }
10036 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010037 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010038 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010039 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010040 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010041 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010042 },
10043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010044 {
10045 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010046 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010047 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010048 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010049 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010050 .total_size = 256,
10051 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010052 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010053 .tested = TEST_UNTESTED,
10054 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010055 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010056 .block_erasers =
10057 {
10058 {
10059 .eraseblocks = { {4 * 1024, 64} },
10060 .block_erase = spi_block_erase_20,
10061 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010062 .eraseblocks = { {64 * 1024, 4} },
10063 .block_erase = spi_block_erase_d8,
10064 }, {
10065 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010066 .block_erase = spi_block_erase_c7,
10067 }
10068 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010069 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010070 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010071 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010072 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010073 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010074 },
10075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010076 {
10077 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010078 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010079 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010080 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010081 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010082 .total_size = 512,
10083 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010084 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000010085 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010086 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010087 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010088 .block_erasers =
10089 {
10090 {
10091 .eraseblocks = { {4 * 1024, 128} },
10092 .block_erase = spi_block_erase_20,
10093 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010094 .eraseblocks = { {64 * 1024, 8} },
10095 .block_erase = spi_block_erase_d8,
10096 }, {
10097 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010098 .block_erase = spi_block_erase_c7,
10099 }
10100 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010101 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010106 },
10107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010108 {
10109 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010110 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010111 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010112 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010113 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010114 .total_size = 1024,
10115 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010116 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000010117 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010118 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010119 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010120 .block_erasers =
10121 {
10122 {
10123 .eraseblocks = { {4 * 1024, 256} },
10124 .block_erase = spi_block_erase_20,
10125 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010126 .eraseblocks = { {64 * 1024, 16} },
10127 .block_erase = spi_block_erase_d8,
10128 }, {
10129 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010130 .block_erase = spi_block_erase_c7,
10131 }
10132 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010133 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010134 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010135 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010138 },
10139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010140 {
10141 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010142 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010143 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000010144 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010145 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000010146 .total_size = 2048,
10147 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010148 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000010149 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000010150 .probe = probe_spi_rdid,
10151 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010152 .block_erasers =
10153 {
10154 {
10155 .eraseblocks = { {4 * 1024, 512} },
10156 .block_erase = spi_block_erase_20,
10157 }, {
10158 .eraseblocks = { {32 * 1024, 64} },
10159 .block_erase = spi_block_erase_52,
10160 }, {
10161 .eraseblocks = { {64 * 1024, 32} },
10162 .block_erase = spi_block_erase_d8,
10163 }, {
10164 .eraseblocks = { {2 * 1024 * 1024, 1} },
10165 .block_erase = spi_block_erase_60,
10166 }, {
10167 .eraseblocks = { {2 * 1024 * 1024, 1} },
10168 .block_erase = spi_block_erase_c7,
10169 }
10170 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010171 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010172 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000010173 .write = spi_chip_write_256,
10174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010175 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000010176 },
10177
10178 {
10179 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010180 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010181 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000010182 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010183 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000010184 .total_size = 4096,
10185 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010186 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000010187 .tested = TEST_OK_PROBE,
10188 .probe = probe_spi_rdid,
10189 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010190 .block_erasers =
10191 {
10192 {
10193 .eraseblocks = { {4 * 1024, 1024} },
10194 .block_erase = spi_block_erase_20,
10195 }, {
10196 .eraseblocks = { {32 * 1024, 128} },
10197 .block_erase = spi_block_erase_52,
10198 }, {
10199 .eraseblocks = { {64 * 1024, 64} },
10200 .block_erase = spi_block_erase_d8,
10201 }, {
10202 .eraseblocks = { {4 * 1024 * 1024, 1} },
10203 .block_erase = spi_block_erase_60,
10204 }, {
10205 .eraseblocks = { {4 * 1024 * 1024, 1} },
10206 .block_erase = spi_block_erase_c7,
10207 }
10208 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010209 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010210 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000010211 .write = spi_chip_write_256,
10212 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010213 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000010214 },
10215
10216 {
10217 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010218 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010219 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000010220 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010221 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000010222 .total_size = 8192,
10223 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010224 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010225 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000010226 .probe = probe_spi_rdid,
10227 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010228 .block_erasers =
10229 {
10230 {
10231 .eraseblocks = { {4 * 1024, 2048} },
10232 .block_erase = spi_block_erase_20,
10233 }, {
10234 .eraseblocks = { {32 * 1024, 256} },
10235 .block_erase = spi_block_erase_52,
10236 }, {
10237 .eraseblocks = { {64 * 1024, 128} },
10238 .block_erase = spi_block_erase_d8,
10239 }, {
10240 .eraseblocks = { {8 * 1024 * 1024, 1} },
10241 .block_erase = spi_block_erase_60,
10242 }, {
10243 .eraseblocks = { {8 * 1024 * 1024, 1} },
10244 .block_erase = spi_block_erase_c7,
10245 }
10246 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010247 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010248 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000010249 .write = spi_chip_write_256,
10250 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010251 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000010252 },
10253
10254 {
10255 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000010256 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010257 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000010258 .manufacture_id = WINBOND_ID,
10259 .model_id = WINBOND_W29C010,
10260 .total_size = 128,
10261 .page_size = 128,
10262 .feature_bits = FEATURE_LONG_RESET,
10263 .tested = TEST_OK_PRE,
10264 .probe = probe_w29ee011,
10265 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
10266 .block_erasers =
10267 {
10268 {
10269 .eraseblocks = { {128 * 1024, 1} },
10270 .block_erase = erase_chip_block_jedec,
10271 }
10272 },
10273 .write = write_jedec,
10274 .read = read_memmapped,
10275 },
10276
10277 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
10278 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000010279 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010280 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010281 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010282 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010283 .total_size = 128,
10284 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010285 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000010286 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010287 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010288 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010289 .block_erasers =
10290 {
10291 {
10292 .eraseblocks = { {128 * 1024, 1} },
10293 .block_erase = erase_chip_block_jedec,
10294 }
10295 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010296 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010297 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000010298 },
10299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010300 {
10301 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000010302 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010303 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010304 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010305 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010306 .total_size = 256,
10307 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010308 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010309 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010310 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010311 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010312 .block_erasers =
10313 {
10314 {
10315 .eraseblocks = { {256 * 1024, 1} },
10316 .block_erase = erase_chip_block_jedec,
10317 }
10318 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010319 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010320 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010321 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010322 },
10323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010324 {
10325 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000010326 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010327 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010328 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010329 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010330 .total_size = 512,
10331 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010332 .feature_bits = FEATURE_LONG_RESET,
10333 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010334 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +000010335 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010336 .block_erasers =
10337 {
10338 {
10339 .eraseblocks = { {512 * 1024, 1} },
10340 .block_erase = erase_chip_block_jedec,
10341 }
10342 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010343 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010344 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010345 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010346 },
10347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010348 {
10349 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000010350 .name = "W39F010",
10351 .bustype = BUS_PARALLEL,
10352 .manufacture_id = WINBOND_ID,
10353 .model_id = WINBOND_W39F010,
10354 .total_size = 128,
10355 .page_size = 4 * 1024,
10356 .feature_bits = FEATURE_EITHER_RESET,
10357 .tested = TEST_OK_PREW,
10358 .probe = probe_jedec,
10359 .probe_timing = 10,
10360 .block_erasers =
10361 {
10362 {
10363 .eraseblocks = { {4 * 1024, 32} },
10364 .block_erase = erase_block_jedec,
10365 }, {
10366 .eraseblocks = { {128 * 1024, 1} },
10367 .block_erase = erase_chip_block_jedec,
10368 }
10369 },
10370 .printlock = printlock_w39f010,
10371 .write = write_jedec_1,
10372 .read = read_memmapped,
10373 .voltage = {4500, 5500},
10374 },
10375
10376 {
10377 .vendor = "Winbond",
10378 .name = "W39L010",
10379 .bustype = BUS_PARALLEL,
10380 .manufacture_id = WINBOND_ID,
10381 .model_id = WINBOND_W39L010,
10382 .total_size = 128,
10383 .page_size = 4 * 1024,
10384 .feature_bits = FEATURE_EITHER_RESET,
10385 .tested = TEST_UNTESTED,
10386 .probe = probe_jedec,
10387 .probe_timing = 10,
10388 .block_erasers =
10389 {
10390 {
10391 .eraseblocks = { {4 * 1024, 32} },
10392 .block_erase = erase_block_jedec,
10393 }, {
10394 .eraseblocks = { {128 * 1024, 1} },
10395 .block_erase = erase_chip_block_jedec,
10396 }
10397 },
10398 .printlock = printlock_w39l010,
10399 .write = write_jedec_1,
10400 .read = read_memmapped,
10401 .voltage = {3000, 3600},
10402 },
10403
10404 {
10405 .vendor = "Winbond",
10406 .name = "W39L020",
10407 .bustype = BUS_PARALLEL,
10408 .manufacture_id = WINBOND_ID,
10409 .model_id = WINBOND_W39L020,
10410 .total_size = 256,
10411 .page_size = 4 * 1024,
10412 .feature_bits = FEATURE_EITHER_RESET,
10413 .tested = TEST_UNTESTED,
10414 .probe = probe_jedec,
10415 .probe_timing = 10,
10416 .block_erasers =
10417 {
10418 {
10419 .eraseblocks = { {4 * 1024, 64} },
10420 .block_erase = erase_block_jedec,
10421 }, {
10422 .eraseblocks = { {64 * 1024, 4} },
10423 .block_erase = erase_sector_jedec,
10424 }, {
10425 .eraseblocks = { {256 * 1024, 1} },
10426 .block_erase = erase_chip_block_jedec,
10427 }
10428 },
10429 .printlock = printlock_w39l020,
10430 .write = write_jedec_1,
10431 .read = read_memmapped,
10432 .voltage = {3000, 3600},
10433 },
10434
10435 {
10436 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000010437 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010438 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000010439 .manufacture_id = WINBOND_ID,
10440 .model_id = WINBOND_W39L040,
10441 .total_size = 512,
10442 .page_size = 64 * 1024,
10443 .feature_bits = FEATURE_EITHER_RESET,
10444 .tested = TEST_OK_PR,
10445 .probe = probe_jedec,
10446 .probe_timing = 10,
10447 .block_erasers =
10448 {
10449 {
10450 .eraseblocks = { {4 * 1024, 128} },
10451 .block_erase = erase_block_jedec,
10452 }, {
10453 .eraseblocks = { {64 * 1024, 8} },
10454 .block_erase = erase_sector_jedec,
10455 }, {
10456 .eraseblocks = { {512 * 1024, 1} },
10457 .block_erase = erase_chip_block_jedec,
10458 }
10459 },
10460 .printlock = printlock_w39l040,
10461 .write = write_jedec_1,
10462 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010463 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000010464 },
10465
10466 {
10467 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010468 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010469 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010470 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010471 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010472 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010473 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010474 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010475 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010476 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000010477 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010478 .block_erasers =
10479 {
10480 {
10481 .eraseblocks = { {64 * 1024, 8} },
10482 .block_erase = erase_sector_jedec,
10483 }, {
10484 .eraseblocks = { {512 * 1024, 1} },
10485 .block_erase = erase_chip_block_jedec,
10486 }
10487 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010488 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000010489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010491 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010492 },
10493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010494 {
10495 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010496 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010497 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010498 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010499 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010500 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010501 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010502 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010503 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010504 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000010505 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010506 .block_erasers =
10507 {
10508 {
10509 .eraseblocks = { {64 * 1024, 8} },
10510 .block_erase = erase_sector_jedec,
10511 }, {
10512 .eraseblocks = { {512 * 1024, 1} },
10513 .block_erase = erase_chip_block_jedec,
10514 }
10515 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010516 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000010517 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010518 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010519 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010520 },
10521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010522 {
10523 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010524 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010525 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010526 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010527 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010528 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010529 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010530 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010531 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010532 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010533 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010534 .block_erasers =
10535 {
10536 {
10537 .eraseblocks = { {64 * 1024, 8} },
10538 .block_erase = erase_sector_jedec,
10539 }, {
10540 .eraseblocks = { {512 * 1024, 1} },
10541 .block_erase = erase_chip_block_jedec,
10542 }
10543 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000010544 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000010545 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010547 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010548 },
10549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010550 {
10551 .vendor = "Winbond",
10552 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010553 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010554 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010555 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010556 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010557 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000010558 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010559 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010560 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010561 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010562 .block_erasers =
10563 {
10564 {
10565 .eraseblocks = { {4 * 1024, 128} },
10566 .block_erase = erase_block_jedec,
10567 }, {
10568 .eraseblocks = { {64 * 1024, 8} },
10569 .block_erase = erase_sector_jedec,
10570 }, {
10571 .eraseblocks = { {512 * 1024, 1} },
10572 .block_erase = erase_chip_block_jedec,
10573 }
10574 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010575 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000010576 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000010577 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010579 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010580 },
10581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010582 {
10583 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010584 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010585 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010586 .manufacture_id = WINBOND_ID,
10587 .model_id = WINBOND_W39V040B,
10588 .total_size = 512,
10589 .page_size = 64 * 1024,
10590 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010591 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010592 .probe = probe_jedec,
10593 .probe_timing = 10,
10594 .block_erasers =
10595 {
10596 {
10597 .eraseblocks = { {64 * 1024, 8} },
10598 .block_erase = erase_sector_jedec,
10599 }, {
10600 .eraseblocks = { {512 * 1024, 1} },
10601 .block_erase = erase_chip_block_jedec,
10602 }
10603 },
10604 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000010605 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010606 .write = write_jedec_1,
10607 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010608 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010609 },
10610
10611 {
10612 .vendor = "Winbond",
10613 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010614 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010615 .manufacture_id = WINBOND_ID,
10616 .model_id = WINBOND_W39V040C,
10617 .total_size = 512,
10618 .page_size = 64 * 1024,
10619 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010620 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010621 .probe = probe_jedec,
10622 .probe_timing = 10,
10623 .block_erasers =
10624 {
10625 {
10626 .eraseblocks = { {64 * 1024, 8} },
10627 .block_erase = erase_sector_jedec,
10628 }, {
10629 .eraseblocks = { {512 * 1024, 1} },
10630 .block_erase = erase_chip_block_jedec,
10631 }
10632 },
10633 .printlock = printlock_w39v040fc,
10634 .write = write_jedec_1,
10635 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010636 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010637 },
10638
10639 {
10640 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010641 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010642 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010643 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010644 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010645 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000010646 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010647 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000010648 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010649 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000010650 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010651 .block_erasers =
10652 {
10653 {
10654 .eraseblocks = { {64 * 1024, 16} },
10655 .block_erase = erase_sector_jedec,
10656 }, {
10657 .eraseblocks = { {1024 * 1024, 1} },
10658 .block_erase = erase_chip_block_jedec,
10659 }
10660 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010661 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000010662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010664 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010665 },
10666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010667 {
10668 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000010669 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010670 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010671 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010672 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010673 .total_size = 256,
10674 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010675 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010676 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010677 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010678 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010679 .block_erasers =
10680 {
10681 {
10682 .eraseblocks = {
10683 {128 * 1024, 1},
10684 {96 * 1024, 1},
10685 {8 * 1024, 2},
10686 {16 * 1024, 1},
10687 },
10688 .block_erase = erase_sector_jedec,
10689 }, {
10690 .eraseblocks = { {256 * 1024, 1} },
10691 .block_erase = erase_chip_block_jedec,
10692 }
10693 },
Sean Nelson35727f72010-01-28 23:55:12 +000010694 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010696 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010697 },
10698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010699 {
10700 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010701 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010702 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010703 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010704 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010705 .total_size = 256,
10706 .page_size = 128,
10707 .feature_bits = FEATURE_EITHER_RESET,
10708 .tested = TEST_OK_PROBE,
10709 .probe = probe_jedec,
10710 .probe_timing = 10,
10711 .block_erasers =
10712 {
10713 {
10714 .eraseblocks = { {256 * 1024, 1} },
10715 .block_erase = erase_chip_block_jedec,
10716 }
10717 },
10718 .write = write_jedec_1,
10719 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010720 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010721 },
10722
10723 {
10724 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010725 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010726 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010727 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010728 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010729 .total_size = 256,
10730 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010731 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010732 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010733 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010734 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010735 .block_erasers =
10736 {
10737 {
10738 .eraseblocks = {
10739 {64 * 1024, 3},
10740 {32 * 1024, 1},
10741 {8 * 1024, 2},
10742 {16 * 1024, 1},
10743 },
10744 .block_erase = erase_sector_jedec,
10745 }, {
10746 .eraseblocks = { {256 * 1024, 1} },
10747 .block_erase = erase_chip_block_jedec,
10748 }
10749 },
Sean Nelson35727f72010-01-28 23:55:12 +000010750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010752 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010753 },
10754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010755 {
10756 .vendor = "Winbond",
10757 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010758 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010759 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010760 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010761 .total_size = 256,
10762 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010763 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010765 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010766 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010767 .block_erasers =
10768 {
10769 {
10770 .eraseblocks = {
10771 {64 * 1024, 3},
10772 {32 * 1024, 1},
10773 {8 * 1024, 2},
10774 {16 * 1024, 1},
10775 },
10776 .block_erase = erase_sector_jedec,
10777 }, {
10778 .eraseblocks = { {256 * 1024, 1} },
10779 .block_erase = erase_chip_block_jedec,
10780 }
10781 },
Sean Nelson35727f72010-01-28 23:55:12 +000010782 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010784 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010785 },
10786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010787 {
10788 .vendor = "Winbond",
10789 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010790 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010791 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010792 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010793 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000010794 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010795 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010796 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010797 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010798 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010799 .block_erasers =
10800 {
10801 {
10802 .eraseblocks = { {64 * 1024, 16}, },
10803 .block_erase = erase_sector_jedec,
10804 }, {
10805 .eraseblocks = { {1024 * 1024, 1} },
10806 .block_erase = erase_chip_block_jedec,
10807 }
10808 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010809 .printlock = printlock_w39v080fa,
10810 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000010811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010812 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010813 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010814 },
10815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010816 {
10817 .vendor = "Winbond",
10818 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010819 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010820 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010821 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010822 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010823 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010824 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010825 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010826 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010827 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010828 .block_erasers =
10829 {
10830 {
10831 .eraseblocks = { {64 * 1024, 8}, },
10832 .block_erase = erase_sector_jedec,
10833 }, {
10834 .eraseblocks = { {512 * 1024, 1} },
10835 .block_erase = erase_chip_block_jedec,
10836 }
10837 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010838 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000010839 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010840 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010841 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010842 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010843
10844 {
10845 .vendor = "Unknown",
10846 .name = "SFDP-capable chip",
10847 .bustype = BUS_SPI,
10848 .manufacture_id = GENERIC_MANUF_ID,
10849 .model_id = SFDP_DEVICE_ID,
10850 /* We present our own "report this" text hence we do not
10851 * want the default "This flash part has status UNTESTED..."
10852 * text to be printed. */
10853 .tested = TEST_OK_PREW,
10854 .probe = probe_spi_sfdp,
10855 .unlock = spi_disable_blockprotect, /* is this safe? */
10856 .read = spi_chip_read,
10857 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000010858 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010859 /* Everything below will be set by the probing function. */
10860 .write = NULL,
10861 .total_size = 0,
10862 .page_size = 0,
10863 .feature_bits = 0,
10864 .block_erasers = {},
10865 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010866
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010867 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000010868 .vendor = "Programmer",
10869 .name = "Opaque flash chip",
10870 .bustype = BUS_PROG,
10871 .manufacture_id = PROGMANUF_ID,
10872 .model_id = PROGDEV_ID,
10873 .total_size = 0,
10874 .page_size = 256,
10875 /* probe is assumed to work, rest will be filled in by probe */
10876 .tested = TEST_OK_PROBE,
10877 .probe = probe_opaque,
10878 /* eraseblock sizes will be set by the probing function */
10879 .block_erasers =
10880 {
10881 {
10882 .block_erase = erase_opaque,
10883 }
10884 },
10885 .write = write_opaque,
10886 .read = read_opaque,
10887 },
10888
10889 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010890 .vendor = "AMIC",
10891 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010892 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010893 .manufacture_id = AMIC_ID,
10894 .model_id = GENERIC_DEVICE_ID,
10895 .total_size = 0,
10896 .page_size = 256,
10897 .tested = TEST_BAD_PREW,
10898 .probe = probe_spi_rdid4,
10899 .probe_timing = TIMING_ZERO,
10900 .write = NULL,
10901 .read = NULL,
10902 },
10903
10904 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010905 .vendor = "Atmel",
10906 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010907 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010908 .manufacture_id = ATMEL_ID,
10909 .model_id = GENERIC_DEVICE_ID,
10910 .total_size = 0,
10911 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010912 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010913 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010914 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010915 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010916 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010917 },
10918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010919 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000010920 .vendor = "Eon",
10921 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010922 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010923 .manufacture_id = EON_ID_NOPREFIX,
10924 .model_id = GENERIC_DEVICE_ID,
10925 .total_size = 0,
10926 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010927 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010928 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010929 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010930 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010931 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010932 },
10933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010934 {
10935 .vendor = "Macronix",
10936 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010937 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010938 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010939 .model_id = GENERIC_DEVICE_ID,
10940 .total_size = 0,
10941 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010942 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010943 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010944 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010945 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010946 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010947 },
10948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010949 {
10950 .vendor = "PMC",
10951 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010952 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010953 .manufacture_id = PMC_ID,
10954 .model_id = GENERIC_DEVICE_ID,
10955 .total_size = 0,
10956 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010957 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010958 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010959 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010960 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010961 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010962 },
10963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010964 {
10965 .vendor = "SST",
10966 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010967 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010968 .manufacture_id = SST_ID,
10969 .model_id = GENERIC_DEVICE_ID,
10970 .total_size = 0,
10971 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010972 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010973 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010974 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010975 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010976 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010977 },
10978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010979 {
10980 .vendor = "ST",
10981 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010982 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010983 .manufacture_id = ST_ID,
10984 .model_id = GENERIC_DEVICE_ID,
10985 .total_size = 0,
10986 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010987 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010988 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010989 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010990 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010991 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010992 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000010993
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010994 {
Sean Nelson118e1d62009-11-24 02:08:11 +000010995 .vendor = "Sanyo",
10996 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010997 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000010998 .manufacture_id = SANYO_ID,
10999 .model_id = GENERIC_DEVICE_ID,
11000 .total_size = 0,
11001 .page_size = 256,
11002 .tested = TEST_BAD_PREW,
11003 .probe = probe_spi_rdid,
11004 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000011005 .write = NULL,
11006 .read = NULL,
11007 },
11008
11009 {
Stefan Taunereb582572012-09-21 12:52:50 +000011010 .vendor = "Winbond",
11011 .name = "unknown Winbond (ex Nexcom) SPI chip",
11012 .bustype = BUS_SPI,
11013 .manufacture_id = WINBOND_NEX_ID,
11014 .model_id = GENERIC_DEVICE_ID,
11015 .total_size = 0,
11016 .page_size = 256,
11017 .tested = TEST_BAD_PREW,
11018 .probe = probe_spi_rdid,
11019 .probe_timing = TIMING_ZERO,
11020 .write = NULL,
11021 .read = NULL,
11022 },
11023
11024 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011025 .vendor = "Generic",
11026 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011027 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011028 .manufacture_id = GENERIC_MANUF_ID,
11029 .model_id = GENERIC_DEVICE_ID,
11030 .total_size = 0,
11031 .page_size = 256,
11032 .tested = TEST_BAD_PREW,
11033 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011034 .write = NULL,
11035 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000011036
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011037 {
11038 .vendor = "Generic",
11039 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011040 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011041 .manufacture_id = GENERIC_MANUF_ID,
11042 .model_id = GENERIC_DEVICE_ID,
11043 .total_size = 0,
11044 .page_size = 256,
11045 .tested = TEST_BAD_PREW,
11046 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011047 .write = NULL,
11048 },
11049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011050 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000011051};