blob: f2f0446877dc32d035517cbb880f23a6e179af6f [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 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
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 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {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 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {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,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001359 .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,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .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,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001758 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001759 .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,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001787 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001788 .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,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002278 .tested = TEST_OK_PREW,
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 Tauner1dd5d3a2013-08-27 18:02:19 +00002326 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2327 .feature_bits = FEATURE_OTP,
2328 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002330 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002331 .block_erasers =
2332 {
2333 {
2334 .eraseblocks = {
2335 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2336 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2337 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2338 },
2339 .block_erase = spi_erase_at45cs_sector,
2340 }
2341 },
2342 .printlock = spi_prettyprint_status_register_plain,
2343 .gran = write_gran_1056bytes,
2344 .write = spi_write_at45db,
2345 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002346 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002347 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 {
2350 .vendor = "Atmel",
2351 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002352 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002354 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002355 .total_size = 128 /* or 132, determined from status register */,
2356 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002357 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002358 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2359 .feature_bits = FEATURE_OTP,
2360 .tested = TEST_UNTESTED,
2361 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002362 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002363 .block_erasers =
2364 {
2365 {
2366 .eraseblocks = { {256, 512} },
2367 .block_erase = spi_erase_at45db_page,
2368 }, {
2369 .eraseblocks = { {8 * 256, 512/8} },
2370 .block_erase = spi_erase_at45db_block,
2371 }, {
2372 .eraseblocks = {
2373 {8 * 256, 1},
2374 {120 * 256, 1},
2375 {128 * 256, 3},
2376 },
2377 .block_erase = spi_erase_at45db_sector
2378 }, {
2379 .eraseblocks = { {128 * 1024, 1} },
2380 .block_erase = spi_erase_at45db_chip,
2381 }
2382 },
2383 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2384 .printlock = spi_prettyprint_status_register_at45db,
2385 /* granularity will be set by the probing function. */
2386 .write = spi_write_at45db,
2387 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002388 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002389 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002391 {
2392 .vendor = "Atmel",
2393 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002396 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002397 .total_size = 256 /* or 264, determined from status register */,
2398 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002399 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002400 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2401 .feature_bits = FEATURE_OTP,
2402 .tested = TEST_UNTESTED,
2403 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002404 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002405 .block_erasers =
2406 {
2407 {
2408 .eraseblocks = { {256, 1024} },
2409 .block_erase = spi_erase_at45db_page,
2410 }, {
2411 .eraseblocks = { {8 * 256, 1024/8} },
2412 .block_erase = spi_erase_at45db_block,
2413 }, {
2414 .eraseblocks = {
2415 {8 * 256, 1},
2416 {120 * 256, 1},
2417 {128 * 256, 7},
2418 },
2419 .block_erase = spi_erase_at45db_sector
2420 }, {
2421 .eraseblocks = { {256 * 1024, 1} },
2422 .block_erase = spi_erase_at45db_chip,
2423 }
2424 },
2425 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2426 .printlock = spi_prettyprint_status_register_at45db,
2427 /* granularity will be set by the probing function. */
2428 .write = spi_write_at45db,
2429 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002430 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002431 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002433 {
2434 .vendor = "Atmel",
2435 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002436 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002437 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002438 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002439 .total_size = 512 /* or 528, determined from status register */,
2440 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002441 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002442 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2443 .feature_bits = FEATURE_OTP,
2444 .tested = TEST_OK_PREW,
2445 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002446 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002447 .block_erasers =
2448 {
2449 {
2450 .eraseblocks = { {256, 2048} },
2451 .block_erase = spi_erase_at45db_page,
2452 }, {
2453 .eraseblocks = { {8 * 256, 2048/8} },
2454 .block_erase = spi_erase_at45db_block,
2455 }, {
2456 .eraseblocks = {
2457 {8 * 256, 1},
2458 {248 * 256, 1},
2459 {256 * 256, 7},
2460 },
2461 .block_erase = spi_erase_at45db_sector
2462 }, {
2463 .eraseblocks = { {512 * 1024, 1} },
2464 .block_erase = spi_erase_at45db_chip,
2465 }
2466 },
2467 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2468 .printlock = spi_prettyprint_status_register_at45db,
2469 /* granularity will be set by the probing function. */
2470 .write = spi_write_at45db,
2471 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2472 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002473 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 {
2476 .vendor = "Atmel",
2477 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002478 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002480 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .total_size = 1024 /* or 1056, determined from status register */,
2482 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002483 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002484 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2485 .feature_bits = FEATURE_OTP,
2486 .tested = TEST_UNTESTED,
2487 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002488 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002489 .block_erasers =
2490 {
2491 {
2492 .eraseblocks = { {256, 4096} },
2493 .block_erase = spi_erase_at45db_page,
2494 }, {
2495 .eraseblocks = { {8 * 256, 4096/8} },
2496 .block_erase = spi_erase_at45db_block,
2497 }, {
2498 .eraseblocks = {
2499 {8 * 256, 1},
2500 {248 * 256, 1},
2501 {256 * 256, 15},
2502 },
2503 .block_erase = spi_erase_at45db_sector
2504 }, {
2505 .eraseblocks = { {1024 * 1024, 1} },
2506 .block_erase = spi_erase_at45db_chip,
2507 }
2508 },
2509 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2510 .printlock = spi_prettyprint_status_register_at45db,
2511 /* granularity will be set by the probing function. */
2512 .write = spi_write_at45db,
2513 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002514 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002515 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002523 .total_size = 2048 /* or 2112, determined from status register */,
2524 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002526 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2527 .feature_bits = FEATURE_OTP,
2528 .tested = TEST_OK_PREW,
2529 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002530 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002531 .block_erasers =
2532 {
2533 {
2534 .eraseblocks = { {512, 4096} },
2535 .block_erase = spi_erase_at45db_page,
2536 }, {
2537 .eraseblocks = { {8 * 512, 4096/8} },
2538 .block_erase = spi_erase_at45db_block,
2539 }, {
2540 .eraseblocks = {
2541 {8 * 512, 1},
2542 {248 * 512, 1},
2543 {256 * 512, 15},
2544 },
2545 .block_erase = spi_erase_at45db_sector
2546 }, {
2547 .eraseblocks = { {2048 * 1024, 1} },
2548 .block_erase = spi_erase_at45db_chip,
2549 }
2550 },
2551 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2552 .printlock = spi_prettyprint_status_register_at45db,
2553 /* granularity will be set by the probing function. */
2554 .write = spi_write_at45db,
2555 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002556 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002557 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 {
2560 .vendor = "Atmel",
2561 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002563 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002564 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002565 .total_size = 4224 /* No power of two sizes */,
2566 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002567 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002568 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2569 .feature_bits = FEATURE_OTP,
2570 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002572 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002573 .block_erasers =
2574 {
2575 {
2576 .eraseblocks = { {528, 8192} },
2577 .block_erase = spi_erase_at45db_page,
2578 }, {
2579 .eraseblocks = { {8 * 528, 8192/8} },
2580 .block_erase = spi_erase_at45db_block,
2581 }, /* Although the datasheets describes sectors (which can be write protected)
2582 * there seems to be no erase functions for them.
2583 {
2584 .eraseblocks = {
2585 {8 * 528, 1},
2586 {120 * 528, 1},
2587 {128 * 528, 63},
2588 },
2589 .block_erase = spi_erase_at45db_sector
2590 }, */ {
2591 .eraseblocks = { {4224 * 1024, 1} },
2592 .block_erase = spi_erase_at45db_chip,
2593 }
2594 },
2595 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2596 .gran = write_gran_528bytes,
2597 .write = spi_write_at45db,
2598 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002600 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
2604 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002608 .total_size = 4096 /* or 4224, determined from status register */,
2609 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002610 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002611 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002612 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002613 .tested = TEST_UNTESTED,
2614 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002615 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002616 .block_erasers =
2617 {
2618 {
2619 .eraseblocks = { {512, 8192} },
2620 .block_erase = spi_erase_at45db_page,
2621 }, {
2622 .eraseblocks = { {8 * 512, 8192/8} },
2623 .block_erase = spi_erase_at45db_block,
2624 }, {
2625 .eraseblocks = {
2626 {8 * 512, 1},
2627 {120 * 512, 1},
2628 {128 * 512, 63},
2629 },
2630 .block_erase = spi_erase_at45db_sector
2631 }, {
2632 .eraseblocks = { {4096 * 1024, 1} },
2633 .block_erase = spi_erase_at45db_chip,
2634 }
2635 },
2636 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2637 .printlock = spi_prettyprint_status_register_at45db,
2638 /* granularity will be set by the probing function. */
2639 .write = spi_write_at45db,
2640 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2641 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2642 },
2643
2644 {
2645 .vendor = "Atmel",
2646 .name = "AT45DB321E",
2647 .bustype = BUS_SPI,
2648 .manufacture_id = ATMEL_ID,
2649 .model_id = ATMEL_AT45DB321C,
2650 .total_size = 4096 /* or 4224, determined from status register */,
2651 .page_size = 512 /* or 528, determined from status register */,
2652 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2653 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2654 .feature_bits = FEATURE_OTP,
2655 .tested = TEST_UNTESTED,
2656 .probe = probe_spi_at45db,
2657 .probe_timing = TIMING_ZERO,
2658 .block_erasers =
2659 {
2660 {
2661 .eraseblocks = { {512, 8192} },
2662 .block_erase = spi_erase_at45db_page,
2663 }, {
2664 .eraseblocks = { {8 * 512, 8192/8} },
2665 .block_erase = spi_erase_at45db_block,
2666 }, {
2667 .eraseblocks = {
2668 {8 * 512, 1},
2669 {120 * 512, 1},
2670 {128 * 512, 63},
2671 },
2672 .block_erase = spi_erase_at45db_sector
2673 }, {
2674 .eraseblocks = { {4096 * 1024, 1} },
2675 .block_erase = spi_erase_at45db_chip,
2676 }
2677 },
2678 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2679 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2680 /* granularity will be set by the probing function. */
2681 .write = spi_write_at45db,
2682 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2683 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002684 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002686 {
2687 .vendor = "Atmel",
2688 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002689 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002691 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002692 .total_size = 8192 /* or 8448, determined from status register */,
2693 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002694 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002695 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2696 .feature_bits = FEATURE_OTP,
2697 .tested = TEST_UNTESTED,
2698 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002699 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002700 .block_erasers =
2701 {
2702 {
2703 .eraseblocks = { {1024, 8192} },
2704 .block_erase = spi_erase_at45db_page,
2705 }, {
2706 .eraseblocks = { {8 * 1024, 8192/8} },
2707 .block_erase = spi_erase_at45db_block,
2708 }, {
2709 .eraseblocks = {
2710 {8 * 1024, 1},
2711 {248 * 1024, 1},
2712 {256 * 1024, 31},
2713 },
2714 .block_erase = spi_erase_at45db_sector
2715 }, {
2716 .eraseblocks = { {8192 * 1024, 1} },
2717 .block_erase = spi_erase_at45db_chip,
2718 }
2719 },
2720 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2721 .printlock = spi_prettyprint_status_register_at45db,
2722 /* granularity will be set by the probing function. */
2723 .write = spi_write_at45db,
2724 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002725 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002726 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002728 {
2729 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002730 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002731 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002732 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002733 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002734 .total_size = 64,
2735 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002736 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002737 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002740 .block_erasers =
2741 {
2742 {
2743 .eraseblocks = { {64 * 1024, 1} },
2744 .block_erase = erase_chip_block_jedec,
2745 }
2746 },
Sean Nelson35727f72010-01-28 23:55:12 +00002747 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002749 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002750 },
2751
2752 {
2753 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002754 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002755 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002756 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002757 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002758 .total_size = 256,
2759 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002760 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002761 .tested = TEST_UNTESTED,
2762 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002763 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002764 .block_erasers =
2765 {
2766 {
2767 .eraseblocks = {
2768 {16 * 1024, 1},
2769 {8 * 1024, 2},
2770 {96 * 1024, 1},
2771 {128 * 1024, 1},
2772 },
2773 .block_erase = erase_sector_jedec,
2774 }, {
2775 .eraseblocks = { {256 * 1024, 1} },
2776 .block_erase = erase_chip_block_jedec,
2777 }
2778 },
Sean Nelson35727f72010-01-28 23:55:12 +00002779 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002781 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002782 },
2783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002784 {
2785 .vendor = "Atmel",
2786 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002787 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002788 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002789 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002790 .total_size = 256,
2791 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002792 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002793 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002794 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002795 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002796 .block_erasers =
2797 {
2798 {
2799 .eraseblocks = {
2800 {128 * 1024, 1},
2801 {96 * 1024, 1},
2802 {8 * 1024, 2},
2803 {16 * 1024, 1},
2804 },
2805 .block_erase = erase_sector_jedec,
2806 }, {
2807 .eraseblocks = { {256 * 1024, 1} },
2808 .block_erase = erase_chip_block_jedec,
2809 }
2810 },
Sean Nelson35727f72010-01-28 23:55:12 +00002811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002812 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002813 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002814 },
2815
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002816 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002817 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002818 .name = "AT49(H)F010",
2819 .bustype = BUS_PARALLEL,
2820 .manufacture_id = ATMEL_ID,
2821 .model_id = ATMEL_AT49F010,
2822 .total_size = 128,
2823 .page_size = 0, /* unused */
2824 .feature_bits = FEATURE_EITHER_RESET,
2825 .tested = TEST_OK_PREW,
2826 .probe = probe_jedec,
2827 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = { {128 * 1024, 1} },
2832 .block_erase = erase_chip_block_jedec,
2833 }
2834 },
2835 .printlock = printlock_at49f,
2836 .write = write_jedec_1,
2837 .read = read_memmapped,
2838 .voltage = {4500, 5500},
2839 },
2840
2841 {
2842 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002843 .name = "AT49F020",
2844 .bustype = BUS_PARALLEL,
2845 .manufacture_id = ATMEL_ID,
2846 .model_id = ATMEL_AT49F020,
2847 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002848 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002849 .feature_bits = FEATURE_EITHER_RESET,
2850 .tested = TEST_OK_PRE,
2851 .probe = probe_jedec,
2852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2853 .block_erasers =
2854 {
2855 {
2856 .eraseblocks = { {256 * 1024, 1} },
2857 .block_erase = erase_chip_block_jedec,
2858 }
2859 /* Chip features an optional permanent write protection
2860 * of the first 8 kB. The erase function is the same as
2861 * above, but 00000H to 01FFFH will not be erased.
2862 * FIXME: add another eraser when partial erasers are
2863 * supported.
2864 */
2865 },
2866 .printlock = printlock_at49f,
2867 .write = write_jedec_1,
2868 .read = read_memmapped,
2869 .voltage = {4500, 5500},
2870 },
2871
2872 {
2873 .vendor = "Atmel",
2874 .name = "AT49F040",
2875 .bustype = BUS_PARALLEL,
2876 .manufacture_id = ATMEL_ID,
2877 .model_id = ATMEL_AT49F040,
2878 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002879 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002880 .feature_bits = FEATURE_EITHER_RESET,
2881 .tested = TEST_UNTESTED,
2882 .probe = probe_jedec,
2883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2884 .block_erasers =
2885 {
2886 {
2887 .eraseblocks = { {512 * 1024, 1} },
2888 .block_erase = erase_chip_block_jedec,
2889 }
2890 /* Chip features an optional permanent write protection
2891 * of the first 16 kB. The erase function is the same as
2892 * above, but 00000H to 03FFFH will not be erased.
2893 * FIXME: add another eraser when partial erasers are
2894 * supported.
2895 */
2896 },
2897 .printlock = printlock_at49f,
2898 .write = write_jedec_1,
2899 .read = read_memmapped,
2900 .voltage = {4500, 5500},
2901 },
2902
2903 {
2904 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002905 .name = "AT49F080",
2906 .bustype = BUS_PARALLEL,
2907 .manufacture_id = ATMEL_ID,
2908 .model_id = ATMEL_AT49F080,
2909 .total_size = 1024,
2910 .page_size = 0, /* unused */
2911 .feature_bits = FEATURE_EITHER_RESET,
2912 .tested = TEST_UNTESTED,
2913 .probe = probe_jedec,
2914 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2915 .block_erasers =
2916 {
2917 {
2918 .eraseblocks = { {1024 * 1024, 1} },
2919 .block_erase = erase_chip_block_jedec,
2920 }
2921 /* Chip features an optional permanent write protection
2922 * of the first 16 kB. The erase function is the same as
2923 * above, but 00000H to 03FFFH will not be erased.
2924 * FIXME: add another eraser when partial erasers are
2925 * supported.
2926 */
2927 },
2928 .printlock = printlock_at49f,
2929 .write = write_jedec_1,
2930 .read = read_memmapped,
2931 .voltage = {4500, 5500},
2932 },
2933
2934 {
2935 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2936 .vendor = "Atmel",
2937 .name = "AT49F080T",
2938 .bustype = BUS_PARALLEL,
2939 .manufacture_id = ATMEL_ID,
2940 .model_id = ATMEL_AT49F080T,
2941 .total_size = 1024,
2942 .page_size = 0, /* unused */
2943 .feature_bits = FEATURE_EITHER_RESET,
2944 .tested = TEST_UNTESTED,
2945 .probe = probe_jedec,
2946 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2947 .block_erasers =
2948 {
2949 {
2950 .eraseblocks = { {1024 * 1024, 1} },
2951 .block_erase = erase_chip_block_jedec,
2952 }
2953 /* Chip features an optional permanent write protection
2954 * of the first 16 kB. The erase function is the same as
2955 * above, but FC000H to FFFFFH will not be erased.
2956 * FIXME: add another eraser when partial erasers are
2957 * supported.
2958 */
2959 },
2960 .printlock = printlock_at49f,
2961 .write = write_jedec_1,
2962 .read = read_memmapped,
2963 .voltage = {4500, 5500},
2964 },
2965
2966 {
2967 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002968 .name = "AT49LH002",
2969 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2970 .manufacture_id = ATMEL_ID,
2971 .model_id = ATMEL_AT49LH002,
2972 .total_size = 256,
2973 .page_size = 0, /* unused */
2974 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2975 .tested = TEST_UNTESTED,
2976 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2977 .probe_timing = TIMING_FIXME,
2978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = {
2982 {64 * 1024, 3},
2983 {32 * 1024, 1},
2984 {8 * 1024, 2},
2985 {16 * 1024, 1},
2986 },
2987 .block_erase = erase_block_82802ab,
2988 }, {
2989 .eraseblocks = {
2990 {64 * 1024, 4},
2991 },
2992 .block_erase = NULL, /* TODO: Implement. */
2993 },
2994 },
2995 .printlock = NULL, /* TODO */
2996 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2997 .write = write_82802ab,
2998 .read = read_memmapped,
2999 .voltage = {3000, 3600},
3000 },
3001
3002 {
Andrew Morganca081462011-09-13 22:05:44 +00003003 .vendor = "Catalyst",
3004 .name = "CAT28F512",
3005 .bustype = BUS_PARALLEL,
3006 .manufacture_id = CATALYST_ID,
3007 .model_id = CATALYST_CAT28F512,
3008 .total_size = 64,
3009 .page_size = 0, /* unused */
3010 .feature_bits = 0,
3011 .tested = TEST_OK_PR,
3012 .probe = probe_jedec, /* FIXME! */
3013 .probe_timing = TIMING_ZERO,
3014 .block_erasers =
3015 {
3016 {
3017 .eraseblocks = { {64 * 1024, 1} },
3018 .block_erase = NULL, /* TODO */
3019 },
3020 },
3021 .write = NULL, /* TODO */
3022 .read = read_memmapped,
3023 .voltage = {4500, 5500},
3024 },
3025
3026 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003027 .vendor = "Bright",
3028 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003029 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003030 .manufacture_id = BRIGHT_ID,
3031 .model_id = BRIGHT_BM29F040,
3032 .total_size = 512,
3033 .page_size = 64 * 1024,
3034 .feature_bits = FEATURE_EITHER_RESET,
3035 .tested = TEST_OK_PR,
3036 .probe = probe_jedec,
3037 .probe_timing = TIMING_ZERO,
3038 .block_erasers =
3039 {
3040 {
3041 .eraseblocks = { {64 * 1024, 8} },
3042 .block_erase = erase_sector_jedec,
3043 }, {
3044 .eraseblocks = { {512 * 1024, 1} },
3045 .block_erase = erase_chip_block_jedec,
3046 },
3047 },
3048 .write = write_jedec_1,
3049 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003050 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003051 },
3052
3053 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003054 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003055 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003056 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003057 .manufacture_id = ESMT_ID,
3058 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003059 .total_size = 256,
3060 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003061 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003062 .tested = TEST_UNTESTED,
3063 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003064 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003065 .block_erasers =
3066 {
3067 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003068 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003069 {128 * 1024, 1},
3070 {96 * 1024, 1},
3071 {8 * 1024, 2},
3072 {16 * 1024, 1},
3073 },
3074 .block_erase = erase_sector_jedec,
3075 }, {
3076 .eraseblocks = { {256 * 1024, 1} },
3077 .block_erase = erase_chip_block_jedec,
3078 }
3079 },
Sean Nelson35727f72010-01-28 23:55:12 +00003080 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003082 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003083 },
3084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003085 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003086 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003087 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003088 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003089 .manufacture_id = ESMT_ID,
3090 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003091 .total_size = 1024,
3092 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003093 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003094 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003095 .probe = probe_spi_rdid,
3096 .probe_timing = TIMING_ZERO,
3097 .block_erasers =
3098 {
3099 {
3100 .eraseblocks = { {4 * 1024, 256} },
3101 .block_erase = spi_block_erase_20,
3102 }, {
3103 .eraseblocks = { {64 * 1024, 16} },
3104 .block_erase = spi_block_erase_d8,
3105 }, {
3106 .eraseblocks = { {1024 * 1024, 1} },
3107 .block_erase = spi_block_erase_60,
3108 }, {
3109 .eraseblocks = { {1024 * 1024, 1} },
3110 .block_erase = spi_block_erase_c7,
3111 }
3112 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003115 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003116 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003117 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003118 },
3119
3120 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003121 .vendor = "Eon",
3122 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003123 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003124 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003125 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003126 .total_size = 64,
3127 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003128 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003129 .tested = TEST_UNTESTED,
3130 .probe = probe_spi_rdid,
3131 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003132 .block_erasers =
3133 {
3134 {
3135 .eraseblocks = {
3136 {4 * 1024, 2},
3137 {8 * 1024, 1},
3138 {16 * 1024, 1},
3139 {32 * 1024, 1},
3140 },
3141 .block_erase = spi_block_erase_d8,
3142 }, {
3143 .eraseblocks = { {64 * 1024, 1} },
3144 .block_erase = spi_block_erase_c7,
3145 }
3146 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003147 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003148 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .write = spi_chip_write_256,
3150 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003151 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003152 },
3153
3154 {
3155 .vendor = "Eon",
3156 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003157 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003158 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003159 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003160 .total_size = 64,
3161 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003162 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003163 .tested = TEST_UNTESTED,
3164 .probe = probe_spi_rdid,
3165 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003166 .block_erasers =
3167 {
3168 {
3169 .eraseblocks = {
3170 {32 * 1024, 1},
3171 {16 * 1024, 1},
3172 {8 * 1024, 1},
3173 {4 * 1024, 2},
3174 },
3175 .block_erase = spi_block_erase_d8,
3176 }, {
3177 .eraseblocks = { {64 * 1024, 1} },
3178 .block_erase = spi_block_erase_c7,
3179 }
3180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003182 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003183 .write = spi_chip_write_256,
3184 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003185 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003186 },
3187
3188 {
3189 .vendor = "Eon",
3190 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003191 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003192 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003193 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .total_size = 128,
3195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003196 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003197 .tested = TEST_UNTESTED,
3198 .probe = probe_spi_rdid,
3199 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003200 .block_erasers =
3201 {
3202 {
3203 .eraseblocks = {
3204 {4 * 1024, 2},
3205 {8 * 1024, 1},
3206 {16 * 1024, 1},
3207 {32 * 1024, 3},
3208 },
3209 .block_erase = spi_block_erase_d8,
3210 }, {
3211 .eraseblocks = { {128 * 1024, 1} },
3212 .block_erase = spi_block_erase_c7,
3213 }
3214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003216 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003217 .write = spi_chip_write_256,
3218 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003219 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003220 },
3221
3222 {
3223 .vendor = "Eon",
3224 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003225 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003226 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003227 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003228 .total_size = 128,
3229 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003230 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003231 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003232 .probe = probe_spi_rdid,
3233 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003234 .block_erasers =
3235 {
3236 {
3237 .eraseblocks = {
3238 {32 * 1024, 3},
3239 {16 * 1024, 1},
3240 {8 * 1024, 1},
3241 {4 * 1024, 2},
3242 },
3243 .block_erase = spi_block_erase_d8,
3244 }, {
3245 .eraseblocks = { {128 * 1024, 1} },
3246 .block_erase = spi_block_erase_c7,
3247 }
3248 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003249 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003250 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003251 .write = spi_chip_write_256,
3252 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003253 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003254 },
3255
3256 {
3257 .vendor = "Eon",
3258 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003259 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003260 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003261 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003262 .total_size = 256,
3263 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003264 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003265 .tested = TEST_UNTESTED,
3266 .probe = probe_spi_rdid,
3267 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003268 .block_erasers =
3269 {
3270 {
3271 .eraseblocks = {
3272 {4 * 1024, 2},
3273 {8 * 1024, 1},
3274 {16 * 1024, 1},
3275 {32 * 1024, 1},
3276 {64 * 1024, 3}
3277 },
3278 .block_erase = spi_block_erase_d8,
3279 }, {
3280 .eraseblocks = { {256 * 1024, 1} },
3281 .block_erase = spi_block_erase_c7,
3282 }
3283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003285 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003286 .write = spi_chip_write_256,
3287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003288 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003289 },
3290
3291 {
3292 .vendor = "Eon",
3293 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003294 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003295 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003296 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003297 .total_size = 256,
3298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003299 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003300 .tested = TEST_UNTESTED,
3301 .probe = probe_spi_rdid,
3302 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003303 .block_erasers =
3304 {
3305 {
3306 .eraseblocks = {
3307 {64 * 1024, 3},
3308 {32 * 1024, 1},
3309 {16 * 1024, 1},
3310 {8 * 1024, 1},
3311 {4 * 1024, 2},
3312 },
3313 .block_erase = spi_block_erase_d8,
3314 }, {
3315 .eraseblocks = { {256 * 1024, 1} },
3316 .block_erase = spi_block_erase_c7,
3317 }
3318 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003319 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003320 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003321 .write = spi_chip_write_256,
3322 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003323 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003324 },
3325
3326 {
3327 .vendor = "Eon",
3328 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003329 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003330 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003331 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003332 .total_size = 512,
3333 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003334 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003335 .tested = TEST_UNTESTED,
3336 .probe = probe_spi_rdid,
3337 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003338 .block_erasers =
3339 {
3340 {
3341 .eraseblocks = {
3342 {4 * 1024, 2},
3343 {8 * 1024, 1},
3344 {16 * 1024, 1},
3345 {32 * 1024, 1},
3346 {64 * 1024, 7}
3347 },
3348 .block_erase = spi_block_erase_d8,
3349 }, {
3350 .eraseblocks = { {512 * 1024, 1} },
3351 .block_erase = spi_block_erase_c7,
3352 }
3353 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003355 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003356 .write = spi_chip_write_256,
3357 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003358 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003359 },
3360
3361 {
3362 .vendor = "Eon",
3363 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003364 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003366 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003367 .total_size = 512,
3368 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003369 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003370 .tested = TEST_UNTESTED,
3371 .probe = probe_spi_rdid,
3372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003373 .block_erasers =
3374 {
3375 {
3376 .eraseblocks = {
3377 {64 * 1024, 7},
3378 {32 * 1024, 1},
3379 {16 * 1024, 1},
3380 {8 * 1024, 1},
3381 {4 * 1024, 2},
3382 },
3383 .block_erase = spi_block_erase_d8,
3384 }, {
3385 .eraseblocks = { {512 * 1024, 1} },
3386 .block_erase = spi_block_erase_c7,
3387 }
3388 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003389 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003390 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003391 .write = spi_chip_write_256,
3392 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003393 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003394 },
3395
3396 {
3397 .vendor = "Eon",
3398 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003399 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003400 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003401 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003402 .total_size = 1024,
3403 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003404 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003405 .tested = TEST_UNTESTED,
3406 .probe = probe_spi_rdid,
3407 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003408 .block_erasers =
3409 {
3410 {
3411 .eraseblocks = {
3412 {4 * 1024, 2},
3413 {8 * 1024, 1},
3414 {16 * 1024, 1},
3415 {32 * 1024, 1},
3416 {64 * 1024, 15}
3417 },
3418 .block_erase = spi_block_erase_d8,
3419 }, {
3420 .eraseblocks = { {1024 * 1024, 1} },
3421 .block_erase = spi_block_erase_c7,
3422 }
3423 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003424 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003425 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .write = spi_chip_write_256,
3427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003428 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003429 },
3430
3431 {
3432 .vendor = "Eon",
3433 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003434 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003436 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003437 .total_size = 1024,
3438 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003439 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003440 .tested = TEST_UNTESTED,
3441 .probe = probe_spi_rdid,
3442 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003443 .block_erasers =
3444 {
3445 {
3446 .eraseblocks = {
3447 {64 * 1024, 15},
3448 {32 * 1024, 1},
3449 {16 * 1024, 1},
3450 {8 * 1024, 1},
3451 {4 * 1024, 2},
3452 },
3453 .block_erase = spi_block_erase_d8,
3454 }, {
3455 .eraseblocks = { {1024 * 1024, 1} },
3456 .block_erase = spi_block_erase_c7,
3457 }
3458 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003459 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003460 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003461 .write = spi_chip_write_256,
3462 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003463 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003464 },
3465
3466 {
3467 .vendor = "Eon",
3468 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003469 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003470 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003471 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003472 .total_size = 2048,
3473 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003474 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003475 .tested = TEST_UNTESTED,
3476 .probe = probe_spi_rdid,
3477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003478 .block_erasers =
3479 {
3480 {
3481 .eraseblocks = {
3482 {4 * 1024, 2},
3483 {8 * 1024, 1},
3484 {16 * 1024, 1},
3485 {32 * 1024, 1},
3486 {64 * 1024, 31},
3487 },
3488 .block_erase = spi_block_erase_d8,
3489 }, {
3490 .eraseblocks = { {2 * 1024 * 1024, 1} },
3491 .block_erase = spi_block_erase_c7,
3492 }
3493 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003494 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003495 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .write = spi_chip_write_256,
3497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003498 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003499 },
3500
3501 {
3502 .vendor = "Eon",
3503 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003504 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003505 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003506 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003507 .total_size = 2048,
3508 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003509 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003510 .tested = TEST_UNTESTED,
3511 .probe = probe_spi_rdid,
3512 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003513 .block_erasers =
3514 {
3515 {
3516 .eraseblocks = {
3517 {64 * 1024, 31},
3518 {32 * 1024, 1},
3519 {16 * 1024, 1},
3520 {8 * 1024, 1},
3521 {4 * 1024, 2},
3522 },
3523 .block_erase = spi_block_erase_d8,
3524 }, {
3525 .eraseblocks = { {2 * 1024 * 1024, 1} },
3526 .block_erase = spi_block_erase_c7,
3527 }
3528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003530 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003531 .write = spi_chip_write_256,
3532 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003533 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003534 },
3535
3536 {
3537 .vendor = "Eon",
3538 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003539 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003540 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003541 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003542 .total_size = 4096,
3543 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003544 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003545 .tested = TEST_UNTESTED,
3546 .probe = probe_spi_rdid,
3547 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003548 .block_erasers =
3549 {
3550 {
3551 .eraseblocks = {
3552 {4 * 1024, 2},
3553 {8 * 1024, 1},
3554 {16 * 1024, 1},
3555 {32 * 1024, 1},
3556 {64 * 1024, 63},
3557 },
3558 .block_erase = spi_block_erase_d8,
3559 }, {
3560 .eraseblocks = { {4 * 1024 * 1024, 1} },
3561 .block_erase = spi_block_erase_c7,
3562 }
3563 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003564 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003565 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003566 .write = spi_chip_write_256,
3567 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003568 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003569 },
3570
3571 {
3572 .vendor = "Eon",
3573 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003574 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003575 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003576 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003577 .total_size = 4096,
3578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003579 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003580 .tested = TEST_UNTESTED,
3581 .probe = probe_spi_rdid,
3582 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = {
3587 {64 * 1024, 63},
3588 {32 * 1024, 1},
3589 {16 * 1024, 1},
3590 {8 * 1024, 1},
3591 {4 * 1024, 2},
3592 },
3593 .block_erase = spi_block_erase_d8,
3594 }, {
3595 .eraseblocks = { {4 * 1024 * 1024, 1} },
3596 .block_erase = spi_block_erase_c7,
3597 }
3598 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003599 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003600 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003601 .write = spi_chip_write_256,
3602 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003603 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003604 },
3605
3606 {
3607 .vendor = "Eon",
3608 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003609 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003610 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003611 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003612 .total_size = 8192,
3613 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003614 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003615 .tested = TEST_UNTESTED,
3616 .probe = probe_spi_rdid,
3617 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .block_erasers =
3619 {
3620 {
3621 .eraseblocks = {
3622 {4 * 1024, 2},
3623 {8 * 1024, 1},
3624 {16 * 1024, 1},
3625 {32 * 1024, 1},
3626 {64 * 1024, 127},
3627 },
3628 .block_erase = spi_block_erase_d8,
3629 }, {
3630 .eraseblocks = { {8 * 1024 * 1024, 1} },
3631 .block_erase = spi_block_erase_c7,
3632 }
3633 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003634 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003635 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003636 .write = spi_chip_write_256,
3637 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003638 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003639 },
3640
3641 {
3642 .vendor = "Eon",
3643 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003644 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003645 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003646 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003647 .total_size = 8192,
3648 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003649 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003650 .tested = TEST_UNTESTED,
3651 .probe = probe_spi_rdid,
3652 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003653 .block_erasers =
3654 {
3655 {
3656 .eraseblocks = {
3657 {64 * 1024, 127},
3658 {32 * 1024, 1},
3659 {16 * 1024, 1},
3660 {8 * 1024, 1},
3661 {4 * 1024, 2},
3662 },
3663 .block_erase = spi_block_erase_d8,
3664 }, {
3665 .eraseblocks = { {8 * 1024 * 1024, 1} },
3666 .block_erase = spi_block_erase_c7,
3667 }
3668 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003670 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003671 .write = spi_chip_write_256,
3672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003673 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003674 },
3675
3676 {
3677 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003678 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003679 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003680 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003681 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003682 .total_size = 64,
3683 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003684 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003685 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003686 .probe = probe_spi_rdid,
3687 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .block_erasers =
3689 {
3690 {
3691 .eraseblocks = { {4 * 1024, 16} },
3692 .block_erase = spi_block_erase_20,
3693 }, {
3694 .eraseblocks = { {32 * 1024, 2} },
3695 .block_erase = spi_block_erase_d8,
3696 }, {
3697 .eraseblocks = { {32 * 1024, 2} },
3698 .block_erase = spi_block_erase_52,
3699 }, {
3700 .eraseblocks = { {64 * 1024, 1} },
3701 .block_erase = spi_block_erase_60,
3702 }, {
3703 .eraseblocks = { {64 * 1024, 1} },
3704 .block_erase = spi_block_erase_c7,
3705 }
3706 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003707 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003708 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003709 .write = spi_chip_write_256,
3710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003711 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003712 },
3713
3714 {
3715 .vendor = "Eon",
3716 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003717 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003718 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003719 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003720 .total_size = 128,
3721 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003722 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003723 .tested = TEST_UNTESTED,
3724 .probe = probe_spi_rdid,
3725 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003726 .block_erasers =
3727 {
3728 {
3729 .eraseblocks = { {4 * 1024, 32} },
3730 .block_erase = spi_block_erase_20,
3731 }, {
3732 .eraseblocks = { {32 * 1024, 4} },
3733 .block_erase = spi_block_erase_d8,
3734 }, {
3735 .eraseblocks = { {32 * 1024, 4} },
3736 .block_erase = spi_block_erase_52,
3737 }, {
3738 .eraseblocks = { {128 * 1024, 1} },
3739 .block_erase = spi_block_erase_60,
3740 }, {
3741 .eraseblocks = { {128 * 1024, 1} },
3742 .block_erase = spi_block_erase_c7,
3743 }
3744 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003745 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003747 .write = spi_chip_write_256,
3748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003749 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003750 },
3751
3752 {
3753 .vendor = "Eon",
3754 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003755 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003756 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003757 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003758 .total_size = 256,
3759 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003760 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003761 .tested = TEST_UNTESTED,
3762 .probe = probe_spi_rdid,
3763 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003764 .block_erasers =
3765 {
3766 {
3767 .eraseblocks = { {4 * 1024, 64} },
3768 .block_erase = spi_block_erase_20,
3769 }, {
3770 .eraseblocks = { {64 * 1024, 4} },
3771 .block_erase = spi_block_erase_d8,
3772 }, {
3773 .eraseblocks = { {64 * 1024, 4} },
3774 .block_erase = spi_block_erase_52,
3775 }, {
3776 .eraseblocks = { {256 * 1024, 1} },
3777 .block_erase = spi_block_erase_60,
3778 }, {
3779 .eraseblocks = { {256 * 1024, 1} },
3780 .block_erase = spi_block_erase_c7,
3781 }
3782 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003783 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003784 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003785 .write = spi_chip_write_256,
3786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003787 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003788 },
3789
3790 {
3791 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003793 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003794 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003795 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003796 .total_size = 512,
3797 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003798 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003799 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .probe = probe_spi_rdid,
3801 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003802 .block_erasers =
3803 {
3804 {
Sean Nelson54596372010-01-09 05:30:14 +00003805 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003806 .block_erase = spi_block_erase_20,
3807 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003808 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003809 .block_erase = spi_block_erase_d8,
3810 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003811 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003812 .block_erase = spi_block_erase_60,
3813 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003814 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003815 .block_erase = spi_block_erase_c7,
3816 },
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003820 .write = spi_chip_write_256,
3821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003831 .total_size = 1024,
3832 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003834 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = { {4 * 1024, 256} },
3841 .block_erase = spi_block_erase_20,
3842 }, {
3843 .eraseblocks = { {64 * 1024, 16} },
3844 .block_erase = spi_block_erase_d8,
3845 }, {
3846 .eraseblocks = { {1024 * 1024, 1} },
3847 .block_erase = spi_block_erase_60,
3848 }, {
3849 .eraseblocks = { {1024 * 1024, 1} },
3850 .block_erase = spi_block_erase_c7,
3851 }
3852 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003853 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003854 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003855 .write = spi_chip_write_256,
3856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003857 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003858 },
3859
3860 {
3861 .vendor = "Eon",
3862 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003863 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003864 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003865 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003866 .total_size = 2048,
3867 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003868 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003869 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003870 .probe = probe_spi_rdid,
3871 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003872 .block_erasers =
3873 {
3874 {
3875 .eraseblocks = { {4 * 1024, 512} },
3876 .block_erase = spi_block_erase_20,
3877 }, {
3878 .eraseblocks = { {64 * 1024, 32} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {2 * 1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_60,
3883 }, {
3884 .eraseblocks = { {2 * 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 */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003889 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003890 .write = spi_chip_write_256,
3891 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003892 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003893 },
3894
3895 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003896 .vendor = "Eon",
3897 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003898 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003899 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003900 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003901 .total_size = 4096,
3902 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003903 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003904 .tested = TEST_UNTESTED,
3905 .probe = probe_spi_rdid,
3906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003907 .block_erasers =
3908 {
3909 {
3910 .eraseblocks = { {4 * 1024, 1024} },
3911 .block_erase = spi_block_erase_20,
3912 }, {
3913 .eraseblocks = { {64 * 1024, 64} },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {4 * 1024 * 1024, 1} },
3917 .block_erase = spi_block_erase_60,
3918 }, {
3919 .eraseblocks = { {4 * 1024 * 1024, 1} },
3920 .block_erase = spi_block_erase_c7,
3921 }
3922 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003923 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003924 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003925 .write = spi_chip_write_256,
3926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003927 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003928 },
3929
3930 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003931 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003932 .name = "EN25F64",
3933 .bustype = BUS_SPI,
3934 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003935 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003936 .total_size = 8192,
3937 .page_size = 256,
3938 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003939 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003940 .probe = probe_spi_rdid,
3941 .probe_timing = TIMING_ZERO,
3942 .block_erasers =
3943 {
3944 {
3945 .eraseblocks = { {4 * 1024, 2048} },
3946 .block_erase = spi_block_erase_20,
3947 }, {
3948 .eraseblocks = { {64 * 1024, 128} },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {8 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_60,
3953 }, {
3954 .eraseblocks = { {8 * 1024 * 1024, 1} },
3955 .block_erase = spi_block_erase_c7,
3956 }
3957 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003958 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003959 .unlock = spi_disable_blockprotect,
3960 .write = spi_chip_write_256,
3961 .read = spi_chip_read,
3962 .voltage = {2700, 3600},
3963 },
3964
3965 {
3966 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003967 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003968 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003969 .manufacture_id = EON_ID_NOPREFIX,
3970 .model_id = EON_EN25Q40,
3971 .total_size = 512,
3972 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003973 /* OTP: 256B total; enter 0x3A */
3974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003975 .tested = TEST_UNTESTED,
3976 .probe = probe_spi_rdid,
3977 .probe_timing = TIMING_ZERO,
3978 .block_erasers =
3979 {
3980 {
3981 .eraseblocks = { {4 * 1024, 128} },
3982 .block_erase = spi_block_erase_20,
3983 }, {
3984 .eraseblocks = { {64 * 1024, 8} },
3985 .block_erase = spi_block_erase_d8,
3986 }, {
3987 .eraseblocks = { {512 * 1024, 1} },
3988 .block_erase = spi_block_erase_60,
3989 }, {
3990 .eraseblocks = { {512 * 1024, 1} },
3991 .block_erase = spi_block_erase_c7,
3992 }
3993 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003995 .unlock = spi_disable_blockprotect,
3996 .write = spi_chip_write_256,
3997 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003998 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003999 },
4000
4001 {
4002 .vendor = "Eon",
4003 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004004 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004005 .manufacture_id = EON_ID_NOPREFIX,
4006 .model_id = EON_EN25Q80,
4007 .total_size = 1024,
4008 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004009 /* OTP: 256B total; enter 0x3A */
4010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004011 .tested = TEST_UNTESTED,
4012 .probe = probe_spi_rdid,
4013 .probe_timing = TIMING_ZERO,
4014 .block_erasers =
4015 {
4016 {
4017 .eraseblocks = { {4 * 1024, 256} },
4018 .block_erase = spi_block_erase_20,
4019 }, {
4020 .eraseblocks = { {64 * 1024, 16} },
4021 .block_erase = spi_block_erase_d8,
4022 }, {
4023 .eraseblocks = { {1024 * 1024, 1} },
4024 .block_erase = spi_block_erase_60,
4025 }, {
4026 .eraseblocks = { {1024 * 1024, 1} },
4027 .block_erase = spi_block_erase_c7,
4028 }
4029 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004030 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004031 .unlock = spi_disable_blockprotect,
4032 .write = spi_chip_write_256,
4033 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004034 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004035 },
4036
4037 {
4038 /* Note: EN25D16 is an evil twin which shares the model ID
4039 but has different write protection capabilities */
4040 .vendor = "Eon",
4041 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004042 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004043 .manufacture_id = EON_ID_NOPREFIX,
4044 .model_id = EON_EN25Q16,
4045 .total_size = 2048,
4046 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004047 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004049 .tested = TEST_UNTESTED,
4050 .probe = probe_spi_rdid,
4051 .probe_timing = TIMING_ZERO,
4052 .block_erasers =
4053 {
4054 {
4055 .eraseblocks = { {4 * 1024, 512} },
4056 .block_erase = spi_block_erase_20,
4057 }, {
4058 .eraseblocks = { {64 * 1024, 32} },
4059 .block_erase = spi_block_erase_d8,
4060 }, {
4061 /* not supported by Q16 version */
4062 .eraseblocks = { {64 * 1024, 32} },
4063 .block_erase = spi_block_erase_52,
4064 }, {
4065 .eraseblocks = { {2 * 1024 * 1024, 1} },
4066 .block_erase = spi_block_erase_60,
4067 }, {
4068 .eraseblocks = { {2 * 1024 * 1024, 1} },
4069 .block_erase = spi_block_erase_c7,
4070 }
4071 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004073 .unlock = spi_disable_blockprotect,
4074 .write = spi_chip_write_256,
4075 .read = spi_chip_read,
4076 .voltage = {2700, 3600},
4077 },
4078
4079 {
4080 .vendor = "Eon",
4081 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004082 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004083 .manufacture_id = EON_ID_NOPREFIX,
4084 .model_id = EON_EN25Q32,
4085 .total_size = 4096,
4086 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004087 /* OTP: 512B total; enter 0x3A */
4088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004089 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
4092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = { {4 * 1024, 1024} },
4096 .block_erase = spi_block_erase_20,
4097 }, {
4098 .eraseblocks = { {64 * 1024, 64} },
4099 .block_erase = spi_block_erase_d8,
4100 }, {
4101 .eraseblocks = { {4 * 1024 * 1024, 1} },
4102 .block_erase = spi_block_erase_60,
4103 }, {
4104 .eraseblocks = { {4 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004109 .unlock = spi_disable_blockprotect,
4110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004112 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004113 },
4114
4115 {
4116 .vendor = "Eon",
4117 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004118 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004119 .manufacture_id = EON_ID_NOPREFIX,
4120 .model_id = EON_EN25Q64,
4121 .total_size = 8192,
4122 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004123 /* OTP: 512B total; enter 0x3A */
4124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004125 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004126 .probe = probe_spi_rdid,
4127 .probe_timing = TIMING_ZERO,
4128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = { {4 * 1024, 2048} },
4132 .block_erase = spi_block_erase_20,
4133 }, {
4134 .eraseblocks = { {64 * 1024, 128} },
4135 .block_erase = spi_block_erase_d8,
4136 }, {
4137 .eraseblocks = { {8 * 1024 * 1024, 1} },
4138 .block_erase = spi_block_erase_60,
4139 }, {
4140 .eraseblocks = { {8 * 1024 * 1024, 1} },
4141 .block_erase = spi_block_erase_c7,
4142 }
4143 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004145 .unlock = spi_disable_blockprotect,
4146 .write = spi_chip_write_256,
4147 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004148 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004149 },
4150
4151 {
4152 .vendor = "Eon",
4153 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004154 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004155 .manufacture_id = EON_ID_NOPREFIX,
4156 .model_id = EON_EN25Q128,
4157 .total_size = 16384,
4158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004159 /* OTP: 512B total; enter 0x3A */
4160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004161 .tested = TEST_UNTESTED,
4162 .probe = probe_spi_rdid,
4163 .probe_timing = TIMING_ZERO,
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = { {4 * 1024, 4096} },
4168 .block_erase = spi_block_erase_20,
4169 }, {
4170 .eraseblocks = { {64 * 1024, 256} },
4171 .block_erase = spi_block_erase_d8,
4172 }, {
4173 .eraseblocks = { {16 * 1024 * 1024, 1} },
4174 .block_erase = spi_block_erase_60,
4175 }, {
4176 .eraseblocks = { {16 * 1024 * 1024, 1} },
4177 .block_erase = spi_block_erase_c7,
4178 }
4179 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004180 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004181 .unlock = spi_disable_blockprotect,
4182 .write = spi_chip_write_256,
4183 .read = spi_chip_read,
4184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004189 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004190 .manufacture_id = EON_ID_NOPREFIX,
4191 .model_id = EON_EN25QH16,
4192 .total_size = 2048,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* supports SFDP */
4195 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004196 /* QPI enable 0x38, disable 0xFF */
4197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004198 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004199 .probe = probe_spi_rdid,
4200 .probe_timing = TIMING_ZERO,
4201 .block_erasers =
4202 {
4203 {
4204 .eraseblocks = { {4 * 1024, 512} },
4205 .block_erase = spi_block_erase_20,
4206 }, {
4207 .eraseblocks = { {64 * 1024, 32} },
4208 .block_erase = spi_block_erase_d8,
4209 }, {
4210 .eraseblocks = { {1024 * 2048, 1} },
4211 .block_erase = spi_block_erase_60,
4212 }, {
4213 .eraseblocks = { {1024 * 2048, 1} },
4214 .block_erase = spi_block_erase_c7,
4215 }
4216 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004217 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4218 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004219 .write = spi_chip_write_256,
4220 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004221 .voltage = {2700, 3600},
4222 },
4223
4224 {
4225 .vendor = "Eon",
4226 .name = "EN25QH32",
4227 .bustype = BUS_SPI,
4228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25QH32,
4230 .total_size = 4096,
4231 .page_size = 256,
4232 /* supports SFDP */
4233 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004234 /* QPI enable 0x38, disable 0xFF */
4235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004236 .tested = TEST_UNTESTED,
4237 .probe = probe_spi_rdid,
4238 .probe_timing = TIMING_ZERO,
4239 .block_erasers =
4240 {
4241 {
4242 .eraseblocks = { {4 * 1024, 1024} },
4243 .block_erase = spi_block_erase_20,
4244 }, {
4245 .eraseblocks = { {64 * 1024, 64} },
4246 .block_erase = spi_block_erase_d8,
4247 }, {
4248 .eraseblocks = { {1024 * 4096, 1} },
4249 .block_erase = spi_block_erase_60,
4250 }, {
4251 .eraseblocks = { {1024 * 4096, 1} },
4252 .block_erase = spi_block_erase_c7,
4253 }
4254 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004255 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4256 .unlock = spi_disable_blockprotect_bp3_srwd,
4257 .write = spi_chip_write_256,
4258 .read = spi_chip_read,
4259 .voltage = {2700, 3600},
4260 },
4261
4262 {
4263 .vendor = "Eon",
4264 .name = "EN25QH64",
4265 .bustype = BUS_SPI,
4266 .manufacture_id = EON_ID_NOPREFIX,
4267 .model_id = EON_EN25QH64,
4268 .total_size = 8192,
4269 .page_size = 256,
4270 /* supports SFDP */
4271 /* OTP: 512B total; enter 0x3A */
4272 /* QPI enable 0x38, disable 0xFF */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004274 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers = {
4278 {
4279 .eraseblocks = { {4 * 1024, 2048} },
4280 .block_erase = spi_block_erase_20,
4281 }, {
4282 .eraseblocks = { {64 * 1024, 128} },
4283 .block_erase = spi_block_erase_d8,
4284 }, {
4285 .eraseblocks = { { 8192 * 1024, 1} },
4286 .block_erase = spi_block_erase_60,
4287 }, {
4288 .eraseblocks = { { 8192 * 1024, 1} },
4289 .block_erase = spi_block_erase_c7,
4290 }
4291 },
4292 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4293 .unlock = spi_disable_blockprotect_bp3_srwd,
4294 .write = spi_chip_write_256,
4295 .read = spi_chip_read,
4296 .voltage = {2700, 3600},
4297 },
4298
4299 {
4300 .vendor = "Eon",
4301 .name = "EN25QH128",
4302 .bustype = BUS_SPI,
4303 .manufacture_id = EON_ID_NOPREFIX,
4304 .model_id = EON_EN25QH128,
4305 .total_size = 16384,
4306 .page_size = 256,
4307 /* supports SFDP */
4308 /* OTP: 512B total; enter 0x3A */
4309 /* QPI enable 0x38, disable 0xFF */
4310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4311 .tested = TEST_UNTESTED,
4312 .probe = probe_spi_rdid,
4313 .probe_timing = TIMING_ZERO,
4314 .block_erasers = {
4315 {
4316 .eraseblocks = { {4 * 1024, 4096} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 256} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { { 16384 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { { 16384 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
4329 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4330 .unlock = spi_disable_blockprotect_bp3_srwd,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
4333 .voltage = {2700, 3600},
4334 },
4335
4336 {
4337 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004338 .name = "EN25S10",
4339 .bustype = BUS_SPI,
4340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25S10,
4342 .total_size = 128,
4343 .page_size = 256,
4344 /* OTP: 256B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers = {
4350 {
4351 .eraseblocks = { {4 * 1024, 32} },
4352 .block_erase = spi_block_erase_20,
4353 }, {
4354 .eraseblocks = { {32 * 1024, 4} },
4355 .block_erase = spi_block_erase_52,
4356 }, {
4357 .eraseblocks = { {128 * 1024, 1} },
4358 .block_erase = spi_block_erase_60,
4359 }, {
4360 .eraseblocks = { {128 * 1024, 1} },
4361 .block_erase = spi_block_erase_c7,
4362 }
4363 },
4364 .printlock = spi_prettyprint_status_register_default_bp2,
4365 .unlock = spi_disable_blockprotect,
4366 .write = spi_chip_write_256,
4367 .read = spi_chip_read,
4368 .voltage = {1650, 1950},
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25S20",
4374 .bustype = BUS_SPI,
4375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25S20,
4377 .total_size = 256,
4378 .page_size = 256,
4379 /* OTP: 256B total; enter 0x3A */
4380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4381 .tested = TEST_UNTESTED,
4382 .probe = probe_spi_rdid,
4383 .probe_timing = TIMING_ZERO,
4384 .block_erasers = {
4385 {
4386 .eraseblocks = { {4 * 1024, 64} },
4387 .block_erase = spi_block_erase_20,
4388 }, {
4389 .eraseblocks = { {64 * 1024, 4} },
4390 .block_erase = spi_block_erase_d8,
4391 }, {
4392 .eraseblocks = { {256 * 1024, 1} },
4393 .block_erase = spi_block_erase_60,
4394 }, {
4395 .eraseblocks = { {256 * 1024, 1} },
4396 .block_erase = spi_block_erase_c7,
4397 }
4398 },
4399 .printlock = spi_prettyprint_status_register_default_bp2,
4400 .unlock = spi_disable_blockprotect,
4401 .write = spi_chip_write_256,
4402 .read = spi_chip_read,
4403 .voltage = {1650, 1950},
4404 },
4405
4406 {
4407 .vendor = "Eon",
4408 .name = "EN25S40",
4409 .bustype = BUS_SPI,
4410 .manufacture_id = EON_ID_NOPREFIX,
4411 .model_id = EON_EN25S40,
4412 .total_size = 512,
4413 .page_size = 256,
4414 /* OTP: 256B total; enter 0x3A */
4415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4416 .tested = TEST_UNTESTED,
4417 .probe = probe_spi_rdid,
4418 .probe_timing = TIMING_ZERO,
4419 .block_erasers = {
4420 {
4421 .eraseblocks = { {4 * 1024, 128} },
4422 .block_erase = spi_block_erase_20,
4423 }, {
4424 .eraseblocks = { {64 * 1024, 8} },
4425 .block_erase = spi_block_erase_d8,
4426 }, {
4427 .eraseblocks = { {512 * 1024, 1} },
4428 .block_erase = spi_block_erase_60,
4429 }, {
4430 .eraseblocks = { {512 * 1024, 1} },
4431 .block_erase = spi_block_erase_c7,
4432 }
4433 },
4434 .printlock = spi_prettyprint_status_register_default_bp2,
4435 .unlock = spi_disable_blockprotect,
4436 .write = spi_chip_write_256,
4437 .read = spi_chip_read,
4438 .voltage = {1650, 1950},
4439 },
4440
4441 {
4442 .vendor = "Eon",
4443 .name = "EN25S80",
4444 .bustype = BUS_SPI,
4445 .manufacture_id = EON_ID_NOPREFIX,
4446 .model_id = EON_EN25S80,
4447 .total_size = 1024,
4448 .page_size = 256,
4449 /* OTP: 256B total; enter 0x3A */
4450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4451 .tested = TEST_UNTESTED,
4452 .probe = probe_spi_rdid,
4453 .probe_timing = TIMING_ZERO,
4454 .block_erasers = {
4455 {
4456 .eraseblocks = { {4 * 1024, 256} },
4457 .block_erase = spi_block_erase_20,
4458 }, {
4459 .eraseblocks = { {64 * 1024, 16} },
4460 .block_erase = spi_block_erase_d8,
4461 }, {
4462 .eraseblocks = { {1024 * 1024, 1} },
4463 .block_erase = spi_block_erase_60,
4464 }, {
4465 .eraseblocks = { {1024 * 1024, 1} },
4466 .block_erase = spi_block_erase_c7,
4467 }
4468 },
4469 .printlock = spi_prettyprint_status_register_default_bp2,
4470 .unlock = spi_disable_blockprotect,
4471 .write = spi_chip_write_256,
4472 .read = spi_chip_read,
4473 .voltage = {1650, 1950},
4474 },
4475
4476 {
4477 .vendor = "Eon",
4478 .name = "EN25S16",
4479 .bustype = BUS_SPI,
4480 .manufacture_id = EON_ID_NOPREFIX,
4481 .model_id = EON_EN25S16,
4482 .total_size = 2048,
4483 .page_size = 256,
4484 /* OTP: 512B total; enter 0x3A */
4485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4486 .tested = TEST_UNTESTED,
4487 .probe = probe_spi_rdid,
4488 .probe_timing = TIMING_ZERO,
4489 .block_erasers = {
4490 {
4491 .eraseblocks = { {4 * 1024, 512} },
4492 .block_erase = spi_block_erase_20,
4493 }, {
4494 .eraseblocks = { {64 * 1024, 32} },
4495 .block_erase = spi_block_erase_52,
4496 }, {
4497 .eraseblocks = { {32 * 1024, 64} },
4498 .block_erase = spi_block_erase_d8,
4499 }, {
4500 .eraseblocks = { {2048 * 1024, 1} },
4501 .block_erase = spi_block_erase_60,
4502 }, {
4503 .eraseblocks = { {2048 * 1024, 1} },
4504 .block_erase = spi_block_erase_c7,
4505 }
4506 },
4507 .printlock = spi_prettyprint_status_register_en25s_wp,
4508 .unlock = spi_disable_blockprotect_bp3_srwd,
4509 .write = spi_chip_write_256,
4510 .read = spi_chip_read,
4511 .voltage = {1650, 1950},
4512 },
4513
4514 {
4515 .vendor = "Eon",
4516 .name = "EN25S32",
4517 .bustype = BUS_SPI,
4518 .manufacture_id = EON_ID_NOPREFIX,
4519 .model_id = EON_EN25S32,
4520 .total_size = 4096,
4521 .page_size = 256,
4522 /* OTP: 512B total; enter 0x3A */
4523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4524 .tested = TEST_UNTESTED,
4525 .probe = probe_spi_rdid,
4526 .probe_timing = TIMING_ZERO,
4527 .block_erasers = {
4528 {
4529 .eraseblocks = { {4 * 1024, 1024} },
4530 .block_erase = spi_block_erase_20,
4531 }, {
4532 .eraseblocks = { {32 * 1024, 128} },
4533 .block_erase = spi_block_erase_52,
4534 }, {
4535 .eraseblocks = { {64 * 1024, 64} },
4536 .block_erase = spi_block_erase_d8,
4537 }, {
4538 .eraseblocks = { {4096 * 1024, 1} },
4539 .block_erase = spi_block_erase_60,
4540 }, {
4541 .eraseblocks = { {4096 * 1024, 1} },
4542 .block_erase = spi_block_erase_c7,
4543 }
4544 },
4545 .printlock = spi_prettyprint_status_register_en25s_wp,
4546 .unlock = spi_disable_blockprotect_bp3_srwd,
4547 .write = spi_chip_write_256,
4548 .read = spi_chip_read,
4549 .voltage = {1650, 1950},
4550 },
4551
4552 {
4553 .vendor = "Eon",
4554 .name = "EN25S64",
4555 .bustype = BUS_SPI,
4556 .manufacture_id = EON_ID_NOPREFIX,
4557 .model_id = EON_EN25S64,
4558 .total_size = 8192,
4559 .page_size = 256,
4560 /* OTP: 512B total; enter 0x3A */
4561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4562 .tested = TEST_UNTESTED,
4563 .probe = probe_spi_rdid,
4564 .probe_timing = TIMING_ZERO,
4565 .block_erasers = {
4566 {
4567 .eraseblocks = { {4 * 1024, 2048} },
4568 .block_erase = spi_block_erase_20,
4569 }, {
4570 .eraseblocks = { {64 * 1024, 128} },
4571 .block_erase = spi_block_erase_d8,
4572 }, {
4573 .eraseblocks = { {8192 * 1024, 1} },
4574 .block_erase = spi_block_erase_60,
4575 }, {
4576 .eraseblocks = { {8192 * 1024, 1} },
4577 .block_erase = spi_block_erase_c7,
4578 }
4579 },
4580 .printlock = spi_prettyprint_status_register_en25s_wp,
4581 .unlock = spi_disable_blockprotect_bp3_srwd,
4582 .write = spi_chip_write_256,
4583 .read = spi_chip_read,
4584 .voltage = {1650, 1950},
4585 },
4586
4587 {
4588 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004589 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004590 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004591 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004592 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004593 .total_size = 128,
4594 .page_size = 128,
4595 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004596 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004597 .probe = probe_jedec,
4598 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4599 .block_erasers =
4600 {
4601 {
4602 .eraseblocks = { {16 * 1024, 8} },
4603 .block_erase = erase_sector_jedec,
4604 },
4605 {
4606 .eraseblocks = { {128 * 1024, 1} },
4607 .block_erase = erase_chip_block_jedec,
4608 },
4609 },
4610 .write = write_jedec_1,
4611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004612 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004613 },
4614
4615 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004616 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004617 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004619 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004620 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004621 .total_size = 256,
4622 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004623 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004624 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004625 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004627 .block_erasers =
4628 {
4629 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004630 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004631 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004632 {8 * 1024, 2},
4633 {32 * 1024, 1},
4634 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004635 },
4636 .block_erase = erase_sector_jedec,
4637 }, {
4638 .eraseblocks = { {256 * 1024, 1} },
4639 .block_erase = erase_chip_block_jedec,
4640 },
4641 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004642 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004644 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004645 },
4646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004647 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004648 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004649 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004651 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004652 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004653 .total_size = 256,
4654 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004655 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004656 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004657 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004659 .block_erasers =
4660 {
4661 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004662 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004663 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004664 {32 * 1024, 1},
4665 {8 * 1024, 2},
4666 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004667 },
4668 .block_erase = erase_sector_jedec,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = erase_chip_block_jedec,
4672 },
4673 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004674 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004676 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004677 },
4678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004679 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004680 .vendor = "Eon",
4681 .name = "EN29LV640B",
4682 .bustype = BUS_PARALLEL,
4683 .manufacture_id = EON_ID,
4684 .model_id = EON_EN29LV640B,
4685 .total_size = 8192,
4686 .page_size = 8192,
4687 .feature_bits = 0,
4688 .tested = TEST_OK_PREW,
4689 .probe = probe_en29lv640b,
4690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4691 .block_erasers =
4692 {
4693 {
4694 .eraseblocks = {
4695 {8 * 1024, 8},
4696 {64 * 1024, 127},
4697 },
4698 .block_erase = block_erase_en29lv640b,
4699 }, {
4700 .eraseblocks = { {8 * 1024 * 1024, 1} },
4701 .block_erase = block_erase_chip_en29lv640b,
4702 },
4703 },
4704 .write = write_en29lv640b,
4705 .read = read_memmapped,
4706 .voltage = {2700, 3600},
4707 },
4708
4709 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004710 .vendor = "Fujitsu",
4711 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004712 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004713 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004714 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004715 .total_size = 512,
4716 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004717 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004718 .tested = TEST_UNTESTED,
4719 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004720 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004721 .block_erasers =
4722 {
4723 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004724 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004725 {16 * 1024, 1},
4726 {8 * 1024, 2},
4727 {32 * 1024, 1},
4728 {64 * 1024, 7},
4729 },
Sean Nelson35727f72010-01-28 23:55:12 +00004730 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004731 }, {
4732 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004733 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004734 },
4735 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004736 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004738 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004739 },
4740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004741 {
4742 .vendor = "Fujitsu",
4743 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004744 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004745 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004746 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004747 .total_size = 512,
4748 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004750 .tested = TEST_UNTESTED,
4751 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004752 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004753 .block_erasers =
4754 {
4755 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004756 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004757 {64 * 1024, 7},
4758 {32 * 1024, 1},
4759 {8 * 1024, 2},
4760 {16 * 1024, 1},
4761 },
Sean Nelson35727f72010-01-28 23:55:12 +00004762 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004763 }, {
4764 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004765 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004766 },
4767 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004768 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004769 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004770 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004771 },
4772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004773 {
Sean Nelson35727f72010-01-28 23:55:12 +00004774 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004775 .vendor = "Fujitsu",
4776 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004777 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004778 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004779 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004780 .total_size = 512,
4781 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004782 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004783 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004784 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004785 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004786 .block_erasers =
4787 {
4788 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004789 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004790 {16 * 1024, 1},
4791 {8 * 1024, 2},
4792 {32 * 1024, 1},
4793 {64 * 1024, 7},
4794 },
4795 .block_erase = block_erase_m29f400bt,
4796 }, {
4797 .eraseblocks = { {512 * 1024, 1} },
4798 .block_erase = block_erase_chip_m29f400bt,
4799 },
4800 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004801 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004802 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004803 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004804 },
4805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 {
4807 .vendor = "Fujitsu",
4808 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004811 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004812 .total_size = 512,
4813 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004814 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004815 .tested = TEST_UNTESTED,
4816 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004817 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004818 .block_erasers =
4819 {
4820 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004821 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004822 {64 * 1024, 7},
4823 {32 * 1024, 1},
4824 {8 * 1024, 2},
4825 {16 * 1024, 1},
4826 },
4827 .block_erase = block_erase_m29f400bt,
4828 }, {
4829 .eraseblocks = { {512 * 1024, 1} },
4830 .block_erase = block_erase_chip_m29f400bt,
4831 },
4832 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004833 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004834 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004835 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004836 },
4837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004839 .vendor = "Fujitsu",
4840 .name = "MBM29LV160BE",
4841 .bustype = BUS_PARALLEL,
4842 .manufacture_id = FUJITSU_ID,
4843 .model_id = FUJITSU_MBM29LV160BE,
4844 .total_size = 2 * 1024,
4845 .page_size = 0,
4846 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4847 .tested = TEST_UNTESTED,
4848 .probe = probe_m29f400bt,
4849 .probe_timing = TIMING_IGNORED,
4850 .block_erasers =
4851 {
4852 {
4853 .eraseblocks = {
4854 {16 * 1024, 1},
4855 {8 * 1024, 2},
4856 {32 * 1024, 1},
4857 {64 * 1024, 31},
4858 },
4859 .block_erase = block_erase_m29f400bt,
4860 }, {
4861 .eraseblocks = { {2048 * 1024, 1} },
4862 .block_erase = block_erase_chip_m29f400bt,
4863 },
4864 },
4865 .write = write_m29f400bt, /* Supports a fast mode too */
4866 .read = read_memmapped,
4867 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4868 },
4869
4870 {
4871 .vendor = "Fujitsu",
4872 .name = "MBM29LV160TE",
4873 .bustype = BUS_PARALLEL,
4874 .manufacture_id = FUJITSU_ID,
4875 .model_id = FUJITSU_MBM29LV160TE,
4876 .total_size = 2 * 1024,
4877 .page_size = 0,
4878 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4879 .tested = TEST_UNTESTED,
4880 .probe = probe_m29f400bt,
4881 .probe_timing = TIMING_IGNORED,
4882 .block_erasers =
4883 {
4884 {
4885 .eraseblocks = {
4886 {64 * 1024, 31},
4887 {32 * 1024, 1},
4888 {8 * 1024, 2},
4889 {16 * 1024, 1},
4890 },
4891 .block_erase = block_erase_m29f400bt,
4892 }, {
4893 .eraseblocks = { {2048 * 1024, 1} },
4894 .block_erase = block_erase_chip_m29f400bt,
4895 },
4896 },
4897 .write = write_m29f400bt, /* Supports a fast mode too */
4898 .read = read_memmapped,
4899 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4900 },
4901
4902 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004903 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004904 .name = "GD25LQ32",
4905 .bustype = BUS_SPI,
4906 .manufacture_id = GIGADEVICE_ID,
4907 .model_id = GIGADEVICE_GD25LQ32,
4908 .total_size = 4096,
4909 .page_size = 256,
4910 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4912 .tested = TEST_OK_PREW,
4913 .probe = probe_spi_rdid,
4914 .probe_timing = TIMING_ZERO,
4915 .block_erasers =
4916 {
4917 {
4918 .eraseblocks = { {4 * 1024, 1024} },
4919 .block_erase = spi_block_erase_20,
4920 }, {
4921 .eraseblocks = { {32 * 1024, 128} },
4922 .block_erase = spi_block_erase_52,
4923 }, {
4924 .eraseblocks = { {64 * 1024, 64} },
4925 .block_erase = spi_block_erase_d8,
4926 }, {
4927 .eraseblocks = { {4 * 1024 * 1024, 1} },
4928 .block_erase = spi_block_erase_60,
4929 }, {
4930 .eraseblocks = { {4 * 1024 * 1024, 1} },
4931 .block_erase = spi_block_erase_c7,
4932 }
4933 },
4934 .printlock = spi_prettyprint_status_register_default_bp4,
4935 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4936 .write = spi_chip_write_256,
4937 .read = spi_chip_read,
4938 .voltage = {1700, 1950},
4939 },
4940
4941 {
4942 .vendor = "GigaDevice",
4943 .name = "GD25Q512",
4944 .bustype = BUS_SPI,
4945 .manufacture_id = GIGADEVICE_ID,
4946 .model_id = GIGADEVICE_GD25Q512,
4947 .total_size = 64,
4948 .page_size = 256,
4949 .feature_bits = FEATURE_WRSR_WREN,
4950 .tested = TEST_UNTESTED,
4951 .probe = probe_spi_rdid,
4952 .probe_timing = TIMING_ZERO,
4953 .block_erasers = {
4954 {
4955 .eraseblocks = { {4 * 1024, 16} },
4956 .block_erase = spi_block_erase_20,
4957 }, {
4958 .eraseblocks = { {32 * 1024, 2} },
4959 .block_erase = spi_block_erase_52,
4960 }, {
4961 .eraseblocks = { {64 * 1024, 1} },
4962 .block_erase = spi_block_erase_60,
4963 }, {
4964 .eraseblocks = { {64 * 1024, 1} },
4965 .block_erase = spi_block_erase_c7,
4966 }
4967 },
4968 .printlock = spi_prettyprint_status_register_default_bp4,
4969 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4970 .write = spi_chip_write_256,
4971 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4972 .voltage = {2700, 3600},
4973 },
4974
4975 {
4976 .vendor = "GigaDevice",
4977 .name = "GD25Q10",
4978 .bustype = BUS_SPI,
4979 .manufacture_id = GIGADEVICE_ID,
4980 .model_id = GIGADEVICE_GD25Q10,
4981 .total_size = 128,
4982 .page_size = 256,
4983 .feature_bits = FEATURE_WRSR_WREN,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
4986 .probe_timing = TIMING_ZERO,
4987 .block_erasers = {
4988 {
4989 .eraseblocks = { {4 * 1024, 32} },
4990 .block_erase = spi_block_erase_20,
4991 }, {
4992 .eraseblocks = { {32 * 1024, 4} },
4993 .block_erase = spi_block_erase_52,
4994 }, {
4995 .eraseblocks = { {64 * 1024, 2} },
4996 .block_erase = spi_block_erase_d8,
4997 }, {
4998 .eraseblocks = { {128 * 1024, 1} },
4999 .block_erase = spi_block_erase_60,
5000 }, {
5001 .eraseblocks = { {128 * 1024, 1} },
5002 .block_erase = spi_block_erase_c7,
5003 }
5004 },
5005 .printlock = spi_prettyprint_status_register_default_bp4,
5006 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5007 .write = spi_chip_write_256,
5008 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5009 .voltage = {2700, 3600},
5010 },
5011
5012 {
5013 .vendor = "GigaDevice",
5014 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005015 .bustype = BUS_SPI,
5016 .manufacture_id = GIGADEVICE_ID,
5017 .model_id = GIGADEVICE_GD25Q20,
5018 .total_size = 256,
5019 .page_size = 256,
5020 .feature_bits = FEATURE_WRSR_WREN,
5021 .tested = TEST_UNTESTED,
5022 .probe = probe_spi_rdid,
5023 .probe_timing = TIMING_ZERO,
5024 .block_erasers =
5025 {
5026 {
5027 .eraseblocks = { {4 * 1024, 64} },
5028 .block_erase = spi_block_erase_20,
5029 }, {
5030 .eraseblocks = { {32 * 1024, 8} },
5031 .block_erase = spi_block_erase_52,
5032 }, {
5033 .eraseblocks = { {64 * 1024, 4} },
5034 .block_erase = spi_block_erase_d8,
5035 }, {
5036 .eraseblocks = { {256 * 1024, 1} },
5037 .block_erase = spi_block_erase_60,
5038 }, {
5039 .eraseblocks = { {256 * 1024, 1} },
5040 .block_erase = spi_block_erase_c7,
5041 }
5042 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005043 .printlock = spi_prettyprint_status_register_default_bp4,
5044 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005045 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005046 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005047 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005048 },
5049
5050 {
5051 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005052 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005053 .bustype = BUS_SPI,
5054 .manufacture_id = GIGADEVICE_ID,
5055 .model_id = GIGADEVICE_GD25Q40,
5056 .total_size = 512,
5057 .page_size = 256,
5058 .feature_bits = FEATURE_WRSR_WREN,
5059 .tested = TEST_UNTESTED,
5060 .probe = probe_spi_rdid,
5061 .probe_timing = TIMING_ZERO,
5062 .block_erasers =
5063 {
5064 {
5065 .eraseblocks = { {4 * 1024, 128} },
5066 .block_erase = spi_block_erase_20,
5067 }, {
5068 .eraseblocks = { {32 * 1024, 16} },
5069 .block_erase = spi_block_erase_52,
5070 }, {
5071 .eraseblocks = { {64 * 1024, 8} },
5072 .block_erase = spi_block_erase_d8,
5073 }, {
5074 .eraseblocks = { {512 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {512 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005081 .printlock = spi_prettyprint_status_register_default_bp4,
5082 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005083 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005085 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005086 },
5087
5088 {
5089 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005090 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005091 .bustype = BUS_SPI,
5092 .manufacture_id = GIGADEVICE_ID,
5093 .model_id = GIGADEVICE_GD25Q80,
5094 .total_size = 1024,
5095 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005096 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5098 .tested = TEST_OK_PREW,
5099 .probe = probe_spi_rdid,
5100 .probe_timing = TIMING_ZERO,
5101 .block_erasers =
5102 {
5103 {
5104 .eraseblocks = { {4 * 1024, 256} },
5105 .block_erase = spi_block_erase_20,
5106 }, {
5107 .eraseblocks = { {32 * 1024, 32} },
5108 .block_erase = spi_block_erase_52,
5109 }, {
5110 .eraseblocks = { {64 * 1024, 16} },
5111 .block_erase = spi_block_erase_d8,
5112 }, {
5113 .eraseblocks = { {1024 * 1024, 1} },
5114 .block_erase = spi_block_erase_60,
5115 }, {
5116 .eraseblocks = { {1024 * 1024, 1} },
5117 .block_erase = spi_block_erase_c7,
5118 }
5119 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005120 .printlock = spi_prettyprint_status_register_default_bp4,
5121 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005122 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005123 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005124 .voltage = {2700, 3600},
5125 },
5126
5127 {
5128 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005129 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005130 .bustype = BUS_SPI,
5131 .manufacture_id = GIGADEVICE_ID,
5132 .model_id = GIGADEVICE_GD25Q16,
5133 .total_size = 2048,
5134 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005135 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5137 .tested = TEST_UNTESTED,
5138 .probe = probe_spi_rdid,
5139 .probe_timing = TIMING_ZERO,
5140 .block_erasers =
5141 {
5142 {
5143 .eraseblocks = { {4 * 1024, 512} },
5144 .block_erase = spi_block_erase_20,
5145 }, {
5146 .eraseblocks = { {32 * 1024, 64} },
5147 .block_erase = spi_block_erase_52,
5148 }, {
5149 .eraseblocks = { {64 * 1024, 32} },
5150 .block_erase = spi_block_erase_d8,
5151 }, {
5152 .eraseblocks = { {2 * 1024 * 1024, 1} },
5153 .block_erase = spi_block_erase_60,
5154 }, {
5155 .eraseblocks = { {2 * 1024 * 1024, 1} },
5156 .block_erase = spi_block_erase_c7,
5157 }
5158 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005159 .printlock = spi_prettyprint_status_register_default_bp4,
5160 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005162 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005163 .voltage = {2700, 3600},
5164 },
5165
5166 {
5167 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005168 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005169 .bustype = BUS_SPI,
5170 .manufacture_id = GIGADEVICE_ID,
5171 .model_id = GIGADEVICE_GD25Q32,
5172 .total_size = 4096,
5173 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005174 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005176 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005177 .probe = probe_spi_rdid,
5178 .probe_timing = TIMING_ZERO,
5179 .block_erasers =
5180 {
5181 {
5182 .eraseblocks = { {4 * 1024, 1024} },
5183 .block_erase = spi_block_erase_20,
5184 }, {
5185 .eraseblocks = { {32 * 1024, 128} },
5186 .block_erase = spi_block_erase_52,
5187 }, {
5188 .eraseblocks = { {64 * 1024, 64} },
5189 .block_erase = spi_block_erase_d8,
5190 }, {
5191 .eraseblocks = { {4 * 1024 * 1024, 1} },
5192 .block_erase = spi_block_erase_60,
5193 }, {
5194 .eraseblocks = { {4 * 1024 * 1024, 1} },
5195 .block_erase = spi_block_erase_c7,
5196 }
5197 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005198 .printlock = spi_prettyprint_status_register_default_bp4,
5199 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005200 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005201 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005202 .voltage = {2700, 3600},
5203 },
5204
5205 {
5206 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005207 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005208 .bustype = BUS_SPI,
5209 .manufacture_id = GIGADEVICE_ID,
5210 .model_id = GIGADEVICE_GD25Q64,
5211 .total_size = 8192,
5212 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005213 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005215 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005216 .probe = probe_spi_rdid,
5217 .probe_timing = TIMING_ZERO,
5218 .block_erasers =
5219 {
5220 {
5221 .eraseblocks = { {4 * 1024, 2048} },
5222 .block_erase = spi_block_erase_20,
5223 }, {
5224 .eraseblocks = { {32 * 1024, 256} },
5225 .block_erase = spi_block_erase_52,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 128} },
5228 .block_erase = spi_block_erase_d8,
5229 }, {
5230 .eraseblocks = { {8 * 1024 * 1024, 1} },
5231 .block_erase = spi_block_erase_60,
5232 }, {
5233 .eraseblocks = { {8 * 1024 * 1024, 1} },
5234 .block_erase = spi_block_erase_c7,
5235 }
5236 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005237 .printlock = spi_prettyprint_status_register_default_bp4,
5238 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005239 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005240 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005241 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005242 },
5243
5244 {
5245 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005246 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005247 .bustype = BUS_SPI,
5248 .manufacture_id = GIGADEVICE_ID,
5249 .model_id = GIGADEVICE_GD25Q128,
5250 .total_size = 16384,
5251 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005252 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5254 .tested = TEST_UNTESTED,
5255 .probe = probe_spi_rdid,
5256 .probe_timing = TIMING_ZERO,
5257 .block_erasers =
5258 {
5259 {
5260 .eraseblocks = { {4 * 1024, 4096} },
5261 .block_erase = spi_block_erase_20,
5262 }, {
5263 .eraseblocks = { {32 * 1024, 512} },
5264 .block_erase = spi_block_erase_52,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 256} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {16 * 1024 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {16 * 1024 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005276 .printlock = spi_prettyprint_status_register_default_bp4,
5277 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5280 .voltage = {2700, 3600},
5281 },
5282
5283 {
5284 .vendor = "GigaDevice",
5285 .name = "GD25T80",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = GIGADEVICE_ID,
5288 .model_id = GIGADEVICE_GD25T80,
5289 .total_size = 1024,
5290 .page_size = 256,
5291 /* OTP: 256B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
5296 .block_erasers = {
5297 {
5298 .eraseblocks = { {4 * 1024, 256} },
5299 .block_erase = spi_block_erase_20,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 16} },
5302 .block_erase = spi_block_erase_52,
5303 }, {
5304 .eraseblocks = { {64 * 1024, 16} },
5305 .block_erase = spi_block_erase_d8,
5306 }, {
5307 .eraseblocks = { {1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_60,
5309 }, {
5310 .eraseblocks = { {1024 * 1024, 1} },
5311 .block_erase = spi_block_erase_c7,
5312 }
5313 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005314 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005315 .unlock = spi_disable_blockprotect,
5316 .write = spi_chip_write_256,
5317 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005318 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005319 },
5320
5321 {
David Borgc96a8bd2010-06-21 16:12:22 +00005322 .vendor = "Hyundai",
5323 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005324 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005325 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005326 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005327 .total_size = 256,
5328 .page_size = 256 * 1024,
5329 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005330 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005331 .probe = probe_jedec,
5332 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5333 .block_erasers =
5334 {
5335 {
5336 .eraseblocks = {
5337 {64 * 1024, 3},
5338 {32 * 1024, 1},
5339 {8 * 1024, 2},
5340 {16 * 1024, 1},
5341 },
5342 .block_erase = erase_sector_jedec,
5343 }, {
5344 .eraseblocks = { {256 * 1024, 1} },
5345 .block_erase = erase_chip_block_jedec,
5346 },
5347 },
5348 .write = write_jedec_1,
5349 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005350 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005351 },
5352
5353 {
5354 .vendor = "Hyundai",
5355 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005356 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005357 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005358 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005359 .total_size = 256,
5360 .page_size = 256 * 1024,
5361 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5362 .tested = TEST_UNTESTED,
5363 .probe = probe_jedec,
5364 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5365 .block_erasers =
5366 {
5367 {
5368 .eraseblocks = {
5369 {16 * 1024, 1},
5370 {8 * 1024, 2},
5371 {32 * 1024, 1},
5372 {64 * 1024, 3},
5373 },
5374 .block_erase = erase_sector_jedec,
5375 }, {
5376 .eraseblocks = { {256 * 1024, 1} },
5377 .block_erase = erase_chip_block_jedec,
5378 },
5379 },
5380 .write = write_jedec_1,
5381 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005382 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005383 },
5384
5385 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005386 .vendor = "Hyundai",
5387 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005388 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005389 .manufacture_id = HYUNDAI_ID,
5390 .model_id = HYUNDAI_HY29F040A,
5391 .total_size = 512,
5392 .page_size = 64 * 1024,
5393 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5394 .tested = TEST_UNTESTED,
5395 .probe = probe_jedec,
5396 .probe_timing = TIMING_ZERO,
5397 .block_erasers =
5398 {
5399 {
5400 .eraseblocks = { {64 * 1024, 8} },
5401 .block_erase = erase_sector_jedec,
5402 }, {
5403 .eraseblocks = { {512 * 1024, 1} },
5404 .block_erase = erase_chip_block_jedec,
5405 },
5406 },
5407 .write = write_jedec_1,
5408 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005409 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005410 },
5411
5412 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005413 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005414 .name = "25F160S33B8",
5415 .bustype = BUS_SPI,
5416 .manufacture_id = INTEL_ID,
5417 .model_id = INTEL_25F160S33B8,
5418 .total_size = 2048,
5419 .page_size = 256,
5420 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5422 .tested = TEST_UNTESTED,
5423 .probe = probe_spi_rdid,
5424 .probe_timing = TIMING_ZERO,
5425 .block_erasers =
5426 {
5427 {
5428 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5429 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5430 * have no effect on the memory contents, but sets a flag in the SR.
5431 .eraseblocks = {
5432 {8 * 1024, 8},
5433 {64 * 1024, 31} // inaccessible
5434 },
5435 .block_erase = spi_block_erase_40,
5436 }, { */
5437 .eraseblocks = { {64 * 1024, 32} },
5438 .block_erase = spi_block_erase_d8,
5439 }, {
5440 .eraseblocks = { {2 * 1024 * 1024, 1} },
5441 .block_erase = spi_block_erase_c7,
5442 }
5443 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005444 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5445 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005446 .write = spi_chip_write_256,
5447 .read = spi_chip_read, /* also fast read 0x0B */
5448 .voltage = {2700, 3600},
5449 },
5450
5451 {
5452 .vendor = "Intel",
5453 .name = "25F160S33T8",
5454 .bustype = BUS_SPI,
5455 .manufacture_id = INTEL_ID,
5456 .model_id = INTEL_25F160S33T8,
5457 .total_size = 2048,
5458 .page_size = 256,
5459 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5461 .tested = TEST_UNTESTED,
5462 .probe = probe_spi_rdid,
5463 .probe_timing = TIMING_ZERO,
5464 .block_erasers =
5465 {
5466 {
5467 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5468 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5469 * have no effect on the memory contents, but sets a flag in the SR.
5470 .eraseblocks = {
5471 {64 * 1024, 31}, // inaccessible
5472 {8 * 1024, 8}
5473 },
5474 .block_erase = spi_block_erase_40,
5475 }, { */
5476 .eraseblocks = { {64 * 1024, 32} },
5477 .block_erase = spi_block_erase_d8,
5478 }, {
5479 .eraseblocks = { {2 * 1024 * 1024, 1} },
5480 .block_erase = spi_block_erase_c7,
5481 }
5482 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005483 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5484 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005485 .write = spi_chip_write_256,
5486 .read = spi_chip_read, /* also fast read 0x0B */
5487 .voltage = {2700, 3600},
5488 },
5489
5490 {
5491 .vendor = "Intel",
5492 .name = "25F320S33B8",
5493 .bustype = BUS_SPI,
5494 .manufacture_id = INTEL_ID,
5495 .model_id = INTEL_25F320S33B8,
5496 .total_size = 4096,
5497 .page_size = 256,
5498 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5500 .tested = TEST_UNTESTED,
5501 .probe = probe_spi_rdid,
5502 .probe_timing = TIMING_ZERO,
5503 .block_erasers =
5504 {
5505 {
5506 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5507 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5508 * have no effect on the memory contents, but sets a flag in the SR.
5509 .eraseblocks = {
5510 {8 * 1024, 8},
5511 {64 * 1024, 63} // inaccessible
5512 },
5513 .block_erase = spi_block_erase_40,
5514 }, { */
5515 .eraseblocks = { {64 * 1024, 64} },
5516 .block_erase = spi_block_erase_d8,
5517 }, {
5518 .eraseblocks = { {4 * 1024 * 1024, 1} },
5519 .block_erase = spi_block_erase_c7,
5520 }
5521 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005522 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5523 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005524 .write = spi_chip_write_256,
5525 .read = spi_chip_read, /* also fast read 0x0B */
5526 .voltage = {2700, 3600},
5527 },
5528
5529 {
5530 .vendor = "Intel",
5531 .name = "25F320S33T8",
5532 .bustype = BUS_SPI,
5533 .manufacture_id = INTEL_ID,
5534 .model_id = INTEL_25F320S33T8,
5535 .total_size = 4096,
5536 .page_size = 256,
5537 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5539 .tested = TEST_UNTESTED,
5540 .probe = probe_spi_rdid,
5541 .probe_timing = TIMING_ZERO,
5542 .block_erasers =
5543 {
5544 {
5545 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5546 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5547 * have no effect on the memory contents, but sets a flag in the SR.
5548 .eraseblocks = {
5549 {64 * 1024, 63}, // inaccessible
5550 {8 * 1024, 8}
5551 },
5552 .block_erase = spi_block_erase_40,
5553 }, { */
5554 .eraseblocks = { {64 * 1024, 64} },
5555 .block_erase = spi_block_erase_d8,
5556 }, {
5557 .eraseblocks = { {4 * 1024 * 1024, 1} },
5558 .block_erase = spi_block_erase_c7,
5559 }
5560 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005561 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5562 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005563 .write = spi_chip_write_256,
5564 .read = spi_chip_read, /* also fast read 0x0B */
5565 .voltage = {2700, 3600},
5566 },
5567
5568 {
5569 .vendor = "Intel",
5570 .name = "25F640S33B8",
5571 .bustype = BUS_SPI,
5572 .manufacture_id = INTEL_ID,
5573 .model_id = INTEL_25F640S33B8,
5574 .total_size = 8192,
5575 .page_size = 256,
5576 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5578 .tested = TEST_UNTESTED,
5579 .probe = probe_spi_rdid,
5580 .probe_timing = TIMING_ZERO,
5581 .block_erasers =
5582 {
5583 {
5584 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5585 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5586 * have no effect on the memory contents, but sets a flag in the SR.
5587 .eraseblocks = {
5588 {8 * 1024, 8},
5589 {64 * 1024, 127} // inaccessible
5590 },
5591 .block_erase = spi_block_erase_40,
5592 }, { */
5593 .eraseblocks = { {64 * 1024, 128} },
5594 .block_erase = spi_block_erase_d8,
5595 }, {
5596 .eraseblocks = { {8 * 1024 * 1024, 1} },
5597 .block_erase = spi_block_erase_c7,
5598 }
5599 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005600 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5601 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005602 .write = spi_chip_write_256,
5603 .read = spi_chip_read, /* also fast read 0x0B */
5604 .voltage = {2700, 3600},
5605 },
5606
5607 {
5608 .vendor = "Intel",
5609 .name = "25F640S33T8",
5610 .bustype = BUS_SPI,
5611 .manufacture_id = INTEL_ID,
5612 .model_id = INTEL_25F640S33T8,
5613 .total_size = 8192,
5614 .page_size = 256,
5615 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5616 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5617 .tested = TEST_UNTESTED,
5618 .probe = probe_spi_rdid,
5619 .probe_timing = TIMING_ZERO,
5620 .block_erasers =
5621 {
5622 {
5623 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5624 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5625 * have no effect on the memory contents, but sets a flag in the SR.
5626 .eraseblocks = {
5627 {64 * 1024, 127}, // inaccessible
5628 {8 * 1024, 8}
5629 },
5630 .block_erase = spi_block_erase_40,
5631 }, { */
5632 .eraseblocks = { {64 * 1024, 128} },
5633 .block_erase = spi_block_erase_d8,
5634 }, {
5635 .eraseblocks = { {8 * 1024 * 1024, 1} },
5636 .block_erase = spi_block_erase_c7,
5637 }
5638 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005639 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5640 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005641 .write = spi_chip_write_256,
5642 .read = spi_chip_read, /* also fast read 0x0B */
5643 .voltage = {2700, 3600},
5644 },
5645
5646 {
5647 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005648 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005649 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005650 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005651 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005652 .total_size = 128,
5653 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005654 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005655 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005657 .block_erasers =
5658 {
5659 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005660 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005661 {8 * 1024, 1},
5662 {4 * 1024, 2},
5663 {112 * 1024, 1},
5664 },
Sean Nelson28accc22010-03-19 18:47:06 +00005665 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005666 },
5667 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005668 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005669 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005670 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005671 },
5672
5673 {
5674 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005675 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005676 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005677 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005678 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005679 .total_size = 128,
5680 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005681 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005682 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005683 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005684 .block_erasers =
5685 {
5686 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005687 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005688 {112 * 1024, 1},
5689 {4 * 1024, 2},
5690 {8 * 1024, 1},
5691 },
Sean Nelson28accc22010-03-19 18:47:06 +00005692 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005693 },
5694 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005695 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005697 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005698 },
5699
5700 {
5701 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005702 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005703 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005704 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005705 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005706 .total_size = 256,
5707 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005708 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005709 .probe = probe_82802ab,
5710 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5711 .block_erasers =
5712 {
5713 {
5714 .eraseblocks = {
5715 {128 * 1024, 1},
5716 {96 * 1024, 1},
5717 {8 * 1024, 2},
5718 {16 * 1024, 1},
5719 },
5720 .block_erase = erase_block_82802ab,
5721 },
5722 },
5723 .write = write_82802ab,
5724 .read = read_memmapped,
5725 },
5726
5727 {
5728 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005729 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005730 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005731 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005732 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005733 .total_size = 512,
5734 .page_size = 256,
5735 .tested = TEST_UNTESTED,
5736 .probe = probe_82802ab,
5737 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005738 .block_erasers =
5739 {
5740 {
5741 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005742 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005743 },
5744 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005745 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005746 .write = write_82802ab,
5747 .read = read_memmapped,
5748 },
5749
5750 {
5751 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005752 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005753 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005754 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005755 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005756 .total_size = 512,
5757 .page_size = 128 * 1024, /* maximal block size */
5758 .tested = TEST_UNTESTED,
5759 .probe = probe_82802ab,
5760 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5761 .block_erasers =
5762 {
5763 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005764 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005765 {16 * 1024, 1},
5766 {8 * 1024, 2},
5767 {96 * 1024, 1},
5768 {128 * 1024, 3},
5769 },
5770 .block_erase = erase_block_82802ab,
5771 },
5772 },
5773 .write = write_82802ab,
5774 .read = read_memmapped,
5775 },
5776
5777 {
5778 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005779 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005780 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005781 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005782 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005783 .total_size = 512,
5784 .page_size = 128 * 1024, /* maximal block size */
5785 .tested = TEST_UNTESTED,
5786 .probe = probe_82802ab,
5787 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5788 .block_erasers =
5789 {
5790 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005791 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005792 {128 * 1024, 3},
5793 {96 * 1024, 1},
5794 {8 * 1024, 2},
5795 {16 * 1024, 1},
5796 },
5797 .block_erase = erase_block_82802ab,
5798 },
5799 },
5800 .write = write_82802ab,
5801 .read = read_memmapped,
5802 },
5803
5804 {
5805 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005806 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005807 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005808 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005809 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005810 .total_size = 512,
5811 .page_size = 128 * 1024, /* maximal block size */
5812 .feature_bits = FEATURE_ADDR_SHIFTED,
5813 .tested = TEST_UNTESTED,
5814 .probe = probe_82802ab,
5815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5816 .block_erasers =
5817 {
5818 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005819 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005820 {16 * 1024, 1},
5821 {8 * 1024, 2},
5822 {96 * 1024, 1},
5823 {128 * 1024, 3},
5824 },
5825 .block_erase = erase_block_82802ab,
5826 },
5827 },
5828 .write = write_82802ab,
5829 .read = read_memmapped,
5830 },
5831
5832 {
5833 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005834 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005835 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005836 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005837 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005838 .total_size = 512,
5839 .page_size = 128 * 1024, /* maximal block size */
5840 .feature_bits = FEATURE_ADDR_SHIFTED,
5841 .tested = TEST_UNTESTED,
5842 .probe = probe_82802ab,
5843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5844 .block_erasers =
5845 {
5846 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005847 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005848 {128 * 1024, 3},
5849 {96 * 1024, 1},
5850 {8 * 1024, 2},
5851 {16 * 1024, 1},
5852 },
5853 .block_erase = erase_block_82802ab,
5854 },
5855 },
5856 .write = write_82802ab,
5857 .read = read_memmapped,
5858 },
5859
5860 {
5861 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005862 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005863 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005864 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005865 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005866 .total_size = 512,
5867 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005868 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005869 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005870 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005871 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005872 .block_erasers =
5873 {
5874 {
5875 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005876 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005877 },
5878 },
Sean Nelson28accc22010-03-19 18:47:06 +00005879 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005880 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005882 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005883 },
5884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005885 {
5886 .vendor = "Intel",
5887 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005888 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005889 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005890 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005891 .total_size = 1024,
5892 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005893 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005894 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005895 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005896 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005897 .block_erasers =
5898 {
5899 {
5900 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005901 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005902 },
5903 },
Sean Nelson28accc22010-03-19 18:47:06 +00005904 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005905 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005907 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005908 },
5909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005910 {
5911 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00005912 .name = "MX23L3254",
5913 .bustype = BUS_SPI,
5914 .manufacture_id = MACRONIX_ID,
5915 .model_id = MACRONIX_MX23L3254,
5916 .total_size = 4096,
5917 .page_size = 256,
5918 .tested = TEST_OK_PR | TEST_BAD_EW,
5919 .probe = probe_spi_rdid,
5920 .probe_timing = TIMING_ZERO,
5921 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
5922 .read = spi_chip_read, /* Fast read (0x0B) supported */
5923 .voltage = {3000, 3600},
5924 },
5925
5926 {
5927 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005928 .name = "MX25L512(E)/MX25V512(C)",
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_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005932 .total_size = 64,
5933 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005934 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005935 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005936 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005938 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 16} },
5943 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005944 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005945 .eraseblocks = { {64 * 1024, 1} },
5946 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005947 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005948 .eraseblocks = { {64 * 1024, 1} },
5949 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005950 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005951 .eraseblocks = { {64 * 1024, 1} },
5952 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005953 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005954 .eraseblocks = { {64 * 1024, 1} },
5955 .block_erase = spi_block_erase_c7,
5956 },
5957 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005958 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005959 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005960 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005961 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5962 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005963 },
5964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005965 {
5966 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005967 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005968 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005969 .manufacture_id = MACRONIX_ID,
5970 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005971 .total_size = 128,
5972 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005973 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005974 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005975 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005976 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005977 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {4 * 1024, 32} },
5982 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005983 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005984 .eraseblocks = { {64 * 1024, 2} },
5985 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005986 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005987 .eraseblocks = { {128 * 1024, 1} },
5988 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005989 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005990 .eraseblocks = { {128 * 1024, 1} },
5991 .block_erase = spi_block_erase_c7,
5992 },
5993 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005994 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005995 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005996 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005997 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005998 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005999 },
6000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006001 {
6002 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006003 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006004 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006005 .manufacture_id = MACRONIX_ID,
6006 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006007 .total_size = 256,
6008 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006009 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006012 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006013 .block_erasers =
6014 {
6015 {
6016 .eraseblocks = { {4 * 1024, 64} },
6017 .block_erase = spi_block_erase_20,
6018 }, {
6019 .eraseblocks = { {64 * 1024, 4} },
6020 .block_erase = spi_block_erase_52,
6021 }, {
6022 .eraseblocks = { {64 * 1024, 4} },
6023 .block_erase = spi_block_erase_d8,
6024 }, {
6025 .eraseblocks = { {256 * 1024, 1} },
6026 .block_erase = spi_block_erase_60,
6027 }, {
6028 .eraseblocks = { {256 * 1024, 1} },
6029 .block_erase = spi_block_erase_c7,
6030 },
6031 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006032 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006033 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006034 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006035 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006036 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006037 },
6038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006039 {
6040 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006041 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006042 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006043 .manufacture_id = MACRONIX_ID,
6044 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .total_size = 512,
6046 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006047 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006048 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006051 .block_erasers =
6052 {
6053 {
6054 .eraseblocks = { {4 * 1024, 128} },
6055 .block_erase = spi_block_erase_20,
6056 }, {
6057 .eraseblocks = { {64 * 1024, 8} },
6058 .block_erase = spi_block_erase_52,
6059 }, {
6060 .eraseblocks = { {64 * 1024, 8} },
6061 .block_erase = spi_block_erase_d8,
6062 }, {
6063 .eraseblocks = { {512 * 1024, 1} },
6064 .block_erase = spi_block_erase_60,
6065 }, {
6066 .eraseblocks = { {512 * 1024, 1} },
6067 .block_erase = spi_block_erase_c7,
6068 },
6069 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006070 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006071 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006072 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006073 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006074 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006075 },
6076
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 {
6078 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006079 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006080 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006081 .manufacture_id = MACRONIX_ID,
6082 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006083 .total_size = 1024,
6084 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006085 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006086 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006087 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006088 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006089 .block_erasers =
6090 {
6091 {
6092 .eraseblocks = { {4 * 1024, 256} },
6093 .block_erase = spi_block_erase_20,
6094 }, {
6095 .eraseblocks = { {64 * 1024, 16} },
6096 .block_erase = spi_block_erase_52,
6097 }, {
6098 .eraseblocks = { {64 * 1024, 16} },
6099 .block_erase = spi_block_erase_d8,
6100 }, {
6101 .eraseblocks = { {1024 * 1024, 1} },
6102 .block_erase = spi_block_erase_60,
6103 }, {
6104 .eraseblocks = { {1024 * 1024, 1} },
6105 .block_erase = spi_block_erase_c7,
6106 },
6107 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006108 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006110 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006111 .read = spi_chip_read, /* Fast read (0x0B) supported */
6112 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006113 },
6114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006115 {
6116 .vendor = "Macronix",
6117 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006118 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006119 .manufacture_id = MACRONIX_ID,
6120 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006121 .total_size = 2048,
6122 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006123 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006124 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006125 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006126 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006127 .block_erasers =
6128 {
6129 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006130 .eraseblocks = { {64 * 1024, 32} },
6131 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006132 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006133 .eraseblocks = { {64 * 1024, 32} },
6134 .block_erase = spi_block_erase_d8,
6135 }, {
6136 .eraseblocks = { {2 * 1024 * 1024, 1} },
6137 .block_erase = spi_block_erase_60,
6138 }, {
6139 .eraseblocks = { {2 * 1024 * 1024, 1} },
6140 .block_erase = spi_block_erase_c7,
6141 },
6142 },
6143 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
6144 .unlock = spi_disable_blockprotect,
6145 .write = spi_chip_write_256,
6146 .read = spi_chip_read, /* Fast read (0x0B) supported */
6147 .voltage = {2700, 3600},
6148 },
6149
6150 {
6151 .vendor = "Macronix",
6152 .name = "MX25L1605A/MX25L1606E",
6153 .bustype = BUS_SPI,
6154 .manufacture_id = MACRONIX_ID,
6155 .model_id = MACRONIX_MX25L1605,
6156 .total_size = 2048,
6157 .page_size = 256,
6158 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6160 .tested = TEST_OK_PREW,
6161 .probe = probe_spi_rdid,
6162 .probe_timing = TIMING_ZERO,
6163 .block_erasers =
6164 {
6165 {
6166 .eraseblocks = { {4 * 1024, 512} },
6167 .block_erase = spi_block_erase_20,
6168 }, {
6169 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006170 .block_erase = spi_block_erase_52,
6171 }, {
6172 .eraseblocks = { {64 * 1024, 32} },
6173 .block_erase = spi_block_erase_d8,
6174 }, {
6175 .eraseblocks = { {2 * 1024 * 1024, 1} },
6176 .block_erase = spi_block_erase_60,
6177 }, {
6178 .eraseblocks = { {2 * 1024 * 1024, 1} },
6179 .block_erase = spi_block_erase_c7,
6180 },
6181 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006182 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006183 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006184 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006185 .read = spi_chip_read, /* Fast read (0x0B) supported */
6186 .voltage = {2700, 3600},
6187 },
6188
6189 {
6190 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006191 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006192 .bustype = BUS_SPI,
6193 .manufacture_id = MACRONIX_ID,
6194 .model_id = MACRONIX_MX25L1605,
6195 .total_size = 2048,
6196 .page_size = 256,
6197 .feature_bits = FEATURE_WRSR_WREN,
6198 .tested = TEST_OK_PREW,
6199 .probe = probe_spi_rdid,
6200 .probe_timing = TIMING_ZERO,
6201 .block_erasers =
6202 {
6203 {
6204 .eraseblocks = { {4 * 1024, 512} },
6205 .block_erase = spi_block_erase_20,
6206 }, {
6207 .eraseblocks = { {64 * 1024, 32} },
6208 .block_erase = spi_block_erase_d8,
6209 }, {
6210 .eraseblocks = { {2 * 1024 * 1024, 1} },
6211 .block_erase = spi_block_erase_60,
6212 }, {
6213 .eraseblocks = { {2 * 1024 * 1024, 1} },
6214 .block_erase = spi_block_erase_c7,
6215 },
6216 },
6217 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
6218 .unlock = spi_disable_blockprotect,
6219 .write = spi_chip_write_256,
6220 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006221 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006222 },
6223
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006224 {
6225 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006226 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006227 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006228 .manufacture_id = MACRONIX_ID,
6229 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006230 .total_size = 2048,
6231 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006232 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006234 .tested = TEST_UNTESTED,
6235 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006236 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006237 .block_erasers =
6238 {
6239 {
6240 .eraseblocks = { {4 * 1024, 512} },
6241 .block_erase = spi_block_erase_20,
6242 }, {
6243 .eraseblocks = { {64 * 1024, 32} },
6244 .block_erase = spi_block_erase_d8,
6245 }, {
6246 .eraseblocks = { {2 * 1024 * 1024, 1} },
6247 .block_erase = spi_block_erase_60,
6248 }, {
6249 .eraseblocks = { {2 * 1024 * 1024, 1} },
6250 .block_erase = spi_block_erase_c7,
6251 }
6252 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006253 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006254 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006255 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006256 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006257 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006258 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006259
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006260 {
6261 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006262 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006263 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006264 .manufacture_id = MACRONIX_ID,
6265 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006266 .total_size = 2048,
6267 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006268 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006270 .tested = TEST_UNTESTED,
6271 .probe = probe_spi_rdid,
6272 .probe_timing = TIMING_ZERO,
6273 .block_erasers =
6274 {
6275 {
6276 .eraseblocks = { {4 * 1024, 512} },
6277 .block_erase = spi_block_erase_20,
6278 }, {
6279 .eraseblocks = { {64 * 1024, 32} },
6280 .block_erase = spi_block_erase_d8,
6281 }, {
6282 .eraseblocks = { {2 * 1024 * 1024, 1} },
6283 .block_erase = spi_block_erase_60,
6284 }, {
6285 .eraseblocks = { {2 * 1024 * 1024, 1} },
6286 .block_erase = spi_block_erase_c7,
6287 }
6288 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006289 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006290 .unlock = spi_disable_blockprotect,
6291 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006292 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006293 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006294 },
6295
6296 {
6297 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006299 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006300 .manufacture_id = MACRONIX_ID,
6301 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006302 .total_size = 4096,
6303 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006304 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006305 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006306 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006307 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006308 .block_erasers =
6309 {
6310 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006311 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006312 .block_erase = spi_block_erase_20,
6313 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006314 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006315 .block_erase = spi_block_erase_d8,
6316 }, {
6317 .eraseblocks = { {4 * 1024 * 1024, 1} },
6318 .block_erase = spi_block_erase_60,
6319 }, {
6320 .eraseblocks = { {4 * 1024 * 1024, 1} },
6321 .block_erase = spi_block_erase_c7,
6322 },
6323 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006324 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006325 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006326 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006327 .read = spi_chip_read, /* Fast read (0x0B) supported */
6328 .voltage = {2700, 3600},
6329 },
6330
6331 {
6332 .vendor = "Macronix",
6333 .name = "MX25L3205D/MX25L3208D",
6334 .bustype = BUS_SPI,
6335 .manufacture_id = MACRONIX_ID,
6336 .model_id = MACRONIX_MX25L3205,
6337 .total_size = 4096,
6338 .page_size = 256,
6339 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6341 .tested = TEST_OK_PREW,
6342 .probe = probe_spi_rdid,
6343 .probe_timing = TIMING_ZERO,
6344 .block_erasers =
6345 {
6346 {
6347 .eraseblocks = { {4 * 1024, 1024} },
6348 .block_erase = spi_block_erase_20,
6349 }, {
6350 .eraseblocks = { {64 * 1024, 64} },
6351 .block_erase = spi_block_erase_d8,
6352 }, {
6353 .eraseblocks = { {4 * 1024 * 1024, 1} },
6354 .block_erase = spi_block_erase_60,
6355 }, {
6356 .eraseblocks = { {4 * 1024 * 1024, 1} },
6357 .block_erase = spi_block_erase_c7,
6358 },
6359 },
6360 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6361 .unlock = spi_disable_blockprotect,
6362 .write = spi_chip_write_256,
6363 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6364 .voltage = {2700, 3600},
6365 },
6366
6367 {
6368 .vendor = "Macronix",
6369 .name = "MX25L3206E",
6370 .bustype = BUS_SPI,
6371 .manufacture_id = MACRONIX_ID,
6372 .model_id = MACRONIX_MX25L3205,
6373 .total_size = 4096,
6374 .page_size = 256,
6375 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6376 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6377 .tested = TEST_OK_PREW,
6378 .probe = probe_spi_rdid,
6379 .probe_timing = TIMING_ZERO,
6380 .block_erasers =
6381 {
6382 {
6383 .eraseblocks = { {4 * 1024, 1024} },
6384 .block_erase = spi_block_erase_20,
6385 }, {
6386 .eraseblocks = { {64 * 1024, 64} },
6387 .block_erase = spi_block_erase_d8,
6388 }, {
6389 .eraseblocks = { {64 * 1024, 64} },
6390 .block_erase = spi_block_erase_52,
6391 }, {
6392 .eraseblocks = { {4 * 1024 * 1024, 1} },
6393 .block_erase = spi_block_erase_60,
6394 }, {
6395 .eraseblocks = { {4 * 1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_c7,
6397 },
6398 },
6399 .printlock = spi_prettyprint_status_register_default_bp3,
6400 .unlock = spi_disable_blockprotect,
6401 .write = spi_chip_write_256,
6402 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006403 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006404 },
6405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006406 {
6407 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006408 .name = "MX25L3273E",
6409 .bustype = BUS_SPI,
6410 .manufacture_id = MACRONIX_ID,
6411 .model_id = MACRONIX_MX25L3205,
6412 .total_size = 4096,
6413 .page_size = 256,
6414 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6416 .tested = TEST_UNTESTED,
6417 .probe = probe_spi_rdid,
6418 .probe_timing = TIMING_ZERO,
6419 .block_erasers =
6420 {
6421 {
6422 .eraseblocks = { {4 * 1024, 1024} },
6423 .block_erase = spi_block_erase_20,
6424 }, {
6425 .eraseblocks = { {32 * 1024, 128} },
6426 .block_erase = spi_block_erase_52,
6427 }, {
6428 .eraseblocks = { {64 * 1024, 64} },
6429 .block_erase = spi_block_erase_d8,
6430 }, {
6431 .eraseblocks = { {4 * 1024 * 1024, 1} },
6432 .block_erase = spi_block_erase_60,
6433 }, {
6434 .eraseblocks = { {4 * 1024 * 1024, 1} },
6435 .block_erase = spi_block_erase_c7,
6436 },
6437 },
6438 .printlock = spi_prettyprint_status_register_default_bp3,
6439 .unlock = spi_disable_blockprotect,
6440 .write = spi_chip_write_256,
6441 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6442 .voltage = {2700, 3600},
6443 },
6444
6445 {
6446 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006447 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006448 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006449 .manufacture_id = MACRONIX_ID,
6450 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006451 .total_size = 4096,
6452 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006453 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006455 .tested = TEST_UNTESTED,
6456 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006457 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006458 .block_erasers =
6459 {
6460 {
6461 .eraseblocks = { {4 * 1024, 1024} },
6462 .block_erase = spi_block_erase_20,
6463 }, {
6464 .eraseblocks = { {64 * 1024, 64} },
6465 .block_erase = spi_block_erase_d8,
6466 }, {
6467 .eraseblocks = { {4 * 1024 * 1024, 1} },
6468 .block_erase = spi_block_erase_60,
6469 }, {
6470 .eraseblocks = { {4 * 1024 * 1024, 1} },
6471 .block_erase = spi_block_erase_c7,
6472 }
6473 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006474 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006475 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006476 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006477 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006478 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006479 },
6480
6481 {
6482 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006483 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006484 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006485 .manufacture_id = MACRONIX_ID,
6486 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006487 .total_size = 8192,
6488 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006489 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006491 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006493 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006494 .block_erasers =
6495 {
6496 {
6497 .eraseblocks = { {64 * 1024, 128} },
6498 .block_erase = spi_block_erase_20,
6499 }, {
6500 .eraseblocks = { {64 * 1024, 128} },
6501 .block_erase = spi_block_erase_d8,
6502 }, {
6503 .eraseblocks = { {8 * 1024 * 1024, 1} },
6504 .block_erase = spi_block_erase_60,
6505 }, {
6506 .eraseblocks = { {8 * 1024 * 1024, 1} },
6507 .block_erase = spi_block_erase_c7,
6508 }
6509 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006510 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006511 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006515 },
6516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006517 {
6518 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006519 .name = "MX25L6406E/MX25L6436E",
6520 .bustype = BUS_SPI,
6521 .manufacture_id = MACRONIX_ID,
6522 .model_id = MACRONIX_MX25L6405,
6523 .total_size = 8192,
6524 .page_size = 256,
6525 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6526 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6527 .tested = TEST_OK_PREW,
6528 .probe = probe_spi_rdid,
6529 .probe_timing = TIMING_ZERO,
6530 .block_erasers =
6531 {
6532 {
6533 .eraseblocks = { {4 * 1024, 2048} },
6534 .block_erase = spi_block_erase_20,
6535 }, {
6536 .eraseblocks = { {64 * 1024, 128} },
6537 .block_erase = spi_block_erase_d8,
6538 }, {
6539 .eraseblocks = { {8 * 1024 * 1024, 1} },
6540 .block_erase = spi_block_erase_60,
6541 }, {
6542 .eraseblocks = { {8 * 1024 * 1024, 1} },
6543 .block_erase = spi_block_erase_c7,
6544 }
6545 },
6546 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6547 .unlock = spi_disable_blockprotect,
6548 .write = spi_chip_write_256,
6549 .read = spi_chip_read,
6550 .voltage = {2700, 3600},
6551 },
6552
6553 {
6554 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006555 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006556 .bustype = BUS_SPI,
6557 .manufacture_id = MACRONIX_ID,
6558 .model_id = MACRONIX_MX25L6405,
6559 .total_size = 8192,
6560 .page_size = 256,
6561 /* supports SFDP */
6562 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6564 .tested = TEST_OK_PREW,
6565 .probe = probe_spi_rdid,
6566 .probe_timing = TIMING_ZERO,
6567 .block_erasers =
6568 {
6569 {
6570 .eraseblocks = { {4 * 1024, 2048} },
6571 .block_erase = spi_block_erase_20,
6572 }, {
6573 .eraseblocks = { {32 * 1024, 256} },
6574 .block_erase = spi_block_erase_52,
6575 }, {
6576 .eraseblocks = { {64 * 1024, 128} },
6577 .block_erase = spi_block_erase_d8,
6578 }, {
6579 .eraseblocks = { {8 * 1024 * 1024, 1} },
6580 .block_erase = spi_block_erase_60,
6581 }, {
6582 .eraseblocks = { {8 * 1024 * 1024, 1} },
6583 .block_erase = spi_block_erase_c7,
6584 }
6585 },
6586 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6587 .unlock = spi_disable_blockprotect,
6588 .write = spi_chip_write_256,
6589 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6590 .voltage = {2700, 3600},
6591 },
6592
6593 {
6594 .vendor = "Macronix",
6595 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006596 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006597 .manufacture_id = MACRONIX_ID,
6598 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006599 .total_size = 16384,
6600 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006601 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006603 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006604 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006605 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006606 .block_erasers =
6607 {
6608 {
6609 .eraseblocks = { {4 * 1024, 4096} },
6610 .block_erase = spi_block_erase_20,
6611 }, {
6612 .eraseblocks = { {64 * 1024, 256} },
6613 .block_erase = spi_block_erase_d8,
6614 }, {
6615 .eraseblocks = { {16 * 1024 * 1024, 1} },
6616 .block_erase = spi_block_erase_60,
6617 }, {
6618 .eraseblocks = { {16 * 1024 * 1024, 1} },
6619 .block_erase = spi_block_erase_c7,
6620 }
6621 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006622 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006623 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006624 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006625 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006626 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006627 },
6628
6629 {
6630 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006631 .name = "MX25U1635E",
6632 .bustype = BUS_SPI,
6633 .manufacture_id = MACRONIX_ID,
6634 .model_id = MACRONIX_MX25U1635E,
6635 .total_size = 2048,
6636 .page_size = 256,
6637 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6638 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6640 .tested = TEST_UNTESTED,
6641 .probe = probe_spi_rdid,
6642 .probe_timing = TIMING_ZERO,
6643 .block_erasers =
6644 {
6645 {
6646 .eraseblocks = { {4 * 1024, 512} },
6647 .block_erase = spi_block_erase_20,
6648 }, {
6649 .eraseblocks = { {32 * 1024, 64} },
6650 .block_erase = spi_block_erase_52,
6651 }, {
6652 .eraseblocks = { {64 * 1024, 32} },
6653 .block_erase = spi_block_erase_d8,
6654 }, {
6655 .eraseblocks = { {2 * 1024 * 1024, 1} },
6656 .block_erase = spi_block_erase_60,
6657 }, {
6658 .eraseblocks = { {2 * 1024 * 1024, 1} },
6659 .block_erase = spi_block_erase_c7,
6660 }
6661 },
6662 /* TODO: security register */
6663 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6664 .unlock = spi_disable_blockprotect,
6665 .write = spi_chip_write_256,
6666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6667 .voltage = {1650, 2000},
6668 },
6669
6670 {
6671 .vendor = "Macronix",
6672 .name = "MX25U3235E/F",
6673 .bustype = BUS_SPI,
6674 .manufacture_id = MACRONIX_ID,
6675 .model_id = MACRONIX_MX25U3235E,
6676 .total_size = 4096,
6677 .page_size = 256,
6678 /* F model supports SFDP */
6679 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6680 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6682 .tested = TEST_OK_PREW,
6683 .probe = probe_spi_rdid,
6684 .probe_timing = TIMING_ZERO,
6685 .block_erasers =
6686 {
6687 {
6688 .eraseblocks = { {4 * 1024, 1024} },
6689 .block_erase = spi_block_erase_20,
6690 }, {
6691 .eraseblocks = { {32 * 1024, 128} },
6692 .block_erase = spi_block_erase_52,
6693 }, {
6694 .eraseblocks = { {64 * 1024, 64} },
6695 .block_erase = spi_block_erase_d8,
6696 }, {
6697 .eraseblocks = { {4 * 1024 * 1024, 1} },
6698 .block_erase = spi_block_erase_60,
6699 }, {
6700 .eraseblocks = { {4 * 1024 * 1024, 1} },
6701 .block_erase = spi_block_erase_c7,
6702 }
6703 },
6704 /* TODO: security register */
6705 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6706 .unlock = spi_disable_blockprotect,
6707 .write = spi_chip_write_256,
6708 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6709 .voltage = {1650, 2000},
6710 },
6711
6712 {
6713 .vendor = "Macronix",
6714 .name = "MX25U6435E/F",
6715 .bustype = BUS_SPI,
6716 .manufacture_id = MACRONIX_ID,
6717 .model_id = MACRONIX_MX25U6435E,
6718 .total_size = 8192,
6719 .page_size = 256,
6720 /* F model supports SFDP */
6721 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6722 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6723 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6724 .tested = TEST_UNTESTED,
6725 .probe = probe_spi_rdid,
6726 .probe_timing = TIMING_ZERO,
6727 .block_erasers =
6728 {
6729 {
6730 .eraseblocks = { {4 * 1024, 2048} },
6731 .block_erase = spi_block_erase_20,
6732 }, {
6733 .eraseblocks = { {32 * 1024, 256} },
6734 .block_erase = spi_block_erase_52,
6735 }, {
6736 .eraseblocks = { {64 * 1024, 128} },
6737 .block_erase = spi_block_erase_d8,
6738 }, {
6739 .eraseblocks = { {8 * 1024 * 1024, 1} },
6740 .block_erase = spi_block_erase_60,
6741 }, {
6742 .eraseblocks = { {8 * 1024 * 1024, 1} },
6743 .block_erase = spi_block_erase_c7,
6744 }
6745 },
6746 /* TODO: security register */
6747 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6748 .unlock = spi_disable_blockprotect,
6749 .write = spi_chip_write_256,
6750 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6751 .voltage = {1650, 2000},
6752 },
6753
6754 {
6755 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006756 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006757 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006758 .manufacture_id = MACRONIX_ID,
6759 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006760 .total_size = 128,
6761 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006762 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6763 .tested = TEST_UNTESTED,
6764 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006765 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006766 .block_erasers =
6767 {
6768 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006769 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006770 {8 * 1024, 1},
6771 {4 * 1024, 2},
6772 {8 * 1024, 2},
6773 {32 * 1024, 1},
6774 {64 * 1024, 1},
6775 },
Sean Nelson35727f72010-01-28 23:55:12 +00006776 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006777 }, {
6778 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006779 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006780 }
6781 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006782 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006784 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006785 },
6786
6787 {
6788 .vendor = "Macronix",
6789 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006790 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006791 .manufacture_id = MACRONIX_ID,
6792 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006793 .total_size = 128,
6794 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006795 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006796 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006797 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006798 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006799 .block_erasers =
6800 {
6801 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006802 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006803 {64 * 1024, 1},
6804 {32 * 1024, 1},
6805 {8 * 1024, 2},
6806 {4 * 1024, 2},
6807 {8 * 1024, 1},
6808 },
Sean Nelson35727f72010-01-28 23:55:12 +00006809 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006810 }, {
6811 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006812 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006813 }
6814 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006815 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006817 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006818 },
6819
6820 {
6821 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006822 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006823 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006824 .manufacture_id = MACRONIX_ID,
6825 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006826 .total_size = 256,
6827 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006828 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006829 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006830 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006831 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = {
6836 {16 * 1024, 1},
6837 {8 * 1024, 2},
6838 {32 * 1024, 1},
6839 {64 * 1024, 3},
6840 },
Sean Nelson35727f72010-01-28 23:55:12 +00006841 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006842 }, {
6843 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006844 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006845 },
6846 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006847 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006849 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006850 },
6851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006852 {
6853 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006854 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006855 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006856 .manufacture_id = MACRONIX_ID,
6857 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006858 .total_size = 256,
6859 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006860 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006861 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006862 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006863 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006864 .block_erasers =
6865 {
6866 {
6867 .eraseblocks = {
6868 {64 * 1024, 3},
6869 {32 * 1024, 1},
6870 {8 * 1024, 2},
6871 {16 * 1024, 1},
6872 },
Sean Nelson35727f72010-01-28 23:55:12 +00006873 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006874 }, {
6875 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006876 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006877 },
6878 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006879 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006880 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006881 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006882 },
6883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006884 {
6885 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006886 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006887 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006888 .manufacture_id = MACRONIX_ID,
6889 .model_id = MACRONIX_MX29F040,
6890 .total_size = 512,
6891 .page_size = 64 * 1024,
6892 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6893 .tested = TEST_UNTESTED,
6894 .probe = probe_jedec,
6895 .probe_timing = TIMING_ZERO,
6896 .block_erasers =
6897 {
6898 {
6899 .eraseblocks = { {64 * 1024, 8} },
6900 .block_erase = erase_sector_jedec,
6901 }, {
6902 .eraseblocks = { {512 * 1024, 1} },
6903 .block_erase = erase_chip_block_jedec,
6904 },
6905 },
6906 .write = write_jedec_1,
6907 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006908 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006909 },
6910
6911 {
6912 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006913 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006914 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006915 .manufacture_id = MACRONIX_ID,
6916 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006917 .total_size = 512,
6918 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006919 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6920 .tested = TEST_UNTESTED,
6921 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006922 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006923 .block_erasers =
6924 {
6925 {
6926 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006927 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006928 }, {
6929 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006930 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006931 },
6932 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006933 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006935 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006936 },
6937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006938 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00006939 .vendor = "Micron/Numonyx/ST",
6940 .name = "M25P05-A",
6941 .bustype = BUS_SPI,
6942 .manufacture_id = ST_ID,
6943 .model_id = ST_M25P05A,
6944 .total_size = 64,
6945 .page_size = 256,
6946 .feature_bits = FEATURE_WRSR_WREN,
6947 .tested = TEST_OK_PREW,
6948 .probe = probe_spi_rdid,
6949 .probe_timing = TIMING_ZERO,
6950 .block_erasers =
6951 {
6952 {
6953 .eraseblocks = { {32 * 1024, 2} },
6954 .block_erase = spi_block_erase_d8,
6955 }, {
6956 .eraseblocks = { {64 * 1024, 1} },
6957 .block_erase = spi_block_erase_c7,
6958 }
6959 },
6960 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6961 .unlock = spi_disable_blockprotect,
6962 .write = spi_chip_write_256,
6963 .read = spi_chip_read,
6964 .voltage = {2700, 3600},
6965 },
6966
6967 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6968 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
6969 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
6970 * only is successful if RDID does not work.
6971 */
6972 {
6973 .vendor = "Micron/Numonyx/ST",
6974 .name = "M25P05",
6975 .bustype = BUS_SPI,
6976 .manufacture_id = 0, /* Not used. */
6977 .model_id = ST_M25P05_RES,
6978 .total_size = 64,
6979 .page_size = 256,
6980 .feature_bits = FEATURE_WRSR_WREN,
6981 .tested = TEST_UNTESTED,
6982 .probe = probe_spi_res1,
6983 .probe_timing = TIMING_ZERO,
6984 .block_erasers =
6985 {
6986 {
6987 .eraseblocks = { {32 * 1024, 2} },
6988 .block_erase = spi_block_erase_d8,
6989 }, {
6990 .eraseblocks = { {64 * 1024, 1} },
6991 .block_erase = spi_block_erase_c7,
6992 }
6993 },
6994 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6995 .unlock = spi_disable_blockprotect,
6996 .write = spi_chip_write_1, /* 128 */
6997 .read = spi_chip_read,
6998 .voltage = {2700, 3600},
6999 },
7000
7001 {
7002 .vendor = "Micron/Numonyx/ST",
7003 .name = "M25P10-A",
7004 .bustype = BUS_SPI,
7005 .manufacture_id = ST_ID,
7006 .model_id = ST_M25P10A,
7007 .total_size = 128,
7008 .page_size = 256,
7009 .feature_bits = FEATURE_WRSR_WREN,
7010 .tested = TEST_OK_PRE,
7011 .probe = probe_spi_rdid,
7012 .probe_timing = TIMING_ZERO,
7013 .block_erasers =
7014 {
7015 {
7016 .eraseblocks = { {32 * 1024, 4} },
7017 .block_erase = spi_block_erase_d8,
7018 }, {
7019 .eraseblocks = { {128 * 1024, 1} },
7020 .block_erase = spi_block_erase_c7,
7021 }
7022 },
7023 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7024 .unlock = spi_disable_blockprotect,
7025 .write = spi_chip_write_256,
7026 .read = spi_chip_read,
7027 .voltage = {2700, 3600},
7028 },
7029
7030 /* The ST M25P10 has the same problem as the M25P05. */
7031 {
7032 .vendor = "Micron/Numonyx/ST",
7033 .name = "M25P10",
7034 .bustype = BUS_SPI,
7035 .manufacture_id = 0, /* Not used. */
7036 .model_id = ST_M25P10_RES,
7037 .total_size = 128,
7038 .page_size = 256,
7039 .feature_bits = FEATURE_WRSR_WREN,
7040 .tested = TEST_UNTESTED,
7041 .probe = probe_spi_res1,
7042 .probe_timing = TIMING_ZERO,
7043 .block_erasers =
7044 {
7045 {
7046 .eraseblocks = { {32 * 1024, 4} },
7047 .block_erase = spi_block_erase_d8,
7048 }, {
7049 .eraseblocks = { {128 * 1024, 1} },
7050 .block_erase = spi_block_erase_c7,
7051 }
7052 },
7053 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7054 .unlock = spi_disable_blockprotect,
7055 .write = spi_chip_write_1, /* 128 */
7056 .read = spi_chip_read,
7057 .voltage = {2700, 3600},
7058 },
7059
7060 {
7061 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7062 .name = "M25P20",
7063 .bustype = BUS_SPI,
7064 .manufacture_id = ST_ID,
7065 .model_id = ST_M25P20,
7066 .total_size = 256,
7067 .page_size = 256,
7068 .feature_bits = FEATURE_WRSR_WREN,
7069 .tested = TEST_UNTESTED,
7070 .probe = probe_spi_rdid,
7071 .probe_timing = TIMING_ZERO,
7072 .block_erasers =
7073 {
7074 {
7075 .eraseblocks = { {64 * 1024, 4} },
7076 .block_erase = spi_block_erase_d8,
7077 }, {
7078 .eraseblocks = { {256 * 1024, 1} },
7079 .block_erase = spi_block_erase_c7,
7080 }
7081 },
7082 .printlock = spi_prettyprint_status_register_default_bp1,
7083 .unlock = spi_disable_blockprotect,
7084 .write = spi_chip_write_256,
7085 .read = spi_chip_read, /* Fast read (0x0B) supported */
7086 .voltage = {2700, 3600},
7087 },
7088
7089 {
7090 .vendor = "Micron/Numonyx/ST",
7091 .name = "M25P20-old",
7092 .bustype = BUS_SPI,
7093 .manufacture_id = 0, /* Not used. */
7094 .model_id = ST_M25P20_RES,
7095 .total_size = 256,
7096 .page_size = 256,
7097 .feature_bits = FEATURE_WRSR_WREN,
7098 .tested = TEST_OK_PREW,
7099 .probe = probe_spi_res1,
7100 .probe_timing = TIMING_ZERO,
7101 .block_erasers =
7102 {
7103 {
7104 .eraseblocks = { {64 * 1024, 4} },
7105 .block_erase = spi_block_erase_d8,
7106 }, {
7107 .eraseblocks = { {256 * 1024, 1} },
7108 .block_erase = spi_block_erase_c7,
7109 }
7110 },
7111 .printlock = spi_prettyprint_status_register_default_bp1,
7112 .unlock = spi_disable_blockprotect,
7113 .write = spi_chip_write_256,
7114 .read = spi_chip_read, /* Fast read (0x0B) supported */
7115 .voltage = {2700, 3600},
7116 },
7117
7118 {
7119 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7120 .name = "M25P40",
7121 .bustype = BUS_SPI,
7122 .manufacture_id = ST_ID,
7123 .model_id = ST_M25P40,
7124 .total_size = 512,
7125 .page_size = 256,
7126 .feature_bits = FEATURE_WRSR_WREN,
7127 .tested = TEST_OK_PREW,
7128 .probe = probe_spi_rdid,
7129 .probe_timing = TIMING_ZERO,
7130 .block_erasers =
7131 {
7132 {
7133 .eraseblocks = { {64 * 1024, 8} },
7134 .block_erase = spi_block_erase_d8,
7135 }, {
7136 .eraseblocks = { {512 * 1024, 1} },
7137 .block_erase = spi_block_erase_c7,
7138 }
7139 },
7140 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7141 .unlock = spi_disable_blockprotect,
7142 .write = spi_chip_write_256,
7143 .read = spi_chip_read,
7144 .voltage = {2700, 3600},
7145 },
7146
7147 {
7148 .vendor = "Micron/Numonyx/ST",
7149 .name = "M25P40-old",
7150 .bustype = BUS_SPI,
7151 .manufacture_id = 0, /* Not used. */
7152 .model_id = ST_M25P40_RES,
7153 .total_size = 512,
7154 .page_size = 256,
7155 .feature_bits = FEATURE_WRSR_WREN,
7156 .tested = TEST_UNTESTED,
7157 .probe = probe_spi_res1,
7158 .probe_timing = TIMING_ZERO,
7159 .block_erasers =
7160 {
7161 {
7162 .eraseblocks = { {64 * 1024, 8} },
7163 .block_erase = spi_block_erase_d8,
7164 }, {
7165 .eraseblocks = { {512 * 1024, 1} },
7166 .block_erase = spi_block_erase_c7,
7167 }
7168 },
7169 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7170 .unlock = spi_disable_blockprotect,
7171 .write = spi_chip_write_256,
7172 .read = spi_chip_read,
7173 },
7174
7175 {
7176 .vendor = "Micron/Numonyx/ST",
7177 .name = "M25P80",
7178 .bustype = BUS_SPI,
7179 .manufacture_id = ST_ID,
7180 .model_id = ST_M25P80,
7181 .total_size = 1024,
7182 .page_size = 256,
7183 .feature_bits = FEATURE_WRSR_WREN,
7184 .tested = TEST_OK_PREW,
7185 .probe = probe_spi_rdid,
7186 .probe_timing = TIMING_ZERO,
7187 .block_erasers =
7188 {
7189 {
7190 .eraseblocks = { {64 * 1024, 16} },
7191 .block_erase = spi_block_erase_d8,
7192 }, {
7193 .eraseblocks = { {1024 * 1024, 1} },
7194 .block_erase = spi_block_erase_c7,
7195 }
7196 },
7197 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7198 .unlock = spi_disable_blockprotect,
7199 .write = spi_chip_write_256,
7200 .read = spi_chip_read,
7201 .voltage = {2700, 3600},
7202 },
7203
7204 {
7205 .vendor = "Micron/Numonyx/ST",
7206 .name = "M25P16",
7207 .bustype = BUS_SPI,
7208 .manufacture_id = ST_ID,
7209 .model_id = ST_M25P16,
7210 .total_size = 2048,
7211 .page_size = 256,
7212 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007213 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007214 .probe = probe_spi_rdid,
7215 .probe_timing = TIMING_ZERO,
7216 .block_erasers =
7217 {
7218 {
7219 .eraseblocks = { {64 * 1024, 32} },
7220 .block_erase = spi_block_erase_d8,
7221 }, {
7222 .eraseblocks = { {2 * 1024 * 1024, 1} },
7223 .block_erase = spi_block_erase_c7,
7224 }
7225 },
7226 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7227 .unlock = spi_disable_blockprotect,
7228 .write = spi_chip_write_256,
7229 .read = spi_chip_read,
7230 .voltage = {2700, 3600},
7231 },
7232
7233 {
7234 .vendor = "Micron/Numonyx/ST",
7235 .name = "M25P32",
7236 .bustype = BUS_SPI,
7237 .manufacture_id = ST_ID,
7238 .model_id = ST_M25P32,
7239 .total_size = 4096,
7240 .page_size = 256,
7241 .feature_bits = FEATURE_WRSR_WREN,
7242 .tested = TEST_OK_PREW,
7243 .probe = probe_spi_rdid,
7244 .probe_timing = TIMING_ZERO,
7245 .block_erasers =
7246 {
7247 {
7248 .eraseblocks = { {64 * 1024, 64} },
7249 .block_erase = spi_block_erase_d8,
7250 }, {
7251 .eraseblocks = { {4 * 1024 * 1024, 1} },
7252 .block_erase = spi_block_erase_c7,
7253 }
7254 },
7255 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7256 .unlock = spi_disable_blockprotect,
7257 .write = spi_chip_write_256,
7258 .read = spi_chip_read,
7259 .voltage = {2700, 3600},
7260 },
7261
7262 {
7263 .vendor = "Micron/Numonyx/ST",
7264 .name = "M25P64",
7265 .bustype = BUS_SPI,
7266 .manufacture_id = ST_ID,
7267 .model_id = ST_M25P64,
7268 .total_size = 8192,
7269 .page_size = 256,
7270 .feature_bits = FEATURE_WRSR_WREN,
7271 .tested = TEST_OK_PREW,
7272 .probe = probe_spi_rdid,
7273 .probe_timing = TIMING_ZERO,
7274 .block_erasers =
7275 {
7276 {
7277 .eraseblocks = { {64 * 1024, 128} },
7278 .block_erase = spi_block_erase_d8,
7279 }, {
7280 .eraseblocks = { {8 * 1024 * 1024, 1} },
7281 .block_erase = spi_block_erase_c7,
7282 }
7283 },
7284 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7285 .unlock = spi_disable_blockprotect,
7286 .write = spi_chip_write_256,
7287 .read = spi_chip_read,
7288 .voltage = {2700, 3600},
7289 },
7290
7291 {
7292 .vendor = "Micron/Numonyx/ST",
7293 .name = "M25P128",
7294 .bustype = BUS_SPI,
7295 .manufacture_id = ST_ID,
7296 .model_id = ST_M25P128,
7297 .total_size = 16384,
7298 .page_size = 256,
7299 .feature_bits = FEATURE_WRSR_WREN,
7300 .tested = TEST_OK_PREW,
7301 .probe = probe_spi_rdid,
7302 .probe_timing = TIMING_ZERO,
7303 .block_erasers =
7304 {
7305 {
7306 .eraseblocks = { {256 * 1024, 64} },
7307 .block_erase = spi_block_erase_d8,
7308 }, {
7309 .eraseblocks = { {16 * 1024 * 1024, 1} },
7310 .block_erase = spi_block_erase_c7,
7311 }
7312 },
7313 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7314 .unlock = spi_disable_blockprotect,
7315 .write = spi_chip_write_256,
7316 .read = spi_chip_read,
7317 .voltage = {2700, 3600},
7318 },
7319
7320 {
7321 .vendor = "Micron/Numonyx/ST",
7322 .name = "M25PE10",
7323 .bustype = BUS_SPI,
7324 .manufacture_id = ST_ID,
7325 .model_id = ST_M25PE10,
7326 .total_size = 128,
7327 .page_size = 256,
7328 .feature_bits = FEATURE_WRSR_WREN,
7329 .tested = TEST_UNTESTED,
7330 .probe = probe_spi_rdid,
7331 .probe_timing = TIMING_ZERO,
7332 .block_erasers =
7333 {
7334 {
7335 .eraseblocks = { {4 * 1024, 32} },
7336 .block_erase = spi_block_erase_20,
7337 }, {
7338 .eraseblocks = { {64 * 1024, 2} },
7339 .block_erase = spi_block_erase_d8,
7340 }, {
7341 .eraseblocks = { {128 * 1024, 1} },
7342 .block_erase = spi_block_erase_c7,
7343 }
7344 },
7345 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7346 .unlock = spi_disable_blockprotect,
7347 .write = spi_chip_write_256,
7348 .read = spi_chip_read,
7349 .voltage = {2700, 3600},
7350 },
7351
7352 {
7353 .vendor = "Micron/Numonyx/ST",
7354 .name = "M25PE20",
7355 .bustype = BUS_SPI,
7356 .manufacture_id = ST_ID,
7357 .model_id = ST_M25PE20,
7358 .total_size = 256,
7359 .page_size = 256,
7360 .feature_bits = FEATURE_WRSR_WREN,
7361 .tested = TEST_UNTESTED,
7362 .probe = probe_spi_rdid,
7363 .probe_timing = TIMING_ZERO,
7364 .block_erasers =
7365 {
7366 {
7367 .eraseblocks = { {4 * 1024, 64} },
7368 .block_erase = spi_block_erase_20,
7369 }, {
7370 .eraseblocks = { {64 * 1024, 4} },
7371 .block_erase = spi_block_erase_d8,
7372 }, {
7373 .eraseblocks = { {256 * 1024, 1} },
7374 .block_erase = spi_block_erase_c7,
7375 }
7376 },
7377 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7378 .unlock = spi_disable_blockprotect,
7379 .write = spi_chip_write_256,
7380 .read = spi_chip_read,
7381 .voltage = {2700, 3600},
7382 },
7383
7384 {
7385 .vendor = "Micron/Numonyx/ST",
7386 .name = "M25PE40",
7387 .bustype = BUS_SPI,
7388 .manufacture_id = ST_ID,
7389 .model_id = ST_M25PE40,
7390 .total_size = 512,
7391 .page_size = 256,
7392 .feature_bits = FEATURE_WRSR_WREN,
7393 .tested = TEST_UNTESTED,
7394 .probe = probe_spi_rdid,
7395 .probe_timing = TIMING_ZERO,
7396 .block_erasers =
7397 {
7398 {
7399 .eraseblocks = { {4 * 1024, 128} },
7400 .block_erase = spi_block_erase_20,
7401 }, {
7402 .eraseblocks = { {64 * 1024, 8} },
7403 .block_erase = spi_block_erase_d8,
7404 }, {
7405 .eraseblocks = { {512 * 1024, 1} },
7406 .block_erase = spi_block_erase_c7,
7407 }
7408 },
7409 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7410 .unlock = spi_disable_blockprotect,
7411 .write = spi_chip_write_256,
7412 .read = spi_chip_read,
7413 .voltage = {2700, 3600},
7414 },
7415
7416 {
7417 .vendor = "Micron/Numonyx/ST",
7418 .name = "M25PE80",
7419 .bustype = BUS_SPI,
7420 .manufacture_id = ST_ID,
7421 .model_id = ST_M25PE80,
7422 .total_size = 1024,
7423 .page_size = 256,
7424 .feature_bits = FEATURE_WRSR_WREN,
7425 .tested = TEST_OK_PREW,
7426 .probe = probe_spi_rdid,
7427 .probe_timing = TIMING_ZERO,
7428 .block_erasers =
7429 {
7430 {
7431 .eraseblocks = { {4 * 1024, 256} },
7432 .block_erase = spi_block_erase_20,
7433 }, {
7434 .eraseblocks = { {64 * 1024, 16} },
7435 .block_erase = spi_block_erase_d8,
7436 }, {
7437 .eraseblocks = { {1024 * 1024, 1} },
7438 .block_erase = spi_block_erase_c7,
7439 }
7440 },
7441 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7442 .unlock = spi_disable_blockprotect,
7443 .write = spi_chip_write_256,
7444 .read = spi_chip_read,
7445 .voltage = {2700, 3600},
7446 },
7447
7448 {
7449 .vendor = "Micron/Numonyx/ST",
7450 .name = "M25PE16",
7451 .bustype = BUS_SPI,
7452 .manufacture_id = ST_ID,
7453 .model_id = ST_M25PE16,
7454 .total_size = 2048,
7455 .page_size = 256,
7456 .feature_bits = FEATURE_WRSR_WREN,
7457 .tested = TEST_UNTESTED,
7458 .probe = probe_spi_rdid,
7459 .probe_timing = TIMING_ZERO,
7460 .block_erasers =
7461 {
7462 {
7463 .eraseblocks = { {4 * 1024, 512} },
7464 .block_erase = spi_block_erase_20,
7465 }, {
7466 .eraseblocks = { {64 * 1024, 32} },
7467 .block_erase = spi_block_erase_d8,
7468 }, {
7469 .eraseblocks = { {2 * 1024 * 1024, 1} },
7470 .block_erase = spi_block_erase_c7,
7471 }
7472 },
7473 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7474 .unlock = spi_disable_blockprotect,
7475 .write = spi_chip_write_256,
7476 .read = spi_chip_read,
7477 .voltage = {2700, 3600},
7478 },
7479
7480 {
7481 .vendor = "Micron/Numonyx/ST",
7482 .name = "M25PX80",
7483 .bustype = BUS_SPI,
7484 .manufacture_id = ST_ID,
7485 .model_id = ST_M25PX80,
7486 .total_size = 1024,
7487 .page_size = 256,
7488 /* OTP: 64B total; read 0x4B, write 0x42 */
7489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7490 .tested = TEST_OK_PREW,
7491 .probe = probe_spi_rdid,
7492 .probe_timing = TIMING_ZERO,
7493 .block_erasers = {
7494 {
7495 .eraseblocks = { { 4 * 1024, 256 } },
7496 .block_erase = spi_block_erase_20,
7497 }, {
7498 .eraseblocks = { {64 * 1024, 16} },
7499 .block_erase = spi_block_erase_d8,
7500 }, {
7501 .eraseblocks = { {1024 * 1024, 1} },
7502 .block_erase = spi_block_erase_c7,
7503 }
7504 },
7505 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7506 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7507 .write = spi_chip_write_256,
7508 .read = spi_chip_read,
7509 .voltage = {2700, 3600},
7510 },
7511
7512 {
7513 .vendor = "Micron/Numonyx/ST",
7514 .name = "M25PX16",
7515 .bustype = BUS_SPI,
7516 .manufacture_id = ST_ID,
7517 .model_id = ST_M25PX16,
7518 .total_size = 2048,
7519 .page_size = 256,
7520 /* OTP: 64B total; read 0x4B; write 0x42 */
7521 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7522 .tested = TEST_OK_PREW,
7523 .probe = probe_spi_rdid,
7524 .probe_timing = TIMING_ZERO,
7525 .block_erasers =
7526 {
7527 {
7528 .eraseblocks = { { 4 * 1024, 512 } },
7529 .block_erase = spi_block_erase_20,
7530 }, {
7531 .eraseblocks = { {64 * 1024, 32} },
7532 .block_erase = spi_block_erase_d8,
7533 }, {
7534 .eraseblocks = { {2 * 1024 * 1024, 1} },
7535 .block_erase = spi_block_erase_c7,
7536 }
7537 },
7538 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7539 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7540 .write = spi_chip_write_256,
7541 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007542 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007543 },
7544
7545 {
7546 .vendor = "Micron/Numonyx/ST",
7547 .name = "M25PX32",
7548 .bustype = BUS_SPI,
7549 .manufacture_id = ST_ID,
7550 .model_id = ST_M25PX32,
7551 .total_size = 4096,
7552 .page_size = 256,
7553 /* OTP: 64B total; read 0x4B; write 0x42 */
7554 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7555 .tested = TEST_OK_PRE,
7556 .probe = probe_spi_rdid,
7557 .probe_timing = TIMING_ZERO,
7558 .block_erasers =
7559 {
7560 {
7561 .eraseblocks = { { 4 * 1024, 1024 } },
7562 .block_erase = spi_block_erase_20,
7563 }, {
7564 .eraseblocks = { {64 * 1024, 64} },
7565 .block_erase = spi_block_erase_d8,
7566 }, {
7567 .eraseblocks = { {4 * 1024 * 1024, 1} },
7568 .block_erase = spi_block_erase_c7,
7569 }
7570 },
7571 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7572 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7573 .write = spi_chip_write_256,
7574 .read = spi_chip_read,
7575 .voltage = {2700, 3600},
7576 },
7577
7578 {
7579 .vendor = "Micron/Numonyx/ST",
7580 .name = "M25PX64",
7581 .bustype = BUS_SPI,
7582 .manufacture_id = ST_ID,
7583 .model_id = ST_M25PX64,
7584 .total_size = 8192,
7585 .page_size = 256,
7586 /* OTP: 64B total; read 0x4B; write 0x42 */
7587 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007588 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007589 .probe = probe_spi_rdid,
7590 .probe_timing = TIMING_ZERO,
7591 .block_erasers =
7592 {
7593 {
7594 .eraseblocks = { { 4 * 1024, 2048 } },
7595 .block_erase = spi_block_erase_20,
7596 }, {
7597 .eraseblocks = { {64 * 1024, 128} },
7598 .block_erase = spi_block_erase_d8,
7599 }, {
7600 .eraseblocks = { {8 * 1024 * 1024, 1} },
7601 .block_erase = spi_block_erase_c7,
7602 }
7603 },
7604 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7605 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7606 .write = spi_chip_write_256,
7607 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007608 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007609 },
7610
7611 {
7612 .vendor = "Micron/Numonyx/ST",
7613 .name = "M45PE10",
7614 .bustype = BUS_SPI,
7615 .manufacture_id = ST_ID,
7616 .model_id = ST_M45PE10,
7617 .total_size = 128,
7618 .page_size = 256,
7619 .tested = TEST_UNTESTED,
7620 .probe = probe_spi_rdid,
7621 .probe_timing = TIMING_ZERO,
7622 .block_erasers = {
7623 {
7624 .eraseblocks = { {256, 512} },
7625 .block_erase = spi_block_erase_db,
7626 }, {
7627 .eraseblocks = { {64 * 1024, 2} },
7628 .block_erase = spi_block_erase_d8,
7629 }
7630 },
7631 .printlock = spi_prettyprint_status_register_default_welwip,
7632 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7633 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7634 .read = spi_chip_read, /* Fast read (0x0B) supported */
7635 .voltage = {2700, 3600},
7636 },
7637
7638 {
7639 .vendor = "Micron/Numonyx/ST",
7640 .name = "M45PE20",
7641 .bustype = BUS_SPI,
7642 .manufacture_id = ST_ID,
7643 .model_id = ST_M45PE20,
7644 .total_size = 256,
7645 .page_size = 256,
7646 .tested = TEST_UNTESTED,
7647 .probe = probe_spi_rdid,
7648 .probe_timing = TIMING_ZERO,
7649 .block_erasers = {
7650 {
7651 .eraseblocks = { {256, 1024} },
7652 .block_erase = spi_block_erase_db,
7653 }, {
7654 .eraseblocks = { {64 * 1024, 4} },
7655 .block_erase = spi_block_erase_d8,
7656 }
7657 },
7658 .printlock = spi_prettyprint_status_register_default_welwip,
7659 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7660 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7661 .read = spi_chip_read, /* Fast read (0x0B) supported */
7662 .voltage = {2700, 3600},
7663 },
7664
7665 {
7666 .vendor = "Micron/Numonyx/ST",
7667 .name = "M45PE40",
7668 .bustype = BUS_SPI,
7669 .manufacture_id = ST_ID,
7670 .model_id = ST_M45PE40,
7671 .total_size = 512,
7672 .page_size = 256,
7673 .tested = TEST_UNTESTED,
7674 .probe = probe_spi_rdid,
7675 .probe_timing = TIMING_ZERO,
7676 .block_erasers = {
7677 {
7678 .eraseblocks = { {256, 2048} },
7679 .block_erase = spi_block_erase_db,
7680 }, {
7681 .eraseblocks = { {64 * 1024, 8} },
7682 .block_erase = spi_block_erase_d8,
7683 }
7684 },
7685 .printlock = spi_prettyprint_status_register_default_welwip,
7686 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7687 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7688 .read = spi_chip_read, /* Fast read (0x0B) supported */
7689 .voltage = {2700, 3600},
7690 },
7691
7692 {
7693 .vendor = "Micron/Numonyx/ST",
7694 .name = "M45PE80",
7695 .bustype = BUS_SPI,
7696 .manufacture_id = ST_ID,
7697 .model_id = ST_M45PE80,
7698 .total_size = 1024,
7699 .page_size = 256,
7700 .tested = TEST_UNTESTED,
7701 .probe = probe_spi_rdid,
7702 .probe_timing = TIMING_ZERO,
7703 .block_erasers = {
7704 {
7705 .eraseblocks = { {256, 4096} },
7706 .block_erase = spi_block_erase_db,
7707 }, {
7708 .eraseblocks = { {64 * 1024, 16} },
7709 .block_erase = spi_block_erase_d8,
7710 }
7711 },
7712 .printlock = spi_prettyprint_status_register_default_welwip,
7713 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7714 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7715 .read = spi_chip_read, /* Fast read (0x0B) supported */
7716 .voltage = {2700, 3600},
7717 },
7718
7719 {
7720 .vendor = "Micron/Numonyx/ST",
7721 .name = "M45PE16",
7722 .bustype = BUS_SPI,
7723 .manufacture_id = ST_ID,
7724 .model_id = ST_M45PE16,
7725 .total_size = 2048,
7726 .page_size = 256,
7727 .tested = TEST_UNTESTED,
7728 .probe = probe_spi_rdid,
7729 .probe_timing = TIMING_ZERO,
7730 .block_erasers = {
7731 {
7732 .eraseblocks = { {256, 8192} },
7733 .block_erase = spi_block_erase_db,
7734 }, {
7735 .eraseblocks = { {64 * 1024, 32} },
7736 .block_erase = spi_block_erase_d8,
7737 }
7738 },
7739 .printlock = spi_prettyprint_status_register_default_welwip,
7740 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7741 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7742 .read = spi_chip_read, /* Fast read (0x0B) supported */
7743 .voltage = {2700, 3600},
7744 },
7745
7746 {
7747 .vendor = "Micron/Numonyx/ST",
7748 .name = "N25Q016",
7749 .bustype = BUS_SPI,
7750 .manufacture_id = ST_ID,
7751 .model_id = ST_N25Q016__1E,
7752 .total_size = 2048,
7753 .page_size = 256,
7754 /* supports SFDP */
7755 /* OTP: 64B total; read 0x4B, write 0x42 */
7756 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7757 .tested = TEST_UNTESTED,
7758 .probe = probe_spi_rdid,
7759 .probe_timing = TIMING_ZERO,
7760 .block_erasers =
7761 {
7762 {
7763 .eraseblocks = { {4 * 1024, 512} },
7764 .block_erase = spi_block_erase_20,
7765 }, {
7766 .eraseblocks = { {32 * 1024, 64} },
7767 .block_erase = spi_block_erase_52,
7768 }, {
7769 .eraseblocks = { {64 * 1024, 32} },
7770 .block_erase = spi_block_erase_d8,
7771 }, {
7772 .eraseblocks = { {2 * 1024 * 1024, 1} },
7773 .block_erase = spi_block_erase_c7,
7774 }
7775 },
7776 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7777 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7778 .write = spi_chip_write_256, /* Multi I/O supported */
7779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7780 .voltage = {1700, 2000},
7781 },
7782
7783 {
7784 .vendor = "Micron/Numonyx/ST",
7785 .name = "N25Q032..1E",
7786 .bustype = BUS_SPI,
7787 .manufacture_id = ST_ID,
7788 .model_id = ST_N25Q032__1E,
7789 .total_size = 4096,
7790 .page_size = 256,
7791 /* supports SFDP */
7792 /* OTP: 64B total; read 0x4B, write 0x42 */
7793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7794 .tested = TEST_UNTESTED,
7795 .probe = probe_spi_rdid,
7796 .probe_timing = TIMING_ZERO,
7797 .block_erasers =
7798 {
7799 {
7800 .eraseblocks = { {4 * 1024, 1024} },
7801 .block_erase = spi_block_erase_20,
7802 }, {
7803 .eraseblocks = { {64 * 1024, 64} },
7804 .block_erase = spi_block_erase_d8,
7805 }, {
7806 .eraseblocks = { {4 * 1024 * 1024, 1} },
7807 .block_erase = spi_block_erase_c7,
7808 }
7809 },
7810 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7811 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7812 .write = spi_chip_write_256, /* Multi I/O supported */
7813 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7814 .voltage = {1700, 2000},
7815 },
7816
7817 {
7818 .vendor = "Micron/Numonyx/ST",
7819 .name = "N25Q032..3E",
7820 .bustype = BUS_SPI,
7821 .manufacture_id = ST_ID,
7822 .model_id = ST_N25Q032__3E,
7823 .total_size = 4096,
7824 .page_size = 256,
7825 /* supports SFDP */
7826 /* OTP: 64B total; read 0x4B, write 0x42 */
7827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7828 .tested = TEST_OK_PREW,
7829 .probe = probe_spi_rdid,
7830 .probe_timing = TIMING_ZERO,
7831 .block_erasers =
7832 {
7833 {
7834 .eraseblocks = { {4 * 1024, 1024} },
7835 .block_erase = spi_block_erase_20,
7836 }, {
7837 .eraseblocks = { {64 * 1024, 64} },
7838 .block_erase = spi_block_erase_d8,
7839 }, {
7840 .eraseblocks = { {4 * 1024 * 1024, 1} },
7841 .block_erase = spi_block_erase_c7,
7842 }
7843 },
7844 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7845 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7846 .write = spi_chip_write_256, /* Multi I/O supported */
7847 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7848 .voltage = {2700, 3600},
7849 },
7850
7851 {
7852 .vendor = "Micron/Numonyx/ST",
7853 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7854 .bustype = BUS_SPI,
7855 .manufacture_id = ST_ID,
7856 .model_id = ST_N25Q064__1E,
7857 .total_size = 8192,
7858 .page_size = 256,
7859 /* supports SFDP */
7860 /* OTP: 64B total; read 0x4B, write 0x42 */
7861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007862 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007863 .probe = probe_spi_rdid,
7864 .probe_timing = TIMING_ZERO,
7865 .block_erasers =
7866 {
7867 {
7868 .eraseblocks = { {4 * 1024, 2048 } },
7869 .block_erase = spi_block_erase_20,
7870 }, {
7871 .eraseblocks = { {64 * 1024, 128} },
7872 .block_erase = spi_block_erase_d8,
7873 }, {
7874 .eraseblocks = { {8 * 1024 * 1024, 1} },
7875 .block_erase = spi_block_erase_c7,
7876 }
7877 },
7878 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7879 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7880 .write = spi_chip_write_256, /* Multi I/O supported */
7881 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7882 .voltage = {1700, 2000},
7883 },
7884
7885 {
7886 .vendor = "Micron/Numonyx/ST",
7887 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7888 .bustype = BUS_SPI,
7889 .manufacture_id = ST_ID,
7890 .model_id = ST_N25Q064__3E,
7891 .total_size = 8192,
7892 .page_size = 256,
7893 /* supports SFDP */
7894 /* OTP: 64B total; read 0x4B, write 0x42 */
7895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7896 .tested = TEST_OK_PREW,
7897 .probe = probe_spi_rdid,
7898 .probe_timing = TIMING_ZERO,
7899 .block_erasers =
7900 {
7901 {
7902 .eraseblocks = { {4 * 1024, 2048 } },
7903 .block_erase = spi_block_erase_20,
7904 }, {
7905 .eraseblocks = { {64 * 1024, 128} },
7906 .block_erase = spi_block_erase_d8,
7907 }, {
7908 .eraseblocks = { {8 * 1024 * 1024, 1} },
7909 .block_erase = spi_block_erase_c7,
7910 }
7911 },
7912 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7913 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7914 .write = spi_chip_write_256, /* Multi I/O supported */
7915 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7916 .voltage = {2700, 3600},
7917 },
7918
7919 {
7920 .vendor = "Micron/Numonyx/ST",
7921 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7922 .bustype = BUS_SPI,
7923 .manufacture_id = ST_ID,
7924 .model_id = ST_N25Q128__1E,
7925 .total_size = 16384,
7926 .page_size = 256,
7927 /* supports SFDP */
7928 /* OTP: 64B total; read 0x4B, write 0x42 */
7929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7930 .tested = TEST_UNTESTED,
7931 .probe = probe_spi_rdid,
7932 .probe_timing = TIMING_ZERO,
7933 .block_erasers = {
7934 {
7935 .eraseblocks = { {4 * 1024, 4096 } },
7936 .block_erase = spi_block_erase_20,
7937 }, {
7938 .eraseblocks = { {64 * 1024, 256} },
7939 .block_erase = spi_block_erase_d8,
7940 }, {
7941 .eraseblocks = { {16384 * 1024, 1} },
7942 .block_erase = spi_block_erase_c7,
7943 }
7944 },
7945 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7946 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7947 .write = spi_chip_write_256, /* Multi I/O supported */
7948 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7949 .voltage = {1700, 2000},
7950 },
7951
7952 {
7953 .vendor = "Micron/Numonyx/ST",
7954 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7955 .bustype = BUS_SPI,
7956 .manufacture_id = ST_ID,
7957 .model_id = ST_N25Q128__3E,
7958 .total_size = 16384,
7959 .page_size = 256,
7960 /* supports SFDP */
7961 /* OTP: 64B total; read 0x4B, write 0x42 */
7962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7963 .tested = TEST_OK_PREW,
7964 .probe = probe_spi_rdid,
7965 .probe_timing = TIMING_ZERO,
7966 .block_erasers = {
7967 {
7968 .eraseblocks = { {4 * 1024, 4096 } },
7969 .block_erase = spi_block_erase_20,
7970 }, {
7971 .eraseblocks = { {64 * 1024, 256} },
7972 .block_erase = spi_block_erase_d8,
7973 }, {
7974 .eraseblocks = { {16384 * 1024, 1} },
7975 .block_erase = spi_block_erase_c7,
7976 }
7977 },
7978 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7979 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7980 .write = spi_chip_write_256, /* Multi I/O supported */
7981 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7982 .voltage = {2700, 3600},
7983 },
7984
7985 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007986 .vendor = "MoselVitelic",
7987 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007988 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007989 .manufacture_id = SYNCMOS_MVC_ID,
7990 .model_id = MVC_V29C51000B,
7991 .total_size = 64,
7992 .page_size = 512,
7993 .feature_bits = FEATURE_EITHER_RESET,
7994 .tested = TEST_UNTESTED,
7995 .probe = probe_jedec,
7996 .probe_timing = TIMING_ZERO,
7997 .block_erasers =
7998 {
7999 {
8000 .eraseblocks = { {512, 128} },
8001 .block_erase = erase_sector_jedec,
8002 }, {
8003 .eraseblocks = { {64 * 1024, 1} },
8004 .block_erase = erase_chip_block_jedec,
8005 },
8006 },
8007 .write = write_jedec_1,
8008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008009 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008010 },
8011
8012 {
8013 .vendor = "MoselVitelic",
8014 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008015 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008016 .manufacture_id = SYNCMOS_MVC_ID,
8017 .model_id = MVC_V29C51000T,
8018 .total_size = 64,
8019 .page_size = 512,
8020 .feature_bits = FEATURE_EITHER_RESET,
8021 .tested = TEST_UNTESTED,
8022 .probe = probe_jedec,
8023 .probe_timing = TIMING_ZERO,
8024 .block_erasers =
8025 {
8026 {
8027 .eraseblocks = { {512, 128} },
8028 .block_erase = erase_sector_jedec,
8029 }, {
8030 .eraseblocks = { {64 * 1024, 1} },
8031 .block_erase = erase_chip_block_jedec,
8032 },
8033 },
8034 .write = write_jedec_1,
8035 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008036 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008037 },
8038
8039 {
8040 .vendor = "MoselVitelic",
8041 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008042 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008043 .manufacture_id = SYNCMOS_MVC_ID,
8044 .model_id = MVC_V29C51400B,
8045 .total_size = 512,
8046 .page_size = 1024,
8047 .feature_bits = FEATURE_EITHER_RESET,
8048 .tested = TEST_UNTESTED,
8049 .probe = probe_jedec,
8050 .probe_timing = TIMING_ZERO,
8051 .block_erasers =
8052 {
8053 {
8054 .eraseblocks = { {1024, 512} },
8055 .block_erase = erase_sector_jedec,
8056 }, {
8057 .eraseblocks = { {512 * 1024, 1} },
8058 .block_erase = erase_chip_block_jedec,
8059 },
8060 },
8061 .write = write_jedec_1,
8062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008063 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008064 },
8065
8066 {
8067 .vendor = "MoselVitelic",
8068 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008069 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008070 .manufacture_id = SYNCMOS_MVC_ID,
8071 .model_id = MVC_V29C51400T,
8072 .total_size = 512,
8073 .page_size = 1024,
8074 .feature_bits = FEATURE_EITHER_RESET,
8075 .tested = TEST_UNTESTED,
8076 .probe = probe_jedec,
8077 .probe_timing = TIMING_ZERO,
8078 .block_erasers =
8079 {
8080 {
8081 .eraseblocks = { {1024, 512} },
8082 .block_erase = erase_sector_jedec,
8083 }, {
8084 .eraseblocks = { {512 * 1024, 1} },
8085 .block_erase = erase_chip_block_jedec,
8086 },
8087 },
8088 .write = write_jedec_1,
8089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008090 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008091 },
8092
8093 {
8094 .vendor = "MoselVitelic",
8095 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008096 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008097 .manufacture_id = SYNCMOS_MVC_ID,
8098 .model_id = MVC_V29LC51000,
8099 .total_size = 64,
8100 .page_size = 512,
8101 .feature_bits = FEATURE_EITHER_RESET,
8102 .tested = TEST_UNTESTED,
8103 .probe = probe_jedec,
8104 .probe_timing = TIMING_ZERO,
8105 .block_erasers =
8106 {
8107 {
8108 .eraseblocks = { {512, 128} },
8109 .block_erase = erase_sector_jedec,
8110 }, {
8111 .eraseblocks = { {64 * 1024, 1} },
8112 .block_erase = erase_chip_block_jedec,
8113 },
8114 },
8115 .write = write_jedec_1,
8116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008117 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008118 },
8119
8120 {
8121 .vendor = "MoselVitelic",
8122 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008123 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008124 .manufacture_id = SYNCMOS_MVC_ID,
8125 .model_id = MVC_V29LC51001,
8126 .total_size = 128,
8127 .page_size = 512,
8128 .feature_bits = FEATURE_EITHER_RESET,
8129 .tested = TEST_UNTESTED,
8130 .probe = probe_jedec,
8131 .probe_timing = TIMING_ZERO,
8132 .block_erasers =
8133 {
8134 {
8135 .eraseblocks = { {512, 256} },
8136 .block_erase = erase_sector_jedec,
8137 }, {
8138 .eraseblocks = { {128 * 1024, 1} },
8139 .block_erase = erase_chip_block_jedec,
8140 },
8141 },
8142 .write = write_jedec_1,
8143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008144 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008145 },
8146
8147 {
8148 .vendor = "MoselVitelic",
8149 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008150 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008151 .manufacture_id = SYNCMOS_MVC_ID,
8152 .model_id = MVC_V29LC51002,
8153 .total_size = 256,
8154 .page_size = 512,
8155 .feature_bits = FEATURE_EITHER_RESET,
8156 .tested = TEST_UNTESTED,
8157 .probe = probe_jedec,
8158 .probe_timing = TIMING_ZERO,
8159 .block_erasers =
8160 {
8161 {
8162 .eraseblocks = { {512, 512} },
8163 .block_erase = erase_sector_jedec,
8164 }, {
8165 .eraseblocks = { {256 * 1024, 1} },
8166 .block_erase = erase_chip_block_jedec,
8167 },
8168 },
8169 .write = write_jedec_1,
8170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008171 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008172 },
8173
8174 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008175 .vendor = "Nantronics",
8176 .name = "N25S10",
8177 .bustype = BUS_SPI,
8178 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8179 .model_id = NANTRONICS_N25S10,
8180 .total_size = 128,
8181 .page_size = 256,
8182 .feature_bits = FEATURE_WRSR_WREN,
8183 .tested = TEST_UNTESTED,
8184 .probe = probe_spi_rdid,
8185 .probe_timing = TIMING_ZERO,
8186 .block_erasers =
8187 {
8188 {
8189 .eraseblocks = { {4 * 1024, 32} },
8190 .block_erase = spi_block_erase_20,
8191 }, {
8192 .eraseblocks = { {4 * 1024, 32} },
8193 .block_erase = spi_block_erase_d7,
8194 }, {
8195 .eraseblocks = { {32 * 1024, 4} },
8196 .block_erase = spi_block_erase_52,
8197 }, {
8198 .eraseblocks = { {64 * 1024, 2} },
8199 .block_erase = spi_block_erase_d8,
8200 }, {
8201 .eraseblocks = { {128 * 1024, 1} },
8202 .block_erase = spi_block_erase_60,
8203 }, {
8204 .eraseblocks = { {128 * 1024, 1} },
8205 .block_erase = spi_block_erase_c7,
8206 }
8207 },
8208 .printlock = spi_prettyprint_status_register_default_bp3,
8209 .unlock = spi_disable_blockprotect_bp3_srwd,
8210 .write = spi_chip_write_256,
8211 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8212 .voltage = {2700, 3600},
8213 },
8214
8215 {
8216 .vendor = "Nantronics",
8217 .name = "N25S20",
8218 .bustype = BUS_SPI,
8219 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8220 .model_id = NANTRONICS_N25S20,
8221 .total_size = 256,
8222 .page_size = 256,
8223 .feature_bits = FEATURE_WRSR_WREN,
8224 .tested = TEST_UNTESTED,
8225 .probe = probe_spi_rdid,
8226 .probe_timing = TIMING_ZERO,
8227 .block_erasers =
8228 {
8229 {
8230 .eraseblocks = { {4 * 1024, 64} },
8231 .block_erase = spi_block_erase_20,
8232 }, {
8233 .eraseblocks = { {4 * 1024, 64} },
8234 .block_erase = spi_block_erase_d7,
8235 }, {
8236 .eraseblocks = { {32 * 1024, 8} },
8237 .block_erase = spi_block_erase_52,
8238 }, {
8239 .eraseblocks = { {64 * 1024, 4} },
8240 .block_erase = spi_block_erase_d8,
8241 }, {
8242 .eraseblocks = { {256 * 1024, 1} },
8243 .block_erase = spi_block_erase_60,
8244 }, {
8245 .eraseblocks = { {256 * 1024, 1} },
8246 .block_erase = spi_block_erase_c7,
8247 }
8248 },
8249 .printlock = spi_prettyprint_status_register_default_bp3,
8250 .unlock = spi_disable_blockprotect_bp3_srwd,
8251 .write = spi_chip_write_256,
8252 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8253 .voltage = {2700, 3600},
8254 },
8255
8256 {
8257 .vendor = "Nantronics",
8258 .name = "N25S40",
8259 .bustype = BUS_SPI,
8260 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8261 .model_id = NANTRONICS_N25S40,
8262 .total_size = 512,
8263 .page_size = 256,
8264 .feature_bits = FEATURE_WRSR_WREN,
8265 .tested = TEST_UNTESTED,
8266 .probe = probe_spi_rdid,
8267 .probe_timing = TIMING_ZERO,
8268 .block_erasers =
8269 {
8270 {
8271 .eraseblocks = { {4 * 1024, 128} },
8272 .block_erase = spi_block_erase_20,
8273 }, {
8274 .eraseblocks = { {4 * 1024, 128} },
8275 .block_erase = spi_block_erase_d7,
8276 }, {
8277 .eraseblocks = { {32 * 1024, 16} },
8278 .block_erase = spi_block_erase_52,
8279 }, {
8280 .eraseblocks = { {64 * 1024, 8} },
8281 .block_erase = spi_block_erase_d8,
8282 }, {
8283 .eraseblocks = { {512 * 1024, 1} },
8284 .block_erase = spi_block_erase_60,
8285 }, {
8286 .eraseblocks = { {512 * 1024, 1} },
8287 .block_erase = spi_block_erase_c7,
8288 }
8289 },
8290 .printlock = spi_prettyprint_status_register_default_bp3,
8291 .unlock = spi_disable_blockprotect_bp3_srwd,
8292 .write = spi_chip_write_256,
8293 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8294 .voltage = {2700, 3600},
8295 },
8296
8297 {
8298 .vendor = "Nantronics",
8299 .name = "N25S80",
8300 .bustype = BUS_SPI,
8301 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8302 .model_id = NANTRONICS_N25S80,
8303 .total_size = 1024,
8304 .page_size = 256,
8305 .feature_bits = FEATURE_WRSR_WREN,
8306 .tested = TEST_UNTESTED,
8307 .probe = probe_spi_rdid,
8308 .probe_timing = TIMING_ZERO,
8309 .block_erasers =
8310 {
8311 {
8312 .eraseblocks = { {4 * 1024, 256} },
8313 .block_erase = spi_block_erase_20,
8314 }, {
8315 .eraseblocks = { {32 * 1024, 32} },
8316 .block_erase = spi_block_erase_52,
8317 }, {
8318 .eraseblocks = { {64 * 1024, 16} },
8319 .block_erase = spi_block_erase_d8,
8320 }, {
8321 .eraseblocks = { {1024 * 1024, 1} },
8322 .block_erase = spi_block_erase_60,
8323 }, {
8324 .eraseblocks = { {1024 * 1024, 1} },
8325 .block_erase = spi_block_erase_c7,
8326 }
8327 },
8328 .printlock = spi_prettyprint_status_register_default_bp3,
8329 .unlock = spi_disable_blockprotect_bp3_srwd,
8330 .write = spi_chip_write_256,
8331 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8332 .voltage = {2700, 3600},
8333 },
8334
8335 {
8336 .vendor = "Nantronics",
8337 .name = "N25S16",
8338 .bustype = BUS_SPI,
8339 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8340 .model_id = NANTRONICS_N25S16,
8341 .total_size = 2048,
8342 .page_size = 256,
8343 .feature_bits = FEATURE_WRSR_WREN,
8344 .tested = TEST_UNTESTED,
8345 .probe = probe_spi_rdid,
8346 .probe_timing = TIMING_ZERO,
8347 .block_erasers =
8348 {
8349 {
8350 .eraseblocks = { {4 * 1024, 512} },
8351 .block_erase = spi_block_erase_20,
8352 }, {
8353 .eraseblocks = { {64 * 1024, 32} },
8354 .block_erase = spi_block_erase_d8,
8355 }, {
8356 .eraseblocks = { {2048 * 1024, 1} },
8357 .block_erase = spi_block_erase_60,
8358 }, {
8359 .eraseblocks = { {2048 * 1024, 1} },
8360 .block_erase = spi_block_erase_c7,
8361 }
8362 },
8363 .printlock = spi_prettyprint_status_register_default_bp3,
8364 .unlock = spi_disable_blockprotect_bp3_srwd,
8365 .write = spi_chip_write_256,
8366 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8367 .voltage = {2700, 3600},
8368 },
8369
8370 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008371 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008372 .name = "Pm25LD256C",
8373 .bustype = BUS_SPI,
8374 .manufacture_id = PMC_ID,
8375 .model_id = PMC_PM25LD256C,
8376 .total_size = 32,
8377 .page_size = 256,
8378 .feature_bits = FEATURE_WRSR_WREN,
8379 .tested = TEST_UNTESTED,
8380 .probe = probe_spi_rdid,
8381 .probe_timing = TIMING_ZERO,
8382 .block_erasers =
8383 {
8384 {
8385 .eraseblocks = { {4 * 1024, 8} },
8386 .block_erase = spi_block_erase_20,
8387 }, {
8388 .eraseblocks = { {4 * 1024, 8} },
8389 .block_erase = spi_block_erase_d7,
8390 }, {
8391 .eraseblocks = { {32 * 1024, 1} },
8392 .block_erase = spi_block_erase_d8,
8393 }, {
8394 .eraseblocks = { {32 * 1024, 1} },
8395 .block_erase = spi_block_erase_60,
8396 }, {
8397 .eraseblocks = { {32 * 1024, 1} },
8398 .block_erase = spi_block_erase_c7,
8399 }
8400 },
8401 .printlock = spi_prettyprint_status_register_default_bp2,
8402 .unlock = spi_disable_blockprotect,
8403 .write = spi_chip_write_256,
8404 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8405 .voltage = {2700, 3600},
8406 },
8407 {
8408 .vendor = "PMC",
8409 .name = "Pm25LD512(C)",
8410 .bustype = BUS_SPI,
8411 .manufacture_id = PMC_ID,
8412 .model_id = PMC_PM25LD512,
8413 .total_size = 64,
8414 .page_size = 256,
8415 .feature_bits = FEATURE_WRSR_WREN,
8416 .tested = TEST_OK_PREW,
8417 .probe = probe_spi_rdid,
8418 .probe_timing = TIMING_ZERO,
8419 .block_erasers =
8420 {
8421 {
8422 .eraseblocks = { {4 * 1024, 16} },
8423 .block_erase = spi_block_erase_20,
8424 }, {
8425 .eraseblocks = { {4 * 1024, 16} },
8426 .block_erase = spi_block_erase_d7,
8427 }, {
8428 .eraseblocks = { {32 * 1024, 2} },
8429 .block_erase = spi_block_erase_d8,
8430 }, {
8431 .eraseblocks = { {64 * 1024, 1} },
8432 .block_erase = spi_block_erase_60,
8433 }, {
8434 .eraseblocks = { {64 * 1024, 1} },
8435 .block_erase = spi_block_erase_c7,
8436 }
8437 },
8438 .printlock = spi_prettyprint_status_register_default_bp2,
8439 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8440 .write = spi_chip_write_256,
8441 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8442 .voltage = {2300, 3600},
8443 },
8444
8445 {
8446 .vendor = "PMC",
8447 .name = "Pm25LD010(C)",
8448 .bustype = BUS_SPI,
8449 .manufacture_id = PMC_ID,
8450 .model_id = PMC_PM25LD010,
8451 .total_size = 128,
8452 .page_size = 256,
8453 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008454 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008455 .probe = probe_spi_rdid,
8456 .probe_timing = TIMING_ZERO,
8457 .block_erasers =
8458 {
8459 {
8460 .eraseblocks = { {4 * 1024, 32} },
8461 .block_erase = spi_block_erase_20,
8462 }, {
8463 .eraseblocks = { {4 * 1024, 32} },
8464 .block_erase = spi_block_erase_d7,
8465 }, {
8466 .eraseblocks = { {32 * 1024, 4} },
8467 .block_erase = spi_block_erase_d8,
8468 }, {
8469 .eraseblocks = { {128 * 1024, 1} },
8470 .block_erase = spi_block_erase_60,
8471 }, {
8472 .eraseblocks = { {128 * 1024, 1} },
8473 .block_erase = spi_block_erase_c7,
8474 }
8475 },
8476 .printlock = spi_prettyprint_status_register_default_bp2,
8477 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8478 .write = spi_chip_write_256,
8479 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8480 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8481 },
8482
8483 {
8484 .vendor = "PMC",
8485 .name = "Pm25LD020(C)",
8486 .bustype = BUS_SPI,
8487 .manufacture_id = PMC_ID,
8488 .model_id = PMC_PM25LD020,
8489 .total_size = 256,
8490 .page_size = 256,
8491 .feature_bits = FEATURE_WRSR_WREN,
8492 .tested = TEST_UNTESTED,
8493 .probe = probe_spi_rdid,
8494 .probe_timing = TIMING_ZERO,
8495 .block_erasers =
8496 {
8497 {
8498 .eraseblocks = { {4 * 1024, 64} },
8499 .block_erase = spi_block_erase_20,
8500 }, {
8501 .eraseblocks = { {4 * 1024, 64} },
8502 .block_erase = spi_block_erase_d7,
8503 }, {
8504 .eraseblocks = { {64 * 1024, 4} },
8505 .block_erase = spi_block_erase_d8,
8506 }, {
8507 .eraseblocks = { {256 * 1024, 1} },
8508 .block_erase = spi_block_erase_60,
8509 }, {
8510 .eraseblocks = { {256 * 1024, 1} },
8511 .block_erase = spi_block_erase_c7,
8512 }
8513 },
8514 .printlock = spi_prettyprint_status_register_default_bp2,
8515 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8516 .write = spi_chip_write_256,
8517 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8518 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8519 },
8520
8521 {
8522 .vendor = "PMC",
8523 .name = "Pm25LD040(C)",
8524 .bustype = BUS_SPI,
8525 .manufacture_id = PMC_ID,
8526 .model_id = PMC_PM25LV040,
8527 .total_size = 512,
8528 .page_size = 256,
8529 .feature_bits = FEATURE_WRSR_WREN,
8530 .tested = TEST_UNTESTED,
8531 .probe = probe_spi_rdid,
8532 .probe_timing = TIMING_ZERO,
8533 .block_erasers =
8534 {
8535 {
8536 .eraseblocks = { {4 * 1024, 128} },
8537 .block_erase = spi_block_erase_20,
8538 }, {
8539 .eraseblocks = { {4 * 1024, 128} },
8540 .block_erase = spi_block_erase_d7,
8541 }, {
8542 .eraseblocks = { {64 * 1024, 8} },
8543 .block_erase = spi_block_erase_d8,
8544 }, {
8545 .eraseblocks = { {512 * 1024, 1} },
8546 .block_erase = spi_block_erase_60,
8547 }, {
8548 .eraseblocks = { {512 * 1024, 1} },
8549 .block_erase = spi_block_erase_c7,
8550 }
8551 },
8552 .printlock = spi_prettyprint_status_register_default_bp2,
8553 .unlock = spi_disable_blockprotect,
8554 .write = spi_chip_write_256,
8555 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8556 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8557 },
8558
8559{
8560 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008561 .name = "Pm25LV512(A)",
8562 .bustype = BUS_SPI,
8563 .manufacture_id = PMC_ID,
8564 .model_id = PMC_PM25LV512,
8565 .total_size = 64,
8566 .page_size = 256,
8567 .feature_bits = FEATURE_WRSR_WREN,
8568 .tested = TEST_UNTESTED,
8569 .probe = probe_spi_res3,
8570 .probe_timing = TIMING_ZERO,
8571 .block_erasers =
8572 {
8573 {
8574 .eraseblocks = { {4 * 1024, 16} },
8575 .block_erase = spi_block_erase_d7,
8576 }, {
8577 .eraseblocks = { {32 * 1024, 2} },
8578 .block_erase = spi_block_erase_d8,
8579 }, {
8580 .eraseblocks = { {64 * 1024, 1} },
8581 .block_erase = spi_block_erase_c7,
8582 }
8583 },
8584 .printlock = spi_prettyprint_status_register_default_bp1,
8585 .unlock = spi_disable_blockprotect,
8586 .write = spi_chip_write_256,
8587 .read = spi_chip_read, /* Fast read (0x0B) supported */
8588 .voltage = {2700, 3600},
8589 },
8590
8591 {
8592 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008593 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008595 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008596 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008597 .total_size = 128,
8598 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008600 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008601 .probe = probe_spi_res3,
8602 .probe_timing = TIMING_ZERO,
8603 .block_erasers =
8604 {
8605 {
8606 .eraseblocks = { {4 * 1024, 32} },
8607 .block_erase = spi_block_erase_d7,
8608 }, {
8609 .eraseblocks = { {32 * 1024, 4} },
8610 .block_erase = spi_block_erase_d8,
8611 }, {
8612 .eraseblocks = { {128 * 1024, 1} },
8613 .block_erase = spi_block_erase_c7,
8614 }
8615 },
8616 .printlock = spi_prettyprint_status_register_default_bp1,
8617 .unlock = spi_disable_blockprotect,
8618 .write = spi_chip_write_256,
8619 .read = spi_chip_read, /* Fast read (0x0B) supported */
8620 .voltage = {2700, 3600},
8621 },
8622
8623 {
8624 .vendor = "PMC",
8625 .name = "Pm25LV010A",
8626 .bustype = BUS_SPI,
8627 .manufacture_id = PMC_ID,
8628 .model_id = PMC_PM25LV010,
8629 .total_size = 128,
8630 .page_size = 256,
8631 .feature_bits = FEATURE_WRSR_WREN,
8632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008634 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008635 .block_erasers =
8636 {
8637 {
8638 .eraseblocks = { {4 * 1024, 32} },
8639 .block_erase = spi_block_erase_d7,
8640 }, {
8641 .eraseblocks = { {32 * 1024, 4} },
8642 .block_erase = spi_block_erase_d8,
8643 }, {
8644 .eraseblocks = { {128 * 1024, 1} },
8645 .block_erase = spi_block_erase_c7,
8646 }
8647 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008648 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008649 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008650 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008651 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008652 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008653 },
8654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008655 {
8656 .vendor = "PMC",
8657 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008659 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008660 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008661 .total_size = 256,
8662 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008663 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008664 .tested = TEST_UNTESTED,
8665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008666 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008667 .block_erasers =
8668 {
8669 {
8670 .eraseblocks = { {4 * 1024, 64} },
8671 .block_erase = spi_block_erase_d7,
8672 }, {
8673 .eraseblocks = { {64 * 1024, 4} },
8674 .block_erase = spi_block_erase_d8,
8675 }, {
8676 .eraseblocks = { {256 * 1024, 1} },
8677 .block_erase = spi_block_erase_c7,
8678 }
8679 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008680 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008681 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008682 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008683 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008684 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008685 },
8686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008687 {
8688 .vendor = "PMC",
8689 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008690 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008691 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008692 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008693 .total_size = 512,
8694 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008695 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008696 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008697 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008698 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008699 .block_erasers =
8700 {
8701 {
8702 .eraseblocks = { {4 * 1024, 128} },
8703 .block_erase = spi_block_erase_d7,
8704 }, {
8705 .eraseblocks = { {64 * 1024, 8} },
8706 .block_erase = spi_block_erase_d8,
8707 }, {
8708 .eraseblocks = { {512 * 1024, 1} },
8709 .block_erase = spi_block_erase_c7,
8710 }
8711 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008712 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008713 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008714 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008715 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008716 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008717 },
8718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008719 {
8720 .vendor = "PMC",
8721 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008722 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008723 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008724 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008725 .total_size = 1024,
8726 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008727 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008728 .tested = TEST_UNTESTED,
8729 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008730 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008731 .block_erasers =
8732 {
8733 {
8734 .eraseblocks = { {4 * 1024, 256} },
8735 .block_erase = spi_block_erase_d7,
8736 }, {
8737 .eraseblocks = { {4 * 1024, 256} },
8738 .block_erase = spi_block_erase_20,
8739 }, {
8740 .eraseblocks = { {64 * 1024, 16} },
8741 .block_erase = spi_block_erase_d8,
8742 }, {
8743 .eraseblocks = { {1024 * 1024, 1} },
8744 .block_erase = spi_block_erase_60,
8745 }, {
8746 .eraseblocks = { {1024 * 1024, 1} },
8747 .block_erase = spi_block_erase_c7,
8748 }
8749 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008750 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008751 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008752 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008753 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008754 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008755 },
8756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 {
8758 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008759 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008760 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008761 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008762 .model_id = PMC_PM25LV016B,
8763 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008764 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008765 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008766 .tested = TEST_UNTESTED,
8767 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008768 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008769 .block_erasers =
8770 {
8771 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008772 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008773 .block_erase = spi_block_erase_d7,
8774 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008775 .eraseblocks = { {4 * 1024, 512} },
8776 .block_erase = spi_block_erase_20,
8777 }, {
8778 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008779 .block_erase = spi_block_erase_d8,
8780 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008781 .eraseblocks = { {2 * 1024 * 1024, 1} },
8782 .block_erase = spi_block_erase_60,
8783 }, {
8784 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008785 .block_erase = spi_block_erase_c7,
8786 }
8787 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008788 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008789 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008790 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008791 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008792 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008793 },
8794
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008795 {
8796 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008797 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008798 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008799 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008800 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008801 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008802 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008803 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008804 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008805 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008806 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008807 .block_erasers =
8808 {
8809 {
8810 .eraseblocks = {
8811 {128 * 1024, 1},
8812 {96 * 1024, 1},
8813 {8 * 1024, 2},
8814 {16 * 1024, 1},
8815 },
Sean Nelson35727f72010-01-28 23:55:12 +00008816 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008817 }, {
8818 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008819 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008820 },
8821 },
Sean Nelson35727f72010-01-28 23:55:12 +00008822 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008823 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008824 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008825 },
8826
8827 {
8828 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008829 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008830 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008831 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008832 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008833 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008834 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008835 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008836 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008837 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008838 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008839 .block_erasers =
8840 {
8841 {
8842 .eraseblocks = {
8843 {16 * 1024, 1},
8844 {8 * 1024, 2},
8845 {96 * 1024, 1},
8846 {128 * 1024, 1},
8847 },
Sean Nelson35727f72010-01-28 23:55:12 +00008848 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008849 }, {
8850 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008851 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008852 },
8853 },
Sean Nelson35727f72010-01-28 23:55:12 +00008854 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008856 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008857 },
8858
8859 {
8860 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008861 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008862 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008863 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008864 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008865 .total_size = 128,
8866 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008867 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008868 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008869 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008870 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008871 .block_erasers =
8872 {
8873 {
8874 .eraseblocks = { {4 * 1024, 32} },
8875 .block_erase = erase_sector_jedec,
8876 }, {
8877 .eraseblocks = { {64 * 1024, 2} },
8878 .block_erase = erase_block_jedec,
8879 }, {
8880 .eraseblocks = { {128 * 1024, 1} },
8881 .block_erase = erase_chip_block_jedec,
8882 }
8883 },
Sean Nelson35727f72010-01-28 23:55:12 +00008884 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008886 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008887 },
8888
8889 {
8890 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008891 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008892 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008893 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008894 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008895 .total_size = 256,
8896 .page_size = 4096,
8897 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8898 .tested = TEST_UNTESTED,
8899 .probe = probe_jedec,
8900 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8901 .block_erasers =
8902 {
8903 {
8904 .eraseblocks = { {4 * 1024, 64} },
8905 .block_erase = erase_sector_jedec,
8906 }, {
8907 .eraseblocks = { {64 * 1024, 4} },
8908 .block_erase = erase_block_jedec,
8909 }, {
8910 .eraseblocks = { {256 * 1024, 1} },
8911 .block_erase = erase_chip_block_jedec,
8912 }
8913 },
8914 .write = write_jedec_1,
8915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008916 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008917 },
8918
8919 {
8920 .vendor = "PMC",
8921 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008922 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008923 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008924 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008925 .total_size = 512,
8926 .page_size = 4096,
8927 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008928 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008929 .probe = probe_jedec,
8930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8931 .block_erasers =
8932 {
8933 {
8934 .eraseblocks = { {4 * 1024, 128} },
8935 .block_erase = erase_sector_jedec,
8936 }, {
8937 .eraseblocks = { {64 * 1024, 8} },
8938 .block_erase = erase_block_jedec,
8939 }, {
8940 .eraseblocks = { {512 * 1024, 1} },
8941 .block_erase = erase_chip_block_jedec,
8942 }
8943 },
8944 .write = write_jedec_1,
8945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008946 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008947 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008948
8949 {
8950 .vendor = "PMC",
8951 .name = "Pm39LV512",
8952 .bustype = BUS_PARALLEL,
8953 .manufacture_id = PMC_ID_NOPREFIX,
8954 .model_id = PMC_PM39LV512,
8955 .total_size = 64,
8956 .page_size = 4096,
8957 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8958 .tested = TEST_OK_PREW,
8959 .probe = probe_jedec,
8960 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8961 .block_erasers =
8962 {
8963 {
8964 .eraseblocks = { {4 * 1024, 16} },
8965 .block_erase = erase_sector_jedec,
8966 }, {
8967 .eraseblocks = { {64 * 1024, 1} },
8968 .block_erase = erase_block_jedec,
8969 }, {
8970 .eraseblocks = { {64 * 1024, 1} },
8971 .block_erase = erase_chip_block_jedec,
8972 }
8973 },
8974 .write = write_jedec_1,
8975 .read = read_memmapped,
8976 .voltage = {2700, 3600},
8977 },
8978
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008979 {
8980 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008982 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008983 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008984 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008985 .total_size = 256,
8986 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008987 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008988 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008989 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008990 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008991 .block_erasers =
8992 {
8993 {
8994 .eraseblocks = { {4 * 1024, 64} },
8995 .block_erase = erase_sector_jedec,
8996 }, {
8997 .eraseblocks = { {16 * 1024, 16} },
8998 .block_erase = erase_block_jedec,
8999 }, {
9000 .eraseblocks = { {256 * 1024, 1} },
9001 .block_erase = erase_chip_block_jedec,
9002 }
9003 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009004 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009005 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009006 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009007 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009008 },
9009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009010 {
9011 .vendor = "PMC",
9012 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009013 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009014 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009015 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009016 .total_size = 512,
9017 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009018 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009019 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009020 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009021 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009022 .block_erasers =
9023 {
9024 {
9025 .eraseblocks = { {4 * 1024, 128} },
9026 .block_erase = erase_sector_jedec,
9027 }, {
9028 .eraseblocks = { {64 * 1024, 8} },
9029 .block_erase = erase_block_jedec,
9030 }, {
9031 .eraseblocks = { {512 * 1024, 1} },
9032 .block_erase = erase_chip_block_jedec,
9033 }
9034 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009035 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009036 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009037 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009038 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009039 },
9040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009041 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009042 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009043 .name = "LE25FU406B",
9044 .bustype = BUS_SPI,
9045 .manufacture_id = SANYO_ID,
9046 .model_id = SANYO_LE25FU406B,
9047 .total_size = 512,
9048 .page_size = 256,
9049 .feature_bits = FEATURE_WRSR_WREN,
9050 .tested = TEST_OK_PREW,
9051 .probe = probe_spi_res2,
9052 .probe_timing = TIMING_ZERO,
9053 .block_erasers = {
9054 {
9055 .eraseblocks = { {4 * 1024, 128} },
9056 .block_erase = spi_block_erase_d7,
9057 }, {
9058 .eraseblocks = { {64 * 1024, 8} },
9059 .block_erase = spi_block_erase_d8,
9060 }, {
9061 .eraseblocks = { {512 * 1024, 1} },
9062 .block_erase = spi_block_erase_c7,
9063 }
9064 },
9065 .printlock = spi_prettyprint_status_register_default_bp2,
9066 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9067 .write = spi_chip_write_256,
9068 .read = spi_chip_read,
9069 .voltage = {2300, 3600},
9070 },
9071
9072 {
9073 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009074 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009075 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009076 .manufacture_id = SANYO_ID,
9077 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009078 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009079 .page_size = 256,
9080 .tested = TEST_UNTESTED,
9081 .probe = probe_spi_rdid,
9082 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009083 .block_erasers =
9084 {
9085 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009086 .eraseblocks = { {256, 1024} },
9087 .block_erase = spi_block_erase_db,
9088 }, {
9089 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009090 .block_erase = spi_block_erase_d8,
9091 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009092 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009093 .block_erase = spi_block_erase_c7,
9094 }
9095 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009096 .printlock = spi_prettyprint_status_register_default_welwip,
9097 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009098 .write = spi_chip_write_256,
9099 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009100 .voltage = {2700, 3600},
9101 },
9102
9103 {
9104 .vendor = "Sanyo",
9105 .name = "LE25FW403A",
9106 .bustype = BUS_SPI,
9107 .manufacture_id = SANYO_ID,
9108 .model_id = SANYO_LE25FW403A,
9109 .total_size = 512,
9110 .page_size = 256,
9111 .tested = TEST_UNTESTED,
9112 .probe = probe_spi_rdid,
9113 .probe_timing = TIMING_ZERO,
9114 .block_erasers = {
9115 {
9116 .eraseblocks = { {256, 2 * 1024} },
9117 .block_erase = spi_block_erase_db,
9118 }, {
9119 .eraseblocks = { {64 * 1024, 8} },
9120 .block_erase = spi_block_erase_d8,
9121 }, {
9122 .eraseblocks = { {512 * 1024, 1} },
9123 .block_erase = spi_block_erase_c7,
9124 }
9125 },
9126 .printlock = spi_prettyprint_status_register_default_welwip,
9127 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9128 .write = spi_chip_write_256,
9129 .read = spi_chip_read,
9130 .voltage = {2700, 3600},
9131 },
9132
9133 {
9134 .vendor = "Sanyo",
9135 .name = "LE25FW418A",
9136 .bustype = BUS_SPI,
9137 .manufacture_id = SANYO_ID,
9138 .model_id = SANYO_LE25FW418A,
9139 .total_size = 512,
9140 .page_size = 256,
9141 .feature_bits = FEATURE_WRSR_WREN,
9142 .tested = TEST_UNTESTED,
9143 .probe = probe_spi_res2,
9144 .probe_timing = TIMING_ZERO,
9145 .block_erasers = {
9146 {
9147 .eraseblocks = { {4 * 1024, 128} },
9148 .block_erase = spi_block_erase_d7,
9149 }, {
9150 .eraseblocks = { {64 * 1024, 8} },
9151 .block_erase = spi_block_erase_d8,
9152 }, {
9153 .eraseblocks = { {512 * 1024, 1} },
9154 .block_erase = spi_block_erase_c7,
9155 }
9156 },
9157 .printlock = spi_prettyprint_status_register_default_bp2,
9158 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9159 .write = spi_chip_write_256,
9160 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9161 .voltage = {2700, 3600},
9162 },
9163
9164 {
9165 .vendor = "Sanyo",
9166 .name = "LE25FW806",
9167 .bustype = BUS_SPI,
9168 .manufacture_id = SANYO_ID,
9169 .model_id = SANYO_LE25FW806,
9170 .total_size = 1024,
9171 .page_size = 256,
9172 .feature_bits = FEATURE_WRSR_WREN,
9173 .tested = TEST_UNTESTED,
9174 .probe = probe_spi_res2,
9175 .probe_timing = TIMING_ZERO,
9176 .block_erasers = {
9177 {
9178 .eraseblocks = { {4 * 1024, 256} },
9179 .block_erase = spi_block_erase_20,
9180 }, {
9181 .eraseblocks = { {4 * 1024, 256} },
9182 .block_erase = spi_block_erase_d7,
9183 }, {
9184 .eraseblocks = { {64 * 1024, 16} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {1024 * 1024, 1} },
9188 .block_erase = spi_block_erase_c7,
9189 }
9190 },
9191 .printlock = spi_prettyprint_status_register_default_bp2,
9192 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9193 .write = spi_chip_write_256,
9194 .read = spi_chip_read,
9195 .voltage = {2700, 3600},
9196 },
9197
9198 {
9199 .vendor = "Sanyo",
9200 .name = "LE25FW808",
9201 .bustype = BUS_SPI,
9202 .manufacture_id = SANYO_ID,
9203 .model_id = SANYO_LE25FW808,
9204 .total_size = 1024,
9205 .page_size = 256,
9206 .feature_bits = FEATURE_WRSR_WREN,
9207 .tested = TEST_UNTESTED,
9208 .probe = probe_spi_res2,
9209 .probe_timing = TIMING_ZERO,
9210 .block_erasers = {
9211 {
9212 .eraseblocks = { {8 * 1024, 128} },
9213 .block_erase = spi_block_erase_d7,
9214 }, {
9215 .eraseblocks = { {64 * 1024, 16} },
9216 .block_erase = spi_block_erase_d8,
9217 }, {
9218 .eraseblocks = { {1024 * 1024, 1} },
9219 .block_erase = spi_block_erase_c7,
9220 }
9221 },
9222 .printlock = spi_prettyprint_status_register_default_bp2,
9223 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9224 .write = spi_chip_write_256,
9225 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9226 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009227 },
9228
9229 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009230 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009231 .name = "LH28F008BJT-BTLZ1",
9232 .bustype = BUS_PARALLEL,
9233 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009234 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009235 .total_size = 1024,
9236 .page_size = 64 * 1024,
9237 .tested = TEST_OK_PREW,
9238 .probe = probe_82802ab,
9239 .probe_timing = TIMING_ZERO,
9240 .block_erasers =
9241 {
9242 {
9243 .eraseblocks = {
9244 {8 * 1024, 8},
9245 {64 * 1024, 15}
9246 },
9247 .block_erase = erase_block_82802ab,
9248 }, {
9249 .eraseblocks = { {1024 * 1024, 1} },
9250 .block_erase = erase_sector_49lfxxxc,
9251 }
9252 },
9253 .unlock = unlock_lh28f008bjt,
9254 .write = write_82802ab,
9255 .read = read_memmapped,
9256 .voltage = {2700, 3600},
9257 },
9258
9259 {
9260 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009261 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009262 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009263 .manufacture_id = SHARP_ID,
9264 .model_id = SHARP_LHF00L04,
9265 .total_size = 1024,
9266 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009267 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009268 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009269 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009270 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009271 .block_erasers =
9272 {
9273 {
9274 .eraseblocks = {
9275 {64 * 1024, 15},
9276 {8 * 1024, 8}
9277 },
Sean Nelson28accc22010-03-19 18:47:06 +00009278 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009279 }, {
9280 .eraseblocks = {
9281 {1024 * 1024, 1}
9282 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009283 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009284 },
9285 },
Sean Nelson28accc22010-03-19 18:47:06 +00009286 .unlock = unlock_82802ab,
9287 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009289 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009290 },
9291
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009292 {
9293 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009294 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009295 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009296 .manufacture_id = SPANSION_ID,
9297 .model_id = SPANSION_S25FL004A,
9298 .total_size = 512,
9299 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009300 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009301 .tested = TEST_UNTESTED,
9302 .probe = probe_spi_rdid,
9303 .probe_timing = TIMING_ZERO,
9304 .block_erasers =
9305 {
9306 {
9307 .eraseblocks = { {64 * 1024, 8} },
9308 .block_erase = spi_block_erase_d8,
9309 }, {
9310 .eraseblocks = { {512 * 1024, 1} },
9311 .block_erase = spi_block_erase_c7,
9312 }
9313 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009314 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009315 .unlock = spi_disable_blockprotect,
9316 .write = spi_chip_write_256,
9317 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009318 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009319 },
9320
9321 {
9322 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009323 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009324 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009325 .manufacture_id = SPANSION_ID,
9326 .model_id = SPANSION_S25FL008A,
9327 .total_size = 1024,
9328 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009329 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009330 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009331 .probe = probe_spi_rdid,
9332 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009333 .block_erasers =
9334 {
9335 {
9336 .eraseblocks = { {64 * 1024, 16} },
9337 .block_erase = spi_block_erase_d8,
9338 }, {
9339 .eraseblocks = { {1024 * 1024, 1} },
9340 .block_erase = spi_block_erase_c7,
9341 }
9342 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009343 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009344 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009345 .write = spi_chip_write_256,
9346 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009347 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009348 },
9349
9350 {
9351 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009352 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009353 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009354 .manufacture_id = SPANSION_ID,
9355 .model_id = SPANSION_S25FL016A,
9356 .total_size = 2048,
9357 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009358 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009359 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009360 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009361 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009362 .block_erasers =
9363 {
9364 {
9365 .eraseblocks = { {64 * 1024, 32} },
9366 .block_erase = spi_block_erase_d8,
9367 }, {
9368 .eraseblocks = { {2 * 1024 * 1024, 1} },
9369 .block_erase = spi_block_erase_c7,
9370 }
9371 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009372 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009373 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009374 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009375 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009376 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009377 },
9378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009379 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009380 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009381 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009382 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009383 .manufacture_id = SPANSION_ID,
9384 .model_id = SPANSION_S25FL032A,
9385 .total_size = 4096,
9386 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009387 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009388 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009389 .probe = probe_spi_rdid,
9390 .probe_timing = TIMING_ZERO,
9391 .block_erasers =
9392 {
9393 {
9394 .eraseblocks = { {64 * 1024, 64} },
9395 .block_erase = spi_block_erase_d8,
9396 }, {
9397 .eraseblocks = { {4 * 1024 * 1024, 1} },
9398 .block_erase = spi_block_erase_c7,
9399 }
9400 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009401 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009402 .unlock = spi_disable_blockprotect,
9403 .write = spi_chip_write_256,
9404 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009405 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009406 },
9407
9408 {
9409 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009410 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009411 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009412 .manufacture_id = SPANSION_ID,
9413 .model_id = SPANSION_S25FL064A,
9414 .total_size = 8192,
9415 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009416 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009417 .tested = TEST_OK_PREW,
9418 .probe = probe_spi_rdid,
9419 .probe_timing = TIMING_ZERO,
9420 .block_erasers =
9421 {
9422 {
9423 .eraseblocks = { {64 * 1024, 128} },
9424 .block_erase = spi_block_erase_d8,
9425 }, {
9426 .eraseblocks = { {8 * 1024 * 1024, 1} },
9427 .block_erase = spi_block_erase_c7,
9428 }
9429 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009430 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009431 .unlock = spi_disable_blockprotect,
9432 .write = spi_chip_write_256,
9433 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009434 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009435 },
9436
9437 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009438 .vendor = "Spansion",
9439 .name = "S25FL204K",
9440 .bustype = BUS_SPI,
9441 .manufacture_id = SPANSION_ID,
9442 .model_id = SPANSION_S25FL204,
9443 .total_size = 512,
9444 .page_size = 256,
9445 .feature_bits = FEATURE_WRSR_WREN,
9446 .tested = TEST_UNTESTED,
9447 .probe = probe_spi_rdid,
9448 .probe_timing = TIMING_ZERO,
9449 .block_erasers = {
9450 {
9451 .eraseblocks = { {4 * 1024, 128} },
9452 .block_erase = spi_block_erase_20,
9453 }, {
9454 .eraseblocks = { {64 * 1024, 8} },
9455 .block_erase = spi_block_erase_d8,
9456 }, {
9457 .eraseblocks = { { 512 * 1024, 1} },
9458 .block_erase = spi_block_erase_60,
9459 }, {
9460 .eraseblocks = { { 512 * 1024, 1} },
9461 .block_erase = spi_block_erase_c7,
9462 }
9463 },
9464 .printlock = spi_prettyprint_status_register_default_bp3,
9465 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9466 .write = spi_chip_write_256,
9467 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9468 .voltage = {2700, 3600},
9469 },
9470
9471 {
9472 .vendor = "Spansion",
9473 .name = "S25FL208K",
9474 .bustype = BUS_SPI,
9475 .manufacture_id = SPANSION_ID,
9476 .model_id = SPANSION_S25FL208,
9477 .total_size = 1024,
9478 .page_size = 256,
9479 .feature_bits = FEATURE_WRSR_WREN,
9480 .tested = TEST_UNTESTED,
9481 .probe = probe_spi_rdid,
9482 .probe_timing = TIMING_ZERO,
9483 .block_erasers = {
9484 {
9485 .eraseblocks = { {4 * 1024, 256} },
9486 .block_erase = spi_block_erase_20,
9487 }, {
9488 .eraseblocks = { {64 * 1024, 16} },
9489 .block_erase = spi_block_erase_d8,
9490 }, {
9491 .eraseblocks = { { 1024 * 1024, 1} },
9492 .block_erase = spi_block_erase_60,
9493 }, {
9494 .eraseblocks = { { 1024 * 1024, 1} },
9495 .block_erase = spi_block_erase_c7,
9496 }
9497 },
9498 .printlock = spi_prettyprint_status_register_default_bp3,
9499 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9500 .write = spi_chip_write_256,
9501 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9502 .voltage = {2700, 3600},
9503 },
9504
9505 {
9506 .vendor = "Spansion",
9507 .name = "S25FL116K/S25FL216K",
9508 .bustype = BUS_SPI,
9509 .manufacture_id = SPANSION_ID,
9510 .model_id = SPANSION_S25FL216,
9511 .total_size = 2048,
9512 .page_size = 256,
9513 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9514 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9515 .tested = TEST_UNTESTED,
9516 .probe = probe_spi_rdid,
9517 .probe_timing = TIMING_ZERO,
9518 .block_erasers = {
9519 {
9520 .eraseblocks = { {4 * 1024, 512} },
9521 .block_erase = spi_block_erase_20,
9522 }, {
9523 .eraseblocks = { {64 * 1024, 32} },
9524 .block_erase = spi_block_erase_d8,
9525 }, {
9526 .eraseblocks = { { 2048 * 1024, 1} },
9527 .block_erase = spi_block_erase_60,
9528 }, {
9529 .eraseblocks = { { 2048 * 1024, 1} },
9530 .block_erase = spi_block_erase_c7,
9531 }
9532 },
9533 .printlock = spi_prettyprint_status_register_default_bp3,
9534 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9535 .write = spi_chip_write_256,
9536 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9537 .voltage = {2700, 3600},
9538 },
9539
9540 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009541 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009542 .name = "S25FL132K",
9543 .bustype = BUS_SPI,
9544 .manufacture_id = SPANSION_ID,
9545 .model_id = SPANSION_S25FL132K,
9546 .total_size = 4096,
9547 .page_size = 256,
9548 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9549 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9550 .tested = TEST_UNTESTED,
9551 .probe = probe_spi_rdid,
9552 .probe_timing = TIMING_ZERO,
9553 .block_erasers = {
9554 {
9555 .eraseblocks = { {4 * 1024, 1024} },
9556 .block_erase = spi_block_erase_20,
9557 }, {
9558 .eraseblocks = { {64 * 1024, 64} },
9559 .block_erase = spi_block_erase_d8,
9560 }, {
9561 .eraseblocks = { { 4096 * 1024, 1} },
9562 .block_erase = spi_block_erase_60,
9563 }, {
9564 .eraseblocks = { { 4096 * 1024, 1} },
9565 .block_erase = spi_block_erase_c7,
9566 }
9567 },
9568 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9569 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9570 .write = spi_chip_write_256,
9571 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9572 .voltage = {2700, 3600},
9573 },
9574
9575 {
9576 .vendor = "Spansion",
9577 .name = "S25FL164K",
9578 .bustype = BUS_SPI,
9579 .manufacture_id = SPANSION_ID,
9580 .model_id = SPANSION_S25FL164K,
9581 .total_size = 8192,
9582 .page_size = 256,
9583 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9584 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9585 .tested = TEST_OK_PREW,
9586 .probe = probe_spi_rdid,
9587 .probe_timing = TIMING_ZERO,
9588 .block_erasers = {
9589 {
9590 .eraseblocks = { {4 * 1024, 2048} },
9591 .block_erase = spi_block_erase_20,
9592 }, {
9593 .eraseblocks = { {64 * 1024, 128} },
9594 .block_erase = spi_block_erase_d8,
9595 }, {
9596 .eraseblocks = { { 8192 * 1024, 1} },
9597 .block_erase = spi_block_erase_60,
9598 }, {
9599 .eraseblocks = { { 8192 * 1024, 1} },
9600 .block_erase = spi_block_erase_c7,
9601 }
9602 },
9603 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9604 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9605 .write = spi_chip_write_256,
9606 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9607 .voltage = {2700, 3600},
9608 },
9609
9610 {
9611 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009612 .name = "S25FL128S......0", /* uniform 256kB sectors */
9613 .bustype = BUS_SPI,
9614 .manufacture_id = SPANSION_ID,
9615 .model_id = SPANSION_S25FL128,
9616 .total_size = 16384,
9617 .page_size = 256,
9618 /* supports 4B addressing */
9619 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9620 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9621 .tested = TEST_UNTESTED,
9622 .probe = probe_spi_rdid,
9623 .probe_timing = TIMING_ZERO,
9624 .block_erasers = {
9625 {
9626 .eraseblocks = { {4 * 1024, 4096} },
9627 .block_erase = spi_block_erase_20,
9628 }, {
9629 .eraseblocks = { {256 * 1024, 64} },
9630 .block_erase = spi_block_erase_d8,
9631 }, {
9632 .eraseblocks = { { 16384 * 1024, 1} },
9633 .block_erase = spi_block_erase_60,
9634 }, {
9635 .eraseblocks = { { 16384 * 1024, 1} },
9636 .block_erase = spi_block_erase_c7,
9637 }
9638 },
9639 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9640 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9641 .write = spi_chip_write_256, /* Multi I/O supported */
9642 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9643 .voltage = {2700, 3600},
9644 },
9645
9646 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009647 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009648 .name = "SST25LF020A",
9649 .bustype = BUS_SPI,
9650 .manufacture_id = SST_ID,
9651 .model_id = SST_SST25VF020_REMS,
9652 .total_size = 256,
9653 .page_size = 256,
9654 .feature_bits = FEATURE_WRSR_EWSR,
9655 .tested = TEST_OK_PREW,
9656 .probe = probe_spi_rems,
9657 .probe_timing = TIMING_ZERO,
9658 .block_erasers =
9659 {
9660 {
9661 .eraseblocks = { {4 * 1024, 64} },
9662 .block_erase = spi_block_erase_20,
9663 }, {
9664 .eraseblocks = { {32 * 1024, 8} },
9665 .block_erase = spi_block_erase_52,
9666 }, {
9667 .eraseblocks = { {256 * 1024, 1} },
9668 .block_erase = spi_block_erase_60,
9669 },
9670 },
9671 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9672 .unlock = spi_disable_blockprotect,
9673 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9674 .read = spi_chip_read, /* Fast read (0x0B) supported */
9675 .voltage = {2700, 3600},
9676 },
9677
9678 {
9679 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009680 .name = "SST25LF040A",
9681 .bustype = BUS_SPI,
9682 .manufacture_id = SST_ID,
9683 .model_id = SST_SST25VF040_REMS,
9684 .total_size = 512,
9685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009686 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009687 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009688 .probe = probe_spi_res2,
9689 .probe_timing = TIMING_ZERO,
9690 .block_erasers =
9691 {
9692 {
9693 .eraseblocks = { {4 * 1024, 128} },
9694 .block_erase = spi_block_erase_20,
9695 }, {
9696 .eraseblocks = { {32 * 1024, 16} },
9697 .block_erase = spi_block_erase_52,
9698 }, {
9699 .eraseblocks = { {512 * 1024, 1} },
9700 .block_erase = spi_block_erase_60,
9701 },
9702 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009703 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009704 .unlock = spi_disable_blockprotect,
9705 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9706 .read = spi_chip_read,
9707 .voltage = {3000, 3600},
9708 },
9709
9710 {
9711 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009712 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009713 .bustype = BUS_SPI,
9714 .manufacture_id = SST_ID,
9715 .model_id = SST_SST25VF080_REMS,
9716 .total_size = 1024,
9717 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009718 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009719 .tested = TEST_UNTESTED,
9720 .probe = probe_spi_res2,
9721 .probe_timing = TIMING_ZERO,
9722 .block_erasers =
9723 {
9724 {
9725 .eraseblocks = { {4 * 1024, 256} },
9726 .block_erase = spi_block_erase_20,
9727 }, {
9728 .eraseblocks = { {32 * 1024, 32} },
9729 .block_erase = spi_block_erase_52,
9730 }, {
9731 .eraseblocks = { {1024 * 1024, 1} },
9732 .block_erase = spi_block_erase_60,
9733 },
9734 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009735 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009736 .unlock = spi_disable_blockprotect,
9737 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9738 .read = spi_chip_read,
9739 .voltage = {3000, 3600},
9740 },
9741
9742 {
9743 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +00009744 .name = "SST25VF512A",
9745 .bustype = BUS_SPI,
9746 .manufacture_id = SST_ID,
9747 .model_id = SST_SST25VF512A_REMS,
9748 .total_size = 64,
9749 .page_size = 256,
9750 .feature_bits = FEATURE_WRSR_EWSR,
9751 .tested = TEST_OK_PREW,
9752 .probe = probe_spi_rems,
9753 .probe_timing = TIMING_ZERO,
9754 .block_erasers =
9755 {
9756 {
9757 .eraseblocks = { {4 * 1024, 16} },
9758 .block_erase = spi_block_erase_20,
9759 }, {
9760 .eraseblocks = { {32 * 1024, 2} },
9761 .block_erase = spi_block_erase_52,
9762 }, {
9763 .eraseblocks = { {32 * 1024, 2} },
9764 .block_erase = spi_block_erase_d8,
9765 }, {
9766 .eraseblocks = { {64 * 1024, 1} },
9767 .block_erase = spi_block_erase_60,
9768 }, {
9769 .eraseblocks = { {64 * 1024, 1} },
9770 .block_erase = spi_block_erase_c7,
9771 },
9772 },
9773 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9774 .unlock = spi_disable_blockprotect,
9775 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9776 .read = spi_chip_read, /* Fast read (0x0B) supported */
9777 .voltage = {2700, 3600},
9778 },
9779
9780 {
9781 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009782 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009783 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009784 .manufacture_id = SST_ID,
9785 .model_id = SST_SST25VF010_REMS,
9786 .total_size = 128,
9787 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009788 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009789 .tested = TEST_OK_PREW,
9790 .probe = probe_spi_rems,
9791 .probe_timing = TIMING_ZERO,
9792 .block_erasers =
9793 {
9794 {
9795 .eraseblocks = { {4 * 1024, 32} },
9796 .block_erase = spi_block_erase_20,
9797 }, {
9798 .eraseblocks = { {32 * 1024, 4} },
9799 .block_erase = spi_block_erase_52,
9800 }, {
Cory Henderson370f5822013-10-19 23:09:16 +00009801 .eraseblocks = { {32 * 1024, 4} },
9802 .block_erase = spi_block_erase_d8,
9803 }, {
Mark Marshall90021f22010-12-03 14:48:11 +00009804 .eraseblocks = { {128 * 1024, 1} },
9805 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +00009806 }, {
9807 .eraseblocks = { {128 * 1024, 1} },
9808 .block_erase = spi_block_erase_c7,
9809 },
9810 },
9811 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9812 .unlock = spi_disable_blockprotect,
9813 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9814 .read = spi_chip_read, /* Fast read (0x0B) supported */
9815 .voltage = {2700, 3600},
9816 },
9817
9818 {
9819 .vendor = "SST",
9820 .name = "SST25VF020",
9821 .bustype = BUS_SPI,
9822 .manufacture_id = SST_ID,
9823 .model_id = SST_SST25VF020_REMS,
9824 .total_size = 256,
9825 .page_size = 256,
9826 .feature_bits = FEATURE_WRSR_EWSR,
9827 .tested = TEST_UNTESTED,
9828 .probe = probe_spi_rems,
9829 .probe_timing = TIMING_ZERO,
9830 .block_erasers =
9831 {
9832 {
9833 .eraseblocks = { {4 * 1024, 64} },
9834 .block_erase = spi_block_erase_20,
9835 }, {
9836 .eraseblocks = { {32 * 1024, 8} },
9837 .block_erase = spi_block_erase_52,
9838 }, {
9839 .eraseblocks = { {256 * 1024, 1} },
9840 .block_erase = spi_block_erase_60,
9841 },
9842 },
9843 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9844 .unlock = spi_disable_blockprotect,
9845 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9846 .read = spi_chip_read, /* only */
9847 .voltage = {2700, 3600},
9848 },
9849
9850 {
9851 .vendor = "SST",
9852 .name = "SST25VF020B",
9853 .bustype = BUS_SPI,
9854 .manufacture_id = SST_ID,
9855 .model_id = SST_SST25VF020B,
9856 .total_size = 256,
9857 .page_size = 256,
9858 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009859 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +00009860 .probe = probe_spi_rdid,
9861 .probe_timing = TIMING_ZERO,
9862 .block_erasers =
9863 {
9864 {
9865 .eraseblocks = { {4 * 1024, 64} },
9866 .block_erase = spi_block_erase_20,
9867 }, {
9868 .eraseblocks = { {32 * 1024, 8} },
9869 .block_erase = spi_block_erase_52,
9870 }, {
9871 .eraseblocks = { {64 * 1024, 4} },
9872 .block_erase = spi_block_erase_d8,
9873 }, {
9874 .eraseblocks = { {256 * 1024, 1} },
9875 .block_erase = spi_block_erase_60,
9876 }, {
9877 .eraseblocks = { {256 * 1024, 1} },
9878 .block_erase = spi_block_erase_c7,
9879 },
9880 },
9881 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
9882 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
9883 .write = spi_aai_write, /* AAI supported (0xAD) */
9884 .read = spi_chip_read, /* Fast read (0x0B) supported */
9885 .voltage = {2700, 3600},
9886 },
9887
9888 {
9889 .vendor = "SST",
9890 .name = "SST25VF040",
9891 .bustype = BUS_SPI,
9892 .manufacture_id = SST_ID,
9893 .model_id = SST_SST25VF040_REMS,
9894 .total_size = 512,
9895 .page_size = 256,
9896 .feature_bits = FEATURE_WRSR_EWSR,
9897 .tested = TEST_OK_PR,
9898 .probe = probe_spi_rems,
9899 .probe_timing = TIMING_ZERO,
9900 .block_erasers =
9901 {
9902 {
9903 .eraseblocks = { {4 * 1024, 128} },
9904 .block_erase = spi_block_erase_20,
9905 }, {
9906 .eraseblocks = { {32 * 1024, 16} },
9907 .block_erase = spi_block_erase_52,
9908 }, {
9909 .eraseblocks = { {512 * 1024, 1} },
9910 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +00009911 },
9912 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009913 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009914 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +00009915 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9916 .read = spi_chip_read,
9917 .voltage = {2700, 3600},
9918 },
9919
9920 {
9921 .vendor = "SST",
9922 .name = "SST25VF040B",
9923 .bustype = BUS_SPI,
9924 .manufacture_id = SST_ID,
9925 .model_id = SST_SST25VF040B,
9926 .total_size = 512,
9927 .page_size = 256,
9928 .feature_bits = FEATURE_WRSR_EWSR,
9929 .tested = TEST_OK_PREW,
9930 .probe = probe_spi_rdid,
9931 .probe_timing = TIMING_ZERO,
9932 .block_erasers =
9933 {
9934 {
9935 .eraseblocks = { {4 * 1024, 128} },
9936 .block_erase = spi_block_erase_20,
9937 }, {
9938 .eraseblocks = { {32 * 1024, 16} },
9939 .block_erase = spi_block_erase_52,
9940 }, {
9941 .eraseblocks = { {64 * 1024, 8} },
9942 .block_erase = spi_block_erase_d8,
9943 }, {
9944 .eraseblocks = { {512 * 1024, 1} },
9945 .block_erase = spi_block_erase_60,
9946 }, {
9947 .eraseblocks = { {512 * 1024, 1} },
9948 .block_erase = spi_block_erase_c7,
9949 },
9950 },
9951 .printlock = spi_prettyprint_status_register_sst25vf040b,
9952 .unlock = spi_disable_blockprotect,
9953 .write = spi_aai_write, /* AAI supported (0xAD) */
9954 .read = spi_chip_read, /* Fast read (0x0B) supported */
9955 .voltage = {2700, 3600},
9956 },
9957
9958 {
9959 .vendor = "SST",
9960 .name = "SST25VF040B.REMS",
9961 .bustype = BUS_SPI,
9962 .manufacture_id = SST_ID,
9963 .model_id = SST_SST25VF040B_REMS,
9964 .total_size = 512,
9965 .page_size = 256,
9966 .feature_bits = FEATURE_WRSR_EWSR,
9967 .tested = TEST_OK_PREW,
9968 .probe = probe_spi_rems,
9969 .probe_timing = TIMING_ZERO,
9970 .block_erasers =
9971 {
9972 {
9973 .eraseblocks = { {4 * 1024, 128} },
9974 .block_erase = spi_block_erase_20,
9975 }, {
9976 .eraseblocks = { {32 * 1024, 16} },
9977 .block_erase = spi_block_erase_52,
9978 }, {
9979 .eraseblocks = { {64 * 1024, 8} },
9980 .block_erase = spi_block_erase_d8,
9981 }, {
9982 .eraseblocks = { {512 * 1024, 1} },
9983 .block_erase = spi_block_erase_60,
9984 }, {
9985 .eraseblocks = { {512 * 1024, 1} },
9986 .block_erase = spi_block_erase_c7,
9987 },
9988 },
9989 .printlock = spi_prettyprint_status_register_sst25vf040b,
9990 .unlock = spi_disable_blockprotect,
9991 .write = spi_aai_write,
9992 .read = spi_chip_read,
9993 .voltage = {2700, 3600},
9994 },
9995
9996 {
9997 .vendor = "SST",
9998 .name = "SST25VF080B",
9999 .bustype = BUS_SPI,
10000 .manufacture_id = SST_ID,
10001 .model_id = SST_SST25VF080B,
10002 .total_size = 1024,
10003 .page_size = 256,
10004 .feature_bits = FEATURE_WRSR_EWSR,
10005 .tested = TEST_OK_PREW,
10006 .probe = probe_spi_rdid,
10007 .probe_timing = TIMING_ZERO,
10008 .block_erasers =
10009 {
10010 {
10011 .eraseblocks = { {4 * 1024, 256} },
10012 .block_erase = spi_block_erase_20,
10013 }, {
10014 .eraseblocks = { {32 * 1024, 32} },
10015 .block_erase = spi_block_erase_52,
10016 }, {
10017 .eraseblocks = { {64 * 1024, 16} },
10018 .block_erase = spi_block_erase_d8,
10019 }, {
10020 .eraseblocks = { {1024 * 1024, 1} },
10021 .block_erase = spi_block_erase_60,
10022 }, {
10023 .eraseblocks = { {1024 * 1024, 1} },
10024 .block_erase = spi_block_erase_c7,
10025 },
10026 },
10027 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10028 .unlock = spi_disable_blockprotect,
10029 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010030 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010031 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010032 },
10033
10034 {
10035 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010036 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010037 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010038 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010039 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010040 .total_size = 2048,
10041 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010042 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010043 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010044 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010045 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010046 .block_erasers =
10047 {
10048 {
10049 .eraseblocks = { {4 * 1024, 512} },
10050 .block_erase = spi_block_erase_20,
10051 }, {
10052 .eraseblocks = { {32 * 1024, 64} },
10053 .block_erase = spi_block_erase_52,
10054 }, {
10055 .eraseblocks = { {64 * 1024, 32} },
10056 .block_erase = spi_block_erase_d8,
10057 }, {
10058 .eraseblocks = { {2 * 1024 * 1024, 1} },
10059 .block_erase = spi_block_erase_60,
10060 }, {
10061 .eraseblocks = { {2 * 1024 * 1024, 1} },
10062 .block_erase = spi_block_erase_c7,
10063 },
10064 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010065 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010066 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010067 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010068 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010069 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010070 },
10071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010072 {
10073 .vendor = "SST",
10074 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010075 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010076 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010077 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010078 .total_size = 4096,
10079 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010080 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010081 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010082 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010083 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010084 .block_erasers =
10085 {
10086 {
10087 .eraseblocks = { {4 * 1024, 1024} },
10088 .block_erase = spi_block_erase_20,
10089 }, {
10090 .eraseblocks = { {32 * 1024, 128} },
10091 .block_erase = spi_block_erase_52,
10092 }, {
10093 .eraseblocks = { {64 * 1024, 64} },
10094 .block_erase = spi_block_erase_d8,
10095 }, {
10096 .eraseblocks = { {4 * 1024 * 1024, 1} },
10097 .block_erase = spi_block_erase_60,
10098 }, {
10099 .eraseblocks = { {4 * 1024 * 1024, 1} },
10100 .block_erase = spi_block_erase_c7,
10101 },
10102 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010103 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010104 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010105 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010106 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010107 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010108 },
10109
10110 {
10111 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010112 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010113 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010114 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010115 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010116 .total_size = 8192,
10117 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010118 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010119 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010120 .probe = probe_spi_rdid,
10121 .probe_timing = TIMING_ZERO,
10122 .block_erasers =
10123 {
10124 {
10125 .eraseblocks = { {4 * 1024, 2048} },
10126 .block_erase = spi_block_erase_20,
10127 }, {
10128 .eraseblocks = { {32 * 1024, 256} },
10129 .block_erase = spi_block_erase_52,
10130 }, {
10131 .eraseblocks = { {64 * 1024, 128} },
10132 .block_erase = spi_block_erase_d8,
10133 }, {
10134 .eraseblocks = { {8 * 1024 * 1024, 1} },
10135 .block_erase = spi_block_erase_60,
10136 }, {
10137 .eraseblocks = { {8 * 1024 * 1024, 1} },
10138 .block_erase = spi_block_erase_c7,
10139 },
10140 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010141 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010142 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010143 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010144 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010145 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010146 },
10147
10148 {
10149 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010150 .name = "SST25WF512",
10151 .bustype = BUS_SPI,
10152 .manufacture_id = SST_ID,
10153 .model_id = SST_SST25WF512,
10154 .total_size = 64,
10155 .page_size = 256,
10156 .feature_bits = FEATURE_WRSR_EITHER,
10157 .tested = TEST_UNTESTED,
10158 .probe = probe_spi_rdid,
10159 .probe_timing = TIMING_ZERO,
10160 .block_erasers =
10161 {
10162 {
10163 .eraseblocks = { {4 * 1024, 16} },
10164 .block_erase = spi_block_erase_20,
10165 }, {
10166 .eraseblocks = { {32 * 1024, 2} },
10167 .block_erase = spi_block_erase_52,
10168 }, {
10169 .eraseblocks = { {1024 * 64, 1} },
10170 .block_erase = spi_block_erase_60,
10171 }, {
10172 .eraseblocks = { {1024 * 64, 1} },
10173 .block_erase = spi_block_erase_c7,
10174 },
10175 },
Jason Harper43ddef02014-05-04 00:55:24 +000010176 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10177 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010178 .write = spi_aai_write,
10179 .read = spi_chip_read, /* Fast read (0x0B) supported */
10180 .voltage = {1650, 1950},
10181 },
10182
10183 {
10184 .vendor = "SST",
10185 .name = "SST25WF010",
10186 .bustype = BUS_SPI,
10187 .manufacture_id = SST_ID,
10188 .model_id = SST_SST25WF010,
10189 .total_size = 128,
10190 .page_size = 256,
10191 .feature_bits = FEATURE_WRSR_EITHER,
10192 .tested = TEST_UNTESTED,
10193 .probe = probe_spi_rdid,
10194 .probe_timing = TIMING_ZERO,
10195 .block_erasers =
10196 {
10197 {
10198 .eraseblocks = { {4 * 1024, 32} },
10199 .block_erase = spi_block_erase_20,
10200 }, {
10201 .eraseblocks = { {32 * 1024, 4} },
10202 .block_erase = spi_block_erase_52,
10203 }, {
10204 .eraseblocks = { {1024 * 128, 1} },
10205 .block_erase = spi_block_erase_60,
10206 }, {
10207 .eraseblocks = { {1024 * 128, 1} },
10208 .block_erase = spi_block_erase_c7,
10209 },
10210 },
Jason Harper43ddef02014-05-04 00:55:24 +000010211 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10212 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010213 .write = spi_aai_write,
10214 .read = spi_chip_read, /* Fast read (0x0B) supported */
10215 .voltage = {1650, 1950},
10216 },
10217
10218 {
10219 .vendor = "SST",
10220 .name = "SST25WF020",
10221 .bustype = BUS_SPI,
10222 .manufacture_id = SST_ID,
10223 .model_id = SST_SST25WF020,
10224 .total_size = 256,
10225 .page_size = 256,
10226 .feature_bits = FEATURE_WRSR_EITHER,
10227 .tested = TEST_UNTESTED,
10228 .probe = probe_spi_rdid,
10229 .probe_timing = TIMING_ZERO,
10230 .block_erasers =
10231 {
10232 {
10233 .eraseblocks = { {4 * 1024, 64} },
10234 .block_erase = spi_block_erase_20,
10235 }, {
10236 .eraseblocks = { {32 * 1024, 8} },
10237 .block_erase = spi_block_erase_52,
10238 }, {
10239 .eraseblocks = { {64 * 1024, 4} },
10240 .block_erase = spi_block_erase_d8,
10241 }, {
10242 .eraseblocks = { {1024 * 256, 1} },
10243 .block_erase = spi_block_erase_60,
10244 }, {
10245 .eraseblocks = { {1024 * 256, 1} },
10246 .block_erase = spi_block_erase_c7,
10247 },
10248 },
Jason Harper43ddef02014-05-04 00:55:24 +000010249 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10250 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010251 .write = spi_aai_write,
10252 .read = spi_chip_read, /* Fast read (0x0B) supported */
10253 .voltage = {1650, 1950},
10254 },
10255
10256 {
10257 .vendor = "SST",
10258 .name = "SST25WF040",
10259 .bustype = BUS_SPI,
10260 .manufacture_id = SST_ID,
10261 .model_id = SST_SST25WF040,
10262 .total_size = 512,
10263 .page_size = 256,
10264 .feature_bits = FEATURE_WRSR_EITHER,
10265 .tested = TEST_UNTESTED,
10266 .probe = probe_spi_rdid,
10267 .probe_timing = TIMING_ZERO,
10268 .block_erasers =
10269 {
10270 {
10271 .eraseblocks = { {4 * 1024, 128} },
10272 .block_erase = spi_block_erase_20,
10273 }, {
10274 .eraseblocks = { {32 * 1024, 16} },
10275 .block_erase = spi_block_erase_52,
10276 }, {
10277 .eraseblocks = { {64 * 1024, 8} },
10278 .block_erase = spi_block_erase_d8,
10279 }, {
10280 .eraseblocks = { {1024 * 512, 1} },
10281 .block_erase = spi_block_erase_60,
10282 }, {
10283 .eraseblocks = { {1024 * 512, 1} },
10284 .block_erase = spi_block_erase_c7,
10285 },
10286 },
Jason Harper43ddef02014-05-04 00:55:24 +000010287 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10288 .unlock = spi_disable_blockprotect_bp2_srwd,
10289 .write = spi_aai_write,
10290 .read = spi_chip_read, /* Fast read (0x0B) supported */
10291 .voltage = {1650, 1950},
10292 },
10293
10294 {
10295 .vendor = "SST",
10296 .name = "SST25WF080",
10297 .bustype = BUS_SPI,
10298 .manufacture_id = SST_ID,
10299 .model_id = SST_SST25WF080,
10300 .total_size = 1024,
10301 .page_size = 256,
10302 .feature_bits = FEATURE_WRSR_EITHER,
10303 .tested = TEST_OK_PREW,
10304 .probe = probe_spi_rdid,
10305 .probe_timing = TIMING_ZERO,
10306 .block_erasers =
10307 {
10308 {
10309 .eraseblocks = { {4 * 1024, 256} },
10310 .block_erase = spi_block_erase_20,
10311 }, {
10312 .eraseblocks = { {32 * 1024, 32} },
10313 .block_erase = spi_block_erase_52,
10314 }, {
10315 .eraseblocks = { {64 * 1024, 16} },
10316 .block_erase = spi_block_erase_d8,
10317 }, {
10318 .eraseblocks = { {1024 * 1024, 1} },
10319 .block_erase = spi_block_erase_60,
10320 }, {
10321 .eraseblocks = { {1024 * 1024, 1} },
10322 .block_erase = spi_block_erase_c7,
10323 },
10324 },
10325 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10326 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010327 .write = spi_aai_write,
10328 .read = spi_chip_read, /* Fast read (0x0B) supported */
10329 .voltage = {1650, 1950},
10330 },
10331
10332 {
10333 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010334 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010335 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010336 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010337 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010338 .total_size = 512,
10339 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010340 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010341 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010342 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010343 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010344 .block_erasers =
10345 {
10346 {
10347 .eraseblocks = { {128, 4096} },
10348 .block_erase = erase_sector_28sf040,
10349 }, {
10350 .eraseblocks = { {512 * 1024, 1} },
10351 .block_erase = erase_chip_28sf040,
10352 }
10353 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010354 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010355 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010356 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010357 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010358 },
10359
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010360 {
10361 .vendor = "SST",
10362 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010363 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010364 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010365 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010366 .total_size = 128,
10367 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010368 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010369 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010370 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010371 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010372 .block_erasers =
10373 {
10374 {
10375 .eraseblocks = { {128 * 1024, 1} },
10376 .block_erase = erase_chip_block_jedec,
10377 }
10378 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010379 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010380 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010381 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010382 },
10383
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010384 {
10385 .vendor = "SST",
10386 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010387 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010388 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010389 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010390 .total_size = 128,
10391 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010392 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010393 .tested = TEST_UNTESTED,
10394 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010395 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010396 .block_erasers =
10397 {
10398 {
10399 .eraseblocks = { {128 * 1024, 1} },
10400 .block_erase = erase_chip_block_jedec,
10401 }
10402 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010403 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010404 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010405 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010406 },
10407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010408 {
10409 .vendor = "SST",
10410 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010411 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010412 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010413 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010414 .total_size = 256,
10415 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010416 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010417 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010418 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010419 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010420 .block_erasers =
10421 {
10422 {
10423 .eraseblocks = { {256 * 1024, 1} },
10424 .block_erase = erase_chip_block_jedec,
10425 }
10426 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010427 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010428 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010429 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010430 },
10431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010432 {
10433 .vendor = "SST",
10434 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010435 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010436 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010437 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010438 .total_size = 256,
10439 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010440 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010441 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010442 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010443 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010444 .block_erasers =
10445 {
10446 {
10447 .eraseblocks = { {256 * 1024, 1} },
10448 .block_erase = erase_chip_block_jedec,
10449 }
10450 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010451 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010453 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010454 },
10455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010456 {
10457 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010458 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010459 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010460 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010461 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010462 .total_size = 64,
10463 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010464 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010465 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010466 .probe = probe_jedec,
10467 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010468 .block_erasers =
10469 {
10470 {
10471 .eraseblocks = { {4 * 1024, 16} },
10472 .block_erase = erase_sector_jedec,
10473 }, {
10474 .eraseblocks = { {64 * 1024, 1} },
10475 .block_erase = erase_chip_block_jedec,
10476 }
10477 },
Sean Nelson35727f72010-01-28 23:55:12 +000010478 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010480 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010481 },
10482
10483 {
10484 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010485 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010486 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010487 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010488 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010489 .total_size = 128,
10490 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010491 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010492 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010493 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010494 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010495 .block_erasers =
10496 {
10497 {
10498 .eraseblocks = { {4 * 1024, 32} },
10499 .block_erase = erase_sector_jedec,
10500 }, {
10501 .eraseblocks = { {128 * 1024, 1} },
10502 .block_erase = erase_chip_block_jedec,
10503 }
10504 },
Sean Nelson35727f72010-01-28 23:55:12 +000010505 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010506 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010507 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010508 },
10509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010510 {
10511 .vendor = "SST",
10512 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010513 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010514 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010515 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010516 .total_size = 256,
10517 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010518 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010519 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010520 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010521 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010522 .block_erasers =
10523 {
10524 {
10525 .eraseblocks = { {4 * 1024, 64} },
10526 .block_erase = erase_sector_jedec,
10527 }, {
10528 .eraseblocks = { {256 * 1024, 1} },
10529 .block_erase = erase_chip_block_jedec,
10530 }
10531 },
Sean Nelson35727f72010-01-28 23:55:12 +000010532 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010533 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010534 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010535 },
10536
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010537 {
10538 .vendor = "SST",
10539 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010540 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010541 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010542 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010543 .total_size = 512,
10544 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010545 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010546 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010547 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010548 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010549 .block_erasers =
10550 {
10551 {
10552 .eraseblocks = { {4 * 1024, 128} },
10553 .block_erase = erase_sector_jedec,
10554 }, {
10555 .eraseblocks = { {512 * 1024, 1} },
10556 .block_erase = erase_chip_block_jedec,
10557 }
10558 },
Sean Nelson35727f72010-01-28 23:55:12 +000010559 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010560 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010561 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010562 },
10563
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010564 {
10565 .vendor = "SST",
10566 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010567 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010568 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010569 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010570 .total_size = 64,
10571 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010572 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010573 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010574 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010575 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010576 .block_erasers =
10577 {
10578 {
10579 .eraseblocks = { {4 * 1024, 16} },
10580 .block_erase = erase_sector_jedec,
10581 }, {
10582 .eraseblocks = { {64 * 1024, 1} },
10583 .block_erase = erase_chip_block_jedec,
10584 }
10585 },
Sean Nelson35727f72010-01-28 23:55:12 +000010586 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010587 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010589 },
10590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010591 {
10592 .vendor = "SST",
10593 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010594 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010595 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010596 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010597 .total_size = 128,
10598 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010599 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010600 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010601 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010602 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010603 .block_erasers =
10604 {
10605 {
10606 .eraseblocks = { {4 * 1024, 32} },
10607 .block_erase = erase_sector_jedec,
10608 }, {
10609 .eraseblocks = { {128 * 1024, 1} },
10610 .block_erase = erase_chip_block_jedec,
10611 }
10612 },
Sean Nelson35727f72010-01-28 23:55:12 +000010613 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010614 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010615 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010616 },
10617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010618 {
10619 .vendor = "SST",
10620 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010621 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010622 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010623 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010624 .total_size = 256,
10625 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010626 .feature_bits = FEATURE_EITHER_RESET,
10627 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010628 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010629 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010630 .block_erasers =
10631 {
10632 {
10633 .eraseblocks = { {4 * 1024, 64} },
10634 .block_erase = erase_sector_jedec,
10635 }, {
10636 .eraseblocks = { {256 * 1024, 1} },
10637 .block_erase = erase_chip_block_jedec,
10638 }
10639 },
Sean Nelson35727f72010-01-28 23:55:12 +000010640 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010641 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010642 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010643 },
10644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010645 {
10646 .vendor = "SST",
10647 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010648 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010649 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010650 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010651 .total_size = 512,
10652 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010653 .feature_bits = FEATURE_EITHER_RESET,
10654 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010655 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010656 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010657 .block_erasers =
10658 {
10659 {
10660 .eraseblocks = { {4 * 1024, 128} },
10661 .block_erase = erase_sector_jedec,
10662 }, {
10663 .eraseblocks = { {512 * 1024, 1} },
10664 .block_erase = erase_chip_block_jedec,
10665 }
10666 },
Sean Nelson35727f72010-01-28 23:55:12 +000010667 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010669 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010670 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010672 {
10673 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010674 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010675 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010676 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010677 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010678 .total_size = 1024,
10679 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010680 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010681 .tested = TEST_UNTESTED,
10682 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010683 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010684 .block_erasers =
10685 {
10686 {
10687 .eraseblocks = { {4 * 1024, 256} },
10688 .block_erase = erase_sector_jedec,
10689 }, {
10690 .eraseblocks = { {64 * 1024, 16} },
10691 .block_erase = erase_block_jedec,
10692 }, {
10693 .eraseblocks = { {1024 * 1024, 1} },
10694 .block_erase = erase_chip_block_jedec,
10695 }
10696 },
Sean Nelson35727f72010-01-28 23:55:12 +000010697 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010698 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010699 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010700 },
10701
10702 {
10703 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010704 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010705 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010706 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010707 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010708 .total_size = 256,
10709 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010710 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010711 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010712 .probe = probe_jedec,
10713 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010714 .block_erasers =
10715 {
10716 {
10717 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010718 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010719 }, {
10720 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010721 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010722 }, {
10723 .eraseblocks = { {256 * 1024, 1} },
10724 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10725 }
10726 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010727 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010728 .unlock = unlock_sst_fwhub,
10729 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010730 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010731 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010732 },
10733
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010734 {
10735 .vendor = "SST",
10736 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010737 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010738 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010739 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010740 .total_size = 384,
10741 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010742 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010743 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010744 .probe = probe_jedec,
10745 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010746 .block_erasers =
10747 {
10748 {
10749 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010750 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010751 }, {
10752 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010753 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010754 }, {
10755 .eraseblocks = { {384 * 1024, 1} },
10756 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10757 }
10758 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010759 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010760 .unlock = unlock_sst_fwhub,
10761 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010762 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010763 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010764 },
10765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010766 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010767 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10768 * and is only honored for 64k block erase, but not 4k sector erase.
10769 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010770 .vendor = "SST",
10771 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010772 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010773 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010774 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010775 .total_size = 512,
10776 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010777 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010778 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010779 .probe = probe_jedec,
10780 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010781 .block_erasers =
10782 {
10783 {
10784 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010785 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010786 }, {
10787 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010788 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010789 }, {
10790 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010791 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010792 },
10793 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010794 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010795 .unlock = unlock_sst_fwhub,
10796 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010797 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010798 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010799 },
10800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010801 {
10802 .vendor = "SST",
10803 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010804 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010805 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010806 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010807 .total_size = 512,
10808 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010809 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010810 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010811 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010812 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010813 .block_erasers =
10814 {
10815 {
10816 .eraseblocks = { {4 * 1024, 128} },
10817 .block_erase = erase_sector_49lfxxxc,
10818 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010819 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010820 {64 * 1024, 7},
10821 {32 * 1024, 1},
10822 {8 * 1024, 2},
10823 {16 * 1024, 1},
10824 },
Sean Nelson69e58112010-03-23 17:10:28 +000010825 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010826 }
10827 },
Sean Nelson69e58112010-03-23 17:10:28 +000010828 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010829 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010831 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010832 },
10833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010834 {
10835 .vendor = "SST",
10836 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010837 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010838 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010839 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010840 .total_size = 1024,
10841 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010842 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010843 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010844 .probe = probe_jedec,
10845 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010846 .block_erasers =
10847 {
10848 {
10849 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010850 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010851 }, {
10852 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010853 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010854 }, {
10855 .eraseblocks = { {1024 * 1024, 1} },
10856 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10857 }
10858 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010859 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010860 .unlock = unlock_sst_fwhub,
10861 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010862 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010863 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010864 },
10865
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010866 {
10867 .vendor = "SST",
10868 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010869 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010870 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010871 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010872 .total_size = 1024,
10873 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010874 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010875 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010876 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010877 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010878 .block_erasers =
10879 {
10880 {
10881 .eraseblocks = { {4 * 1024, 256} },
10882 .block_erase = erase_sector_49lfxxxc,
10883 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010884 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010885 {64 * 1024, 15},
10886 {32 * 1024, 1},
10887 {8 * 1024, 2},
10888 {16 * 1024, 1},
10889 },
Sean Nelson69e58112010-03-23 17:10:28 +000010890 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010891 }
10892 },
Sean Nelson69e58112010-03-23 17:10:28 +000010893 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010894 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010896 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010897 },
10898
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010899 {
10900 .vendor = "SST",
10901 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010902 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010903 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010904 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010905 .total_size = 2048,
10906 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010907 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010908 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010909 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010910 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010911 .block_erasers =
10912 {
10913 {
10914 .eraseblocks = { {4 * 1024, 512} },
10915 .block_erase = erase_sector_49lfxxxc,
10916 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010917 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010918 {64 * 1024, 31},
10919 {32 * 1024, 1},
10920 {8 * 1024, 2},
10921 {16 * 1024, 1},
10922 },
Sean Nelson69e58112010-03-23 17:10:28 +000010923 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010924 }
10925 },
Sean Nelson69e58112010-03-23 17:10:28 +000010926 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010927 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010928 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010929 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010930 },
10931
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010932 {
10933 .vendor = "SST",
10934 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010935 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010936 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010937 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010938 .total_size = 256,
10939 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010940 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000010941 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010942 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010943 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010944 .block_erasers =
10945 {
10946 {
10947 .eraseblocks = { {4 * 1024, 64} },
10948 .block_erase = erase_sector_jedec,
10949 }, {
10950 .eraseblocks = { {16 * 1024, 16} },
10951 .block_erase = erase_block_jedec,
10952 }, {
10953 .eraseblocks = { {256 * 1024, 1} },
10954 .block_erase = NULL,
10955 }
10956 },
Sean Nelson35727f72010-01-28 23:55:12 +000010957 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010959 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000010960 },
10961
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010962 {
10963 .vendor = "SST",
10964 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010965 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010966 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010967 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010968 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000010969 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010970 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010971 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010972 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010973 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010974 .block_erasers =
10975 {
10976 {
10977 .eraseblocks = { {4 * 1024, 64} },
10978 .block_erase = erase_sector_jedec,
10979 }, {
10980 .eraseblocks = { {16 * 1024, 16} },
10981 .block_erase = erase_block_jedec,
10982 }, {
10983 .eraseblocks = { {256 * 1024, 1} },
10984 .block_erase = NULL,
10985 }
10986 },
Sean Nelson35727f72010-01-28 23:55:12 +000010987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010989 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010990 },
10991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010992 {
10993 .vendor = "SST",
10994 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010995 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010996 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010997 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010998 .total_size = 512,
10999 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011000 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011001 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011002 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011003 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011004 .block_erasers =
11005 {
11006 {
11007 .eraseblocks = { {4 * 1024, 128} },
11008 .block_erase = erase_sector_jedec,
11009 }, {
11010 .eraseblocks = { {64 * 1024, 8} },
11011 .block_erase = erase_block_jedec,
11012 }, {
11013 .eraseblocks = { {512 * 1024, 1} },
11014 .block_erase = NULL,
11015 }
11016 },
Sean Nelson35727f72010-01-28 23:55:12 +000011017 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011018 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011019 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011020 },
11021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011022 {
11023 .vendor = "SST",
11024 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011025 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011026 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011027 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011028 .total_size = 512,
11029 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011030 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011031 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011032 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011033 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011034 .block_erasers =
11035 {
11036 {
11037 .eraseblocks = { {4 * 1024, 128} },
11038 .block_erase = erase_sector_jedec,
11039 }, {
11040 .eraseblocks = { {64 * 1024, 8} },
11041 .block_erase = erase_block_jedec,
11042 }, {
11043 .eraseblocks = { {512 * 1024, 1} },
11044 .block_erase = NULL,
11045 }
11046 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011047 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000011048 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011049 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011050 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011051 },
11052
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011053 {
11054 .vendor = "SST",
11055 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011056 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011057 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011058 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011059 .total_size = 1024,
11060 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011061 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011062 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011063 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011064 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011065 .block_erasers =
11066 {
11067 {
11068 .eraseblocks = { {4 * 1024, 256} },
11069 .block_erase = erase_sector_jedec,
11070 }, {
11071 .eraseblocks = { {64 * 1024, 16} },
11072 .block_erase = erase_block_jedec,
11073 }, {
11074 .eraseblocks = { {1024 * 1024, 1} },
11075 .block_erase = NULL,
11076 }
11077 },
Sean Nelson35727f72010-01-28 23:55:12 +000011078 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011080 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011081 },
11082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011083 {
11084 .vendor = "SST",
11085 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011086 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011087 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011088 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011089 .total_size = 2048,
11090 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011091 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011092 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011093 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011094 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011095 .block_erasers =
11096 {
11097 {
11098 .eraseblocks = { {4 * 1024, 512} },
11099 .block_erase = erase_sector_49lfxxxc,
11100 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011101 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011102 {64 * 1024, 31},
11103 {32 * 1024, 1},
11104 {8 * 1024, 2},
11105 {16 * 1024, 1},
11106 },
Sean Nelson69e58112010-03-23 17:10:28 +000011107 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011108 }
11109 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011110 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011111 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011112 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011113 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011114 },
11115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011116 {
11117 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011118 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011119 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011120 .manufacture_id = ST_ID,
11121 .model_id = ST_M29F002B,
11122 .total_size = 256,
11123 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011124 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011125 .tested = TEST_UNTESTED,
11126 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011127 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011128 .block_erasers =
11129 {
11130 {
11131 .eraseblocks = {
11132 {16 * 1024, 1},
11133 {8 * 1024, 2},
11134 {32 * 1024, 1},
11135 {64 * 1024, 3},
11136 },
11137 .block_erase = erase_sector_jedec,
11138 }, {
11139 .eraseblocks = { {256 * 1024, 1} },
11140 .block_erase = erase_chip_block_jedec,
11141 }
11142 },
Sean Nelson35727f72010-01-28 23:55:12 +000011143 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011144 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011145 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011146 },
11147
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011148 {
11149 .vendor = "ST",
11150 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011151 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011152 .manufacture_id = ST_ID,
11153 .model_id = ST_M29F002T,
11154 .total_size = 256,
11155 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011156 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011157 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011160 .block_erasers =
11161 {
11162 {
11163 .eraseblocks = {
11164 {64 * 1024, 3},
11165 {32 * 1024, 1},
11166 {8 * 1024, 2},
11167 {16 * 1024, 1},
11168 },
11169 .block_erase = erase_sector_jedec,
11170 }, {
11171 .eraseblocks = { {256 * 1024, 1} },
11172 .block_erase = erase_chip_block_jedec,
11173 }
11174 },
Sean Nelson35727f72010-01-28 23:55:12 +000011175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011176 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011177 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011178 },
11179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011180 {
11181 .vendor = "ST",
11182 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011184 .manufacture_id = ST_ID,
11185 .model_id = ST_M29F040B,
11186 .total_size = 512,
11187 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011188 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11189 .tested = TEST_UNTESTED,
11190 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011191 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011192 .block_erasers =
11193 {
11194 {
11195 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011196 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011197 }, {
11198 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011199 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011200 }
11201 },
Sean Nelson35727f72010-01-28 23:55:12 +000011202 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011204 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011205 },
11206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011207 {
Sean Nelson35727f72010-01-28 23:55:12 +000011208 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011209 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011210 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011211 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011212 .manufacture_id = ST_ID,
11213 .model_id = ST_M29F400BB,
11214 .total_size = 512,
11215 .page_size = 64 * 1024,
11216 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011217 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011218 .probe = probe_m29f400bt,
11219 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11220 .block_erasers =
11221 {
11222 {
11223 .eraseblocks = {
11224 {16 * 1024, 1},
11225 {8 * 1024, 2},
11226 {32 * 1024, 1},
11227 {64 * 1024, 7},
11228 },
11229 .block_erase = block_erase_m29f400bt,
11230 }, {
11231 .eraseblocks = { {512 * 1024, 1} },
11232 .block_erase = block_erase_chip_m29f400bt,
11233 }
11234 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011235 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011236 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011237 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011238 },
11239 {
11240 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11241 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011242 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011243 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011244 .manufacture_id = ST_ID,
11245 .model_id = ST_M29F400BT,
11246 .total_size = 512,
11247 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011248 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011249 .tested = TEST_UNTESTED,
11250 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011251 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011252 .block_erasers =
11253 {
11254 {
11255 .eraseblocks = {
11256 {64 * 1024, 7},
11257 {32 * 1024, 1},
11258 {8 * 1024, 2},
11259 {16 * 1024, 1},
11260 },
11261 .block_erase = block_erase_m29f400bt,
11262 }, {
11263 .eraseblocks = { {512 * 1024, 1} },
11264 .block_erase = block_erase_chip_m29f400bt,
11265 }
11266 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011267 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011268 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011269 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011270 },
11271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011272 {
11273 .vendor = "ST",
11274 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011275 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011276 .manufacture_id = ST_ID,
11277 .model_id = ST_M29W010B,
11278 .total_size = 128,
11279 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011280 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011281 .tested = TEST_UNTESTED,
11282 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011283 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011284 .block_erasers =
11285 {
11286 {
11287 .eraseblocks = { {16 * 1024, 8}, },
11288 .block_erase = erase_sector_jedec,
11289 }, {
11290 .eraseblocks = { {128 * 1024, 1} },
11291 .block_erase = erase_chip_block_jedec,
11292 }
11293 },
Sean Nelson35727f72010-01-28 23:55:12 +000011294 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011297 },
11298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011299 {
11300 .vendor = "ST",
11301 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011302 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011303 .manufacture_id = ST_ID,
11304 .model_id = ST_M29W040B,
11305 .total_size = 512,
11306 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011307 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011308 .tested = TEST_UNTESTED,
11309 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011310 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011311 .block_erasers =
11312 {
11313 {
11314 .eraseblocks = { {64 * 1024, 8}, },
11315 .block_erase = erase_sector_jedec,
11316 }, {
11317 .eraseblocks = { {512 * 1024, 1} },
11318 .block_erase = erase_chip_block_jedec,
11319 }
11320 },
Sean Nelson35727f72010-01-28 23:55:12 +000011321 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011323 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011324 },
11325
Stefan Taunereb582572012-09-21 12:52:50 +000011326 {
11327 .vendor = "ST",
11328 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011329 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011330 .manufacture_id = ST_ID,
11331 .model_id = ST_M29W512B,
11332 .total_size = 64,
11333 .page_size = 64 * 1024,
11334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011335 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011336 .probe = probe_jedec,
11337 .probe_timing = TIMING_ZERO,
11338 .block_erasers =
11339 {
11340 {
11341 .eraseblocks = { {64 * 1024, 1} },
11342 .block_erase = erase_chip_block_jedec,
11343 }
11344 },
11345 .write = write_jedec_1,
11346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011347 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011348 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011349
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011350 {
11351 .vendor = "ST",
11352 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011353 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011354 .manufacture_id = ST_ID,
11355 .model_id = ST_M50FLW040A,
11356 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011357 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011358 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011359 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011360 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011361 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011362 .block_erasers =
11363 {
11364 {
Sean Nelson329bde72010-01-19 16:39:19 +000011365 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011366 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011367 {64 * 1024, 5}, /* block */
11368 {4 * 1024, 16}, /* sector */
11369 {4 * 1024, 16}, /* sector */
11370 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011371 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011372 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011373 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011374 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011375 }
11376 },
Sean Nelson28accc22010-03-19 18:47:06 +000011377 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011378 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011379 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011380 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011381 },
11382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011383 {
11384 .vendor = "ST",
11385 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011386 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011387 .manufacture_id = ST_ID,
11388 .model_id = ST_M50FLW040B,
11389 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011390 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011391 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011392 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011393 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011394 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011395 .block_erasers =
11396 {
11397 {
Sean Nelson329bde72010-01-19 16:39:19 +000011398 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011399 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011400 {4 * 1024, 16}, /* sector */
11401 {64 * 1024, 5}, /* block */
11402 {4 * 1024, 16}, /* sector */
11403 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011404 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011405 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011406 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011407 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011408 }
11409 },
Sean Nelson28accc22010-03-19 18:47:06 +000011410 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011411 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011413 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011414 },
11415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011416 {
11417 .vendor = "ST",
11418 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011419 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011420 .manufacture_id = ST_ID,
11421 .model_id = ST_M50FLW080A,
11422 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011423 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011424 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011425 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011426 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011427 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011428 .block_erasers =
11429 {
11430 {
Sean Nelson329bde72010-01-19 16:39:19 +000011431 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011432 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011433 {64 * 1024, 13}, /* block */
11434 {4 * 1024, 16}, /* sector */
11435 {4 * 1024, 16}, /* sector */
11436 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011437 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011438 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011439 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011440 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011441 }
11442 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011443 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011444 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011446 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011447 },
11448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011449 {
11450 .vendor = "ST",
11451 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011452 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011453 .manufacture_id = ST_ID,
11454 .model_id = ST_M50FLW080B,
11455 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011456 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011457 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011458 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011459 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011460 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011461 .block_erasers =
11462 {
11463 {
Sean Nelson329bde72010-01-19 16:39:19 +000011464 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011465 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011466 {4 * 1024, 16}, /* sector */
11467 {64 * 1024, 13}, /* block */
11468 {4 * 1024, 16}, /* sector */
11469 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011470 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011471 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011472 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011473 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011474 }
11475 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011476 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011477 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011479 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011480 },
11481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011482 {
11483 .vendor = "ST",
11484 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011485 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011486 .manufacture_id = ST_ID,
11487 .model_id = ST_M50FW002,
11488 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011489 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011490 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011491 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011492 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011493 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011494 .block_erasers =
11495 {
11496 {
11497 .eraseblocks = {
11498 {64 * 1024, 3},
11499 {32 * 1024, 1},
11500 {8 * 1024, 2},
11501 {16 * 1024, 1},
11502 },
Sean Nelson28accc22010-03-19 18:47:06 +000011503 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011504 }
11505 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011506 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011507 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011509 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011510 },
11511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011512 {
11513 .vendor = "ST",
11514 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011515 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011516 .manufacture_id = ST_ID,
11517 .model_id = ST_M50FW016,
11518 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011519 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011520 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011521 .tested = TEST_UNTESTED,
11522 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011523 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011524 .block_erasers =
11525 {
11526 {
11527 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011528 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011529 }
11530 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011531 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011532 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011533 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011534 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011535 },
11536
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011537 {
11538 .vendor = "ST",
11539 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011540 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011541 .manufacture_id = ST_ID,
11542 .model_id = ST_M50FW040,
11543 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011544 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011545 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011546 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011547 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011548 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011549 .block_erasers =
11550 {
11551 {
11552 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011553 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011554 }
11555 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011556 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011557 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011559 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011560 },
11561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011562 {
11563 .vendor = "ST",
11564 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011565 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011566 .manufacture_id = ST_ID,
11567 .model_id = ST_M50FW080,
11568 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011569 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011570 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011571 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011572 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011573 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011574 .block_erasers =
11575 {
11576 {
11577 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011578 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011579 }
11580 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011581 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011582 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011584 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011585 },
11586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011587 {
11588 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011589 .name = "M50LPW080",
11590 .bustype = BUS_LPC, /* A/A Mux */
11591 .manufacture_id = ST_ID,
11592 .model_id = ST_M50LPW080,
11593 .total_size = 1024,
11594 .page_size = 0,
11595 .feature_bits = FEATURE_REGISTERMAP,
11596 .tested = TEST_UNTESTED,
11597 .probe = probe_82802ab,
11598 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11599 .block_erasers =
11600 {
11601 {
11602 .eraseblocks = { {64 * 1024, 16}, },
11603 .block_erase = erase_block_82802ab,
11604 }
11605 },
11606 .unlock = unlock_stm50_uniform,
11607 .write = write_82802ab,
11608 .read = read_memmapped,
11609 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11610 },
11611
11612 {
11613 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011614 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011615 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011616 .manufacture_id = ST_ID,
11617 .model_id = ST_M50LPW116,
11618 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011619 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011620 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011621 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011622 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011623 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011624 .block_erasers =
11625 {
11626 {
11627 .eraseblocks = {
11628 {4 * 1024, 16},
11629 {64 * 1024, 30},
11630 {32 * 1024, 1},
11631 {8 * 1024, 2},
11632 {16 * 1024, 1},
11633 },
Sean Nelson28accc22010-03-19 18:47:06 +000011634 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011635 }
11636 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011637 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011638 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011640 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011641 },
11642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011643 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011644 .vendor = "SyncMOS/MoselVitelic",
11645 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011646 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011647 .manufacture_id = SYNCMOS_MVC_ID,
11648 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011649 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011650 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011651 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011652 .tested = TEST_UNTESTED,
11653 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011654 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011655 .block_erasers =
11656 {
11657 {
11658 .eraseblocks = { {512, 256} },
11659 .block_erase = erase_sector_jedec,
11660 }, {
11661 .eraseblocks = { {128 * 1024, 1} },
11662 .block_erase = erase_chip_block_jedec,
11663 },
11664 },
Sean Nelson35727f72010-01-28 23:55:12 +000011665 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011667 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011668 },
11669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011670 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011671 .vendor = "SyncMOS/MoselVitelic",
11672 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011673 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011674 .manufacture_id = SYNCMOS_MVC_ID,
11675 .model_id = SM_MVC_29C51001T,
11676 .total_size = 128,
11677 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011678 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011679 .tested = TEST_UNTESTED,
11680 .probe = probe_jedec,
11681 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11682 .block_erasers =
11683 {
11684 {
11685 .eraseblocks = { {512, 256} },
11686 .block_erase = erase_sector_jedec,
11687 }, {
11688 .eraseblocks = { {128 * 1024, 1} },
11689 .block_erase = erase_chip_block_jedec,
11690 },
11691 },
11692 .write = write_jedec_1,
11693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011694 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011695 },
11696
11697 {
11698 .vendor = "SyncMOS/MoselVitelic",
11699 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011700 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011701 .manufacture_id = SYNCMOS_MVC_ID,
11702 .model_id = SM_MVC_29C51002B,
11703 .total_size = 256,
11704 .page_size = 512,
11705 .feature_bits = FEATURE_EITHER_RESET,
11706 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011707 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011708 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011709 .block_erasers =
11710 {
11711 {
11712 .eraseblocks = { {512, 512} },
11713 .block_erase = erase_sector_jedec,
11714 }, {
11715 .eraseblocks = { {256 * 1024, 1} },
11716 .block_erase = erase_chip_block_jedec,
11717 },
11718 },
Sean Nelson35727f72010-01-28 23:55:12 +000011719 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011720 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011721 },
11722
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011723 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011724 .vendor = "SyncMOS/MoselVitelic",
11725 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011726 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011727 .manufacture_id = SYNCMOS_MVC_ID,
11728 .model_id = SM_MVC_29C51002T,
11729 .total_size = 256,
11730 .page_size = 512,
11731 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011732 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011733 .probe = probe_jedec,
11734 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11735 .block_erasers =
11736 {
11737 {
11738 .eraseblocks = { {512, 512} },
11739 .block_erase = erase_sector_jedec,
11740 }, {
11741 .eraseblocks = { {256 * 1024, 1} },
11742 .block_erase = erase_chip_block_jedec,
11743 },
11744 },
11745 .write = write_jedec_1,
11746 .read = read_memmapped,
11747 },
11748
11749 {
11750 .vendor = "SyncMOS/MoselVitelic",
11751 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011752 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011753 .manufacture_id = SYNCMOS_MVC_ID,
11754 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011755 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011756 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011757 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011758 .tested = TEST_UNTESTED,
11759 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011760 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011761 .block_erasers =
11762 {
11763 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011764 .eraseblocks = { {1024, 512} },
11765 .block_erase = erase_sector_jedec,
11766 }, {
11767 .eraseblocks = { {512 * 1024, 1} },
11768 .block_erase = erase_chip_block_jedec,
11769 },
11770 },
11771 .write = write_jedec_1,
11772 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011773 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011774 },
11775
11776 {
11777 .vendor = "SyncMOS/MoselVitelic",
11778 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011779 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011780 .manufacture_id = SYNCMOS_MVC_ID,
11781 .model_id = SM_MVC_29C51004T,
11782 .total_size = 512,
11783 .page_size = 1024,
11784 .feature_bits = FEATURE_EITHER_RESET,
11785 .tested = TEST_UNTESTED,
11786 .probe = probe_jedec,
11787 .probe_timing = TIMING_ZERO,
11788 .block_erasers =
11789 {
11790 {
11791 .eraseblocks = { {1024, 512} },
11792 .block_erase = erase_sector_jedec,
11793 }, {
11794 .eraseblocks = { {512 * 1024, 1} },
11795 .block_erase = erase_chip_block_jedec,
11796 },
11797 },
11798 .write = write_jedec_1,
11799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011800 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011801 },
11802
11803 {
11804 .vendor = "SyncMOS/MoselVitelic",
11805 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011806 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011807 .manufacture_id = SYNCMOS_MVC_ID,
11808 .model_id = SM_MVC_29C31004B,
11809 .total_size = 512,
11810 .page_size = 1024,
11811 .feature_bits = FEATURE_EITHER_RESET,
11812 .tested = TEST_UNTESTED,
11813 .probe = probe_jedec,
11814 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11815 .block_erasers =
11816 {
11817 {
11818 .eraseblocks = { {1024, 512} },
11819 .block_erase = erase_sector_jedec,
11820 }, {
11821 .eraseblocks = { {512 * 1024, 1} },
11822 .block_erase = erase_chip_block_jedec,
11823 },
11824 },
11825 .write = write_jedec_1,
11826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011827 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011828 },
11829
11830 {
11831 .vendor = "SyncMOS/MoselVitelic",
11832 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011833 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011834 .manufacture_id = SYNCMOS_MVC_ID,
11835 .model_id = SM_MVC_29C31004T,
11836 .total_size = 512,
11837 .page_size = 1024,
11838 .feature_bits = FEATURE_EITHER_RESET,
11839 .tested = TEST_UNTESTED,
11840 .probe = probe_jedec,
11841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11842 .block_erasers =
11843 {
11844 {
11845 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011846 .block_erase = erase_sector_jedec,
11847 }, {
11848 .eraseblocks = { {512 * 1024, 1} },
11849 .block_erase = erase_chip_block_jedec,
11850 },
11851 },
Sean Nelson35727f72010-01-28 23:55:12 +000011852 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011853 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011854 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011855 },
11856
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011857 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011858 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011859 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011860 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011861 .manufacture_id = TI_OLD_ID,
11862 .model_id = TI_TMS29F002RB,
11863 .total_size = 256,
11864 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011865 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011866 .tested = TEST_UNTESTED,
11867 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011868 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011869 .block_erasers =
11870 {
11871 {
11872 .eraseblocks = {
11873 {16 * 1024, 1},
11874 {8 * 1024, 2},
11875 {32 * 1024, 1},
11876 {64 * 1024, 3},
11877 },
11878 .block_erase = erase_sector_jedec,
11879 }, {
11880 .eraseblocks = { {256 * 1024, 1} },
11881 .block_erase = erase_chip_block_jedec,
11882 },
11883 },
Sean Nelson35727f72010-01-28 23:55:12 +000011884 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011886 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011887 },
11888
11889 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011890 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011891 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011892 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011893 .manufacture_id = TI_OLD_ID,
11894 .model_id = TI_TMS29F002RT,
11895 .total_size = 256,
11896 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011897 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011898 .tested = TEST_UNTESTED,
11899 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011900 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011901 .block_erasers =
11902 {
11903 {
11904 .eraseblocks = {
11905 {64 * 1024, 3},
11906 {32 * 1024, 1},
11907 {8 * 1024, 2},
11908 {16 * 1024, 1},
11909 },
11910 .block_erase = erase_sector_jedec,
11911 }, {
11912 .eraseblocks = { {256 * 1024, 1} },
11913 .block_erase = erase_chip_block_jedec,
11914 },
11915 },
Sean Nelson35727f72010-01-28 23:55:12 +000011916 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011917 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011918 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011919 },
11920
11921 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011922 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011923 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011924 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011925 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011926 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011927 .total_size = 1024,
11928 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011929 /* supports SFDP */
11930 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011931 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011932 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011933 .probe = probe_spi_rdid,
11934 .probe_timing = TIMING_ZERO,
11935 .block_erasers =
11936 {
11937 {
11938 .eraseblocks = { {4 * 1024, 256} },
11939 .block_erase = spi_block_erase_20,
11940 }, {
11941 .eraseblocks = { {32 * 1024, 32} },
11942 .block_erase = spi_block_erase_52,
11943 }, {
11944 .eraseblocks = { {64 * 1024, 16} },
11945 .block_erase = spi_block_erase_d8,
11946 }, {
11947 .eraseblocks = { {1024 * 1024, 1} },
11948 .block_erase = spi_block_erase_60,
11949 }, {
11950 .eraseblocks = { {1024 * 1024, 1} },
11951 .block_erase = spi_block_erase_c7,
11952 }
11953 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011954 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011955 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011956 .write = spi_chip_write_256,
11957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011958 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011959 },
11960
11961 {
11962 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011963 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011964 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011965 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011966 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011967 .total_size = 2048,
11968 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011969 /* supports SFDP */
11970 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000011972 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011973 .probe = probe_spi_rdid,
11974 .probe_timing = TIMING_ZERO,
11975 .block_erasers =
11976 {
11977 {
11978 .eraseblocks = { {4 * 1024, 512} },
11979 .block_erase = spi_block_erase_20,
11980 }, {
11981 .eraseblocks = { {32 * 1024, 64} },
11982 .block_erase = spi_block_erase_52,
11983 }, {
11984 .eraseblocks = { {64 * 1024, 32} },
11985 .block_erase = spi_block_erase_d8,
11986 }, {
11987 .eraseblocks = { {2 * 1024 * 1024, 1} },
11988 .block_erase = spi_block_erase_60,
11989 }, {
11990 .eraseblocks = { {2 * 1024 * 1024, 1} },
11991 .block_erase = spi_block_erase_c7,
11992 }
11993 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011995 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011996 .write = spi_chip_write_256,
11997 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011998 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011999 },
12000
12001 {
12002 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012003 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012004 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012005 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012006 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012007 .total_size = 4096,
12008 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012009 /* supports SFDP */
12010 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012011 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012012 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012013 .probe = probe_spi_rdid,
12014 .probe_timing = TIMING_ZERO,
12015 .block_erasers =
12016 {
12017 {
12018 .eraseblocks = { {4 * 1024, 1024} },
12019 .block_erase = spi_block_erase_20,
12020 }, {
12021 .eraseblocks = { {32 * 1024, 128} },
12022 .block_erase = spi_block_erase_52,
12023 }, {
12024 .eraseblocks = { {64 * 1024, 64} },
12025 .block_erase = spi_block_erase_d8,
12026 }, {
12027 .eraseblocks = { {4 * 1024 * 1024, 1} },
12028 .block_erase = spi_block_erase_60,
12029 }, {
12030 .eraseblocks = { {4 * 1024 * 1024, 1} },
12031 .block_erase = spi_block_erase_c7,
12032 }
12033 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012034 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012035 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012036 .write = spi_chip_write_256,
12037 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012038 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012039 },
12040
12041 {
12042 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012043 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012044 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012045 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012046 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012047 .total_size = 8192,
12048 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012049 /* supports SFDP */
12050 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012052 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012053 .probe = probe_spi_rdid,
12054 .probe_timing = TIMING_ZERO,
12055 .block_erasers =
12056 {
12057 {
12058 .eraseblocks = { {4 * 1024, 2048} },
12059 .block_erase = spi_block_erase_20,
12060 }, {
12061 .eraseblocks = { {32 * 1024, 256} },
12062 .block_erase = spi_block_erase_52,
12063 }, {
12064 .eraseblocks = { {64 * 1024, 128} },
12065 .block_erase = spi_block_erase_d8,
12066 }, {
12067 .eraseblocks = { {8 * 1024 * 1024, 1} },
12068 .block_erase = spi_block_erase_60,
12069 }, {
12070 .eraseblocks = { {8 * 1024 * 1024, 1} },
12071 .block_erase = spi_block_erase_c7,
12072 }
12073 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012074 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012075 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012076 .write = spi_chip_write_256,
12077 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012078 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012079 },
12080
12081 {
12082 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012083 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012084 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012085 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012086 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012087 .total_size = 16384,
12088 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012089 /* supports SFDP */
12090 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012092 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012093 .probe = probe_spi_rdid,
12094 .probe_timing = TIMING_ZERO,
12095 .block_erasers =
12096 {
12097 {
12098 .eraseblocks = { {4 * 1024, 4096} },
12099 .block_erase = spi_block_erase_20,
12100 }, {
12101 .eraseblocks = { {32 * 1024, 512} },
12102 .block_erase = spi_block_erase_52,
12103 }, {
12104 .eraseblocks = { {64 * 1024, 256} },
12105 .block_erase = spi_block_erase_d8,
12106 }, {
12107 .eraseblocks = { {16 * 1024 * 1024, 1} },
12108 .block_erase = spi_block_erase_60,
12109 }, {
12110 .eraseblocks = { {16 * 1024 * 1024, 1} },
12111 .block_erase = spi_block_erase_c7,
12112 }
12113 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012114 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012115 .unlock = spi_disable_blockprotect,
12116 .write = spi_chip_write_256,
12117 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012118 .voltage = {2700, 3600},
12119 },
12120
12121 {
12122 .vendor = "Winbond",
12123 .name = "W25Q20.W",
12124 .bustype = BUS_SPI,
12125 .manufacture_id = WINBOND_NEX_ID,
12126 .model_id = WINBOND_NEX_W25Q20_W,
12127 .total_size = 256,
12128 .page_size = 256,
12129 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12130 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12131 .tested = TEST_UNTESTED,
12132 .probe = probe_spi_rdid,
12133 .probe_timing = TIMING_ZERO,
12134 .block_erasers =
12135 {
12136 {
12137 .eraseblocks = { {4 * 1024, 64} },
12138 .block_erase = spi_block_erase_20,
12139 }, {
12140 .eraseblocks = { {32 * 1024, 8} },
12141 .block_erase = spi_block_erase_52,
12142 }, {
12143 .eraseblocks = { {64 * 1024, 4} },
12144 .block_erase = spi_block_erase_d8,
12145 }, {
12146 .eraseblocks = { {256 * 1024, 1} },
12147 .block_erase = spi_block_erase_60,
12148 }, {
12149 .eraseblocks = { {256 * 1024, 1} },
12150 .block_erase = spi_block_erase_c7,
12151 }
12152 },
12153 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12154 .unlock = spi_disable_blockprotect,
12155 .write = spi_chip_write_256,
12156 .read = spi_chip_read,
12157 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12158 },
12159
12160 {
12161 .vendor = "Winbond",
12162 .name = "W25Q40.W",
12163 .bustype = BUS_SPI,
12164 .manufacture_id = WINBOND_NEX_ID,
12165 .model_id = WINBOND_NEX_W25Q40_W,
12166 .total_size = 512,
12167 .page_size = 256,
12168 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12170 .tested = TEST_UNTESTED,
12171 .probe = probe_spi_rdid,
12172 .probe_timing = TIMING_ZERO,
12173 .block_erasers =
12174 {
12175 {
12176 .eraseblocks = { {4 * 1024, 128} },
12177 .block_erase = spi_block_erase_20,
12178 }, {
12179 .eraseblocks = { {32 * 1024, 16} },
12180 .block_erase = spi_block_erase_52,
12181 }, {
12182 .eraseblocks = { {64 * 1024, 8} },
12183 .block_erase = spi_block_erase_d8,
12184 }, {
12185 .eraseblocks = { {512 * 1024, 1} },
12186 .block_erase = spi_block_erase_60,
12187 }, {
12188 .eraseblocks = { {512 * 1024, 1} },
12189 .block_erase = spi_block_erase_c7,
12190 }
12191 },
12192 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12193 .unlock = spi_disable_blockprotect,
12194 .write = spi_chip_write_256,
12195 .read = spi_chip_read,
12196 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12197 },
12198
12199 {
12200 .vendor = "Winbond",
12201 .name = "W25Q80.W",
12202 .bustype = BUS_SPI,
12203 .manufacture_id = WINBOND_NEX_ID,
12204 .model_id = WINBOND_NEX_W25Q80_W,
12205 .total_size = 1024,
12206 .page_size = 256,
12207 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12208 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12209 .tested = TEST_UNTESTED,
12210 .probe = probe_spi_rdid,
12211 .probe_timing = TIMING_ZERO,
12212 .block_erasers =
12213 {
12214 {
12215 .eraseblocks = { {4 * 1024, 256} },
12216 .block_erase = spi_block_erase_20,
12217 }, {
12218 .eraseblocks = { {32 * 1024, 32} },
12219 .block_erase = spi_block_erase_52,
12220 }, {
12221 .eraseblocks = { {64 * 1024, 16} },
12222 .block_erase = spi_block_erase_d8,
12223 }, {
12224 .eraseblocks = { {1 * 1024 * 1024, 1} },
12225 .block_erase = spi_block_erase_60,
12226 }, {
12227 .eraseblocks = { {1 * 1024 * 1024, 1} },
12228 .block_erase = spi_block_erase_c7,
12229 }
12230 },
12231 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12232 .unlock = spi_disable_blockprotect,
12233 .write = spi_chip_write_256,
12234 .read = spi_chip_read,
12235 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12236 },
12237
12238 {
12239 .vendor = "Winbond",
12240 .name = "W25Q16.W",
12241 .bustype = BUS_SPI,
12242 .manufacture_id = WINBOND_NEX_ID,
12243 .model_id = WINBOND_NEX_W25Q16_W,
12244 .total_size = 2048,
12245 .page_size = 256,
12246 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12247 /* QPI enable 0x38, disable 0xFF */
12248 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12249 .tested = TEST_UNTESTED,
12250 .probe = probe_spi_rdid,
12251 .probe_timing = TIMING_ZERO,
12252 .block_erasers =
12253 {
12254 {
12255 .eraseblocks = { {4 * 1024, 512} },
12256 .block_erase = spi_block_erase_20,
12257 }, {
12258 .eraseblocks = { {32 * 1024, 64} },
12259 .block_erase = spi_block_erase_52,
12260 }, {
12261 .eraseblocks = { {64 * 1024, 32} },
12262 .block_erase = spi_block_erase_d8,
12263 }, {
12264 .eraseblocks = { {2 * 1024 * 1024, 1} },
12265 .block_erase = spi_block_erase_60,
12266 }, {
12267 .eraseblocks = { {2 * 1024 * 1024, 1} },
12268 .block_erase = spi_block_erase_c7,
12269 }
12270 },
12271 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12272 .unlock = spi_disable_blockprotect,
12273 .write = spi_chip_write_256,
12274 .read = spi_chip_read,
12275 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12276 },
12277
12278 {
12279 .vendor = "Winbond",
12280 .name = "W25Q32.W",
12281 .bustype = BUS_SPI,
12282 .manufacture_id = WINBOND_NEX_ID,
12283 .model_id = WINBOND_NEX_W25Q32_W,
12284 .total_size = 4096,
12285 .page_size = 256,
12286 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12287 /* QPI enable 0x38, disable 0xFF */
12288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12289 .tested = TEST_OK_PREW,
12290 .probe = probe_spi_rdid,
12291 .probe_timing = TIMING_ZERO,
12292 .block_erasers =
12293 {
12294 {
12295 .eraseblocks = { {4 * 1024, 1024} },
12296 .block_erase = spi_block_erase_20,
12297 }, {
12298 .eraseblocks = { {32 * 1024, 128} },
12299 .block_erase = spi_block_erase_52,
12300 }, {
12301 .eraseblocks = { {64 * 1024, 64} },
12302 .block_erase = spi_block_erase_d8,
12303 }, {
12304 .eraseblocks = { {4 * 1024 * 1024, 1} },
12305 .block_erase = spi_block_erase_60,
12306 }, {
12307 .eraseblocks = { {4 * 1024 * 1024, 1} },
12308 .block_erase = spi_block_erase_c7,
12309 }
12310 },
12311 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12312 .unlock = spi_disable_blockprotect,
12313 .write = spi_chip_write_256,
12314 .read = spi_chip_read,
12315 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12316 },
12317
12318 {
12319 .vendor = "Winbond",
12320 .name = "W25Q64.W",
12321 .bustype = BUS_SPI,
12322 .manufacture_id = WINBOND_NEX_ID,
12323 .model_id = WINBOND_NEX_W25Q64_W,
12324 .total_size = 8192,
12325 .page_size = 256,
12326 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12327 /* QPI enable 0x38, disable 0xFF */
12328 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012329 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012330 .probe = probe_spi_rdid,
12331 .probe_timing = TIMING_ZERO,
12332 .block_erasers =
12333 {
12334 {
12335 .eraseblocks = { {4 * 1024, 2048} },
12336 .block_erase = spi_block_erase_20,
12337 }, {
12338 .eraseblocks = { {32 * 1024, 256} },
12339 .block_erase = spi_block_erase_52,
12340 }, {
12341 .eraseblocks = { {64 * 1024, 128} },
12342 .block_erase = spi_block_erase_d8,
12343 }, {
12344 .eraseblocks = { {8 * 1024 * 1024, 1} },
12345 .block_erase = spi_block_erase_60,
12346 }, {
12347 .eraseblocks = { {8 * 1024 * 1024, 1} },
12348 .block_erase = spi_block_erase_c7,
12349 }
12350 },
12351 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12352 .unlock = spi_disable_blockprotect,
12353 .write = spi_chip_write_256,
12354 .read = spi_chip_read,
12355 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012356 },
12357
12358 {
12359 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012360 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012361 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012362 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012363 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012364 .total_size = 128,
12365 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012366 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012367 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012368 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012369 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012370 .block_erasers =
12371 {
12372 {
12373 .eraseblocks = { {4 * 1024, 32} },
12374 .block_erase = spi_block_erase_20,
12375 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012376 .eraseblocks = { {64 * 1024, 2} },
12377 .block_erase = spi_block_erase_d8,
12378 }, {
12379 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012380 .block_erase = spi_block_erase_c7,
12381 }
12382 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012383 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012384 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012385 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012386 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012387 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012388 },
12389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012390 {
12391 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012392 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012393 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012394 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012395 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012396 .total_size = 256,
12397 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012398 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012399 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012400 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012401 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012402 .block_erasers =
12403 {
12404 {
12405 .eraseblocks = { {4 * 1024, 64} },
12406 .block_erase = spi_block_erase_20,
12407 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012408 .eraseblocks = { {64 * 1024, 4} },
12409 .block_erase = spi_block_erase_d8,
12410 }, {
12411 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012412 .block_erase = spi_block_erase_c7,
12413 }
12414 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012415 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012416 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012417 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012418 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012419 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012420 },
12421
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012422 {
12423 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012424 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012425 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012426 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012427 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012428 .total_size = 512,
12429 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012430 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012431 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012432 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012433 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012434 .block_erasers =
12435 {
12436 {
12437 .eraseblocks = { {4 * 1024, 128} },
12438 .block_erase = spi_block_erase_20,
12439 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012440 .eraseblocks = { {64 * 1024, 8} },
12441 .block_erase = spi_block_erase_d8,
12442 }, {
12443 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012444 .block_erase = spi_block_erase_c7,
12445 }
12446 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012448 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012449 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012450 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012451 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012452 },
12453
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012454 {
12455 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012456 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012457 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012458 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012459 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012460 .total_size = 1024,
12461 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012462 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012463 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012464 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012465 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012466 .block_erasers =
12467 {
12468 {
12469 .eraseblocks = { {4 * 1024, 256} },
12470 .block_erase = spi_block_erase_20,
12471 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012472 .eraseblocks = { {64 * 1024, 16} },
12473 .block_erase = spi_block_erase_d8,
12474 }, {
12475 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012476 .block_erase = spi_block_erase_c7,
12477 }
12478 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012479 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012480 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012481 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012482 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012483 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012484 },
12485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012486 {
12487 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012488 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012489 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012490 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012491 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012492 .total_size = 2048,
12493 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012494 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012495 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012496 .probe = probe_spi_rdid,
12497 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012498 .block_erasers =
12499 {
12500 {
12501 .eraseblocks = { {4 * 1024, 512} },
12502 .block_erase = spi_block_erase_20,
12503 }, {
12504 .eraseblocks = { {32 * 1024, 64} },
12505 .block_erase = spi_block_erase_52,
12506 }, {
12507 .eraseblocks = { {64 * 1024, 32} },
12508 .block_erase = spi_block_erase_d8,
12509 }, {
12510 .eraseblocks = { {2 * 1024 * 1024, 1} },
12511 .block_erase = spi_block_erase_60,
12512 }, {
12513 .eraseblocks = { {2 * 1024 * 1024, 1} },
12514 .block_erase = spi_block_erase_c7,
12515 }
12516 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012517 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012518 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012519 .write = spi_chip_write_256,
12520 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012521 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012522 },
12523
12524 {
12525 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012526 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012527 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012528 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012529 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012530 .total_size = 4096,
12531 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012532 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012533 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012534 .probe = probe_spi_rdid,
12535 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012536 .block_erasers =
12537 {
12538 {
12539 .eraseblocks = { {4 * 1024, 1024} },
12540 .block_erase = spi_block_erase_20,
12541 }, {
12542 .eraseblocks = { {32 * 1024, 128} },
12543 .block_erase = spi_block_erase_52,
12544 }, {
12545 .eraseblocks = { {64 * 1024, 64} },
12546 .block_erase = spi_block_erase_d8,
12547 }, {
12548 .eraseblocks = { {4 * 1024 * 1024, 1} },
12549 .block_erase = spi_block_erase_60,
12550 }, {
12551 .eraseblocks = { {4 * 1024 * 1024, 1} },
12552 .block_erase = spi_block_erase_c7,
12553 }
12554 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012555 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012556 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012557 .write = spi_chip_write_256,
12558 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012559 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012560 },
12561
12562 {
12563 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012564 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012565 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012566 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012567 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012568 .total_size = 8192,
12569 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012570 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012571 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012572 .probe = probe_spi_rdid,
12573 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012574 .block_erasers =
12575 {
12576 {
12577 .eraseblocks = { {4 * 1024, 2048} },
12578 .block_erase = spi_block_erase_20,
12579 }, {
12580 .eraseblocks = { {32 * 1024, 256} },
12581 .block_erase = spi_block_erase_52,
12582 }, {
12583 .eraseblocks = { {64 * 1024, 128} },
12584 .block_erase = spi_block_erase_d8,
12585 }, {
12586 .eraseblocks = { {8 * 1024 * 1024, 1} },
12587 .block_erase = spi_block_erase_60,
12588 }, {
12589 .eraseblocks = { {8 * 1024 * 1024, 1} },
12590 .block_erase = spi_block_erase_c7,
12591 }
12592 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012593 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012594 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012595 .write = spi_chip_write_256,
12596 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012597 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012598 },
12599
12600 {
12601 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012602 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012603 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012604 .manufacture_id = WINBOND_ID,
12605 .model_id = WINBOND_W29C010,
12606 .total_size = 128,
12607 .page_size = 128,
12608 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012609 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012610 .probe = probe_w29ee011,
12611 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12612 .block_erasers =
12613 {
12614 {
12615 .eraseblocks = { {128 * 1024, 1} },
12616 .block_erase = erase_chip_block_jedec,
12617 }
12618 },
12619 .write = write_jedec,
12620 .read = read_memmapped,
12621 },
12622
12623 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12624 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012625 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012626 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012627 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012628 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012629 .total_size = 128,
12630 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012631 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012633 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012634 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012635 .block_erasers =
12636 {
12637 {
12638 .eraseblocks = { {128 * 1024, 1} },
12639 .block_erase = erase_chip_block_jedec,
12640 }
12641 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012642 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012643 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012644 },
12645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012646 {
12647 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012648 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012649 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012650 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012651 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012652 .total_size = 256,
12653 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012654 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012655 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012656 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012657 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012658 .block_erasers =
12659 {
12660 {
12661 .eraseblocks = { {256 * 1024, 1} },
12662 .block_erase = erase_chip_block_jedec,
12663 }
12664 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012665 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012667 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012668 },
12669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012670 {
12671 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012672 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012673 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012674 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012675 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012676 .total_size = 512,
12677 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012678 .feature_bits = FEATURE_LONG_RESET,
12679 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012680 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012681 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012682 .block_erasers =
12683 {
12684 {
12685 .eraseblocks = { {512 * 1024, 1} },
12686 .block_erase = erase_chip_block_jedec,
12687 }
12688 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012689 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012690 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012691 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012692 },
12693
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012694 {
12695 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012696 .name = "W39F010",
12697 .bustype = BUS_PARALLEL,
12698 .manufacture_id = WINBOND_ID,
12699 .model_id = WINBOND_W39F010,
12700 .total_size = 128,
12701 .page_size = 4 * 1024,
12702 .feature_bits = FEATURE_EITHER_RESET,
12703 .tested = TEST_OK_PREW,
12704 .probe = probe_jedec,
12705 .probe_timing = 10,
12706 .block_erasers =
12707 {
12708 {
12709 .eraseblocks = { {4 * 1024, 32} },
12710 .block_erase = erase_block_jedec,
12711 }, {
12712 .eraseblocks = { {128 * 1024, 1} },
12713 .block_erase = erase_chip_block_jedec,
12714 }
12715 },
12716 .printlock = printlock_w39f010,
12717 .write = write_jedec_1,
12718 .read = read_memmapped,
12719 .voltage = {4500, 5500},
12720 },
12721
12722 {
12723 .vendor = "Winbond",
12724 .name = "W39L010",
12725 .bustype = BUS_PARALLEL,
12726 .manufacture_id = WINBOND_ID,
12727 .model_id = WINBOND_W39L010,
12728 .total_size = 128,
12729 .page_size = 4 * 1024,
12730 .feature_bits = FEATURE_EITHER_RESET,
12731 .tested = TEST_UNTESTED,
12732 .probe = probe_jedec,
12733 .probe_timing = 10,
12734 .block_erasers =
12735 {
12736 {
12737 .eraseblocks = { {4 * 1024, 32} },
12738 .block_erase = erase_block_jedec,
12739 }, {
12740 .eraseblocks = { {128 * 1024, 1} },
12741 .block_erase = erase_chip_block_jedec,
12742 }
12743 },
12744 .printlock = printlock_w39l010,
12745 .write = write_jedec_1,
12746 .read = read_memmapped,
12747 .voltage = {3000, 3600},
12748 },
12749
12750 {
12751 .vendor = "Winbond",
12752 .name = "W39L020",
12753 .bustype = BUS_PARALLEL,
12754 .manufacture_id = WINBOND_ID,
12755 .model_id = WINBOND_W39L020,
12756 .total_size = 256,
12757 .page_size = 4 * 1024,
12758 .feature_bits = FEATURE_EITHER_RESET,
12759 .tested = TEST_UNTESTED,
12760 .probe = probe_jedec,
12761 .probe_timing = 10,
12762 .block_erasers =
12763 {
12764 {
12765 .eraseblocks = { {4 * 1024, 64} },
12766 .block_erase = erase_block_jedec,
12767 }, {
12768 .eraseblocks = { {64 * 1024, 4} },
12769 .block_erase = erase_sector_jedec,
12770 }, {
12771 .eraseblocks = { {256 * 1024, 1} },
12772 .block_erase = erase_chip_block_jedec,
12773 }
12774 },
12775 .printlock = printlock_w39l020,
12776 .write = write_jedec_1,
12777 .read = read_memmapped,
12778 .voltage = {3000, 3600},
12779 },
12780
12781 {
12782 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012783 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012784 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012785 .manufacture_id = WINBOND_ID,
12786 .model_id = WINBOND_W39L040,
12787 .total_size = 512,
12788 .page_size = 64 * 1024,
12789 .feature_bits = FEATURE_EITHER_RESET,
12790 .tested = TEST_OK_PR,
12791 .probe = probe_jedec,
12792 .probe_timing = 10,
12793 .block_erasers =
12794 {
12795 {
12796 .eraseblocks = { {4 * 1024, 128} },
12797 .block_erase = erase_block_jedec,
12798 }, {
12799 .eraseblocks = { {64 * 1024, 8} },
12800 .block_erase = erase_sector_jedec,
12801 }, {
12802 .eraseblocks = { {512 * 1024, 1} },
12803 .block_erase = erase_chip_block_jedec,
12804 }
12805 },
12806 .printlock = printlock_w39l040,
12807 .write = write_jedec_1,
12808 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012809 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012810 },
12811
12812 {
12813 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012814 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012815 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012816 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012817 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012818 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012819 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012820 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012821 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012822 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012823 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012824 .block_erasers =
12825 {
12826 {
12827 .eraseblocks = { {64 * 1024, 8} },
12828 .block_erase = erase_sector_jedec,
12829 }, {
12830 .eraseblocks = { {512 * 1024, 1} },
12831 .block_erase = erase_chip_block_jedec,
12832 }
12833 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012834 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012835 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012836 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012837 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012838 },
12839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012840 {
12841 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012842 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012843 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012844 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012845 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012846 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012847 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012848 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012849 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012850 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012851 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012852 .block_erasers =
12853 {
12854 {
12855 .eraseblocks = { {64 * 1024, 8} },
12856 .block_erase = erase_sector_jedec,
12857 }, {
12858 .eraseblocks = { {512 * 1024, 1} },
12859 .block_erase = erase_chip_block_jedec,
12860 }
12861 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012862 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012863 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012865 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012866 },
12867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012868 {
12869 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012870 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012871 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012872 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012873 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012874 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012875 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012876 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012877 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012878 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012879 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012880 .block_erasers =
12881 {
12882 {
12883 .eraseblocks = { {64 * 1024, 8} },
12884 .block_erase = erase_sector_jedec,
12885 }, {
12886 .eraseblocks = { {512 * 1024, 1} },
12887 .block_erase = erase_chip_block_jedec,
12888 }
12889 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012890 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012891 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012893 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012894 },
12895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012896 {
12897 .vendor = "Winbond",
12898 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012899 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012900 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012901 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012902 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012903 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012904 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012905 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012906 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012907 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012908 .block_erasers =
12909 {
12910 {
12911 .eraseblocks = { {4 * 1024, 128} },
12912 .block_erase = erase_block_jedec,
12913 }, {
12914 .eraseblocks = { {64 * 1024, 8} },
12915 .block_erase = erase_sector_jedec,
12916 }, {
12917 .eraseblocks = { {512 * 1024, 1} },
12918 .block_erase = erase_chip_block_jedec,
12919 }
12920 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012921 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012922 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012923 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012925 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012926 },
12927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012928 {
12929 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012930 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012931 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012932 .manufacture_id = WINBOND_ID,
12933 .model_id = WINBOND_W39V040B,
12934 .total_size = 512,
12935 .page_size = 64 * 1024,
12936 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012937 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012938 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012939 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012940 .block_erasers =
12941 {
12942 {
12943 .eraseblocks = { {64 * 1024, 8} },
12944 .block_erase = erase_sector_jedec,
12945 }, {
12946 .eraseblocks = { {512 * 1024, 1} },
12947 .block_erase = erase_chip_block_jedec,
12948 }
12949 },
12950 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012951 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012952 .write = write_jedec_1,
12953 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012954 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012955 },
12956
12957 {
12958 .vendor = "Winbond",
12959 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012960 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012961 .manufacture_id = WINBOND_ID,
12962 .model_id = WINBOND_W39V040C,
12963 .total_size = 512,
12964 .page_size = 64 * 1024,
12965 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012966 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012967 .probe = probe_jedec,
12968 .probe_timing = 10,
12969 .block_erasers =
12970 {
12971 {
12972 .eraseblocks = { {64 * 1024, 8} },
12973 .block_erase = erase_sector_jedec,
12974 }, {
12975 .eraseblocks = { {512 * 1024, 1} },
12976 .block_erase = erase_chip_block_jedec,
12977 }
12978 },
12979 .printlock = printlock_w39v040fc,
12980 .write = write_jedec_1,
12981 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012982 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012983 },
12984
12985 {
12986 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012987 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012988 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012989 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012990 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012991 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012992 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012993 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012994 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012995 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012996 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012997 .block_erasers =
12998 {
12999 {
13000 .eraseblocks = { {64 * 1024, 16} },
13001 .block_erase = erase_sector_jedec,
13002 }, {
13003 .eraseblocks = { {1024 * 1024, 1} },
13004 .block_erase = erase_chip_block_jedec,
13005 }
13006 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013007 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000013008 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013009 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013010 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013011 },
13012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013013 {
13014 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013015 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013016 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013017 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013018 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013019 .total_size = 256,
13020 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013021 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013022 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013023 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013024 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013025 .block_erasers =
13026 {
13027 {
13028 .eraseblocks = {
13029 {128 * 1024, 1},
13030 {96 * 1024, 1},
13031 {8 * 1024, 2},
13032 {16 * 1024, 1},
13033 },
13034 .block_erase = erase_sector_jedec,
13035 }, {
13036 .eraseblocks = { {256 * 1024, 1} },
13037 .block_erase = erase_chip_block_jedec,
13038 }
13039 },
Sean Nelson35727f72010-01-28 23:55:12 +000013040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013042 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013043 },
13044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013045 {
13046 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013047 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013048 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013049 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013050 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013051 .total_size = 256,
13052 .page_size = 128,
13053 .feature_bits = FEATURE_EITHER_RESET,
13054 .tested = TEST_OK_PROBE,
13055 .probe = probe_jedec,
13056 .probe_timing = 10,
13057 .block_erasers =
13058 {
13059 {
13060 .eraseblocks = { {256 * 1024, 1} },
13061 .block_erase = erase_chip_block_jedec,
13062 }
13063 },
13064 .write = write_jedec_1,
13065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013066 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013067 },
13068
13069 {
13070 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013071 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013072 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013073 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013074 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013075 .total_size = 256,
13076 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013077 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013078 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013079 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013080 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013081 .block_erasers =
13082 {
13083 {
13084 .eraseblocks = {
13085 {64 * 1024, 3},
13086 {32 * 1024, 1},
13087 {8 * 1024, 2},
13088 {16 * 1024, 1},
13089 },
13090 .block_erase = erase_sector_jedec,
13091 }, {
13092 .eraseblocks = { {256 * 1024, 1} },
13093 .block_erase = erase_chip_block_jedec,
13094 }
13095 },
Sean Nelson35727f72010-01-28 23:55:12 +000013096 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013098 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013099 },
13100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013101 {
13102 .vendor = "Winbond",
13103 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013104 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013105 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013106 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013107 .total_size = 256,
13108 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013109 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013110 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013111 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013112 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013113 .block_erasers =
13114 {
13115 {
13116 .eraseblocks = {
13117 {64 * 1024, 3},
13118 {32 * 1024, 1},
13119 {8 * 1024, 2},
13120 {16 * 1024, 1},
13121 },
13122 .block_erase = erase_sector_jedec,
13123 }, {
13124 .eraseblocks = { {256 * 1024, 1} },
13125 .block_erase = erase_chip_block_jedec,
13126 }
13127 },
Sean Nelson35727f72010-01-28 23:55:12 +000013128 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013129 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013130 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013131 },
13132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013133 {
13134 .vendor = "Winbond",
13135 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013136 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013137 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013138 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013139 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013140 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013141 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013142 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013143 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013144 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013145 .block_erasers =
13146 {
13147 {
13148 .eraseblocks = { {64 * 1024, 16}, },
13149 .block_erase = erase_sector_jedec,
13150 }, {
13151 .eraseblocks = { {1024 * 1024, 1} },
13152 .block_erase = erase_chip_block_jedec,
13153 }
13154 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013155 .printlock = printlock_w39v080fa,
13156 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000013157 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013158 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013159 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013160 },
13161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013162 {
13163 .vendor = "Winbond",
13164 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013165 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013166 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013167 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013168 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013169 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013170 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013171 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013172 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013173 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013174 .block_erasers =
13175 {
13176 {
13177 .eraseblocks = { {64 * 1024, 8}, },
13178 .block_erase = erase_sector_jedec,
13179 }, {
13180 .eraseblocks = { {512 * 1024, 1} },
13181 .block_erase = erase_chip_block_jedec,
13182 }
13183 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013184 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013186 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013187 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013188 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013189
13190 {
13191 .vendor = "Unknown",
13192 .name = "SFDP-capable chip",
13193 .bustype = BUS_SPI,
13194 .manufacture_id = GENERIC_MANUF_ID,
13195 .model_id = SFDP_DEVICE_ID,
13196 /* We present our own "report this" text hence we do not
13197 * want the default "This flash part has status UNTESTED..."
13198 * text to be printed. */
13199 .tested = TEST_OK_PREW,
13200 .probe = probe_spi_sfdp,
13201 .unlock = spi_disable_blockprotect, /* is this safe? */
13202 .read = spi_chip_read,
13203 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013204 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013205 /* Everything below will be set by the probing function. */
13206 .write = NULL,
13207 .total_size = 0,
13208 .page_size = 0,
13209 .feature_bits = 0,
13210 .block_erasers = {},
13211 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013213 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013214 .vendor = "Programmer",
13215 .name = "Opaque flash chip",
13216 .bustype = BUS_PROG,
13217 .manufacture_id = PROGMANUF_ID,
13218 .model_id = PROGDEV_ID,
13219 .total_size = 0,
13220 .page_size = 256,
13221 /* probe is assumed to work, rest will be filled in by probe */
13222 .tested = TEST_OK_PROBE,
13223 .probe = probe_opaque,
13224 /* eraseblock sizes will be set by the probing function */
13225 .block_erasers =
13226 {
13227 {
13228 .block_erase = erase_opaque,
13229 }
13230 },
13231 .write = write_opaque,
13232 .read = read_opaque,
13233 },
13234
13235 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013236 .vendor = "AMIC",
13237 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013238 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013239 .manufacture_id = AMIC_ID,
13240 .model_id = GENERIC_DEVICE_ID,
13241 .total_size = 0,
13242 .page_size = 256,
13243 .tested = TEST_BAD_PREW,
13244 .probe = probe_spi_rdid4,
13245 .probe_timing = TIMING_ZERO,
13246 .write = NULL,
13247 .read = NULL,
13248 },
13249
13250 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013251 .vendor = "Atmel",
13252 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013253 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013254 .manufacture_id = ATMEL_ID,
13255 .model_id = GENERIC_DEVICE_ID,
13256 .total_size = 0,
13257 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013258 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013259 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013260 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013261 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013262 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013263 },
13264
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013265 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013266 .vendor = "Eon",
13267 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013268 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013269 .manufacture_id = EON_ID_NOPREFIX,
13270 .model_id = GENERIC_DEVICE_ID,
13271 .total_size = 0,
13272 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013273 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013274 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013275 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013276 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013277 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013278 },
13279
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013280 {
13281 .vendor = "Macronix",
13282 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013283 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013284 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013285 .model_id = GENERIC_DEVICE_ID,
13286 .total_size = 0,
13287 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013288 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013289 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013290 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013291 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013292 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013293 },
13294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013295 {
13296 .vendor = "PMC",
13297 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013298 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013299 .manufacture_id = PMC_ID,
13300 .model_id = GENERIC_DEVICE_ID,
13301 .total_size = 0,
13302 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013303 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013304 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013305 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013306 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013307 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013308 },
13309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013310 {
13311 .vendor = "SST",
13312 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013313 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013314 .manufacture_id = SST_ID,
13315 .model_id = GENERIC_DEVICE_ID,
13316 .total_size = 0,
13317 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013318 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013319 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013320 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013321 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013322 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013323 },
13324
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013325 {
13326 .vendor = "ST",
13327 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013328 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013329 .manufacture_id = ST_ID,
13330 .model_id = GENERIC_DEVICE_ID,
13331 .total_size = 0,
13332 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013333 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013335 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013336 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013337 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013338 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013339
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013340 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013341 .vendor = "Sanyo",
13342 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013343 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013344 .manufacture_id = SANYO_ID,
13345 .model_id = GENERIC_DEVICE_ID,
13346 .total_size = 0,
13347 .page_size = 256,
13348 .tested = TEST_BAD_PREW,
13349 .probe = probe_spi_rdid,
13350 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013351 .write = NULL,
13352 .read = NULL,
13353 },
13354
13355 {
Stefan Taunereb582572012-09-21 12:52:50 +000013356 .vendor = "Winbond",
13357 .name = "unknown Winbond (ex Nexcom) SPI chip",
13358 .bustype = BUS_SPI,
13359 .manufacture_id = WINBOND_NEX_ID,
13360 .model_id = GENERIC_DEVICE_ID,
13361 .total_size = 0,
13362 .page_size = 256,
13363 .tested = TEST_BAD_PREW,
13364 .probe = probe_spi_rdid,
13365 .probe_timing = TIMING_ZERO,
13366 .write = NULL,
13367 .read = NULL,
13368 },
13369
13370 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013371 .vendor = "Generic",
13372 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013373 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013374 .manufacture_id = GENERIC_MANUF_ID,
13375 .model_id = GENERIC_DEVICE_ID,
13376 .total_size = 0,
13377 .page_size = 256,
13378 .tested = TEST_BAD_PREW,
13379 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013380 .write = NULL,
13381 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013382
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013383 {
13384 .vendor = "Generic",
13385 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013386 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013387 .manufacture_id = GENERIC_MANUF_ID,
13388 .model_id = GENERIC_DEVICE_ID,
13389 .total_size = 0,
13390 .page_size = 256,
13391 .tested = TEST_BAD_PREW,
13392 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013393 .write = NULL,
13394 },
13395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013396 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013397};