blob: a3d4345bf7997d9417e01f4b0c3250609f88e51a [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 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .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",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enhance (sic!) */
1279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
1300 .eraseblocks = {
1301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
1332 .eraseblocks = {
1333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1358 .tested = TEST_UNTESTED,
1359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
1398 .unlock = unlock_49fl00x,
1399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .tested = TEST_UNTESTED,
1682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
1712 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001716 .total_size = 2048,
1717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 512} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 64} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 32} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {2 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {2 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001751 .name = "AT25F512",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25F512,
1755 .total_size = 64,
1756 .page_size = 256,
1757 .feature_bits = FEATURE_WRSR_WREN,
1758 .tested = TEST_UNTESTED,
1759 .probe = probe_spi_at25f,
1760 .probe_timing = TIMING_ZERO,
1761 .block_erasers =
1762 {
1763 {
1764 .eraseblocks = { {32 * 1024, 2} },
1765 .block_erase = spi_block_erase_52,
1766 }, {
1767 .eraseblocks = { {64 * 1024, 1} },
1768 .block_erase = spi_block_erase_62,
1769 }
1770 },
1771 .printlock = spi_prettyprint_status_register_at25f,
1772 .unlock = spi_disable_blockprotect_at25f,
1773 .write = spi_chip_write_256,
1774 .read = spi_chip_read,
1775 .voltage = {2700, 3600},
1776 },
1777
1778 {
1779 .vendor = "Atmel",
1780 .name = "AT25F512A",
1781 .bustype = BUS_SPI,
1782 .manufacture_id = ATMEL_ID,
1783 .model_id = ATMEL_AT25F512A,
1784 .total_size = 64,
1785 .page_size = 128,
1786 .feature_bits = FEATURE_WRSR_WREN,
1787 .tested = TEST_UNTESTED,
1788 .probe = probe_spi_at25f,
1789 .probe_timing = TIMING_ZERO,
1790 .block_erasers =
1791 {
1792 {
1793 .eraseblocks = { {32 * 1024, 2} },
1794 .block_erase = spi_block_erase_52,
1795 }, {
1796 .eraseblocks = { {64 * 1024, 1} },
1797 .block_erase = spi_block_erase_62,
1798 }
1799 },
1800 .printlock = spi_prettyprint_status_register_at25f512a,
1801 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1802 .unlock = spi_disable_blockprotect_at25f512a,
1803 .write = spi_chip_write_256,
1804 .read = spi_chip_read,
1805 .voltage = {2700, 3600},
1806 },
1807
1808 {
1809 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 64,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001818 .tested = TEST_UNTESTED,
1819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 16} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 2} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {32 * 1024, 2} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {64 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {64 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001838 }, {
1839 .eraseblocks = { {64 * 1024, 1} },
1840 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001841 }
1842 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001843 .printlock = spi_prettyprint_status_register_at25f512b,
1844 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001845 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001848 },
1849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001850 {
1851 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001852 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1853 * All other properties seem to be the same.*/
1854 .name = "AT25F1024(A)",
1855 .bustype = BUS_SPI,
1856 .manufacture_id = ATMEL_ID,
1857 .model_id = ATMEL_AT25F1024,
1858 .total_size = 128,
1859 .page_size = 256,
1860 .feature_bits = FEATURE_WRSR_WREN,
1861 .tested = TEST_OK_PREW,
1862 .probe = probe_spi_at25f,
1863 .probe_timing = TIMING_ZERO,
1864 .block_erasers =
1865 {
1866 {
1867 .eraseblocks = { {32 * 1024, 4} },
1868 .block_erase = spi_block_erase_52,
1869 }, {
1870 .eraseblocks = { {128 * 1024, 1} },
1871 .block_erase = spi_block_erase_62,
1872 }
1873 },
1874 .printlock = spi_prettyprint_status_register_at25f,
1875 .unlock = spi_disable_blockprotect_at25f,
1876 .write = spi_chip_write_256,
1877 .read = spi_chip_read,
1878 .voltage = {2700, 3600},
1879 },
1880
1881 {
1882 .vendor = "Atmel",
1883 .name = "AT25F2048",
1884 .bustype = BUS_SPI,
1885 .manufacture_id = ATMEL_ID,
1886 .model_id = ATMEL_AT25F2048,
1887 .total_size = 256,
1888 .page_size = 256,
1889 .feature_bits = FEATURE_WRSR_WREN,
1890 .tested = TEST_UNTESTED,
1891 .probe = probe_spi_at25f,
1892 .probe_timing = TIMING_ZERO,
1893 .block_erasers =
1894 {
1895 {
1896 .eraseblocks = { {64 * 1024, 4} },
1897 .block_erase = spi_block_erase_52,
1898 }, {
1899 .eraseblocks = { {256 * 1024, 1} },
1900 .block_erase = spi_block_erase_62,
1901 }
1902 },
1903 .printlock = spi_prettyprint_status_register_at25f,
1904 .unlock = spi_disable_blockprotect_at25f,
1905 .write = spi_chip_write_256,
1906 .read = spi_chip_read,
1907 .voltage = {2700, 3600},
1908 },
1909
1910 {
1911 .vendor = "Atmel",
1912 .name = "AT25F4096",
1913 .bustype = BUS_SPI,
1914 .manufacture_id = ATMEL_ID,
1915 .model_id = ATMEL_AT25F4096,
1916 .total_size = 512,
1917 .page_size = 256,
1918 .feature_bits = FEATURE_WRSR_WREN,
1919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_at25f,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {64 * 1024, 8} },
1926 .block_erase = spi_block_erase_52,
1927 }, {
1928 .eraseblocks = { {512 * 1024, 1} },
1929 .block_erase = spi_block_erase_62,
1930 }
1931 },
1932 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001933 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1934 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001935 .write = spi_chip_write_256,
1936 .read = spi_chip_read,
1937 .voltage = {2700, 3600},
1938 },
1939
1940 {
1941 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001945 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001946 .total_size = 128,
1947 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001948 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001949 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001951 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001952 .block_erasers =
1953 {
1954 {
1955 .eraseblocks = { {4 * 1024, 32} },
1956 .block_erase = spi_block_erase_20,
1957 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001958 .eraseblocks = { {4 * 1024, 32} },
1959 .block_erase = spi_block_erase_d7,
1960 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001961 .eraseblocks = { {32 * 1024, 4} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {32 * 1024, 4} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {128 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {128 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001974 .printlock = spi_prettyprint_status_register_at25fs010,
1975 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001976 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001978 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001979 },
1980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001981 {
1982 .vendor = "Atmel",
1983 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001984 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001985 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001986 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001987 .total_size = 512,
1988 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001989 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001990 .tested = TEST_UNTESTED,
1991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001992 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001993 .block_erasers =
1994 {
1995 {
1996 .eraseblocks = { {4 * 1024, 128} },
1997 .block_erase = spi_block_erase_20,
1998 }, {
1999 .eraseblocks = { {64 * 1024, 8} },
2000 .block_erase = spi_block_erase_52,
2001 }, {
2002 .eraseblocks = { {64 * 1024, 8} },
2003 .block_erase = spi_block_erase_d8,
2004 }, {
2005 .eraseblocks = { {512 * 1024, 1} },
2006 .block_erase = spi_block_erase_60,
2007 }, {
2008 .eraseblocks = { {512 * 1024, 1} },
2009 .block_erase = spi_block_erase_c7,
2010 }
2011 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002012 .printlock = spi_prettyprint_status_register_at25fs040,
2013 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002014 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002016 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002017 },
2018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 {
2020 .vendor = "Atmel",
2021 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002024 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002025 .total_size = 512,
2026 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002030 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002031 .block_erasers =
2032 {
2033 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002034 .eraseblocks = { {256, 2048} },
2035 .block_erase = spi_block_erase_81,
2036 }, {
2037 .eraseblocks = { {2 * 1024, 256} },
2038 .block_erase = spi_block_erase_50,
2039 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002040 .eraseblocks = { {4 * 1024, 128} },
2041 .block_erase = spi_block_erase_20,
2042 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002043 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002044 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002045 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002046 .write = spi_chip_write_1,
2047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002048 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 1024,
2058 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002059 .feature_bits = FEATURE_WRSR_WREN,
2060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002062 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {4 * 1024, 256} },
2067 .block_erase = spi_block_erase_20,
2068 }, {
2069 .eraseblocks = { {32 * 1024, 32} },
2070 .block_erase = spi_block_erase_52,
2071 }, {
2072 .eraseblocks = { {64 * 1024, 16} },
2073 .block_erase = spi_block_erase_d8,
2074 }, {
2075 .eraseblocks = { {1024 * 1024, 1} },
2076 .block_erase = spi_block_erase_60,
2077 }, {
2078 .eraseblocks = { {1024 * 1024, 1} },
2079 .block_erase = spi_block_erase_c7,
2080 }
2081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002082 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002083 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002084 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002087 },
2088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002095 .total_size = 2048,
2096 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002097 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002098 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002100 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002101 .block_erasers =
2102 {
2103 {
2104 .eraseblocks = { {4 * 1024, 512} },
2105 .block_erase = spi_block_erase_20,
2106 }, {
2107 .eraseblocks = { {32 * 1024, 64} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 32} },
2111 .block_erase = spi_block_erase_d8,
2112 }, {
2113 .eraseblocks = { {2 * 1024 * 1024, 1} },
2114 .block_erase = spi_block_erase_60,
2115 }, {
2116 .eraseblocks = { {2 * 1024 * 1024, 1} },
2117 .block_erase = spi_block_erase_c7,
2118 }
2119 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002120 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002121 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002122 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002124 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002125 },
2126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002127 {
2128 .vendor = "Atmel",
2129 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002130 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002132 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .total_size = 2048,
2134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002135 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002136 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002138 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002139 .block_erasers =
2140 {
2141 {
2142 .eraseblocks = { {4 * 1024, 512} },
2143 .block_erase = spi_block_erase_20,
2144 }, {
2145 .eraseblocks = { {32 * 1024, 64} },
2146 .block_erase = spi_block_erase_52,
2147 }, {
2148 .eraseblocks = { {64 * 1024, 32} },
2149 .block_erase = spi_block_erase_d8,
2150 }, {
2151 .eraseblocks = { {2 * 1024 * 1024, 1} },
2152 .block_erase = spi_block_erase_60,
2153 }, {
2154 .eraseblocks = { {2 * 1024 * 1024, 1} },
2155 .block_erase = spi_block_erase_c7,
2156 }
2157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002158 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002159 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002160 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002163 },
2164
2165 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002166 /*{
2167 .vendor = "Atmel",
2168 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002169 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002170 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002171 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .total_size = 4096,
2173 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002174 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 .tested = TEST_UNTESTED,
2176 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002177 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002178 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002179 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .read = spi_chip_read,
2182 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 {
2185 .vendor = "Atmel",
2186 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002189 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .total_size = 512,
2191 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002192 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002193 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002195 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002196 .block_erasers =
2197 {
2198 {
2199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }, {
2202 .eraseblocks = { {32 * 1024, 16} },
2203 .block_erase = spi_block_erase_52,
2204 }, {
2205 .eraseblocks = { {64 * 1024, 8} },
2206 .block_erase = spi_block_erase_d8,
2207 }, {
2208 .eraseblocks = { {512 * 1024, 1} },
2209 .block_erase = spi_block_erase_60,
2210 }, {
2211 .eraseblocks = { {512 * 1024, 1} },
2212 .block_erase = spi_block_erase_c7,
2213 }
2214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .write = NULL /* Incompatible Page write */,
2217 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002218 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002219 },
2220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 {
2222 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002223 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002224 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002225 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002226 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002227 .total_size = 64,
2228 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002229 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002230 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002231 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002232 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002233 .block_erasers =
2234 {
2235 {
2236 .eraseblocks = { {64 * 1024, 1} },
2237 .block_erase = erase_chip_block_jedec,
2238 }
2239 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002240 .write = write_jedec,
2241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002242 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002243 },
2244
2245 {
2246 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002247 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002248 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002249 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002250 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002251 .total_size = 128,
2252 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002253 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002254 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002255 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002256 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002257 .block_erasers =
2258 {
2259 {
2260 .eraseblocks = { {128 * 1024, 1} },
2261 .block_erase = erase_chip_block_jedec,
2262 }
2263 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002264 .write = write_jedec, /* FIXME */
2265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002267 },
2268
2269 {
2270 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002271 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .total_size = 256,
2276 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002277 .feature_bits = FEATURE_LONG_RESET,
2278 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002280 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002281 .block_erasers =
2282 {
2283 {
2284 .eraseblocks = { {256 * 1024, 1} },
2285 .block_erase = erase_chip_block_jedec,
2286 }
2287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002290 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002291 },
2292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 {
2294 .vendor = "Atmel",
2295 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002298 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .total_size = 512,
2300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002301 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 .tested = TEST_UNTESTED,
2303 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002304 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002305 .block_erasers =
2306 {
2307 {
2308 .eraseblocks = { {512 * 1024, 1} },
2309 .block_erase = erase_chip_block_jedec,
2310 }
2311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002315 },
2316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002317 {
2318 .vendor = "Atmel",
2319 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002320 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002322 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002323 .total_size = 16896 /* No power of two sizes */,
2324 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002325 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002326 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002327 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002328 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .write = NULL /* Incompatible Page write */,
2330 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002331 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002332 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 {
2335 .vendor = "Atmel",
2336 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002337 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002339 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002340 .total_size = 128 /* Size can only be determined from status register */,
2341 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002342 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002343 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002344 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002345 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002346 .write = NULL,
2347 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002348 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002349 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 {
2352 .vendor = "Atmel",
2353 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002354 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002355 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002356 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002357 .total_size = 256 /* Size can only be determined from status register */,
2358 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002359 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002360 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002361 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002362 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002363 .write = NULL,
2364 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002365 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002366 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002367
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002368 {
2369 .vendor = "Atmel",
2370 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002371 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002372 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002373 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002374 .total_size = 512 /* Size can only be determined from status register */,
2375 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002376 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002377 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002378 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002379 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .write = NULL,
2381 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002382 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002383 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002385 {
2386 .vendor = "Atmel",
2387 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002388 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002389 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002390 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002391 .total_size = 1024 /* Size can only be determined from status register */,
2392 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002393 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002394 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002396 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002397 .write = NULL,
2398 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002399 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002400 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002402 {
2403 .vendor = "Atmel",
2404 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002405 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002406 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002407 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002408 .total_size = 2048 /* Size can only be determined from status register */,
2409 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002410 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002411 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002412 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002413 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002414 .write = NULL,
2415 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002416 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002417 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 {
2420 .vendor = "Atmel",
2421 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002424 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 .total_size = 4224 /* No power of two sizes */,
2426 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002427 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002428 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002430 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .write = NULL,
2432 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002433 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002434 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002436 {
2437 .vendor = "Atmel",
2438 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002439 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002440 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002441 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002442 .total_size = 4096 /* Size can only be determined from status register */,
2443 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002444 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002445 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002446 .feature_bits = FEATURE_OTP,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002447 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002448 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002449 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002450 .write = NULL,
2451 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002452 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002453 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002455 {
2456 .vendor = "Atmel",
2457 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002458 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002459 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002460 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002461 .total_size = 8192 /* Size can only be determined from status register */,
2462 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002463 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002464 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002465 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002466 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002467 .write = NULL,
2468 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002469 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002470 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002472 {
2473 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002474 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002475 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002476 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002477 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002478 .total_size = 64,
2479 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002480 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002481 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002482 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002483 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002484 .block_erasers =
2485 {
2486 {
2487 .eraseblocks = { {64 * 1024, 1} },
2488 .block_erase = erase_chip_block_jedec,
2489 }
2490 },
Sean Nelson35727f72010-01-28 23:55:12 +00002491 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002493 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002494 },
2495
2496 {
2497 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002498 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002499 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002500 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002501 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002502 .total_size = 256,
2503 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002504 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002505 .tested = TEST_UNTESTED,
2506 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002507 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002508 .block_erasers =
2509 {
2510 {
2511 .eraseblocks = {
2512 {16 * 1024, 1},
2513 {8 * 1024, 2},
2514 {96 * 1024, 1},
2515 {128 * 1024, 1},
2516 },
2517 .block_erase = erase_sector_jedec,
2518 }, {
2519 .eraseblocks = { {256 * 1024, 1} },
2520 .block_erase = erase_chip_block_jedec,
2521 }
2522 },
Sean Nelson35727f72010-01-28 23:55:12 +00002523 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002524 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002525 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002526 },
2527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002528 {
2529 .vendor = "Atmel",
2530 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002531 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002532 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002533 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002534 .total_size = 256,
2535 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002536 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002537 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002538 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002539 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002540 .block_erasers =
2541 {
2542 {
2543 .eraseblocks = {
2544 {128 * 1024, 1},
2545 {96 * 1024, 1},
2546 {8 * 1024, 2},
2547 {16 * 1024, 1},
2548 },
2549 .block_erase = erase_sector_jedec,
2550 }, {
2551 .eraseblocks = { {256 * 1024, 1} },
2552 .block_erase = erase_chip_block_jedec,
2553 }
2554 },
Sean Nelson35727f72010-01-28 23:55:12 +00002555 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002556 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002557 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002558 },
2559
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002560 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002561 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002562 .name = "AT49(H)F010",
2563 .bustype = BUS_PARALLEL,
2564 .manufacture_id = ATMEL_ID,
2565 .model_id = ATMEL_AT49F010,
2566 .total_size = 128,
2567 .page_size = 0, /* unused */
2568 .feature_bits = FEATURE_EITHER_RESET,
2569 .tested = TEST_OK_PREW,
2570 .probe = probe_jedec,
2571 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2572 .block_erasers =
2573 {
2574 {
2575 .eraseblocks = { {128 * 1024, 1} },
2576 .block_erase = erase_chip_block_jedec,
2577 }
2578 },
2579 .printlock = printlock_at49f,
2580 .write = write_jedec_1,
2581 .read = read_memmapped,
2582 .voltage = {4500, 5500},
2583 },
2584
2585 {
2586 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002587 .name = "AT49F020",
2588 .bustype = BUS_PARALLEL,
2589 .manufacture_id = ATMEL_ID,
2590 .model_id = ATMEL_AT49F020,
2591 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002592 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002593 .feature_bits = FEATURE_EITHER_RESET,
2594 .tested = TEST_OK_PRE,
2595 .probe = probe_jedec,
2596 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2597 .block_erasers =
2598 {
2599 {
2600 .eraseblocks = { {256 * 1024, 1} },
2601 .block_erase = erase_chip_block_jedec,
2602 }
2603 /* Chip features an optional permanent write protection
2604 * of the first 8 kB. The erase function is the same as
2605 * above, but 00000H to 01FFFH will not be erased.
2606 * FIXME: add another eraser when partial erasers are
2607 * supported.
2608 */
2609 },
2610 .printlock = printlock_at49f,
2611 .write = write_jedec_1,
2612 .read = read_memmapped,
2613 .voltage = {4500, 5500},
2614 },
2615
2616 {
2617 .vendor = "Atmel",
2618 .name = "AT49F040",
2619 .bustype = BUS_PARALLEL,
2620 .manufacture_id = ATMEL_ID,
2621 .model_id = ATMEL_AT49F040,
2622 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002623 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002624 .feature_bits = FEATURE_EITHER_RESET,
2625 .tested = TEST_UNTESTED,
2626 .probe = probe_jedec,
2627 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {512 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 /* Chip features an optional permanent write protection
2635 * of the first 16 kB. The erase function is the same as
2636 * above, but 00000H to 03FFFH will not be erased.
2637 * FIXME: add another eraser when partial erasers are
2638 * supported.
2639 */
2640 },
2641 .printlock = printlock_at49f,
2642 .write = write_jedec_1,
2643 .read = read_memmapped,
2644 .voltage = {4500, 5500},
2645 },
2646
2647 {
2648 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002649 .name = "AT49F080",
2650 .bustype = BUS_PARALLEL,
2651 .manufacture_id = ATMEL_ID,
2652 .model_id = ATMEL_AT49F080,
2653 .total_size = 1024,
2654 .page_size = 0, /* unused */
2655 .feature_bits = FEATURE_EITHER_RESET,
2656 .tested = TEST_UNTESTED,
2657 .probe = probe_jedec,
2658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2659 .block_erasers =
2660 {
2661 {
2662 .eraseblocks = { {1024 * 1024, 1} },
2663 .block_erase = erase_chip_block_jedec,
2664 }
2665 /* Chip features an optional permanent write protection
2666 * of the first 16 kB. The erase function is the same as
2667 * above, but 00000H to 03FFFH will not be erased.
2668 * FIXME: add another eraser when partial erasers are
2669 * supported.
2670 */
2671 },
2672 .printlock = printlock_at49f,
2673 .write = write_jedec_1,
2674 .read = read_memmapped,
2675 .voltage = {4500, 5500},
2676 },
2677
2678 {
2679 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2680 .vendor = "Atmel",
2681 .name = "AT49F080T",
2682 .bustype = BUS_PARALLEL,
2683 .manufacture_id = ATMEL_ID,
2684 .model_id = ATMEL_AT49F080T,
2685 .total_size = 1024,
2686 .page_size = 0, /* unused */
2687 .feature_bits = FEATURE_EITHER_RESET,
2688 .tested = TEST_UNTESTED,
2689 .probe = probe_jedec,
2690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2691 .block_erasers =
2692 {
2693 {
2694 .eraseblocks = { {1024 * 1024, 1} },
2695 .block_erase = erase_chip_block_jedec,
2696 }
2697 /* Chip features an optional permanent write protection
2698 * of the first 16 kB. The erase function is the same as
2699 * above, but FC000H to FFFFFH will not be erased.
2700 * FIXME: add another eraser when partial erasers are
2701 * supported.
2702 */
2703 },
2704 .printlock = printlock_at49f,
2705 .write = write_jedec_1,
2706 .read = read_memmapped,
2707 .voltage = {4500, 5500},
2708 },
2709
2710 {
2711 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002712 .name = "AT49LH002",
2713 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2714 .manufacture_id = ATMEL_ID,
2715 .model_id = ATMEL_AT49LH002,
2716 .total_size = 256,
2717 .page_size = 0, /* unused */
2718 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2719 .tested = TEST_UNTESTED,
2720 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2721 .probe_timing = TIMING_FIXME,
2722 .block_erasers =
2723 {
2724 {
2725 .eraseblocks = {
2726 {64 * 1024, 3},
2727 {32 * 1024, 1},
2728 {8 * 1024, 2},
2729 {16 * 1024, 1},
2730 },
2731 .block_erase = erase_block_82802ab,
2732 }, {
2733 .eraseblocks = {
2734 {64 * 1024, 4},
2735 },
2736 .block_erase = NULL, /* TODO: Implement. */
2737 },
2738 },
2739 .printlock = NULL, /* TODO */
2740 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2741 .write = write_82802ab,
2742 .read = read_memmapped,
2743 .voltage = {3000, 3600},
2744 },
2745
2746 {
Andrew Morganca081462011-09-13 22:05:44 +00002747 .vendor = "Catalyst",
2748 .name = "CAT28F512",
2749 .bustype = BUS_PARALLEL,
2750 .manufacture_id = CATALYST_ID,
2751 .model_id = CATALYST_CAT28F512,
2752 .total_size = 64,
2753 .page_size = 0, /* unused */
2754 .feature_bits = 0,
2755 .tested = TEST_OK_PR,
2756 .probe = probe_jedec, /* FIXME! */
2757 .probe_timing = TIMING_ZERO,
2758 .block_erasers =
2759 {
2760 {
2761 .eraseblocks = { {64 * 1024, 1} },
2762 .block_erase = NULL, /* TODO */
2763 },
2764 },
2765 .write = NULL, /* TODO */
2766 .read = read_memmapped,
2767 .voltage = {4500, 5500},
2768 },
2769
2770 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002771 .vendor = "Bright",
2772 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002773 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002774 .manufacture_id = BRIGHT_ID,
2775 .model_id = BRIGHT_BM29F040,
2776 .total_size = 512,
2777 .page_size = 64 * 1024,
2778 .feature_bits = FEATURE_EITHER_RESET,
2779 .tested = TEST_OK_PR,
2780 .probe = probe_jedec,
2781 .probe_timing = TIMING_ZERO,
2782 .block_erasers =
2783 {
2784 {
2785 .eraseblocks = { {64 * 1024, 8} },
2786 .block_erase = erase_sector_jedec,
2787 }, {
2788 .eraseblocks = { {512 * 1024, 1} },
2789 .block_erase = erase_chip_block_jedec,
2790 },
2791 },
2792 .write = write_jedec_1,
2793 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002794 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002795 },
2796
2797 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002798 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002799 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002800 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002801 .manufacture_id = ESMT_ID,
2802 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002803 .total_size = 256,
2804 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002805 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 .tested = TEST_UNTESTED,
2807 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002808 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002809 .block_erasers =
2810 {
2811 {
2812 .eraseblocks = {
2813 {128 * 1024, 1},
2814 {96 * 1024, 1},
2815 {8 * 1024, 2},
2816 {16 * 1024, 1},
2817 },
2818 .block_erase = erase_sector_jedec,
2819 }, {
2820 .eraseblocks = { {256 * 1024, 1} },
2821 .block_erase = erase_chip_block_jedec,
2822 }
2823 },
Sean Nelson35727f72010-01-28 23:55:12 +00002824 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002826 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002827 },
2828
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002829 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002830 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00002831 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002832 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002833 .manufacture_id = ESMT_ID,
2834 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002835 .total_size = 1024,
2836 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002837 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002838 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002839 .probe = probe_spi_rdid,
2840 .probe_timing = TIMING_ZERO,
2841 .block_erasers =
2842 {
2843 {
2844 .eraseblocks = { {4 * 1024, 256} },
2845 .block_erase = spi_block_erase_20,
2846 }, {
2847 .eraseblocks = { {64 * 1024, 16} },
2848 .block_erase = spi_block_erase_d8,
2849 }, {
2850 .eraseblocks = { {1024 * 1024, 1} },
2851 .block_erase = spi_block_erase_60,
2852 }, {
2853 .eraseblocks = { {1024 * 1024, 1} },
2854 .block_erase = spi_block_erase_c7,
2855 }
2856 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002857 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002858 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002859 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002860 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002861 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002862 },
2863
2864 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002865 .vendor = "Eon",
2866 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002867 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002868 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002869 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002870 .total_size = 64,
2871 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002872 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002873 .tested = TEST_UNTESTED,
2874 .probe = probe_spi_rdid,
2875 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002876 .block_erasers =
2877 {
2878 {
2879 .eraseblocks = {
2880 {4 * 1024, 2},
2881 {8 * 1024, 1},
2882 {16 * 1024, 1},
2883 {32 * 1024, 1},
2884 },
2885 .block_erase = spi_block_erase_d8,
2886 }, {
2887 .eraseblocks = { {64 * 1024, 1} },
2888 .block_erase = spi_block_erase_c7,
2889 }
2890 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002891 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002892 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002893 .write = spi_chip_write_256,
2894 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002895 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002896 },
2897
2898 {
2899 .vendor = "Eon",
2900 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002901 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002902 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002903 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002904 .total_size = 64,
2905 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002906 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002907 .tested = TEST_UNTESTED,
2908 .probe = probe_spi_rdid,
2909 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002910 .block_erasers =
2911 {
2912 {
2913 .eraseblocks = {
2914 {32 * 1024, 1},
2915 {16 * 1024, 1},
2916 {8 * 1024, 1},
2917 {4 * 1024, 2},
2918 },
2919 .block_erase = spi_block_erase_d8,
2920 }, {
2921 .eraseblocks = { {64 * 1024, 1} },
2922 .block_erase = spi_block_erase_c7,
2923 }
2924 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002925 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002926 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002927 .write = spi_chip_write_256,
2928 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002929 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002930 },
2931
2932 {
2933 .vendor = "Eon",
2934 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002935 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002936 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002937 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002938 .total_size = 128,
2939 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002940 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002941 .tested = TEST_UNTESTED,
2942 .probe = probe_spi_rdid,
2943 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = {
2948 {4 * 1024, 2},
2949 {8 * 1024, 1},
2950 {16 * 1024, 1},
2951 {32 * 1024, 3},
2952 },
2953 .block_erase = spi_block_erase_d8,
2954 }, {
2955 .eraseblocks = { {128 * 1024, 1} },
2956 .block_erase = spi_block_erase_c7,
2957 }
2958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002959 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002960 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002961 .write = spi_chip_write_256,
2962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002963 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002964 },
2965
2966 {
2967 .vendor = "Eon",
2968 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002969 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002970 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002971 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002972 .total_size = 128,
2973 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002974 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002975 .tested = TEST_UNTESTED,
2976 .probe = probe_spi_rdid,
2977 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = {
2982 {32 * 1024, 3},
2983 {16 * 1024, 1},
2984 {8 * 1024, 1},
2985 {4 * 1024, 2},
2986 },
2987 .block_erase = spi_block_erase_d8,
2988 }, {
2989 .eraseblocks = { {128 * 1024, 1} },
2990 .block_erase = spi_block_erase_c7,
2991 }
2992 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002993 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002994 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002995 .write = spi_chip_write_256,
2996 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002997 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002998 },
2999
3000 {
3001 .vendor = "Eon",
3002 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003003 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003004 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003005 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003006 .total_size = 256,
3007 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003008 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003009 .tested = TEST_UNTESTED,
3010 .probe = probe_spi_rdid,
3011 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003012 .block_erasers =
3013 {
3014 {
3015 .eraseblocks = {
3016 {4 * 1024, 2},
3017 {8 * 1024, 1},
3018 {16 * 1024, 1},
3019 {32 * 1024, 1},
3020 {64 * 1024, 3}
3021 },
3022 .block_erase = spi_block_erase_d8,
3023 }, {
3024 .eraseblocks = { {256 * 1024, 1} },
3025 .block_erase = spi_block_erase_c7,
3026 }
3027 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003028 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003029 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003030 .write = spi_chip_write_256,
3031 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003032 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003033 },
3034
3035 {
3036 .vendor = "Eon",
3037 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003038 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003039 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003040 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003041 .total_size = 256,
3042 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003043 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003044 .tested = TEST_UNTESTED,
3045 .probe = probe_spi_rdid,
3046 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003047 .block_erasers =
3048 {
3049 {
3050 .eraseblocks = {
3051 {64 * 1024, 3},
3052 {32 * 1024, 1},
3053 {16 * 1024, 1},
3054 {8 * 1024, 1},
3055 {4 * 1024, 2},
3056 },
3057 .block_erase = spi_block_erase_d8,
3058 }, {
3059 .eraseblocks = { {256 * 1024, 1} },
3060 .block_erase = spi_block_erase_c7,
3061 }
3062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003064 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003065 .write = spi_chip_write_256,
3066 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003067 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003068 },
3069
3070 {
3071 .vendor = "Eon",
3072 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003073 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003074 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003075 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003076 .total_size = 512,
3077 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003078 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003079 .tested = TEST_UNTESTED,
3080 .probe = probe_spi_rdid,
3081 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003082 .block_erasers =
3083 {
3084 {
3085 .eraseblocks = {
3086 {4 * 1024, 2},
3087 {8 * 1024, 1},
3088 {16 * 1024, 1},
3089 {32 * 1024, 1},
3090 {64 * 1024, 7}
3091 },
3092 .block_erase = spi_block_erase_d8,
3093 }, {
3094 .eraseblocks = { {512 * 1024, 1} },
3095 .block_erase = spi_block_erase_c7,
3096 }
3097 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003098 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003099 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003100 .write = spi_chip_write_256,
3101 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003102 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003103 },
3104
3105 {
3106 .vendor = "Eon",
3107 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003108 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003109 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003110 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003111 .total_size = 512,
3112 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003113 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003114 .tested = TEST_UNTESTED,
3115 .probe = probe_spi_rdid,
3116 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003117 .block_erasers =
3118 {
3119 {
3120 .eraseblocks = {
3121 {64 * 1024, 7},
3122 {32 * 1024, 1},
3123 {16 * 1024, 1},
3124 {8 * 1024, 1},
3125 {4 * 1024, 2},
3126 },
3127 .block_erase = spi_block_erase_d8,
3128 }, {
3129 .eraseblocks = { {512 * 1024, 1} },
3130 .block_erase = spi_block_erase_c7,
3131 }
3132 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003133 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003134 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 .write = spi_chip_write_256,
3136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003137 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003138 },
3139
3140 {
3141 .vendor = "Eon",
3142 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003143 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003144 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003145 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003146 .total_size = 1024,
3147 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003148 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003149 .tested = TEST_UNTESTED,
3150 .probe = probe_spi_rdid,
3151 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003152 .block_erasers =
3153 {
3154 {
3155 .eraseblocks = {
3156 {4 * 1024, 2},
3157 {8 * 1024, 1},
3158 {16 * 1024, 1},
3159 {32 * 1024, 1},
3160 {64 * 1024, 15}
3161 },
3162 .block_erase = spi_block_erase_d8,
3163 }, {
3164 .eraseblocks = { {1024 * 1024, 1} },
3165 .block_erase = spi_block_erase_c7,
3166 }
3167 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003168 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003169 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003170 .write = spi_chip_write_256,
3171 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003172 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003173 },
3174
3175 {
3176 .vendor = "Eon",
3177 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003178 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003179 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003180 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003181 .total_size = 1024,
3182 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003183 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003184 .tested = TEST_UNTESTED,
3185 .probe = probe_spi_rdid,
3186 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003187 .block_erasers =
3188 {
3189 {
3190 .eraseblocks = {
3191 {64 * 1024, 15},
3192 {32 * 1024, 1},
3193 {16 * 1024, 1},
3194 {8 * 1024, 1},
3195 {4 * 1024, 2},
3196 },
3197 .block_erase = spi_block_erase_d8,
3198 }, {
3199 .eraseblocks = { {1024 * 1024, 1} },
3200 .block_erase = spi_block_erase_c7,
3201 }
3202 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003203 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003204 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003205 .write = spi_chip_write_256,
3206 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003207 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003208 },
3209
3210 {
3211 .vendor = "Eon",
3212 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003213 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003214 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003215 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003216 .total_size = 2048,
3217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003219 .tested = TEST_UNTESTED,
3220 .probe = probe_spi_rdid,
3221 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003222 .block_erasers =
3223 {
3224 {
3225 .eraseblocks = {
3226 {4 * 1024, 2},
3227 {8 * 1024, 1},
3228 {16 * 1024, 1},
3229 {32 * 1024, 1},
3230 {64 * 1024, 31},
3231 },
3232 .block_erase = spi_block_erase_d8,
3233 }, {
3234 .eraseblocks = { {2 * 1024 * 1024, 1} },
3235 .block_erase = spi_block_erase_c7,
3236 }
3237 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003239 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003240 .write = spi_chip_write_256,
3241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003242 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003243 },
3244
3245 {
3246 .vendor = "Eon",
3247 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003248 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003249 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003250 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003251 .total_size = 2048,
3252 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003253 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003254 .tested = TEST_UNTESTED,
3255 .probe = probe_spi_rdid,
3256 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003257 .block_erasers =
3258 {
3259 {
3260 .eraseblocks = {
3261 {64 * 1024, 31},
3262 {32 * 1024, 1},
3263 {16 * 1024, 1},
3264 {8 * 1024, 1},
3265 {4 * 1024, 2},
3266 },
3267 .block_erase = spi_block_erase_d8,
3268 }, {
3269 .eraseblocks = { {2 * 1024 * 1024, 1} },
3270 .block_erase = spi_block_erase_c7,
3271 }
3272 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003273 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003274 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003275 .write = spi_chip_write_256,
3276 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003277 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003278 },
3279
3280 {
3281 .vendor = "Eon",
3282 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003283 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003284 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003285 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003286 .total_size = 4096,
3287 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003288 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003289 .tested = TEST_UNTESTED,
3290 .probe = probe_spi_rdid,
3291 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003292 .block_erasers =
3293 {
3294 {
3295 .eraseblocks = {
3296 {4 * 1024, 2},
3297 {8 * 1024, 1},
3298 {16 * 1024, 1},
3299 {32 * 1024, 1},
3300 {64 * 1024, 63},
3301 },
3302 .block_erase = spi_block_erase_d8,
3303 }, {
3304 .eraseblocks = { {4 * 1024 * 1024, 1} },
3305 .block_erase = spi_block_erase_c7,
3306 }
3307 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003308 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003309 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003310 .write = spi_chip_write_256,
3311 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003312 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003313 },
3314
3315 {
3316 .vendor = "Eon",
3317 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003318 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003319 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003320 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003321 .total_size = 4096,
3322 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003323 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003324 .tested = TEST_UNTESTED,
3325 .probe = probe_spi_rdid,
3326 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003327 .block_erasers =
3328 {
3329 {
3330 .eraseblocks = {
3331 {64 * 1024, 63},
3332 {32 * 1024, 1},
3333 {16 * 1024, 1},
3334 {8 * 1024, 1},
3335 {4 * 1024, 2},
3336 },
3337 .block_erase = spi_block_erase_d8,
3338 }, {
3339 .eraseblocks = { {4 * 1024 * 1024, 1} },
3340 .block_erase = spi_block_erase_c7,
3341 }
3342 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003343 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003344 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003345 .write = spi_chip_write_256,
3346 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003347 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003348 },
3349
3350 {
3351 .vendor = "Eon",
3352 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003353 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003354 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003355 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003356 .total_size = 8192,
3357 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003358 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003359 .tested = TEST_UNTESTED,
3360 .probe = probe_spi_rdid,
3361 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003362 .block_erasers =
3363 {
3364 {
3365 .eraseblocks = {
3366 {4 * 1024, 2},
3367 {8 * 1024, 1},
3368 {16 * 1024, 1},
3369 {32 * 1024, 1},
3370 {64 * 1024, 127},
3371 },
3372 .block_erase = spi_block_erase_d8,
3373 }, {
3374 .eraseblocks = { {8 * 1024 * 1024, 1} },
3375 .block_erase = spi_block_erase_c7,
3376 }
3377 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003378 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003379 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003380 .write = spi_chip_write_256,
3381 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003382 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003383 },
3384
3385 {
3386 .vendor = "Eon",
3387 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003388 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003389 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003390 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003391 .total_size = 8192,
3392 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003393 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003394 .tested = TEST_UNTESTED,
3395 .probe = probe_spi_rdid,
3396 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003397 .block_erasers =
3398 {
3399 {
3400 .eraseblocks = {
3401 {64 * 1024, 127},
3402 {32 * 1024, 1},
3403 {16 * 1024, 1},
3404 {8 * 1024, 1},
3405 {4 * 1024, 2},
3406 },
3407 .block_erase = spi_block_erase_d8,
3408 }, {
3409 .eraseblocks = { {8 * 1024 * 1024, 1} },
3410 .block_erase = spi_block_erase_c7,
3411 }
3412 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003413 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003414 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003415 .write = spi_chip_write_256,
3416 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003417 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003418 },
3419
3420 {
3421 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003422 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003424 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003425 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003426 .total_size = 64,
3427 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003428 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003429 .tested = TEST_UNTESTED,
3430 .probe = probe_spi_rdid,
3431 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003432 .block_erasers =
3433 {
3434 {
3435 .eraseblocks = { {4 * 1024, 16} },
3436 .block_erase = spi_block_erase_20,
3437 }, {
3438 .eraseblocks = { {32 * 1024, 2} },
3439 .block_erase = spi_block_erase_d8,
3440 }, {
3441 .eraseblocks = { {32 * 1024, 2} },
3442 .block_erase = spi_block_erase_52,
3443 }, {
3444 .eraseblocks = { {64 * 1024, 1} },
3445 .block_erase = spi_block_erase_60,
3446 }, {
3447 .eraseblocks = { {64 * 1024, 1} },
3448 .block_erase = spi_block_erase_c7,
3449 }
3450 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003451 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003452 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003453 .write = spi_chip_write_256,
3454 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003455 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003456 },
3457
3458 {
3459 .vendor = "Eon",
3460 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003461 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003462 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003463 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003464 .total_size = 128,
3465 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003466 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003467 .tested = TEST_UNTESTED,
3468 .probe = probe_spi_rdid,
3469 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003470 .block_erasers =
3471 {
3472 {
3473 .eraseblocks = { {4 * 1024, 32} },
3474 .block_erase = spi_block_erase_20,
3475 }, {
3476 .eraseblocks = { {32 * 1024, 4} },
3477 .block_erase = spi_block_erase_d8,
3478 }, {
3479 .eraseblocks = { {32 * 1024, 4} },
3480 .block_erase = spi_block_erase_52,
3481 }, {
3482 .eraseblocks = { {128 * 1024, 1} },
3483 .block_erase = spi_block_erase_60,
3484 }, {
3485 .eraseblocks = { {128 * 1024, 1} },
3486 .block_erase = spi_block_erase_c7,
3487 }
3488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003490 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003491 .write = spi_chip_write_256,
3492 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003493 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003494 },
3495
3496 {
3497 .vendor = "Eon",
3498 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003499 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003500 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003501 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003502 .total_size = 256,
3503 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003504 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003505 .tested = TEST_UNTESTED,
3506 .probe = probe_spi_rdid,
3507 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003508 .block_erasers =
3509 {
3510 {
3511 .eraseblocks = { {4 * 1024, 64} },
3512 .block_erase = spi_block_erase_20,
3513 }, {
3514 .eraseblocks = { {64 * 1024, 4} },
3515 .block_erase = spi_block_erase_d8,
3516 }, {
3517 .eraseblocks = { {64 * 1024, 4} },
3518 .block_erase = spi_block_erase_52,
3519 }, {
3520 .eraseblocks = { {256 * 1024, 1} },
3521 .block_erase = spi_block_erase_60,
3522 }, {
3523 .eraseblocks = { {256 * 1024, 1} },
3524 .block_erase = spi_block_erase_c7,
3525 }
3526 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003527 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003528 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003529 .write = spi_chip_write_256,
3530 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003531 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003532 },
3533
3534 {
3535 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003536 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003537 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003538 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003539 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003540 .total_size = 512,
3541 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003542 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003543 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003544 .probe = probe_spi_rdid,
3545 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003546 .block_erasers =
3547 {
3548 {
Sean Nelson54596372010-01-09 05:30:14 +00003549 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003550 .block_erase = spi_block_erase_20,
3551 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003552 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003553 .block_erase = spi_block_erase_d8,
3554 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003555 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003556 .block_erase = spi_block_erase_60,
3557 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003558 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003559 .block_erase = spi_block_erase_c7,
3560 },
3561 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003563 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003564 .write = spi_chip_write_256,
3565 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003566 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003567 },
3568
3569 {
3570 .vendor = "Eon",
3571 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003572 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003573 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003574 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003575 .total_size = 1024,
3576 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003577 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003578 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 .probe = probe_spi_rdid,
3580 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003581 .block_erasers =
3582 {
3583 {
3584 .eraseblocks = { {4 * 1024, 256} },
3585 .block_erase = spi_block_erase_20,
3586 }, {
3587 .eraseblocks = { {64 * 1024, 16} },
3588 .block_erase = spi_block_erase_d8,
3589 }, {
3590 .eraseblocks = { {1024 * 1024, 1} },
3591 .block_erase = spi_block_erase_60,
3592 }, {
3593 .eraseblocks = { {1024 * 1024, 1} },
3594 .block_erase = spi_block_erase_c7,
3595 }
3596 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003597 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003598 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003599 .write = spi_chip_write_256,
3600 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003601 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003602 },
3603
3604 {
3605 .vendor = "Eon",
3606 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003607 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003608 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003609 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003610 .total_size = 2048,
3611 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003612 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003613 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003614 .probe = probe_spi_rdid,
3615 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003616 .block_erasers =
3617 {
3618 {
3619 .eraseblocks = { {4 * 1024, 512} },
3620 .block_erase = spi_block_erase_20,
3621 }, {
3622 .eraseblocks = { {64 * 1024, 32} },
3623 .block_erase = spi_block_erase_d8,
3624 }, {
3625 .eraseblocks = { {2 * 1024 * 1024, 1} },
3626 .block_erase = spi_block_erase_60,
3627 }, {
3628 .eraseblocks = { {2 * 1024 * 1024, 1} },
3629 .block_erase = spi_block_erase_c7,
3630 }
3631 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003632 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003633 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003634 .write = spi_chip_write_256,
3635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003636 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003637 },
3638
3639 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003640 .vendor = "Eon",
3641 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003642 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003643 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003644 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003645 .total_size = 4096,
3646 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003647 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003648 .tested = TEST_UNTESTED,
3649 .probe = probe_spi_rdid,
3650 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003651 .block_erasers =
3652 {
3653 {
3654 .eraseblocks = { {4 * 1024, 1024} },
3655 .block_erase = spi_block_erase_20,
3656 }, {
3657 .eraseblocks = { {64 * 1024, 64} },
3658 .block_erase = spi_block_erase_d8,
3659 }, {
3660 .eraseblocks = { {4 * 1024 * 1024, 1} },
3661 .block_erase = spi_block_erase_60,
3662 }, {
3663 .eraseblocks = { {4 * 1024 * 1024, 1} },
3664 .block_erase = spi_block_erase_c7,
3665 }
3666 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003667 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003668 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003669 .write = spi_chip_write_256,
3670 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003671 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003672 },
3673
3674 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003675 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003676 .name = "EN25F64",
3677 .bustype = BUS_SPI,
3678 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003679 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003680 .total_size = 8192,
3681 .page_size = 256,
3682 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003683 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003684 .probe = probe_spi_rdid,
3685 .probe_timing = TIMING_ZERO,
3686 .block_erasers =
3687 {
3688 {
3689 .eraseblocks = { {4 * 1024, 2048} },
3690 .block_erase = spi_block_erase_20,
3691 }, {
3692 .eraseblocks = { {64 * 1024, 128} },
3693 .block_erase = spi_block_erase_d8,
3694 }, {
3695 .eraseblocks = { {8 * 1024 * 1024, 1} },
3696 .block_erase = spi_block_erase_60,
3697 }, {
3698 .eraseblocks = { {8 * 1024 * 1024, 1} },
3699 .block_erase = spi_block_erase_c7,
3700 }
3701 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003702 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003703 .unlock = spi_disable_blockprotect,
3704 .write = spi_chip_write_256,
3705 .read = spi_chip_read,
3706 .voltage = {2700, 3600},
3707 },
3708
3709 {
3710 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003711 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003712 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003713 .manufacture_id = EON_ID_NOPREFIX,
3714 .model_id = EON_EN25Q40,
3715 .total_size = 512,
3716 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003717 /* OTP: 256B total; enter 0x3A */
3718 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003719 .tested = TEST_UNTESTED,
3720 .probe = probe_spi_rdid,
3721 .probe_timing = TIMING_ZERO,
3722 .block_erasers =
3723 {
3724 {
3725 .eraseblocks = { {4 * 1024, 128} },
3726 .block_erase = spi_block_erase_20,
3727 }, {
3728 .eraseblocks = { {64 * 1024, 8} },
3729 .block_erase = spi_block_erase_d8,
3730 }, {
3731 .eraseblocks = { {512 * 1024, 1} },
3732 .block_erase = spi_block_erase_60,
3733 }, {
3734 .eraseblocks = { {512 * 1024, 1} },
3735 .block_erase = spi_block_erase_c7,
3736 }
3737 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003738 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003739 .unlock = spi_disable_blockprotect,
3740 .write = spi_chip_write_256,
3741 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003742 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003743 },
3744
3745 {
3746 .vendor = "Eon",
3747 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003748 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003749 .manufacture_id = EON_ID_NOPREFIX,
3750 .model_id = EON_EN25Q80,
3751 .total_size = 1024,
3752 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003753 /* OTP: 256B total; enter 0x3A */
3754 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003755 .tested = TEST_UNTESTED,
3756 .probe = probe_spi_rdid,
3757 .probe_timing = TIMING_ZERO,
3758 .block_erasers =
3759 {
3760 {
3761 .eraseblocks = { {4 * 1024, 256} },
3762 .block_erase = spi_block_erase_20,
3763 }, {
3764 .eraseblocks = { {64 * 1024, 16} },
3765 .block_erase = spi_block_erase_d8,
3766 }, {
3767 .eraseblocks = { {1024 * 1024, 1} },
3768 .block_erase = spi_block_erase_60,
3769 }, {
3770 .eraseblocks = { {1024 * 1024, 1} },
3771 .block_erase = spi_block_erase_c7,
3772 }
3773 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003774 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003775 .unlock = spi_disable_blockprotect,
3776 .write = spi_chip_write_256,
3777 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003778 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003779 },
3780
3781 {
3782 /* Note: EN25D16 is an evil twin which shares the model ID
3783 but has different write protection capabilities */
3784 .vendor = "Eon",
3785 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003786 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003787 .manufacture_id = EON_ID_NOPREFIX,
3788 .model_id = EON_EN25Q16,
3789 .total_size = 2048,
3790 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003791 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3792 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003793 .tested = TEST_UNTESTED,
3794 .probe = probe_spi_rdid,
3795 .probe_timing = TIMING_ZERO,
3796 .block_erasers =
3797 {
3798 {
3799 .eraseblocks = { {4 * 1024, 512} },
3800 .block_erase = spi_block_erase_20,
3801 }, {
3802 .eraseblocks = { {64 * 1024, 32} },
3803 .block_erase = spi_block_erase_d8,
3804 }, {
3805 /* not supported by Q16 version */
3806 .eraseblocks = { {64 * 1024, 32} },
3807 .block_erase = spi_block_erase_52,
3808 }, {
3809 .eraseblocks = { {2 * 1024 * 1024, 1} },
3810 .block_erase = spi_block_erase_60,
3811 }, {
3812 .eraseblocks = { {2 * 1024 * 1024, 1} },
3813 .block_erase = spi_block_erase_c7,
3814 }
3815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003816 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003817 .unlock = spi_disable_blockprotect,
3818 .write = spi_chip_write_256,
3819 .read = spi_chip_read,
3820 .voltage = {2700, 3600},
3821 },
3822
3823 {
3824 .vendor = "Eon",
3825 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003826 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003827 .manufacture_id = EON_ID_NOPREFIX,
3828 .model_id = EON_EN25Q32,
3829 .total_size = 4096,
3830 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003831 /* OTP: 512B total; enter 0x3A */
3832 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003833 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003834 .probe = probe_spi_rdid,
3835 .probe_timing = TIMING_ZERO,
3836 .block_erasers =
3837 {
3838 {
3839 .eraseblocks = { {4 * 1024, 1024} },
3840 .block_erase = spi_block_erase_20,
3841 }, {
3842 .eraseblocks = { {64 * 1024, 64} },
3843 .block_erase = spi_block_erase_d8,
3844 }, {
3845 .eraseblocks = { {4 * 1024 * 1024, 1} },
3846 .block_erase = spi_block_erase_60,
3847 }, {
3848 .eraseblocks = { {4 * 1024 * 1024, 1} },
3849 .block_erase = spi_block_erase_c7,
3850 }
3851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003853 .unlock = spi_disable_blockprotect,
3854 .write = spi_chip_write_256,
3855 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003856 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003857 },
3858
3859 {
3860 .vendor = "Eon",
3861 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003862 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003863 .manufacture_id = EON_ID_NOPREFIX,
3864 .model_id = EON_EN25Q64,
3865 .total_size = 8192,
3866 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003867 /* OTP: 512B total; enter 0x3A */
3868 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003869 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003870 .probe = probe_spi_rdid,
3871 .probe_timing = TIMING_ZERO,
3872 .block_erasers =
3873 {
3874 {
3875 .eraseblocks = { {4 * 1024, 2048} },
3876 .block_erase = spi_block_erase_20,
3877 }, {
3878 .eraseblocks = { {64 * 1024, 128} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {8 * 1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_60,
3883 }, {
3884 .eraseblocks = { {8 * 1024 * 1024, 1} },
3885 .block_erase = spi_block_erase_c7,
3886 }
3887 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003889 .unlock = spi_disable_blockprotect,
3890 .write = spi_chip_write_256,
3891 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003892 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003893 },
3894
3895 {
3896 .vendor = "Eon",
3897 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003898 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003899 .manufacture_id = EON_ID_NOPREFIX,
3900 .model_id = EON_EN25Q128,
3901 .total_size = 16384,
3902 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003903 /* OTP: 512B total; enter 0x3A */
3904 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003905 .tested = TEST_UNTESTED,
3906 .probe = probe_spi_rdid,
3907 .probe_timing = TIMING_ZERO,
3908 .block_erasers =
3909 {
3910 {
3911 .eraseblocks = { {4 * 1024, 4096} },
3912 .block_erase = spi_block_erase_20,
3913 }, {
3914 .eraseblocks = { {64 * 1024, 256} },
3915 .block_erase = spi_block_erase_d8,
3916 }, {
3917 .eraseblocks = { {16 * 1024 * 1024, 1} },
3918 .block_erase = spi_block_erase_60,
3919 }, {
3920 .eraseblocks = { {16 * 1024 * 1024, 1} },
3921 .block_erase = spi_block_erase_c7,
3922 }
3923 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003924 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003925 .unlock = spi_disable_blockprotect,
3926 .write = spi_chip_write_256,
3927 .read = spi_chip_read,
3928 },
3929
3930 {
3931 .vendor = "Eon",
3932 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003933 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003934 .manufacture_id = EON_ID_NOPREFIX,
3935 .model_id = EON_EN25QH16,
3936 .total_size = 2048,
3937 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003938 /* supports SFDP */
3939 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003940 /* QPI enable 0x38, disable 0xFF */
3941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003942 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003943 .probe = probe_spi_rdid,
3944 .probe_timing = TIMING_ZERO,
3945 .block_erasers =
3946 {
3947 {
3948 .eraseblocks = { {4 * 1024, 512} },
3949 .block_erase = spi_block_erase_20,
3950 }, {
3951 .eraseblocks = { {64 * 1024, 32} },
3952 .block_erase = spi_block_erase_d8,
3953 }, {
3954 .eraseblocks = { {1024 * 2048, 1} },
3955 .block_erase = spi_block_erase_60,
3956 }, {
3957 .eraseblocks = { {1024 * 2048, 1} },
3958 .block_erase = spi_block_erase_c7,
3959 }
3960 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003961 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
3962 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00003963 .write = spi_chip_write_256,
3964 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003965 .voltage = {2700, 3600},
3966 },
3967
3968 {
3969 .vendor = "Eon",
3970 .name = "EN25QH32",
3971 .bustype = BUS_SPI,
3972 .manufacture_id = EON_ID_NOPREFIX,
3973 .model_id = EON_EN25QH32,
3974 .total_size = 4096,
3975 .page_size = 256,
3976 /* supports SFDP */
3977 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003978 /* QPI enable 0x38, disable 0xFF */
3979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003980 .tested = TEST_UNTESTED,
3981 .probe = probe_spi_rdid,
3982 .probe_timing = TIMING_ZERO,
3983 .block_erasers =
3984 {
3985 {
3986 .eraseblocks = { {4 * 1024, 1024} },
3987 .block_erase = spi_block_erase_20,
3988 }, {
3989 .eraseblocks = { {64 * 1024, 64} },
3990 .block_erase = spi_block_erase_d8,
3991 }, {
3992 .eraseblocks = { {1024 * 4096, 1} },
3993 .block_erase = spi_block_erase_60,
3994 }, {
3995 .eraseblocks = { {1024 * 4096, 1} },
3996 .block_erase = spi_block_erase_c7,
3997 }
3998 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003999 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4000 .unlock = spi_disable_blockprotect_bp3_srwd,
4001 .write = spi_chip_write_256,
4002 .read = spi_chip_read,
4003 .voltage = {2700, 3600},
4004 },
4005
4006 {
4007 .vendor = "Eon",
4008 .name = "EN25QH64",
4009 .bustype = BUS_SPI,
4010 .manufacture_id = EON_ID_NOPREFIX,
4011 .model_id = EON_EN25QH64,
4012 .total_size = 8192,
4013 .page_size = 256,
4014 /* supports SFDP */
4015 /* OTP: 512B total; enter 0x3A */
4016 /* QPI enable 0x38, disable 0xFF */
4017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4018 .tested = TEST_UNTESTED,
4019 .probe = probe_spi_rdid,
4020 .probe_timing = TIMING_ZERO,
4021 .block_erasers = {
4022 {
4023 .eraseblocks = { {4 * 1024, 2048} },
4024 .block_erase = spi_block_erase_20,
4025 }, {
4026 .eraseblocks = { {64 * 1024, 128} },
4027 .block_erase = spi_block_erase_d8,
4028 }, {
4029 .eraseblocks = { { 8192 * 1024, 1} },
4030 .block_erase = spi_block_erase_60,
4031 }, {
4032 .eraseblocks = { { 8192 * 1024, 1} },
4033 .block_erase = spi_block_erase_c7,
4034 }
4035 },
4036 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4037 .unlock = spi_disable_blockprotect_bp3_srwd,
4038 .write = spi_chip_write_256,
4039 .read = spi_chip_read,
4040 .voltage = {2700, 3600},
4041 },
4042
4043 {
4044 .vendor = "Eon",
4045 .name = "EN25QH128",
4046 .bustype = BUS_SPI,
4047 .manufacture_id = EON_ID_NOPREFIX,
4048 .model_id = EON_EN25QH128,
4049 .total_size = 16384,
4050 .page_size = 256,
4051 /* supports SFDP */
4052 /* OTP: 512B total; enter 0x3A */
4053 /* QPI enable 0x38, disable 0xFF */
4054 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4055 .tested = TEST_UNTESTED,
4056 .probe = probe_spi_rdid,
4057 .probe_timing = TIMING_ZERO,
4058 .block_erasers = {
4059 {
4060 .eraseblocks = { {4 * 1024, 4096} },
4061 .block_erase = spi_block_erase_20,
4062 }, {
4063 .eraseblocks = { {64 * 1024, 256} },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { { 16384 * 1024, 1} },
4067 .block_erase = spi_block_erase_60,
4068 }, {
4069 .eraseblocks = { { 16384 * 1024, 1} },
4070 .block_erase = spi_block_erase_c7,
4071 }
4072 },
4073 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4074 .unlock = spi_disable_blockprotect_bp3_srwd,
4075 .write = spi_chip_write_256,
4076 .read = spi_chip_read,
4077 .voltage = {2700, 3600},
4078 },
4079
4080 {
4081 .vendor = "Eon",
4082 .name = "EN25QH256",
4083 .bustype = BUS_SPI,
4084 .manufacture_id = EON_ID_NOPREFIX,
4085 .model_id = EON_EN25QH256,
4086 .total_size = 32768,
4087 .page_size = 256,
4088 /* supports SFDP */
4089 /* OTP: 512B total; enter 0x3A */
4090 /* QPI enable 0x38, disable 0xFF */
4091 /* EN4B: 0xB7, EX4B: 0xE9 */
4092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4093 .tested = TEST_BAD_REW,
4094 .probe = probe_spi_rdid,
4095 .probe_timing = TIMING_ZERO,
4096 .block_erasers = {
4097 {
4098 .eraseblocks = { {4 * 1024, 8192} },
4099 .block_erase = spi_block_erase_20,
4100 }, {
4101 .eraseblocks = { {64 * 1024, 512} },
4102 .block_erase = spi_block_erase_d8,
4103 }, {
4104 .eraseblocks = { { 32768 * 1024, 1} },
4105 .block_erase = spi_block_erase_60,
4106 }, {
4107 .eraseblocks = { { 32768 * 1024, 1} },
4108 .block_erase = spi_block_erase_c7,
4109 }
4110 },
4111 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4112 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004113 .write = spi_chip_write_256,
4114 .read = spi_chip_read,
4115 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004116 },
4117
4118 {
4119 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004120 .name = "EN25S10",
4121 .bustype = BUS_SPI,
4122 .manufacture_id = EON_ID_NOPREFIX,
4123 .model_id = EON_EN25S10,
4124 .total_size = 128,
4125 .page_size = 256,
4126 /* OTP: 256B total; enter 0x3A */
4127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4128 .tested = TEST_UNTESTED,
4129 .probe = probe_spi_rdid,
4130 .probe_timing = TIMING_ZERO,
4131 .block_erasers = {
4132 {
4133 .eraseblocks = { {4 * 1024, 32} },
4134 .block_erase = spi_block_erase_20,
4135 }, {
4136 .eraseblocks = { {32 * 1024, 4} },
4137 .block_erase = spi_block_erase_52,
4138 }, {
4139 .eraseblocks = { {128 * 1024, 1} },
4140 .block_erase = spi_block_erase_60,
4141 }, {
4142 .eraseblocks = { {128 * 1024, 1} },
4143 .block_erase = spi_block_erase_c7,
4144 }
4145 },
4146 .printlock = spi_prettyprint_status_register_default_bp2,
4147 .unlock = spi_disable_blockprotect,
4148 .write = spi_chip_write_256,
4149 .read = spi_chip_read,
4150 .voltage = {1650, 1950},
4151 },
4152
4153 {
4154 .vendor = "Eon",
4155 .name = "EN25S20",
4156 .bustype = BUS_SPI,
4157 .manufacture_id = EON_ID_NOPREFIX,
4158 .model_id = EON_EN25S20,
4159 .total_size = 256,
4160 .page_size = 256,
4161 /* OTP: 256B total; enter 0x3A */
4162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4163 .tested = TEST_UNTESTED,
4164 .probe = probe_spi_rdid,
4165 .probe_timing = TIMING_ZERO,
4166 .block_erasers = {
4167 {
4168 .eraseblocks = { {4 * 1024, 64} },
4169 .block_erase = spi_block_erase_20,
4170 }, {
4171 .eraseblocks = { {64 * 1024, 4} },
4172 .block_erase = spi_block_erase_d8,
4173 }, {
4174 .eraseblocks = { {256 * 1024, 1} },
4175 .block_erase = spi_block_erase_60,
4176 }, {
4177 .eraseblocks = { {256 * 1024, 1} },
4178 .block_erase = spi_block_erase_c7,
4179 }
4180 },
4181 .printlock = spi_prettyprint_status_register_default_bp2,
4182 .unlock = spi_disable_blockprotect,
4183 .write = spi_chip_write_256,
4184 .read = spi_chip_read,
4185 .voltage = {1650, 1950},
4186 },
4187
4188 {
4189 .vendor = "Eon",
4190 .name = "EN25S40",
4191 .bustype = BUS_SPI,
4192 .manufacture_id = EON_ID_NOPREFIX,
4193 .model_id = EON_EN25S40,
4194 .total_size = 512,
4195 .page_size = 256,
4196 /* OTP: 256B total; enter 0x3A */
4197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4198 .tested = TEST_UNTESTED,
4199 .probe = probe_spi_rdid,
4200 .probe_timing = TIMING_ZERO,
4201 .block_erasers = {
4202 {
4203 .eraseblocks = { {4 * 1024, 128} },
4204 .block_erase = spi_block_erase_20,
4205 }, {
4206 .eraseblocks = { {64 * 1024, 8} },
4207 .block_erase = spi_block_erase_d8,
4208 }, {
4209 .eraseblocks = { {512 * 1024, 1} },
4210 .block_erase = spi_block_erase_60,
4211 }, {
4212 .eraseblocks = { {512 * 1024, 1} },
4213 .block_erase = spi_block_erase_c7,
4214 }
4215 },
4216 .printlock = spi_prettyprint_status_register_default_bp2,
4217 .unlock = spi_disable_blockprotect,
4218 .write = spi_chip_write_256,
4219 .read = spi_chip_read,
4220 .voltage = {1650, 1950},
4221 },
4222
4223 {
4224 .vendor = "Eon",
4225 .name = "EN25S80",
4226 .bustype = BUS_SPI,
4227 .manufacture_id = EON_ID_NOPREFIX,
4228 .model_id = EON_EN25S80,
4229 .total_size = 1024,
4230 .page_size = 256,
4231 /* OTP: 256B total; enter 0x3A */
4232 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4233 .tested = TEST_UNTESTED,
4234 .probe = probe_spi_rdid,
4235 .probe_timing = TIMING_ZERO,
4236 .block_erasers = {
4237 {
4238 .eraseblocks = { {4 * 1024, 256} },
4239 .block_erase = spi_block_erase_20,
4240 }, {
4241 .eraseblocks = { {64 * 1024, 16} },
4242 .block_erase = spi_block_erase_d8,
4243 }, {
4244 .eraseblocks = { {1024 * 1024, 1} },
4245 .block_erase = spi_block_erase_60,
4246 }, {
4247 .eraseblocks = { {1024 * 1024, 1} },
4248 .block_erase = spi_block_erase_c7,
4249 }
4250 },
4251 .printlock = spi_prettyprint_status_register_default_bp2,
4252 .unlock = spi_disable_blockprotect,
4253 .write = spi_chip_write_256,
4254 .read = spi_chip_read,
4255 .voltage = {1650, 1950},
4256 },
4257
4258 {
4259 .vendor = "Eon",
4260 .name = "EN25S16",
4261 .bustype = BUS_SPI,
4262 .manufacture_id = EON_ID_NOPREFIX,
4263 .model_id = EON_EN25S16,
4264 .total_size = 2048,
4265 .page_size = 256,
4266 /* OTP: 512B total; enter 0x3A */
4267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4268 .tested = TEST_UNTESTED,
4269 .probe = probe_spi_rdid,
4270 .probe_timing = TIMING_ZERO,
4271 .block_erasers = {
4272 {
4273 .eraseblocks = { {4 * 1024, 512} },
4274 .block_erase = spi_block_erase_20,
4275 }, {
4276 .eraseblocks = { {64 * 1024, 32} },
4277 .block_erase = spi_block_erase_52,
4278 }, {
4279 .eraseblocks = { {32 * 1024, 64} },
4280 .block_erase = spi_block_erase_d8,
4281 }, {
4282 .eraseblocks = { {2048 * 1024, 1} },
4283 .block_erase = spi_block_erase_60,
4284 }, {
4285 .eraseblocks = { {2048 * 1024, 1} },
4286 .block_erase = spi_block_erase_c7,
4287 }
4288 },
4289 .printlock = spi_prettyprint_status_register_en25s_wp,
4290 .unlock = spi_disable_blockprotect_bp3_srwd,
4291 .write = spi_chip_write_256,
4292 .read = spi_chip_read,
4293 .voltage = {1650, 1950},
4294 },
4295
4296 {
4297 .vendor = "Eon",
4298 .name = "EN25S32",
4299 .bustype = BUS_SPI,
4300 .manufacture_id = EON_ID_NOPREFIX,
4301 .model_id = EON_EN25S32,
4302 .total_size = 4096,
4303 .page_size = 256,
4304 /* OTP: 512B total; enter 0x3A */
4305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4306 .tested = TEST_UNTESTED,
4307 .probe = probe_spi_rdid,
4308 .probe_timing = TIMING_ZERO,
4309 .block_erasers = {
4310 {
4311 .eraseblocks = { {4 * 1024, 1024} },
4312 .block_erase = spi_block_erase_20,
4313 }, {
4314 .eraseblocks = { {32 * 1024, 128} },
4315 .block_erase = spi_block_erase_52,
4316 }, {
4317 .eraseblocks = { {64 * 1024, 64} },
4318 .block_erase = spi_block_erase_d8,
4319 }, {
4320 .eraseblocks = { {4096 * 1024, 1} },
4321 .block_erase = spi_block_erase_60,
4322 }, {
4323 .eraseblocks = { {4096 * 1024, 1} },
4324 .block_erase = spi_block_erase_c7,
4325 }
4326 },
4327 .printlock = spi_prettyprint_status_register_en25s_wp,
4328 .unlock = spi_disable_blockprotect_bp3_srwd,
4329 .write = spi_chip_write_256,
4330 .read = spi_chip_read,
4331 .voltage = {1650, 1950},
4332 },
4333
4334 {
4335 .vendor = "Eon",
4336 .name = "EN25S64",
4337 .bustype = BUS_SPI,
4338 .manufacture_id = EON_ID_NOPREFIX,
4339 .model_id = EON_EN25S64,
4340 .total_size = 8192,
4341 .page_size = 256,
4342 /* OTP: 512B total; enter 0x3A */
4343 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4344 .tested = TEST_UNTESTED,
4345 .probe = probe_spi_rdid,
4346 .probe_timing = TIMING_ZERO,
4347 .block_erasers = {
4348 {
4349 .eraseblocks = { {4 * 1024, 2048} },
4350 .block_erase = spi_block_erase_20,
4351 }, {
4352 .eraseblocks = { {64 * 1024, 128} },
4353 .block_erase = spi_block_erase_d8,
4354 }, {
4355 .eraseblocks = { {8192 * 1024, 1} },
4356 .block_erase = spi_block_erase_60,
4357 }, {
4358 .eraseblocks = { {8192 * 1024, 1} },
4359 .block_erase = spi_block_erase_c7,
4360 }
4361 },
4362 .printlock = spi_prettyprint_status_register_en25s_wp,
4363 .unlock = spi_disable_blockprotect_bp3_srwd,
4364 .write = spi_chip_write_256,
4365 .read = spi_chip_read,
4366 .voltage = {1650, 1950},
4367 },
4368
4369 {
4370 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004371 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004372 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004373 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004374 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004375 .total_size = 128,
4376 .page_size = 128,
4377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004378 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004379 .probe = probe_jedec,
4380 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4381 .block_erasers =
4382 {
4383 {
4384 .eraseblocks = { {16 * 1024, 8} },
4385 .block_erase = erase_sector_jedec,
4386 },
4387 {
4388 .eraseblocks = { {128 * 1024, 1} },
4389 .block_erase = erase_chip_block_jedec,
4390 },
4391 },
4392 .write = write_jedec_1,
4393 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004394 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004395 },
4396
4397 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004398 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004399 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004400 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004401 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004402 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004403 .total_size = 256,
4404 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004405 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004406 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004407 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004408 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004409 .block_erasers =
4410 {
4411 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004412 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004413 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004414 {8 * 1024, 2},
4415 {32 * 1024, 1},
4416 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004417 },
4418 .block_erase = erase_sector_jedec,
4419 }, {
4420 .eraseblocks = { {256 * 1024, 1} },
4421 .block_erase = erase_chip_block_jedec,
4422 },
4423 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004424 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004425 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004426 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004427 },
4428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004429 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004430 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004431 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004432 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004433 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004434 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004435 .total_size = 256,
4436 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004437 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004438 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004439 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004440 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004441 .block_erasers =
4442 {
4443 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004444 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004445 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004446 {32 * 1024, 1},
4447 {8 * 1024, 2},
4448 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004449 },
4450 .block_erase = erase_sector_jedec,
4451 }, {
4452 .eraseblocks = { {256 * 1024, 1} },
4453 .block_erase = erase_chip_block_jedec,
4454 },
4455 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004456 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004458 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004459 },
4460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004461 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004462 .vendor = "Eon",
4463 .name = "EN29LV640B",
4464 .bustype = BUS_PARALLEL,
4465 .manufacture_id = EON_ID,
4466 .model_id = EON_EN29LV640B,
4467 .total_size = 8192,
4468 .page_size = 8192,
4469 .feature_bits = 0,
4470 .tested = TEST_OK_PREW,
4471 .probe = probe_en29lv640b,
4472 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4473 .block_erasers =
4474 {
4475 {
4476 .eraseblocks = {
4477 {8 * 1024, 8},
4478 {64 * 1024, 127},
4479 },
4480 .block_erase = block_erase_en29lv640b,
4481 }, {
4482 .eraseblocks = { {8 * 1024 * 1024, 1} },
4483 .block_erase = block_erase_chip_en29lv640b,
4484 },
4485 },
4486 .write = write_en29lv640b,
4487 .read = read_memmapped,
4488 .voltage = {2700, 3600},
4489 },
4490
4491 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004492 .vendor = "Fujitsu",
4493 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004494 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004495 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004496 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004497 .total_size = 512,
4498 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004499 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004500 .tested = TEST_UNTESTED,
4501 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004502 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004503 .block_erasers =
4504 {
4505 {
4506 .eraseblocks = {
4507 {16 * 1024, 1},
4508 {8 * 1024, 2},
4509 {32 * 1024, 1},
4510 {64 * 1024, 7},
4511 },
Sean Nelson35727f72010-01-28 23:55:12 +00004512 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004513 }, {
4514 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004515 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004516 },
4517 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004518 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004520 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004521 },
4522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004523 {
4524 .vendor = "Fujitsu",
4525 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004526 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004527 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004528 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004529 .total_size = 512,
4530 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004531 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004532 .tested = TEST_UNTESTED,
4533 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004534 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004535 .block_erasers =
4536 {
4537 {
4538 .eraseblocks = {
4539 {64 * 1024, 7},
4540 {32 * 1024, 1},
4541 {8 * 1024, 2},
4542 {16 * 1024, 1},
4543 },
Sean Nelson35727f72010-01-28 23:55:12 +00004544 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004545 }, {
4546 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004547 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004548 },
4549 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004550 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004551 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004552 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004553 },
4554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004555 {
Sean Nelson35727f72010-01-28 23:55:12 +00004556 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004557 .vendor = "Fujitsu",
4558 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004559 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004560 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004561 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004562 .total_size = 512,
4563 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004564 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004565 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004566 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004567 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004568 .block_erasers =
4569 {
4570 {
4571 .eraseblocks = {
4572 {16 * 1024, 1},
4573 {8 * 1024, 2},
4574 {32 * 1024, 1},
4575 {64 * 1024, 7},
4576 },
4577 .block_erase = block_erase_m29f400bt,
4578 }, {
4579 .eraseblocks = { {512 * 1024, 1} },
4580 .block_erase = block_erase_chip_m29f400bt,
4581 },
4582 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004583 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004584 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004585 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004586 },
4587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004588 {
4589 .vendor = "Fujitsu",
4590 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004591 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004592 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004593 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004594 .total_size = 512,
4595 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004596 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004597 .tested = TEST_UNTESTED,
4598 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004599 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004600 .block_erasers =
4601 {
4602 {
4603 .eraseblocks = {
4604 {64 * 1024, 7},
4605 {32 * 1024, 1},
4606 {8 * 1024, 2},
4607 {16 * 1024, 1},
4608 },
4609 .block_erase = block_erase_m29f400bt,
4610 }, {
4611 .eraseblocks = { {512 * 1024, 1} },
4612 .block_erase = block_erase_chip_m29f400bt,
4613 },
4614 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004615 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004617 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004618 },
4619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004620 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004621 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004622 .name = "GD25LQ32",
4623 .bustype = BUS_SPI,
4624 .manufacture_id = GIGADEVICE_ID,
4625 .model_id = GIGADEVICE_GD25LQ32,
4626 .total_size = 4096,
4627 .page_size = 256,
4628 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4630 .tested = TEST_OK_PREW,
4631 .probe = probe_spi_rdid,
4632 .probe_timing = TIMING_ZERO,
4633 .block_erasers =
4634 {
4635 {
4636 .eraseblocks = { {4 * 1024, 1024} },
4637 .block_erase = spi_block_erase_20,
4638 }, {
4639 .eraseblocks = { {32 * 1024, 128} },
4640 .block_erase = spi_block_erase_52,
4641 }, {
4642 .eraseblocks = { {64 * 1024, 64} },
4643 .block_erase = spi_block_erase_d8,
4644 }, {
4645 .eraseblocks = { {4 * 1024 * 1024, 1} },
4646 .block_erase = spi_block_erase_60,
4647 }, {
4648 .eraseblocks = { {4 * 1024 * 1024, 1} },
4649 .block_erase = spi_block_erase_c7,
4650 }
4651 },
4652 .printlock = spi_prettyprint_status_register_default_bp4,
4653 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4654 .write = spi_chip_write_256,
4655 .read = spi_chip_read,
4656 .voltage = {1700, 1950},
4657 },
4658
4659 {
4660 .vendor = "GigaDevice",
4661 .name = "GD25Q512",
4662 .bustype = BUS_SPI,
4663 .manufacture_id = GIGADEVICE_ID,
4664 .model_id = GIGADEVICE_GD25Q512,
4665 .total_size = 64,
4666 .page_size = 256,
4667 .feature_bits = FEATURE_WRSR_WREN,
4668 .tested = TEST_UNTESTED,
4669 .probe = probe_spi_rdid,
4670 .probe_timing = TIMING_ZERO,
4671 .block_erasers = {
4672 {
4673 .eraseblocks = { {4 * 1024, 16} },
4674 .block_erase = spi_block_erase_20,
4675 }, {
4676 .eraseblocks = { {32 * 1024, 2} },
4677 .block_erase = spi_block_erase_52,
4678 }, {
4679 .eraseblocks = { {64 * 1024, 1} },
4680 .block_erase = spi_block_erase_60,
4681 }, {
4682 .eraseblocks = { {64 * 1024, 1} },
4683 .block_erase = spi_block_erase_c7,
4684 }
4685 },
4686 .printlock = spi_prettyprint_status_register_default_bp4,
4687 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4688 .write = spi_chip_write_256,
4689 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4690 .voltage = {2700, 3600},
4691 },
4692
4693 {
4694 .vendor = "GigaDevice",
4695 .name = "GD25Q10",
4696 .bustype = BUS_SPI,
4697 .manufacture_id = GIGADEVICE_ID,
4698 .model_id = GIGADEVICE_GD25Q10,
4699 .total_size = 128,
4700 .page_size = 256,
4701 .feature_bits = FEATURE_WRSR_WREN,
4702 .tested = TEST_UNTESTED,
4703 .probe = probe_spi_rdid,
4704 .probe_timing = TIMING_ZERO,
4705 .block_erasers = {
4706 {
4707 .eraseblocks = { {4 * 1024, 32} },
4708 .block_erase = spi_block_erase_20,
4709 }, {
4710 .eraseblocks = { {32 * 1024, 4} },
4711 .block_erase = spi_block_erase_52,
4712 }, {
4713 .eraseblocks = { {64 * 1024, 2} },
4714 .block_erase = spi_block_erase_d8,
4715 }, {
4716 .eraseblocks = { {128 * 1024, 1} },
4717 .block_erase = spi_block_erase_60,
4718 }, {
4719 .eraseblocks = { {128 * 1024, 1} },
4720 .block_erase = spi_block_erase_c7,
4721 }
4722 },
4723 .printlock = spi_prettyprint_status_register_default_bp4,
4724 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4725 .write = spi_chip_write_256,
4726 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4727 .voltage = {2700, 3600},
4728 },
4729
4730 {
4731 .vendor = "GigaDevice",
4732 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004733 .bustype = BUS_SPI,
4734 .manufacture_id = GIGADEVICE_ID,
4735 .model_id = GIGADEVICE_GD25Q20,
4736 .total_size = 256,
4737 .page_size = 256,
4738 .feature_bits = FEATURE_WRSR_WREN,
4739 .tested = TEST_UNTESTED,
4740 .probe = probe_spi_rdid,
4741 .probe_timing = TIMING_ZERO,
4742 .block_erasers =
4743 {
4744 {
4745 .eraseblocks = { {4 * 1024, 64} },
4746 .block_erase = spi_block_erase_20,
4747 }, {
4748 .eraseblocks = { {32 * 1024, 8} },
4749 .block_erase = spi_block_erase_52,
4750 }, {
4751 .eraseblocks = { {64 * 1024, 4} },
4752 .block_erase = spi_block_erase_d8,
4753 }, {
4754 .eraseblocks = { {256 * 1024, 1} },
4755 .block_erase = spi_block_erase_60,
4756 }, {
4757 .eraseblocks = { {256 * 1024, 1} },
4758 .block_erase = spi_block_erase_c7,
4759 }
4760 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004761 .printlock = spi_prettyprint_status_register_default_bp4,
4762 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004763 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004764 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004765 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004766 },
4767
4768 {
4769 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004770 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004771 .bustype = BUS_SPI,
4772 .manufacture_id = GIGADEVICE_ID,
4773 .model_id = GIGADEVICE_GD25Q40,
4774 .total_size = 512,
4775 .page_size = 256,
4776 .feature_bits = FEATURE_WRSR_WREN,
4777 .tested = TEST_UNTESTED,
4778 .probe = probe_spi_rdid,
4779 .probe_timing = TIMING_ZERO,
4780 .block_erasers =
4781 {
4782 {
4783 .eraseblocks = { {4 * 1024, 128} },
4784 .block_erase = spi_block_erase_20,
4785 }, {
4786 .eraseblocks = { {32 * 1024, 16} },
4787 .block_erase = spi_block_erase_52,
4788 }, {
4789 .eraseblocks = { {64 * 1024, 8} },
4790 .block_erase = spi_block_erase_d8,
4791 }, {
4792 .eraseblocks = { {512 * 1024, 1} },
4793 .block_erase = spi_block_erase_60,
4794 }, {
4795 .eraseblocks = { {512 * 1024, 1} },
4796 .block_erase = spi_block_erase_c7,
4797 }
4798 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004799 .printlock = spi_prettyprint_status_register_default_bp4,
4800 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004801 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004802 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004803 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004804 },
4805
4806 {
4807 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004808 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004809 .bustype = BUS_SPI,
4810 .manufacture_id = GIGADEVICE_ID,
4811 .model_id = GIGADEVICE_GD25Q80,
4812 .total_size = 1024,
4813 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004814 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4816 .tested = TEST_OK_PREW,
4817 .probe = probe_spi_rdid,
4818 .probe_timing = TIMING_ZERO,
4819 .block_erasers =
4820 {
4821 {
4822 .eraseblocks = { {4 * 1024, 256} },
4823 .block_erase = spi_block_erase_20,
4824 }, {
4825 .eraseblocks = { {32 * 1024, 32} },
4826 .block_erase = spi_block_erase_52,
4827 }, {
4828 .eraseblocks = { {64 * 1024, 16} },
4829 .block_erase = spi_block_erase_d8,
4830 }, {
4831 .eraseblocks = { {1024 * 1024, 1} },
4832 .block_erase = spi_block_erase_60,
4833 }, {
4834 .eraseblocks = { {1024 * 1024, 1} },
4835 .block_erase = spi_block_erase_c7,
4836 }
4837 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004838 .printlock = spi_prettyprint_status_register_default_bp4,
4839 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004840 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004841 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004842 .voltage = {2700, 3600},
4843 },
4844
4845 {
4846 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004847 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004848 .bustype = BUS_SPI,
4849 .manufacture_id = GIGADEVICE_ID,
4850 .model_id = GIGADEVICE_GD25Q16,
4851 .total_size = 2048,
4852 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004853 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4855 .tested = TEST_UNTESTED,
4856 .probe = probe_spi_rdid,
4857 .probe_timing = TIMING_ZERO,
4858 .block_erasers =
4859 {
4860 {
4861 .eraseblocks = { {4 * 1024, 512} },
4862 .block_erase = spi_block_erase_20,
4863 }, {
4864 .eraseblocks = { {32 * 1024, 64} },
4865 .block_erase = spi_block_erase_52,
4866 }, {
4867 .eraseblocks = { {64 * 1024, 32} },
4868 .block_erase = spi_block_erase_d8,
4869 }, {
4870 .eraseblocks = { {2 * 1024 * 1024, 1} },
4871 .block_erase = spi_block_erase_60,
4872 }, {
4873 .eraseblocks = { {2 * 1024 * 1024, 1} },
4874 .block_erase = spi_block_erase_c7,
4875 }
4876 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004877 .printlock = spi_prettyprint_status_register_default_bp4,
4878 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004879 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004880 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004881 .voltage = {2700, 3600},
4882 },
4883
4884 {
4885 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004886 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004887 .bustype = BUS_SPI,
4888 .manufacture_id = GIGADEVICE_ID,
4889 .model_id = GIGADEVICE_GD25Q32,
4890 .total_size = 4096,
4891 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004892 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4894 .tested = TEST_UNTESTED,
4895 .probe = probe_spi_rdid,
4896 .probe_timing = TIMING_ZERO,
4897 .block_erasers =
4898 {
4899 {
4900 .eraseblocks = { {4 * 1024, 1024} },
4901 .block_erase = spi_block_erase_20,
4902 }, {
4903 .eraseblocks = { {32 * 1024, 128} },
4904 .block_erase = spi_block_erase_52,
4905 }, {
4906 .eraseblocks = { {64 * 1024, 64} },
4907 .block_erase = spi_block_erase_d8,
4908 }, {
4909 .eraseblocks = { {4 * 1024 * 1024, 1} },
4910 .block_erase = spi_block_erase_60,
4911 }, {
4912 .eraseblocks = { {4 * 1024 * 1024, 1} },
4913 .block_erase = spi_block_erase_c7,
4914 }
4915 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004916 .printlock = spi_prettyprint_status_register_default_bp4,
4917 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004918 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004919 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004920 .voltage = {2700, 3600},
4921 },
4922
4923 {
4924 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004925 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004926 .bustype = BUS_SPI,
4927 .manufacture_id = GIGADEVICE_ID,
4928 .model_id = GIGADEVICE_GD25Q64,
4929 .total_size = 8192,
4930 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004931 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004933 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004934 .probe = probe_spi_rdid,
4935 .probe_timing = TIMING_ZERO,
4936 .block_erasers =
4937 {
4938 {
4939 .eraseblocks = { {4 * 1024, 2048} },
4940 .block_erase = spi_block_erase_20,
4941 }, {
4942 .eraseblocks = { {32 * 1024, 256} },
4943 .block_erase = spi_block_erase_52,
4944 }, {
4945 .eraseblocks = { {64 * 1024, 128} },
4946 .block_erase = spi_block_erase_d8,
4947 }, {
4948 .eraseblocks = { {8 * 1024 * 1024, 1} },
4949 .block_erase = spi_block_erase_60,
4950 }, {
4951 .eraseblocks = { {8 * 1024 * 1024, 1} },
4952 .block_erase = spi_block_erase_c7,
4953 }
4954 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004955 .printlock = spi_prettyprint_status_register_default_bp4,
4956 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004957 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004958 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00004959 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004960 },
4961
4962 {
4963 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004964 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004965 .bustype = BUS_SPI,
4966 .manufacture_id = GIGADEVICE_ID,
4967 .model_id = GIGADEVICE_GD25Q128,
4968 .total_size = 16384,
4969 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004970 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4972 .tested = TEST_UNTESTED,
4973 .probe = probe_spi_rdid,
4974 .probe_timing = TIMING_ZERO,
4975 .block_erasers =
4976 {
4977 {
4978 .eraseblocks = { {4 * 1024, 4096} },
4979 .block_erase = spi_block_erase_20,
4980 }, {
4981 .eraseblocks = { {32 * 1024, 512} },
4982 .block_erase = spi_block_erase_52,
4983 }, {
4984 .eraseblocks = { {64 * 1024, 256} },
4985 .block_erase = spi_block_erase_d8,
4986 }, {
4987 .eraseblocks = { {16 * 1024 * 1024, 1} },
4988 .block_erase = spi_block_erase_60,
4989 }, {
4990 .eraseblocks = { {16 * 1024 * 1024, 1} },
4991 .block_erase = spi_block_erase_c7,
4992 }
4993 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004994 .printlock = spi_prettyprint_status_register_default_bp4,
4995 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4996 .write = spi_chip_write_256,
4997 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4998 .voltage = {2700, 3600},
4999 },
5000
5001 {
5002 .vendor = "GigaDevice",
5003 .name = "GD25T80",
5004 .bustype = BUS_SPI,
5005 .manufacture_id = GIGADEVICE_ID,
5006 .model_id = GIGADEVICE_GD25T80,
5007 .total_size = 1024,
5008 .page_size = 256,
5009 /* OTP: 256B total; enter 0x3A */
5010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5011 .tested = TEST_UNTESTED,
5012 .probe = probe_spi_rdid,
5013 .probe_timing = TIMING_ZERO,
5014 .block_erasers = {
5015 {
5016 .eraseblocks = { {4 * 1024, 256} },
5017 .block_erase = spi_block_erase_20,
5018 }, {
5019 .eraseblocks = { {64 * 1024, 16} },
5020 .block_erase = spi_block_erase_52,
5021 }, {
5022 .eraseblocks = { {64 * 1024, 16} },
5023 .block_erase = spi_block_erase_d8,
5024 }, {
5025 .eraseblocks = { {1024 * 1024, 1} },
5026 .block_erase = spi_block_erase_60,
5027 }, {
5028 .eraseblocks = { {1024 * 1024, 1} },
5029 .block_erase = spi_block_erase_c7,
5030 }
5031 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005032 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005033 .unlock = spi_disable_blockprotect,
5034 .write = spi_chip_write_256,
5035 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005036 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005037 },
5038
5039 {
David Borgc96a8bd2010-06-21 16:12:22 +00005040 .vendor = "Hyundai",
5041 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005042 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005043 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005044 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005045 .total_size = 256,
5046 .page_size = 256 * 1024,
5047 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005048 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005049 .probe = probe_jedec,
5050 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5051 .block_erasers =
5052 {
5053 {
5054 .eraseblocks = {
5055 {64 * 1024, 3},
5056 {32 * 1024, 1},
5057 {8 * 1024, 2},
5058 {16 * 1024, 1},
5059 },
5060 .block_erase = erase_sector_jedec,
5061 }, {
5062 .eraseblocks = { {256 * 1024, 1} },
5063 .block_erase = erase_chip_block_jedec,
5064 },
5065 },
5066 .write = write_jedec_1,
5067 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005068 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005069 },
5070
5071 {
5072 .vendor = "Hyundai",
5073 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005074 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005075 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005076 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005077 .total_size = 256,
5078 .page_size = 256 * 1024,
5079 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_jedec,
5082 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = {
5087 {16 * 1024, 1},
5088 {8 * 1024, 2},
5089 {32 * 1024, 1},
5090 {64 * 1024, 3},
5091 },
5092 .block_erase = erase_sector_jedec,
5093 }, {
5094 .eraseblocks = { {256 * 1024, 1} },
5095 .block_erase = erase_chip_block_jedec,
5096 },
5097 },
5098 .write = write_jedec_1,
5099 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005100 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005101 },
5102
5103 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005104 .vendor = "Hyundai",
5105 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005106 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005107 .manufacture_id = HYUNDAI_ID,
5108 .model_id = HYUNDAI_HY29F040A,
5109 .total_size = 512,
5110 .page_size = 64 * 1024,
5111 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5112 .tested = TEST_UNTESTED,
5113 .probe = probe_jedec,
5114 .probe_timing = TIMING_ZERO,
5115 .block_erasers =
5116 {
5117 {
5118 .eraseblocks = { {64 * 1024, 8} },
5119 .block_erase = erase_sector_jedec,
5120 }, {
5121 .eraseblocks = { {512 * 1024, 1} },
5122 .block_erase = erase_chip_block_jedec,
5123 },
5124 },
5125 .write = write_jedec_1,
5126 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005127 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005128 },
5129
5130 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005131 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005132 .name = "25F160S33B8",
5133 .bustype = BUS_SPI,
5134 .manufacture_id = INTEL_ID,
5135 .model_id = INTEL_25F160S33B8,
5136 .total_size = 2048,
5137 .page_size = 256,
5138 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5140 .tested = TEST_UNTESTED,
5141 .probe = probe_spi_rdid,
5142 .probe_timing = TIMING_ZERO,
5143 .block_erasers =
5144 {
5145 {
5146 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5147 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5148 * have no effect on the memory contents, but sets a flag in the SR.
5149 .eraseblocks = {
5150 {8 * 1024, 8},
5151 {64 * 1024, 31} // inaccessible
5152 },
5153 .block_erase = spi_block_erase_40,
5154 }, { */
5155 .eraseblocks = { {64 * 1024, 32} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {2 * 1024 * 1024, 1} },
5159 .block_erase = spi_block_erase_c7,
5160 }
5161 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005162 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5163 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005164 .write = spi_chip_write_256,
5165 .read = spi_chip_read, /* also fast read 0x0B */
5166 .voltage = {2700, 3600},
5167 },
5168
5169 {
5170 .vendor = "Intel",
5171 .name = "25F160S33T8",
5172 .bustype = BUS_SPI,
5173 .manufacture_id = INTEL_ID,
5174 .model_id = INTEL_25F160S33T8,
5175 .total_size = 2048,
5176 .page_size = 256,
5177 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5179 .tested = TEST_UNTESTED,
5180 .probe = probe_spi_rdid,
5181 .probe_timing = TIMING_ZERO,
5182 .block_erasers =
5183 {
5184 {
5185 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5186 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5187 * have no effect on the memory contents, but sets a flag in the SR.
5188 .eraseblocks = {
5189 {64 * 1024, 31}, // inaccessible
5190 {8 * 1024, 8}
5191 },
5192 .block_erase = spi_block_erase_40,
5193 }, { */
5194 .eraseblocks = { {64 * 1024, 32} },
5195 .block_erase = spi_block_erase_d8,
5196 }, {
5197 .eraseblocks = { {2 * 1024 * 1024, 1} },
5198 .block_erase = spi_block_erase_c7,
5199 }
5200 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005201 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5202 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005203 .write = spi_chip_write_256,
5204 .read = spi_chip_read, /* also fast read 0x0B */
5205 .voltage = {2700, 3600},
5206 },
5207
5208 {
5209 .vendor = "Intel",
5210 .name = "25F320S33B8",
5211 .bustype = BUS_SPI,
5212 .manufacture_id = INTEL_ID,
5213 .model_id = INTEL_25F320S33B8,
5214 .total_size = 4096,
5215 .page_size = 256,
5216 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5218 .tested = TEST_UNTESTED,
5219 .probe = probe_spi_rdid,
5220 .probe_timing = TIMING_ZERO,
5221 .block_erasers =
5222 {
5223 {
5224 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5225 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5226 * have no effect on the memory contents, but sets a flag in the SR.
5227 .eraseblocks = {
5228 {8 * 1024, 8},
5229 {64 * 1024, 63} // inaccessible
5230 },
5231 .block_erase = spi_block_erase_40,
5232 }, { */
5233 .eraseblocks = { {64 * 1024, 64} },
5234 .block_erase = spi_block_erase_d8,
5235 }, {
5236 .eraseblocks = { {4 * 1024 * 1024, 1} },
5237 .block_erase = spi_block_erase_c7,
5238 }
5239 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005240 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5241 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005242 .write = spi_chip_write_256,
5243 .read = spi_chip_read, /* also fast read 0x0B */
5244 .voltage = {2700, 3600},
5245 },
5246
5247 {
5248 .vendor = "Intel",
5249 .name = "25F320S33T8",
5250 .bustype = BUS_SPI,
5251 .manufacture_id = INTEL_ID,
5252 .model_id = INTEL_25F320S33T8,
5253 .total_size = 4096,
5254 .page_size = 256,
5255 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5257 .tested = TEST_UNTESTED,
5258 .probe = probe_spi_rdid,
5259 .probe_timing = TIMING_ZERO,
5260 .block_erasers =
5261 {
5262 {
5263 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5264 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5265 * have no effect on the memory contents, but sets a flag in the SR.
5266 .eraseblocks = {
5267 {64 * 1024, 63}, // inaccessible
5268 {8 * 1024, 8}
5269 },
5270 .block_erase = spi_block_erase_40,
5271 }, { */
5272 .eraseblocks = { {64 * 1024, 64} },
5273 .block_erase = spi_block_erase_d8,
5274 }, {
5275 .eraseblocks = { {4 * 1024 * 1024, 1} },
5276 .block_erase = spi_block_erase_c7,
5277 }
5278 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005279 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5280 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005281 .write = spi_chip_write_256,
5282 .read = spi_chip_read, /* also fast read 0x0B */
5283 .voltage = {2700, 3600},
5284 },
5285
5286 {
5287 .vendor = "Intel",
5288 .name = "25F640S33B8",
5289 .bustype = BUS_SPI,
5290 .manufacture_id = INTEL_ID,
5291 .model_id = INTEL_25F640S33B8,
5292 .total_size = 8192,
5293 .page_size = 256,
5294 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5296 .tested = TEST_UNTESTED,
5297 .probe = probe_spi_rdid,
5298 .probe_timing = TIMING_ZERO,
5299 .block_erasers =
5300 {
5301 {
5302 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5303 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5304 * have no effect on the memory contents, but sets a flag in the SR.
5305 .eraseblocks = {
5306 {8 * 1024, 8},
5307 {64 * 1024, 127} // inaccessible
5308 },
5309 .block_erase = spi_block_erase_40,
5310 }, { */
5311 .eraseblocks = { {64 * 1024, 128} },
5312 .block_erase = spi_block_erase_d8,
5313 }, {
5314 .eraseblocks = { {8 * 1024 * 1024, 1} },
5315 .block_erase = spi_block_erase_c7,
5316 }
5317 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005318 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5319 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005320 .write = spi_chip_write_256,
5321 .read = spi_chip_read, /* also fast read 0x0B */
5322 .voltage = {2700, 3600},
5323 },
5324
5325 {
5326 .vendor = "Intel",
5327 .name = "25F640S33T8",
5328 .bustype = BUS_SPI,
5329 .manufacture_id = INTEL_ID,
5330 .model_id = INTEL_25F640S33T8,
5331 .total_size = 8192,
5332 .page_size = 256,
5333 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5334 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5335 .tested = TEST_UNTESTED,
5336 .probe = probe_spi_rdid,
5337 .probe_timing = TIMING_ZERO,
5338 .block_erasers =
5339 {
5340 {
5341 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5342 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5343 * have no effect on the memory contents, but sets a flag in the SR.
5344 .eraseblocks = {
5345 {64 * 1024, 127}, // inaccessible
5346 {8 * 1024, 8}
5347 },
5348 .block_erase = spi_block_erase_40,
5349 }, { */
5350 .eraseblocks = { {64 * 1024, 128} },
5351 .block_erase = spi_block_erase_d8,
5352 }, {
5353 .eraseblocks = { {8 * 1024 * 1024, 1} },
5354 .block_erase = spi_block_erase_c7,
5355 }
5356 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005357 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5358 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005359 .write = spi_chip_write_256,
5360 .read = spi_chip_read, /* also fast read 0x0B */
5361 .voltage = {2700, 3600},
5362 },
5363
5364 {
5365 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005366 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005367 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005368 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005369 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005370 .total_size = 128,
5371 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005372 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005373 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005374 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005375 .block_erasers =
5376 {
5377 {
5378 .eraseblocks = {
5379 {8 * 1024, 1},
5380 {4 * 1024, 2},
5381 {112 * 1024, 1},
5382 },
Sean Nelson28accc22010-03-19 18:47:06 +00005383 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005384 },
5385 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005386 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005388 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005389 },
5390
5391 {
5392 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005393 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005394 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005395 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005396 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005397 .total_size = 128,
5398 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005399 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005400 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005401 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005402 .block_erasers =
5403 {
5404 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005405 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005406 {112 * 1024, 1},
5407 {4 * 1024, 2},
5408 {8 * 1024, 1},
5409 },
Sean Nelson28accc22010-03-19 18:47:06 +00005410 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005411 },
5412 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005413 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005415 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005416 },
5417
5418 {
5419 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005420 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005421 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005422 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005423 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005424 .total_size = 256,
5425 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005426 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005427 .probe = probe_82802ab,
5428 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5429 .block_erasers =
5430 {
5431 {
5432 .eraseblocks = {
5433 {128 * 1024, 1},
5434 {96 * 1024, 1},
5435 {8 * 1024, 2},
5436 {16 * 1024, 1},
5437 },
5438 .block_erase = erase_block_82802ab,
5439 },
5440 },
5441 .write = write_82802ab,
5442 .read = read_memmapped,
5443 },
5444
5445 {
5446 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005447 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005448 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005449 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005450 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005451 .total_size = 512,
5452 .page_size = 256,
5453 .tested = TEST_UNTESTED,
5454 .probe = probe_82802ab,
5455 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005456 .block_erasers =
5457 {
5458 {
5459 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005460 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005461 },
5462 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005463 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005464 .write = write_82802ab,
5465 .read = read_memmapped,
5466 },
5467
5468 {
5469 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005470 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005471 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005472 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005473 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005474 .total_size = 512,
5475 .page_size = 128 * 1024, /* maximal block size */
5476 .tested = TEST_UNTESTED,
5477 .probe = probe_82802ab,
5478 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5479 .block_erasers =
5480 {
5481 {
5482 .eraseblocks = {
5483 {16 * 1024, 1},
5484 {8 * 1024, 2},
5485 {96 * 1024, 1},
5486 {128 * 1024, 3},
5487 },
5488 .block_erase = erase_block_82802ab,
5489 },
5490 },
5491 .write = write_82802ab,
5492 .read = read_memmapped,
5493 },
5494
5495 {
5496 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005497 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005498 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005499 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005500 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005501 .total_size = 512,
5502 .page_size = 128 * 1024, /* maximal block size */
5503 .tested = TEST_UNTESTED,
5504 .probe = probe_82802ab,
5505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5506 .block_erasers =
5507 {
5508 {
5509 .eraseblocks = {
5510 {128 * 1024, 3},
5511 {96 * 1024, 1},
5512 {8 * 1024, 2},
5513 {16 * 1024, 1},
5514 },
5515 .block_erase = erase_block_82802ab,
5516 },
5517 },
5518 .write = write_82802ab,
5519 .read = read_memmapped,
5520 },
5521
5522 {
5523 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005524 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005525 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005526 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005527 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005528 .total_size = 512,
5529 .page_size = 128 * 1024, /* maximal block size */
5530 .feature_bits = FEATURE_ADDR_SHIFTED,
5531 .tested = TEST_UNTESTED,
5532 .probe = probe_82802ab,
5533 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5534 .block_erasers =
5535 {
5536 {
5537 .eraseblocks = {
5538 {16 * 1024, 1},
5539 {8 * 1024, 2},
5540 {96 * 1024, 1},
5541 {128 * 1024, 3},
5542 },
5543 .block_erase = erase_block_82802ab,
5544 },
5545 },
5546 .write = write_82802ab,
5547 .read = read_memmapped,
5548 },
5549
5550 {
5551 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005552 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005553 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005554 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005555 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005556 .total_size = 512,
5557 .page_size = 128 * 1024, /* maximal block size */
5558 .feature_bits = FEATURE_ADDR_SHIFTED,
5559 .tested = TEST_UNTESTED,
5560 .probe = probe_82802ab,
5561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5562 .block_erasers =
5563 {
5564 {
5565 .eraseblocks = {
5566 {128 * 1024, 3},
5567 {96 * 1024, 1},
5568 {8 * 1024, 2},
5569 {16 * 1024, 1},
5570 },
5571 .block_erase = erase_block_82802ab,
5572 },
5573 },
5574 .write = write_82802ab,
5575 .read = read_memmapped,
5576 },
5577
5578 {
5579 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005580 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005581 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005582 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005583 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005584 .total_size = 512,
5585 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005586 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005587 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005588 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005589 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005590 .block_erasers =
5591 {
5592 {
5593 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005594 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005595 },
5596 },
Sean Nelson28accc22010-03-19 18:47:06 +00005597 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005598 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005600 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005601 },
5602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005603 {
5604 .vendor = "Intel",
5605 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005606 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005607 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005608 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005609 .total_size = 1024,
5610 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005611 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005612 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005613 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005614 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005615 .block_erasers =
5616 {
5617 {
5618 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005619 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005620 },
5621 },
Sean Nelson28accc22010-03-19 18:47:06 +00005622 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005625 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005626 },
5627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005628 {
5629 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005630 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005631 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005632 .manufacture_id = MACRONIX_ID,
5633 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005634 .total_size = 64,
5635 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005636 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005637 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005638 .tested = TEST_UNTESTED,
5639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005640 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005641 .block_erasers =
5642 {
5643 {
5644 .eraseblocks = { {4 * 1024, 16} },
5645 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005646 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005647 .eraseblocks = { {64 * 1024, 1} },
5648 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005649 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005650 .eraseblocks = { {64 * 1024, 1} },
5651 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005652 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005653 .eraseblocks = { {64 * 1024, 1} },
5654 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005655 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005656 .eraseblocks = { {64 * 1024, 1} },
5657 .block_erase = spi_block_erase_c7,
5658 },
5659 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005660 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005661 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005662 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005663 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5664 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005665 },
5666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005667 {
5668 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005669 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005670 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005671 .manufacture_id = MACRONIX_ID,
5672 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005673 .total_size = 128,
5674 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005675 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005676 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005677 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005678 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005679 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005680 .block_erasers =
5681 {
5682 {
5683 .eraseblocks = { {4 * 1024, 32} },
5684 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005685 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005686 .eraseblocks = { {64 * 1024, 2} },
5687 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005688 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005689 .eraseblocks = { {128 * 1024, 1} },
5690 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005691 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005692 .eraseblocks = { {128 * 1024, 1} },
5693 .block_erase = spi_block_erase_c7,
5694 },
5695 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005696 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005697 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005698 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005699 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005700 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005701 },
5702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005703 {
5704 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005705 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005706 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005707 .manufacture_id = MACRONIX_ID,
5708 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005709 .total_size = 256,
5710 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005711 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005712 .tested = TEST_UNTESTED,
5713 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005714 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005715 .block_erasers =
5716 {
5717 {
5718 .eraseblocks = { {4 * 1024, 64} },
5719 .block_erase = spi_block_erase_20,
5720 }, {
5721 .eraseblocks = { {64 * 1024, 4} },
5722 .block_erase = spi_block_erase_52,
5723 }, {
5724 .eraseblocks = { {64 * 1024, 4} },
5725 .block_erase = spi_block_erase_d8,
5726 }, {
5727 .eraseblocks = { {256 * 1024, 1} },
5728 .block_erase = spi_block_erase_60,
5729 }, {
5730 .eraseblocks = { {256 * 1024, 1} },
5731 .block_erase = spi_block_erase_c7,
5732 },
5733 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005734 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005735 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005736 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005737 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005738 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005739 },
5740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005741 {
5742 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005743 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005744 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005745 .manufacture_id = MACRONIX_ID,
5746 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005747 .total_size = 512,
5748 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005749 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005750 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005751 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005752 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005753 .block_erasers =
5754 {
5755 {
5756 .eraseblocks = { {4 * 1024, 128} },
5757 .block_erase = spi_block_erase_20,
5758 }, {
5759 .eraseblocks = { {64 * 1024, 8} },
5760 .block_erase = spi_block_erase_52,
5761 }, {
5762 .eraseblocks = { {64 * 1024, 8} },
5763 .block_erase = spi_block_erase_d8,
5764 }, {
5765 .eraseblocks = { {512 * 1024, 1} },
5766 .block_erase = spi_block_erase_60,
5767 }, {
5768 .eraseblocks = { {512 * 1024, 1} },
5769 .block_erase = spi_block_erase_c7,
5770 },
5771 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005772 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005774 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005776 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005777 },
5778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005779 {
5780 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005781 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005782 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005783 .manufacture_id = MACRONIX_ID,
5784 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005785 .total_size = 1024,
5786 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005787 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005788 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005789 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005790 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005791 .block_erasers =
5792 {
5793 {
5794 .eraseblocks = { {4 * 1024, 256} },
5795 .block_erase = spi_block_erase_20,
5796 }, {
5797 .eraseblocks = { {64 * 1024, 16} },
5798 .block_erase = spi_block_erase_52,
5799 }, {
5800 .eraseblocks = { {64 * 1024, 16} },
5801 .block_erase = spi_block_erase_d8,
5802 }, {
5803 .eraseblocks = { {1024 * 1024, 1} },
5804 .block_erase = spi_block_erase_60,
5805 }, {
5806 .eraseblocks = { {1024 * 1024, 1} },
5807 .block_erase = spi_block_erase_c7,
5808 },
5809 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005810 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005811 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005812 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005813 .read = spi_chip_read, /* Fast read (0x0B) supported */
5814 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005815 },
5816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005817 {
5818 .vendor = "Macronix",
5819 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005820 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005821 .manufacture_id = MACRONIX_ID,
5822 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005823 .total_size = 2048,
5824 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005825 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005826 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005827 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005828 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005829 .block_erasers =
5830 {
5831 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005832 .eraseblocks = { {64 * 1024, 32} },
5833 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005834 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005835 .eraseblocks = { {64 * 1024, 32} },
5836 .block_erase = spi_block_erase_d8,
5837 }, {
5838 .eraseblocks = { {2 * 1024 * 1024, 1} },
5839 .block_erase = spi_block_erase_60,
5840 }, {
5841 .eraseblocks = { {2 * 1024 * 1024, 1} },
5842 .block_erase = spi_block_erase_c7,
5843 },
5844 },
5845 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
5846 .unlock = spi_disable_blockprotect,
5847 .write = spi_chip_write_256,
5848 .read = spi_chip_read, /* Fast read (0x0B) supported */
5849 .voltage = {2700, 3600},
5850 },
5851
5852 {
5853 .vendor = "Macronix",
5854 .name = "MX25L1605A/MX25L1606E",
5855 .bustype = BUS_SPI,
5856 .manufacture_id = MACRONIX_ID,
5857 .model_id = MACRONIX_MX25L1605,
5858 .total_size = 2048,
5859 .page_size = 256,
5860 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
5861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5862 .tested = TEST_OK_PREW,
5863 .probe = probe_spi_rdid,
5864 .probe_timing = TIMING_ZERO,
5865 .block_erasers =
5866 {
5867 {
5868 .eraseblocks = { {4 * 1024, 512} },
5869 .block_erase = spi_block_erase_20,
5870 }, {
5871 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005872 .block_erase = spi_block_erase_52,
5873 }, {
5874 .eraseblocks = { {64 * 1024, 32} },
5875 .block_erase = spi_block_erase_d8,
5876 }, {
5877 .eraseblocks = { {2 * 1024 * 1024, 1} },
5878 .block_erase = spi_block_erase_60,
5879 }, {
5880 .eraseblocks = { {2 * 1024 * 1024, 1} },
5881 .block_erase = spi_block_erase_c7,
5882 },
5883 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005884 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005885 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005886 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005887 .read = spi_chip_read, /* Fast read (0x0B) supported */
5888 .voltage = {2700, 3600},
5889 },
5890
5891 {
5892 .vendor = "Macronix",
5893 .name = "MX25L1605D/MX25L1608D",
5894 .bustype = BUS_SPI,
5895 .manufacture_id = MACRONIX_ID,
5896 .model_id = MACRONIX_MX25L1605,
5897 .total_size = 2048,
5898 .page_size = 256,
5899 .feature_bits = FEATURE_WRSR_WREN,
5900 .tested = TEST_OK_PREW,
5901 .probe = probe_spi_rdid,
5902 .probe_timing = TIMING_ZERO,
5903 .block_erasers =
5904 {
5905 {
5906 .eraseblocks = { {4 * 1024, 512} },
5907 .block_erase = spi_block_erase_20,
5908 }, {
5909 .eraseblocks = { {64 * 1024, 32} },
5910 .block_erase = spi_block_erase_d8,
5911 }, {
5912 .eraseblocks = { {2 * 1024 * 1024, 1} },
5913 .block_erase = spi_block_erase_60,
5914 }, {
5915 .eraseblocks = { {2 * 1024 * 1024, 1} },
5916 .block_erase = spi_block_erase_c7,
5917 },
5918 },
5919 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
5920 .unlock = spi_disable_blockprotect,
5921 .write = spi_chip_write_256,
5922 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005923 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005924 },
5925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005926 {
5927 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005928 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005929 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005930 .manufacture_id = MACRONIX_ID,
5931 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005932 .total_size = 2048,
5933 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005934 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005936 .tested = TEST_UNTESTED,
5937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005938 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 512} },
5943 .block_erase = spi_block_erase_20,
5944 }, {
5945 .eraseblocks = { {64 * 1024, 32} },
5946 .block_erase = spi_block_erase_d8,
5947 }, {
5948 .eraseblocks = { {2 * 1024 * 1024, 1} },
5949 .block_erase = spi_block_erase_60,
5950 }, {
5951 .eraseblocks = { {2 * 1024 * 1024, 1} },
5952 .block_erase = spi_block_erase_c7,
5953 }
5954 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005955 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005956 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005957 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005958 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005959 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005960 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005961
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005962 {
5963 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005964 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005965 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005966 .manufacture_id = MACRONIX_ID,
5967 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005968 .total_size = 2048,
5969 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005970 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005972 .tested = TEST_UNTESTED,
5973 .probe = probe_spi_rdid,
5974 .probe_timing = TIMING_ZERO,
5975 .block_erasers =
5976 {
5977 {
5978 .eraseblocks = { {4 * 1024, 512} },
5979 .block_erase = spi_block_erase_20,
5980 }, {
5981 .eraseblocks = { {64 * 1024, 32} },
5982 .block_erase = spi_block_erase_d8,
5983 }, {
5984 .eraseblocks = { {2 * 1024 * 1024, 1} },
5985 .block_erase = spi_block_erase_60,
5986 }, {
5987 .eraseblocks = { {2 * 1024 * 1024, 1} },
5988 .block_erase = spi_block_erase_c7,
5989 }
5990 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005991 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005992 .unlock = spi_disable_blockprotect,
5993 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005994 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00005995 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005996 },
5997
5998 {
5999 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006000 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006001 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006002 .manufacture_id = MACRONIX_ID,
6003 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006004 .total_size = 4096,
6005 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006006 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006007 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006009 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006010 .block_erasers =
6011 {
6012 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006013 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006014 .block_erase = spi_block_erase_20,
6015 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006016 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006017 .block_erase = spi_block_erase_d8,
6018 }, {
6019 .eraseblocks = { {4 * 1024 * 1024, 1} },
6020 .block_erase = spi_block_erase_60,
6021 }, {
6022 .eraseblocks = { {4 * 1024 * 1024, 1} },
6023 .block_erase = spi_block_erase_c7,
6024 },
6025 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006026 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006027 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006028 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006029 .read = spi_chip_read, /* Fast read (0x0B) supported */
6030 .voltage = {2700, 3600},
6031 },
6032
6033 {
6034 .vendor = "Macronix",
6035 .name = "MX25L3205D/MX25L3208D",
6036 .bustype = BUS_SPI,
6037 .manufacture_id = MACRONIX_ID,
6038 .model_id = MACRONIX_MX25L3205,
6039 .total_size = 4096,
6040 .page_size = 256,
6041 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6043 .tested = TEST_OK_PREW,
6044 .probe = probe_spi_rdid,
6045 .probe_timing = TIMING_ZERO,
6046 .block_erasers =
6047 {
6048 {
6049 .eraseblocks = { {4 * 1024, 1024} },
6050 .block_erase = spi_block_erase_20,
6051 }, {
6052 .eraseblocks = { {64 * 1024, 64} },
6053 .block_erase = spi_block_erase_d8,
6054 }, {
6055 .eraseblocks = { {4 * 1024 * 1024, 1} },
6056 .block_erase = spi_block_erase_60,
6057 }, {
6058 .eraseblocks = { {4 * 1024 * 1024, 1} },
6059 .block_erase = spi_block_erase_c7,
6060 },
6061 },
6062 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6063 .unlock = spi_disable_blockprotect,
6064 .write = spi_chip_write_256,
6065 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6066 .voltage = {2700, 3600},
6067 },
6068
6069 {
6070 .vendor = "Macronix",
6071 .name = "MX25L3206E",
6072 .bustype = BUS_SPI,
6073 .manufacture_id = MACRONIX_ID,
6074 .model_id = MACRONIX_MX25L3205,
6075 .total_size = 4096,
6076 .page_size = 256,
6077 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6079 .tested = TEST_OK_PREW,
6080 .probe = probe_spi_rdid,
6081 .probe_timing = TIMING_ZERO,
6082 .block_erasers =
6083 {
6084 {
6085 .eraseblocks = { {4 * 1024, 1024} },
6086 .block_erase = spi_block_erase_20,
6087 }, {
6088 .eraseblocks = { {64 * 1024, 64} },
6089 .block_erase = spi_block_erase_d8,
6090 }, {
6091 .eraseblocks = { {64 * 1024, 64} },
6092 .block_erase = spi_block_erase_52,
6093 }, {
6094 .eraseblocks = { {4 * 1024 * 1024, 1} },
6095 .block_erase = spi_block_erase_60,
6096 }, {
6097 .eraseblocks = { {4 * 1024 * 1024, 1} },
6098 .block_erase = spi_block_erase_c7,
6099 },
6100 },
6101 .printlock = spi_prettyprint_status_register_default_bp3,
6102 .unlock = spi_disable_blockprotect,
6103 .write = spi_chip_write_256,
6104 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006106 },
6107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006108 {
6109 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006110 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006111 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006112 .manufacture_id = MACRONIX_ID,
6113 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006114 .total_size = 4096,
6115 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006116 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006118 .tested = TEST_UNTESTED,
6119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006120 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006121 .block_erasers =
6122 {
6123 {
6124 .eraseblocks = { {4 * 1024, 1024} },
6125 .block_erase = spi_block_erase_20,
6126 }, {
6127 .eraseblocks = { {64 * 1024, 64} },
6128 .block_erase = spi_block_erase_d8,
6129 }, {
6130 .eraseblocks = { {4 * 1024 * 1024, 1} },
6131 .block_erase = spi_block_erase_60,
6132 }, {
6133 .eraseblocks = { {4 * 1024 * 1024, 1} },
6134 .block_erase = spi_block_erase_c7,
6135 }
6136 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006137 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006139 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006140 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006141 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006142 },
6143
6144 {
6145 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006146 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006147 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006148 .manufacture_id = MACRONIX_ID,
6149 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 .total_size = 8192,
6151 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006152 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6153 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006154 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006155 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006156 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006157 .block_erasers =
6158 {
6159 {
6160 .eraseblocks = { {64 * 1024, 128} },
6161 .block_erase = spi_block_erase_20,
6162 }, {
6163 .eraseblocks = { {64 * 1024, 128} },
6164 .block_erase = spi_block_erase_d8,
6165 }, {
6166 .eraseblocks = { {8 * 1024 * 1024, 1} },
6167 .block_erase = spi_block_erase_60,
6168 }, {
6169 .eraseblocks = { {8 * 1024 * 1024, 1} },
6170 .block_erase = spi_block_erase_c7,
6171 }
6172 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006173 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006174 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006178 },
6179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006180 {
6181 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006182 .name = "MX25L6406E/MX25L6436E",
6183 .bustype = BUS_SPI,
6184 .manufacture_id = MACRONIX_ID,
6185 .model_id = MACRONIX_MX25L6405,
6186 .total_size = 8192,
6187 .page_size = 256,
6188 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6189 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6190 .tested = TEST_OK_PREW,
6191 .probe = probe_spi_rdid,
6192 .probe_timing = TIMING_ZERO,
6193 .block_erasers =
6194 {
6195 {
6196 .eraseblocks = { {4 * 1024, 2048} },
6197 .block_erase = spi_block_erase_20,
6198 }, {
6199 .eraseblocks = { {64 * 1024, 128} },
6200 .block_erase = spi_block_erase_d8,
6201 }, {
6202 .eraseblocks = { {8 * 1024 * 1024, 1} },
6203 .block_erase = spi_block_erase_60,
6204 }, {
6205 .eraseblocks = { {8 * 1024 * 1024, 1} },
6206 .block_erase = spi_block_erase_c7,
6207 }
6208 },
6209 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6210 .unlock = spi_disable_blockprotect,
6211 .write = spi_chip_write_256,
6212 .read = spi_chip_read,
6213 .voltage = {2700, 3600},
6214 },
6215
6216 {
6217 .vendor = "Macronix",
6218 .name = "MX25L6445E",
6219 .bustype = BUS_SPI,
6220 .manufacture_id = MACRONIX_ID,
6221 .model_id = MACRONIX_MX25L6405,
6222 .total_size = 8192,
6223 .page_size = 256,
6224 /* supports SFDP */
6225 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6227 .tested = TEST_OK_PREW,
6228 .probe = probe_spi_rdid,
6229 .probe_timing = TIMING_ZERO,
6230 .block_erasers =
6231 {
6232 {
6233 .eraseblocks = { {4 * 1024, 2048} },
6234 .block_erase = spi_block_erase_20,
6235 }, {
6236 .eraseblocks = { {32 * 1024, 256} },
6237 .block_erase = spi_block_erase_52,
6238 }, {
6239 .eraseblocks = { {64 * 1024, 128} },
6240 .block_erase = spi_block_erase_d8,
6241 }, {
6242 .eraseblocks = { {8 * 1024 * 1024, 1} },
6243 .block_erase = spi_block_erase_60,
6244 }, {
6245 .eraseblocks = { {8 * 1024 * 1024, 1} },
6246 .block_erase = spi_block_erase_c7,
6247 }
6248 },
6249 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6250 .unlock = spi_disable_blockprotect,
6251 .write = spi_chip_write_256,
6252 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6253 .voltage = {2700, 3600},
6254 },
6255
6256 {
6257 .vendor = "Macronix",
6258 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006259 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006260 .manufacture_id = MACRONIX_ID,
6261 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006262 .total_size = 16384,
6263 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006264 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006266 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006267 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006268 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006269 .block_erasers =
6270 {
6271 {
6272 .eraseblocks = { {4 * 1024, 4096} },
6273 .block_erase = spi_block_erase_20,
6274 }, {
6275 .eraseblocks = { {64 * 1024, 256} },
6276 .block_erase = spi_block_erase_d8,
6277 }, {
6278 .eraseblocks = { {16 * 1024 * 1024, 1} },
6279 .block_erase = spi_block_erase_60,
6280 }, {
6281 .eraseblocks = { {16 * 1024 * 1024, 1} },
6282 .block_erase = spi_block_erase_c7,
6283 }
6284 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006285 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006286 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006287 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006288 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006289 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006290 },
6291
6292 {
6293 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006294 .name = "MX25U1635E",
6295 .bustype = BUS_SPI,
6296 .manufacture_id = MACRONIX_ID,
6297 .model_id = MACRONIX_MX25U1635E,
6298 .total_size = 2048,
6299 .page_size = 256,
6300 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6301 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6303 .tested = TEST_UNTESTED,
6304 .probe = probe_spi_rdid,
6305 .probe_timing = TIMING_ZERO,
6306 .block_erasers =
6307 {
6308 {
6309 .eraseblocks = { {4 * 1024, 512} },
6310 .block_erase = spi_block_erase_20,
6311 }, {
6312 .eraseblocks = { {32 * 1024, 64} },
6313 .block_erase = spi_block_erase_52,
6314 }, {
6315 .eraseblocks = { {64 * 1024, 32} },
6316 .block_erase = spi_block_erase_d8,
6317 }, {
6318 .eraseblocks = { {2 * 1024 * 1024, 1} },
6319 .block_erase = spi_block_erase_60,
6320 }, {
6321 .eraseblocks = { {2 * 1024 * 1024, 1} },
6322 .block_erase = spi_block_erase_c7,
6323 }
6324 },
6325 /* TODO: security register */
6326 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6327 .unlock = spi_disable_blockprotect,
6328 .write = spi_chip_write_256,
6329 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6330 .voltage = {1650, 2000},
6331 },
6332
6333 {
6334 .vendor = "Macronix",
6335 .name = "MX25U3235E/F",
6336 .bustype = BUS_SPI,
6337 .manufacture_id = MACRONIX_ID,
6338 .model_id = MACRONIX_MX25U3235E,
6339 .total_size = 4096,
6340 .page_size = 256,
6341 /* F model supports SFDP */
6342 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6343 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6344 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6345 .tested = TEST_OK_PREW,
6346 .probe = probe_spi_rdid,
6347 .probe_timing = TIMING_ZERO,
6348 .block_erasers =
6349 {
6350 {
6351 .eraseblocks = { {4 * 1024, 1024} },
6352 .block_erase = spi_block_erase_20,
6353 }, {
6354 .eraseblocks = { {32 * 1024, 128} },
6355 .block_erase = spi_block_erase_52,
6356 }, {
6357 .eraseblocks = { {64 * 1024, 64} },
6358 .block_erase = spi_block_erase_d8,
6359 }, {
6360 .eraseblocks = { {4 * 1024 * 1024, 1} },
6361 .block_erase = spi_block_erase_60,
6362 }, {
6363 .eraseblocks = { {4 * 1024 * 1024, 1} },
6364 .block_erase = spi_block_erase_c7,
6365 }
6366 },
6367 /* TODO: security register */
6368 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6369 .unlock = spi_disable_blockprotect,
6370 .write = spi_chip_write_256,
6371 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6372 .voltage = {1650, 2000},
6373 },
6374
6375 {
6376 .vendor = "Macronix",
6377 .name = "MX25U6435E/F",
6378 .bustype = BUS_SPI,
6379 .manufacture_id = MACRONIX_ID,
6380 .model_id = MACRONIX_MX25U6435E,
6381 .total_size = 8192,
6382 .page_size = 256,
6383 /* F model supports SFDP */
6384 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6385 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6387 .tested = TEST_UNTESTED,
6388 .probe = probe_spi_rdid,
6389 .probe_timing = TIMING_ZERO,
6390 .block_erasers =
6391 {
6392 {
6393 .eraseblocks = { {4 * 1024, 2048} },
6394 .block_erase = spi_block_erase_20,
6395 }, {
6396 .eraseblocks = { {32 * 1024, 256} },
6397 .block_erase = spi_block_erase_52,
6398 }, {
6399 .eraseblocks = { {64 * 1024, 128} },
6400 .block_erase = spi_block_erase_d8,
6401 }, {
6402 .eraseblocks = { {8 * 1024 * 1024, 1} },
6403 .block_erase = spi_block_erase_60,
6404 }, {
6405 .eraseblocks = { {8 * 1024 * 1024, 1} },
6406 .block_erase = spi_block_erase_c7,
6407 }
6408 },
6409 /* TODO: security register */
6410 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6411 .unlock = spi_disable_blockprotect,
6412 .write = spi_chip_write_256,
6413 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6414 .voltage = {1650, 2000},
6415 },
6416
6417 {
6418 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006419 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006420 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006421 .manufacture_id = MACRONIX_ID,
6422 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006423 .total_size = 128,
6424 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006425 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6426 .tested = TEST_UNTESTED,
6427 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006428 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006429 .block_erasers =
6430 {
6431 {
6432 .eraseblocks = {
6433 {8 * 1024, 1},
6434 {4 * 1024, 2},
6435 {8 * 1024, 2},
6436 {32 * 1024, 1},
6437 {64 * 1024, 1},
6438 },
Sean Nelson35727f72010-01-28 23:55:12 +00006439 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006440 }, {
6441 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006442 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006443 }
6444 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006445 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006447 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006448 },
6449
6450 {
6451 .vendor = "Macronix",
6452 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006453 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006454 .manufacture_id = MACRONIX_ID,
6455 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006456 .total_size = 128,
6457 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006458 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006459 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006460 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006461 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006462 .block_erasers =
6463 {
6464 {
6465 .eraseblocks = {
6466 {64 * 1024, 1},
6467 {32 * 1024, 1},
6468 {8 * 1024, 2},
6469 {4 * 1024, 2},
6470 {8 * 1024, 1},
6471 },
Sean Nelson35727f72010-01-28 23:55:12 +00006472 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006473 }, {
6474 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006475 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006476 }
6477 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006478 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006480 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006481 },
6482
6483 {
6484 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006485 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006486 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006487 .manufacture_id = MACRONIX_ID,
6488 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 .total_size = 256,
6490 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006491 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006492 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006493 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006494 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006495 .block_erasers =
6496 {
6497 {
6498 .eraseblocks = {
6499 {16 * 1024, 1},
6500 {8 * 1024, 2},
6501 {32 * 1024, 1},
6502 {64 * 1024, 3},
6503 },
Sean Nelson35727f72010-01-28 23:55:12 +00006504 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006505 }, {
6506 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006507 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006508 },
6509 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006512 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006513 },
6514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006515 {
6516 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006517 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006518 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006519 .manufacture_id = MACRONIX_ID,
6520 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006521 .total_size = 256,
6522 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006523 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006524 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006525 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006526 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006527 .block_erasers =
6528 {
6529 {
6530 .eraseblocks = {
6531 {64 * 1024, 3},
6532 {32 * 1024, 1},
6533 {8 * 1024, 2},
6534 {16 * 1024, 1},
6535 },
Sean Nelson35727f72010-01-28 23:55:12 +00006536 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006537 }, {
6538 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006539 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006540 },
6541 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006542 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006544 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006545 },
6546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006547 {
6548 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006549 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006550 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006551 .manufacture_id = MACRONIX_ID,
6552 .model_id = MACRONIX_MX29F040,
6553 .total_size = 512,
6554 .page_size = 64 * 1024,
6555 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6556 .tested = TEST_UNTESTED,
6557 .probe = probe_jedec,
6558 .probe_timing = TIMING_ZERO,
6559 .block_erasers =
6560 {
6561 {
6562 .eraseblocks = { {64 * 1024, 8} },
6563 .block_erase = erase_sector_jedec,
6564 }, {
6565 .eraseblocks = { {512 * 1024, 1} },
6566 .block_erase = erase_chip_block_jedec,
6567 },
6568 },
6569 .write = write_jedec_1,
6570 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006571 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006572 },
6573
6574 {
6575 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006576 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006577 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006578 .manufacture_id = MACRONIX_ID,
6579 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006580 .total_size = 512,
6581 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006582 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6583 .tested = TEST_UNTESTED,
6584 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006585 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006586 .block_erasers =
6587 {
6588 {
6589 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006590 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006591 }, {
6592 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006593 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006594 },
6595 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006596 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006598 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006599 },
6600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006601 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006602 .vendor = "MoselVitelic",
6603 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006604 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006605 .manufacture_id = SYNCMOS_MVC_ID,
6606 .model_id = MVC_V29C51000B,
6607 .total_size = 64,
6608 .page_size = 512,
6609 .feature_bits = FEATURE_EITHER_RESET,
6610 .tested = TEST_UNTESTED,
6611 .probe = probe_jedec,
6612 .probe_timing = TIMING_ZERO,
6613 .block_erasers =
6614 {
6615 {
6616 .eraseblocks = { {512, 128} },
6617 .block_erase = erase_sector_jedec,
6618 }, {
6619 .eraseblocks = { {64 * 1024, 1} },
6620 .block_erase = erase_chip_block_jedec,
6621 },
6622 },
6623 .write = write_jedec_1,
6624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006625 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006626 },
6627
6628 {
6629 .vendor = "MoselVitelic",
6630 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006631 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006632 .manufacture_id = SYNCMOS_MVC_ID,
6633 .model_id = MVC_V29C51000T,
6634 .total_size = 64,
6635 .page_size = 512,
6636 .feature_bits = FEATURE_EITHER_RESET,
6637 .tested = TEST_UNTESTED,
6638 .probe = probe_jedec,
6639 .probe_timing = TIMING_ZERO,
6640 .block_erasers =
6641 {
6642 {
6643 .eraseblocks = { {512, 128} },
6644 .block_erase = erase_sector_jedec,
6645 }, {
6646 .eraseblocks = { {64 * 1024, 1} },
6647 .block_erase = erase_chip_block_jedec,
6648 },
6649 },
6650 .write = write_jedec_1,
6651 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006652 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006653 },
6654
6655 {
6656 .vendor = "MoselVitelic",
6657 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006658 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006659 .manufacture_id = SYNCMOS_MVC_ID,
6660 .model_id = MVC_V29C51400B,
6661 .total_size = 512,
6662 .page_size = 1024,
6663 .feature_bits = FEATURE_EITHER_RESET,
6664 .tested = TEST_UNTESTED,
6665 .probe = probe_jedec,
6666 .probe_timing = TIMING_ZERO,
6667 .block_erasers =
6668 {
6669 {
6670 .eraseblocks = { {1024, 512} },
6671 .block_erase = erase_sector_jedec,
6672 }, {
6673 .eraseblocks = { {512 * 1024, 1} },
6674 .block_erase = erase_chip_block_jedec,
6675 },
6676 },
6677 .write = write_jedec_1,
6678 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006679 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006680 },
6681
6682 {
6683 .vendor = "MoselVitelic",
6684 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006685 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006686 .manufacture_id = SYNCMOS_MVC_ID,
6687 .model_id = MVC_V29C51400T,
6688 .total_size = 512,
6689 .page_size = 1024,
6690 .feature_bits = FEATURE_EITHER_RESET,
6691 .tested = TEST_UNTESTED,
6692 .probe = probe_jedec,
6693 .probe_timing = TIMING_ZERO,
6694 .block_erasers =
6695 {
6696 {
6697 .eraseblocks = { {1024, 512} },
6698 .block_erase = erase_sector_jedec,
6699 }, {
6700 .eraseblocks = { {512 * 1024, 1} },
6701 .block_erase = erase_chip_block_jedec,
6702 },
6703 },
6704 .write = write_jedec_1,
6705 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006706 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006707 },
6708
6709 {
6710 .vendor = "MoselVitelic",
6711 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006712 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006713 .manufacture_id = SYNCMOS_MVC_ID,
6714 .model_id = MVC_V29LC51000,
6715 .total_size = 64,
6716 .page_size = 512,
6717 .feature_bits = FEATURE_EITHER_RESET,
6718 .tested = TEST_UNTESTED,
6719 .probe = probe_jedec,
6720 .probe_timing = TIMING_ZERO,
6721 .block_erasers =
6722 {
6723 {
6724 .eraseblocks = { {512, 128} },
6725 .block_erase = erase_sector_jedec,
6726 }, {
6727 .eraseblocks = { {64 * 1024, 1} },
6728 .block_erase = erase_chip_block_jedec,
6729 },
6730 },
6731 .write = write_jedec_1,
6732 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006733 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006734 },
6735
6736 {
6737 .vendor = "MoselVitelic",
6738 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006739 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006740 .manufacture_id = SYNCMOS_MVC_ID,
6741 .model_id = MVC_V29LC51001,
6742 .total_size = 128,
6743 .page_size = 512,
6744 .feature_bits = FEATURE_EITHER_RESET,
6745 .tested = TEST_UNTESTED,
6746 .probe = probe_jedec,
6747 .probe_timing = TIMING_ZERO,
6748 .block_erasers =
6749 {
6750 {
6751 .eraseblocks = { {512, 256} },
6752 .block_erase = erase_sector_jedec,
6753 }, {
6754 .eraseblocks = { {128 * 1024, 1} },
6755 .block_erase = erase_chip_block_jedec,
6756 },
6757 },
6758 .write = write_jedec_1,
6759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006760 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006761 },
6762
6763 {
6764 .vendor = "MoselVitelic",
6765 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006766 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006767 .manufacture_id = SYNCMOS_MVC_ID,
6768 .model_id = MVC_V29LC51002,
6769 .total_size = 256,
6770 .page_size = 512,
6771 .feature_bits = FEATURE_EITHER_RESET,
6772 .tested = TEST_UNTESTED,
6773 .probe = probe_jedec,
6774 .probe_timing = TIMING_ZERO,
6775 .block_erasers =
6776 {
6777 {
6778 .eraseblocks = { {512, 512} },
6779 .block_erase = erase_sector_jedec,
6780 }, {
6781 .eraseblocks = { {256 * 1024, 1} },
6782 .block_erase = erase_chip_block_jedec,
6783 },
6784 },
6785 .write = write_jedec_1,
6786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006787 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006788 },
6789
6790 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00006791 .vendor = "Nantronics",
6792 .name = "N25S10",
6793 .bustype = BUS_SPI,
6794 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6795 .model_id = NANTRONICS_N25S10,
6796 .total_size = 128,
6797 .page_size = 256,
6798 .feature_bits = FEATURE_WRSR_WREN,
6799 .tested = TEST_UNTESTED,
6800 .probe = probe_spi_rdid,
6801 .probe_timing = TIMING_ZERO,
6802 .block_erasers =
6803 {
6804 {
6805 .eraseblocks = { {4 * 1024, 32} },
6806 .block_erase = spi_block_erase_20,
6807 }, {
6808 .eraseblocks = { {4 * 1024, 32} },
6809 .block_erase = spi_block_erase_d7,
6810 }, {
6811 .eraseblocks = { {32 * 1024, 4} },
6812 .block_erase = spi_block_erase_52,
6813 }, {
6814 .eraseblocks = { {64 * 1024, 2} },
6815 .block_erase = spi_block_erase_d8,
6816 }, {
6817 .eraseblocks = { {128 * 1024, 1} },
6818 .block_erase = spi_block_erase_60,
6819 }, {
6820 .eraseblocks = { {128 * 1024, 1} },
6821 .block_erase = spi_block_erase_c7,
6822 }
6823 },
6824 .printlock = spi_prettyprint_status_register_default_bp3,
6825 .unlock = spi_disable_blockprotect_bp3_srwd,
6826 .write = spi_chip_write_256,
6827 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6828 .voltage = {2700, 3600},
6829 },
6830
6831 {
6832 .vendor = "Nantronics",
6833 .name = "N25S20",
6834 .bustype = BUS_SPI,
6835 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6836 .model_id = NANTRONICS_N25S20,
6837 .total_size = 256,
6838 .page_size = 256,
6839 .feature_bits = FEATURE_WRSR_WREN,
6840 .tested = TEST_UNTESTED,
6841 .probe = probe_spi_rdid,
6842 .probe_timing = TIMING_ZERO,
6843 .block_erasers =
6844 {
6845 {
6846 .eraseblocks = { {4 * 1024, 64} },
6847 .block_erase = spi_block_erase_20,
6848 }, {
6849 .eraseblocks = { {4 * 1024, 64} },
6850 .block_erase = spi_block_erase_d7,
6851 }, {
6852 .eraseblocks = { {32 * 1024, 8} },
6853 .block_erase = spi_block_erase_52,
6854 }, {
6855 .eraseblocks = { {64 * 1024, 4} },
6856 .block_erase = spi_block_erase_d8,
6857 }, {
6858 .eraseblocks = { {256 * 1024, 1} },
6859 .block_erase = spi_block_erase_60,
6860 }, {
6861 .eraseblocks = { {256 * 1024, 1} },
6862 .block_erase = spi_block_erase_c7,
6863 }
6864 },
6865 .printlock = spi_prettyprint_status_register_default_bp3,
6866 .unlock = spi_disable_blockprotect_bp3_srwd,
6867 .write = spi_chip_write_256,
6868 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6869 .voltage = {2700, 3600},
6870 },
6871
6872 {
6873 .vendor = "Nantronics",
6874 .name = "N25S40",
6875 .bustype = BUS_SPI,
6876 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6877 .model_id = NANTRONICS_N25S40,
6878 .total_size = 512,
6879 .page_size = 256,
6880 .feature_bits = FEATURE_WRSR_WREN,
6881 .tested = TEST_UNTESTED,
6882 .probe = probe_spi_rdid,
6883 .probe_timing = TIMING_ZERO,
6884 .block_erasers =
6885 {
6886 {
6887 .eraseblocks = { {4 * 1024, 128} },
6888 .block_erase = spi_block_erase_20,
6889 }, {
6890 .eraseblocks = { {4 * 1024, 128} },
6891 .block_erase = spi_block_erase_d7,
6892 }, {
6893 .eraseblocks = { {32 * 1024, 16} },
6894 .block_erase = spi_block_erase_52,
6895 }, {
6896 .eraseblocks = { {64 * 1024, 8} },
6897 .block_erase = spi_block_erase_d8,
6898 }, {
6899 .eraseblocks = { {512 * 1024, 1} },
6900 .block_erase = spi_block_erase_60,
6901 }, {
6902 .eraseblocks = { {512 * 1024, 1} },
6903 .block_erase = spi_block_erase_c7,
6904 }
6905 },
6906 .printlock = spi_prettyprint_status_register_default_bp3,
6907 .unlock = spi_disable_blockprotect_bp3_srwd,
6908 .write = spi_chip_write_256,
6909 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6910 .voltage = {2700, 3600},
6911 },
6912
6913 {
6914 .vendor = "Nantronics",
6915 .name = "N25S80",
6916 .bustype = BUS_SPI,
6917 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6918 .model_id = NANTRONICS_N25S80,
6919 .total_size = 1024,
6920 .page_size = 256,
6921 .feature_bits = FEATURE_WRSR_WREN,
6922 .tested = TEST_UNTESTED,
6923 .probe = probe_spi_rdid,
6924 .probe_timing = TIMING_ZERO,
6925 .block_erasers =
6926 {
6927 {
6928 .eraseblocks = { {4 * 1024, 256} },
6929 .block_erase = spi_block_erase_20,
6930 }, {
6931 .eraseblocks = { {32 * 1024, 32} },
6932 .block_erase = spi_block_erase_52,
6933 }, {
6934 .eraseblocks = { {64 * 1024, 16} },
6935 .block_erase = spi_block_erase_d8,
6936 }, {
6937 .eraseblocks = { {1024 * 1024, 1} },
6938 .block_erase = spi_block_erase_60,
6939 }, {
6940 .eraseblocks = { {1024 * 1024, 1} },
6941 .block_erase = spi_block_erase_c7,
6942 }
6943 },
6944 .printlock = spi_prettyprint_status_register_default_bp3,
6945 .unlock = spi_disable_blockprotect_bp3_srwd,
6946 .write = spi_chip_write_256,
6947 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6948 .voltage = {2700, 3600},
6949 },
6950
6951 {
6952 .vendor = "Nantronics",
6953 .name = "N25S16",
6954 .bustype = BUS_SPI,
6955 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6956 .model_id = NANTRONICS_N25S16,
6957 .total_size = 2048,
6958 .page_size = 256,
6959 .feature_bits = FEATURE_WRSR_WREN,
6960 .tested = TEST_UNTESTED,
6961 .probe = probe_spi_rdid,
6962 .probe_timing = TIMING_ZERO,
6963 .block_erasers =
6964 {
6965 {
6966 .eraseblocks = { {4 * 1024, 512} },
6967 .block_erase = spi_block_erase_20,
6968 }, {
6969 .eraseblocks = { {64 * 1024, 32} },
6970 .block_erase = spi_block_erase_d8,
6971 }, {
6972 .eraseblocks = { {2048 * 1024, 1} },
6973 .block_erase = spi_block_erase_60,
6974 }, {
6975 .eraseblocks = { {2048 * 1024, 1} },
6976 .block_erase = spi_block_erase_c7,
6977 }
6978 },
6979 .printlock = spi_prettyprint_status_register_default_bp3,
6980 .unlock = spi_disable_blockprotect_bp3_srwd,
6981 .write = spi_chip_write_256,
6982 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6983 .voltage = {2700, 3600},
6984 },
6985
6986 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006987 .vendor = "Numonyx",
6988 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006989 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006990 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006991 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006992 .total_size = 128,
6993 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006994 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006995 .tested = TEST_UNTESTED,
6996 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006997 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006998 .block_erasers =
6999 {
7000 {
7001 .eraseblocks = { {4 * 1024, 32} },
7002 .block_erase = spi_block_erase_20,
7003 }, {
7004 .eraseblocks = { {64 * 1024, 2} },
7005 .block_erase = spi_block_erase_d8,
7006 }, {
7007 .eraseblocks = { {128 * 1024, 1} },
7008 .block_erase = spi_block_erase_c7,
7009 }
7010 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007011 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007012 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007013 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007014 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007015 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007016 },
7017
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007018 {
7019 .vendor = "Numonyx",
7020 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007022 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007023 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007024 .total_size = 256,
7025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007026 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007027 .tested = TEST_UNTESTED,
7028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007029 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007030 .block_erasers =
7031 {
7032 {
7033 .eraseblocks = { {4 * 1024, 64} },
7034 .block_erase = spi_block_erase_20,
7035 }, {
7036 .eraseblocks = { {64 * 1024, 4} },
7037 .block_erase = spi_block_erase_d8,
7038 }, {
7039 .eraseblocks = { {256 * 1024, 1} },
7040 .block_erase = spi_block_erase_c7,
7041 }
7042 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007043 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007044 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007045 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007046 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007047 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007048 },
7049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007050 {
7051 .vendor = "Numonyx",
7052 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007053 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007054 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007055 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00007056 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007057 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007058 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007059 .tested = TEST_UNTESTED,
7060 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007061 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007062 .block_erasers =
7063 {
7064 {
7065 .eraseblocks = { {4 * 1024, 128} },
7066 .block_erase = spi_block_erase_20,
7067 }, {
7068 .eraseblocks = { {64 * 1024, 8} },
7069 .block_erase = spi_block_erase_d8,
7070 }, {
7071 .eraseblocks = { {512 * 1024, 1} },
7072 .block_erase = spi_block_erase_c7,
7073 }
7074 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007075 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007076 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007077 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007079 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007080 },
7081
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007082 {
7083 .vendor = "Numonyx",
7084 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007085 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007086 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007087 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007088 .total_size = 1024,
7089 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007090 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007091 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007093 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007094 .block_erasers =
7095 {
7096 {
7097 .eraseblocks = { {4 * 1024, 256} },
7098 .block_erase = spi_block_erase_20,
7099 }, {
7100 .eraseblocks = { {64 * 1024, 16} },
7101 .block_erase = spi_block_erase_d8,
7102 }, {
7103 .eraseblocks = { {1024 * 1024, 1} },
7104 .block_erase = spi_block_erase_c7,
7105 }
7106 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007107 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007108 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007109 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007110 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007111 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007112 },
7113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 {
7115 .vendor = "Numonyx",
7116 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007117 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007118 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007119 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007120 .total_size = 2048,
7121 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007122 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007123 .tested = TEST_UNTESTED,
7124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007125 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007126 .block_erasers =
7127 {
7128 {
7129 .eraseblocks = { {4 * 1024, 512} },
7130 .block_erase = spi_block_erase_20,
7131 }, {
7132 .eraseblocks = { {64 * 1024, 32} },
7133 .block_erase = spi_block_erase_d8,
7134 }, {
7135 .eraseblocks = { {2 * 1024 * 1024, 1} },
7136 .block_erase = spi_block_erase_c7,
7137 }
7138 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007139 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007140 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007141 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007142 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007143 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007144 },
7145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007146 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007147 .vendor = "Numonyx",
Nikolay Nikolaev01dac172013-06-28 21:29:03 +00007148 .name = "M45PE10",
7149 .bustype = BUS_SPI,
7150 .manufacture_id = ST_ID,
7151 .model_id = ST_M45PE10,
7152 .total_size = 128,
7153 .page_size = 256,
7154 .tested = TEST_UNTESTED,
7155 .probe = probe_spi_rdid,
7156 .probe_timing = TIMING_ZERO,
7157 .block_erasers = {
7158 {
7159 .eraseblocks = { {256, 512} },
7160 .block_erase = spi_block_erase_db,
7161 }, {
7162 .eraseblocks = { {64 * 1024, 2} },
7163 .block_erase = spi_block_erase_d8,
7164 }
7165 },
7166 .printlock = spi_prettyprint_status_register_default_welwip,
7167 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7168 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7169 .read = spi_chip_read, /* Fast read (0x0B) supported */
7170 .voltage = {2700, 3600},
7171 },
7172
7173 {
7174 .vendor = "Numonyx",
7175 .name = "M45PE20",
7176 .bustype = BUS_SPI,
7177 .manufacture_id = ST_ID,
7178 .model_id = ST_M45PE20,
7179 .total_size = 256,
7180 .page_size = 256,
7181 .tested = TEST_UNTESTED,
7182 .probe = probe_spi_rdid,
7183 .probe_timing = TIMING_ZERO,
7184 .block_erasers = {
7185 {
7186 .eraseblocks = { {256, 1024} },
7187 .block_erase = spi_block_erase_db,
7188 }, {
7189 .eraseblocks = { {64 * 1024, 4} },
7190 .block_erase = spi_block_erase_d8,
7191 }
7192 },
7193 .printlock = spi_prettyprint_status_register_default_welwip,
7194 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7195 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7196 .read = spi_chip_read, /* Fast read (0x0B) supported */
7197 .voltage = {2700, 3600},
7198 },
7199
7200 {
7201 .vendor = "Numonyx",
7202 .name = "M45PE40",
7203 .bustype = BUS_SPI,
7204 .manufacture_id = ST_ID,
7205 .model_id = ST_M45PE40,
7206 .total_size = 512,
7207 .page_size = 256,
7208 .tested = TEST_UNTESTED,
7209 .probe = probe_spi_rdid,
7210 .probe_timing = TIMING_ZERO,
7211 .block_erasers = {
7212 {
7213 .eraseblocks = { {256, 2048} },
7214 .block_erase = spi_block_erase_db,
7215 }, {
7216 .eraseblocks = { {64 * 1024, 8} },
7217 .block_erase = spi_block_erase_d8,
7218 }
7219 },
7220 .printlock = spi_prettyprint_status_register_default_welwip,
7221 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7222 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7223 .read = spi_chip_read, /* Fast read (0x0B) supported */
7224 .voltage = {2700, 3600},
7225 },
7226
7227 {
7228 .vendor = "Numonyx",
7229 .name = "M45PE80",
7230 .bustype = BUS_SPI,
7231 .manufacture_id = ST_ID,
7232 .model_id = ST_M45PE80,
7233 .total_size = 1024,
7234 .page_size = 256,
7235 .tested = TEST_UNTESTED,
7236 .probe = probe_spi_rdid,
7237 .probe_timing = TIMING_ZERO,
7238 .block_erasers = {
7239 {
7240 .eraseblocks = { {256, 4096} },
7241 .block_erase = spi_block_erase_db,
7242 }, {
7243 .eraseblocks = { {64 * 1024, 16} },
7244 .block_erase = spi_block_erase_d8,
7245 }
7246 },
7247 .printlock = spi_prettyprint_status_register_default_welwip,
7248 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7249 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7250 .read = spi_chip_read, /* Fast read (0x0B) supported */
7251 .voltage = {2700, 3600},
7252 },
7253
7254 {
7255 .vendor = "Numonyx",
7256 .name = "M45PE16",
7257 .bustype = BUS_SPI,
7258 .manufacture_id = ST_ID,
7259 .model_id = ST_M45PE16,
7260 .total_size = 2048,
7261 .page_size = 256,
7262 .tested = TEST_UNTESTED,
7263 .probe = probe_spi_rdid,
7264 .probe_timing = TIMING_ZERO,
7265 .block_erasers = {
7266 {
7267 .eraseblocks = { {256, 8192} },
7268 .block_erase = spi_block_erase_db,
7269 }, {
7270 .eraseblocks = { {64 * 1024, 32} },
7271 .block_erase = spi_block_erase_d8,
7272 }
7273 },
7274 .printlock = spi_prettyprint_status_register_default_welwip,
7275 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7276 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7277 .read = spi_chip_read, /* Fast read (0x0B) supported */
7278 .voltage = {2700, 3600},
7279 },
7280
7281 {
7282 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00007283 .name = "N25Q016",
7284 .bustype = BUS_SPI,
7285 .manufacture_id = ST_ID,
7286 .model_id = ST_N25Q016__1E,
7287 .total_size = 2048,
7288 .page_size = 256,
7289 /* supports SFDP */
7290 /* OTP: 64B total; read 0x4B, write 0x42 */
7291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7292 .tested = TEST_UNTESTED,
7293 .probe = probe_spi_rdid,
7294 .probe_timing = TIMING_ZERO,
7295 .block_erasers =
7296 {
7297 {
7298 .eraseblocks = { {4 * 1024, 512} },
7299 .block_erase = spi_block_erase_20,
7300 }, {
7301 .eraseblocks = { {32 * 1024, 64} },
7302 .block_erase = spi_block_erase_52,
7303 }, {
7304 .eraseblocks = { {64 * 1024, 32} },
7305 .block_erase = spi_block_erase_d8,
7306 }, {
7307 .eraseblocks = { {2 * 1024 * 1024, 1} },
7308 .block_erase = spi_block_erase_c7,
7309 }
7310 },
Nikolay Nikolaev6f59b0b2013-06-28 21:29:51 +00007311 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7312 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7313 .write = spi_chip_write_256, /* Multi I/O supported */
Stefan Taunerd956f822012-10-26 16:49:15 +00007314 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7315 .voltage = {1700, 2000},
7316 },
7317
7318 {
7319 .vendor = "Numonyx",
7320 .name = "N25Q032..1E",
7321 .bustype = BUS_SPI,
7322 .manufacture_id = ST_ID,
7323 .model_id = ST_N25Q032__1E,
7324 .total_size = 4096,
7325 .page_size = 256,
7326 /* supports SFDP */
7327 /* OTP: 64B total; read 0x4B, write 0x42 */
7328 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7329 .tested = TEST_UNTESTED,
7330 .probe = probe_spi_rdid,
7331 .probe_timing = TIMING_ZERO,
7332 .block_erasers =
7333 {
7334 {
7335 .eraseblocks = { {4 * 1024, 1024} },
7336 .block_erase = spi_block_erase_20,
7337 }, {
7338 .eraseblocks = { {64 * 1024, 64} },
7339 .block_erase = spi_block_erase_d8,
7340 }, {
7341 .eraseblocks = { {4 * 1024 * 1024, 1} },
7342 .block_erase = spi_block_erase_c7,
7343 }
7344 },
Nikolay Nikolaev6f59b0b2013-06-28 21:29:51 +00007345 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7346 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7347 .write = spi_chip_write_256, /* Multi I/O supported */
Stefan Taunerd956f822012-10-26 16:49:15 +00007348 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7349 .voltage = {1700, 2000},
7350 },
7351
7352 {
7353 .vendor = "Numonyx",
7354 .name = "N25Q032..3E",
7355 .bustype = BUS_SPI,
7356 .manufacture_id = ST_ID,
7357 .model_id = ST_N25Q032__3E,
7358 .total_size = 4096,
7359 .page_size = 256,
7360 /* supports SFDP */
7361 /* OTP: 64B total; read 0x4B, write 0x42 */
7362 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7363 .tested = TEST_UNTESTED,
7364 .probe = probe_spi_rdid,
7365 .probe_timing = TIMING_ZERO,
7366 .block_erasers =
7367 {
7368 {
7369 .eraseblocks = { {4 * 1024, 1024} },
7370 .block_erase = spi_block_erase_20,
7371 }, {
7372 .eraseblocks = { {64 * 1024, 64} },
7373 .block_erase = spi_block_erase_d8,
7374 }, {
7375 .eraseblocks = { {4 * 1024 * 1024, 1} },
7376 .block_erase = spi_block_erase_c7,
7377 }
7378 },
Nikolay Nikolaev6f59b0b2013-06-28 21:29:51 +00007379 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7380 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7381 .write = spi_chip_write_256, /* Multi I/O supported */
Stefan Taunerd956f822012-10-26 16:49:15 +00007382 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7383 .voltage = {2700, 3600},
7384 },
7385
7386 {
7387 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00007388 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007389 .bustype = BUS_SPI,
7390 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00007391 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007392 .total_size = 8192,
7393 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00007394 /* supports SFDP */
7395 /* OTP: 64B total; read 0x4B, write 0x42 */
7396 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7397 .tested = TEST_UNTESTED,
7398 .probe = probe_spi_rdid,
7399 .probe_timing = TIMING_ZERO,
7400 .block_erasers =
7401 {
7402 {
7403 .eraseblocks = { {4 * 1024, 2048 } },
7404 .block_erase = spi_block_erase_20,
7405 }, {
7406 .eraseblocks = { {64 * 1024, 128} },
7407 .block_erase = spi_block_erase_d8,
7408 }, {
7409 .eraseblocks = { {8 * 1024 * 1024, 1} },
7410 .block_erase = spi_block_erase_c7,
7411 }
7412 },
Nikolay Nikolaev6f59b0b2013-06-28 21:29:51 +00007413 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7414 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7415 .write = spi_chip_write_256, /* Multi I/O supported */
Stefan Taunerd956f822012-10-26 16:49:15 +00007416 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007417 .voltage = {1700, 2000},
7418 },
7419
7420 {
7421 .vendor = "Numonyx",
7422 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7423 .bustype = BUS_SPI,
7424 .manufacture_id = ST_ID,
7425 .model_id = ST_N25Q064__3E,
7426 .total_size = 8192,
7427 .page_size = 256,
7428 /* supports SFDP */
7429 /* OTP: 64B total; read 0x4B, write 0x42 */
7430 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007431 .tested = TEST_OK_PREW,
7432 .probe = probe_spi_rdid,
7433 .probe_timing = TIMING_ZERO,
7434 .block_erasers =
7435 {
7436 {
7437 .eraseblocks = { {4 * 1024, 2048 } },
7438 .block_erase = spi_block_erase_20,
7439 }, {
7440 .eraseblocks = { {64 * 1024, 128} },
7441 .block_erase = spi_block_erase_d8,
7442 }, {
7443 .eraseblocks = { {8 * 1024 * 1024, 1} },
7444 .block_erase = spi_block_erase_c7,
7445 }
7446 },
Nikolay Nikolaev6f59b0b2013-06-28 21:29:51 +00007447 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7448 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7449 .write = spi_chip_write_256, /* Multi I/O supported */
7450 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7451 .voltage = {2700, 3600},
7452 },
7453
7454 {
7455 .vendor = "Numonyx",
7456 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7457 .bustype = BUS_SPI,
7458 .manufacture_id = ST_ID,
7459 .model_id = ST_N25Q128__1E,
7460 .total_size = 16384,
7461 .page_size = 256,
7462 /* supports SFDP */
7463 /* OTP: 64B total; read 0x4B, write 0x42 */
7464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7465 .tested = TEST_UNTESTED,
7466 .probe = probe_spi_rdid,
7467 .probe_timing = TIMING_ZERO,
7468 .block_erasers = {
7469 {
7470 .eraseblocks = { {4 * 1024, 4096 } },
7471 .block_erase = spi_block_erase_20,
7472 }, {
7473 .eraseblocks = { {64 * 1024, 256} },
7474 .block_erase = spi_block_erase_d8,
7475 }, {
7476 .eraseblocks = { {16384 * 1024, 1} },
7477 .block_erase = spi_block_erase_c7,
7478 }
7479 },
7480 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7481 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7482 .write = spi_chip_write_256, /* Multi I/O supported */
7483 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7484 .voltage = {1700, 2000},
7485 },
7486
7487 {
7488 .vendor = "Numonyx",
7489 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7490 .bustype = BUS_SPI,
7491 .manufacture_id = ST_ID,
7492 .model_id = ST_N25Q128__3E,
7493 .total_size = 16384,
7494 .page_size = 256,
7495 /* supports SFDP */
7496 /* OTP: 64B total; read 0x4B, write 0x42 */
7497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7498 .tested = TEST_UNTESTED,
7499 .probe = probe_spi_rdid,
7500 .probe_timing = TIMING_ZERO,
7501 .block_erasers = {
7502 {
7503 .eraseblocks = { {4 * 1024, 4096 } },
7504 .block_erase = spi_block_erase_20,
7505 }, {
7506 .eraseblocks = { {64 * 1024, 256} },
7507 .block_erase = spi_block_erase_d8,
7508 }, {
7509 .eraseblocks = { {16384 * 1024, 1} },
7510 .block_erase = spi_block_erase_c7,
7511 }
7512 },
7513 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7514 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7515 .write = spi_chip_write_256, /* Multi I/O supported */
7516 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7517 .voltage = {2700, 3600},
7518 },
7519
7520 {
7521 .vendor = "Numonyx",
7522 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7523 .bustype = BUS_SPI,
7524 .manufacture_id = ST_ID,
7525 .model_id = ST_N25Q256__1E,
7526 .total_size = 32768,
7527 .page_size = 256,
7528 /* supports SFDP */
7529 /* OTP: 64B total; read 0x4B, write 0x42 */
7530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7531 .tested = TEST_BAD_REW,
7532 .probe = probe_spi_rdid,
7533 .probe_timing = TIMING_ZERO,
7534 .block_erasers = {
7535 {
7536 .eraseblocks = { {4 * 1024, 8192 } },
7537 .block_erase = spi_block_erase_20,
7538 }, {
7539 .eraseblocks = { {64 * 1024, 512} },
7540 .block_erase = spi_block_erase_d8,
7541 }, {
7542 .eraseblocks = { {32768 * 1024, 1} },
7543 .block_erase = spi_block_erase_c7,
7544 }
7545 },
7546 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7547 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7548 .write = spi_chip_write_256, /* Multi I/O supported */
7549 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7550 .voltage = {1700, 2000},
7551 },
7552
7553 {
7554 .vendor = "Numonyx",
7555 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7556 .bustype = BUS_SPI,
7557 .manufacture_id = ST_ID,
7558 .model_id = ST_N25Q256__3E,
7559 .total_size = 32768,
7560 .page_size = 256,
7561 /* supports SFDP */
7562 /* OTP: 64B total; read 0x4B, write 0x42 */
7563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7564 .tested = TEST_BAD_REW,
7565 .probe = probe_spi_rdid,
7566 .probe_timing = TIMING_ZERO,
7567 .block_erasers = {
7568 {
7569 .eraseblocks = { {4 * 1024, 8192 } },
7570 .block_erase = spi_block_erase_20,
7571 }, {
7572 .eraseblocks = { {64 * 1024, 512} },
7573 .block_erase = spi_block_erase_d8,
7574 }, {
7575 .eraseblocks = { {32768 * 1024, 1} },
7576 .block_erase = spi_block_erase_c7,
7577 }
7578 },
7579 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7580 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7581 .write = spi_chip_write_256, /* Multi I/O supported */
7582 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7583 .voltage = {2700, 3600},
7584 },
7585
7586 {
7587 .vendor = "Numonyx",
7588 .name = "N25Q512..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7589 .bustype = BUS_SPI,
7590 .manufacture_id = ST_ID,
7591 .model_id = ST_N25Q512__1E,
7592 .total_size = 65536,
7593 .page_size = 256,
7594 /* supports SFDP */
7595 /* OTP: 64B total; read 0x4B, write 0x42 */
7596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7597 .tested = TEST_BAD_REW,
7598 .probe = probe_spi_rdid,
7599 .probe_timing = TIMING_ZERO,
7600 .block_erasers = {
7601 {
7602 .eraseblocks = { {4 * 1024, 16384 } },
7603 .block_erase = spi_block_erase_20,
7604 }, {
7605 .eraseblocks = { {64 * 1024, 1024 } },
7606 .block_erase = spi_block_erase_d8,
7607 }, {
7608 .eraseblocks = { {32 * 1024 * 1024, 2 } },
7609 .block_erase = spi_block_erase_c4,
7610 }, { /* Some models have a bulk erase command too. */
7611 .eraseblocks = { {64 * 1024 * 1024, 1 } },
7612 .block_erase = spi_block_erase_c7,
7613 }
7614 },
7615 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7616 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7617 .write = spi_chip_write_256, /* Multi I/O supported */
7618 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7619 .voltage = {1700, 2000},
7620 },
7621
7622 {
7623 .vendor = "Numonyx",
7624 .name = "N25Q512..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7625 .bustype = BUS_SPI,
7626 .manufacture_id = ST_ID,
7627 .model_id = ST_N25Q512__3E,
7628 .total_size = 65536,
7629 .page_size = 256,
7630 /* supports SFDP */
7631 /* OTP: 64B total; read 0x4B, write 0x42 */
7632 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7633 .tested = TEST_BAD_REW,
7634 .probe = probe_spi_rdid,
7635 .probe_timing = TIMING_ZERO,
7636 .block_erasers = {
7637 {
7638 .eraseblocks = { {4 * 1024, 16384 } },
7639 .block_erase = spi_block_erase_20,
7640 }, {
7641 .eraseblocks = { {64 * 1024, 1024 } },
7642 .block_erase = spi_block_erase_d8,
7643 }, {
7644 .eraseblocks = { {32 * 1024 * 1024, 2 } },
7645 .block_erase = spi_block_erase_c4,
7646 }, { /* Some models have a bulk erase command too. */
7647 .eraseblocks = { {64 * 1024 * 1024, 1} },
7648 .block_erase = spi_block_erase_c7,
7649 }
7650 },
7651 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7652 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7653 .write = spi_chip_write_256, /* Multi I/O supported */
7654 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7655 .voltage = {2700, 3600},
7656 },
7657
7658 {
7659 .vendor = "Numonyx",
7660 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
7661 .bustype = BUS_SPI,
7662 .manufacture_id = ST_ID,
7663 .model_id = ST_N25Q00A__3E,
7664 .total_size = 131072,
7665 .page_size = 256,
7666 /* supports SFDP */
7667 /* OTP: 64B total; read 0x4B, write 0x42 */
7668 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7669 .tested = TEST_BAD_REW,
7670 .probe = probe_spi_rdid,
7671 .probe_timing = TIMING_ZERO,
7672 .block_erasers = {
7673 {
7674 .eraseblocks = { {4 * 1024, 32768 } },
7675 .block_erase = spi_block_erase_20,
7676 }, {
7677 .eraseblocks = { {64 * 1024, 2048 } },
7678 .block_erase = spi_block_erase_d8,
7679 }, {
7680 .eraseblocks = { {32 * 1024 * 1024, 4 } },
7681 .block_erase = spi_block_erase_c4,
7682 }
7683 },
7684 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7685 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7686 .write = spi_chip_write_256, /* Multi I/O supported */
Stefan Taunerd956f822012-10-26 16:49:15 +00007687 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007688 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007689 },
7690
7691 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007692 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00007693 .name = "Pm25LD256C",
7694 .bustype = BUS_SPI,
7695 .manufacture_id = PMC_ID,
7696 .model_id = PMC_PM25LD256C,
7697 .total_size = 32,
7698 .page_size = 256,
7699 .feature_bits = FEATURE_WRSR_WREN,
7700 .tested = TEST_UNTESTED,
7701 .probe = probe_spi_rdid,
7702 .probe_timing = TIMING_ZERO,
7703 .block_erasers =
7704 {
7705 {
7706 .eraseblocks = { {4 * 1024, 8} },
7707 .block_erase = spi_block_erase_20,
7708 }, {
7709 .eraseblocks = { {4 * 1024, 8} },
7710 .block_erase = spi_block_erase_d7,
7711 }, {
7712 .eraseblocks = { {32 * 1024, 1} },
7713 .block_erase = spi_block_erase_d8,
7714 }, {
7715 .eraseblocks = { {32 * 1024, 1} },
7716 .block_erase = spi_block_erase_60,
7717 }, {
7718 .eraseblocks = { {32 * 1024, 1} },
7719 .block_erase = spi_block_erase_c7,
7720 }
7721 },
7722 .printlock = spi_prettyprint_status_register_default_bp2,
7723 .unlock = spi_disable_blockprotect,
7724 .write = spi_chip_write_256,
7725 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7726 .voltage = {2700, 3600},
7727 },
7728 {
7729 .vendor = "PMC",
7730 .name = "Pm25LD512(C)",
7731 .bustype = BUS_SPI,
7732 .manufacture_id = PMC_ID,
7733 .model_id = PMC_PM25LD512,
7734 .total_size = 64,
7735 .page_size = 256,
7736 .feature_bits = FEATURE_WRSR_WREN,
7737 .tested = TEST_OK_PREW,
7738 .probe = probe_spi_rdid,
7739 .probe_timing = TIMING_ZERO,
7740 .block_erasers =
7741 {
7742 {
7743 .eraseblocks = { {4 * 1024, 16} },
7744 .block_erase = spi_block_erase_20,
7745 }, {
7746 .eraseblocks = { {4 * 1024, 16} },
7747 .block_erase = spi_block_erase_d7,
7748 }, {
7749 .eraseblocks = { {32 * 1024, 2} },
7750 .block_erase = spi_block_erase_d8,
7751 }, {
7752 .eraseblocks = { {64 * 1024, 1} },
7753 .block_erase = spi_block_erase_60,
7754 }, {
7755 .eraseblocks = { {64 * 1024, 1} },
7756 .block_erase = spi_block_erase_c7,
7757 }
7758 },
7759 .printlock = spi_prettyprint_status_register_default_bp2,
7760 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7761 .write = spi_chip_write_256,
7762 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7763 .voltage = {2300, 3600},
7764 },
7765
7766 {
7767 .vendor = "PMC",
7768 .name = "Pm25LD010(C)",
7769 .bustype = BUS_SPI,
7770 .manufacture_id = PMC_ID,
7771 .model_id = PMC_PM25LD010,
7772 .total_size = 128,
7773 .page_size = 256,
7774 .feature_bits = FEATURE_WRSR_WREN,
7775 .tested = TEST_UNTESTED,
7776 .probe = probe_spi_rdid,
7777 .probe_timing = TIMING_ZERO,
7778 .block_erasers =
7779 {
7780 {
7781 .eraseblocks = { {4 * 1024, 32} },
7782 .block_erase = spi_block_erase_20,
7783 }, {
7784 .eraseblocks = { {4 * 1024, 32} },
7785 .block_erase = spi_block_erase_d7,
7786 }, {
7787 .eraseblocks = { {32 * 1024, 4} },
7788 .block_erase = spi_block_erase_d8,
7789 }, {
7790 .eraseblocks = { {128 * 1024, 1} },
7791 .block_erase = spi_block_erase_60,
7792 }, {
7793 .eraseblocks = { {128 * 1024, 1} },
7794 .block_erase = spi_block_erase_c7,
7795 }
7796 },
7797 .printlock = spi_prettyprint_status_register_default_bp2,
7798 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7799 .write = spi_chip_write_256,
7800 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7801 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
7802 },
7803
7804 {
7805 .vendor = "PMC",
7806 .name = "Pm25LD020(C)",
7807 .bustype = BUS_SPI,
7808 .manufacture_id = PMC_ID,
7809 .model_id = PMC_PM25LD020,
7810 .total_size = 256,
7811 .page_size = 256,
7812 .feature_bits = FEATURE_WRSR_WREN,
7813 .tested = TEST_UNTESTED,
7814 .probe = probe_spi_rdid,
7815 .probe_timing = TIMING_ZERO,
7816 .block_erasers =
7817 {
7818 {
7819 .eraseblocks = { {4 * 1024, 64} },
7820 .block_erase = spi_block_erase_20,
7821 }, {
7822 .eraseblocks = { {4 * 1024, 64} },
7823 .block_erase = spi_block_erase_d7,
7824 }, {
7825 .eraseblocks = { {64 * 1024, 4} },
7826 .block_erase = spi_block_erase_d8,
7827 }, {
7828 .eraseblocks = { {256 * 1024, 1} },
7829 .block_erase = spi_block_erase_60,
7830 }, {
7831 .eraseblocks = { {256 * 1024, 1} },
7832 .block_erase = spi_block_erase_c7,
7833 }
7834 },
7835 .printlock = spi_prettyprint_status_register_default_bp2,
7836 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7837 .write = spi_chip_write_256,
7838 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7839 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
7840 },
7841
7842 {
7843 .vendor = "PMC",
7844 .name = "Pm25LD040(C)",
7845 .bustype = BUS_SPI,
7846 .manufacture_id = PMC_ID,
7847 .model_id = PMC_PM25LV040,
7848 .total_size = 512,
7849 .page_size = 256,
7850 .feature_bits = FEATURE_WRSR_WREN,
7851 .tested = TEST_UNTESTED,
7852 .probe = probe_spi_rdid,
7853 .probe_timing = TIMING_ZERO,
7854 .block_erasers =
7855 {
7856 {
7857 .eraseblocks = { {4 * 1024, 128} },
7858 .block_erase = spi_block_erase_20,
7859 }, {
7860 .eraseblocks = { {4 * 1024, 128} },
7861 .block_erase = spi_block_erase_d7,
7862 }, {
7863 .eraseblocks = { {64 * 1024, 8} },
7864 .block_erase = spi_block_erase_d8,
7865 }, {
7866 .eraseblocks = { {512 * 1024, 1} },
7867 .block_erase = spi_block_erase_60,
7868 }, {
7869 .eraseblocks = { {512 * 1024, 1} },
7870 .block_erase = spi_block_erase_c7,
7871 }
7872 },
7873 .printlock = spi_prettyprint_status_register_default_bp2,
7874 .unlock = spi_disable_blockprotect,
7875 .write = spi_chip_write_256,
7876 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7877 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
7878 },
7879
7880{
7881 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007882 .name = "Pm25LV512(A)",
7883 .bustype = BUS_SPI,
7884 .manufacture_id = PMC_ID,
7885 .model_id = PMC_PM25LV512,
7886 .total_size = 64,
7887 .page_size = 256,
7888 .feature_bits = FEATURE_WRSR_WREN,
7889 .tested = TEST_UNTESTED,
7890 .probe = probe_spi_res3,
7891 .probe_timing = TIMING_ZERO,
7892 .block_erasers =
7893 {
7894 {
7895 .eraseblocks = { {4 * 1024, 16} },
7896 .block_erase = spi_block_erase_d7,
7897 }, {
7898 .eraseblocks = { {32 * 1024, 2} },
7899 .block_erase = spi_block_erase_d8,
7900 }, {
7901 .eraseblocks = { {64 * 1024, 1} },
7902 .block_erase = spi_block_erase_c7,
7903 }
7904 },
7905 .printlock = spi_prettyprint_status_register_default_bp1,
7906 .unlock = spi_disable_blockprotect,
7907 .write = spi_chip_write_256,
7908 .read = spi_chip_read, /* Fast read (0x0B) supported */
7909 .voltage = {2700, 3600},
7910 },
7911
7912 {
7913 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007914 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007915 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007916 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007917 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007918 .total_size = 128,
7919 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007920 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007921 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007922 .probe = probe_spi_res3,
7923 .probe_timing = TIMING_ZERO,
7924 .block_erasers =
7925 {
7926 {
7927 .eraseblocks = { {4 * 1024, 32} },
7928 .block_erase = spi_block_erase_d7,
7929 }, {
7930 .eraseblocks = { {32 * 1024, 4} },
7931 .block_erase = spi_block_erase_d8,
7932 }, {
7933 .eraseblocks = { {128 * 1024, 1} },
7934 .block_erase = spi_block_erase_c7,
7935 }
7936 },
7937 .printlock = spi_prettyprint_status_register_default_bp1,
7938 .unlock = spi_disable_blockprotect,
7939 .write = spi_chip_write_256,
7940 .read = spi_chip_read, /* Fast read (0x0B) supported */
7941 .voltage = {2700, 3600},
7942 },
7943
7944 {
7945 .vendor = "PMC",
7946 .name = "Pm25LV010A",
7947 .bustype = BUS_SPI,
7948 .manufacture_id = PMC_ID,
7949 .model_id = PMC_PM25LV010,
7950 .total_size = 128,
7951 .page_size = 256,
7952 .feature_bits = FEATURE_WRSR_WREN,
7953 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007954 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007955 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007956 .block_erasers =
7957 {
7958 {
7959 .eraseblocks = { {4 * 1024, 32} },
7960 .block_erase = spi_block_erase_d7,
7961 }, {
7962 .eraseblocks = { {32 * 1024, 4} },
7963 .block_erase = spi_block_erase_d8,
7964 }, {
7965 .eraseblocks = { {128 * 1024, 1} },
7966 .block_erase = spi_block_erase_c7,
7967 }
7968 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007969 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007970 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007971 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007972 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007973 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007974 },
7975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007976 {
7977 .vendor = "PMC",
7978 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007979 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007980 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007981 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007982 .total_size = 256,
7983 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007984 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007985 .tested = TEST_UNTESTED,
7986 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007987 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007988 .block_erasers =
7989 {
7990 {
7991 .eraseblocks = { {4 * 1024, 64} },
7992 .block_erase = spi_block_erase_d7,
7993 }, {
7994 .eraseblocks = { {64 * 1024, 4} },
7995 .block_erase = spi_block_erase_d8,
7996 }, {
7997 .eraseblocks = { {256 * 1024, 1} },
7998 .block_erase = spi_block_erase_c7,
7999 }
8000 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008001 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008002 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008003 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008005 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008006 },
8007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008008 {
8009 .vendor = "PMC",
8010 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008011 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008012 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008013 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008014 .total_size = 512,
8015 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008016 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008017 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008018 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008019 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008020 .block_erasers =
8021 {
8022 {
8023 .eraseblocks = { {4 * 1024, 128} },
8024 .block_erase = spi_block_erase_d7,
8025 }, {
8026 .eraseblocks = { {64 * 1024, 8} },
8027 .block_erase = spi_block_erase_d8,
8028 }, {
8029 .eraseblocks = { {512 * 1024, 1} },
8030 .block_erase = spi_block_erase_c7,
8031 }
8032 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008033 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008034 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008035 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008036 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008037 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008038 },
8039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008040 {
8041 .vendor = "PMC",
8042 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008043 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008044 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008045 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008046 .total_size = 1024,
8047 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008048 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008049 .tested = TEST_UNTESTED,
8050 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008051 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008052 .block_erasers =
8053 {
8054 {
8055 .eraseblocks = { {4 * 1024, 256} },
8056 .block_erase = spi_block_erase_d7,
8057 }, {
8058 .eraseblocks = { {4 * 1024, 256} },
8059 .block_erase = spi_block_erase_20,
8060 }, {
8061 .eraseblocks = { {64 * 1024, 16} },
8062 .block_erase = spi_block_erase_d8,
8063 }, {
8064 .eraseblocks = { {1024 * 1024, 1} },
8065 .block_erase = spi_block_erase_60,
8066 }, {
8067 .eraseblocks = { {1024 * 1024, 1} },
8068 .block_erase = spi_block_erase_c7,
8069 }
8070 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008071 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008072 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008073 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008074 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008075 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008076 },
8077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008078 {
8079 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008080 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008081 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008082 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008083 .model_id = PMC_PM25LV016B,
8084 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008085 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008086 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008087 .tested = TEST_UNTESTED,
8088 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008089 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008090 .block_erasers =
8091 {
8092 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008093 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008094 .block_erase = spi_block_erase_d7,
8095 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008096 .eraseblocks = { {4 * 1024, 512} },
8097 .block_erase = spi_block_erase_20,
8098 }, {
8099 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008100 .block_erase = spi_block_erase_d8,
8101 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008102 .eraseblocks = { {2 * 1024 * 1024, 1} },
8103 .block_erase = spi_block_erase_60,
8104 }, {
8105 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008106 .block_erase = spi_block_erase_c7,
8107 }
8108 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008109 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008110 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008111 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008112 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008113 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008114 },
8115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008116 {
8117 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008118 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008119 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008120 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008121 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008122 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008123 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008124 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008125 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008126 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008127 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008128 .block_erasers =
8129 {
8130 {
8131 .eraseblocks = {
8132 {128 * 1024, 1},
8133 {96 * 1024, 1},
8134 {8 * 1024, 2},
8135 {16 * 1024, 1},
8136 },
Sean Nelson35727f72010-01-28 23:55:12 +00008137 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008138 }, {
8139 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008140 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008141 },
8142 },
Sean Nelson35727f72010-01-28 23:55:12 +00008143 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008145 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008146 },
8147
8148 {
8149 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008150 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008151 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008152 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008153 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008154 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008155 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008156 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008157 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008158 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008159 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008160 .block_erasers =
8161 {
8162 {
8163 .eraseblocks = {
8164 {16 * 1024, 1},
8165 {8 * 1024, 2},
8166 {96 * 1024, 1},
8167 {128 * 1024, 1},
8168 },
Sean Nelson35727f72010-01-28 23:55:12 +00008169 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008170 }, {
8171 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008172 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008173 },
8174 },
Sean Nelson35727f72010-01-28 23:55:12 +00008175 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008177 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008178 },
8179
8180 {
8181 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008182 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008183 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008184 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008185 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008186 .total_size = 128,
8187 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008188 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008189 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008192 .block_erasers =
8193 {
8194 {
8195 .eraseblocks = { {4 * 1024, 32} },
8196 .block_erase = erase_sector_jedec,
8197 }, {
8198 .eraseblocks = { {64 * 1024, 2} },
8199 .block_erase = erase_block_jedec,
8200 }, {
8201 .eraseblocks = { {128 * 1024, 1} },
8202 .block_erase = erase_chip_block_jedec,
8203 }
8204 },
Sean Nelson35727f72010-01-28 23:55:12 +00008205 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008206 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008207 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008208 },
8209
8210 {
8211 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008212 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008213 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008214 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008215 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008216 .total_size = 256,
8217 .page_size = 4096,
8218 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8219 .tested = TEST_UNTESTED,
8220 .probe = probe_jedec,
8221 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8222 .block_erasers =
8223 {
8224 {
8225 .eraseblocks = { {4 * 1024, 64} },
8226 .block_erase = erase_sector_jedec,
8227 }, {
8228 .eraseblocks = { {64 * 1024, 4} },
8229 .block_erase = erase_block_jedec,
8230 }, {
8231 .eraseblocks = { {256 * 1024, 1} },
8232 .block_erase = erase_chip_block_jedec,
8233 }
8234 },
8235 .write = write_jedec_1,
8236 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008237 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008238 },
8239
8240 {
8241 .vendor = "PMC",
8242 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008243 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008244 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008245 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008246 .total_size = 512,
8247 .page_size = 4096,
8248 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008249 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008250 .probe = probe_jedec,
8251 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8252 .block_erasers =
8253 {
8254 {
8255 .eraseblocks = { {4 * 1024, 128} },
8256 .block_erase = erase_sector_jedec,
8257 }, {
8258 .eraseblocks = { {64 * 1024, 8} },
8259 .block_erase = erase_block_jedec,
8260 }, {
8261 .eraseblocks = { {512 * 1024, 1} },
8262 .block_erase = erase_chip_block_jedec,
8263 }
8264 },
8265 .write = write_jedec_1,
8266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008267 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008268 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008269
8270 {
8271 .vendor = "PMC",
8272 .name = "Pm39LV512",
8273 .bustype = BUS_PARALLEL,
8274 .manufacture_id = PMC_ID_NOPREFIX,
8275 .model_id = PMC_PM39LV512,
8276 .total_size = 64,
8277 .page_size = 4096,
8278 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8279 .tested = TEST_OK_PREW,
8280 .probe = probe_jedec,
8281 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8282 .block_erasers =
8283 {
8284 {
8285 .eraseblocks = { {4 * 1024, 16} },
8286 .block_erase = erase_sector_jedec,
8287 }, {
8288 .eraseblocks = { {64 * 1024, 1} },
8289 .block_erase = erase_block_jedec,
8290 }, {
8291 .eraseblocks = { {64 * 1024, 1} },
8292 .block_erase = erase_chip_block_jedec,
8293 }
8294 },
8295 .write = write_jedec_1,
8296 .read = read_memmapped,
8297 .voltage = {2700, 3600},
8298 },
8299
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008300 {
8301 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008302 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008303 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008304 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008305 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008306 .total_size = 256,
8307 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008308 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008309 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008310 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008311 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008312 .block_erasers =
8313 {
8314 {
8315 .eraseblocks = { {4 * 1024, 64} },
8316 .block_erase = erase_sector_jedec,
8317 }, {
8318 .eraseblocks = { {16 * 1024, 16} },
8319 .block_erase = erase_block_jedec,
8320 }, {
8321 .eraseblocks = { {256 * 1024, 1} },
8322 .block_erase = erase_chip_block_jedec,
8323 }
8324 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008325 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008326 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008327 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008328 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008329 },
8330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008331 {
8332 .vendor = "PMC",
8333 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008334 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008335 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008336 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008337 .total_size = 512,
8338 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008339 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008340 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008341 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008342 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008343 .block_erasers =
8344 {
8345 {
8346 .eraseblocks = { {4 * 1024, 128} },
8347 .block_erase = erase_sector_jedec,
8348 }, {
8349 .eraseblocks = { {64 * 1024, 8} },
8350 .block_erase = erase_block_jedec,
8351 }, {
8352 .eraseblocks = { {512 * 1024, 1} },
8353 .block_erase = erase_chip_block_jedec,
8354 }
8355 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008356 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008357 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008358 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008359 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008360 },
8361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008362 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00008363 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008364 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008365 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008366 .manufacture_id = SANYO_ID,
8367 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008368 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008369 .page_size = 256,
8370 .tested = TEST_UNTESTED,
8371 .probe = probe_spi_rdid,
8372 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008373 .block_erasers =
8374 {
8375 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008376 .eraseblocks = { {256, 1024} },
8377 .block_erase = spi_block_erase_db,
8378 }, {
8379 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00008380 .block_erase = spi_block_erase_d8,
8381 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008382 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008383 .block_erase = spi_block_erase_c7,
8384 }
8385 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008386 .printlock = spi_prettyprint_status_register_default_welwip,
8387 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00008388 .write = spi_chip_write_256,
8389 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008390 .voltage = {2700, 3600},
8391 },
8392
8393 {
8394 .vendor = "Sanyo",
8395 .name = "LE25FW403A",
8396 .bustype = BUS_SPI,
8397 .manufacture_id = SANYO_ID,
8398 .model_id = SANYO_LE25FW403A,
8399 .total_size = 512,
8400 .page_size = 256,
8401 .tested = TEST_UNTESTED,
8402 .probe = probe_spi_rdid,
8403 .probe_timing = TIMING_ZERO,
8404 .block_erasers = {
8405 {
8406 .eraseblocks = { {256, 2 * 1024} },
8407 .block_erase = spi_block_erase_db,
8408 }, {
8409 .eraseblocks = { {64 * 1024, 8} },
8410 .block_erase = spi_block_erase_d8,
8411 }, {
8412 .eraseblocks = { {512 * 1024, 1} },
8413 .block_erase = spi_block_erase_c7,
8414 }
8415 },
8416 .printlock = spi_prettyprint_status_register_default_welwip,
8417 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8418 .write = spi_chip_write_256,
8419 .read = spi_chip_read,
8420 .voltage = {2700, 3600},
8421 },
8422
8423 {
8424 .vendor = "Sanyo",
8425 .name = "LE25FW418A",
8426 .bustype = BUS_SPI,
8427 .manufacture_id = SANYO_ID,
8428 .model_id = SANYO_LE25FW418A,
8429 .total_size = 512,
8430 .page_size = 256,
8431 .feature_bits = FEATURE_WRSR_WREN,
8432 .tested = TEST_UNTESTED,
8433 .probe = probe_spi_res2,
8434 .probe_timing = TIMING_ZERO,
8435 .block_erasers = {
8436 {
8437 .eraseblocks = { {4 * 1024, 128} },
8438 .block_erase = spi_block_erase_d7,
8439 }, {
8440 .eraseblocks = { {64 * 1024, 8} },
8441 .block_erase = spi_block_erase_d8,
8442 }, {
8443 .eraseblocks = { {512 * 1024, 1} },
8444 .block_erase = spi_block_erase_c7,
8445 }
8446 },
8447 .printlock = spi_prettyprint_status_register_default_bp2,
8448 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8449 .write = spi_chip_write_256,
8450 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8451 .voltage = {2700, 3600},
8452 },
8453
8454 {
8455 .vendor = "Sanyo",
8456 .name = "LE25FW806",
8457 .bustype = BUS_SPI,
8458 .manufacture_id = SANYO_ID,
8459 .model_id = SANYO_LE25FW806,
8460 .total_size = 1024,
8461 .page_size = 256,
8462 .feature_bits = FEATURE_WRSR_WREN,
8463 .tested = TEST_UNTESTED,
8464 .probe = probe_spi_res2,
8465 .probe_timing = TIMING_ZERO,
8466 .block_erasers = {
8467 {
8468 .eraseblocks = { {4 * 1024, 256} },
8469 .block_erase = spi_block_erase_20,
8470 }, {
8471 .eraseblocks = { {4 * 1024, 256} },
8472 .block_erase = spi_block_erase_d7,
8473 }, {
8474 .eraseblocks = { {64 * 1024, 16} },
8475 .block_erase = spi_block_erase_d8,
8476 }, {
8477 .eraseblocks = { {1024 * 1024, 1} },
8478 .block_erase = spi_block_erase_c7,
8479 }
8480 },
8481 .printlock = spi_prettyprint_status_register_default_bp2,
8482 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8483 .write = spi_chip_write_256,
8484 .read = spi_chip_read,
8485 .voltage = {2700, 3600},
8486 },
8487
8488 {
8489 .vendor = "Sanyo",
8490 .name = "LE25FW808",
8491 .bustype = BUS_SPI,
8492 .manufacture_id = SANYO_ID,
8493 .model_id = SANYO_LE25FW808,
8494 .total_size = 1024,
8495 .page_size = 256,
8496 .feature_bits = FEATURE_WRSR_WREN,
8497 .tested = TEST_UNTESTED,
8498 .probe = probe_spi_res2,
8499 .probe_timing = TIMING_ZERO,
8500 .block_erasers = {
8501 {
8502 .eraseblocks = { {8 * 1024, 128} },
8503 .block_erase = spi_block_erase_d7,
8504 }, {
8505 .eraseblocks = { {64 * 1024, 16} },
8506 .block_erase = spi_block_erase_d8,
8507 }, {
8508 .eraseblocks = { {1024 * 1024, 1} },
8509 .block_erase = spi_block_erase_c7,
8510 }
8511 },
8512 .printlock = spi_prettyprint_status_register_default_bp2,
8513 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8514 .write = spi_chip_write_256,
8515 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8516 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00008517 },
8518
8519 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008520 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008521 .name = "LH28F008BJT-BTLZ1",
8522 .bustype = BUS_PARALLEL,
8523 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00008524 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008525 .total_size = 1024,
8526 .page_size = 64 * 1024,
8527 .tested = TEST_OK_PREW,
8528 .probe = probe_82802ab,
8529 .probe_timing = TIMING_ZERO,
8530 .block_erasers =
8531 {
8532 {
8533 .eraseblocks = {
8534 {8 * 1024, 8},
8535 {64 * 1024, 15}
8536 },
8537 .block_erase = erase_block_82802ab,
8538 }, {
8539 .eraseblocks = { {1024 * 1024, 1} },
8540 .block_erase = erase_sector_49lfxxxc,
8541 }
8542 },
8543 .unlock = unlock_lh28f008bjt,
8544 .write = write_82802ab,
8545 .read = read_memmapped,
8546 .voltage = {2700, 3600},
8547 },
8548
8549 {
8550 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008551 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008552 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008553 .manufacture_id = SHARP_ID,
8554 .model_id = SHARP_LHF00L04,
8555 .total_size = 1024,
8556 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008557 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008558 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008559 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008560 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008561 .block_erasers =
8562 {
8563 {
8564 .eraseblocks = {
8565 {64 * 1024, 15},
8566 {8 * 1024, 8}
8567 },
Sean Nelson28accc22010-03-19 18:47:06 +00008568 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008569 }, {
8570 .eraseblocks = {
8571 {1024 * 1024, 1}
8572 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00008573 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008574 },
8575 },
Sean Nelson28accc22010-03-19 18:47:06 +00008576 .unlock = unlock_82802ab,
8577 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008579 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008580 },
8581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008582 {
8583 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00008584 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008585 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008586 .manufacture_id = SPANSION_ID,
8587 .model_id = SPANSION_S25FL004A,
8588 .total_size = 512,
8589 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008590 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008591 .tested = TEST_UNTESTED,
8592 .probe = probe_spi_rdid,
8593 .probe_timing = TIMING_ZERO,
8594 .block_erasers =
8595 {
8596 {
8597 .eraseblocks = { {64 * 1024, 8} },
8598 .block_erase = spi_block_erase_d8,
8599 }, {
8600 .eraseblocks = { {512 * 1024, 1} },
8601 .block_erase = spi_block_erase_c7,
8602 }
8603 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008604 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008605 .unlock = spi_disable_blockprotect,
8606 .write = spi_chip_write_256,
8607 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008608 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008609 },
8610
8611 {
8612 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00008613 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008614 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00008615 .manufacture_id = SPANSION_ID,
8616 .model_id = SPANSION_S25FL008A,
8617 .total_size = 1024,
8618 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008619 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008620 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00008621 .probe = probe_spi_rdid,
8622 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00008623 .block_erasers =
8624 {
8625 {
8626 .eraseblocks = { {64 * 1024, 16} },
8627 .block_erase = spi_block_erase_d8,
8628 }, {
8629 .eraseblocks = { {1024 * 1024, 1} },
8630 .block_erase = spi_block_erase_c7,
8631 }
8632 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008633 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008634 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00008635 .write = spi_chip_write_256,
8636 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008637 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00008638 },
8639
8640 {
8641 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008642 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008643 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008644 .manufacture_id = SPANSION_ID,
8645 .model_id = SPANSION_S25FL016A,
8646 .total_size = 2048,
8647 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008648 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008649 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008650 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008651 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008652 .block_erasers =
8653 {
8654 {
8655 .eraseblocks = { {64 * 1024, 32} },
8656 .block_erase = spi_block_erase_d8,
8657 }, {
8658 .eraseblocks = { {2 * 1024 * 1024, 1} },
8659 .block_erase = spi_block_erase_c7,
8660 }
8661 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008663 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008664 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008665 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008666 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008667 },
8668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008669 {
Rudy Hostf4e57772010-11-29 00:37:49 +00008670 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008671 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008672 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008673 .manufacture_id = SPANSION_ID,
8674 .model_id = SPANSION_S25FL032A,
8675 .total_size = 4096,
8676 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008677 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008678 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00008679 .probe = probe_spi_rdid,
8680 .probe_timing = TIMING_ZERO,
8681 .block_erasers =
8682 {
8683 {
8684 .eraseblocks = { {64 * 1024, 64} },
8685 .block_erase = spi_block_erase_d8,
8686 }, {
8687 .eraseblocks = { {4 * 1024 * 1024, 1} },
8688 .block_erase = spi_block_erase_c7,
8689 }
8690 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008691 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008692 .unlock = spi_disable_blockprotect,
8693 .write = spi_chip_write_256,
8694 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008695 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008696 },
8697
8698 {
8699 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008700 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008701 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008702 .manufacture_id = SPANSION_ID,
8703 .model_id = SPANSION_S25FL064A,
8704 .total_size = 8192,
8705 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008706 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008707 .tested = TEST_OK_PREW,
8708 .probe = probe_spi_rdid,
8709 .probe_timing = TIMING_ZERO,
8710 .block_erasers =
8711 {
8712 {
8713 .eraseblocks = { {64 * 1024, 128} },
8714 .block_erase = spi_block_erase_d8,
8715 }, {
8716 .eraseblocks = { {8 * 1024 * 1024, 1} },
8717 .block_erase = spi_block_erase_c7,
8718 }
8719 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008720 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008721 .unlock = spi_disable_blockprotect,
8722 .write = spi_chip_write_256,
8723 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008724 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008725 },
8726
8727 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00008728 .vendor = "Spansion",
8729 .name = "S25FL204K",
8730 .bustype = BUS_SPI,
8731 .manufacture_id = SPANSION_ID,
8732 .model_id = SPANSION_S25FL204,
8733 .total_size = 512,
8734 .page_size = 256,
8735 .feature_bits = FEATURE_WRSR_WREN,
8736 .tested = TEST_UNTESTED,
8737 .probe = probe_spi_rdid,
8738 .probe_timing = TIMING_ZERO,
8739 .block_erasers = {
8740 {
8741 .eraseblocks = { {4 * 1024, 128} },
8742 .block_erase = spi_block_erase_20,
8743 }, {
8744 .eraseblocks = { {64 * 1024, 8} },
8745 .block_erase = spi_block_erase_d8,
8746 }, {
8747 .eraseblocks = { { 512 * 1024, 1} },
8748 .block_erase = spi_block_erase_60,
8749 }, {
8750 .eraseblocks = { { 512 * 1024, 1} },
8751 .block_erase = spi_block_erase_c7,
8752 }
8753 },
8754 .printlock = spi_prettyprint_status_register_default_bp3,
8755 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
8756 .write = spi_chip_write_256,
8757 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
8758 .voltage = {2700, 3600},
8759 },
8760
8761 {
8762 .vendor = "Spansion",
8763 .name = "S25FL208K",
8764 .bustype = BUS_SPI,
8765 .manufacture_id = SPANSION_ID,
8766 .model_id = SPANSION_S25FL208,
8767 .total_size = 1024,
8768 .page_size = 256,
8769 .feature_bits = FEATURE_WRSR_WREN,
8770 .tested = TEST_UNTESTED,
8771 .probe = probe_spi_rdid,
8772 .probe_timing = TIMING_ZERO,
8773 .block_erasers = {
8774 {
8775 .eraseblocks = { {4 * 1024, 256} },
8776 .block_erase = spi_block_erase_20,
8777 }, {
8778 .eraseblocks = { {64 * 1024, 16} },
8779 .block_erase = spi_block_erase_d8,
8780 }, {
8781 .eraseblocks = { { 1024 * 1024, 1} },
8782 .block_erase = spi_block_erase_60,
8783 }, {
8784 .eraseblocks = { { 1024 * 1024, 1} },
8785 .block_erase = spi_block_erase_c7,
8786 }
8787 },
8788 .printlock = spi_prettyprint_status_register_default_bp3,
8789 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
8790 .write = spi_chip_write_256,
8791 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
8792 .voltage = {2700, 3600},
8793 },
8794
8795 {
8796 .vendor = "Spansion",
8797 .name = "S25FL116K/S25FL216K",
8798 .bustype = BUS_SPI,
8799 .manufacture_id = SPANSION_ID,
8800 .model_id = SPANSION_S25FL216,
8801 .total_size = 2048,
8802 .page_size = 256,
8803 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
8804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8805 .tested = TEST_UNTESTED,
8806 .probe = probe_spi_rdid,
8807 .probe_timing = TIMING_ZERO,
8808 .block_erasers = {
8809 {
8810 .eraseblocks = { {4 * 1024, 512} },
8811 .block_erase = spi_block_erase_20,
8812 }, {
8813 .eraseblocks = { {64 * 1024, 32} },
8814 .block_erase = spi_block_erase_d8,
8815 }, {
8816 .eraseblocks = { { 2048 * 1024, 1} },
8817 .block_erase = spi_block_erase_60,
8818 }, {
8819 .eraseblocks = { { 2048 * 1024, 1} },
8820 .block_erase = spi_block_erase_c7,
8821 }
8822 },
8823 .printlock = spi_prettyprint_status_register_default_bp3,
8824 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
8825 .write = spi_chip_write_256,
8826 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
8827 .voltage = {2700, 3600},
8828 },
8829
8830 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00008831 .vendor = "Spansion",
8832 .name = "S25FL128S......0", /* uniform 256kB sectors */
8833 .bustype = BUS_SPI,
8834 .manufacture_id = SPANSION_ID,
8835 .model_id = SPANSION_S25FL128,
8836 .total_size = 16384,
8837 .page_size = 256,
8838 /* supports 4B addressing */
8839 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
8840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8841 .tested = TEST_UNTESTED,
8842 .probe = probe_spi_rdid,
8843 .probe_timing = TIMING_ZERO,
8844 .block_erasers = {
8845 {
8846 .eraseblocks = { {4 * 1024, 4096} },
8847 .block_erase = spi_block_erase_20,
8848 }, {
8849 .eraseblocks = { {256 * 1024, 64} },
8850 .block_erase = spi_block_erase_d8,
8851 }, {
8852 .eraseblocks = { { 16384 * 1024, 1} },
8853 .block_erase = spi_block_erase_60,
8854 }, {
8855 .eraseblocks = { { 16384 * 1024, 1} },
8856 .block_erase = spi_block_erase_c7,
8857 }
8858 },
8859 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
8860 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
8861 .write = spi_chip_write_256, /* Multi I/O supported */
8862 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8863 .voltage = {2700, 3600},
8864 },
8865
8866 {
8867 .vendor = "Spansion",
8868 .name = "S25FL256S......0", /* uniform 256kB sectors */
8869 .bustype = BUS_SPI,
8870 .manufacture_id = SPANSION_ID,
8871 .model_id = SPANSION_S25FL256,
8872 .total_size = 32768,
8873 .page_size = 256,
8874 /* supports 4B addressing */
8875 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
8876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8877 .tested = TEST_BAD_REW,
8878 .probe = probe_spi_rdid,
8879 .probe_timing = TIMING_ZERO,
8880 .block_erasers = {
8881 {
8882 .eraseblocks = { {4 * 1024, 8192} },
8883 .block_erase = spi_block_erase_20,
8884 }, {
8885 .eraseblocks = { {256 * 1024, 128} },
8886 .block_erase = spi_block_erase_d8,
8887 }, {
8888 .eraseblocks = { { 32768 * 1024, 1} },
8889 .block_erase = spi_block_erase_60,
8890 }, {
8891 .eraseblocks = { { 32768 * 1024, 1} },
8892 .block_erase = spi_block_erase_c7,
8893 }
8894 },
8895 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
8896 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
8897 .write = spi_chip_write_256, /* Multi I/O supported */
8898 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8899 .voltage = {2700, 3600},
8900 },
8901
8902 {
8903 .vendor = "Spansion",
8904 .name = "S25FL512S",
8905 .bustype = BUS_SPI,
8906 .manufacture_id = SPANSION_ID,
8907 .model_id = SPANSION_S25FL512,
8908 .total_size = 65536,
8909 .page_size = 256,
8910 /* supports 4B addressing */
8911 /* supports SFDP */
8912 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
8913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8914 .tested = TEST_BAD_REW,
8915 .probe = probe_spi_rdid,
8916 .probe_timing = TIMING_ZERO,
8917 .block_erasers = {
8918 {
8919 .eraseblocks = { {256 * 1024, 256} },
8920 .block_erase = spi_block_erase_d8,
8921 }, {
8922 .eraseblocks = { { 65536 * 1024, 1} },
8923 .block_erase = spi_block_erase_60,
8924 }, {
8925 .eraseblocks = { { 65536 * 1024, 1} },
8926 .block_erase = spi_block_erase_c7,
8927 }
8928 },
8929 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
8930 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
8931 .write = spi_chip_write_256, /* Multi I/O supported */
8932 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8933 .voltage = {2700, 3600},
8934 },
8935
8936 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008937 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00008938 .name = "SST25LF040A",
8939 .bustype = BUS_SPI,
8940 .manufacture_id = SST_ID,
8941 .model_id = SST_SST25VF040_REMS,
8942 .total_size = 512,
8943 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008944 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00008945 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00008946 .probe = probe_spi_res2,
8947 .probe_timing = TIMING_ZERO,
8948 .block_erasers =
8949 {
8950 {
8951 .eraseblocks = { {4 * 1024, 128} },
8952 .block_erase = spi_block_erase_20,
8953 }, {
8954 .eraseblocks = { {32 * 1024, 16} },
8955 .block_erase = spi_block_erase_52,
8956 }, {
8957 .eraseblocks = { {512 * 1024, 1} },
8958 .block_erase = spi_block_erase_60,
8959 },
8960 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008961 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008962 .unlock = spi_disable_blockprotect,
8963 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8964 .read = spi_chip_read,
8965 .voltage = {3000, 3600},
8966 },
8967
8968 {
8969 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008970 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00008971 .bustype = BUS_SPI,
8972 .manufacture_id = SST_ID,
8973 .model_id = SST_SST25VF080_REMS,
8974 .total_size = 1024,
8975 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008976 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00008977 .tested = TEST_UNTESTED,
8978 .probe = probe_spi_res2,
8979 .probe_timing = TIMING_ZERO,
8980 .block_erasers =
8981 {
8982 {
8983 .eraseblocks = { {4 * 1024, 256} },
8984 .block_erase = spi_block_erase_20,
8985 }, {
8986 .eraseblocks = { {32 * 1024, 32} },
8987 .block_erase = spi_block_erase_52,
8988 }, {
8989 .eraseblocks = { {1024 * 1024, 1} },
8990 .block_erase = spi_block_erase_60,
8991 },
8992 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008993 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008994 .unlock = spi_disable_blockprotect,
8995 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8996 .read = spi_chip_read,
8997 .voltage = {3000, 3600},
8998 },
8999
9000 {
9001 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009002 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009003 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009004 .manufacture_id = SST_ID,
9005 .model_id = SST_SST25VF010_REMS,
9006 .total_size = 128,
9007 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009008 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009009 .tested = TEST_OK_PREW,
9010 .probe = probe_spi_rems,
9011 .probe_timing = TIMING_ZERO,
9012 .block_erasers =
9013 {
9014 {
9015 .eraseblocks = { {4 * 1024, 32} },
9016 .block_erase = spi_block_erase_20,
9017 }, {
9018 .eraseblocks = { {32 * 1024, 4} },
9019 .block_erase = spi_block_erase_52,
9020 }, {
9021 .eraseblocks = { {128 * 1024, 1} },
9022 .block_erase = spi_block_erase_60,
9023 },
9024 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009025 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009026 .unlock = spi_disable_blockprotect,
9027 .write = spi_chip_write_1,
9028 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009029 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00009030 },
9031
9032 {
9033 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009034 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009035 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009036 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009037 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009038 .total_size = 2048,
9039 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009040 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00009041 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009042 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009043 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009044 .block_erasers =
9045 {
9046 {
9047 .eraseblocks = { {4 * 1024, 512} },
9048 .block_erase = spi_block_erase_20,
9049 }, {
9050 .eraseblocks = { {32 * 1024, 64} },
9051 .block_erase = spi_block_erase_52,
9052 }, {
9053 .eraseblocks = { {64 * 1024, 32} },
9054 .block_erase = spi_block_erase_d8,
9055 }, {
9056 .eraseblocks = { {2 * 1024 * 1024, 1} },
9057 .block_erase = spi_block_erase_60,
9058 }, {
9059 .eraseblocks = { {2 * 1024 * 1024, 1} },
9060 .block_erase = spi_block_erase_c7,
9061 },
9062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009063 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009064 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009065 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009066 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009067 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009068 },
9069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009070 {
9071 .vendor = "SST",
9072 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009073 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009074 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009075 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009076 .total_size = 4096,
9077 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009078 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00009079 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009080 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009081 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009082 .block_erasers =
9083 {
9084 {
9085 .eraseblocks = { {4 * 1024, 1024} },
9086 .block_erase = spi_block_erase_20,
9087 }, {
9088 .eraseblocks = { {32 * 1024, 128} },
9089 .block_erase = spi_block_erase_52,
9090 }, {
9091 .eraseblocks = { {64 * 1024, 64} },
9092 .block_erase = spi_block_erase_d8,
9093 }, {
9094 .eraseblocks = { {4 * 1024 * 1024, 1} },
9095 .block_erase = spi_block_erase_60,
9096 }, {
9097 .eraseblocks = { {4 * 1024 * 1024, 1} },
9098 .block_erase = spi_block_erase_c7,
9099 },
9100 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009101 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009102 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009103 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009105 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009106 },
9107
9108 {
9109 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009110 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009111 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009112 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009113 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009114 .total_size = 8192,
9115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009116 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00009117 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009118 .probe = probe_spi_rdid,
9119 .probe_timing = TIMING_ZERO,
9120 .block_erasers =
9121 {
9122 {
9123 .eraseblocks = { {4 * 1024, 2048} },
9124 .block_erase = spi_block_erase_20,
9125 }, {
9126 .eraseblocks = { {32 * 1024, 256} },
9127 .block_erase = spi_block_erase_52,
9128 }, {
9129 .eraseblocks = { {64 * 1024, 128} },
9130 .block_erase = spi_block_erase_d8,
9131 }, {
9132 .eraseblocks = { {8 * 1024 * 1024, 1} },
9133 .block_erase = spi_block_erase_60,
9134 }, {
9135 .eraseblocks = { {8 * 1024 * 1024, 1} },
9136 .block_erase = spi_block_erase_c7,
9137 },
9138 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009139 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009140 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009141 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009142 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009143 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009144 },
9145
9146 {
9147 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009148 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009149 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009150 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009151 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009152 .total_size = 512,
9153 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009154 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009155 .tested = TEST_OK_PR,
9156 .probe = probe_spi_rems,
9157 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009158 .block_erasers =
9159 {
9160 {
9161 .eraseblocks = { {4 * 1024, 128} },
9162 .block_erase = spi_block_erase_20,
9163 }, {
9164 .eraseblocks = { {32 * 1024, 16} },
9165 .block_erase = spi_block_erase_52,
9166 }, {
9167 .eraseblocks = { {512 * 1024, 1} },
9168 .block_erase = spi_block_erase_60,
9169 },
9170 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009171 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009172 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009173 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009174 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009175 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009176 },
9177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009178 {
9179 .vendor = "SST",
9180 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009181 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009182 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009183 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009184 .total_size = 512,
9185 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009186 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009187 .tested = TEST_UNTESTED,
9188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009189 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009190 .block_erasers =
9191 {
9192 {
9193 .eraseblocks = { {4 * 1024, 128} },
9194 .block_erase = spi_block_erase_20,
9195 }, {
9196 .eraseblocks = { {32 * 1024, 16} },
9197 .block_erase = spi_block_erase_52,
9198 }, {
9199 .eraseblocks = { {64 * 1024, 8} },
9200 .block_erase = spi_block_erase_d8,
9201 }, {
9202 .eraseblocks = { {512 * 1024, 1} },
9203 .block_erase = spi_block_erase_60,
9204 }, {
9205 .eraseblocks = { {512 * 1024, 1} },
9206 .block_erase = spi_block_erase_c7,
9207 },
9208 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009209 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009210 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009211 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00009212 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009213 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00009214 },
9215
9216 {
9217 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00009218 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009219 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009220 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009221 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00009222 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009223 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009224 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00009225 .tested = TEST_OK_PR,
9226 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009227 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009228 .block_erasers =
9229 {
9230 {
9231 .eraseblocks = { {4 * 1024, 128} },
9232 .block_erase = spi_block_erase_20,
9233 }, {
9234 .eraseblocks = { {32 * 1024, 16} },
9235 .block_erase = spi_block_erase_52,
9236 }, {
9237 .eraseblocks = { {64 * 1024, 8} },
9238 .block_erase = spi_block_erase_d8,
9239 }, {
9240 .eraseblocks = { {512 * 1024, 1} },
9241 .block_erase = spi_block_erase_60,
9242 }, {
9243 .eraseblocks = { {512 * 1024, 1} },
9244 .block_erase = spi_block_erase_c7,
9245 },
9246 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009247 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009248 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009249 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00009250 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009251 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00009252 },
9253
9254 {
9255 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009256 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009257 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009258 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009259 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009260 .total_size = 1024,
9261 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009262 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00009263 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009264 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009265 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009266 .block_erasers =
9267 {
9268 {
9269 .eraseblocks = { {4 * 1024, 256} },
9270 .block_erase = spi_block_erase_20,
9271 }, {
9272 .eraseblocks = { {32 * 1024, 32} },
9273 .block_erase = spi_block_erase_52,
9274 }, {
9275 .eraseblocks = { {64 * 1024, 16} },
9276 .block_erase = spi_block_erase_d8,
9277 }, {
9278 .eraseblocks = { {1024 * 1024, 1} },
9279 .block_erase = spi_block_erase_60,
9280 }, {
9281 .eraseblocks = { {1024 * 1024, 1} },
9282 .block_erase = spi_block_erase_c7,
9283 },
9284 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009285 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009286 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009287 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009288 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009289 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009290 },
9291
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009292 {
9293 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00009294 .name = "SST25WF512",
9295 .bustype = BUS_SPI,
9296 .manufacture_id = SST_ID,
9297 .model_id = SST_SST25WF512,
9298 .total_size = 64,
9299 .page_size = 256,
9300 .feature_bits = FEATURE_WRSR_EITHER,
9301 .tested = TEST_UNTESTED,
9302 .probe = probe_spi_rdid,
9303 .probe_timing = TIMING_ZERO,
9304 .block_erasers =
9305 {
9306 {
9307 .eraseblocks = { {4 * 1024, 16} },
9308 .block_erase = spi_block_erase_20,
9309 }, {
9310 .eraseblocks = { {32 * 1024, 2} },
9311 .block_erase = spi_block_erase_52,
9312 }, {
9313 .eraseblocks = { {1024 * 64, 1} },
9314 .block_erase = spi_block_erase_60,
9315 }, {
9316 .eraseblocks = { {1024 * 64, 1} },
9317 .block_erase = spi_block_erase_c7,
9318 },
9319 },
9320 .unlock = spi_disable_blockprotect,
9321 .write = spi_aai_write,
9322 .read = spi_chip_read, /* Fast read (0x0B) supported */
9323 .voltage = {1650, 1950},
9324 },
9325
9326 {
9327 .vendor = "SST",
9328 .name = "SST25WF010",
9329 .bustype = BUS_SPI,
9330 .manufacture_id = SST_ID,
9331 .model_id = SST_SST25WF010,
9332 .total_size = 128,
9333 .page_size = 256,
9334 .feature_bits = FEATURE_WRSR_EITHER,
9335 .tested = TEST_UNTESTED,
9336 .probe = probe_spi_rdid,
9337 .probe_timing = TIMING_ZERO,
9338 .block_erasers =
9339 {
9340 {
9341 .eraseblocks = { {4 * 1024, 32} },
9342 .block_erase = spi_block_erase_20,
9343 }, {
9344 .eraseblocks = { {32 * 1024, 4} },
9345 .block_erase = spi_block_erase_52,
9346 }, {
9347 .eraseblocks = { {1024 * 128, 1} },
9348 .block_erase = spi_block_erase_60,
9349 }, {
9350 .eraseblocks = { {1024 * 128, 1} },
9351 .block_erase = spi_block_erase_c7,
9352 },
9353 },
9354 .unlock = spi_disable_blockprotect,
9355 .write = spi_aai_write,
9356 .read = spi_chip_read, /* Fast read (0x0B) supported */
9357 .voltage = {1650, 1950},
9358 },
9359
9360 {
9361 .vendor = "SST",
9362 .name = "SST25WF020",
9363 .bustype = BUS_SPI,
9364 .manufacture_id = SST_ID,
9365 .model_id = SST_SST25WF020,
9366 .total_size = 256,
9367 .page_size = 256,
9368 .feature_bits = FEATURE_WRSR_EITHER,
9369 .tested = TEST_UNTESTED,
9370 .probe = probe_spi_rdid,
9371 .probe_timing = TIMING_ZERO,
9372 .block_erasers =
9373 {
9374 {
9375 .eraseblocks = { {4 * 1024, 64} },
9376 .block_erase = spi_block_erase_20,
9377 }, {
9378 .eraseblocks = { {32 * 1024, 8} },
9379 .block_erase = spi_block_erase_52,
9380 }, {
9381 .eraseblocks = { {64 * 1024, 4} },
9382 .block_erase = spi_block_erase_d8,
9383 }, {
9384 .eraseblocks = { {1024 * 256, 1} },
9385 .block_erase = spi_block_erase_60,
9386 }, {
9387 .eraseblocks = { {1024 * 256, 1} },
9388 .block_erase = spi_block_erase_c7,
9389 },
9390 },
9391 .unlock = spi_disable_blockprotect,
9392 .write = spi_aai_write,
9393 .read = spi_chip_read, /* Fast read (0x0B) supported */
9394 .voltage = {1650, 1950},
9395 },
9396
9397 {
9398 .vendor = "SST",
9399 .name = "SST25WF040",
9400 .bustype = BUS_SPI,
9401 .manufacture_id = SST_ID,
9402 .model_id = SST_SST25WF040,
9403 .total_size = 512,
9404 .page_size = 256,
9405 .feature_bits = FEATURE_WRSR_EITHER,
9406 .tested = TEST_UNTESTED,
9407 .probe = probe_spi_rdid,
9408 .probe_timing = TIMING_ZERO,
9409 .block_erasers =
9410 {
9411 {
9412 .eraseblocks = { {4 * 1024, 128} },
9413 .block_erase = spi_block_erase_20,
9414 }, {
9415 .eraseblocks = { {32 * 1024, 16} },
9416 .block_erase = spi_block_erase_52,
9417 }, {
9418 .eraseblocks = { {64 * 1024, 8} },
9419 .block_erase = spi_block_erase_d8,
9420 }, {
9421 .eraseblocks = { {1024 * 512, 1} },
9422 .block_erase = spi_block_erase_60,
9423 }, {
9424 .eraseblocks = { {1024 * 512, 1} },
9425 .block_erase = spi_block_erase_c7,
9426 },
9427 },
9428 .unlock = spi_disable_blockprotect,
9429 .write = spi_aai_write,
9430 .read = spi_chip_read, /* Fast read (0x0B) supported */
9431 .voltage = {1650, 1950},
9432 },
9433
9434 {
9435 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009436 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009437 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009438 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009439 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009440 .total_size = 512,
9441 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009442 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009443 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009444 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009445 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009446 .block_erasers =
9447 {
9448 {
9449 .eraseblocks = { {128, 4096} },
9450 .block_erase = erase_sector_28sf040,
9451 }, {
9452 .eraseblocks = { {512 * 1024, 1} },
9453 .block_erase = erase_chip_28sf040,
9454 }
9455 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009456 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009457 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009459 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009460 },
9461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009462 {
9463 .vendor = "SST",
9464 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009465 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009466 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009467 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009468 .total_size = 128,
9469 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009470 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009471 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009472 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009473 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009474 .block_erasers =
9475 {
9476 {
9477 .eraseblocks = { {128 * 1024, 1} },
9478 .block_erase = erase_chip_block_jedec,
9479 }
9480 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009481 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009482 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009483 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009484 },
9485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009486 {
9487 .vendor = "SST",
9488 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009490 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009491 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009492 .total_size = 128,
9493 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009494 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009495 .tested = TEST_UNTESTED,
9496 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009497 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009498 .block_erasers =
9499 {
9500 {
9501 .eraseblocks = { {128 * 1024, 1} },
9502 .block_erase = erase_chip_block_jedec,
9503 }
9504 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009505 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009506 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009507 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009508 },
9509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009510 {
9511 .vendor = "SST",
9512 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009513 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009514 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009515 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009516 .total_size = 256,
9517 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009518 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009519 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009520 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009521 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009522 .block_erasers =
9523 {
9524 {
9525 .eraseblocks = { {256 * 1024, 1} },
9526 .block_erase = erase_chip_block_jedec,
9527 }
9528 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009529 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009530 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009531 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009532 },
9533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009534 {
9535 .vendor = "SST",
9536 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009537 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009538 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009539 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009540 .total_size = 256,
9541 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009542 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009543 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009544 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009545 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009546 .block_erasers =
9547 {
9548 {
9549 .eraseblocks = { {256 * 1024, 1} },
9550 .block_erase = erase_chip_block_jedec,
9551 }
9552 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009553 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009555 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009556 },
9557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009558 {
9559 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00009560 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009561 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009562 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009563 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009564 .total_size = 64,
9565 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009566 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00009567 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009568 .probe = probe_jedec,
9569 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00009570 .block_erasers =
9571 {
9572 {
9573 .eraseblocks = { {4 * 1024, 16} },
9574 .block_erase = erase_sector_jedec,
9575 }, {
9576 .eraseblocks = { {64 * 1024, 1} },
9577 .block_erase = erase_chip_block_jedec,
9578 }
9579 },
Sean Nelson35727f72010-01-28 23:55:12 +00009580 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009581 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009582 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00009583 },
9584
9585 {
9586 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009587 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009588 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009589 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009590 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009591 .total_size = 128,
9592 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009593 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009594 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009595 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009596 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009597 .block_erasers =
9598 {
9599 {
9600 .eraseblocks = { {4 * 1024, 32} },
9601 .block_erase = erase_sector_jedec,
9602 }, {
9603 .eraseblocks = { {128 * 1024, 1} },
9604 .block_erase = erase_chip_block_jedec,
9605 }
9606 },
Sean Nelson35727f72010-01-28 23:55:12 +00009607 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009609 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009610 },
9611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009612 {
9613 .vendor = "SST",
9614 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009615 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009616 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009617 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009618 .total_size = 256,
9619 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009620 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00009621 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009622 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009623 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009624 .block_erasers =
9625 {
9626 {
9627 .eraseblocks = { {4 * 1024, 64} },
9628 .block_erase = erase_sector_jedec,
9629 }, {
9630 .eraseblocks = { {256 * 1024, 1} },
9631 .block_erase = erase_chip_block_jedec,
9632 }
9633 },
Sean Nelson35727f72010-01-28 23:55:12 +00009634 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009637 },
9638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009639 {
9640 .vendor = "SST",
9641 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009642 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009643 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009644 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009645 .total_size = 512,
9646 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009647 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009648 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009649 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009650 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009651 .block_erasers =
9652 {
9653 {
9654 .eraseblocks = { {4 * 1024, 128} },
9655 .block_erase = erase_sector_jedec,
9656 }, {
9657 .eraseblocks = { {512 * 1024, 1} },
9658 .block_erase = erase_chip_block_jedec,
9659 }
9660 },
Sean Nelson35727f72010-01-28 23:55:12 +00009661 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009663 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009664 },
9665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009666 {
9667 .vendor = "SST",
9668 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009669 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009670 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009671 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009672 .total_size = 64,
9673 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009674 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00009675 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009676 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009677 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009678 .block_erasers =
9679 {
9680 {
9681 .eraseblocks = { {4 * 1024, 16} },
9682 .block_erase = erase_sector_jedec,
9683 }, {
9684 .eraseblocks = { {64 * 1024, 1} },
9685 .block_erase = erase_chip_block_jedec,
9686 }
9687 },
Sean Nelson35727f72010-01-28 23:55:12 +00009688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009689 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009690 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009691 },
9692
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009693 {
9694 .vendor = "SST",
9695 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009697 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009698 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009699 .total_size = 128,
9700 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009701 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00009702 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009703 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009704 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009705 .block_erasers =
9706 {
9707 {
9708 .eraseblocks = { {4 * 1024, 32} },
9709 .block_erase = erase_sector_jedec,
9710 }, {
9711 .eraseblocks = { {128 * 1024, 1} },
9712 .block_erase = erase_chip_block_jedec,
9713 }
9714 },
Sean Nelson35727f72010-01-28 23:55:12 +00009715 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009716 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009717 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009718 },
9719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009720 {
9721 .vendor = "SST",
9722 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009723 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009724 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009725 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009726 .total_size = 256,
9727 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009728 .feature_bits = FEATURE_EITHER_RESET,
9729 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009730 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009731 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009732 .block_erasers =
9733 {
9734 {
9735 .eraseblocks = { {4 * 1024, 64} },
9736 .block_erase = erase_sector_jedec,
9737 }, {
9738 .eraseblocks = { {256 * 1024, 1} },
9739 .block_erase = erase_chip_block_jedec,
9740 }
9741 },
Sean Nelson35727f72010-01-28 23:55:12 +00009742 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009744 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009745 },
9746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009747 {
9748 .vendor = "SST",
9749 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009750 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009751 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009752 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009753 .total_size = 512,
9754 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009755 .feature_bits = FEATURE_EITHER_RESET,
9756 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009757 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009758 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009759 .block_erasers =
9760 {
9761 {
9762 .eraseblocks = { {4 * 1024, 128} },
9763 .block_erase = erase_sector_jedec,
9764 }, {
9765 .eraseblocks = { {512 * 1024, 1} },
9766 .block_erase = erase_chip_block_jedec,
9767 }
9768 },
Sean Nelson35727f72010-01-28 23:55:12 +00009769 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009770 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009771 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00009772 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009773
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009774 {
9775 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00009776 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009777 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009778 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009779 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00009780 .total_size = 1024,
9781 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009782 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00009783 .tested = TEST_UNTESTED,
9784 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009785 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009786 .block_erasers =
9787 {
9788 {
9789 .eraseblocks = { {4 * 1024, 256} },
9790 .block_erase = erase_sector_jedec,
9791 }, {
9792 .eraseblocks = { {64 * 1024, 16} },
9793 .block_erase = erase_block_jedec,
9794 }, {
9795 .eraseblocks = { {1024 * 1024, 1} },
9796 .block_erase = erase_chip_block_jedec,
9797 }
9798 },
Sean Nelson35727f72010-01-28 23:55:12 +00009799 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009801 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00009802 },
9803
9804 {
9805 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009806 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009807 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009808 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009809 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009810 .total_size = 256,
9811 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009812 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009813 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009814 .probe = probe_jedec,
9815 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009816 .block_erasers =
9817 {
9818 {
9819 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009820 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009821 }, {
9822 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009823 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009824 }, {
9825 .eraseblocks = { {256 * 1024, 1} },
9826 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9827 }
9828 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009829 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009830 .unlock = unlock_sst_fwhub,
9831 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009832 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009833 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009834 },
9835
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009836 {
9837 .vendor = "SST",
9838 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009839 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009840 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009841 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009842 .total_size = 384,
9843 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009844 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00009845 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009846 .probe = probe_jedec,
9847 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009848 .block_erasers =
9849 {
9850 {
9851 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009852 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009853 }, {
9854 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009855 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009856 }, {
9857 .eraseblocks = { {384 * 1024, 1} },
9858 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9859 }
9860 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009861 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009862 .unlock = unlock_sst_fwhub,
9863 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009865 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009866 },
9867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009868 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009869 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
9870 * and is only honored for 64k block erase, but not 4k sector erase.
9871 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009872 .vendor = "SST",
9873 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009874 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009875 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009876 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009877 .total_size = 512,
9878 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009879 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009880 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009881 .probe = probe_jedec,
9882 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009883 .block_erasers =
9884 {
9885 {
9886 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009887 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009888 }, {
9889 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009890 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009891 }, {
9892 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009893 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009894 },
9895 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009896 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009897 .unlock = unlock_sst_fwhub,
9898 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009899 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009900 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009901 },
9902
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009903 {
9904 .vendor = "SST",
9905 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009906 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009907 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009908 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009909 .total_size = 512,
9910 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009911 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009912 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009913 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009914 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009915 .block_erasers =
9916 {
9917 {
9918 .eraseblocks = { {4 * 1024, 128} },
9919 .block_erase = erase_sector_49lfxxxc,
9920 }, {
9921 .eraseblocks = {
9922 {64 * 1024, 7},
9923 {32 * 1024, 1},
9924 {8 * 1024, 2},
9925 {16 * 1024, 1},
9926 },
Sean Nelson69e58112010-03-23 17:10:28 +00009927 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009928 }
9929 },
Sean Nelson69e58112010-03-23 17:10:28 +00009930 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009931 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009932 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009933 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009934 },
9935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009936 {
9937 .vendor = "SST",
9938 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009939 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009940 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009941 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009942 .total_size = 1024,
9943 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009944 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009945 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009946 .probe = probe_jedec,
9947 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009948 .block_erasers =
9949 {
9950 {
9951 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009952 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009953 }, {
9954 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009955 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009956 }, {
9957 .eraseblocks = { {1024 * 1024, 1} },
9958 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9959 }
9960 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009961 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009962 .unlock = unlock_sst_fwhub,
9963 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009964 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009965 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009966 },
9967
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009968 {
9969 .vendor = "SST",
9970 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009971 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009972 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009973 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009974 .total_size = 1024,
9975 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009976 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009977 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009978 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009979 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009980 .block_erasers =
9981 {
9982 {
9983 .eraseblocks = { {4 * 1024, 256} },
9984 .block_erase = erase_sector_49lfxxxc,
9985 }, {
9986 .eraseblocks = {
9987 {64 * 1024, 15},
9988 {32 * 1024, 1},
9989 {8 * 1024, 2},
9990 {16 * 1024, 1},
9991 },
Sean Nelson69e58112010-03-23 17:10:28 +00009992 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009993 }
9994 },
Sean Nelson69e58112010-03-23 17:10:28 +00009995 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009996 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009997 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009998 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009999 },
10000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010001 {
10002 .vendor = "SST",
10003 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010004 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010005 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010006 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010007 .total_size = 2048,
10008 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010009 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010010 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010011 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010012 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010013 .block_erasers =
10014 {
10015 {
10016 .eraseblocks = { {4 * 1024, 512} },
10017 .block_erase = erase_sector_49lfxxxc,
10018 }, {
10019 .eraseblocks = {
10020 {64 * 1024, 31},
10021 {32 * 1024, 1},
10022 {8 * 1024, 2},
10023 {16 * 1024, 1},
10024 },
Sean Nelson69e58112010-03-23 17:10:28 +000010025 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010026 }
10027 },
Sean Nelson69e58112010-03-23 17:10:28 +000010028 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010029 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010030 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010031 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010032 },
10033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010034 {
10035 .vendor = "SST",
10036 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010037 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010038 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010039 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010040 .total_size = 256,
10041 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010042 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000010043 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010044 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010045 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010046 .block_erasers =
10047 {
10048 {
10049 .eraseblocks = { {4 * 1024, 64} },
10050 .block_erase = erase_sector_jedec,
10051 }, {
10052 .eraseblocks = { {16 * 1024, 16} },
10053 .block_erase = erase_block_jedec,
10054 }, {
10055 .eraseblocks = { {256 * 1024, 1} },
10056 .block_erase = NULL,
10057 }
10058 },
Sean Nelson35727f72010-01-28 23:55:12 +000010059 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010060 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010061 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000010062 },
10063
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010064 {
10065 .vendor = "SST",
10066 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010067 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010068 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010069 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010070 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000010071 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010072 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010073 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010074 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010075 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010076 .block_erasers =
10077 {
10078 {
10079 .eraseblocks = { {4 * 1024, 64} },
10080 .block_erase = erase_sector_jedec,
10081 }, {
10082 .eraseblocks = { {16 * 1024, 16} },
10083 .block_erase = erase_block_jedec,
10084 }, {
10085 .eraseblocks = { {256 * 1024, 1} },
10086 .block_erase = NULL,
10087 }
10088 },
Sean Nelson35727f72010-01-28 23:55:12 +000010089 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010090 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010091 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010092 },
10093
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010094 {
10095 .vendor = "SST",
10096 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010097 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010098 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010099 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010100 .total_size = 512,
10101 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010102 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010103 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010104 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010105 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010106 .block_erasers =
10107 {
10108 {
10109 .eraseblocks = { {4 * 1024, 128} },
10110 .block_erase = erase_sector_jedec,
10111 }, {
10112 .eraseblocks = { {64 * 1024, 8} },
10113 .block_erase = erase_block_jedec,
10114 }, {
10115 .eraseblocks = { {512 * 1024, 1} },
10116 .block_erase = NULL,
10117 }
10118 },
Sean Nelson35727f72010-01-28 23:55:12 +000010119 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010121 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010122 },
10123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010124 {
10125 .vendor = "SST",
10126 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010127 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010128 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010129 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010130 .total_size = 512,
10131 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010132 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010133 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010134 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010135 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010136 .block_erasers =
10137 {
10138 {
10139 .eraseblocks = { {4 * 1024, 128} },
10140 .block_erase = erase_sector_jedec,
10141 }, {
10142 .eraseblocks = { {64 * 1024, 8} },
10143 .block_erase = erase_block_jedec,
10144 }, {
10145 .eraseblocks = { {512 * 1024, 1} },
10146 .block_erase = NULL,
10147 }
10148 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010149 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000010150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010152 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010153 },
10154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010155 {
10156 .vendor = "SST",
10157 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010158 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010159 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010160 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010161 .total_size = 1024,
10162 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010163 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000010164 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010165 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +000010166 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010167 .block_erasers =
10168 {
10169 {
10170 .eraseblocks = { {4 * 1024, 256} },
10171 .block_erase = erase_sector_jedec,
10172 }, {
10173 .eraseblocks = { {64 * 1024, 16} },
10174 .block_erase = erase_block_jedec,
10175 }, {
10176 .eraseblocks = { {1024 * 1024, 1} },
10177 .block_erase = NULL,
10178 }
10179 },
Sean Nelson35727f72010-01-28 23:55:12 +000010180 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010181 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010182 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010183 },
10184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010185 {
10186 .vendor = "SST",
10187 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010188 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010189 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010190 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010191 .total_size = 2048,
10192 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010193 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010194 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010195 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010196 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010197 .block_erasers =
10198 {
10199 {
10200 .eraseblocks = { {4 * 1024, 512} },
10201 .block_erase = erase_sector_49lfxxxc,
10202 }, {
10203 .eraseblocks = {
10204 {64 * 1024, 31},
10205 {32 * 1024, 1},
10206 {8 * 1024, 2},
10207 {16 * 1024, 1},
10208 },
Sean Nelson69e58112010-03-23 17:10:28 +000010209 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010210 }
10211 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000010212 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010213 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010215 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010216 },
10217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010218 {
10219 .vendor = "ST",
10220 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010221 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010222 .manufacture_id = ST_ID,
10223 .model_id = ST_M25P05A,
10224 .total_size = 64,
10225 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010226 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010227 .tested = TEST_UNTESTED,
10228 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010229 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010230 .block_erasers =
10231 {
10232 {
10233 .eraseblocks = { {32 * 1024, 2} },
10234 .block_erase = spi_block_erase_d8,
10235 }, {
10236 .eraseblocks = { {64 * 1024, 1} },
10237 .block_erase = spi_block_erase_c7,
10238 }
10239 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010240 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010241 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010242 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010243 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010244 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010245 },
10246
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010247 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10248 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +000010249 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010250 * only is successful if RDID does not work.
10251 */
10252 {
10253 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010254 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010255 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +000010256 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010257 .model_id = ST_M25P05_RES,
10258 .total_size = 64,
10259 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010260 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010261 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +000010262 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010263 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010264 .block_erasers =
10265 {
10266 {
10267 .eraseblocks = { {32 * 1024, 2} },
10268 .block_erase = spi_block_erase_d8,
10269 }, {
10270 .eraseblocks = { {64 * 1024, 1} },
10271 .block_erase = spi_block_erase_c7,
10272 }
10273 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010274 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010276 .write = spi_chip_write_1, /* 128 */
10277 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010278 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010279 },
10280
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010281 {
10282 .vendor = "ST",
10283 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010284 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010285 .manufacture_id = ST_ID,
10286 .model_id = ST_M25P10A,
10287 .total_size = 128,
10288 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010289 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010290 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010291 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010292 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010293 .block_erasers =
10294 {
10295 {
10296 .eraseblocks = { {32 * 1024, 4} },
10297 .block_erase = spi_block_erase_d8,
10298 }, {
10299 .eraseblocks = { {128 * 1024, 1} },
10300 .block_erase = spi_block_erase_c7,
10301 }
10302 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010303 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010304 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010305 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010306 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010307 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010308 },
10309
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010310 /* The ST M25P10 has the same problem as the M25P05. */
10311 {
10312 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010313 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010314 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +000010315 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010316 .model_id = ST_M25P10_RES,
10317 .total_size = 128,
10318 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010319 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010320 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +000010321 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010322 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010323 .block_erasers =
10324 {
10325 {
10326 .eraseblocks = { {32 * 1024, 4} },
10327 .block_erase = spi_block_erase_d8,
10328 }, {
10329 .eraseblocks = { {128 * 1024, 1} },
10330 .block_erase = spi_block_erase_c7,
10331 }
10332 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010333 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010334 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010335 .write = spi_chip_write_1, /* 128 */
10336 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010337 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +000010338 },
10339
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010340 {
Kyösti Mälkkic54adc52013-03-04 01:20:28 +000010341 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010342 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010343 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010344 .manufacture_id = ST_ID,
10345 .model_id = ST_M25P20,
10346 .total_size = 256,
10347 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010348 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010349 .tested = TEST_UNTESTED,
10350 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010351 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010352 .block_erasers =
10353 {
10354 {
10355 .eraseblocks = { {64 * 1024, 4} },
10356 .block_erase = spi_block_erase_d8,
10357 }, {
10358 .eraseblocks = { {256 * 1024, 1} },
10359 .block_erase = spi_block_erase_c7,
10360 }
10361 },
Kyösti Mälkkic54adc52013-03-04 01:20:28 +000010362 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010363 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010364 .write = spi_chip_write_256,
Kyösti Mälkkic54adc52013-03-04 01:20:28 +000010365 .read = spi_chip_read, /* Fast read (0x0B) supported */
10366 .voltage = {2700, 3600},
10367 },
10368
10369 {
10370 .vendor = "ST",
10371 .name = "M25P20-old",
10372 .bustype = BUS_SPI,
10373 .manufacture_id = 0, /* Not used. */
10374 .model_id = ST_M25P20_RES,
10375 .total_size = 256,
10376 .page_size = 256,
10377 .feature_bits = FEATURE_WRSR_WREN,
10378 .tested = TEST_OK_PREW,
10379 .probe = probe_spi_res1,
10380 .probe_timing = TIMING_ZERO,
10381 .block_erasers =
10382 {
10383 {
10384 .eraseblocks = { {64 * 1024, 4} },
10385 .block_erase = spi_block_erase_d8,
10386 }, {
10387 .eraseblocks = { {256 * 1024, 1} },
10388 .block_erase = spi_block_erase_c7,
10389 }
10390 },
10391 .printlock = spi_prettyprint_status_register_default_bp1,
10392 .unlock = spi_disable_blockprotect,
10393 .write = spi_chip_write_256,
10394 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010395 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010396 },
10397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010398 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010399 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010400 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010401 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010402 .manufacture_id = ST_ID,
10403 .model_id = ST_M25P40,
10404 .total_size = 512,
10405 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010406 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +000010407 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010408 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010409 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010410 .block_erasers =
10411 {
10412 {
10413 .eraseblocks = { {64 * 1024, 8} },
10414 .block_erase = spi_block_erase_d8,
10415 }, {
10416 .eraseblocks = { {512 * 1024, 1} },
10417 .block_erase = spi_block_erase_c7,
10418 }
10419 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010420 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010421 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010422 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010424 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010425 },
10426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010427 {
10428 .vendor = "ST",
10429 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010430 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +000010431 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010432 .model_id = ST_M25P40_RES,
10433 .total_size = 512,
10434 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010435 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010436 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +000010437 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010438 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010439 .block_erasers =
10440 {
10441 {
10442 .eraseblocks = { {64 * 1024, 8} },
10443 .block_erase = spi_block_erase_d8,
10444 }, {
10445 .eraseblocks = { {512 * 1024, 1} },
10446 .block_erase = spi_block_erase_c7,
10447 }
10448 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010449 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010450 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010451 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010452 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +000010453 },
10454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010455 {
10456 .vendor = "ST",
10457 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010458 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010459 .manufacture_id = ST_ID,
10460 .model_id = ST_M25P80,
10461 .total_size = 1024,
10462 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010463 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010464 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010465 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010466 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010467 .block_erasers =
10468 {
10469 {
10470 .eraseblocks = { {64 * 1024, 16} },
10471 .block_erase = spi_block_erase_d8,
10472 }, {
10473 .eraseblocks = { {1024 * 1024, 1} },
10474 .block_erase = spi_block_erase_c7,
10475 }
10476 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010477 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010478 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010479 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010480 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010481 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010482 },
10483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010484 {
10485 .vendor = "ST",
10486 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010487 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010488 .manufacture_id = ST_ID,
10489 .model_id = ST_M25P16,
10490 .total_size = 2048,
10491 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010492 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010493 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010494 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010495 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010496 .block_erasers =
10497 {
10498 {
10499 .eraseblocks = { {64 * 1024, 32} },
10500 .block_erase = spi_block_erase_d8,
10501 }, {
10502 .eraseblocks = { {2 * 1024 * 1024, 1} },
10503 .block_erase = spi_block_erase_c7,
10504 }
10505 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010506 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010507 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010508 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010509 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010510 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010511 },
10512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010513 {
10514 .vendor = "ST",
10515 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010516 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010517 .manufacture_id = ST_ID,
10518 .model_id = ST_M25P32,
10519 .total_size = 4096,
10520 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010521 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010522 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010523 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010524 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010525 .block_erasers =
10526 {
10527 {
10528 .eraseblocks = { {64 * 1024, 64} },
10529 .block_erase = spi_block_erase_d8,
10530 }, {
10531 .eraseblocks = { {4 * 1024 * 1024, 1} },
10532 .block_erase = spi_block_erase_c7,
10533 }
10534 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010535 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010536 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010537 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010538 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010539 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010540 },
10541
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010542 {
10543 .vendor = "ST",
10544 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010545 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010546 .manufacture_id = ST_ID,
10547 .model_id = ST_M25P64,
10548 .total_size = 8192,
10549 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010550 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010551 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010552 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010553 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010554 .block_erasers =
10555 {
10556 {
10557 .eraseblocks = { {64 * 1024, 128} },
10558 .block_erase = spi_block_erase_d8,
10559 }, {
10560 .eraseblocks = { {8 * 1024 * 1024, 1} },
10561 .block_erase = spi_block_erase_c7,
10562 }
10563 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010564 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010565 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010566 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010567 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010568 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010569 },
10570
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010571 {
10572 .vendor = "ST",
10573 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010574 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010575 .manufacture_id = ST_ID,
10576 .model_id = ST_M25P128,
10577 .total_size = 16384,
10578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010579 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010580 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010581 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010582 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010583 .block_erasers =
10584 {
10585 {
10586 .eraseblocks = { {256 * 1024, 64} },
10587 .block_erase = spi_block_erase_d8,
10588 }, {
10589 .eraseblocks = { {16 * 1024 * 1024, 1} },
10590 .block_erase = spi_block_erase_c7,
10591 }
10592 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010593 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010594 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010595 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010596 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010597 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010598 },
10599
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010600 {
10601 .vendor = "ST",
Nikolay Nikolaevb8e212c2013-06-28 21:29:27 +000010602 .name = "M25PX80",
10603 .bustype = BUS_SPI,
10604 .manufacture_id = ST_ID,
10605 .model_id = ST_M25PX80,
10606 .total_size = 1024,
10607 .page_size = 256,
10608 /* OTP: 64B total; read 0x4B, write 0x42 */
10609 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10610 .tested = TEST_UNTESTED,
10611 .probe = probe_spi_rdid,
10612 .probe_timing = TIMING_ZERO,
10613 .block_erasers = {
10614 {
10615 .eraseblocks = { { 4 * 1024, 256 } },
10616 .block_erase = spi_block_erase_20,
10617 }, {
10618 .eraseblocks = { {64 * 1024, 16} },
10619 .block_erase = spi_block_erase_d8,
10620 }, {
10621 .eraseblocks = { {1024 * 1024, 1} },
10622 .block_erase = spi_block_erase_c7,
10623 }
10624 },
10625 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
10626 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10627 .write = spi_chip_write_256,
10628 .read = spi_chip_read,
10629 .voltage = {2700, 3600},
10630 },
10631
10632 {
10633 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +000010634 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010635 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +000010636 .manufacture_id = ST_ID,
10637 .model_id = ST_M25PX16,
10638 .total_size = 2048,
10639 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +000010640 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +000010641 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +000010642 .tested = TEST_OK_PREW,
10643 .probe = probe_spi_rdid,
10644 .probe_timing = TIMING_ZERO,
10645 .block_erasers =
10646 {
10647 {
10648 .eraseblocks = { { 4 * 1024, 512 } },
10649 .block_erase = spi_block_erase_20,
10650 }, {
10651 .eraseblocks = { {64 * 1024, 32} },
10652 .block_erase = spi_block_erase_d8,
10653 }, {
10654 .eraseblocks = { {2 * 1024 * 1024, 1} },
10655 .block_erase = spi_block_erase_c7,
10656 }
10657 },
Nikolay Nikolaevb8e212c2013-06-28 21:29:27 +000010658 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
10659 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
Carl Worthd1dd72c2011-03-06 18:45:40 +000010660 .write = spi_chip_write_256,
10661 .read = spi_chip_read,
10662 },
10663
10664 {
10665 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +000010666 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010667 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010668 .manufacture_id = ST_ID,
10669 .model_id = ST_M25PX32,
10670 .total_size = 4096,
10671 .page_size = 256,
Nikolay Nikolaevb8e212c2013-06-28 21:29:27 +000010672 /* OTP: 64B total; read 0x4B; write 0x42 */
10673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010674 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010675 .probe = probe_spi_rdid,
10676 .probe_timing = TIMING_ZERO,
10677 .block_erasers =
10678 {
10679 {
10680 .eraseblocks = { { 4 * 1024, 1024 } },
10681 .block_erase = spi_block_erase_20,
10682 }, {
10683 .eraseblocks = { {64 * 1024, 64} },
10684 .block_erase = spi_block_erase_d8,
10685 }, {
10686 .eraseblocks = { {4 * 1024 * 1024, 1} },
10687 .block_erase = spi_block_erase_c7,
10688 }
10689 },
Nikolay Nikolaevb8e212c2013-06-28 21:29:27 +000010690 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
10691 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
Jason Shriver4119e9b2010-09-14 13:16:01 +000010692 .write = spi_chip_write_256,
10693 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010694 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +000010695 },
10696
10697 {
10698 .vendor = "ST",
10699 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010700 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010701 .manufacture_id = ST_ID,
10702 .model_id = ST_M25PX64,
10703 .total_size = 8192,
10704 .page_size = 256,
Nikolay Nikolaevb8e212c2013-06-28 21:29:27 +000010705 /* OTP: 64B total; read 0x4B; write 0x42 */
10706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010707 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010708 .probe = probe_spi_rdid,
10709 .probe_timing = TIMING_ZERO,
10710 .block_erasers =
10711 {
10712 {
10713 .eraseblocks = { { 4 * 1024, 2048 } },
10714 .block_erase = spi_block_erase_20,
10715 }, {
10716 .eraseblocks = { {64 * 1024, 128} },
10717 .block_erase = spi_block_erase_d8,
10718 }, {
10719 .eraseblocks = { {8 * 1024 * 1024, 1} },
10720 .block_erase = spi_block_erase_c7,
10721 }
10722 },
Nikolay Nikolaevb8e212c2013-06-28 21:29:27 +000010723 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
10724 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
Jason Shriver4119e9b2010-09-14 13:16:01 +000010725 .write = spi_chip_write_256,
10726 .read = spi_chip_read,
10727 },
10728
10729 {
10730 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010731 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010732 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010733 .manufacture_id = ST_ID,
10734 .model_id = ST_M29F002B,
10735 .total_size = 256,
10736 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010737 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010738 .tested = TEST_UNTESTED,
10739 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010740 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010741 .block_erasers =
10742 {
10743 {
10744 .eraseblocks = {
10745 {16 * 1024, 1},
10746 {8 * 1024, 2},
10747 {32 * 1024, 1},
10748 {64 * 1024, 3},
10749 },
10750 .block_erase = erase_sector_jedec,
10751 }, {
10752 .eraseblocks = { {256 * 1024, 1} },
10753 .block_erase = erase_chip_block_jedec,
10754 }
10755 },
Sean Nelson35727f72010-01-28 23:55:12 +000010756 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010757 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010758 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010759 },
10760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010761 {
10762 .vendor = "ST",
10763 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010764 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010765 .manufacture_id = ST_ID,
10766 .model_id = ST_M29F002T,
10767 .total_size = 256,
10768 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010769 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010770 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010771 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010772 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010773 .block_erasers =
10774 {
10775 {
10776 .eraseblocks = {
10777 {64 * 1024, 3},
10778 {32 * 1024, 1},
10779 {8 * 1024, 2},
10780 {16 * 1024, 1},
10781 },
10782 .block_erase = erase_sector_jedec,
10783 }, {
10784 .eraseblocks = { {256 * 1024, 1} },
10785 .block_erase = erase_chip_block_jedec,
10786 }
10787 },
Sean Nelson35727f72010-01-28 23:55:12 +000010788 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010789 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010790 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010791 },
10792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010793 {
10794 .vendor = "ST",
10795 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010796 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010797 .manufacture_id = ST_ID,
10798 .model_id = ST_M29F040B,
10799 .total_size = 512,
10800 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010801 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10802 .tested = TEST_UNTESTED,
10803 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010804 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000010805 .block_erasers =
10806 {
10807 {
10808 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000010809 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010810 }, {
10811 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010812 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010813 }
10814 },
Sean Nelson35727f72010-01-28 23:55:12 +000010815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010817 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010818 },
10819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010820 {
Sean Nelson35727f72010-01-28 23:55:12 +000010821 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010822 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010823 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010824 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010825 .manufacture_id = ST_ID,
10826 .model_id = ST_M29F400BB,
10827 .total_size = 512,
10828 .page_size = 64 * 1024,
10829 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010830 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010831 .probe = probe_m29f400bt,
10832 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
10833 .block_erasers =
10834 {
10835 {
10836 .eraseblocks = {
10837 {16 * 1024, 1},
10838 {8 * 1024, 2},
10839 {32 * 1024, 1},
10840 {64 * 1024, 7},
10841 },
10842 .block_erase = block_erase_m29f400bt,
10843 }, {
10844 .eraseblocks = { {512 * 1024, 1} },
10845 .block_erase = block_erase_chip_m29f400bt,
10846 }
10847 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010848 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010850 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010851 },
10852 {
10853 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
10854 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010855 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010856 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010857 .manufacture_id = ST_ID,
10858 .model_id = ST_M29F400BT,
10859 .total_size = 512,
10860 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010861 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010862 .tested = TEST_UNTESTED,
10863 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010864 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010865 .block_erasers =
10866 {
10867 {
10868 .eraseblocks = {
10869 {64 * 1024, 7},
10870 {32 * 1024, 1},
10871 {8 * 1024, 2},
10872 {16 * 1024, 1},
10873 },
10874 .block_erase = block_erase_m29f400bt,
10875 }, {
10876 .eraseblocks = { {512 * 1024, 1} },
10877 .block_erase = block_erase_chip_m29f400bt,
10878 }
10879 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010880 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010882 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010883 },
10884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010885 {
10886 .vendor = "ST",
10887 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010888 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010889 .manufacture_id = ST_ID,
10890 .model_id = ST_M29W010B,
10891 .total_size = 128,
10892 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010893 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010894 .tested = TEST_UNTESTED,
10895 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010896 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010897 .block_erasers =
10898 {
10899 {
10900 .eraseblocks = { {16 * 1024, 8}, },
10901 .block_erase = erase_sector_jedec,
10902 }, {
10903 .eraseblocks = { {128 * 1024, 1} },
10904 .block_erase = erase_chip_block_jedec,
10905 }
10906 },
Sean Nelson35727f72010-01-28 23:55:12 +000010907 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010909 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010910 },
10911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010912 {
10913 .vendor = "ST",
10914 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010915 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010916 .manufacture_id = ST_ID,
10917 .model_id = ST_M29W040B,
10918 .total_size = 512,
10919 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010920 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010921 .tested = TEST_UNTESTED,
10922 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010923 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010924 .block_erasers =
10925 {
10926 {
10927 .eraseblocks = { {64 * 1024, 8}, },
10928 .block_erase = erase_sector_jedec,
10929 }, {
10930 .eraseblocks = { {512 * 1024, 1} },
10931 .block_erase = erase_chip_block_jedec,
10932 }
10933 },
Sean Nelson35727f72010-01-28 23:55:12 +000010934 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010935 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010936 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010937 },
10938
Stefan Taunereb582572012-09-21 12:52:50 +000010939 {
10940 .vendor = "ST",
10941 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010942 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000010943 .manufacture_id = ST_ID,
10944 .model_id = ST_M29W512B,
10945 .total_size = 64,
10946 .page_size = 64 * 1024,
10947 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010948 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +000010949 .probe = probe_jedec,
10950 .probe_timing = TIMING_ZERO,
10951 .block_erasers =
10952 {
10953 {
10954 .eraseblocks = { {64 * 1024, 1} },
10955 .block_erase = erase_chip_block_jedec,
10956 }
10957 },
10958 .write = write_jedec_1,
10959 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010960 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000010961 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000010962
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010963 {
10964 .vendor = "ST",
10965 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010966 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010967 .manufacture_id = ST_ID,
10968 .model_id = ST_M50FLW040A,
10969 .total_size = 512,
10970 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010971 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010972 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010973 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010974 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010975 .block_erasers =
10976 {
10977 {
Sean Nelson329bde72010-01-19 16:39:19 +000010978 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010979 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010980 {64 * 1024, 5}, /* block */
10981 {4 * 1024, 16}, /* sector */
10982 {4 * 1024, 16}, /* sector */
10983 },
10984 .block_erase = NULL,
10985 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010986 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010987 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010988 }
10989 },
Sean Nelson28accc22010-03-19 18:47:06 +000010990 .unlock = unlock_stm50flw0x0x,
10991 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010993 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010994 },
10995
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010996 {
10997 .vendor = "ST",
10998 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010999 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011000 .manufacture_id = ST_ID,
11001 .model_id = ST_M50FLW040B,
11002 .total_size = 512,
11003 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011004 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011005 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011006 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011007 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011008 .block_erasers =
11009 {
11010 {
Sean Nelson329bde72010-01-19 16:39:19 +000011011 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011012 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011013 {4 * 1024, 16}, /* sector */
11014 {64 * 1024, 5}, /* block */
11015 {4 * 1024, 16}, /* sector */
11016 },
11017 .block_erase = NULL,
11018 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011019 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011020 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011021 }
11022 },
Sean Nelson28accc22010-03-19 18:47:06 +000011023 .unlock = unlock_stm50flw0x0x,
11024 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011026 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011027 },
11028
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011029 {
11030 .vendor = "ST",
11031 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011032 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011033 .manufacture_id = ST_ID,
11034 .model_id = ST_M50FLW080A,
11035 .total_size = 1024,
11036 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011037 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011038 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011039 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011040 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011041 .block_erasers =
11042 {
11043 {
Sean Nelson329bde72010-01-19 16:39:19 +000011044 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011045 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011046 {64 * 1024, 13}, /* block */
11047 {4 * 1024, 16}, /* sector */
11048 {4 * 1024, 16}, /* sector */
11049 },
11050 .block_erase = NULL,
11051 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011052 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011053 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011054 }
11055 },
Sean Nelson28accc22010-03-19 18:47:06 +000011056 .unlock = unlock_stm50flw0x0x,
11057 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011058 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011059 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011060 },
11061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011062 {
11063 .vendor = "ST",
11064 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011065 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011066 .manufacture_id = ST_ID,
11067 .model_id = ST_M50FLW080B,
11068 .total_size = 1024,
11069 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011070 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011071 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011072 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011073 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011074 .block_erasers =
11075 {
11076 {
Sean Nelson329bde72010-01-19 16:39:19 +000011077 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011078 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011079 {4 * 1024, 16}, /* sector */
11080 {64 * 1024, 13}, /* block */
11081 {4 * 1024, 16}, /* sector */
11082 },
11083 .block_erase = NULL,
11084 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011085 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011086 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011087 }
11088 },
Sean Nelson28accc22010-03-19 18:47:06 +000011089 .unlock = unlock_stm50flw0x0x,
11090 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011091 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011092 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011093 },
11094
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011095 {
11096 .vendor = "ST",
11097 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011098 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011099 .manufacture_id = ST_ID,
11100 .model_id = ST_M50FW002,
11101 .total_size = 256,
11102 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011103 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011104 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011105 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011106 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011107 .block_erasers =
11108 {
11109 {
11110 .eraseblocks = {
11111 {64 * 1024, 3},
11112 {32 * 1024, 1},
11113 {8 * 1024, 2},
11114 {16 * 1024, 1},
11115 },
Sean Nelson28accc22010-03-19 18:47:06 +000011116 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011117 }
11118 },
Sean Nelson28accc22010-03-19 18:47:06 +000011119 .unlock = unlock_stm50flw0x0x,
11120 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011122 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011123 },
11124
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011125 {
11126 .vendor = "ST",
11127 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011128 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011129 .manufacture_id = ST_ID,
11130 .model_id = ST_M50FW016,
11131 .total_size = 2048,
11132 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011133 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011134 .tested = TEST_UNTESTED,
11135 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011136 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011137 .block_erasers =
11138 {
11139 {
11140 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011141 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011142 }
11143 },
Sean Nelson28accc22010-03-19 18:47:06 +000011144 .unlock = unlock_stm50flw0x0x,
11145 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011147 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011148 },
11149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011150 {
11151 .vendor = "ST",
11152 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011153 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011154 .manufacture_id = ST_ID,
11155 .model_id = ST_M50FW040,
11156 .total_size = 512,
11157 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011158 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011159 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011160 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011161 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011162 .block_erasers =
11163 {
11164 {
11165 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011166 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011167 }
11168 },
Sean Nelson28accc22010-03-19 18:47:06 +000011169 .unlock = unlock_stm50flw0x0x,
11170 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011172 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011173 },
11174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011175 {
11176 .vendor = "ST",
11177 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011178 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011179 .manufacture_id = ST_ID,
11180 .model_id = ST_M50FW080,
11181 .total_size = 1024,
11182 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011183 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011184 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011185 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011186 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011187 .block_erasers =
11188 {
11189 {
11190 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011191 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011192 }
11193 },
Sean Nelson28accc22010-03-19 18:47:06 +000011194 .unlock = unlock_stm50flw0x0x,
11195 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011197 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011198 },
11199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011200 {
11201 .vendor = "ST",
11202 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011203 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011204 .manufacture_id = ST_ID,
11205 .model_id = ST_M50LPW116,
11206 .total_size = 2048,
11207 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011208 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011209 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011210 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011211 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011212 .block_erasers =
11213 {
11214 {
11215 .eraseblocks = {
11216 {4 * 1024, 16},
11217 {64 * 1024, 30},
11218 {32 * 1024, 1},
11219 {8 * 1024, 2},
11220 {16 * 1024, 1},
11221 },
Sean Nelson28accc22010-03-19 18:47:06 +000011222 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011223 }
11224 },
Sean Nelson28accc22010-03-19 18:47:06 +000011225 .unlock = unlock_stm50flw0x0x,
11226 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011227 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011228 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011229 },
11230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011231 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011232 .vendor = "SyncMOS/MoselVitelic",
11233 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011234 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011235 .manufacture_id = SYNCMOS_MVC_ID,
11236 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011237 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011238 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011239 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011240 .tested = TEST_UNTESTED,
11241 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011242 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011243 .block_erasers =
11244 {
11245 {
11246 .eraseblocks = { {512, 256} },
11247 .block_erase = erase_sector_jedec,
11248 }, {
11249 .eraseblocks = { {128 * 1024, 1} },
11250 .block_erase = erase_chip_block_jedec,
11251 },
11252 },
Sean Nelson35727f72010-01-28 23:55:12 +000011253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011256 },
11257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011258 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011259 .vendor = "SyncMOS/MoselVitelic",
11260 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011261 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011262 .manufacture_id = SYNCMOS_MVC_ID,
11263 .model_id = SM_MVC_29C51001T,
11264 .total_size = 128,
11265 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011266 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011267 .tested = TEST_UNTESTED,
11268 .probe = probe_jedec,
11269 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11270 .block_erasers =
11271 {
11272 {
11273 .eraseblocks = { {512, 256} },
11274 .block_erase = erase_sector_jedec,
11275 }, {
11276 .eraseblocks = { {128 * 1024, 1} },
11277 .block_erase = erase_chip_block_jedec,
11278 },
11279 },
11280 .write = write_jedec_1,
11281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011282 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011283 },
11284
11285 {
11286 .vendor = "SyncMOS/MoselVitelic",
11287 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011288 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011289 .manufacture_id = SYNCMOS_MVC_ID,
11290 .model_id = SM_MVC_29C51002B,
11291 .total_size = 256,
11292 .page_size = 512,
11293 .feature_bits = FEATURE_EITHER_RESET,
11294 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011296 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011297 .block_erasers =
11298 {
11299 {
11300 .eraseblocks = { {512, 512} },
11301 .block_erase = erase_sector_jedec,
11302 }, {
11303 .eraseblocks = { {256 * 1024, 1} },
11304 .block_erase = erase_chip_block_jedec,
11305 },
11306 },
Sean Nelson35727f72010-01-28 23:55:12 +000011307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011308 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011309 },
11310
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011311 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011312 .vendor = "SyncMOS/MoselVitelic",
11313 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011314 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011315 .manufacture_id = SYNCMOS_MVC_ID,
11316 .model_id = SM_MVC_29C51002T,
11317 .total_size = 256,
11318 .page_size = 512,
11319 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011320 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011321 .probe = probe_jedec,
11322 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11323 .block_erasers =
11324 {
11325 {
11326 .eraseblocks = { {512, 512} },
11327 .block_erase = erase_sector_jedec,
11328 }, {
11329 .eraseblocks = { {256 * 1024, 1} },
11330 .block_erase = erase_chip_block_jedec,
11331 },
11332 },
11333 .write = write_jedec_1,
11334 .read = read_memmapped,
11335 },
11336
11337 {
11338 .vendor = "SyncMOS/MoselVitelic",
11339 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011340 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011341 .manufacture_id = SYNCMOS_MVC_ID,
11342 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011343 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011344 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011345 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011346 .tested = TEST_UNTESTED,
11347 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011348 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011349 .block_erasers =
11350 {
11351 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011352 .eraseblocks = { {1024, 512} },
11353 .block_erase = erase_sector_jedec,
11354 }, {
11355 .eraseblocks = { {512 * 1024, 1} },
11356 .block_erase = erase_chip_block_jedec,
11357 },
11358 },
11359 .write = write_jedec_1,
11360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011361 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011362 },
11363
11364 {
11365 .vendor = "SyncMOS/MoselVitelic",
11366 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011367 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011368 .manufacture_id = SYNCMOS_MVC_ID,
11369 .model_id = SM_MVC_29C51004T,
11370 .total_size = 512,
11371 .page_size = 1024,
11372 .feature_bits = FEATURE_EITHER_RESET,
11373 .tested = TEST_UNTESTED,
11374 .probe = probe_jedec,
11375 .probe_timing = TIMING_ZERO,
11376 .block_erasers =
11377 {
11378 {
11379 .eraseblocks = { {1024, 512} },
11380 .block_erase = erase_sector_jedec,
11381 }, {
11382 .eraseblocks = { {512 * 1024, 1} },
11383 .block_erase = erase_chip_block_jedec,
11384 },
11385 },
11386 .write = write_jedec_1,
11387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011388 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011389 },
11390
11391 {
11392 .vendor = "SyncMOS/MoselVitelic",
11393 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011394 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011395 .manufacture_id = SYNCMOS_MVC_ID,
11396 .model_id = SM_MVC_29C31004B,
11397 .total_size = 512,
11398 .page_size = 1024,
11399 .feature_bits = FEATURE_EITHER_RESET,
11400 .tested = TEST_UNTESTED,
11401 .probe = probe_jedec,
11402 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11403 .block_erasers =
11404 {
11405 {
11406 .eraseblocks = { {1024, 512} },
11407 .block_erase = erase_sector_jedec,
11408 }, {
11409 .eraseblocks = { {512 * 1024, 1} },
11410 .block_erase = erase_chip_block_jedec,
11411 },
11412 },
11413 .write = write_jedec_1,
11414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011415 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011416 },
11417
11418 {
11419 .vendor = "SyncMOS/MoselVitelic",
11420 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011421 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011422 .manufacture_id = SYNCMOS_MVC_ID,
11423 .model_id = SM_MVC_29C31004T,
11424 .total_size = 512,
11425 .page_size = 1024,
11426 .feature_bits = FEATURE_EITHER_RESET,
11427 .tested = TEST_UNTESTED,
11428 .probe = probe_jedec,
11429 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11430 .block_erasers =
11431 {
11432 {
11433 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011434 .block_erase = erase_sector_jedec,
11435 }, {
11436 .eraseblocks = { {512 * 1024, 1} },
11437 .block_erase = erase_chip_block_jedec,
11438 },
11439 },
Sean Nelson35727f72010-01-28 23:55:12 +000011440 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011441 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011442 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011443 },
11444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011445 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011446 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011447 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011448 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011449 .manufacture_id = TI_OLD_ID,
11450 .model_id = TI_TMS29F002RB,
11451 .total_size = 256,
11452 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011453 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011454 .tested = TEST_UNTESTED,
11455 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011456 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011457 .block_erasers =
11458 {
11459 {
11460 .eraseblocks = {
11461 {16 * 1024, 1},
11462 {8 * 1024, 2},
11463 {32 * 1024, 1},
11464 {64 * 1024, 3},
11465 },
11466 .block_erase = erase_sector_jedec,
11467 }, {
11468 .eraseblocks = { {256 * 1024, 1} },
11469 .block_erase = erase_chip_block_jedec,
11470 },
11471 },
Sean Nelson35727f72010-01-28 23:55:12 +000011472 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011473 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011474 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011475 },
11476
11477 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011478 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011479 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011480 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011481 .manufacture_id = TI_OLD_ID,
11482 .model_id = TI_TMS29F002RT,
11483 .total_size = 256,
11484 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011485 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011486 .tested = TEST_UNTESTED,
11487 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011488 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011489 .block_erasers =
11490 {
11491 {
11492 .eraseblocks = {
11493 {64 * 1024, 3},
11494 {32 * 1024, 1},
11495 {8 * 1024, 2},
11496 {16 * 1024, 1},
11497 },
11498 .block_erase = erase_sector_jedec,
11499 }, {
11500 .eraseblocks = { {256 * 1024, 1} },
11501 .block_erase = erase_chip_block_jedec,
11502 },
11503 },
Sean Nelson35727f72010-01-28 23:55:12 +000011504 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011505 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011506 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011507 },
11508
11509 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011510 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011511 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011512 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011513 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011514 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011515 .total_size = 1024,
11516 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011517 /* supports SFDP */
11518 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011519 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011520 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011521 .probe = probe_spi_rdid,
11522 .probe_timing = TIMING_ZERO,
11523 .block_erasers =
11524 {
11525 {
11526 .eraseblocks = { {4 * 1024, 256} },
11527 .block_erase = spi_block_erase_20,
11528 }, {
11529 .eraseblocks = { {32 * 1024, 32} },
11530 .block_erase = spi_block_erase_52,
11531 }, {
11532 .eraseblocks = { {64 * 1024, 16} },
11533 .block_erase = spi_block_erase_d8,
11534 }, {
11535 .eraseblocks = { {1024 * 1024, 1} },
11536 .block_erase = spi_block_erase_60,
11537 }, {
11538 .eraseblocks = { {1024 * 1024, 1} },
11539 .block_erase = spi_block_erase_c7,
11540 }
11541 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011542 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011543 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011544 .write = spi_chip_write_256,
11545 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011546 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011547 },
11548
11549 {
11550 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011551 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011552 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011553 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011554 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011555 .total_size = 2048,
11556 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011557 /* supports SFDP */
11558 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011559 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000011560 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011561 .probe = probe_spi_rdid,
11562 .probe_timing = TIMING_ZERO,
11563 .block_erasers =
11564 {
11565 {
11566 .eraseblocks = { {4 * 1024, 512} },
11567 .block_erase = spi_block_erase_20,
11568 }, {
11569 .eraseblocks = { {32 * 1024, 64} },
11570 .block_erase = spi_block_erase_52,
11571 }, {
11572 .eraseblocks = { {64 * 1024, 32} },
11573 .block_erase = spi_block_erase_d8,
11574 }, {
11575 .eraseblocks = { {2 * 1024 * 1024, 1} },
11576 .block_erase = spi_block_erase_60,
11577 }, {
11578 .eraseblocks = { {2 * 1024 * 1024, 1} },
11579 .block_erase = spi_block_erase_c7,
11580 }
11581 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011582 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011583 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011584 .write = spi_chip_write_256,
11585 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011586 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011587 },
11588
11589 {
11590 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011591 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011592 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011593 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011594 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011595 .total_size = 4096,
11596 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011597 /* supports SFDP */
11598 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011599 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011600 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011601 .probe = probe_spi_rdid,
11602 .probe_timing = TIMING_ZERO,
11603 .block_erasers =
11604 {
11605 {
11606 .eraseblocks = { {4 * 1024, 1024} },
11607 .block_erase = spi_block_erase_20,
11608 }, {
11609 .eraseblocks = { {32 * 1024, 128} },
11610 .block_erase = spi_block_erase_52,
11611 }, {
11612 .eraseblocks = { {64 * 1024, 64} },
11613 .block_erase = spi_block_erase_d8,
11614 }, {
11615 .eraseblocks = { {4 * 1024 * 1024, 1} },
11616 .block_erase = spi_block_erase_60,
11617 }, {
11618 .eraseblocks = { {4 * 1024 * 1024, 1} },
11619 .block_erase = spi_block_erase_c7,
11620 }
11621 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011622 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011623 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011624 .write = spi_chip_write_256,
11625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011626 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011627 },
11628
11629 {
11630 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011631 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011632 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000011633 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011634 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000011635 .total_size = 8192,
11636 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011637 /* supports SFDP */
11638 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011640 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000011641 .probe = probe_spi_rdid,
11642 .probe_timing = TIMING_ZERO,
11643 .block_erasers =
11644 {
11645 {
11646 .eraseblocks = { {4 * 1024, 2048} },
11647 .block_erase = spi_block_erase_20,
11648 }, {
11649 .eraseblocks = { {32 * 1024, 256} },
11650 .block_erase = spi_block_erase_52,
11651 }, {
11652 .eraseblocks = { {64 * 1024, 128} },
11653 .block_erase = spi_block_erase_d8,
11654 }, {
11655 .eraseblocks = { {8 * 1024 * 1024, 1} },
11656 .block_erase = spi_block_erase_60,
11657 }, {
11658 .eraseblocks = { {8 * 1024 * 1024, 1} },
11659 .block_erase = spi_block_erase_c7,
11660 }
11661 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011663 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000011664 .write = spi_chip_write_256,
11665 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011666 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000011667 },
11668
11669 {
11670 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011671 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011672 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011673 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011674 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011675 .total_size = 16384,
11676 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011677 /* supports SFDP */
11678 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011679 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011680 .tested = TEST_OK_PROBE,
11681 .probe = probe_spi_rdid,
11682 .probe_timing = TIMING_ZERO,
11683 .block_erasers =
11684 {
11685 {
11686 .eraseblocks = { {4 * 1024, 4096} },
11687 .block_erase = spi_block_erase_20,
11688 }, {
11689 .eraseblocks = { {32 * 1024, 512} },
11690 .block_erase = spi_block_erase_52,
11691 }, {
11692 .eraseblocks = { {64 * 1024, 256} },
11693 .block_erase = spi_block_erase_d8,
11694 }, {
11695 .eraseblocks = { {16 * 1024 * 1024, 1} },
11696 .block_erase = spi_block_erase_60,
11697 }, {
11698 .eraseblocks = { {16 * 1024 * 1024, 1} },
11699 .block_erase = spi_block_erase_c7,
11700 }
11701 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011702 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011703 .unlock = spi_disable_blockprotect,
11704 .write = spi_chip_write_256,
11705 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011706 .voltage = {2700, 3600},
11707 },
11708
11709 {
11710 .vendor = "Winbond",
11711 .name = "W25Q20.W",
11712 .bustype = BUS_SPI,
11713 .manufacture_id = WINBOND_NEX_ID,
11714 .model_id = WINBOND_NEX_W25Q20_W,
11715 .total_size = 256,
11716 .page_size = 256,
11717 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11718 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11719 .tested = TEST_UNTESTED,
11720 .probe = probe_spi_rdid,
11721 .probe_timing = TIMING_ZERO,
11722 .block_erasers =
11723 {
11724 {
11725 .eraseblocks = { {4 * 1024, 64} },
11726 .block_erase = spi_block_erase_20,
11727 }, {
11728 .eraseblocks = { {32 * 1024, 8} },
11729 .block_erase = spi_block_erase_52,
11730 }, {
11731 .eraseblocks = { {64 * 1024, 4} },
11732 .block_erase = spi_block_erase_d8,
11733 }, {
11734 .eraseblocks = { {256 * 1024, 1} },
11735 .block_erase = spi_block_erase_60,
11736 }, {
11737 .eraseblocks = { {256 * 1024, 1} },
11738 .block_erase = spi_block_erase_c7,
11739 }
11740 },
11741 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11742 .unlock = spi_disable_blockprotect,
11743 .write = spi_chip_write_256,
11744 .read = spi_chip_read,
11745 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11746 },
11747
11748 {
11749 .vendor = "Winbond",
11750 .name = "W25Q40.W",
11751 .bustype = BUS_SPI,
11752 .manufacture_id = WINBOND_NEX_ID,
11753 .model_id = WINBOND_NEX_W25Q40_W,
11754 .total_size = 512,
11755 .page_size = 256,
11756 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11758 .tested = TEST_UNTESTED,
11759 .probe = probe_spi_rdid,
11760 .probe_timing = TIMING_ZERO,
11761 .block_erasers =
11762 {
11763 {
11764 .eraseblocks = { {4 * 1024, 128} },
11765 .block_erase = spi_block_erase_20,
11766 }, {
11767 .eraseblocks = { {32 * 1024, 16} },
11768 .block_erase = spi_block_erase_52,
11769 }, {
11770 .eraseblocks = { {64 * 1024, 8} },
11771 .block_erase = spi_block_erase_d8,
11772 }, {
11773 .eraseblocks = { {512 * 1024, 1} },
11774 .block_erase = spi_block_erase_60,
11775 }, {
11776 .eraseblocks = { {512 * 1024, 1} },
11777 .block_erase = spi_block_erase_c7,
11778 }
11779 },
11780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11781 .unlock = spi_disable_blockprotect,
11782 .write = spi_chip_write_256,
11783 .read = spi_chip_read,
11784 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11785 },
11786
11787 {
11788 .vendor = "Winbond",
11789 .name = "W25Q80.W",
11790 .bustype = BUS_SPI,
11791 .manufacture_id = WINBOND_NEX_ID,
11792 .model_id = WINBOND_NEX_W25Q80_W,
11793 .total_size = 1024,
11794 .page_size = 256,
11795 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11797 .tested = TEST_UNTESTED,
11798 .probe = probe_spi_rdid,
11799 .probe_timing = TIMING_ZERO,
11800 .block_erasers =
11801 {
11802 {
11803 .eraseblocks = { {4 * 1024, 256} },
11804 .block_erase = spi_block_erase_20,
11805 }, {
11806 .eraseblocks = { {32 * 1024, 32} },
11807 .block_erase = spi_block_erase_52,
11808 }, {
11809 .eraseblocks = { {64 * 1024, 16} },
11810 .block_erase = spi_block_erase_d8,
11811 }, {
11812 .eraseblocks = { {1 * 1024 * 1024, 1} },
11813 .block_erase = spi_block_erase_60,
11814 }, {
11815 .eraseblocks = { {1 * 1024 * 1024, 1} },
11816 .block_erase = spi_block_erase_c7,
11817 }
11818 },
11819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11820 .unlock = spi_disable_blockprotect,
11821 .write = spi_chip_write_256,
11822 .read = spi_chip_read,
11823 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11824 },
11825
11826 {
11827 .vendor = "Winbond",
11828 .name = "W25Q16.W",
11829 .bustype = BUS_SPI,
11830 .manufacture_id = WINBOND_NEX_ID,
11831 .model_id = WINBOND_NEX_W25Q16_W,
11832 .total_size = 2048,
11833 .page_size = 256,
11834 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11835 /* QPI enable 0x38, disable 0xFF */
11836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11837 .tested = TEST_UNTESTED,
11838 .probe = probe_spi_rdid,
11839 .probe_timing = TIMING_ZERO,
11840 .block_erasers =
11841 {
11842 {
11843 .eraseblocks = { {4 * 1024, 512} },
11844 .block_erase = spi_block_erase_20,
11845 }, {
11846 .eraseblocks = { {32 * 1024, 64} },
11847 .block_erase = spi_block_erase_52,
11848 }, {
11849 .eraseblocks = { {64 * 1024, 32} },
11850 .block_erase = spi_block_erase_d8,
11851 }, {
11852 .eraseblocks = { {2 * 1024 * 1024, 1} },
11853 .block_erase = spi_block_erase_60,
11854 }, {
11855 .eraseblocks = { {2 * 1024 * 1024, 1} },
11856 .block_erase = spi_block_erase_c7,
11857 }
11858 },
11859 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11860 .unlock = spi_disable_blockprotect,
11861 .write = spi_chip_write_256,
11862 .read = spi_chip_read,
11863 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11864 },
11865
11866 {
11867 .vendor = "Winbond",
11868 .name = "W25Q32.W",
11869 .bustype = BUS_SPI,
11870 .manufacture_id = WINBOND_NEX_ID,
11871 .model_id = WINBOND_NEX_W25Q32_W,
11872 .total_size = 4096,
11873 .page_size = 256,
11874 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11875 /* QPI enable 0x38, disable 0xFF */
11876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11877 .tested = TEST_OK_PREW,
11878 .probe = probe_spi_rdid,
11879 .probe_timing = TIMING_ZERO,
11880 .block_erasers =
11881 {
11882 {
11883 .eraseblocks = { {4 * 1024, 1024} },
11884 .block_erase = spi_block_erase_20,
11885 }, {
11886 .eraseblocks = { {32 * 1024, 128} },
11887 .block_erase = spi_block_erase_52,
11888 }, {
11889 .eraseblocks = { {64 * 1024, 64} },
11890 .block_erase = spi_block_erase_d8,
11891 }, {
11892 .eraseblocks = { {4 * 1024 * 1024, 1} },
11893 .block_erase = spi_block_erase_60,
11894 }, {
11895 .eraseblocks = { {4 * 1024 * 1024, 1} },
11896 .block_erase = spi_block_erase_c7,
11897 }
11898 },
11899 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11900 .unlock = spi_disable_blockprotect,
11901 .write = spi_chip_write_256,
11902 .read = spi_chip_read,
11903 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11904 },
11905
11906 {
11907 .vendor = "Winbond",
11908 .name = "W25Q64.W",
11909 .bustype = BUS_SPI,
11910 .manufacture_id = WINBOND_NEX_ID,
11911 .model_id = WINBOND_NEX_W25Q64_W,
11912 .total_size = 8192,
11913 .page_size = 256,
11914 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11915 /* QPI enable 0x38, disable 0xFF */
11916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11917 .tested = TEST_UNTESTED,
11918 .probe = probe_spi_rdid,
11919 .probe_timing = TIMING_ZERO,
11920 .block_erasers =
11921 {
11922 {
11923 .eraseblocks = { {4 * 1024, 2048} },
11924 .block_erase = spi_block_erase_20,
11925 }, {
11926 .eraseblocks = { {32 * 1024, 256} },
11927 .block_erase = spi_block_erase_52,
11928 }, {
11929 .eraseblocks = { {64 * 1024, 128} },
11930 .block_erase = spi_block_erase_d8,
11931 }, {
11932 .eraseblocks = { {8 * 1024 * 1024, 1} },
11933 .block_erase = spi_block_erase_60,
11934 }, {
11935 .eraseblocks = { {8 * 1024 * 1024, 1} },
11936 .block_erase = spi_block_erase_c7,
11937 }
11938 },
11939 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11940 .unlock = spi_disable_blockprotect,
11941 .write = spi_chip_write_256,
11942 .read = spi_chip_read,
11943 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011944 },
11945
11946 {
11947 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011948 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011949 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011950 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011951 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011952 .total_size = 128,
11953 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011954 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011955 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011956 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011957 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011958 .block_erasers =
11959 {
11960 {
11961 .eraseblocks = { {4 * 1024, 32} },
11962 .block_erase = spi_block_erase_20,
11963 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011964 .eraseblocks = { {64 * 1024, 2} },
11965 .block_erase = spi_block_erase_d8,
11966 }, {
11967 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011968 .block_erase = spi_block_erase_c7,
11969 }
11970 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011971 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011972 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011973 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011974 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011975 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011976 },
11977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011978 {
11979 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011980 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011981 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011982 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011983 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011984 .total_size = 256,
11985 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011986 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011987 .tested = TEST_UNTESTED,
11988 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011989 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011990 .block_erasers =
11991 {
11992 {
11993 .eraseblocks = { {4 * 1024, 64} },
11994 .block_erase = spi_block_erase_20,
11995 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011996 .eraseblocks = { {64 * 1024, 4} },
11997 .block_erase = spi_block_erase_d8,
11998 }, {
11999 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012000 .block_erase = spi_block_erase_c7,
12001 }
12002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012004 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012005 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012007 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012008 },
12009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012010 {
12011 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012012 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012013 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012014 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012015 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012016 .total_size = 512,
12017 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012018 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012019 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012020 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012021 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012022 .block_erasers =
12023 {
12024 {
12025 .eraseblocks = { {4 * 1024, 128} },
12026 .block_erase = spi_block_erase_20,
12027 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012028 .eraseblocks = { {64 * 1024, 8} },
12029 .block_erase = spi_block_erase_d8,
12030 }, {
12031 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012032 .block_erase = spi_block_erase_c7,
12033 }
12034 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012035 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012037 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012038 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012039 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012040 },
12041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012042 {
12043 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012044 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012045 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012046 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012047 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012048 .total_size = 1024,
12049 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012050 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012051 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012052 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012053 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012054 .block_erasers =
12055 {
12056 {
12057 .eraseblocks = { {4 * 1024, 256} },
12058 .block_erase = spi_block_erase_20,
12059 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012060 .eraseblocks = { {64 * 1024, 16} },
12061 .block_erase = spi_block_erase_d8,
12062 }, {
12063 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012064 .block_erase = spi_block_erase_c7,
12065 }
12066 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012067 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012068 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012069 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012070 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012071 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012072 },
12073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012074 {
12075 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012076 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012077 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012078 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012079 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012080 .total_size = 2048,
12081 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012082 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012083 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012084 .probe = probe_spi_rdid,
12085 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012086 .block_erasers =
12087 {
12088 {
12089 .eraseblocks = { {4 * 1024, 512} },
12090 .block_erase = spi_block_erase_20,
12091 }, {
12092 .eraseblocks = { {32 * 1024, 64} },
12093 .block_erase = spi_block_erase_52,
12094 }, {
12095 .eraseblocks = { {64 * 1024, 32} },
12096 .block_erase = spi_block_erase_d8,
12097 }, {
12098 .eraseblocks = { {2 * 1024 * 1024, 1} },
12099 .block_erase = spi_block_erase_60,
12100 }, {
12101 .eraseblocks = { {2 * 1024 * 1024, 1} },
12102 .block_erase = spi_block_erase_c7,
12103 }
12104 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012106 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012107 .write = spi_chip_write_256,
12108 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012109 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012110 },
12111
12112 {
12113 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012114 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012115 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012116 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012117 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012118 .total_size = 4096,
12119 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012120 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000012121 .tested = TEST_OK_PROBE,
12122 .probe = probe_spi_rdid,
12123 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012124 .block_erasers =
12125 {
12126 {
12127 .eraseblocks = { {4 * 1024, 1024} },
12128 .block_erase = spi_block_erase_20,
12129 }, {
12130 .eraseblocks = { {32 * 1024, 128} },
12131 .block_erase = spi_block_erase_52,
12132 }, {
12133 .eraseblocks = { {64 * 1024, 64} },
12134 .block_erase = spi_block_erase_d8,
12135 }, {
12136 .eraseblocks = { {4 * 1024 * 1024, 1} },
12137 .block_erase = spi_block_erase_60,
12138 }, {
12139 .eraseblocks = { {4 * 1024 * 1024, 1} },
12140 .block_erase = spi_block_erase_c7,
12141 }
12142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012144 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012145 .write = spi_chip_write_256,
12146 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012147 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012148 },
12149
12150 {
12151 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012152 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012153 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012154 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012155 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012156 .total_size = 8192,
12157 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012158 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012159 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012160 .probe = probe_spi_rdid,
12161 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012162 .block_erasers =
12163 {
12164 {
12165 .eraseblocks = { {4 * 1024, 2048} },
12166 .block_erase = spi_block_erase_20,
12167 }, {
12168 .eraseblocks = { {32 * 1024, 256} },
12169 .block_erase = spi_block_erase_52,
12170 }, {
12171 .eraseblocks = { {64 * 1024, 128} },
12172 .block_erase = spi_block_erase_d8,
12173 }, {
12174 .eraseblocks = { {8 * 1024 * 1024, 1} },
12175 .block_erase = spi_block_erase_60,
12176 }, {
12177 .eraseblocks = { {8 * 1024 * 1024, 1} },
12178 .block_erase = spi_block_erase_c7,
12179 }
12180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012182 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012183 .write = spi_chip_write_256,
12184 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012185 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012186 },
12187
12188 {
12189 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012190 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012191 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012192 .manufacture_id = WINBOND_ID,
12193 .model_id = WINBOND_W29C010,
12194 .total_size = 128,
12195 .page_size = 128,
12196 .feature_bits = FEATURE_LONG_RESET,
12197 .tested = TEST_OK_PRE,
12198 .probe = probe_w29ee011,
12199 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12200 .block_erasers =
12201 {
12202 {
12203 .eraseblocks = { {128 * 1024, 1} },
12204 .block_erase = erase_chip_block_jedec,
12205 }
12206 },
12207 .write = write_jedec,
12208 .read = read_memmapped,
12209 },
12210
12211 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12212 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012213 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012214 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012215 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012216 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012217 .total_size = 128,
12218 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012219 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012221 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012222 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012223 .block_erasers =
12224 {
12225 {
12226 .eraseblocks = { {128 * 1024, 1} },
12227 .block_erase = erase_chip_block_jedec,
12228 }
12229 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012230 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012231 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012232 },
12233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012234 {
12235 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012236 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012237 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012238 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012239 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012240 .total_size = 256,
12241 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012242 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012243 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012244 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012245 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012246 .block_erasers =
12247 {
12248 {
12249 .eraseblocks = { {256 * 1024, 1} },
12250 .block_erase = erase_chip_block_jedec,
12251 }
12252 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012253 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012256 },
12257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012258 {
12259 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012260 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012261 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012262 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012263 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012264 .total_size = 512,
12265 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012266 .feature_bits = FEATURE_LONG_RESET,
12267 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012268 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +000012269 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012270 .block_erasers =
12271 {
12272 {
12273 .eraseblocks = { {512 * 1024, 1} },
12274 .block_erase = erase_chip_block_jedec,
12275 }
12276 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012277 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012279 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012280 },
12281
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012282 {
12283 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012284 .name = "W39F010",
12285 .bustype = BUS_PARALLEL,
12286 .manufacture_id = WINBOND_ID,
12287 .model_id = WINBOND_W39F010,
12288 .total_size = 128,
12289 .page_size = 4 * 1024,
12290 .feature_bits = FEATURE_EITHER_RESET,
12291 .tested = TEST_OK_PREW,
12292 .probe = probe_jedec,
12293 .probe_timing = 10,
12294 .block_erasers =
12295 {
12296 {
12297 .eraseblocks = { {4 * 1024, 32} },
12298 .block_erase = erase_block_jedec,
12299 }, {
12300 .eraseblocks = { {128 * 1024, 1} },
12301 .block_erase = erase_chip_block_jedec,
12302 }
12303 },
12304 .printlock = printlock_w39f010,
12305 .write = write_jedec_1,
12306 .read = read_memmapped,
12307 .voltage = {4500, 5500},
12308 },
12309
12310 {
12311 .vendor = "Winbond",
12312 .name = "W39L010",
12313 .bustype = BUS_PARALLEL,
12314 .manufacture_id = WINBOND_ID,
12315 .model_id = WINBOND_W39L010,
12316 .total_size = 128,
12317 .page_size = 4 * 1024,
12318 .feature_bits = FEATURE_EITHER_RESET,
12319 .tested = TEST_UNTESTED,
12320 .probe = probe_jedec,
12321 .probe_timing = 10,
12322 .block_erasers =
12323 {
12324 {
12325 .eraseblocks = { {4 * 1024, 32} },
12326 .block_erase = erase_block_jedec,
12327 }, {
12328 .eraseblocks = { {128 * 1024, 1} },
12329 .block_erase = erase_chip_block_jedec,
12330 }
12331 },
12332 .printlock = printlock_w39l010,
12333 .write = write_jedec_1,
12334 .read = read_memmapped,
12335 .voltage = {3000, 3600},
12336 },
12337
12338 {
12339 .vendor = "Winbond",
12340 .name = "W39L020",
12341 .bustype = BUS_PARALLEL,
12342 .manufacture_id = WINBOND_ID,
12343 .model_id = WINBOND_W39L020,
12344 .total_size = 256,
12345 .page_size = 4 * 1024,
12346 .feature_bits = FEATURE_EITHER_RESET,
12347 .tested = TEST_UNTESTED,
12348 .probe = probe_jedec,
12349 .probe_timing = 10,
12350 .block_erasers =
12351 {
12352 {
12353 .eraseblocks = { {4 * 1024, 64} },
12354 .block_erase = erase_block_jedec,
12355 }, {
12356 .eraseblocks = { {64 * 1024, 4} },
12357 .block_erase = erase_sector_jedec,
12358 }, {
12359 .eraseblocks = { {256 * 1024, 1} },
12360 .block_erase = erase_chip_block_jedec,
12361 }
12362 },
12363 .printlock = printlock_w39l020,
12364 .write = write_jedec_1,
12365 .read = read_memmapped,
12366 .voltage = {3000, 3600},
12367 },
12368
12369 {
12370 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012371 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012372 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012373 .manufacture_id = WINBOND_ID,
12374 .model_id = WINBOND_W39L040,
12375 .total_size = 512,
12376 .page_size = 64 * 1024,
12377 .feature_bits = FEATURE_EITHER_RESET,
12378 .tested = TEST_OK_PR,
12379 .probe = probe_jedec,
12380 .probe_timing = 10,
12381 .block_erasers =
12382 {
12383 {
12384 .eraseblocks = { {4 * 1024, 128} },
12385 .block_erase = erase_block_jedec,
12386 }, {
12387 .eraseblocks = { {64 * 1024, 8} },
12388 .block_erase = erase_sector_jedec,
12389 }, {
12390 .eraseblocks = { {512 * 1024, 1} },
12391 .block_erase = erase_chip_block_jedec,
12392 }
12393 },
12394 .printlock = printlock_w39l040,
12395 .write = write_jedec_1,
12396 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012397 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012398 },
12399
12400 {
12401 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012402 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012403 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012404 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012405 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012406 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012407 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012408 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012409 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012410 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012411 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012412 .block_erasers =
12413 {
12414 {
12415 .eraseblocks = { {64 * 1024, 8} },
12416 .block_erase = erase_sector_jedec,
12417 }, {
12418 .eraseblocks = { {512 * 1024, 1} },
12419 .block_erase = erase_chip_block_jedec,
12420 }
12421 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012422 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012425 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012426 },
12427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012428 {
12429 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012430 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012431 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012432 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012433 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012434 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012435 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012436 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012438 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012439 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012440 .block_erasers =
12441 {
12442 {
12443 .eraseblocks = { {64 * 1024, 8} },
12444 .block_erase = erase_sector_jedec,
12445 }, {
12446 .eraseblocks = { {512 * 1024, 1} },
12447 .block_erase = erase_chip_block_jedec,
12448 }
12449 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012450 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012451 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012453 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012454 },
12455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012456 {
12457 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012458 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012459 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012460 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012461 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012462 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012463 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012464 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012465 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012466 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012467 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012468 .block_erasers =
12469 {
12470 {
12471 .eraseblocks = { {64 * 1024, 8} },
12472 .block_erase = erase_sector_jedec,
12473 }, {
12474 .eraseblocks = { {512 * 1024, 1} },
12475 .block_erase = erase_chip_block_jedec,
12476 }
12477 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012478 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012481 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012482 },
12483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012484 {
12485 .vendor = "Winbond",
12486 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012487 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012488 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012489 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012490 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012491 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012492 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012493 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012494 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012495 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012496 .block_erasers =
12497 {
12498 {
12499 .eraseblocks = { {4 * 1024, 128} },
12500 .block_erase = erase_block_jedec,
12501 }, {
12502 .eraseblocks = { {64 * 1024, 8} },
12503 .block_erase = erase_sector_jedec,
12504 }, {
12505 .eraseblocks = { {512 * 1024, 1} },
12506 .block_erase = erase_chip_block_jedec,
12507 }
12508 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012509 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012510 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012511 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012513 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012514 },
12515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012516 {
12517 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012518 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012519 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012520 .manufacture_id = WINBOND_ID,
12521 .model_id = WINBOND_W39V040B,
12522 .total_size = 512,
12523 .page_size = 64 * 1024,
12524 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012525 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012526 .probe = probe_jedec,
12527 .probe_timing = 10,
12528 .block_erasers =
12529 {
12530 {
12531 .eraseblocks = { {64 * 1024, 8} },
12532 .block_erase = erase_sector_jedec,
12533 }, {
12534 .eraseblocks = { {512 * 1024, 1} },
12535 .block_erase = erase_chip_block_jedec,
12536 }
12537 },
12538 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012539 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012540 .write = write_jedec_1,
12541 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012542 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012543 },
12544
12545 {
12546 .vendor = "Winbond",
12547 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012548 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012549 .manufacture_id = WINBOND_ID,
12550 .model_id = WINBOND_W39V040C,
12551 .total_size = 512,
12552 .page_size = 64 * 1024,
12553 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012554 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012555 .probe = probe_jedec,
12556 .probe_timing = 10,
12557 .block_erasers =
12558 {
12559 {
12560 .eraseblocks = { {64 * 1024, 8} },
12561 .block_erase = erase_sector_jedec,
12562 }, {
12563 .eraseblocks = { {512 * 1024, 1} },
12564 .block_erase = erase_chip_block_jedec,
12565 }
12566 },
12567 .printlock = printlock_w39v040fc,
12568 .write = write_jedec_1,
12569 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012570 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012571 },
12572
12573 {
12574 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012575 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012576 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012577 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012578 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012579 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012580 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012581 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012582 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012583 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012584 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012585 .block_erasers =
12586 {
12587 {
12588 .eraseblocks = { {64 * 1024, 16} },
12589 .block_erase = erase_sector_jedec,
12590 }, {
12591 .eraseblocks = { {1024 * 1024, 1} },
12592 .block_erase = erase_chip_block_jedec,
12593 }
12594 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012595 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000012596 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012598 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012599 },
12600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012601 {
12602 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012603 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012604 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012605 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012606 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012607 .total_size = 256,
12608 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012609 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012610 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012611 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012612 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012613 .block_erasers =
12614 {
12615 {
12616 .eraseblocks = {
12617 {128 * 1024, 1},
12618 {96 * 1024, 1},
12619 {8 * 1024, 2},
12620 {16 * 1024, 1},
12621 },
12622 .block_erase = erase_sector_jedec,
12623 }, {
12624 .eraseblocks = { {256 * 1024, 1} },
12625 .block_erase = erase_chip_block_jedec,
12626 }
12627 },
Sean Nelson35727f72010-01-28 23:55:12 +000012628 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012630 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012631 },
12632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012633 {
12634 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012635 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012636 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012637 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012638 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012639 .total_size = 256,
12640 .page_size = 128,
12641 .feature_bits = FEATURE_EITHER_RESET,
12642 .tested = TEST_OK_PROBE,
12643 .probe = probe_jedec,
12644 .probe_timing = 10,
12645 .block_erasers =
12646 {
12647 {
12648 .eraseblocks = { {256 * 1024, 1} },
12649 .block_erase = erase_chip_block_jedec,
12650 }
12651 },
12652 .write = write_jedec_1,
12653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012654 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012655 },
12656
12657 {
12658 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012659 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012660 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012661 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012662 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012663 .total_size = 256,
12664 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012665 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012666 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012667 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012668 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012669 .block_erasers =
12670 {
12671 {
12672 .eraseblocks = {
12673 {64 * 1024, 3},
12674 {32 * 1024, 1},
12675 {8 * 1024, 2},
12676 {16 * 1024, 1},
12677 },
12678 .block_erase = erase_sector_jedec,
12679 }, {
12680 .eraseblocks = { {256 * 1024, 1} },
12681 .block_erase = erase_chip_block_jedec,
12682 }
12683 },
Sean Nelson35727f72010-01-28 23:55:12 +000012684 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012686 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012687 },
12688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012689 {
12690 .vendor = "Winbond",
12691 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012692 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012693 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012694 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012695 .total_size = 256,
12696 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012697 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012698 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012699 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012700 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012701 .block_erasers =
12702 {
12703 {
12704 .eraseblocks = {
12705 {64 * 1024, 3},
12706 {32 * 1024, 1},
12707 {8 * 1024, 2},
12708 {16 * 1024, 1},
12709 },
12710 .block_erase = erase_sector_jedec,
12711 }, {
12712 .eraseblocks = { {256 * 1024, 1} },
12713 .block_erase = erase_chip_block_jedec,
12714 }
12715 },
Sean Nelson35727f72010-01-28 23:55:12 +000012716 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012717 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012718 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012719 },
12720
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012721 {
12722 .vendor = "Winbond",
12723 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012724 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012725 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012726 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012727 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012728 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012729 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012730 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012731 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012732 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012733 .block_erasers =
12734 {
12735 {
12736 .eraseblocks = { {64 * 1024, 16}, },
12737 .block_erase = erase_sector_jedec,
12738 }, {
12739 .eraseblocks = { {1024 * 1024, 1} },
12740 .block_erase = erase_chip_block_jedec,
12741 }
12742 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012743 .printlock = printlock_w39v080fa,
12744 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000012745 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012746 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012747 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012748 },
12749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012750 {
12751 .vendor = "Winbond",
12752 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012753 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012754 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012755 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012756 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012757 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012758 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012759 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012760 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012761 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012762 .block_erasers =
12763 {
12764 {
12765 .eraseblocks = { {64 * 1024, 8}, },
12766 .block_erase = erase_sector_jedec,
12767 }, {
12768 .eraseblocks = { {512 * 1024, 1} },
12769 .block_erase = erase_chip_block_jedec,
12770 }
12771 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012772 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000012773 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012774 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012775 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012776 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012777
12778 {
12779 .vendor = "Unknown",
12780 .name = "SFDP-capable chip",
12781 .bustype = BUS_SPI,
12782 .manufacture_id = GENERIC_MANUF_ID,
12783 .model_id = SFDP_DEVICE_ID,
12784 /* We present our own "report this" text hence we do not
12785 * want the default "This flash part has status UNTESTED..."
12786 * text to be printed. */
12787 .tested = TEST_OK_PREW,
12788 .probe = probe_spi_sfdp,
12789 .unlock = spi_disable_blockprotect, /* is this safe? */
12790 .read = spi_chip_read,
12791 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000012792 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012793 /* Everything below will be set by the probing function. */
12794 .write = NULL,
12795 .total_size = 0,
12796 .page_size = 0,
12797 .feature_bits = 0,
12798 .block_erasers = {},
12799 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012801 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000012802 .vendor = "Programmer",
12803 .name = "Opaque flash chip",
12804 .bustype = BUS_PROG,
12805 .manufacture_id = PROGMANUF_ID,
12806 .model_id = PROGDEV_ID,
12807 .total_size = 0,
12808 .page_size = 256,
12809 /* probe is assumed to work, rest will be filled in by probe */
12810 .tested = TEST_OK_PROBE,
12811 .probe = probe_opaque,
12812 /* eraseblock sizes will be set by the probing function */
12813 .block_erasers =
12814 {
12815 {
12816 .block_erase = erase_opaque,
12817 }
12818 },
12819 .write = write_opaque,
12820 .read = read_opaque,
12821 },
12822
12823 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012824 .vendor = "AMIC",
12825 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012826 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012827 .manufacture_id = AMIC_ID,
12828 .model_id = GENERIC_DEVICE_ID,
12829 .total_size = 0,
12830 .page_size = 256,
12831 .tested = TEST_BAD_PREW,
12832 .probe = probe_spi_rdid4,
12833 .probe_timing = TIMING_ZERO,
12834 .write = NULL,
12835 .read = NULL,
12836 },
12837
12838 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012839 .vendor = "Atmel",
12840 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012841 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012842 .manufacture_id = ATMEL_ID,
12843 .model_id = GENERIC_DEVICE_ID,
12844 .total_size = 0,
12845 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012846 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012847 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012848 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012850 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012851 },
12852
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012853 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000012854 .vendor = "Eon",
12855 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012856 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012857 .manufacture_id = EON_ID_NOPREFIX,
12858 .model_id = GENERIC_DEVICE_ID,
12859 .total_size = 0,
12860 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012861 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012862 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012863 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012864 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012865 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012866 },
12867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012868 {
12869 .vendor = "Macronix",
12870 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012871 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012872 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012873 .model_id = GENERIC_DEVICE_ID,
12874 .total_size = 0,
12875 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012876 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012877 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012878 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012879 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012880 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012881 },
12882
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012883 {
12884 .vendor = "PMC",
12885 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012886 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012887 .manufacture_id = PMC_ID,
12888 .model_id = GENERIC_DEVICE_ID,
12889 .total_size = 0,
12890 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012891 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012892 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012893 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012894 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012895 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012896 },
12897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012898 {
12899 .vendor = "SST",
12900 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012901 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012902 .manufacture_id = SST_ID,
12903 .model_id = GENERIC_DEVICE_ID,
12904 .total_size = 0,
12905 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012906 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012907 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012908 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012909 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012910 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012911 },
12912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012913 {
12914 .vendor = "ST",
12915 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012916 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012917 .manufacture_id = ST_ID,
12918 .model_id = GENERIC_DEVICE_ID,
12919 .total_size = 0,
12920 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012921 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012922 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012923 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012924 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012925 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012926 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000012927
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012928 {
Sean Nelson118e1d62009-11-24 02:08:11 +000012929 .vendor = "Sanyo",
12930 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012931 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000012932 .manufacture_id = SANYO_ID,
12933 .model_id = GENERIC_DEVICE_ID,
12934 .total_size = 0,
12935 .page_size = 256,
12936 .tested = TEST_BAD_PREW,
12937 .probe = probe_spi_rdid,
12938 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000012939 .write = NULL,
12940 .read = NULL,
12941 },
12942
12943 {
Stefan Taunereb582572012-09-21 12:52:50 +000012944 .vendor = "Winbond",
12945 .name = "unknown Winbond (ex Nexcom) SPI chip",
12946 .bustype = BUS_SPI,
12947 .manufacture_id = WINBOND_NEX_ID,
12948 .model_id = GENERIC_DEVICE_ID,
12949 .total_size = 0,
12950 .page_size = 256,
12951 .tested = TEST_BAD_PREW,
12952 .probe = probe_spi_rdid,
12953 .probe_timing = TIMING_ZERO,
12954 .write = NULL,
12955 .read = NULL,
12956 },
12957
12958 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012959 .vendor = "Generic",
12960 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012961 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012962 .manufacture_id = GENERIC_MANUF_ID,
12963 .model_id = GENERIC_DEVICE_ID,
12964 .total_size = 0,
12965 .page_size = 256,
12966 .tested = TEST_BAD_PREW,
12967 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012968 .write = NULL,
12969 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000012970
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012971 {
12972 .vendor = "Generic",
12973 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012974 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012975 .manufacture_id = GENERIC_MANUF_ID,
12976 .model_id = GENERIC_DEVICE_ID,
12977 .total_size = 0,
12978 .page_size = 256,
12979 .tested = TEST_BAD_PREW,
12980 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012981 .write = NULL,
12982 },
12983
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012984 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000012985};