blob: a1166e07aadaff8de5900eca4d27838816410445 [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 Tauner12f3d512014-05-27 21:27:27 +0000567 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000601 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000636 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000671 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000706 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000741 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000781 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000816 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000851 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000889 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000927 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000959 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000991 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001023 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001055 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001087 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001119 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001278 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001279 .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,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001385 .tested = TEST_OK_PR,
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 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001398 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001399 .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",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001712 .name = "AT25DL081",
1713 .bustype = BUS_SPI,
1714 .manufacture_id = ATMEL_ID,
1715 .model_id = ATMEL_AT25DF081,
1716 .total_size = 1024,
1717 .page_size = 256,
1718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 256} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 32} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 16} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {1 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {1 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
1743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1744 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1745 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1746 .voltage = {1650, 1950},
1747 },
1748
1749 {
1750 .vendor = "Atmel",
1751 .name = "AT25DL161",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25DL161,
1755 .total_size = 2048,
1756 .page_size = 256,
1757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1759 .tested = TEST_UNTESTED,
1760 .probe = probe_spi_rdid,
1761 .probe_timing = TIMING_ZERO,
1762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 512} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 64} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 32} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {2 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {2 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
1781 .printlock = spi_prettyprint_status_register_at25df_sec,
1782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1783 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1784 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1785 .voltage = {1650, 1950},
1786 },
1787
1788 {
1789 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001790 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001794 .total_size = 2048,
1795 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001796 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001798 .tested = TEST_UNTESTED,
1799 .probe = probe_spi_rdid,
1800 .probe_timing = TIMING_ZERO,
1801 .block_erasers =
1802 {
1803 {
1804 .eraseblocks = { {4 * 1024, 512} },
1805 .block_erase = spi_block_erase_20,
1806 }, {
1807 .eraseblocks = { {32 * 1024, 64} },
1808 .block_erase = spi_block_erase_52,
1809 }, {
1810 .eraseblocks = { {64 * 1024, 32} },
1811 .block_erase = spi_block_erase_d8,
1812 }, {
1813 .eraseblocks = { {2 * 1024 * 1024, 1} },
1814 .block_erase = spi_block_erase_60,
1815 }, {
1816 .eraseblocks = { {2 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_c7,
1818 }
1819 },
1820 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001821 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001822 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001824 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001825 },
1826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 {
1828 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001829 .name = "AT25F512",
1830 .bustype = BUS_SPI,
1831 .manufacture_id = ATMEL_ID,
1832 .model_id = ATMEL_AT25F512,
1833 .total_size = 64,
1834 .page_size = 256,
1835 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001836 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001837 .probe = probe_spi_at25f,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {32 * 1024, 2} },
1843 .block_erase = spi_block_erase_52,
1844 }, {
1845 .eraseblocks = { {64 * 1024, 1} },
1846 .block_erase = spi_block_erase_62,
1847 }
1848 },
1849 .printlock = spi_prettyprint_status_register_at25f,
1850 .unlock = spi_disable_blockprotect_at25f,
1851 .write = spi_chip_write_256,
1852 .read = spi_chip_read,
1853 .voltage = {2700, 3600},
1854 },
1855
1856 {
1857 .vendor = "Atmel",
1858 .name = "AT25F512A",
1859 .bustype = BUS_SPI,
1860 .manufacture_id = ATMEL_ID,
1861 .model_id = ATMEL_AT25F512A,
1862 .total_size = 64,
1863 .page_size = 128,
1864 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001865 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001866 .probe = probe_spi_at25f,
1867 .probe_timing = TIMING_ZERO,
1868 .block_erasers =
1869 {
1870 {
1871 .eraseblocks = { {32 * 1024, 2} },
1872 .block_erase = spi_block_erase_52,
1873 }, {
1874 .eraseblocks = { {64 * 1024, 1} },
1875 .block_erase = spi_block_erase_62,
1876 }
1877 },
1878 .printlock = spi_prettyprint_status_register_at25f512a,
1879 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1880 .unlock = spi_disable_blockprotect_at25f512a,
1881 .write = spi_chip_write_256,
1882 .read = spi_chip_read,
1883 .voltage = {2700, 3600},
1884 },
1885
1886 {
1887 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001888 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 64,
1893 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001894 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .tested = TEST_UNTESTED,
1897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001898 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001899 .block_erasers =
1900 {
1901 {
1902 .eraseblocks = { {4 * 1024, 16} },
1903 .block_erase = spi_block_erase_20,
1904 }, {
1905 .eraseblocks = { {32 * 1024, 2} },
1906 .block_erase = spi_block_erase_52,
1907 }, {
1908 .eraseblocks = { {32 * 1024, 2} },
1909 .block_erase = spi_block_erase_d8,
1910 }, {
1911 .eraseblocks = { {64 * 1024, 1} },
1912 .block_erase = spi_block_erase_60,
1913 }, {
1914 .eraseblocks = { {64 * 1024, 1} },
1915 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001916 }, {
1917 .eraseblocks = { {64 * 1024, 1} },
1918 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001919 }
1920 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001921 .printlock = spi_prettyprint_status_register_at25f512b,
1922 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001923 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001926 },
1927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 {
1929 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001930 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1931 * All other properties seem to be the same.*/
1932 .name = "AT25F1024(A)",
1933 .bustype = BUS_SPI,
1934 .manufacture_id = ATMEL_ID,
1935 .model_id = ATMEL_AT25F1024,
1936 .total_size = 128,
1937 .page_size = 256,
1938 .feature_bits = FEATURE_WRSR_WREN,
1939 .tested = TEST_OK_PREW,
1940 .probe = probe_spi_at25f,
1941 .probe_timing = TIMING_ZERO,
1942 .block_erasers =
1943 {
1944 {
1945 .eraseblocks = { {32 * 1024, 4} },
1946 .block_erase = spi_block_erase_52,
1947 }, {
1948 .eraseblocks = { {128 * 1024, 1} },
1949 .block_erase = spi_block_erase_62,
1950 }
1951 },
1952 .printlock = spi_prettyprint_status_register_at25f,
1953 .unlock = spi_disable_blockprotect_at25f,
1954 .write = spi_chip_write_256,
1955 .read = spi_chip_read,
1956 .voltage = {2700, 3600},
1957 },
1958
1959 {
1960 .vendor = "Atmel",
1961 .name = "AT25F2048",
1962 .bustype = BUS_SPI,
1963 .manufacture_id = ATMEL_ID,
1964 .model_id = ATMEL_AT25F2048,
1965 .total_size = 256,
1966 .page_size = 256,
1967 .feature_bits = FEATURE_WRSR_WREN,
1968 .tested = TEST_UNTESTED,
1969 .probe = probe_spi_at25f,
1970 .probe_timing = TIMING_ZERO,
1971 .block_erasers =
1972 {
1973 {
1974 .eraseblocks = { {64 * 1024, 4} },
1975 .block_erase = spi_block_erase_52,
1976 }, {
1977 .eraseblocks = { {256 * 1024, 1} },
1978 .block_erase = spi_block_erase_62,
1979 }
1980 },
1981 .printlock = spi_prettyprint_status_register_at25f,
1982 .unlock = spi_disable_blockprotect_at25f,
1983 .write = spi_chip_write_256,
1984 .read = spi_chip_read,
1985 .voltage = {2700, 3600},
1986 },
1987
1988 {
1989 .vendor = "Atmel",
1990 .name = "AT25F4096",
1991 .bustype = BUS_SPI,
1992 .manufacture_id = ATMEL_ID,
1993 .model_id = ATMEL_AT25F4096,
1994 .total_size = 512,
1995 .page_size = 256,
1996 .feature_bits = FEATURE_WRSR_WREN,
1997 .tested = TEST_UNTESTED,
1998 .probe = probe_spi_at25f,
1999 .probe_timing = TIMING_ZERO,
2000 .block_erasers =
2001 {
2002 {
2003 .eraseblocks = { {64 * 1024, 8} },
2004 .block_erase = spi_block_erase_52,
2005 }, {
2006 .eraseblocks = { {512 * 1024, 1} },
2007 .block_erase = spi_block_erase_62,
2008 }
2009 },
2010 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002011 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2012 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002013 .write = spi_chip_write_256,
2014 .read = spi_chip_read,
2015 .voltage = {2700, 3600},
2016 },
2017
2018 {
2019 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002020 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002023 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002024 .total_size = 128,
2025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002026 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002027 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002029 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002030 .block_erasers =
2031 {
2032 {
2033 .eraseblocks = { {4 * 1024, 32} },
2034 .block_erase = spi_block_erase_20,
2035 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002036 .eraseblocks = { {4 * 1024, 32} },
2037 .block_erase = spi_block_erase_d7,
2038 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002039 .eraseblocks = { {32 * 1024, 4} },
2040 .block_erase = spi_block_erase_52,
2041 }, {
2042 .eraseblocks = { {32 * 1024, 4} },
2043 .block_erase = spi_block_erase_d8,
2044 }, {
2045 .eraseblocks = { {128 * 1024, 1} },
2046 .block_erase = spi_block_erase_60,
2047 }, {
2048 .eraseblocks = { {128 * 1024, 1} },
2049 .block_erase = spi_block_erase_c7,
2050 }
2051 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002052 .printlock = spi_prettyprint_status_register_at25fs010,
2053 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002054 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002056 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002057 },
2058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 {
2060 .vendor = "Atmel",
2061 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002062 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002064 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .total_size = 512,
2066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002067 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .tested = TEST_UNTESTED,
2069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002070 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002071 .block_erasers =
2072 {
2073 {
2074 .eraseblocks = { {4 * 1024, 128} },
2075 .block_erase = spi_block_erase_20,
2076 }, {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {64 * 1024, 8} },
2081 .block_erase = spi_block_erase_d8,
2082 }, {
2083 .eraseblocks = { {512 * 1024, 1} },
2084 .block_erase = spi_block_erase_60,
2085 }, {
2086 .eraseblocks = { {512 * 1024, 1} },
2087 .block_erase = spi_block_erase_c7,
2088 }
2089 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002090 .printlock = spi_prettyprint_status_register_at25fs040,
2091 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002092 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002094 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002095 },
2096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 {
2098 .vendor = "Atmel",
2099 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 512,
2104 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002105 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002106 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002108 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002109 .block_erasers =
2110 {
2111 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002112 .eraseblocks = { {256, 2048} },
2113 .block_erase = spi_block_erase_81,
2114 }, {
2115 .eraseblocks = { {2 * 1024, 256} },
2116 .block_erase = spi_block_erase_50,
2117 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002121 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002122 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002123 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002124 .write = spi_chip_write_1,
2125 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002126 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002127 },
2128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 {
2130 .vendor = "Atmel",
2131 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002132 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002134 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .total_size = 1024,
2136 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002137 .feature_bits = FEATURE_WRSR_WREN,
2138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002140 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002141 .block_erasers =
2142 {
2143 {
2144 .eraseblocks = { {4 * 1024, 256} },
2145 .block_erase = spi_block_erase_20,
2146 }, {
2147 .eraseblocks = { {32 * 1024, 32} },
2148 .block_erase = spi_block_erase_52,
2149 }, {
2150 .eraseblocks = { {64 * 1024, 16} },
2151 .block_erase = spi_block_erase_d8,
2152 }, {
2153 .eraseblocks = { {1024 * 1024, 1} },
2154 .block_erase = spi_block_erase_60,
2155 }, {
2156 .eraseblocks = { {1024 * 1024, 1} },
2157 .block_erase = spi_block_erase_c7,
2158 }
2159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002160 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002161 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002162 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002165 },
2166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 {
2168 .vendor = "Atmel",
2169 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002172 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .total_size = 2048,
2174 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002178 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002179 .block_erasers =
2180 {
2181 {
2182 .eraseblocks = { {4 * 1024, 512} },
2183 .block_erase = spi_block_erase_20,
2184 }, {
2185 .eraseblocks = { {32 * 1024, 64} },
2186 .block_erase = spi_block_erase_52,
2187 }, {
2188 .eraseblocks = { {64 * 1024, 32} },
2189 .block_erase = spi_block_erase_d8,
2190 }, {
2191 .eraseblocks = { {2 * 1024 * 1024, 1} },
2192 .block_erase = spi_block_erase_60,
2193 }, {
2194 .eraseblocks = { {2 * 1024 * 1024, 1} },
2195 .block_erase = spi_block_erase_c7,
2196 }
2197 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002198 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002199 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002203 },
2204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 {
2206 .vendor = "Atmel",
2207 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002208 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002210 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 .total_size = 2048,
2212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002216 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002217 .block_erasers =
2218 {
2219 {
2220 .eraseblocks = { {4 * 1024, 512} },
2221 .block_erase = spi_block_erase_20,
2222 }, {
2223 .eraseblocks = { {32 * 1024, 64} },
2224 .block_erase = spi_block_erase_52,
2225 }, {
2226 .eraseblocks = { {64 * 1024, 32} },
2227 .block_erase = spi_block_erase_d8,
2228 }, {
2229 .eraseblocks = { {2 * 1024 * 1024, 1} },
2230 .block_erase = spi_block_erase_60,
2231 }, {
2232 .eraseblocks = { {2 * 1024 * 1024, 1} },
2233 .block_erase = spi_block_erase_c7,
2234 }
2235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002236 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002237 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002238 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002241 },
2242
2243 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 /*{
2245 .vendor = "Atmel",
2246 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002249 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002250 .total_size = 4096,
2251 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002252 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .tested = TEST_UNTESTED,
2254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002255 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002256 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002258 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002259 .read = spi_chip_read,
2260 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 {
2263 .vendor = "Atmel",
2264 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002267 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .total_size = 512,
2269 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002270 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002271 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002273 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002274 .block_erasers =
2275 {
2276 {
2277 .eraseblocks = { {4 * 1024, 128} },
2278 .block_erase = spi_block_erase_20,
2279 }, {
2280 .eraseblocks = { {32 * 1024, 16} },
2281 .block_erase = spi_block_erase_52,
2282 }, {
2283 .eraseblocks = { {64 * 1024, 8} },
2284 .block_erase = spi_block_erase_d8,
2285 }, {
2286 .eraseblocks = { {512 * 1024, 1} },
2287 .block_erase = spi_block_erase_60,
2288 }, {
2289 .eraseblocks = { {512 * 1024, 1} },
2290 .block_erase = spi_block_erase_c7,
2291 }
2292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 .write = NULL /* Incompatible Page write */,
2295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002297 },
2298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 {
2300 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002301 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002302 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002303 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002304 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002305 .total_size = 64,
2306 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002307 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002308 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002309 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002310 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002311 .block_erasers =
2312 {
2313 {
2314 .eraseblocks = { {64 * 1024, 1} },
2315 .block_erase = erase_chip_block_jedec,
2316 }
2317 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002318 .write = write_jedec,
2319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002320 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002321 },
2322
2323 {
2324 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002325 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002326 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002328 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002329 .total_size = 128,
2330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002332 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002333 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002334 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002335 .block_erasers =
2336 {
2337 {
2338 .eraseblocks = { {128 * 1024, 1} },
2339 .block_erase = erase_chip_block_jedec,
2340 }
2341 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002342 .write = write_jedec, /* FIXME */
2343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002344 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002345 },
2346
2347 {
2348 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002352 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .total_size = 256,
2354 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002355 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002357 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002358 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002359 .block_erasers =
2360 {
2361 {
2362 .eraseblocks = { {256 * 1024, 1} },
2363 .block_erase = erase_chip_block_jedec,
2364 }
2365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002369 },
2370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 {
2372 .vendor = "Atmel",
2373 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002379 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .tested = TEST_UNTESTED,
2381 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002382 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {512 * 1024, 1} },
2387 .block_erase = erase_chip_block_jedec,
2388 }
2389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002393 },
2394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 {
2396 .vendor = "Atmel",
2397 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002398 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002399 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002400 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002401 .total_size = 16896 /* No power of two sizes */,
2402 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002403 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002404 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2405 .feature_bits = FEATURE_OTP,
2406 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002408 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002409 .block_erasers =
2410 {
2411 {
2412 .eraseblocks = {
2413 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2414 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2415 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2416 },
2417 .block_erase = spi_erase_at45cs_sector,
2418 }
2419 },
2420 .printlock = spi_prettyprint_status_register_plain,
2421 .gran = write_gran_1056bytes,
2422 .write = spi_write_at45db,
2423 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002424 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002427 {
2428 .vendor = "Atmel",
2429 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002430 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002432 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002433 .total_size = 128 /* or 132, determined from status register */,
2434 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002435 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002436 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2437 .feature_bits = FEATURE_OTP,
2438 .tested = TEST_UNTESTED,
2439 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002440 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002441 .block_erasers =
2442 {
2443 {
2444 .eraseblocks = { {256, 512} },
2445 .block_erase = spi_erase_at45db_page,
2446 }, {
2447 .eraseblocks = { {8 * 256, 512/8} },
2448 .block_erase = spi_erase_at45db_block,
2449 }, {
2450 .eraseblocks = {
2451 {8 * 256, 1},
2452 {120 * 256, 1},
2453 {128 * 256, 3},
2454 },
2455 .block_erase = spi_erase_at45db_sector
2456 }, {
2457 .eraseblocks = { {128 * 1024, 1} },
2458 .block_erase = spi_erase_at45db_chip,
2459 }
2460 },
2461 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2462 .printlock = spi_prettyprint_status_register_at45db,
2463 /* granularity will be set by the probing function. */
2464 .write = spi_write_at45db,
2465 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002466 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002467 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 {
2470 .vendor = "Atmel",
2471 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002472 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002473 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002474 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002475 .total_size = 256 /* or 264, determined from status register */,
2476 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002477 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002478 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2479 .feature_bits = FEATURE_OTP,
2480 .tested = TEST_UNTESTED,
2481 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002482 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002483 .block_erasers =
2484 {
2485 {
2486 .eraseblocks = { {256, 1024} },
2487 .block_erase = spi_erase_at45db_page,
2488 }, {
2489 .eraseblocks = { {8 * 256, 1024/8} },
2490 .block_erase = spi_erase_at45db_block,
2491 }, {
2492 .eraseblocks = {
2493 {8 * 256, 1},
2494 {120 * 256, 1},
2495 {128 * 256, 7},
2496 },
2497 .block_erase = spi_erase_at45db_sector
2498 }, {
2499 .eraseblocks = { {256 * 1024, 1} },
2500 .block_erase = spi_erase_at45db_chip,
2501 }
2502 },
2503 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2504 .printlock = spi_prettyprint_status_register_at45db,
2505 /* granularity will be set by the probing function. */
2506 .write = spi_write_at45db,
2507 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002509 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002511 {
2512 .vendor = "Atmel",
2513 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002514 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002516 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 .total_size = 512 /* or 528, determined from status register */,
2518 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002519 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2521 .feature_bits = FEATURE_OTP,
2522 .tested = TEST_OK_PREW,
2523 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002524 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002525 .block_erasers =
2526 {
2527 {
2528 .eraseblocks = { {256, 2048} },
2529 .block_erase = spi_erase_at45db_page,
2530 }, {
2531 .eraseblocks = { {8 * 256, 2048/8} },
2532 .block_erase = spi_erase_at45db_block,
2533 }, {
2534 .eraseblocks = {
2535 {8 * 256, 1},
2536 {248 * 256, 1},
2537 {256 * 256, 7},
2538 },
2539 .block_erase = spi_erase_at45db_sector
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_erase_at45db_chip,
2543 }
2544 },
2545 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2546 .printlock = spi_prettyprint_status_register_at45db,
2547 /* granularity will be set by the probing function. */
2548 .write = spi_write_at45db,
2549 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2550 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002551 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 {
2554 .vendor = "Atmel",
2555 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002556 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002558 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 .total_size = 1024 /* or 1056, determined from status register */,
2560 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002561 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2563 .feature_bits = FEATURE_OTP,
2564 .tested = TEST_UNTESTED,
2565 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {256, 4096} },
2571 .block_erase = spi_erase_at45db_page,
2572 }, {
2573 .eraseblocks = { {8 * 256, 4096/8} },
2574 .block_erase = spi_erase_at45db_block,
2575 }, {
2576 .eraseblocks = {
2577 {8 * 256, 1},
2578 {248 * 256, 1},
2579 {256 * 256, 15},
2580 },
2581 .block_erase = spi_erase_at45db_sector
2582 }, {
2583 .eraseblocks = { {1024 * 1024, 1} },
2584 .block_erase = spi_erase_at45db_chip,
2585 }
2586 },
2587 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2588 .printlock = spi_prettyprint_status_register_at45db,
2589 /* granularity will be set by the probing function. */
2590 .write = spi_write_at45db,
2591 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002592 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002593 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 {
2596 .vendor = "Atmel",
2597 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 .total_size = 2048 /* or 2112, determined from status register */,
2602 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002603 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002604 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2605 .feature_bits = FEATURE_OTP,
2606 .tested = TEST_OK_PREW,
2607 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002608 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {512, 4096} },
2613 .block_erase = spi_erase_at45db_page,
2614 }, {
2615 .eraseblocks = { {8 * 512, 4096/8} },
2616 .block_erase = spi_erase_at45db_block,
2617 }, {
2618 .eraseblocks = {
2619 {8 * 512, 1},
2620 {248 * 512, 1},
2621 {256 * 512, 15},
2622 },
2623 .block_erase = spi_erase_at45db_sector
2624 }, {
2625 .eraseblocks = { {2048 * 1024, 1} },
2626 .block_erase = spi_erase_at45db_chip,
2627 }
2628 },
2629 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2630 .printlock = spi_prettyprint_status_register_at45db,
2631 /* granularity will be set by the probing function. */
2632 .write = spi_write_at45db,
2633 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002634 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002635 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002637 {
2638 .vendor = "Atmel",
2639 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002641 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002642 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002643 .total_size = 4224 /* No power of two sizes */,
2644 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002645 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002646 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2647 .feature_bits = FEATURE_OTP,
2648 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002650 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002651 .block_erasers =
2652 {
2653 {
2654 .eraseblocks = { {528, 8192} },
2655 .block_erase = spi_erase_at45db_page,
2656 }, {
2657 .eraseblocks = { {8 * 528, 8192/8} },
2658 .block_erase = spi_erase_at45db_block,
2659 }, /* Although the datasheets describes sectors (which can be write protected)
2660 * there seems to be no erase functions for them.
2661 {
2662 .eraseblocks = {
2663 {8 * 528, 1},
2664 {120 * 528, 1},
2665 {128 * 528, 63},
2666 },
2667 .block_erase = spi_erase_at45db_sector
2668 }, */ {
2669 .eraseblocks = { {4224 * 1024, 1} },
2670 .block_erase = spi_erase_at45db_chip,
2671 }
2672 },
2673 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2674 .gran = write_gran_528bytes,
2675 .write = spi_write_at45db,
2676 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002678 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 {
2681 .vendor = "Atmel",
2682 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002684 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002685 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002686 .total_size = 4096 /* or 4224, determined from status register */,
2687 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002688 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002689 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002690 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 .tested = TEST_UNTESTED,
2692 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002693 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .block_erasers =
2695 {
2696 {
2697 .eraseblocks = { {512, 8192} },
2698 .block_erase = spi_erase_at45db_page,
2699 }, {
2700 .eraseblocks = { {8 * 512, 8192/8} },
2701 .block_erase = spi_erase_at45db_block,
2702 }, {
2703 .eraseblocks = {
2704 {8 * 512, 1},
2705 {120 * 512, 1},
2706 {128 * 512, 63},
2707 },
2708 .block_erase = spi_erase_at45db_sector
2709 }, {
2710 .eraseblocks = { {4096 * 1024, 1} },
2711 .block_erase = spi_erase_at45db_chip,
2712 }
2713 },
2714 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2715 .printlock = spi_prettyprint_status_register_at45db,
2716 /* granularity will be set by the probing function. */
2717 .write = spi_write_at45db,
2718 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2719 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2720 },
2721
2722 {
2723 .vendor = "Atmel",
2724 .name = "AT45DB321E",
2725 .bustype = BUS_SPI,
2726 .manufacture_id = ATMEL_ID,
2727 .model_id = ATMEL_AT45DB321C,
2728 .total_size = 4096 /* or 4224, determined from status register */,
2729 .page_size = 512 /* or 528, determined from status register */,
2730 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2731 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2732 .feature_bits = FEATURE_OTP,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_at45db,
2735 .probe_timing = TIMING_ZERO,
2736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = { {512, 8192} },
2740 .block_erase = spi_erase_at45db_page,
2741 }, {
2742 .eraseblocks = { {8 * 512, 8192/8} },
2743 .block_erase = spi_erase_at45db_block,
2744 }, {
2745 .eraseblocks = {
2746 {8 * 512, 1},
2747 {120 * 512, 1},
2748 {128 * 512, 63},
2749 },
2750 .block_erase = spi_erase_at45db_sector
2751 }, {
2752 .eraseblocks = { {4096 * 1024, 1} },
2753 .block_erase = spi_erase_at45db_chip,
2754 }
2755 },
2756 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2757 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2758 /* granularity will be set by the probing function. */
2759 .write = spi_write_at45db,
2760 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2761 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002762 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 {
2765 .vendor = "Atmel",
2766 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 .total_size = 8192 /* or 8448, determined from status register */,
2771 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
2776 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = { {1024, 8192} },
2782 .block_erase = spi_erase_at45db_page,
2783 }, {
2784 .eraseblocks = { {8 * 1024, 8192/8} },
2785 .block_erase = spi_erase_at45db_block,
2786 }, {
2787 .eraseblocks = {
2788 {8 * 1024, 1},
2789 {248 * 1024, 1},
2790 {256 * 1024, 31},
2791 },
2792 .block_erase = spi_erase_at45db_sector
2793 }, {
2794 .eraseblocks = { {8192 * 1024, 1} },
2795 .block_erase = spi_erase_at45db_chip,
2796 }
2797 },
2798 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2799 .printlock = spi_prettyprint_status_register_at45db,
2800 /* granularity will be set by the probing function. */
2801 .write = spi_write_at45db,
2802 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002803 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002804 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 {
2807 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002808 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002809 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002810 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002811 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002812 .total_size = 64,
2813 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002814 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002815 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002816 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {64 * 1024, 1} },
2822 .block_erase = erase_chip_block_jedec,
2823 }
2824 },
Sean Nelson35727f72010-01-28 23:55:12 +00002825 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002827 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002828 },
2829
2830 {
2831 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002832 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002834 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002835 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002836 .total_size = 256,
2837 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002838 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002839 .tested = TEST_UNTESTED,
2840 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = {
2846 {16 * 1024, 1},
2847 {8 * 1024, 2},
2848 {96 * 1024, 1},
2849 {128 * 1024, 1},
2850 },
2851 .block_erase = erase_sector_jedec,
2852 }, {
2853 .eraseblocks = { {256 * 1024, 1} },
2854 .block_erase = erase_chip_block_jedec,
2855 }
2856 },
Sean Nelson35727f72010-01-28 23:55:12 +00002857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002859 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002860 },
2861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002862 {
2863 .vendor = "Atmel",
2864 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002865 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002866 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002867 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 .total_size = 256,
2869 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002870 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002871 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002872 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002874 .block_erasers =
2875 {
2876 {
2877 .eraseblocks = {
2878 {128 * 1024, 1},
2879 {96 * 1024, 1},
2880 {8 * 1024, 2},
2881 {16 * 1024, 1},
2882 },
2883 .block_erase = erase_sector_jedec,
2884 }, {
2885 .eraseblocks = { {256 * 1024, 1} },
2886 .block_erase = erase_chip_block_jedec,
2887 }
2888 },
Sean Nelson35727f72010-01-28 23:55:12 +00002889 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002891 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002892 },
2893
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002894 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002895 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002896 .name = "AT49(H)F010",
2897 .bustype = BUS_PARALLEL,
2898 .manufacture_id = ATMEL_ID,
2899 .model_id = ATMEL_AT49F010,
2900 .total_size = 128,
2901 .page_size = 0, /* unused */
2902 .feature_bits = FEATURE_EITHER_RESET,
2903 .tested = TEST_OK_PREW,
2904 .probe = probe_jedec,
2905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {128 * 1024, 1} },
2910 .block_erase = erase_chip_block_jedec,
2911 }
2912 },
2913 .printlock = printlock_at49f,
2914 .write = write_jedec_1,
2915 .read = read_memmapped,
2916 .voltage = {4500, 5500},
2917 },
2918
2919 {
2920 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002921 .name = "AT49F020",
2922 .bustype = BUS_PARALLEL,
2923 .manufacture_id = ATMEL_ID,
2924 .model_id = ATMEL_AT49F020,
2925 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002926 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002927 .feature_bits = FEATURE_EITHER_RESET,
2928 .tested = TEST_OK_PRE,
2929 .probe = probe_jedec,
2930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 /* Chip features an optional permanent write protection
2938 * of the first 8 kB. The erase function is the same as
2939 * above, but 00000H to 01FFFH will not be erased.
2940 * FIXME: add another eraser when partial erasers are
2941 * supported.
2942 */
2943 },
2944 .printlock = printlock_at49f,
2945 .write = write_jedec_1,
2946 .read = read_memmapped,
2947 .voltage = {4500, 5500},
2948 },
2949
2950 {
2951 .vendor = "Atmel",
2952 .name = "AT49F040",
2953 .bustype = BUS_PARALLEL,
2954 .manufacture_id = ATMEL_ID,
2955 .model_id = ATMEL_AT49F040,
2956 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002957 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002958 .feature_bits = FEATURE_EITHER_RESET,
2959 .tested = TEST_UNTESTED,
2960 .probe = probe_jedec,
2961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2962 .block_erasers =
2963 {
2964 {
2965 .eraseblocks = { {512 * 1024, 1} },
2966 .block_erase = erase_chip_block_jedec,
2967 }
2968 /* Chip features an optional permanent write protection
2969 * of the first 16 kB. The erase function is the same as
2970 * above, but 00000H to 03FFFH will not be erased.
2971 * FIXME: add another eraser when partial erasers are
2972 * supported.
2973 */
2974 },
2975 .printlock = printlock_at49f,
2976 .write = write_jedec_1,
2977 .read = read_memmapped,
2978 .voltage = {4500, 5500},
2979 },
2980
2981 {
2982 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002983 .name = "AT49F080",
2984 .bustype = BUS_PARALLEL,
2985 .manufacture_id = ATMEL_ID,
2986 .model_id = ATMEL_AT49F080,
2987 .total_size = 1024,
2988 .page_size = 0, /* unused */
2989 .feature_bits = FEATURE_EITHER_RESET,
2990 .tested = TEST_UNTESTED,
2991 .probe = probe_jedec,
2992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2993 .block_erasers =
2994 {
2995 {
2996 .eraseblocks = { {1024 * 1024, 1} },
2997 .block_erase = erase_chip_block_jedec,
2998 }
2999 /* Chip features an optional permanent write protection
3000 * of the first 16 kB. The erase function is the same as
3001 * above, but 00000H to 03FFFH will not be erased.
3002 * FIXME: add another eraser when partial erasers are
3003 * supported.
3004 */
3005 },
3006 .printlock = printlock_at49f,
3007 .write = write_jedec_1,
3008 .read = read_memmapped,
3009 .voltage = {4500, 5500},
3010 },
3011
3012 {
3013 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3014 .vendor = "Atmel",
3015 .name = "AT49F080T",
3016 .bustype = BUS_PARALLEL,
3017 .manufacture_id = ATMEL_ID,
3018 .model_id = ATMEL_AT49F080T,
3019 .total_size = 1024,
3020 .page_size = 0, /* unused */
3021 .feature_bits = FEATURE_EITHER_RESET,
3022 .tested = TEST_UNTESTED,
3023 .probe = probe_jedec,
3024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3025 .block_erasers =
3026 {
3027 {
3028 .eraseblocks = { {1024 * 1024, 1} },
3029 .block_erase = erase_chip_block_jedec,
3030 }
3031 /* Chip features an optional permanent write protection
3032 * of the first 16 kB. The erase function is the same as
3033 * above, but FC000H to FFFFFH will not be erased.
3034 * FIXME: add another eraser when partial erasers are
3035 * supported.
3036 */
3037 },
3038 .printlock = printlock_at49f,
3039 .write = write_jedec_1,
3040 .read = read_memmapped,
3041 .voltage = {4500, 5500},
3042 },
3043
3044 {
3045 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003046 .name = "AT49LH002",
3047 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3048 .manufacture_id = ATMEL_ID,
3049 .model_id = ATMEL_AT49LH002,
3050 .total_size = 256,
3051 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003052 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003053 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003054 .probe = probe_82802ab,
3055 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003065 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003070 .block_erase = erase_block_82802ab,
3071 },
3072 },
3073 .printlock = printlock_regspace2_block_eraser_0,
3074 .unlock = unlock_regspace2_block_eraser_0,
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
3081 .vendor = "Atmel",
3082 .name = "AT49LH00B4",
3083 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3084 .manufacture_id = ATMEL_ID,
3085 .model_id = ATMEL_AT49LH00B4,
3086 .total_size = 512,
3087 .page_size = 0, /* unused */
3088 .feature_bits = FEATURE_REGISTERMAP,
3089 .tested = TEST_UNTESTED,
3090 .probe = probe_82802ab,
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = {
3096 {8 * 1024, 2},
3097 {16 * 1024, 1},
3098 {32 * 1024, 1},
3099 {64 * 1024, 7},
3100 },
3101 .block_erase = NULL, /* TODO: Implement. */
3102 }, {
3103 .eraseblocks = {
3104 {64 * 1024, 8},
3105 },
3106 .block_erase = erase_block_82802ab,
3107 },
3108 },
3109 .printlock = printlock_regspace2_block_eraser_0,
3110 .unlock = unlock_regspace2_block_eraser_0,
3111 .write = write_82802ab,
3112 .read = read_memmapped,
3113 .voltage = {3000, 3600},
3114 },
3115
3116 {
3117 .vendor = "Atmel",
3118 .name = "AT49LH004",
3119 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3120 .manufacture_id = ATMEL_ID,
3121 .model_id = ATMEL_AT49LH004,
3122 .total_size = 512,
3123 .page_size = 0, /* unused */
3124 .feature_bits = FEATURE_REGISTERMAP,
3125 .tested = TEST_UNTESTED,
3126 .probe = probe_82802ab,
3127 .probe_timing = TIMING_ZERO,
3128 .block_erasers =
3129 {
3130 {
3131 .eraseblocks = {
3132 {64 * 1024, 7},
3133 {32 * 1024, 1},
3134 {8 * 1024, 2},
3135 {16 * 1024, 1},
3136 },
3137 .block_erase = erase_block_82802ab,
3138 }, {
3139 .eraseblocks = {
3140 {64 * 1024, 8},
3141 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003142 .block_erase = NULL, /* TODO: Implement. */
3143 },
3144 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003145 .printlock = printlock_regspace2_block_eraser_0,
3146 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 .write = write_82802ab,
3148 .read = read_memmapped,
3149 .voltage = {3000, 3600},
3150 },
3151
3152 {
Andrew Morganca081462011-09-13 22:05:44 +00003153 .vendor = "Catalyst",
3154 .name = "CAT28F512",
3155 .bustype = BUS_PARALLEL,
3156 .manufacture_id = CATALYST_ID,
3157 .model_id = CATALYST_CAT28F512,
3158 .total_size = 64,
3159 .page_size = 0, /* unused */
3160 .feature_bits = 0,
3161 .tested = TEST_OK_PR,
3162 .probe = probe_jedec, /* FIXME! */
3163 .probe_timing = TIMING_ZERO,
3164 .block_erasers =
3165 {
3166 {
3167 .eraseblocks = { {64 * 1024, 1} },
3168 .block_erase = NULL, /* TODO */
3169 },
3170 },
3171 .write = NULL, /* TODO */
3172 .read = read_memmapped,
3173 .voltage = {4500, 5500},
3174 },
3175
3176 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003177 .vendor = "Bright",
3178 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003179 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003180 .manufacture_id = BRIGHT_ID,
3181 .model_id = BRIGHT_BM29F040,
3182 .total_size = 512,
3183 .page_size = 64 * 1024,
3184 .feature_bits = FEATURE_EITHER_RESET,
3185 .tested = TEST_OK_PR,
3186 .probe = probe_jedec,
3187 .probe_timing = TIMING_ZERO,
3188 .block_erasers =
3189 {
3190 {
3191 .eraseblocks = { {64 * 1024, 8} },
3192 .block_erase = erase_sector_jedec,
3193 }, {
3194 .eraseblocks = { {512 * 1024, 1} },
3195 .block_erase = erase_chip_block_jedec,
3196 },
3197 },
3198 .write = write_jedec_1,
3199 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003200 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003201 },
3202
3203 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003204 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003205 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003206 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003207 .manufacture_id = ESMT_ID,
3208 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003209 .total_size = 256,
3210 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003211 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003212 .tested = TEST_UNTESTED,
3213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003215 .block_erasers =
3216 {
3217 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003218 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003219 {128 * 1024, 1},
3220 {96 * 1024, 1},
3221 {8 * 1024, 2},
3222 {16 * 1024, 1},
3223 },
3224 .block_erase = erase_sector_jedec,
3225 }, {
3226 .eraseblocks = { {256 * 1024, 1} },
3227 .block_erase = erase_chip_block_jedec,
3228 }
3229 },
Sean Nelson35727f72010-01-28 23:55:12 +00003230 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003232 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003233 },
3234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003235 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003236 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003237 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003238 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003239 .manufacture_id = ESMT_ID,
3240 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003241 .total_size = 1024,
3242 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003243 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003244 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003245 .probe = probe_spi_rdid,
3246 .probe_timing = TIMING_ZERO,
3247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = { {4 * 1024, 256} },
3251 .block_erase = spi_block_erase_20,
3252 }, {
3253 .eraseblocks = { {64 * 1024, 16} },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {1024 * 1024, 1} },
3257 .block_erase = spi_block_erase_60,
3258 }, {
3259 .eraseblocks = { {1024 * 1024, 1} },
3260 .block_erase = spi_block_erase_c7,
3261 }
3262 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003263 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003264 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003265 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003266 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003267 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003268 },
3269
3270 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003271 .vendor = "ESMT",
3272 .name = "F25L32PA",
3273 .bustype = BUS_SPI,
3274 .manufacture_id = ESMT_ID,
3275 .model_id = ESMT_F25L32PA,
3276 .total_size = 4096,
3277 .page_size = 256,
3278 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3279 .tested = TEST_UNTESTED,
3280 .probe = probe_spi_rdid,
3281 .probe_timing = TIMING_ZERO,
3282 .block_erasers =
3283 {
3284 {
3285 .eraseblocks = { {4 * 1024, 1024} },
3286 .block_erase = spi_block_erase_20,
3287 }, {
3288 .eraseblocks = { {64 * 1024, 64} },
3289 .block_erase = spi_block_erase_d8,
3290 }, {
3291 .eraseblocks = { {4 * 1024 * 1024, 1} },
3292 .block_erase = spi_block_erase_60,
3293 }, {
3294 .eraseblocks = { {4 * 1024 * 1024, 1} },
3295 .block_erase = spi_block_erase_c7,
3296 }
3297 },
3298 .printlock = spi_prettyprint_status_register_bp2_bpl,
3299 .unlock = spi_disable_blockprotect,
3300 .write = spi_chip_write_256,
3301 .read = spi_chip_read,
3302 .voltage = {2700, 3600},
3303 },
3304
3305 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003306 .vendor = "Eon",
3307 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003308 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003309 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003310 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003311 .total_size = 64,
3312 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003313 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003314 .tested = TEST_UNTESTED,
3315 .probe = probe_spi_rdid,
3316 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003317 .block_erasers =
3318 {
3319 {
3320 .eraseblocks = {
3321 {4 * 1024, 2},
3322 {8 * 1024, 1},
3323 {16 * 1024, 1},
3324 {32 * 1024, 1},
3325 },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {64 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003333 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003334 .write = spi_chip_write_256,
3335 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003336 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003337 },
3338
3339 {
3340 .vendor = "Eon",
3341 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003342 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003343 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003344 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .total_size = 64,
3346 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003348 .tested = TEST_UNTESTED,
3349 .probe = probe_spi_rdid,
3350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003351 .block_erasers =
3352 {
3353 {
3354 .eraseblocks = {
3355 {32 * 1024, 1},
3356 {16 * 1024, 1},
3357 {8 * 1024, 1},
3358 {4 * 1024, 2},
3359 },
3360 .block_erase = spi_block_erase_d8,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 1} },
3363 .block_erase = spi_block_erase_c7,
3364 }
3365 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003366 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003368 .write = spi_chip_write_256,
3369 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003370 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003371 },
3372
3373 {
3374 .vendor = "Eon",
3375 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003376 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003377 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003378 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003379 .total_size = 128,
3380 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003381 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003382 .tested = TEST_UNTESTED,
3383 .probe = probe_spi_rdid,
3384 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {4 * 1024, 2},
3390 {8 * 1024, 1},
3391 {16 * 1024, 1},
3392 {32 * 1024, 3},
3393 },
3394 .block_erase = spi_block_erase_d8,
3395 }, {
3396 .eraseblocks = { {128 * 1024, 1} },
3397 .block_erase = spi_block_erase_c7,
3398 }
3399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003400 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003401 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003402 .write = spi_chip_write_256,
3403 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003404 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003405 },
3406
3407 {
3408 .vendor = "Eon",
3409 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003410 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003411 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003412 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003413 .total_size = 128,
3414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003415 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003416 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003417 .probe = probe_spi_rdid,
3418 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003419 .block_erasers =
3420 {
3421 {
3422 .eraseblocks = {
3423 {32 * 1024, 3},
3424 {16 * 1024, 1},
3425 {8 * 1024, 1},
3426 {4 * 1024, 2},
3427 },
3428 .block_erase = spi_block_erase_d8,
3429 }, {
3430 .eraseblocks = { {128 * 1024, 1} },
3431 .block_erase = spi_block_erase_c7,
3432 }
3433 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003434 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003435 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003436 .write = spi_chip_write_256,
3437 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003438 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003439 },
3440
3441 {
3442 .vendor = "Eon",
3443 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003444 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003445 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003446 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003447 .total_size = 256,
3448 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003449 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003450 .tested = TEST_UNTESTED,
3451 .probe = probe_spi_rdid,
3452 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003453 .block_erasers =
3454 {
3455 {
3456 .eraseblocks = {
3457 {4 * 1024, 2},
3458 {8 * 1024, 1},
3459 {16 * 1024, 1},
3460 {32 * 1024, 1},
3461 {64 * 1024, 3}
3462 },
3463 .block_erase = spi_block_erase_d8,
3464 }, {
3465 .eraseblocks = { {256 * 1024, 1} },
3466 .block_erase = spi_block_erase_c7,
3467 }
3468 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003469 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003470 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003471 .write = spi_chip_write_256,
3472 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003473 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003474 },
3475
3476 {
3477 .vendor = "Eon",
3478 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003479 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003480 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003481 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003482 .total_size = 256,
3483 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003484 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003485 .tested = TEST_UNTESTED,
3486 .probe = probe_spi_rdid,
3487 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003488 .block_erasers =
3489 {
3490 {
3491 .eraseblocks = {
3492 {64 * 1024, 3},
3493 {32 * 1024, 1},
3494 {16 * 1024, 1},
3495 {8 * 1024, 1},
3496 {4 * 1024, 2},
3497 },
3498 .block_erase = spi_block_erase_d8,
3499 }, {
3500 .eraseblocks = { {256 * 1024, 1} },
3501 .block_erase = spi_block_erase_c7,
3502 }
3503 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003504 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003505 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003506 .write = spi_chip_write_256,
3507 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003509 },
3510
3511 {
3512 .vendor = "Eon",
3513 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003514 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003515 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003516 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003517 .total_size = 512,
3518 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003519 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003520 .tested = TEST_UNTESTED,
3521 .probe = probe_spi_rdid,
3522 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003523 .block_erasers =
3524 {
3525 {
3526 .eraseblocks = {
3527 {4 * 1024, 2},
3528 {8 * 1024, 1},
3529 {16 * 1024, 1},
3530 {32 * 1024, 1},
3531 {64 * 1024, 7}
3532 },
3533 .block_erase = spi_block_erase_d8,
3534 }, {
3535 .eraseblocks = { {512 * 1024, 1} },
3536 .block_erase = spi_block_erase_c7,
3537 }
3538 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003539 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003540 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003541 .write = spi_chip_write_256,
3542 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003543 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003544 },
3545
3546 {
3547 .vendor = "Eon",
3548 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003549 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003550 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003551 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003552 .total_size = 512,
3553 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003554 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003555 .tested = TEST_UNTESTED,
3556 .probe = probe_spi_rdid,
3557 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003558 .block_erasers =
3559 {
3560 {
3561 .eraseblocks = {
3562 {64 * 1024, 7},
3563 {32 * 1024, 1},
3564 {16 * 1024, 1},
3565 {8 * 1024, 1},
3566 {4 * 1024, 2},
3567 },
3568 .block_erase = spi_block_erase_d8,
3569 }, {
3570 .eraseblocks = { {512 * 1024, 1} },
3571 .block_erase = spi_block_erase_c7,
3572 }
3573 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003575 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003576 .write = spi_chip_write_256,
3577 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 },
3580
3581 {
3582 .vendor = "Eon",
3583 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003585 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003587 .total_size = 1024,
3588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003589 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .tested = TEST_UNTESTED,
3591 .probe = probe_spi_rdid,
3592 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {4 * 1024, 2},
3598 {8 * 1024, 1},
3599 {16 * 1024, 1},
3600 {32 * 1024, 1},
3601 {64 * 1024, 15}
3602 },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {1024 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003609 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003610 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .write = spi_chip_write_256,
3612 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003614 },
3615
3616 {
3617 .vendor = "Eon",
3618 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003621 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .total_size = 1024,
3623 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003624 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .tested = TEST_UNTESTED,
3626 .probe = probe_spi_rdid,
3627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = {
3632 {64 * 1024, 15},
3633 {32 * 1024, 1},
3634 {16 * 1024, 1},
3635 {8 * 1024, 1},
3636 {4 * 1024, 2},
3637 },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {1024 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003644 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003646 .write = spi_chip_write_256,
3647 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003648 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003649 },
3650
3651 {
3652 .vendor = "Eon",
3653 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003654 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003655 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003656 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003657 .total_size = 2048,
3658 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003659 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003660 .tested = TEST_UNTESTED,
3661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = {
3667 {4 * 1024, 2},
3668 {8 * 1024, 1},
3669 {16 * 1024, 1},
3670 {32 * 1024, 1},
3671 {64 * 1024, 31},
3672 },
3673 .block_erase = spi_block_erase_d8,
3674 }, {
3675 .eraseblocks = { {2 * 1024 * 1024, 1} },
3676 .block_erase = spi_block_erase_c7,
3677 }
3678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003680 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003681 .write = spi_chip_write_256,
3682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003683 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003684 },
3685
3686 {
3687 .vendor = "Eon",
3688 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003689 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003690 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003691 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .total_size = 2048,
3693 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003694 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003695 .tested = TEST_UNTESTED,
3696 .probe = probe_spi_rdid,
3697 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003698 .block_erasers =
3699 {
3700 {
3701 .eraseblocks = {
3702 {64 * 1024, 31},
3703 {32 * 1024, 1},
3704 {16 * 1024, 1},
3705 {8 * 1024, 1},
3706 {4 * 1024, 2},
3707 },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {2 * 1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_c7,
3712 }
3713 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003714 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003715 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .write = spi_chip_write_256,
3717 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003718 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003719 },
3720
3721 {
3722 .vendor = "Eon",
3723 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003724 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003725 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003726 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003727 .total_size = 4096,
3728 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003729 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003730 .tested = TEST_UNTESTED,
3731 .probe = probe_spi_rdid,
3732 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003733 .block_erasers =
3734 {
3735 {
3736 .eraseblocks = {
3737 {4 * 1024, 2},
3738 {8 * 1024, 1},
3739 {16 * 1024, 1},
3740 {32 * 1024, 1},
3741 {64 * 1024, 63},
3742 },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_c7,
3747 }
3748 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003749 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003750 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003751 .write = spi_chip_write_256,
3752 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003753 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003754 },
3755
3756 {
3757 .vendor = "Eon",
3758 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003759 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003760 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003761 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003762 .total_size = 4096,
3763 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003764 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003765 .tested = TEST_UNTESTED,
3766 .probe = probe_spi_rdid,
3767 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003768 .block_erasers =
3769 {
3770 {
3771 .eraseblocks = {
3772 {64 * 1024, 63},
3773 {32 * 1024, 1},
3774 {16 * 1024, 1},
3775 {8 * 1024, 1},
3776 {4 * 1024, 2},
3777 },
3778 .block_erase = spi_block_erase_d8,
3779 }, {
3780 .eraseblocks = { {4 * 1024 * 1024, 1} },
3781 .block_erase = spi_block_erase_c7,
3782 }
3783 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003786 .write = spi_chip_write_256,
3787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003788 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 },
3790
3791 {
3792 .vendor = "Eon",
3793 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 8192,
3798 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 {64 * 1024, 127},
3812 },
3813 .block_erase = spi_block_erase_d8,
3814 }, {
3815 .eraseblocks = { {8 * 1024 * 1024, 1} },
3816 .block_erase = spi_block_erase_c7,
3817 }
3818 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003820 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .write = spi_chip_write_256,
3822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003823 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003824 },
3825
3826 {
3827 .vendor = "Eon",
3828 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003829 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003830 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003831 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003832 .total_size = 8192,
3833 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003834 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003835 .tested = TEST_UNTESTED,
3836 .probe = probe_spi_rdid,
3837 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003838 .block_erasers =
3839 {
3840 {
3841 .eraseblocks = {
3842 {64 * 1024, 127},
3843 {32 * 1024, 1},
3844 {16 * 1024, 1},
3845 {8 * 1024, 1},
3846 {4 * 1024, 2},
3847 },
3848 .block_erase = spi_block_erase_d8,
3849 }, {
3850 .eraseblocks = { {8 * 1024 * 1024, 1} },
3851 .block_erase = spi_block_erase_c7,
3852 }
3853 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003854 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003855 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003856 .write = spi_chip_write_256,
3857 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003858 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003859 },
3860
3861 {
3862 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003864 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003865 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003866 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003867 .total_size = 64,
3868 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003869 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003870 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003871 .probe = probe_spi_rdid,
3872 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003873 .block_erasers =
3874 {
3875 {
3876 .eraseblocks = { {4 * 1024, 16} },
3877 .block_erase = spi_block_erase_20,
3878 }, {
3879 .eraseblocks = { {32 * 1024, 2} },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {32 * 1024, 2} },
3883 .block_erase = spi_block_erase_52,
3884 }, {
3885 .eraseblocks = { {64 * 1024, 1} },
3886 .block_erase = spi_block_erase_60,
3887 }, {
3888 .eraseblocks = { {64 * 1024, 1} },
3889 .block_erase = spi_block_erase_c7,
3890 }
3891 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003892 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003893 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003894 .write = spi_chip_write_256,
3895 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003896 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003897 },
3898
3899 {
3900 .vendor = "Eon",
3901 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003902 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003903 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003904 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003905 .total_size = 128,
3906 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003907 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003908 .tested = TEST_UNTESTED,
3909 .probe = probe_spi_rdid,
3910 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003911 .block_erasers =
3912 {
3913 {
3914 .eraseblocks = { {4 * 1024, 32} },
3915 .block_erase = spi_block_erase_20,
3916 }, {
3917 .eraseblocks = { {32 * 1024, 4} },
3918 .block_erase = spi_block_erase_d8,
3919 }, {
3920 .eraseblocks = { {32 * 1024, 4} },
3921 .block_erase = spi_block_erase_52,
3922 }, {
3923 .eraseblocks = { {128 * 1024, 1} },
3924 .block_erase = spi_block_erase_60,
3925 }, {
3926 .eraseblocks = { {128 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 }
3929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003932 .write = spi_chip_write_256,
3933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003934 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003935 },
3936
3937 {
3938 .vendor = "Eon",
3939 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003942 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003943 .total_size = 256,
3944 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = { {4 * 1024, 64} },
3953 .block_erase = spi_block_erase_20,
3954 }, {
3955 .eraseblocks = { {64 * 1024, 4} },
3956 .block_erase = spi_block_erase_d8,
3957 }, {
3958 .eraseblocks = { {64 * 1024, 4} },
3959 .block_erase = spi_block_erase_52,
3960 }, {
3961 .eraseblocks = { {256 * 1024, 1} },
3962 .block_erase = spi_block_erase_60,
3963 }, {
3964 .eraseblocks = { {256 * 1024, 1} },
3965 .block_erase = spi_block_erase_c7,
3966 }
3967 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003969 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003970 .write = spi_chip_write_256,
3971 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003972 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003973 },
3974
3975 {
3976 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003977 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003978 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003979 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003980 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003981 .total_size = 512,
3982 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003983 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003984 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003985 .probe = probe_spi_rdid,
3986 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003987 .block_erasers =
3988 {
3989 {
Sean Nelson54596372010-01-09 05:30:14 +00003990 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003991 .block_erase = spi_block_erase_20,
3992 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003993 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003994 .block_erase = spi_block_erase_d8,
3995 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003996 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003997 .block_erase = spi_block_erase_60,
3998 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003999 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004000 .block_erase = spi_block_erase_c7,
4001 },
4002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004004 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004005 .write = spi_chip_write_256,
4006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004007 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004008 },
4009
4010 {
4011 .vendor = "Eon",
4012 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004013 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004014 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004015 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004016 .total_size = 1024,
4017 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004018 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004019 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004020 .probe = probe_spi_rdid,
4021 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .block_erasers =
4023 {
4024 {
4025 .eraseblocks = { {4 * 1024, 256} },
4026 .block_erase = spi_block_erase_20,
4027 }, {
4028 .eraseblocks = { {64 * 1024, 16} },
4029 .block_erase = spi_block_erase_d8,
4030 }, {
4031 .eraseblocks = { {1024 * 1024, 1} },
4032 .block_erase = spi_block_erase_60,
4033 }, {
4034 .eraseblocks = { {1024 * 1024, 1} },
4035 .block_erase = spi_block_erase_c7,
4036 }
4037 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004038 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004039 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004040 .write = spi_chip_write_256,
4041 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004042 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004043 },
4044
4045 {
4046 .vendor = "Eon",
4047 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004048 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004049 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004050 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004051 .total_size = 2048,
4052 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004053 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004054 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004055 .probe = probe_spi_rdid,
4056 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004057 .block_erasers =
4058 {
4059 {
4060 .eraseblocks = { {4 * 1024, 512} },
4061 .block_erase = spi_block_erase_20,
4062 }, {
4063 .eraseblocks = { {64 * 1024, 32} },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {2 * 1024 * 1024, 1} },
4067 .block_erase = spi_block_erase_60,
4068 }, {
4069 .eraseblocks = { {2 * 1024 * 1024, 1} },
4070 .block_erase = spi_block_erase_c7,
4071 }
4072 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004073 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004074 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 .write = spi_chip_write_256,
4076 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004077 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004078 },
4079
4080 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .vendor = "Eon",
4082 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004083 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004084 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004085 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004086 .total_size = 4096,
4087 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004088 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004089 .tested = TEST_UNTESTED,
4090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .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 */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004112 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004113 },
4114
4115 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004116 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004117 .name = "EN25F64",
4118 .bustype = BUS_SPI,
4119 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004120 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004121 .total_size = 8192,
4122 .page_size = 256,
4123 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004124 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 2048} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 128} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {8 * 1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {8 * 1024 * 1024, 1} },
4140 .block_erase = spi_block_erase_c7,
4141 }
4142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
4147 .voltage = {2700, 3600},
4148 },
4149
4150 {
4151 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004152 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004153 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004154 .manufacture_id = EON_ID_NOPREFIX,
4155 .model_id = EON_EN25Q40,
4156 .total_size = 512,
4157 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004158 /* OTP: 256B total; enter 0x3A */
4159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004160 .tested = TEST_UNTESTED,
4161 .probe = probe_spi_rdid,
4162 .probe_timing = TIMING_ZERO,
4163 .block_erasers =
4164 {
4165 {
4166 .eraseblocks = { {4 * 1024, 128} },
4167 .block_erase = spi_block_erase_20,
4168 }, {
4169 .eraseblocks = { {64 * 1024, 8} },
4170 .block_erase = spi_block_erase_d8,
4171 }, {
4172 .eraseblocks = { {512 * 1024, 1} },
4173 .block_erase = spi_block_erase_60,
4174 }, {
4175 .eraseblocks = { {512 * 1024, 1} },
4176 .block_erase = spi_block_erase_c7,
4177 }
4178 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004180 .unlock = spi_disable_blockprotect,
4181 .write = spi_chip_write_256,
4182 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004183 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25Q80(A)",
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_EN25Q80,
4192 .total_size = 1024,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* OTP: 256B total; enter 0x3A */
4195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .tested = TEST_UNTESTED,
4197 .probe = probe_spi_rdid,
4198 .probe_timing = TIMING_ZERO,
4199 .block_erasers =
4200 {
4201 {
4202 .eraseblocks = { {4 * 1024, 256} },
4203 .block_erase = spi_block_erase_20,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 16} },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {1024 * 1024, 1} },
4209 .block_erase = spi_block_erase_60,
4210 }, {
4211 .eraseblocks = { {1024 * 1024, 1} },
4212 .block_erase = spi_block_erase_c7,
4213 }
4214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004216 .unlock = spi_disable_blockprotect,
4217 .write = spi_chip_write_256,
4218 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004219 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004220 },
4221
4222 {
4223 /* Note: EN25D16 is an evil twin which shares the model ID
4224 but has different write protection capabilities */
4225 .vendor = "Eon",
4226 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004227 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25Q16,
4230 .total_size = 2048,
4231 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004232 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004234 .tested = TEST_UNTESTED,
4235 .probe = probe_spi_rdid,
4236 .probe_timing = TIMING_ZERO,
4237 .block_erasers =
4238 {
4239 {
4240 .eraseblocks = { {4 * 1024, 512} },
4241 .block_erase = spi_block_erase_20,
4242 }, {
4243 .eraseblocks = { {64 * 1024, 32} },
4244 .block_erase = spi_block_erase_d8,
4245 }, {
4246 /* not supported by Q16 version */
4247 .eraseblocks = { {64 * 1024, 32} },
4248 .block_erase = spi_block_erase_52,
4249 }, {
4250 .eraseblocks = { {2 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_60,
4252 }, {
4253 .eraseblocks = { {2 * 1024 * 1024, 1} },
4254 .block_erase = spi_block_erase_c7,
4255 }
4256 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004258 .unlock = spi_disable_blockprotect,
4259 .write = spi_chip_write_256,
4260 .read = spi_chip_read,
4261 .voltage = {2700, 3600},
4262 },
4263
4264 {
4265 .vendor = "Eon",
4266 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004267 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004268 .manufacture_id = EON_ID_NOPREFIX,
4269 .model_id = EON_EN25Q32,
4270 .total_size = 4096,
4271 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004272 /* OTP: 512B total; enter 0x3A */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004274 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers =
4278 {
4279 {
4280 .eraseblocks = { {4 * 1024, 1024} },
4281 .block_erase = spi_block_erase_20,
4282 }, {
4283 .eraseblocks = { {64 * 1024, 64} },
4284 .block_erase = spi_block_erase_d8,
4285 }, {
4286 .eraseblocks = { {4 * 1024 * 1024, 1} },
4287 .block_erase = spi_block_erase_60,
4288 }, {
4289 .eraseblocks = { {4 * 1024 * 1024, 1} },
4290 .block_erase = spi_block_erase_c7,
4291 }
4292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004294 .unlock = spi_disable_blockprotect,
4295 .write = spi_chip_write_256,
4296 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004297 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004298 },
4299
4300 {
4301 .vendor = "Eon",
4302 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004303 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004304 .manufacture_id = EON_ID_NOPREFIX,
4305 .model_id = EON_EN25Q64,
4306 .total_size = 8192,
4307 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004308 /* OTP: 512B total; enter 0x3A */
4309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004310 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004311 .probe = probe_spi_rdid,
4312 .probe_timing = TIMING_ZERO,
4313 .block_erasers =
4314 {
4315 {
4316 .eraseblocks = { {4 * 1024, 2048} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 128} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { {8 * 1024 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { {8 * 1024 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004329 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004330 .unlock = spi_disable_blockprotect,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004333 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004334 },
4335
4336 {
4337 .vendor = "Eon",
4338 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004339 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25Q128,
4342 .total_size = 16384,
4343 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004344 /* OTP: 512B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers =
4350 {
4351 {
4352 .eraseblocks = { {4 * 1024, 4096} },
4353 .block_erase = spi_block_erase_20,
4354 }, {
4355 .eraseblocks = { {64 * 1024, 256} },
4356 .block_erase = spi_block_erase_d8,
4357 }, {
4358 .eraseblocks = { {16 * 1024 * 1024, 1} },
4359 .block_erase = spi_block_erase_60,
4360 }, {
4361 .eraseblocks = { {16 * 1024 * 1024, 1} },
4362 .block_erase = spi_block_erase_c7,
4363 }
4364 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004366 .unlock = spi_disable_blockprotect,
4367 .write = spi_chip_write_256,
4368 .read = spi_chip_read,
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004374 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25QH16,
4377 .total_size = 2048,
4378 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004379 /* supports SFDP */
4380 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004381 /* QPI enable 0x38, disable 0xFF */
4382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004383 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004384 .probe = probe_spi_rdid,
4385 .probe_timing = TIMING_ZERO,
4386 .block_erasers =
4387 {
4388 {
4389 .eraseblocks = { {4 * 1024, 512} },
4390 .block_erase = spi_block_erase_20,
4391 }, {
4392 .eraseblocks = { {64 * 1024, 32} },
4393 .block_erase = spi_block_erase_d8,
4394 }, {
4395 .eraseblocks = { {1024 * 2048, 1} },
4396 .block_erase = spi_block_erase_60,
4397 }, {
4398 .eraseblocks = { {1024 * 2048, 1} },
4399 .block_erase = spi_block_erase_c7,
4400 }
4401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004403 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004404 .write = spi_chip_write_256,
4405 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004406 .voltage = {2700, 3600},
4407 },
4408
4409 {
4410 .vendor = "Eon",
4411 .name = "EN25QH32",
4412 .bustype = BUS_SPI,
4413 .manufacture_id = EON_ID_NOPREFIX,
4414 .model_id = EON_EN25QH32,
4415 .total_size = 4096,
4416 .page_size = 256,
4417 /* supports SFDP */
4418 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004419 /* QPI enable 0x38, disable 0xFF */
4420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004421 .tested = TEST_UNTESTED,
4422 .probe = probe_spi_rdid,
4423 .probe_timing = TIMING_ZERO,
4424 .block_erasers =
4425 {
4426 {
4427 .eraseblocks = { {4 * 1024, 1024} },
4428 .block_erase = spi_block_erase_20,
4429 }, {
4430 .eraseblocks = { {64 * 1024, 64} },
4431 .block_erase = spi_block_erase_d8,
4432 }, {
4433 .eraseblocks = { {1024 * 4096, 1} },
4434 .block_erase = spi_block_erase_60,
4435 }, {
4436 .eraseblocks = { {1024 * 4096, 1} },
4437 .block_erase = spi_block_erase_c7,
4438 }
4439 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004440 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004441 .unlock = spi_disable_blockprotect_bp3_srwd,
4442 .write = spi_chip_write_256,
4443 .read = spi_chip_read,
4444 .voltage = {2700, 3600},
4445 },
4446
4447 {
4448 .vendor = "Eon",
4449 .name = "EN25QH64",
4450 .bustype = BUS_SPI,
4451 .manufacture_id = EON_ID_NOPREFIX,
4452 .model_id = EON_EN25QH64,
4453 .total_size = 8192,
4454 .page_size = 256,
4455 /* supports SFDP */
4456 /* OTP: 512B total; enter 0x3A */
4457 /* QPI enable 0x38, disable 0xFF */
4458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004459 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004460 .probe = probe_spi_rdid,
4461 .probe_timing = TIMING_ZERO,
4462 .block_erasers = {
4463 {
4464 .eraseblocks = { {4 * 1024, 2048} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {64 * 1024, 128} },
4468 .block_erase = spi_block_erase_d8,
4469 }, {
4470 .eraseblocks = { { 8192 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { { 8192 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004477 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004478 .unlock = spi_disable_blockprotect_bp3_srwd,
4479 .write = spi_chip_write_256,
4480 .read = spi_chip_read,
4481 .voltage = {2700, 3600},
4482 },
4483
4484 {
4485 .vendor = "Eon",
4486 .name = "EN25QH128",
4487 .bustype = BUS_SPI,
4488 .manufacture_id = EON_ID_NOPREFIX,
4489 .model_id = EON_EN25QH128,
4490 .total_size = 16384,
4491 .page_size = 256,
4492 /* supports SFDP */
4493 /* OTP: 512B total; enter 0x3A */
4494 /* QPI enable 0x38, disable 0xFF */
4495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4496 .tested = TEST_UNTESTED,
4497 .probe = probe_spi_rdid,
4498 .probe_timing = TIMING_ZERO,
4499 .block_erasers = {
4500 {
4501 .eraseblocks = { {4 * 1024, 4096} },
4502 .block_erase = spi_block_erase_20,
4503 }, {
4504 .eraseblocks = { {64 * 1024, 256} },
4505 .block_erase = spi_block_erase_d8,
4506 }, {
4507 .eraseblocks = { { 16384 * 1024, 1} },
4508 .block_erase = spi_block_erase_60,
4509 }, {
4510 .eraseblocks = { { 16384 * 1024, 1} },
4511 .block_erase = spi_block_erase_c7,
4512 }
4513 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004514 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004515 .unlock = spi_disable_blockprotect_bp3_srwd,
4516 .write = spi_chip_write_256,
4517 .read = spi_chip_read,
4518 .voltage = {2700, 3600},
4519 },
4520
4521 {
4522 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004523 .name = "EN25S10",
4524 .bustype = BUS_SPI,
4525 .manufacture_id = EON_ID_NOPREFIX,
4526 .model_id = EON_EN25S10,
4527 .total_size = 128,
4528 .page_size = 256,
4529 /* OTP: 256B total; enter 0x3A */
4530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4531 .tested = TEST_UNTESTED,
4532 .probe = probe_spi_rdid,
4533 .probe_timing = TIMING_ZERO,
4534 .block_erasers = {
4535 {
4536 .eraseblocks = { {4 * 1024, 32} },
4537 .block_erase = spi_block_erase_20,
4538 }, {
4539 .eraseblocks = { {32 * 1024, 4} },
4540 .block_erase = spi_block_erase_52,
4541 }, {
4542 .eraseblocks = { {128 * 1024, 1} },
4543 .block_erase = spi_block_erase_60,
4544 }, {
4545 .eraseblocks = { {128 * 1024, 1} },
4546 .block_erase = spi_block_erase_c7,
4547 }
4548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004549 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004550 .unlock = spi_disable_blockprotect,
4551 .write = spi_chip_write_256,
4552 .read = spi_chip_read,
4553 .voltage = {1650, 1950},
4554 },
4555
4556 {
4557 .vendor = "Eon",
4558 .name = "EN25S20",
4559 .bustype = BUS_SPI,
4560 .manufacture_id = EON_ID_NOPREFIX,
4561 .model_id = EON_EN25S20,
4562 .total_size = 256,
4563 .page_size = 256,
4564 /* OTP: 256B total; enter 0x3A */
4565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4566 .tested = TEST_UNTESTED,
4567 .probe = probe_spi_rdid,
4568 .probe_timing = TIMING_ZERO,
4569 .block_erasers = {
4570 {
4571 .eraseblocks = { {4 * 1024, 64} },
4572 .block_erase = spi_block_erase_20,
4573 }, {
4574 .eraseblocks = { {64 * 1024, 4} },
4575 .block_erase = spi_block_erase_d8,
4576 }, {
4577 .eraseblocks = { {256 * 1024, 1} },
4578 .block_erase = spi_block_erase_60,
4579 }, {
4580 .eraseblocks = { {256 * 1024, 1} },
4581 .block_erase = spi_block_erase_c7,
4582 }
4583 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004584 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004585 .unlock = spi_disable_blockprotect,
4586 .write = spi_chip_write_256,
4587 .read = spi_chip_read,
4588 .voltage = {1650, 1950},
4589 },
4590
4591 {
4592 .vendor = "Eon",
4593 .name = "EN25S40",
4594 .bustype = BUS_SPI,
4595 .manufacture_id = EON_ID_NOPREFIX,
4596 .model_id = EON_EN25S40,
4597 .total_size = 512,
4598 .page_size = 256,
4599 /* OTP: 256B total; enter 0x3A */
4600 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4601 .tested = TEST_UNTESTED,
4602 .probe = probe_spi_rdid,
4603 .probe_timing = TIMING_ZERO,
4604 .block_erasers = {
4605 {
4606 .eraseblocks = { {4 * 1024, 128} },
4607 .block_erase = spi_block_erase_20,
4608 }, {
4609 .eraseblocks = { {64 * 1024, 8} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {512 * 1024, 1} },
4613 .block_erase = spi_block_erase_60,
4614 }, {
4615 .eraseblocks = { {512 * 1024, 1} },
4616 .block_erase = spi_block_erase_c7,
4617 }
4618 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004619 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004620 .unlock = spi_disable_blockprotect,
4621 .write = spi_chip_write_256,
4622 .read = spi_chip_read,
4623 .voltage = {1650, 1950},
4624 },
4625
4626 {
4627 .vendor = "Eon",
4628 .name = "EN25S80",
4629 .bustype = BUS_SPI,
4630 .manufacture_id = EON_ID_NOPREFIX,
4631 .model_id = EON_EN25S80,
4632 .total_size = 1024,
4633 .page_size = 256,
4634 /* OTP: 256B total; enter 0x3A */
4635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4636 .tested = TEST_UNTESTED,
4637 .probe = probe_spi_rdid,
4638 .probe_timing = TIMING_ZERO,
4639 .block_erasers = {
4640 {
4641 .eraseblocks = { {4 * 1024, 256} },
4642 .block_erase = spi_block_erase_20,
4643 }, {
4644 .eraseblocks = { {64 * 1024, 16} },
4645 .block_erase = spi_block_erase_d8,
4646 }, {
4647 .eraseblocks = { {1024 * 1024, 1} },
4648 .block_erase = spi_block_erase_60,
4649 }, {
4650 .eraseblocks = { {1024 * 1024, 1} },
4651 .block_erase = spi_block_erase_c7,
4652 }
4653 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004654 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004655 .unlock = spi_disable_blockprotect,
4656 .write = spi_chip_write_256,
4657 .read = spi_chip_read,
4658 .voltage = {1650, 1950},
4659 },
4660
4661 {
4662 .vendor = "Eon",
4663 .name = "EN25S16",
4664 .bustype = BUS_SPI,
4665 .manufacture_id = EON_ID_NOPREFIX,
4666 .model_id = EON_EN25S16,
4667 .total_size = 2048,
4668 .page_size = 256,
4669 /* OTP: 512B total; enter 0x3A */
4670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4671 .tested = TEST_UNTESTED,
4672 .probe = probe_spi_rdid,
4673 .probe_timing = TIMING_ZERO,
4674 .block_erasers = {
4675 {
4676 .eraseblocks = { {4 * 1024, 512} },
4677 .block_erase = spi_block_erase_20,
4678 }, {
4679 .eraseblocks = { {64 * 1024, 32} },
4680 .block_erase = spi_block_erase_52,
4681 }, {
4682 .eraseblocks = { {32 * 1024, 64} },
4683 .block_erase = spi_block_erase_d8,
4684 }, {
4685 .eraseblocks = { {2048 * 1024, 1} },
4686 .block_erase = spi_block_erase_60,
4687 }, {
4688 .eraseblocks = { {2048 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_en25s_wp,
4693 .unlock = spi_disable_blockprotect_bp3_srwd,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read,
4696 .voltage = {1650, 1950},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25S32",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25S32,
4705 .total_size = 4096,
4706 .page_size = 256,
4707 /* OTP: 512B total; enter 0x3A */
4708 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4709 .tested = TEST_UNTESTED,
4710 .probe = probe_spi_rdid,
4711 .probe_timing = TIMING_ZERO,
4712 .block_erasers = {
4713 {
4714 .eraseblocks = { {4 * 1024, 1024} },
4715 .block_erase = spi_block_erase_20,
4716 }, {
4717 .eraseblocks = { {32 * 1024, 128} },
4718 .block_erase = spi_block_erase_52,
4719 }, {
4720 .eraseblocks = { {64 * 1024, 64} },
4721 .block_erase = spi_block_erase_d8,
4722 }, {
4723 .eraseblocks = { {4096 * 1024, 1} },
4724 .block_erase = spi_block_erase_60,
4725 }, {
4726 .eraseblocks = { {4096 * 1024, 1} },
4727 .block_erase = spi_block_erase_c7,
4728 }
4729 },
4730 .printlock = spi_prettyprint_status_register_en25s_wp,
4731 .unlock = spi_disable_blockprotect_bp3_srwd,
4732 .write = spi_chip_write_256,
4733 .read = spi_chip_read,
4734 .voltage = {1650, 1950},
4735 },
4736
4737 {
4738 .vendor = "Eon",
4739 .name = "EN25S64",
4740 .bustype = BUS_SPI,
4741 .manufacture_id = EON_ID_NOPREFIX,
4742 .model_id = EON_EN25S64,
4743 .total_size = 8192,
4744 .page_size = 256,
4745 /* OTP: 512B total; enter 0x3A */
4746 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4747 .tested = TEST_UNTESTED,
4748 .probe = probe_spi_rdid,
4749 .probe_timing = TIMING_ZERO,
4750 .block_erasers = {
4751 {
4752 .eraseblocks = { {4 * 1024, 2048} },
4753 .block_erase = spi_block_erase_20,
4754 }, {
4755 .eraseblocks = { {64 * 1024, 128} },
4756 .block_erase = spi_block_erase_d8,
4757 }, {
4758 .eraseblocks = { {8192 * 1024, 1} },
4759 .block_erase = spi_block_erase_60,
4760 }, {
4761 .eraseblocks = { {8192 * 1024, 1} },
4762 .block_erase = spi_block_erase_c7,
4763 }
4764 },
4765 .printlock = spi_prettyprint_status_register_en25s_wp,
4766 .unlock = spi_disable_blockprotect_bp3_srwd,
4767 .write = spi_chip_write_256,
4768 .read = spi_chip_read,
4769 .voltage = {1650, 1950},
4770 },
4771
4772 {
4773 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004774 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004775 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004776 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004777 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004778 .total_size = 128,
4779 .page_size = 128,
4780 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004781 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004782 .probe = probe_jedec,
4783 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4784 .block_erasers =
4785 {
4786 {
4787 .eraseblocks = { {16 * 1024, 8} },
4788 .block_erase = erase_sector_jedec,
4789 },
4790 {
4791 .eraseblocks = { {128 * 1024, 1} },
4792 .block_erase = erase_chip_block_jedec,
4793 },
4794 },
4795 .write = write_jedec_1,
4796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004797 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004798 },
4799
4800 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004801 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004802 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004803 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004804 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004805 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 .total_size = 256,
4807 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004808 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004809 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004811 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004812 .block_erasers =
4813 {
4814 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004815 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004816 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004817 {8 * 1024, 2},
4818 {32 * 1024, 1},
4819 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004820 },
4821 .block_erase = erase_sector_jedec,
4822 }, {
4823 .eraseblocks = { {256 * 1024, 1} },
4824 .block_erase = erase_chip_block_jedec,
4825 },
4826 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004829 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004830 },
4831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004833 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004834 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004835 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004836 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004837 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 .total_size = 256,
4839 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004840 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004841 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004842 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004844 .block_erasers =
4845 {
4846 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004847 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004848 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004849 {32 * 1024, 1},
4850 {8 * 1024, 2},
4851 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004852 },
4853 .block_erase = erase_sector_jedec,
4854 }, {
4855 .eraseblocks = { {256 * 1024, 1} },
4856 .block_erase = erase_chip_block_jedec,
4857 },
4858 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004859 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004861 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004862 },
4863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004864 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004865 .vendor = "Eon",
4866 .name = "EN29LV640B",
4867 .bustype = BUS_PARALLEL,
4868 .manufacture_id = EON_ID,
4869 .model_id = EON_EN29LV640B,
4870 .total_size = 8192,
4871 .page_size = 8192,
4872 .feature_bits = 0,
4873 .tested = TEST_OK_PREW,
4874 .probe = probe_en29lv640b,
4875 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4876 .block_erasers =
4877 {
4878 {
4879 .eraseblocks = {
4880 {8 * 1024, 8},
4881 {64 * 1024, 127},
4882 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004883 .block_erase = erase_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004884 }, {
4885 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004886 .block_erase = erase_chip_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004887 },
4888 },
4889 .write = write_en29lv640b,
4890 .read = read_memmapped,
4891 .voltage = {2700, 3600},
4892 },
4893
4894 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00004895 .vendor = "Eon",
4896 .name = "EN29GL064(A)B",
4897 .bustype = BUS_PARALLEL,
4898 .manufacture_id = EON_ID,
4899 .model_id = EON_EN29GL064B,
4900 .total_size = 8192,
4901 .page_size = 128 * 1024, /* actual page size is 16 */
4902 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4903 .tested = TEST_UNTESTED,
4904 .probe = probe_jedec_29gl,
4905 .probe_timing = TIMING_ZERO,
4906 .block_erasers =
4907 {
4908 {
4909 .eraseblocks = {
4910 {8 * 1024, 8},
4911 {64 * 1024, 127},
4912 },
4913 .block_erase = erase_sector_jedec,
4914 }, {
4915 .eraseblocks = { {8 * 1024 * 1024, 1} },
4916 .block_erase = erase_chip_block_jedec,
4917 },
4918 },
4919 .write = write_jedec_1,
4920 .read = read_memmapped,
4921 .voltage = {2700, 3600},
4922 },
4923
4924 {
4925 .vendor = "Eon",
4926 .name = "EN29GL064(A)T",
4927 .bustype = BUS_PARALLEL,
4928 .manufacture_id = EON_ID,
4929 .model_id = EON_EN29GL064T,
4930 .total_size = 8192,
4931 .page_size = 128 * 1024, /* actual page size is 16 */
4932 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4933 .tested = TEST_UNTESTED,
4934 .probe = probe_jedec_29gl,
4935 .probe_timing = TIMING_ZERO,
4936 .block_erasers =
4937 {
4938 {
4939 .eraseblocks = {
4940 {64 * 1024, 127},
4941 {8 * 1024, 8},
4942 },
4943 .block_erase = erase_sector_jedec,
4944 }, {
4945 .eraseblocks = { {8 * 1024 * 1024, 1} },
4946 .block_erase = erase_chip_block_jedec,
4947 },
4948 },
4949 .write = write_jedec_1,
4950 .read = read_memmapped,
4951 .voltage = {2700, 3600},
4952 },
4953
4954 {
4955 .vendor = "Eon",
4956 .name = "EN29GL064H/L",
4957 .bustype = BUS_PARALLEL,
4958 .manufacture_id = EON_ID,
4959 .model_id = EON_EN29GL064HL,
4960 .total_size = 8192,
4961 .page_size = 128 * 1024, /* actual page size is 16 */
4962 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4963 .tested = TEST_UNTESTED,
4964 .probe = probe_jedec_29gl,
4965 .probe_timing = TIMING_ZERO,
4966 .block_erasers =
4967 {
4968 {
4969 .eraseblocks = { {64 * 1024, 128} },
4970 .block_erase = erase_sector_jedec,
4971 }, {
4972 .eraseblocks = { {8 * 1024 * 1024, 1} },
4973 .block_erase = erase_chip_block_jedec,
4974 },
4975 },
4976 .write = write_jedec_1,
4977 .read = read_memmapped,
4978 .voltage = {2700, 3600},
4979 },
4980
4981 {
4982 .vendor = "Eon",
4983 .name = "EN29GL128",
4984 .bustype = BUS_PARALLEL,
4985 .manufacture_id = EON_ID,
4986 .model_id = EON_EN29GL128HL,
4987 .total_size = 16384,
4988 .page_size = 128 * 1024, /* actual page size is 16 */
4989 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4990 .tested = TEST_UNTESTED,
4991 .probe = probe_jedec_29gl,
4992 .probe_timing = TIMING_ZERO,
4993 .block_erasers =
4994 {
4995 {
4996 .eraseblocks = { {128 * 1024, 128} },
4997 .block_erase = erase_sector_jedec,
4998 }, {
4999 .eraseblocks = { {16 * 1024 * 1024, 1} },
5000 .block_erase = erase_chip_block_jedec,
5001 },
5002 },
5003 .write = write_jedec_1,
5004 .read = read_memmapped,
5005 .voltage = {2700, 3600},
5006 },
5007
5008 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005009 .vendor = "Fujitsu",
5010 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005011 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005012 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005013 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005014 .total_size = 512,
5015 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005016 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005017 .tested = TEST_UNTESTED,
5018 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005019 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005020 .block_erasers =
5021 {
5022 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005023 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005024 {16 * 1024, 1},
5025 {8 * 1024, 2},
5026 {32 * 1024, 1},
5027 {64 * 1024, 7},
5028 },
Sean Nelson35727f72010-01-28 23:55:12 +00005029 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005030 }, {
5031 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005032 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005033 },
5034 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005035 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005036 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005037 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005038 },
5039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005040 {
5041 .vendor = "Fujitsu",
5042 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005043 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005045 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005046 .total_size = 512,
5047 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005048 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005049 .tested = TEST_UNTESTED,
5050 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005051 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005052 .block_erasers =
5053 {
5054 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005055 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005056 {64 * 1024, 7},
5057 {32 * 1024, 1},
5058 {8 * 1024, 2},
5059 {16 * 1024, 1},
5060 },
Sean Nelson35727f72010-01-28 23:55:12 +00005061 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005062 }, {
5063 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005064 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005065 },
5066 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005067 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005069 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005070 },
5071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005072 {
Sean Nelson35727f72010-01-28 23:55:12 +00005073 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005074 .vendor = "Fujitsu",
5075 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005076 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005077 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005078 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005079 .total_size = 512,
5080 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005081 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005082 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005083 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005084 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005085 .block_erasers =
5086 {
5087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005088 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005089 {16 * 1024, 1},
5090 {8 * 1024, 2},
5091 {32 * 1024, 1},
5092 {64 * 1024, 7},
5093 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005094 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005095 }, {
5096 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005097 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005098 },
5099 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005100 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005101 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005102 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005103 },
5104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005105 {
5106 .vendor = "Fujitsu",
5107 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005108 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005109 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005110 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005111 .total_size = 512,
5112 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005113 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .tested = TEST_UNTESTED,
5115 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005116 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005117 .block_erasers =
5118 {
5119 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005120 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005121 {64 * 1024, 7},
5122 {32 * 1024, 1},
5123 {8 * 1024, 2},
5124 {16 * 1024, 1},
5125 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005126 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005127 }, {
5128 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005129 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005130 },
5131 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00005132 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005133 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005134 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005135 },
5136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005137 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005138 .vendor = "Fujitsu",
5139 .name = "MBM29LV160BE",
5140 .bustype = BUS_PARALLEL,
5141 .manufacture_id = FUJITSU_ID,
5142 .model_id = FUJITSU_MBM29LV160BE,
5143 .total_size = 2 * 1024,
5144 .page_size = 0,
5145 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5146 .tested = TEST_UNTESTED,
5147 .probe = probe_m29f400bt,
5148 .probe_timing = TIMING_IGNORED,
5149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = {
5153 {16 * 1024, 1},
5154 {8 * 1024, 2},
5155 {32 * 1024, 1},
5156 {64 * 1024, 31},
5157 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005158 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005159 }, {
5160 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005161 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005162 },
5163 },
5164 .write = write_m29f400bt, /* Supports a fast mode too */
5165 .read = read_memmapped,
5166 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5167 },
5168
5169 {
5170 .vendor = "Fujitsu",
5171 .name = "MBM29LV160TE",
5172 .bustype = BUS_PARALLEL,
5173 .manufacture_id = FUJITSU_ID,
5174 .model_id = FUJITSU_MBM29LV160TE,
5175 .total_size = 2 * 1024,
5176 .page_size = 0,
5177 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5178 .tested = TEST_UNTESTED,
5179 .probe = probe_m29f400bt,
5180 .probe_timing = TIMING_IGNORED,
5181 .block_erasers =
5182 {
5183 {
5184 .eraseblocks = {
5185 {64 * 1024, 31},
5186 {32 * 1024, 1},
5187 {8 * 1024, 2},
5188 {16 * 1024, 1},
5189 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005190 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005191 }, {
5192 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005193 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005194 },
5195 },
5196 .write = write_m29f400bt, /* Supports a fast mode too */
5197 .read = read_memmapped,
5198 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5199 },
5200
5201 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005202 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005203 .name = "GD25LQ32",
5204 .bustype = BUS_SPI,
5205 .manufacture_id = GIGADEVICE_ID,
5206 .model_id = GIGADEVICE_GD25LQ32,
5207 .total_size = 4096,
5208 .page_size = 256,
5209 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5211 .tested = TEST_OK_PREW,
5212 .probe = probe_spi_rdid,
5213 .probe_timing = TIMING_ZERO,
5214 .block_erasers =
5215 {
5216 {
5217 .eraseblocks = { {4 * 1024, 1024} },
5218 .block_erase = spi_block_erase_20,
5219 }, {
5220 .eraseblocks = { {32 * 1024, 128} },
5221 .block_erase = spi_block_erase_52,
5222 }, {
5223 .eraseblocks = { {64 * 1024, 64} },
5224 .block_erase = spi_block_erase_d8,
5225 }, {
5226 .eraseblocks = { {4 * 1024 * 1024, 1} },
5227 .block_erase = spi_block_erase_60,
5228 }, {
5229 .eraseblocks = { {4 * 1024 * 1024, 1} },
5230 .block_erase = spi_block_erase_c7,
5231 }
5232 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005233 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005234 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5235 .write = spi_chip_write_256,
5236 .read = spi_chip_read,
5237 .voltage = {1700, 1950},
5238 },
5239
5240 {
5241 .vendor = "GigaDevice",
5242 .name = "GD25Q512",
5243 .bustype = BUS_SPI,
5244 .manufacture_id = GIGADEVICE_ID,
5245 .model_id = GIGADEVICE_GD25Q512,
5246 .total_size = 64,
5247 .page_size = 256,
5248 .feature_bits = FEATURE_WRSR_WREN,
5249 .tested = TEST_UNTESTED,
5250 .probe = probe_spi_rdid,
5251 .probe_timing = TIMING_ZERO,
5252 .block_erasers = {
5253 {
5254 .eraseblocks = { {4 * 1024, 16} },
5255 .block_erase = spi_block_erase_20,
5256 }, {
5257 .eraseblocks = { {32 * 1024, 2} },
5258 .block_erase = spi_block_erase_52,
5259 }, {
5260 .eraseblocks = { {64 * 1024, 1} },
5261 .block_erase = spi_block_erase_60,
5262 }, {
5263 .eraseblocks = { {64 * 1024, 1} },
5264 .block_erase = spi_block_erase_c7,
5265 }
5266 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005267 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005268 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5269 .write = spi_chip_write_256,
5270 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5271 .voltage = {2700, 3600},
5272 },
5273
5274 {
5275 .vendor = "GigaDevice",
5276 .name = "GD25Q10",
5277 .bustype = BUS_SPI,
5278 .manufacture_id = GIGADEVICE_ID,
5279 .model_id = GIGADEVICE_GD25Q10,
5280 .total_size = 128,
5281 .page_size = 256,
5282 .feature_bits = FEATURE_WRSR_WREN,
5283 .tested = TEST_UNTESTED,
5284 .probe = probe_spi_rdid,
5285 .probe_timing = TIMING_ZERO,
5286 .block_erasers = {
5287 {
5288 .eraseblocks = { {4 * 1024, 32} },
5289 .block_erase = spi_block_erase_20,
5290 }, {
5291 .eraseblocks = { {32 * 1024, 4} },
5292 .block_erase = spi_block_erase_52,
5293 }, {
5294 .eraseblocks = { {64 * 1024, 2} },
5295 .block_erase = spi_block_erase_d8,
5296 }, {
5297 .eraseblocks = { {128 * 1024, 1} },
5298 .block_erase = spi_block_erase_60,
5299 }, {
5300 .eraseblocks = { {128 * 1024, 1} },
5301 .block_erase = spi_block_erase_c7,
5302 }
5303 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005304 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005305 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5306 .write = spi_chip_write_256,
5307 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5308 .voltage = {2700, 3600},
5309 },
5310
5311 {
5312 .vendor = "GigaDevice",
5313 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005314 .bustype = BUS_SPI,
5315 .manufacture_id = GIGADEVICE_ID,
5316 .model_id = GIGADEVICE_GD25Q20,
5317 .total_size = 256,
5318 .page_size = 256,
5319 .feature_bits = FEATURE_WRSR_WREN,
5320 .tested = TEST_UNTESTED,
5321 .probe = probe_spi_rdid,
5322 .probe_timing = TIMING_ZERO,
5323 .block_erasers =
5324 {
5325 {
5326 .eraseblocks = { {4 * 1024, 64} },
5327 .block_erase = spi_block_erase_20,
5328 }, {
5329 .eraseblocks = { {32 * 1024, 8} },
5330 .block_erase = spi_block_erase_52,
5331 }, {
5332 .eraseblocks = { {64 * 1024, 4} },
5333 .block_erase = spi_block_erase_d8,
5334 }, {
5335 .eraseblocks = { {256 * 1024, 1} },
5336 .block_erase = spi_block_erase_60,
5337 }, {
5338 .eraseblocks = { {256 * 1024, 1} },
5339 .block_erase = spi_block_erase_c7,
5340 }
5341 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005342 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005343 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005344 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005345 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005346 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005347 },
5348
5349 {
5350 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005351 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005352 .bustype = BUS_SPI,
5353 .manufacture_id = GIGADEVICE_ID,
5354 .model_id = GIGADEVICE_GD25Q40,
5355 .total_size = 512,
5356 .page_size = 256,
5357 .feature_bits = FEATURE_WRSR_WREN,
5358 .tested = TEST_UNTESTED,
5359 .probe = probe_spi_rdid,
5360 .probe_timing = TIMING_ZERO,
5361 .block_erasers =
5362 {
5363 {
5364 .eraseblocks = { {4 * 1024, 128} },
5365 .block_erase = spi_block_erase_20,
5366 }, {
5367 .eraseblocks = { {32 * 1024, 16} },
5368 .block_erase = spi_block_erase_52,
5369 }, {
5370 .eraseblocks = { {64 * 1024, 8} },
5371 .block_erase = spi_block_erase_d8,
5372 }, {
5373 .eraseblocks = { {512 * 1024, 1} },
5374 .block_erase = spi_block_erase_60,
5375 }, {
5376 .eraseblocks = { {512 * 1024, 1} },
5377 .block_erase = spi_block_erase_c7,
5378 }
5379 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005380 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005381 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005382 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005383 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005384 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005385 },
5386
5387 {
5388 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005389 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005390 .bustype = BUS_SPI,
5391 .manufacture_id = GIGADEVICE_ID,
5392 .model_id = GIGADEVICE_GD25Q80,
5393 .total_size = 1024,
5394 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005395 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005396 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5397 .tested = TEST_OK_PREW,
5398 .probe = probe_spi_rdid,
5399 .probe_timing = TIMING_ZERO,
5400 .block_erasers =
5401 {
5402 {
5403 .eraseblocks = { {4 * 1024, 256} },
5404 .block_erase = spi_block_erase_20,
5405 }, {
5406 .eraseblocks = { {32 * 1024, 32} },
5407 .block_erase = spi_block_erase_52,
5408 }, {
5409 .eraseblocks = { {64 * 1024, 16} },
5410 .block_erase = spi_block_erase_d8,
5411 }, {
5412 .eraseblocks = { {1024 * 1024, 1} },
5413 .block_erase = spi_block_erase_60,
5414 }, {
5415 .eraseblocks = { {1024 * 1024, 1} },
5416 .block_erase = spi_block_erase_c7,
5417 }
5418 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005419 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005420 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005421 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005422 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005423 .voltage = {2700, 3600},
5424 },
5425
5426 {
5427 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005428 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005429 .bustype = BUS_SPI,
5430 .manufacture_id = GIGADEVICE_ID,
5431 .model_id = GIGADEVICE_GD25Q16,
5432 .total_size = 2048,
5433 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005434 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005435 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5436 .tested = TEST_UNTESTED,
5437 .probe = probe_spi_rdid,
5438 .probe_timing = TIMING_ZERO,
5439 .block_erasers =
5440 {
5441 {
5442 .eraseblocks = { {4 * 1024, 512} },
5443 .block_erase = spi_block_erase_20,
5444 }, {
5445 .eraseblocks = { {32 * 1024, 64} },
5446 .block_erase = spi_block_erase_52,
5447 }, {
5448 .eraseblocks = { {64 * 1024, 32} },
5449 .block_erase = spi_block_erase_d8,
5450 }, {
5451 .eraseblocks = { {2 * 1024 * 1024, 1} },
5452 .block_erase = spi_block_erase_60,
5453 }, {
5454 .eraseblocks = { {2 * 1024 * 1024, 1} },
5455 .block_erase = spi_block_erase_c7,
5456 }
5457 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005458 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005459 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005460 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005461 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005462 .voltage = {2700, 3600},
5463 },
5464
5465 {
5466 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005467 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005468 .bustype = BUS_SPI,
5469 .manufacture_id = GIGADEVICE_ID,
5470 .model_id = GIGADEVICE_GD25Q32,
5471 .total_size = 4096,
5472 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005473 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005474 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005475 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005476 .probe = probe_spi_rdid,
5477 .probe_timing = TIMING_ZERO,
5478 .block_erasers =
5479 {
5480 {
5481 .eraseblocks = { {4 * 1024, 1024} },
5482 .block_erase = spi_block_erase_20,
5483 }, {
5484 .eraseblocks = { {32 * 1024, 128} },
5485 .block_erase = spi_block_erase_52,
5486 }, {
5487 .eraseblocks = { {64 * 1024, 64} },
5488 .block_erase = spi_block_erase_d8,
5489 }, {
5490 .eraseblocks = { {4 * 1024 * 1024, 1} },
5491 .block_erase = spi_block_erase_60,
5492 }, {
5493 .eraseblocks = { {4 * 1024 * 1024, 1} },
5494 .block_erase = spi_block_erase_c7,
5495 }
5496 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005497 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005498 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005499 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005500 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005501 .voltage = {2700, 3600},
5502 },
5503
5504 {
5505 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005506 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005507 .bustype = BUS_SPI,
5508 .manufacture_id = GIGADEVICE_ID,
5509 .model_id = GIGADEVICE_GD25Q64,
5510 .total_size = 8192,
5511 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005512 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005513 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005514 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005515 .probe = probe_spi_rdid,
5516 .probe_timing = TIMING_ZERO,
5517 .block_erasers =
5518 {
5519 {
5520 .eraseblocks = { {4 * 1024, 2048} },
5521 .block_erase = spi_block_erase_20,
5522 }, {
5523 .eraseblocks = { {32 * 1024, 256} },
5524 .block_erase = spi_block_erase_52,
5525 }, {
5526 .eraseblocks = { {64 * 1024, 128} },
5527 .block_erase = spi_block_erase_d8,
5528 }, {
5529 .eraseblocks = { {8 * 1024 * 1024, 1} },
5530 .block_erase = spi_block_erase_60,
5531 }, {
5532 .eraseblocks = { {8 * 1024 * 1024, 1} },
5533 .block_erase = spi_block_erase_c7,
5534 }
5535 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005536 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005537 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005538 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005539 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005540 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005541 },
5542
5543 {
5544 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005545 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005546 .bustype = BUS_SPI,
5547 .manufacture_id = GIGADEVICE_ID,
5548 .model_id = GIGADEVICE_GD25Q128,
5549 .total_size = 16384,
5550 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005551 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005552 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5553 .tested = TEST_UNTESTED,
5554 .probe = probe_spi_rdid,
5555 .probe_timing = TIMING_ZERO,
5556 .block_erasers =
5557 {
5558 {
5559 .eraseblocks = { {4 * 1024, 4096} },
5560 .block_erase = spi_block_erase_20,
5561 }, {
5562 .eraseblocks = { {32 * 1024, 512} },
5563 .block_erase = spi_block_erase_52,
5564 }, {
5565 .eraseblocks = { {64 * 1024, 256} },
5566 .block_erase = spi_block_erase_d8,
5567 }, {
5568 .eraseblocks = { {16 * 1024 * 1024, 1} },
5569 .block_erase = spi_block_erase_60,
5570 }, {
5571 .eraseblocks = { {16 * 1024 * 1024, 1} },
5572 .block_erase = spi_block_erase_c7,
5573 }
5574 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005575 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005576 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5577 .write = spi_chip_write_256,
5578 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5579 .voltage = {2700, 3600},
5580 },
5581
5582 {
5583 .vendor = "GigaDevice",
5584 .name = "GD25T80",
5585 .bustype = BUS_SPI,
5586 .manufacture_id = GIGADEVICE_ID,
5587 .model_id = GIGADEVICE_GD25T80,
5588 .total_size = 1024,
5589 .page_size = 256,
5590 /* OTP: 256B total; enter 0x3A */
5591 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5592 .tested = TEST_UNTESTED,
5593 .probe = probe_spi_rdid,
5594 .probe_timing = TIMING_ZERO,
5595 .block_erasers = {
5596 {
5597 .eraseblocks = { {4 * 1024, 256} },
5598 .block_erase = spi_block_erase_20,
5599 }, {
5600 .eraseblocks = { {64 * 1024, 16} },
5601 .block_erase = spi_block_erase_52,
5602 }, {
5603 .eraseblocks = { {64 * 1024, 16} },
5604 .block_erase = spi_block_erase_d8,
5605 }, {
5606 .eraseblocks = { {1024 * 1024, 1} },
5607 .block_erase = spi_block_erase_60,
5608 }, {
5609 .eraseblocks = { {1024 * 1024, 1} },
5610 .block_erase = spi_block_erase_c7,
5611 }
5612 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005613 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005614 .unlock = spi_disable_blockprotect,
5615 .write = spi_chip_write_256,
5616 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005617 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005618 },
5619
5620 {
David Borgc96a8bd2010-06-21 16:12:22 +00005621 .vendor = "Hyundai",
5622 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005623 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005624 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005625 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005626 .total_size = 256,
5627 .page_size = 256 * 1024,
5628 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005629 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005630 .probe = probe_jedec,
5631 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5632 .block_erasers =
5633 {
5634 {
5635 .eraseblocks = {
5636 {64 * 1024, 3},
5637 {32 * 1024, 1},
5638 {8 * 1024, 2},
5639 {16 * 1024, 1},
5640 },
5641 .block_erase = erase_sector_jedec,
5642 }, {
5643 .eraseblocks = { {256 * 1024, 1} },
5644 .block_erase = erase_chip_block_jedec,
5645 },
5646 },
5647 .write = write_jedec_1,
5648 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005649 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005650 },
5651
5652 {
5653 .vendor = "Hyundai",
5654 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005655 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005656 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005657 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005658 .total_size = 256,
5659 .page_size = 256 * 1024,
5660 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5661 .tested = TEST_UNTESTED,
5662 .probe = probe_jedec,
5663 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5664 .block_erasers =
5665 {
5666 {
5667 .eraseblocks = {
5668 {16 * 1024, 1},
5669 {8 * 1024, 2},
5670 {32 * 1024, 1},
5671 {64 * 1024, 3},
5672 },
5673 .block_erase = erase_sector_jedec,
5674 }, {
5675 .eraseblocks = { {256 * 1024, 1} },
5676 .block_erase = erase_chip_block_jedec,
5677 },
5678 },
5679 .write = write_jedec_1,
5680 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005681 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005682 },
5683
5684 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005685 .vendor = "Hyundai",
5686 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005687 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005688 .manufacture_id = HYUNDAI_ID,
5689 .model_id = HYUNDAI_HY29F040A,
5690 .total_size = 512,
5691 .page_size = 64 * 1024,
5692 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5693 .tested = TEST_UNTESTED,
5694 .probe = probe_jedec,
5695 .probe_timing = TIMING_ZERO,
5696 .block_erasers =
5697 {
5698 {
5699 .eraseblocks = { {64 * 1024, 8} },
5700 .block_erase = erase_sector_jedec,
5701 }, {
5702 .eraseblocks = { {512 * 1024, 1} },
5703 .block_erase = erase_chip_block_jedec,
5704 },
5705 },
5706 .write = write_jedec_1,
5707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005708 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005709 },
5710
5711 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005712 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005713 .name = "25F160S33B8",
5714 .bustype = BUS_SPI,
5715 .manufacture_id = INTEL_ID,
5716 .model_id = INTEL_25F160S33B8,
5717 .total_size = 2048,
5718 .page_size = 256,
5719 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5720 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5721 .tested = TEST_UNTESTED,
5722 .probe = probe_spi_rdid,
5723 .probe_timing = TIMING_ZERO,
5724 .block_erasers =
5725 {
5726 {
5727 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5728 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5729 * have no effect on the memory contents, but sets a flag in the SR.
5730 .eraseblocks = {
5731 {8 * 1024, 8},
5732 {64 * 1024, 31} // inaccessible
5733 },
5734 .block_erase = spi_block_erase_40,
5735 }, { */
5736 .eraseblocks = { {64 * 1024, 32} },
5737 .block_erase = spi_block_erase_d8,
5738 }, {
5739 .eraseblocks = { {2 * 1024 * 1024, 1} },
5740 .block_erase = spi_block_erase_c7,
5741 }
5742 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005743 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5744 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005745 .write = spi_chip_write_256,
5746 .read = spi_chip_read, /* also fast read 0x0B */
5747 .voltage = {2700, 3600},
5748 },
5749
5750 {
5751 .vendor = "Intel",
5752 .name = "25F160S33T8",
5753 .bustype = BUS_SPI,
5754 .manufacture_id = INTEL_ID,
5755 .model_id = INTEL_25F160S33T8,
5756 .total_size = 2048,
5757 .page_size = 256,
5758 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5760 .tested = TEST_UNTESTED,
5761 .probe = probe_spi_rdid,
5762 .probe_timing = TIMING_ZERO,
5763 .block_erasers =
5764 {
5765 {
5766 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5767 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5768 * have no effect on the memory contents, but sets a flag in the SR.
5769 .eraseblocks = {
5770 {64 * 1024, 31}, // inaccessible
5771 {8 * 1024, 8}
5772 },
5773 .block_erase = spi_block_erase_40,
5774 }, { */
5775 .eraseblocks = { {64 * 1024, 32} },
5776 .block_erase = spi_block_erase_d8,
5777 }, {
5778 .eraseblocks = { {2 * 1024 * 1024, 1} },
5779 .block_erase = spi_block_erase_c7,
5780 }
5781 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005782 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5783 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005784 .write = spi_chip_write_256,
5785 .read = spi_chip_read, /* also fast read 0x0B */
5786 .voltage = {2700, 3600},
5787 },
5788
5789 {
5790 .vendor = "Intel",
5791 .name = "25F320S33B8",
5792 .bustype = BUS_SPI,
5793 .manufacture_id = INTEL_ID,
5794 .model_id = INTEL_25F320S33B8,
5795 .total_size = 4096,
5796 .page_size = 256,
5797 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5799 .tested = TEST_UNTESTED,
5800 .probe = probe_spi_rdid,
5801 .probe_timing = TIMING_ZERO,
5802 .block_erasers =
5803 {
5804 {
5805 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5806 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5807 * have no effect on the memory contents, but sets a flag in the SR.
5808 .eraseblocks = {
5809 {8 * 1024, 8},
5810 {64 * 1024, 63} // inaccessible
5811 },
5812 .block_erase = spi_block_erase_40,
5813 }, { */
5814 .eraseblocks = { {64 * 1024, 64} },
5815 .block_erase = spi_block_erase_d8,
5816 }, {
5817 .eraseblocks = { {4 * 1024 * 1024, 1} },
5818 .block_erase = spi_block_erase_c7,
5819 }
5820 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005821 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5822 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005823 .write = spi_chip_write_256,
5824 .read = spi_chip_read, /* also fast read 0x0B */
5825 .voltage = {2700, 3600},
5826 },
5827
5828 {
5829 .vendor = "Intel",
5830 .name = "25F320S33T8",
5831 .bustype = BUS_SPI,
5832 .manufacture_id = INTEL_ID,
5833 .model_id = INTEL_25F320S33T8,
5834 .total_size = 4096,
5835 .page_size = 256,
5836 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5837 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5838 .tested = TEST_UNTESTED,
5839 .probe = probe_spi_rdid,
5840 .probe_timing = TIMING_ZERO,
5841 .block_erasers =
5842 {
5843 {
5844 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5845 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5846 * have no effect on the memory contents, but sets a flag in the SR.
5847 .eraseblocks = {
5848 {64 * 1024, 63}, // inaccessible
5849 {8 * 1024, 8}
5850 },
5851 .block_erase = spi_block_erase_40,
5852 }, { */
5853 .eraseblocks = { {64 * 1024, 64} },
5854 .block_erase = spi_block_erase_d8,
5855 }, {
5856 .eraseblocks = { {4 * 1024 * 1024, 1} },
5857 .block_erase = spi_block_erase_c7,
5858 }
5859 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005860 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5861 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005862 .write = spi_chip_write_256,
5863 .read = spi_chip_read, /* also fast read 0x0B */
5864 .voltage = {2700, 3600},
5865 },
5866
5867 {
5868 .vendor = "Intel",
5869 .name = "25F640S33B8",
5870 .bustype = BUS_SPI,
5871 .manufacture_id = INTEL_ID,
5872 .model_id = INTEL_25F640S33B8,
5873 .total_size = 8192,
5874 .page_size = 256,
5875 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5877 .tested = TEST_UNTESTED,
5878 .probe = probe_spi_rdid,
5879 .probe_timing = TIMING_ZERO,
5880 .block_erasers =
5881 {
5882 {
5883 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5884 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5885 * have no effect on the memory contents, but sets a flag in the SR.
5886 .eraseblocks = {
5887 {8 * 1024, 8},
5888 {64 * 1024, 127} // inaccessible
5889 },
5890 .block_erase = spi_block_erase_40,
5891 }, { */
5892 .eraseblocks = { {64 * 1024, 128} },
5893 .block_erase = spi_block_erase_d8,
5894 }, {
5895 .eraseblocks = { {8 * 1024 * 1024, 1} },
5896 .block_erase = spi_block_erase_c7,
5897 }
5898 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005899 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5900 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005901 .write = spi_chip_write_256,
5902 .read = spi_chip_read, /* also fast read 0x0B */
5903 .voltage = {2700, 3600},
5904 },
5905
5906 {
5907 .vendor = "Intel",
5908 .name = "25F640S33T8",
5909 .bustype = BUS_SPI,
5910 .manufacture_id = INTEL_ID,
5911 .model_id = INTEL_25F640S33T8,
5912 .total_size = 8192,
5913 .page_size = 256,
5914 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5915 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5916 .tested = TEST_UNTESTED,
5917 .probe = probe_spi_rdid,
5918 .probe_timing = TIMING_ZERO,
5919 .block_erasers =
5920 {
5921 {
5922 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5923 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5924 * have no effect on the memory contents, but sets a flag in the SR.
5925 .eraseblocks = {
5926 {64 * 1024, 127}, // inaccessible
5927 {8 * 1024, 8}
5928 },
5929 .block_erase = spi_block_erase_40,
5930 }, { */
5931 .eraseblocks = { {64 * 1024, 128} },
5932 .block_erase = spi_block_erase_d8,
5933 }, {
5934 .eraseblocks = { {8 * 1024 * 1024, 1} },
5935 .block_erase = spi_block_erase_c7,
5936 }
5937 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005938 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5939 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005940 .write = spi_chip_write_256,
5941 .read = spi_chip_read, /* also fast read 0x0B */
5942 .voltage = {2700, 3600},
5943 },
5944
5945 {
5946 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005947 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005948 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005949 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005950 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005951 .total_size = 128,
5952 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005953 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005954 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005955 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005956 .block_erasers =
5957 {
5958 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005959 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005960 {8 * 1024, 1},
5961 {4 * 1024, 2},
5962 {112 * 1024, 1},
5963 },
Sean Nelson28accc22010-03-19 18:47:06 +00005964 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005965 },
5966 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005967 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005969 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005970 },
5971
5972 {
5973 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005974 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005975 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005976 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005977 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005978 .total_size = 128,
5979 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005980 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005981 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005982 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005983 .block_erasers =
5984 {
5985 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005986 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005987 {112 * 1024, 1},
5988 {4 * 1024, 2},
5989 {8 * 1024, 1},
5990 },
Sean Nelson28accc22010-03-19 18:47:06 +00005991 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005992 },
5993 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005994 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005996 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005997 },
5998
5999 {
6000 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006001 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006002 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006003 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006004 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006005 .total_size = 256,
6006 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006007 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006008 .probe = probe_82802ab,
6009 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6010 .block_erasers =
6011 {
6012 {
6013 .eraseblocks = {
6014 {128 * 1024, 1},
6015 {96 * 1024, 1},
6016 {8 * 1024, 2},
6017 {16 * 1024, 1},
6018 },
6019 .block_erase = erase_block_82802ab,
6020 },
6021 },
6022 .write = write_82802ab,
6023 .read = read_memmapped,
6024 },
6025
6026 {
6027 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006028 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006029 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006030 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006031 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006032 .total_size = 512,
6033 .page_size = 256,
6034 .tested = TEST_UNTESTED,
6035 .probe = probe_82802ab,
6036 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006037 .block_erasers =
6038 {
6039 {
6040 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006041 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006042 },
6043 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006044 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006045 .write = write_82802ab,
6046 .read = read_memmapped,
6047 },
6048
6049 {
6050 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006051 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006052 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006053 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006054 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006055 .total_size = 512,
6056 .page_size = 128 * 1024, /* maximal block size */
6057 .tested = TEST_UNTESTED,
6058 .probe = probe_82802ab,
6059 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6060 .block_erasers =
6061 {
6062 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006063 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006064 {16 * 1024, 1},
6065 {8 * 1024, 2},
6066 {96 * 1024, 1},
6067 {128 * 1024, 3},
6068 },
6069 .block_erase = erase_block_82802ab,
6070 },
6071 },
6072 .write = write_82802ab,
6073 .read = read_memmapped,
6074 },
6075
6076 {
6077 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006078 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006079 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006080 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006081 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006082 .total_size = 512,
6083 .page_size = 128 * 1024, /* maximal block size */
6084 .tested = TEST_UNTESTED,
6085 .probe = probe_82802ab,
6086 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6087 .block_erasers =
6088 {
6089 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006090 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006091 {128 * 1024, 3},
6092 {96 * 1024, 1},
6093 {8 * 1024, 2},
6094 {16 * 1024, 1},
6095 },
6096 .block_erase = erase_block_82802ab,
6097 },
6098 },
6099 .write = write_82802ab,
6100 .read = read_memmapped,
6101 },
6102
6103 {
6104 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006105 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006106 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006107 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006108 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006109 .total_size = 512,
6110 .page_size = 128 * 1024, /* maximal block size */
6111 .feature_bits = FEATURE_ADDR_SHIFTED,
6112 .tested = TEST_UNTESTED,
6113 .probe = probe_82802ab,
6114 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6115 .block_erasers =
6116 {
6117 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006118 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006119 {16 * 1024, 1},
6120 {8 * 1024, 2},
6121 {96 * 1024, 1},
6122 {128 * 1024, 3},
6123 },
6124 .block_erase = erase_block_82802ab,
6125 },
6126 },
6127 .write = write_82802ab,
6128 .read = read_memmapped,
6129 },
6130
6131 {
6132 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006133 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006134 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006135 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006136 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006137 .total_size = 512,
6138 .page_size = 128 * 1024, /* maximal block size */
6139 .feature_bits = FEATURE_ADDR_SHIFTED,
6140 .tested = TEST_UNTESTED,
6141 .probe = probe_82802ab,
6142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6143 .block_erasers =
6144 {
6145 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006146 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006147 {128 * 1024, 3},
6148 {96 * 1024, 1},
6149 {8 * 1024, 2},
6150 {16 * 1024, 1},
6151 },
6152 .block_erase = erase_block_82802ab,
6153 },
6154 },
6155 .write = write_82802ab,
6156 .read = read_memmapped,
6157 },
6158
6159 {
6160 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006161 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006162 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006163 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006164 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006165 .total_size = 512,
6166 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006167 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006168 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006169 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006170 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006171 .block_erasers =
6172 {
6173 {
6174 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006175 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006176 },
6177 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006178 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006179 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006181 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006182 },
6183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006184 {
6185 .vendor = "Intel",
6186 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006187 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006189 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .total_size = 1024,
6191 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006192 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006193 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006194 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006195 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006196 .block_erasers =
6197 {
6198 {
6199 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006200 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006201 },
6202 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006203 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006204 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006206 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006207 },
6208
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006209 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006210 .vendor = "ISSI",
6211 .name = "IS29GL064B",
6212 .bustype = BUS_PARALLEL,
6213 .manufacture_id = ISSI_ID,
6214 .model_id = ISSI_PMC_IS29GL064B,
6215 .total_size = 8192,
6216 .page_size = 128 * 1024, /* actual page size is 16 */
6217 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6218 .tested = TEST_UNTESTED,
6219 .probe = probe_jedec_29gl,
6220 .probe_timing = TIMING_ZERO,
6221 .block_erasers =
6222 {
6223 {
6224 .eraseblocks = {
6225 {8 * 1024, 8},
6226 {64 * 1024, 127},
6227 },
6228 .block_erase = erase_sector_jedec,
6229 }, {
6230 .eraseblocks = { {8 * 1024 * 1024, 1} },
6231 .block_erase = erase_chip_block_jedec,
6232 },
6233 },
6234 .write = write_jedec_1,
6235 .read = read_memmapped,
6236 .voltage = {2700, 3600},
6237 },
6238
6239 {
6240 .vendor = "ISSI",
6241 .name = "IS29GL064T",
6242 .bustype = BUS_PARALLEL,
6243 .manufacture_id = ISSI_ID,
6244 .model_id = ISSI_PMC_IS29GL064T,
6245 .total_size = 8192,
6246 .page_size = 128 * 1024, /* actual page size is 16 */
6247 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6248 .tested = TEST_UNTESTED,
6249 .probe = probe_jedec_29gl,
6250 .probe_timing = TIMING_ZERO,
6251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = {
6255 {64 * 1024, 127},
6256 {8 * 1024, 8},
6257 },
6258 .block_erase = erase_sector_jedec,
6259 }, {
6260 .eraseblocks = { {8 * 1024 * 1024, 1} },
6261 .block_erase = erase_chip_block_jedec,
6262 },
6263 },
6264 .write = write_jedec_1,
6265 .read = read_memmapped,
6266 .voltage = {2700, 3600},
6267 },
6268
6269 {
6270 .vendor = "ISSI",
6271 .name = "IS29GL064H/L",
6272 .bustype = BUS_PARALLEL,
6273 .manufacture_id = ISSI_ID,
6274 .model_id = ISSI_PMC_IS29GL064HL,
6275 .total_size = 8192,
6276 .page_size = 128 * 1024, /* actual page size is 16 */
6277 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6278 .tested = TEST_UNTESTED,
6279 .probe = probe_jedec_29gl,
6280 .probe_timing = TIMING_ZERO,
6281 .block_erasers =
6282 {
6283 {
6284 .eraseblocks = { {64 * 1024, 128} },
6285 .block_erase = erase_sector_jedec,
6286 }, {
6287 .eraseblocks = { {8 * 1024 * 1024, 1} },
6288 .block_erase = erase_chip_block_jedec,
6289 },
6290 },
6291 .write = write_jedec_1,
6292 .read = read_memmapped,
6293 .voltage = {2700, 3600},
6294 },
6295
6296 {
6297 .vendor = "ISSI",
6298 .name = "IS29GL128H/L",
6299 .bustype = BUS_PARALLEL,
6300 .manufacture_id = ISSI_ID,
6301 .model_id = ISSI_PMC_IS29GL128HL,
6302 .total_size = 16384,
6303 .page_size = 128 * 1024, /* actual page size is 16 */
6304 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6305 .tested = TEST_UNTESTED,
6306 .probe = probe_jedec_29gl,
6307 .probe_timing = TIMING_ZERO,
6308 .block_erasers =
6309 {
6310 {
6311 .eraseblocks = { {128 * 1024, 128} },
6312 .block_erase = erase_sector_jedec,
6313 }, {
6314 .eraseblocks = { {16 * 1024 * 1024, 1} },
6315 .block_erase = erase_chip_block_jedec,
6316 },
6317 },
6318 .write = write_jedec_1,
6319 .read = read_memmapped,
6320 .voltage = {2700, 3600},
6321 },
6322
6323 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006324 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006325 .name = "MX23L3254",
6326 .bustype = BUS_SPI,
6327 .manufacture_id = MACRONIX_ID,
6328 .model_id = MACRONIX_MX23L3254,
6329 .total_size = 4096,
6330 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006331 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006332 .probe = probe_spi_rdid,
6333 .probe_timing = TIMING_ZERO,
6334 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6335 .read = spi_chip_read, /* Fast read (0x0B) supported */
6336 .voltage = {3000, 3600},
6337 },
6338
6339 {
6340 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006341 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006342 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006343 .manufacture_id = MACRONIX_ID,
6344 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006345 .total_size = 64,
6346 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006347 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006348 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006349 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006350 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006351 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006352 .block_erasers =
6353 {
6354 {
6355 .eraseblocks = { {4 * 1024, 16} },
6356 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006357 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006358 .eraseblocks = { {64 * 1024, 1} },
6359 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006360 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006361 .eraseblocks = { {64 * 1024, 1} },
6362 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006363 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006364 .eraseblocks = { {64 * 1024, 1} },
6365 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006366 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006367 .eraseblocks = { {64 * 1024, 1} },
6368 .block_erase = spi_block_erase_c7,
6369 },
6370 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006371 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006372 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006373 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006374 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6375 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006376 },
6377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006378 {
6379 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006380 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006381 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006382 .manufacture_id = MACRONIX_ID,
6383 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 .total_size = 128,
6385 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006386 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006387 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006388 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006389 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006390 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006391 .block_erasers =
6392 {
6393 {
6394 .eraseblocks = { {4 * 1024, 32} },
6395 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006396 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006397 .eraseblocks = { {64 * 1024, 2} },
6398 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006399 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006400 .eraseblocks = { {128 * 1024, 1} },
6401 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006402 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006403 .eraseblocks = { {128 * 1024, 1} },
6404 .block_erase = spi_block_erase_c7,
6405 },
6406 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006407 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006409 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006410 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006411 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006412 },
6413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006414 {
6415 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006416 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006417 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006418 .manufacture_id = MACRONIX_ID,
6419 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 .total_size = 256,
6421 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006422 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006423 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006424 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006425 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006426 .block_erasers =
6427 {
6428 {
6429 .eraseblocks = { {4 * 1024, 64} },
6430 .block_erase = spi_block_erase_20,
6431 }, {
6432 .eraseblocks = { {64 * 1024, 4} },
6433 .block_erase = spi_block_erase_52,
6434 }, {
6435 .eraseblocks = { {64 * 1024, 4} },
6436 .block_erase = spi_block_erase_d8,
6437 }, {
6438 .eraseblocks = { {256 * 1024, 1} },
6439 .block_erase = spi_block_erase_60,
6440 }, {
6441 .eraseblocks = { {256 * 1024, 1} },
6442 .block_erase = spi_block_erase_c7,
6443 },
6444 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006445 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006447 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006448 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006449 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006450 },
6451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006452 {
6453 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006454 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006455 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006456 .manufacture_id = MACRONIX_ID,
6457 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .total_size = 512,
6459 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006460 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006462 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006463 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006464 .block_erasers =
6465 {
6466 {
6467 .eraseblocks = { {4 * 1024, 128} },
6468 .block_erase = spi_block_erase_20,
6469 }, {
6470 .eraseblocks = { {64 * 1024, 8} },
6471 .block_erase = spi_block_erase_52,
6472 }, {
6473 .eraseblocks = { {64 * 1024, 8} },
6474 .block_erase = spi_block_erase_d8,
6475 }, {
6476 .eraseblocks = { {512 * 1024, 1} },
6477 .block_erase = spi_block_erase_60,
6478 }, {
6479 .eraseblocks = { {512 * 1024, 1} },
6480 .block_erase = spi_block_erase_c7,
6481 },
6482 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006483 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006484 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006485 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006486 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006487 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006488 },
6489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006490 {
6491 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006492 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006493 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006494 .manufacture_id = MACRONIX_ID,
6495 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006496 .total_size = 1024,
6497 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006498 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006499 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006500 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006501 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006502 .block_erasers =
6503 {
6504 {
6505 .eraseblocks = { {4 * 1024, 256} },
6506 .block_erase = spi_block_erase_20,
6507 }, {
6508 .eraseblocks = { {64 * 1024, 16} },
6509 .block_erase = spi_block_erase_52,
6510 }, {
6511 .eraseblocks = { {64 * 1024, 16} },
6512 .block_erase = spi_block_erase_d8,
6513 }, {
6514 .eraseblocks = { {1024 * 1024, 1} },
6515 .block_erase = spi_block_erase_60,
6516 }, {
6517 .eraseblocks = { {1024 * 1024, 1} },
6518 .block_erase = spi_block_erase_c7,
6519 },
6520 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006521 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006522 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006523 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006524 .read = spi_chip_read, /* Fast read (0x0B) supported */
6525 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006526 },
6527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006528 {
6529 .vendor = "Macronix",
6530 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006531 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006532 .manufacture_id = MACRONIX_ID,
6533 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006534 .total_size = 2048,
6535 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006536 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006537 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006538 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006539 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006540 .block_erasers =
6541 {
6542 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006543 .eraseblocks = { {64 * 1024, 32} },
6544 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006545 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006546 .eraseblocks = { {64 * 1024, 32} },
6547 .block_erase = spi_block_erase_d8,
6548 }, {
6549 .eraseblocks = { {2 * 1024 * 1024, 1} },
6550 .block_erase = spi_block_erase_60,
6551 }, {
6552 .eraseblocks = { {2 * 1024 * 1024, 1} },
6553 .block_erase = spi_block_erase_c7,
6554 },
6555 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006556 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006557 .unlock = spi_disable_blockprotect,
6558 .write = spi_chip_write_256,
6559 .read = spi_chip_read, /* Fast read (0x0B) supported */
6560 .voltage = {2700, 3600},
6561 },
6562
6563 {
6564 .vendor = "Macronix",
6565 .name = "MX25L1605A/MX25L1606E",
6566 .bustype = BUS_SPI,
6567 .manufacture_id = MACRONIX_ID,
6568 .model_id = MACRONIX_MX25L1605,
6569 .total_size = 2048,
6570 .page_size = 256,
6571 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6572 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6573 .tested = TEST_OK_PREW,
6574 .probe = probe_spi_rdid,
6575 .probe_timing = TIMING_ZERO,
6576 .block_erasers =
6577 {
6578 {
6579 .eraseblocks = { {4 * 1024, 512} },
6580 .block_erase = spi_block_erase_20,
6581 }, {
6582 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006583 .block_erase = spi_block_erase_52,
6584 }, {
6585 .eraseblocks = { {64 * 1024, 32} },
6586 .block_erase = spi_block_erase_d8,
6587 }, {
6588 .eraseblocks = { {2 * 1024 * 1024, 1} },
6589 .block_erase = spi_block_erase_60,
6590 }, {
6591 .eraseblocks = { {2 * 1024 * 1024, 1} },
6592 .block_erase = spi_block_erase_c7,
6593 },
6594 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006595 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006596 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006597 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006598 .read = spi_chip_read, /* Fast read (0x0B) supported */
6599 .voltage = {2700, 3600},
6600 },
6601
6602 {
6603 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006604 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006605 .bustype = BUS_SPI,
6606 .manufacture_id = MACRONIX_ID,
6607 .model_id = MACRONIX_MX25L1605,
6608 .total_size = 2048,
6609 .page_size = 256,
6610 .feature_bits = FEATURE_WRSR_WREN,
6611 .tested = TEST_OK_PREW,
6612 .probe = probe_spi_rdid,
6613 .probe_timing = TIMING_ZERO,
6614 .block_erasers =
6615 {
6616 {
6617 .eraseblocks = { {4 * 1024, 512} },
6618 .block_erase = spi_block_erase_20,
6619 }, {
6620 .eraseblocks = { {64 * 1024, 32} },
6621 .block_erase = spi_block_erase_d8,
6622 }, {
6623 .eraseblocks = { {2 * 1024 * 1024, 1} },
6624 .block_erase = spi_block_erase_60,
6625 }, {
6626 .eraseblocks = { {2 * 1024 * 1024, 1} },
6627 .block_erase = spi_block_erase_c7,
6628 },
6629 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006630 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006631 .unlock = spi_disable_blockprotect,
6632 .write = spi_chip_write_256,
6633 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006634 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006635 },
6636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006637 {
6638 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006639 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006640 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006641 .manufacture_id = MACRONIX_ID,
6642 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006643 .total_size = 2048,
6644 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006645 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6646 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006647 .tested = TEST_UNTESTED,
6648 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006649 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006650 .block_erasers =
6651 {
6652 {
6653 .eraseblocks = { {4 * 1024, 512} },
6654 .block_erase = spi_block_erase_20,
6655 }, {
6656 .eraseblocks = { {64 * 1024, 32} },
6657 .block_erase = spi_block_erase_d8,
6658 }, {
6659 .eraseblocks = { {2 * 1024 * 1024, 1} },
6660 .block_erase = spi_block_erase_60,
6661 }, {
6662 .eraseblocks = { {2 * 1024 * 1024, 1} },
6663 .block_erase = spi_block_erase_c7,
6664 }
6665 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006666 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006667 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006668 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006670 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006671 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006672
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006673 {
6674 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006675 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006676 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006677 .manufacture_id = MACRONIX_ID,
6678 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006679 .total_size = 2048,
6680 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006681 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6682 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006683 .tested = TEST_UNTESTED,
6684 .probe = probe_spi_rdid,
6685 .probe_timing = TIMING_ZERO,
6686 .block_erasers =
6687 {
6688 {
6689 .eraseblocks = { {4 * 1024, 512} },
6690 .block_erase = spi_block_erase_20,
6691 }, {
6692 .eraseblocks = { {64 * 1024, 32} },
6693 .block_erase = spi_block_erase_d8,
6694 }, {
6695 .eraseblocks = { {2 * 1024 * 1024, 1} },
6696 .block_erase = spi_block_erase_60,
6697 }, {
6698 .eraseblocks = { {2 * 1024 * 1024, 1} },
6699 .block_erase = spi_block_erase_c7,
6700 }
6701 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006702 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006703 .unlock = spi_disable_blockprotect,
6704 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006705 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006706 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006707 },
6708
6709 {
6710 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006711 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006712 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006713 .manufacture_id = MACRONIX_ID,
6714 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006715 .total_size = 4096,
6716 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006717 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006718 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006719 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006720 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006721 .block_erasers =
6722 {
6723 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006724 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006725 .block_erase = spi_block_erase_20,
6726 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006727 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006728 .block_erase = spi_block_erase_d8,
6729 }, {
6730 .eraseblocks = { {4 * 1024 * 1024, 1} },
6731 .block_erase = spi_block_erase_60,
6732 }, {
6733 .eraseblocks = { {4 * 1024 * 1024, 1} },
6734 .block_erase = spi_block_erase_c7,
6735 },
6736 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006737 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006738 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006739 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006740 .read = spi_chip_read, /* Fast read (0x0B) supported */
6741 .voltage = {2700, 3600},
6742 },
6743
6744 {
6745 .vendor = "Macronix",
6746 .name = "MX25L3205D/MX25L3208D",
6747 .bustype = BUS_SPI,
6748 .manufacture_id = MACRONIX_ID,
6749 .model_id = MACRONIX_MX25L3205,
6750 .total_size = 4096,
6751 .page_size = 256,
6752 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6754 .tested = TEST_OK_PREW,
6755 .probe = probe_spi_rdid,
6756 .probe_timing = TIMING_ZERO,
6757 .block_erasers =
6758 {
6759 {
6760 .eraseblocks = { {4 * 1024, 1024} },
6761 .block_erase = spi_block_erase_20,
6762 }, {
6763 .eraseblocks = { {64 * 1024, 64} },
6764 .block_erase = spi_block_erase_d8,
6765 }, {
6766 .eraseblocks = { {4 * 1024 * 1024, 1} },
6767 .block_erase = spi_block_erase_60,
6768 }, {
6769 .eraseblocks = { {4 * 1024 * 1024, 1} },
6770 .block_erase = spi_block_erase_c7,
6771 },
6772 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006773 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006774 .unlock = spi_disable_blockprotect,
6775 .write = spi_chip_write_256,
6776 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6777 .voltage = {2700, 3600},
6778 },
6779
6780 {
6781 .vendor = "Macronix",
6782 .name = "MX25L3206E",
6783 .bustype = BUS_SPI,
6784 .manufacture_id = MACRONIX_ID,
6785 .model_id = MACRONIX_MX25L3205,
6786 .total_size = 4096,
6787 .page_size = 256,
6788 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6790 .tested = TEST_OK_PREW,
6791 .probe = probe_spi_rdid,
6792 .probe_timing = TIMING_ZERO,
6793 .block_erasers =
6794 {
6795 {
6796 .eraseblocks = { {4 * 1024, 1024} },
6797 .block_erase = spi_block_erase_20,
6798 }, {
6799 .eraseblocks = { {64 * 1024, 64} },
6800 .block_erase = spi_block_erase_d8,
6801 }, {
6802 .eraseblocks = { {64 * 1024, 64} },
6803 .block_erase = spi_block_erase_52,
6804 }, {
6805 .eraseblocks = { {4 * 1024 * 1024, 1} },
6806 .block_erase = spi_block_erase_60,
6807 }, {
6808 .eraseblocks = { {4 * 1024 * 1024, 1} },
6809 .block_erase = spi_block_erase_c7,
6810 },
6811 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006812 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00006813 .unlock = spi_disable_blockprotect,
6814 .write = spi_chip_write_256,
6815 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006816 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006817 },
6818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006819 {
6820 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006821 .name = "MX25L3273E",
6822 .bustype = BUS_SPI,
6823 .manufacture_id = MACRONIX_ID,
6824 .model_id = MACRONIX_MX25L3205,
6825 .total_size = 4096,
6826 .page_size = 256,
6827 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6829 .tested = TEST_UNTESTED,
6830 .probe = probe_spi_rdid,
6831 .probe_timing = TIMING_ZERO,
6832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = { {4 * 1024, 1024} },
6836 .block_erase = spi_block_erase_20,
6837 }, {
6838 .eraseblocks = { {32 * 1024, 128} },
6839 .block_erase = spi_block_erase_52,
6840 }, {
6841 .eraseblocks = { {64 * 1024, 64} },
6842 .block_erase = spi_block_erase_d8,
6843 }, {
6844 .eraseblocks = { {4 * 1024 * 1024, 1} },
6845 .block_erase = spi_block_erase_60,
6846 }, {
6847 .eraseblocks = { {4 * 1024 * 1024, 1} },
6848 .block_erase = spi_block_erase_c7,
6849 },
6850 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006851 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006852 .unlock = spi_disable_blockprotect,
6853 .write = spi_chip_write_256,
6854 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6855 .voltage = {2700, 3600},
6856 },
6857
6858 {
6859 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006860 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006861 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006862 .manufacture_id = MACRONIX_ID,
6863 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006864 .total_size = 4096,
6865 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006866 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006868 .tested = TEST_UNTESTED,
6869 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006871 .block_erasers =
6872 {
6873 {
6874 .eraseblocks = { {4 * 1024, 1024} },
6875 .block_erase = spi_block_erase_20,
6876 }, {
6877 .eraseblocks = { {64 * 1024, 64} },
6878 .block_erase = spi_block_erase_d8,
6879 }, {
6880 .eraseblocks = { {4 * 1024 * 1024, 1} },
6881 .block_erase = spi_block_erase_60,
6882 }, {
6883 .eraseblocks = { {4 * 1024 * 1024, 1} },
6884 .block_erase = spi_block_erase_c7,
6885 }
6886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006887 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006888 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006889 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006890 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006891 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006892 },
6893
6894 {
6895 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006896 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006897 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006898 .manufacture_id = MACRONIX_ID,
6899 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006900 .total_size = 8192,
6901 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006902 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006904 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006905 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006907 .block_erasers =
6908 {
6909 {
6910 .eraseblocks = { {64 * 1024, 128} },
6911 .block_erase = spi_block_erase_20,
6912 }, {
6913 .eraseblocks = { {64 * 1024, 128} },
6914 .block_erase = spi_block_erase_d8,
6915 }, {
6916 .eraseblocks = { {8 * 1024 * 1024, 1} },
6917 .block_erase = spi_block_erase_60,
6918 }, {
6919 .eraseblocks = { {8 * 1024 * 1024, 1} },
6920 .block_erase = spi_block_erase_c7,
6921 }
6922 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006923 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006924 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006925 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006927 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006928 },
6929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006930 {
6931 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006932 .name = "MX25L6406E/MX25L6436E",
6933 .bustype = BUS_SPI,
6934 .manufacture_id = MACRONIX_ID,
6935 .model_id = MACRONIX_MX25L6405,
6936 .total_size = 8192,
6937 .page_size = 256,
6938 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6939 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6940 .tested = TEST_OK_PREW,
6941 .probe = probe_spi_rdid,
6942 .probe_timing = TIMING_ZERO,
6943 .block_erasers =
6944 {
6945 {
6946 .eraseblocks = { {4 * 1024, 2048} },
6947 .block_erase = spi_block_erase_20,
6948 }, {
6949 .eraseblocks = { {64 * 1024, 128} },
6950 .block_erase = spi_block_erase_d8,
6951 }, {
6952 .eraseblocks = { {8 * 1024 * 1024, 1} },
6953 .block_erase = spi_block_erase_60,
6954 }, {
6955 .eraseblocks = { {8 * 1024 * 1024, 1} },
6956 .block_erase = spi_block_erase_c7,
6957 }
6958 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006959 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006960 .unlock = spi_disable_blockprotect,
6961 .write = spi_chip_write_256,
6962 .read = spi_chip_read,
6963 .voltage = {2700, 3600},
6964 },
6965
6966 {
6967 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006968 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006969 .bustype = BUS_SPI,
6970 .manufacture_id = MACRONIX_ID,
6971 .model_id = MACRONIX_MX25L6405,
6972 .total_size = 8192,
6973 .page_size = 256,
6974 /* supports SFDP */
6975 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6977 .tested = TEST_OK_PREW,
6978 .probe = probe_spi_rdid,
6979 .probe_timing = TIMING_ZERO,
6980 .block_erasers =
6981 {
6982 {
6983 .eraseblocks = { {4 * 1024, 2048} },
6984 .block_erase = spi_block_erase_20,
6985 }, {
6986 .eraseblocks = { {32 * 1024, 256} },
6987 .block_erase = spi_block_erase_52,
6988 }, {
6989 .eraseblocks = { {64 * 1024, 128} },
6990 .block_erase = spi_block_erase_d8,
6991 }, {
6992 .eraseblocks = { {8 * 1024 * 1024, 1} },
6993 .block_erase = spi_block_erase_60,
6994 }, {
6995 .eraseblocks = { {8 * 1024 * 1024, 1} },
6996 .block_erase = spi_block_erase_c7,
6997 }
6998 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006999 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007000 .unlock = spi_disable_blockprotect,
7001 .write = spi_chip_write_256,
7002 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7003 .voltage = {2700, 3600},
7004 },
7005
7006 {
7007 .vendor = "Macronix",
7008 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007009 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007010 .manufacture_id = MACRONIX_ID,
7011 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007012 .total_size = 16384,
7013 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007014 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
7015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007016 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007017 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007018 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007019 .block_erasers =
7020 {
7021 {
7022 .eraseblocks = { {4 * 1024, 4096} },
7023 .block_erase = spi_block_erase_20,
7024 }, {
7025 .eraseblocks = { {64 * 1024, 256} },
7026 .block_erase = spi_block_erase_d8,
7027 }, {
7028 .eraseblocks = { {16 * 1024 * 1024, 1} },
7029 .block_erase = spi_block_erase_60,
7030 }, {
7031 .eraseblocks = { {16 * 1024 * 1024, 1} },
7032 .block_erase = spi_block_erase_c7,
7033 }
7034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007035 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007037 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007038 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007039 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007040 },
7041
7042 {
7043 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007044 .name = "MX25U1635E",
7045 .bustype = BUS_SPI,
7046 .manufacture_id = MACRONIX_ID,
7047 .model_id = MACRONIX_MX25U1635E,
7048 .total_size = 2048,
7049 .page_size = 256,
7050 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7051 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7053 .tested = TEST_UNTESTED,
7054 .probe = probe_spi_rdid,
7055 .probe_timing = TIMING_ZERO,
7056 .block_erasers =
7057 {
7058 {
7059 .eraseblocks = { {4 * 1024, 512} },
7060 .block_erase = spi_block_erase_20,
7061 }, {
7062 .eraseblocks = { {32 * 1024, 64} },
7063 .block_erase = spi_block_erase_52,
7064 }, {
7065 .eraseblocks = { {64 * 1024, 32} },
7066 .block_erase = spi_block_erase_d8,
7067 }, {
7068 .eraseblocks = { {2 * 1024 * 1024, 1} },
7069 .block_erase = spi_block_erase_60,
7070 }, {
7071 .eraseblocks = { {2 * 1024 * 1024, 1} },
7072 .block_erase = spi_block_erase_c7,
7073 }
7074 },
7075 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007076 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007077 .unlock = spi_disable_blockprotect,
7078 .write = spi_chip_write_256,
7079 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7080 .voltage = {1650, 2000},
7081 },
7082
7083 {
7084 .vendor = "Macronix",
7085 .name = "MX25U3235E/F",
7086 .bustype = BUS_SPI,
7087 .manufacture_id = MACRONIX_ID,
7088 .model_id = MACRONIX_MX25U3235E,
7089 .total_size = 4096,
7090 .page_size = 256,
7091 /* F model supports SFDP */
7092 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7093 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7095 .tested = TEST_OK_PREW,
7096 .probe = probe_spi_rdid,
7097 .probe_timing = TIMING_ZERO,
7098 .block_erasers =
7099 {
7100 {
7101 .eraseblocks = { {4 * 1024, 1024} },
7102 .block_erase = spi_block_erase_20,
7103 }, {
7104 .eraseblocks = { {32 * 1024, 128} },
7105 .block_erase = spi_block_erase_52,
7106 }, {
7107 .eraseblocks = { {64 * 1024, 64} },
7108 .block_erase = spi_block_erase_d8,
7109 }, {
7110 .eraseblocks = { {4 * 1024 * 1024, 1} },
7111 .block_erase = spi_block_erase_60,
7112 }, {
7113 .eraseblocks = { {4 * 1024 * 1024, 1} },
7114 .block_erase = spi_block_erase_c7,
7115 }
7116 },
7117 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007118 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007119 .unlock = spi_disable_blockprotect,
7120 .write = spi_chip_write_256,
7121 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7122 .voltage = {1650, 2000},
7123 },
7124
7125 {
7126 .vendor = "Macronix",
7127 .name = "MX25U6435E/F",
7128 .bustype = BUS_SPI,
7129 .manufacture_id = MACRONIX_ID,
7130 .model_id = MACRONIX_MX25U6435E,
7131 .total_size = 8192,
7132 .page_size = 256,
7133 /* F model supports SFDP */
7134 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7135 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7137 .tested = TEST_UNTESTED,
7138 .probe = probe_spi_rdid,
7139 .probe_timing = TIMING_ZERO,
7140 .block_erasers =
7141 {
7142 {
7143 .eraseblocks = { {4 * 1024, 2048} },
7144 .block_erase = spi_block_erase_20,
7145 }, {
7146 .eraseblocks = { {32 * 1024, 256} },
7147 .block_erase = spi_block_erase_52,
7148 }, {
7149 .eraseblocks = { {64 * 1024, 128} },
7150 .block_erase = spi_block_erase_d8,
7151 }, {
7152 .eraseblocks = { {8 * 1024 * 1024, 1} },
7153 .block_erase = spi_block_erase_60,
7154 }, {
7155 .eraseblocks = { {8 * 1024 * 1024, 1} },
7156 .block_erase = spi_block_erase_c7,
7157 }
7158 },
7159 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007160 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007161 .unlock = spi_disable_blockprotect,
7162 .write = spi_chip_write_256,
7163 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7164 .voltage = {1650, 2000},
7165 },
7166
7167 {
7168 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00007169 .name = "MX25U12835F",
7170 .bustype = BUS_SPI,
7171 .manufacture_id = MACRONIX_ID,
7172 .model_id = MACRONIX_MX25U12835E,
7173 .total_size = 16384,
7174 .page_size = 256,
7175 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7176 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7177 .tested = TEST_UNTESTED,
7178 .probe = probe_spi_rdid,
7179 .probe_timing = TIMING_ZERO,
7180 .block_erasers =
7181 {
7182 {
7183 .eraseblocks = { {4 * 1024, 4096} },
7184 .block_erase = spi_block_erase_20,
7185 }, {
7186 .eraseblocks = { {32 * 1024, 512} },
7187 .block_erase = spi_block_erase_52,
7188 }, {
7189 .eraseblocks = { {64 * 1024, 256} },
7190 .block_erase = spi_block_erase_d8,
7191 }, {
7192 .eraseblocks = { {16 * 1024 * 1024, 1} },
7193 .block_erase = spi_block_erase_60,
7194 }, {
7195 .eraseblocks = { {16 * 1024 * 1024, 1} },
7196 .block_erase = spi_block_erase_c7,
7197 }
7198 },
7199 /* TODO: security register */
7200 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7201 .unlock = spi_disable_blockprotect_bp3_srwd,
7202 .write = spi_chip_write_256, /* Multi I/O supported */
7203 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7204 .voltage = {1650, 2000},
7205 },
7206
7207 {
7208 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00007209 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007210 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007211 .manufacture_id = MACRONIX_ID,
7212 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007213 .total_size = 128,
7214 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007215 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7216 .tested = TEST_UNTESTED,
7217 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007218 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007219 .block_erasers =
7220 {
7221 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007222 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007223 {8 * 1024, 1},
7224 {4 * 1024, 2},
7225 {8 * 1024, 2},
7226 {32 * 1024, 1},
7227 {64 * 1024, 1},
7228 },
Sean Nelson35727f72010-01-28 23:55:12 +00007229 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007230 }, {
7231 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007232 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007233 }
7234 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007235 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007236 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007237 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007238 },
7239
7240 {
7241 .vendor = "Macronix",
7242 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007243 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007244 .manufacture_id = MACRONIX_ID,
7245 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007246 .total_size = 128,
7247 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007248 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00007249 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007250 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007251 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007252 .block_erasers =
7253 {
7254 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007255 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007256 {64 * 1024, 1},
7257 {32 * 1024, 1},
7258 {8 * 1024, 2},
7259 {4 * 1024, 2},
7260 {8 * 1024, 1},
7261 },
Sean Nelson35727f72010-01-28 23:55:12 +00007262 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007263 }, {
7264 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007265 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007266 }
7267 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007268 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007269 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007270 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007271 },
7272
7273 {
7274 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007275 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007276 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007277 .manufacture_id = MACRONIX_ID,
7278 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007279 .total_size = 256,
7280 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007281 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007282 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007283 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007284 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007285 .block_erasers =
7286 {
7287 {
7288 .eraseblocks = {
7289 {16 * 1024, 1},
7290 {8 * 1024, 2},
7291 {32 * 1024, 1},
7292 {64 * 1024, 3},
7293 },
Sean Nelson35727f72010-01-28 23:55:12 +00007294 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007295 }, {
7296 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007297 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007298 },
7299 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007300 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007301 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007302 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007303 },
7304
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007305 {
7306 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007307 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007308 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007309 .manufacture_id = MACRONIX_ID,
7310 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007311 .total_size = 256,
7312 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007313 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007314 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007315 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007316 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007317 .block_erasers =
7318 {
7319 {
7320 .eraseblocks = {
7321 {64 * 1024, 3},
7322 {32 * 1024, 1},
7323 {8 * 1024, 2},
7324 {16 * 1024, 1},
7325 },
Sean Nelson35727f72010-01-28 23:55:12 +00007326 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007327 }, {
7328 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007329 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007330 },
7331 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007332 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007334 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007335 },
7336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007337 {
7338 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007339 .name = "MX29F022(N)B",
7340 .bustype = BUS_PARALLEL,
7341 .manufacture_id = MACRONIX_ID,
7342 .model_id = MACRONIX_MX29F022B,
7343 .total_size = 256,
7344 .page_size = 0, /* unused */
7345 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7346 .tested = TEST_UNTESTED,
7347 .probe = probe_jedec,
7348 .probe_timing = TIMING_ZERO,
7349 .block_erasers =
7350 {
7351 {
7352 .eraseblocks = {
7353 {16 * 1024, 1},
7354 {8 * 1024, 2},
7355 {32 * 1024, 1},
7356 {64 * 1024, 3},
7357 },
7358 .block_erase = erase_sector_jedec,
7359 }, {
7360 .eraseblocks = { {256 * 1024, 1} },
7361 .block_erase = erase_chip_block_jedec,
7362 }
7363 },
7364 .write = write_jedec_1,
7365 .read = read_memmapped,
7366 .voltage = {4500, 5500},
7367 },
7368
7369 {
7370 .vendor = "Macronix",
7371 .name = "MX29F022(N)T",
7372 .bustype = BUS_PARALLEL,
7373 .manufacture_id = MACRONIX_ID,
7374 .model_id = MACRONIX_MX29F022T,
7375 .total_size = 256,
7376 .page_size = 0, /* unused */
7377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7378 .tested = TEST_OK_PREW,
7379 .probe = probe_jedec,
7380 .probe_timing = TIMING_ZERO,
7381 .block_erasers =
7382 {
7383 {
7384 .eraseblocks = {
7385 {64 * 1024, 3},
7386 {32 * 1024, 1},
7387 {8 * 1024, 2},
7388 {16 * 1024, 1},
7389 },
7390 .block_erase = erase_sector_jedec,
7391 }, {
7392 .eraseblocks = { {256 * 1024, 1} },
7393 .block_erase = erase_chip_block_jedec,
7394 }
7395 },
7396 .write = write_jedec_1,
7397 .read = read_memmapped,
7398 .voltage = {4500, 5500},
7399 },
7400
7401 {
7402 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007403 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007404 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007405 .manufacture_id = MACRONIX_ID,
7406 .model_id = MACRONIX_MX29F040,
7407 .total_size = 512,
7408 .page_size = 64 * 1024,
7409 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7410 .tested = TEST_UNTESTED,
7411 .probe = probe_jedec,
7412 .probe_timing = TIMING_ZERO,
7413 .block_erasers =
7414 {
7415 {
7416 .eraseblocks = { {64 * 1024, 8} },
7417 .block_erase = erase_sector_jedec,
7418 }, {
7419 .eraseblocks = { {512 * 1024, 1} },
7420 .block_erase = erase_chip_block_jedec,
7421 },
7422 },
7423 .write = write_jedec_1,
7424 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007425 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007426 },
7427
7428 {
7429 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007430 .name = "MX29GL320EB",
7431 .bustype = BUS_PARALLEL,
7432 .manufacture_id = MACRONIX_ID,
7433 .model_id = MACRONIX_MX29GL320EB,
7434 .total_size = 4096,
7435 .page_size = 128 * 1024, /* actual page size is 16 */
7436 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7437 .tested = TEST_UNTESTED,
7438 .probe = probe_jedec_29gl,
7439 .probe_timing = TIMING_ZERO,
7440 .block_erasers =
7441 {
7442 {
7443 .eraseblocks = {
7444 {8 * 1024, 8},
7445 {64 * 1024, 63},
7446 },
7447 .block_erase = erase_sector_jedec,
7448 }, {
7449 .eraseblocks = { {4 * 1024 * 1024, 1} },
7450 .block_erase = erase_chip_block_jedec,
7451 },
7452 },
7453 .write = write_jedec_1,
7454 .read = read_memmapped,
7455 .voltage = {2700, 3600},
7456 },
7457
7458 {
7459 .vendor = "Macronix",
7460 .name = "MX29GL320ET",
7461 .bustype = BUS_PARALLEL,
7462 .manufacture_id = MACRONIX_ID,
7463 .model_id = MACRONIX_MX29GL320ET,
7464 .total_size = 4096,
7465 .page_size = 128 * 1024, /* actual page size is 16 */
7466 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7467 .tested = TEST_UNTESTED,
7468 .probe = probe_jedec_29gl,
7469 .probe_timing = TIMING_ZERO,
7470 .block_erasers =
7471 {
7472 {
7473 .eraseblocks = {
7474 {64 * 1024, 63},
7475 {8 * 1024, 8},
7476 },
7477 .block_erase = erase_sector_jedec,
7478 }, {
7479 .eraseblocks = { {4 * 1024 * 1024, 1} },
7480 .block_erase = erase_chip_block_jedec,
7481 },
7482 },
7483 .write = write_jedec_1,
7484 .read = read_memmapped,
7485 .voltage = {2700, 3600},
7486 },
7487
7488 {
7489 .vendor = "Macronix",
7490 .name = "MX29GL320EH/L",
7491 .bustype = BUS_PARALLEL,
7492 .manufacture_id = MACRONIX_ID,
7493 .model_id = MACRONIX_MX29GL320EHL,
7494 .total_size = 4096,
7495 .page_size = 128 * 1024, /* actual page size is 16 */
7496 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7497 .tested = TEST_UNTESTED,
7498 .probe = probe_jedec_29gl,
7499 .probe_timing = TIMING_ZERO,
7500 .block_erasers =
7501 {
7502 {
7503 .eraseblocks = { {64 * 1024, 64} },
7504 .block_erase = erase_sector_jedec,
7505 }, {
7506 .eraseblocks = { {4 * 1024 * 1024, 1} },
7507 .block_erase = erase_chip_block_jedec,
7508 },
7509 },
7510 .write = write_jedec_1,
7511 .read = read_memmapped,
7512 .voltage = {2700, 3600},
7513 },
7514
7515 {
7516 .vendor = "Macronix",
7517 .name = "MX29GL640EB",
7518 .bustype = BUS_PARALLEL,
7519 .manufacture_id = MACRONIX_ID,
7520 .model_id = MACRONIX_MX29GL640EB,
7521 .total_size = 8192,
7522 .page_size = 128 * 1024, /* actual page size is 16 */
7523 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7524 .tested = TEST_UNTESTED,
7525 .probe = probe_jedec_29gl,
7526 .probe_timing = TIMING_ZERO,
7527 .block_erasers =
7528 {
7529 {
7530 .eraseblocks = {
7531 {8 * 1024, 8},
7532 {64 * 1024, 127},
7533 },
7534 .block_erase = erase_sector_jedec,
7535 }, {
7536 .eraseblocks = { {8 * 1024 * 1024, 1} },
7537 .block_erase = erase_chip_block_jedec,
7538 },
7539 },
7540 .write = write_jedec_1,
7541 .read = read_memmapped,
7542 .voltage = {2700, 3600},
7543 },
7544
7545 {
7546 .vendor = "Macronix",
7547 .name = "MX29GL640ET",
7548 .bustype = BUS_PARALLEL,
7549 .manufacture_id = MACRONIX_ID,
7550 .model_id = MACRONIX_MX29GL640ET,
7551 .total_size = 8192,
7552 .page_size = 128 * 1024, /* actual page size is 16 */
7553 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7554 .tested = TEST_UNTESTED,
7555 .probe = probe_jedec_29gl,
7556 .probe_timing = TIMING_ZERO,
7557 .block_erasers =
7558 {
7559 {
7560 .eraseblocks = {
7561 {64 * 1024, 127},
7562 {8 * 1024, 8},
7563 },
7564 .block_erase = erase_sector_jedec,
7565 }, {
7566 .eraseblocks = { {8 * 1024 * 1024, 1} },
7567 .block_erase = erase_chip_block_jedec,
7568 },
7569 },
7570 .write = write_jedec_1,
7571 .read = read_memmapped,
7572 .voltage = {2700, 3600},
7573 },
7574
7575 {
7576 .vendor = "Macronix",
7577 .name = "MX29GL640EH/L",
7578 .bustype = BUS_PARALLEL,
7579 .manufacture_id = MACRONIX_ID,
7580 .model_id = MACRONIX_MX29GL640EHL,
7581 .total_size = 8192,
7582 .page_size = 128 * 1024, /* actual page size is 16 */
7583 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7584 .tested = TEST_UNTESTED,
7585 .probe = probe_jedec_29gl,
7586 .probe_timing = TIMING_ZERO,
7587 .block_erasers =
7588 {
7589 {
7590 .eraseblocks = { {64 * 1024, 128} },
7591 .block_erase = erase_sector_jedec,
7592 }, {
7593 .eraseblocks = { {8 * 1024 * 1024, 1} },
7594 .block_erase = erase_chip_block_jedec,
7595 },
7596 },
7597 .write = write_jedec_1,
7598 .read = read_memmapped,
7599 .voltage = {2700, 3600},
7600 },
7601
7602 {
7603 .vendor = "Macronix",
7604 .name = "MX29GL128F",
7605 .bustype = BUS_PARALLEL,
7606 .manufacture_id = MACRONIX_ID,
7607 .model_id = MACRONIX_MX29GL128F,
7608 .total_size = 16384,
7609 .page_size = 128 * 1024, /* actual page size is 16 */
7610 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7611 .tested = TEST_UNTESTED,
7612 .probe = probe_jedec_29gl,
7613 .probe_timing = TIMING_ZERO,
7614 .block_erasers =
7615 {
7616 {
7617 .eraseblocks = { {128 * 1024, 128} },
7618 .block_erase = erase_sector_jedec,
7619 }, {
7620 .eraseblocks = { {16 * 1024 * 1024, 1} },
7621 .block_erase = erase_chip_block_jedec,
7622 },
7623 },
7624 .write = write_jedec_1,
7625 .read = read_memmapped,
7626 .voltage = {2700, 3600},
7627 },
7628
7629 {
7630 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007631 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007632 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007633 .manufacture_id = MACRONIX_ID,
7634 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007635 .total_size = 512,
7636 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007637 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7638 .tested = TEST_UNTESTED,
7639 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007640 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007641 .block_erasers =
7642 {
7643 {
7644 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007645 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007646 }, {
7647 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007648 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007649 },
7650 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007651 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007653 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007654 },
7655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007656 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007657 .vendor = "Micron/Numonyx/ST",
7658 .name = "M25P05-A",
7659 .bustype = BUS_SPI,
7660 .manufacture_id = ST_ID,
7661 .model_id = ST_M25P05A,
7662 .total_size = 64,
7663 .page_size = 256,
7664 .feature_bits = FEATURE_WRSR_WREN,
7665 .tested = TEST_OK_PREW,
7666 .probe = probe_spi_rdid,
7667 .probe_timing = TIMING_ZERO,
7668 .block_erasers =
7669 {
7670 {
7671 .eraseblocks = { {32 * 1024, 2} },
7672 .block_erase = spi_block_erase_d8,
7673 }, {
7674 .eraseblocks = { {64 * 1024, 1} },
7675 .block_erase = spi_block_erase_c7,
7676 }
7677 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007678 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007679 .unlock = spi_disable_blockprotect,
7680 .write = spi_chip_write_256,
7681 .read = spi_chip_read,
7682 .voltage = {2700, 3600},
7683 },
7684
7685 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7686 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7687 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7688 * only is successful if RDID does not work.
7689 */
7690 {
7691 .vendor = "Micron/Numonyx/ST",
7692 .name = "M25P05",
7693 .bustype = BUS_SPI,
7694 .manufacture_id = 0, /* Not used. */
7695 .model_id = ST_M25P05_RES,
7696 .total_size = 64,
7697 .page_size = 256,
7698 .feature_bits = FEATURE_WRSR_WREN,
7699 .tested = TEST_UNTESTED,
7700 .probe = probe_spi_res1,
7701 .probe_timing = TIMING_ZERO,
7702 .block_erasers =
7703 {
7704 {
7705 .eraseblocks = { {32 * 1024, 2} },
7706 .block_erase = spi_block_erase_d8,
7707 }, {
7708 .eraseblocks = { {64 * 1024, 1} },
7709 .block_erase = spi_block_erase_c7,
7710 }
7711 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007712 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007713 .unlock = spi_disable_blockprotect,
7714 .write = spi_chip_write_1, /* 128 */
7715 .read = spi_chip_read,
7716 .voltage = {2700, 3600},
7717 },
7718
7719 {
7720 .vendor = "Micron/Numonyx/ST",
7721 .name = "M25P10-A",
7722 .bustype = BUS_SPI,
7723 .manufacture_id = ST_ID,
7724 .model_id = ST_M25P10A,
7725 .total_size = 128,
7726 .page_size = 256,
7727 .feature_bits = FEATURE_WRSR_WREN,
7728 .tested = TEST_OK_PRE,
7729 .probe = probe_spi_rdid,
7730 .probe_timing = TIMING_ZERO,
7731 .block_erasers =
7732 {
7733 {
7734 .eraseblocks = { {32 * 1024, 4} },
7735 .block_erase = spi_block_erase_d8,
7736 }, {
7737 .eraseblocks = { {128 * 1024, 1} },
7738 .block_erase = spi_block_erase_c7,
7739 }
7740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007741 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007742 .unlock = spi_disable_blockprotect,
7743 .write = spi_chip_write_256,
7744 .read = spi_chip_read,
7745 .voltage = {2700, 3600},
7746 },
7747
7748 /* The ST M25P10 has the same problem as the M25P05. */
7749 {
7750 .vendor = "Micron/Numonyx/ST",
7751 .name = "M25P10",
7752 .bustype = BUS_SPI,
7753 .manufacture_id = 0, /* Not used. */
7754 .model_id = ST_M25P10_RES,
7755 .total_size = 128,
7756 .page_size = 256,
7757 .feature_bits = FEATURE_WRSR_WREN,
7758 .tested = TEST_UNTESTED,
7759 .probe = probe_spi_res1,
7760 .probe_timing = TIMING_ZERO,
7761 .block_erasers =
7762 {
7763 {
7764 .eraseblocks = { {32 * 1024, 4} },
7765 .block_erase = spi_block_erase_d8,
7766 }, {
7767 .eraseblocks = { {128 * 1024, 1} },
7768 .block_erase = spi_block_erase_c7,
7769 }
7770 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007771 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007772 .unlock = spi_disable_blockprotect,
7773 .write = spi_chip_write_1, /* 128 */
7774 .read = spi_chip_read,
7775 .voltage = {2700, 3600},
7776 },
7777
7778 {
7779 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7780 .name = "M25P20",
7781 .bustype = BUS_SPI,
7782 .manufacture_id = ST_ID,
7783 .model_id = ST_M25P20,
7784 .total_size = 256,
7785 .page_size = 256,
7786 .feature_bits = FEATURE_WRSR_WREN,
7787 .tested = TEST_UNTESTED,
7788 .probe = probe_spi_rdid,
7789 .probe_timing = TIMING_ZERO,
7790 .block_erasers =
7791 {
7792 {
7793 .eraseblocks = { {64 * 1024, 4} },
7794 .block_erase = spi_block_erase_d8,
7795 }, {
7796 .eraseblocks = { {256 * 1024, 1} },
7797 .block_erase = spi_block_erase_c7,
7798 }
7799 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007800 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007801 .unlock = spi_disable_blockprotect,
7802 .write = spi_chip_write_256,
7803 .read = spi_chip_read, /* Fast read (0x0B) supported */
7804 .voltage = {2700, 3600},
7805 },
7806
7807 {
7808 .vendor = "Micron/Numonyx/ST",
7809 .name = "M25P20-old",
7810 .bustype = BUS_SPI,
7811 .manufacture_id = 0, /* Not used. */
7812 .model_id = ST_M25P20_RES,
7813 .total_size = 256,
7814 .page_size = 256,
7815 .feature_bits = FEATURE_WRSR_WREN,
7816 .tested = TEST_OK_PREW,
7817 .probe = probe_spi_res1,
7818 .probe_timing = TIMING_ZERO,
7819 .block_erasers =
7820 {
7821 {
7822 .eraseblocks = { {64 * 1024, 4} },
7823 .block_erase = spi_block_erase_d8,
7824 }, {
7825 .eraseblocks = { {256 * 1024, 1} },
7826 .block_erase = spi_block_erase_c7,
7827 }
7828 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007829 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007830 .unlock = spi_disable_blockprotect,
7831 .write = spi_chip_write_256,
7832 .read = spi_chip_read, /* Fast read (0x0B) supported */
7833 .voltage = {2700, 3600},
7834 },
7835
7836 {
7837 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7838 .name = "M25P40",
7839 .bustype = BUS_SPI,
7840 .manufacture_id = ST_ID,
7841 .model_id = ST_M25P40,
7842 .total_size = 512,
7843 .page_size = 256,
7844 .feature_bits = FEATURE_WRSR_WREN,
7845 .tested = TEST_OK_PREW,
7846 .probe = probe_spi_rdid,
7847 .probe_timing = TIMING_ZERO,
7848 .block_erasers =
7849 {
7850 {
7851 .eraseblocks = { {64 * 1024, 8} },
7852 .block_erase = spi_block_erase_d8,
7853 }, {
7854 .eraseblocks = { {512 * 1024, 1} },
7855 .block_erase = spi_block_erase_c7,
7856 }
7857 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007858 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007859 .unlock = spi_disable_blockprotect,
7860 .write = spi_chip_write_256,
7861 .read = spi_chip_read,
7862 .voltage = {2700, 3600},
7863 },
7864
7865 {
7866 .vendor = "Micron/Numonyx/ST",
7867 .name = "M25P40-old",
7868 .bustype = BUS_SPI,
7869 .manufacture_id = 0, /* Not used. */
7870 .model_id = ST_M25P40_RES,
7871 .total_size = 512,
7872 .page_size = 256,
7873 .feature_bits = FEATURE_WRSR_WREN,
7874 .tested = TEST_UNTESTED,
7875 .probe = probe_spi_res1,
7876 .probe_timing = TIMING_ZERO,
7877 .block_erasers =
7878 {
7879 {
7880 .eraseblocks = { {64 * 1024, 8} },
7881 .block_erase = spi_block_erase_d8,
7882 }, {
7883 .eraseblocks = { {512 * 1024, 1} },
7884 .block_erase = spi_block_erase_c7,
7885 }
7886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007887 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007888 .unlock = spi_disable_blockprotect,
7889 .write = spi_chip_write_256,
7890 .read = spi_chip_read,
7891 },
7892
7893 {
7894 .vendor = "Micron/Numonyx/ST",
7895 .name = "M25P80",
7896 .bustype = BUS_SPI,
7897 .manufacture_id = ST_ID,
7898 .model_id = ST_M25P80,
7899 .total_size = 1024,
7900 .page_size = 256,
7901 .feature_bits = FEATURE_WRSR_WREN,
7902 .tested = TEST_OK_PREW,
7903 .probe = probe_spi_rdid,
7904 .probe_timing = TIMING_ZERO,
7905 .block_erasers =
7906 {
7907 {
7908 .eraseblocks = { {64 * 1024, 16} },
7909 .block_erase = spi_block_erase_d8,
7910 }, {
7911 .eraseblocks = { {1024 * 1024, 1} },
7912 .block_erase = spi_block_erase_c7,
7913 }
7914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007915 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007916 .unlock = spi_disable_blockprotect,
7917 .write = spi_chip_write_256,
7918 .read = spi_chip_read,
7919 .voltage = {2700, 3600},
7920 },
7921
7922 {
7923 .vendor = "Micron/Numonyx/ST",
7924 .name = "M25P16",
7925 .bustype = BUS_SPI,
7926 .manufacture_id = ST_ID,
7927 .model_id = ST_M25P16,
7928 .total_size = 2048,
7929 .page_size = 256,
7930 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007931 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007932 .probe = probe_spi_rdid,
7933 .probe_timing = TIMING_ZERO,
7934 .block_erasers =
7935 {
7936 {
7937 .eraseblocks = { {64 * 1024, 32} },
7938 .block_erase = spi_block_erase_d8,
7939 }, {
7940 .eraseblocks = { {2 * 1024 * 1024, 1} },
7941 .block_erase = spi_block_erase_c7,
7942 }
7943 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007944 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007945 .unlock = spi_disable_blockprotect,
7946 .write = spi_chip_write_256,
7947 .read = spi_chip_read,
7948 .voltage = {2700, 3600},
7949 },
7950
7951 {
7952 .vendor = "Micron/Numonyx/ST",
7953 .name = "M25P32",
7954 .bustype = BUS_SPI,
7955 .manufacture_id = ST_ID,
7956 .model_id = ST_M25P32,
7957 .total_size = 4096,
7958 .page_size = 256,
7959 .feature_bits = FEATURE_WRSR_WREN,
7960 .tested = TEST_OK_PREW,
7961 .probe = probe_spi_rdid,
7962 .probe_timing = TIMING_ZERO,
7963 .block_erasers =
7964 {
7965 {
7966 .eraseblocks = { {64 * 1024, 64} },
7967 .block_erase = spi_block_erase_d8,
7968 }, {
7969 .eraseblocks = { {4 * 1024 * 1024, 1} },
7970 .block_erase = spi_block_erase_c7,
7971 }
7972 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007973 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007974 .unlock = spi_disable_blockprotect,
7975 .write = spi_chip_write_256,
7976 .read = spi_chip_read,
7977 .voltage = {2700, 3600},
7978 },
7979
7980 {
7981 .vendor = "Micron/Numonyx/ST",
7982 .name = "M25P64",
7983 .bustype = BUS_SPI,
7984 .manufacture_id = ST_ID,
7985 .model_id = ST_M25P64,
7986 .total_size = 8192,
7987 .page_size = 256,
7988 .feature_bits = FEATURE_WRSR_WREN,
7989 .tested = TEST_OK_PREW,
7990 .probe = probe_spi_rdid,
7991 .probe_timing = TIMING_ZERO,
7992 .block_erasers =
7993 {
7994 {
7995 .eraseblocks = { {64 * 1024, 128} },
7996 .block_erase = spi_block_erase_d8,
7997 }, {
7998 .eraseblocks = { {8 * 1024 * 1024, 1} },
7999 .block_erase = spi_block_erase_c7,
8000 }
8001 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008002 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008003 .unlock = spi_disable_blockprotect,
8004 .write = spi_chip_write_256,
8005 .read = spi_chip_read,
8006 .voltage = {2700, 3600},
8007 },
8008
8009 {
8010 .vendor = "Micron/Numonyx/ST",
8011 .name = "M25P128",
8012 .bustype = BUS_SPI,
8013 .manufacture_id = ST_ID,
8014 .model_id = ST_M25P128,
8015 .total_size = 16384,
8016 .page_size = 256,
8017 .feature_bits = FEATURE_WRSR_WREN,
8018 .tested = TEST_OK_PREW,
8019 .probe = probe_spi_rdid,
8020 .probe_timing = TIMING_ZERO,
8021 .block_erasers =
8022 {
8023 {
8024 .eraseblocks = { {256 * 1024, 64} },
8025 .block_erase = spi_block_erase_d8,
8026 }, {
8027 .eraseblocks = { {16 * 1024 * 1024, 1} },
8028 .block_erase = spi_block_erase_c7,
8029 }
8030 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008031 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008032 .unlock = spi_disable_blockprotect,
8033 .write = spi_chip_write_256,
8034 .read = spi_chip_read,
8035 .voltage = {2700, 3600},
8036 },
8037
8038 {
8039 .vendor = "Micron/Numonyx/ST",
8040 .name = "M25PE10",
8041 .bustype = BUS_SPI,
8042 .manufacture_id = ST_ID,
8043 .model_id = ST_M25PE10,
8044 .total_size = 128,
8045 .page_size = 256,
8046 .feature_bits = FEATURE_WRSR_WREN,
8047 .tested = TEST_UNTESTED,
8048 .probe = probe_spi_rdid,
8049 .probe_timing = TIMING_ZERO,
8050 .block_erasers =
8051 {
8052 {
8053 .eraseblocks = { {4 * 1024, 32} },
8054 .block_erase = spi_block_erase_20,
8055 }, {
8056 .eraseblocks = { {64 * 1024, 2} },
8057 .block_erase = spi_block_erase_d8,
8058 }, {
8059 .eraseblocks = { {128 * 1024, 1} },
8060 .block_erase = spi_block_erase_c7,
8061 }
8062 },
8063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8064 .unlock = spi_disable_blockprotect,
8065 .write = spi_chip_write_256,
8066 .read = spi_chip_read,
8067 .voltage = {2700, 3600},
8068 },
8069
8070 {
8071 .vendor = "Micron/Numonyx/ST",
8072 .name = "M25PE20",
8073 .bustype = BUS_SPI,
8074 .manufacture_id = ST_ID,
8075 .model_id = ST_M25PE20,
8076 .total_size = 256,
8077 .page_size = 256,
8078 .feature_bits = FEATURE_WRSR_WREN,
8079 .tested = TEST_UNTESTED,
8080 .probe = probe_spi_rdid,
8081 .probe_timing = TIMING_ZERO,
8082 .block_erasers =
8083 {
8084 {
8085 .eraseblocks = { {4 * 1024, 64} },
8086 .block_erase = spi_block_erase_20,
8087 }, {
8088 .eraseblocks = { {64 * 1024, 4} },
8089 .block_erase = spi_block_erase_d8,
8090 }, {
8091 .eraseblocks = { {256 * 1024, 1} },
8092 .block_erase = spi_block_erase_c7,
8093 }
8094 },
8095 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8096 .unlock = spi_disable_blockprotect,
8097 .write = spi_chip_write_256,
8098 .read = spi_chip_read,
8099 .voltage = {2700, 3600},
8100 },
8101
8102 {
8103 .vendor = "Micron/Numonyx/ST",
8104 .name = "M25PE40",
8105 .bustype = BUS_SPI,
8106 .manufacture_id = ST_ID,
8107 .model_id = ST_M25PE40,
8108 .total_size = 512,
8109 .page_size = 256,
8110 .feature_bits = FEATURE_WRSR_WREN,
8111 .tested = TEST_UNTESTED,
8112 .probe = probe_spi_rdid,
8113 .probe_timing = TIMING_ZERO,
8114 .block_erasers =
8115 {
8116 {
8117 .eraseblocks = { {4 * 1024, 128} },
8118 .block_erase = spi_block_erase_20,
8119 }, {
8120 .eraseblocks = { {64 * 1024, 8} },
8121 .block_erase = spi_block_erase_d8,
8122 }, {
8123 .eraseblocks = { {512 * 1024, 1} },
8124 .block_erase = spi_block_erase_c7,
8125 }
8126 },
8127 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8128 .unlock = spi_disable_blockprotect,
8129 .write = spi_chip_write_256,
8130 .read = spi_chip_read,
8131 .voltage = {2700, 3600},
8132 },
8133
8134 {
8135 .vendor = "Micron/Numonyx/ST",
8136 .name = "M25PE80",
8137 .bustype = BUS_SPI,
8138 .manufacture_id = ST_ID,
8139 .model_id = ST_M25PE80,
8140 .total_size = 1024,
8141 .page_size = 256,
8142 .feature_bits = FEATURE_WRSR_WREN,
8143 .tested = TEST_OK_PREW,
8144 .probe = probe_spi_rdid,
8145 .probe_timing = TIMING_ZERO,
8146 .block_erasers =
8147 {
8148 {
8149 .eraseblocks = { {4 * 1024, 256} },
8150 .block_erase = spi_block_erase_20,
8151 }, {
8152 .eraseblocks = { {64 * 1024, 16} },
8153 .block_erase = spi_block_erase_d8,
8154 }, {
8155 .eraseblocks = { {1024 * 1024, 1} },
8156 .block_erase = spi_block_erase_c7,
8157 }
8158 },
8159 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8160 .unlock = spi_disable_blockprotect,
8161 .write = spi_chip_write_256,
8162 .read = spi_chip_read,
8163 .voltage = {2700, 3600},
8164 },
8165
8166 {
8167 .vendor = "Micron/Numonyx/ST",
8168 .name = "M25PE16",
8169 .bustype = BUS_SPI,
8170 .manufacture_id = ST_ID,
8171 .model_id = ST_M25PE16,
8172 .total_size = 2048,
8173 .page_size = 256,
8174 .feature_bits = FEATURE_WRSR_WREN,
8175 .tested = TEST_UNTESTED,
8176 .probe = probe_spi_rdid,
8177 .probe_timing = TIMING_ZERO,
8178 .block_erasers =
8179 {
8180 {
8181 .eraseblocks = { {4 * 1024, 512} },
8182 .block_erase = spi_block_erase_20,
8183 }, {
8184 .eraseblocks = { {64 * 1024, 32} },
8185 .block_erase = spi_block_erase_d8,
8186 }, {
8187 .eraseblocks = { {2 * 1024 * 1024, 1} },
8188 .block_erase = spi_block_erase_c7,
8189 }
8190 },
8191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8192 .unlock = spi_disable_blockprotect,
8193 .write = spi_chip_write_256,
8194 .read = spi_chip_read,
8195 .voltage = {2700, 3600},
8196 },
8197
8198 {
8199 .vendor = "Micron/Numonyx/ST",
8200 .name = "M25PX80",
8201 .bustype = BUS_SPI,
8202 .manufacture_id = ST_ID,
8203 .model_id = ST_M25PX80,
8204 .total_size = 1024,
8205 .page_size = 256,
8206 /* OTP: 64B total; read 0x4B, write 0x42 */
8207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8208 .tested = TEST_OK_PREW,
8209 .probe = probe_spi_rdid,
8210 .probe_timing = TIMING_ZERO,
8211 .block_erasers = {
8212 {
8213 .eraseblocks = { { 4 * 1024, 256 } },
8214 .block_erase = spi_block_erase_20,
8215 }, {
8216 .eraseblocks = { {64 * 1024, 16} },
8217 .block_erase = spi_block_erase_d8,
8218 }, {
8219 .eraseblocks = { {1024 * 1024, 1} },
8220 .block_erase = spi_block_erase_c7,
8221 }
8222 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008223 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008224 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8225 .write = spi_chip_write_256,
8226 .read = spi_chip_read,
8227 .voltage = {2700, 3600},
8228 },
8229
8230 {
8231 .vendor = "Micron/Numonyx/ST",
8232 .name = "M25PX16",
8233 .bustype = BUS_SPI,
8234 .manufacture_id = ST_ID,
8235 .model_id = ST_M25PX16,
8236 .total_size = 2048,
8237 .page_size = 256,
8238 /* OTP: 64B total; read 0x4B; write 0x42 */
8239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8240 .tested = TEST_OK_PREW,
8241 .probe = probe_spi_rdid,
8242 .probe_timing = TIMING_ZERO,
8243 .block_erasers =
8244 {
8245 {
8246 .eraseblocks = { { 4 * 1024, 512 } },
8247 .block_erase = spi_block_erase_20,
8248 }, {
8249 .eraseblocks = { {64 * 1024, 32} },
8250 .block_erase = spi_block_erase_d8,
8251 }, {
8252 .eraseblocks = { {2 * 1024 * 1024, 1} },
8253 .block_erase = spi_block_erase_c7,
8254 }
8255 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008256 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008257 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8258 .write = spi_chip_write_256,
8259 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008260 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008261 },
8262
8263 {
8264 .vendor = "Micron/Numonyx/ST",
8265 .name = "M25PX32",
8266 .bustype = BUS_SPI,
8267 .manufacture_id = ST_ID,
8268 .model_id = ST_M25PX32,
8269 .total_size = 4096,
8270 .page_size = 256,
8271 /* OTP: 64B total; read 0x4B; write 0x42 */
8272 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8273 .tested = TEST_OK_PRE,
8274 .probe = probe_spi_rdid,
8275 .probe_timing = TIMING_ZERO,
8276 .block_erasers =
8277 {
8278 {
8279 .eraseblocks = { { 4 * 1024, 1024 } },
8280 .block_erase = spi_block_erase_20,
8281 }, {
8282 .eraseblocks = { {64 * 1024, 64} },
8283 .block_erase = spi_block_erase_d8,
8284 }, {
8285 .eraseblocks = { {4 * 1024 * 1024, 1} },
8286 .block_erase = spi_block_erase_c7,
8287 }
8288 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008289 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008290 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8291 .write = spi_chip_write_256,
8292 .read = spi_chip_read,
8293 .voltage = {2700, 3600},
8294 },
8295
8296 {
8297 .vendor = "Micron/Numonyx/ST",
8298 .name = "M25PX64",
8299 .bustype = BUS_SPI,
8300 .manufacture_id = ST_ID,
8301 .model_id = ST_M25PX64,
8302 .total_size = 8192,
8303 .page_size = 256,
8304 /* OTP: 64B total; read 0x4B; write 0x42 */
8305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008306 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008307 .probe = probe_spi_rdid,
8308 .probe_timing = TIMING_ZERO,
8309 .block_erasers =
8310 {
8311 {
8312 .eraseblocks = { { 4 * 1024, 2048 } },
8313 .block_erase = spi_block_erase_20,
8314 }, {
8315 .eraseblocks = { {64 * 1024, 128} },
8316 .block_erase = spi_block_erase_d8,
8317 }, {
8318 .eraseblocks = { {8 * 1024 * 1024, 1} },
8319 .block_erase = spi_block_erase_c7,
8320 }
8321 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008322 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008323 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8324 .write = spi_chip_write_256,
8325 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008326 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008327 },
8328
8329 {
8330 .vendor = "Micron/Numonyx/ST",
8331 .name = "M45PE10",
8332 .bustype = BUS_SPI,
8333 .manufacture_id = ST_ID,
8334 .model_id = ST_M45PE10,
8335 .total_size = 128,
8336 .page_size = 256,
8337 .tested = TEST_UNTESTED,
8338 .probe = probe_spi_rdid,
8339 .probe_timing = TIMING_ZERO,
8340 .block_erasers = {
8341 {
8342 .eraseblocks = { {256, 512} },
8343 .block_erase = spi_block_erase_db,
8344 }, {
8345 .eraseblocks = { {64 * 1024, 2} },
8346 .block_erase = spi_block_erase_d8,
8347 }
8348 },
8349 .printlock = spi_prettyprint_status_register_default_welwip,
8350 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8351 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8352 .read = spi_chip_read, /* Fast read (0x0B) supported */
8353 .voltage = {2700, 3600},
8354 },
8355
8356 {
8357 .vendor = "Micron/Numonyx/ST",
8358 .name = "M45PE20",
8359 .bustype = BUS_SPI,
8360 .manufacture_id = ST_ID,
8361 .model_id = ST_M45PE20,
8362 .total_size = 256,
8363 .page_size = 256,
8364 .tested = TEST_UNTESTED,
8365 .probe = probe_spi_rdid,
8366 .probe_timing = TIMING_ZERO,
8367 .block_erasers = {
8368 {
8369 .eraseblocks = { {256, 1024} },
8370 .block_erase = spi_block_erase_db,
8371 }, {
8372 .eraseblocks = { {64 * 1024, 4} },
8373 .block_erase = spi_block_erase_d8,
8374 }
8375 },
8376 .printlock = spi_prettyprint_status_register_default_welwip,
8377 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8378 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8379 .read = spi_chip_read, /* Fast read (0x0B) supported */
8380 .voltage = {2700, 3600},
8381 },
8382
8383 {
8384 .vendor = "Micron/Numonyx/ST",
8385 .name = "M45PE40",
8386 .bustype = BUS_SPI,
8387 .manufacture_id = ST_ID,
8388 .model_id = ST_M45PE40,
8389 .total_size = 512,
8390 .page_size = 256,
8391 .tested = TEST_UNTESTED,
8392 .probe = probe_spi_rdid,
8393 .probe_timing = TIMING_ZERO,
8394 .block_erasers = {
8395 {
8396 .eraseblocks = { {256, 2048} },
8397 .block_erase = spi_block_erase_db,
8398 }, {
8399 .eraseblocks = { {64 * 1024, 8} },
8400 .block_erase = spi_block_erase_d8,
8401 }
8402 },
8403 .printlock = spi_prettyprint_status_register_default_welwip,
8404 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8405 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8406 .read = spi_chip_read, /* Fast read (0x0B) supported */
8407 .voltage = {2700, 3600},
8408 },
8409
8410 {
8411 .vendor = "Micron/Numonyx/ST",
8412 .name = "M45PE80",
8413 .bustype = BUS_SPI,
8414 .manufacture_id = ST_ID,
8415 .model_id = ST_M45PE80,
8416 .total_size = 1024,
8417 .page_size = 256,
8418 .tested = TEST_UNTESTED,
8419 .probe = probe_spi_rdid,
8420 .probe_timing = TIMING_ZERO,
8421 .block_erasers = {
8422 {
8423 .eraseblocks = { {256, 4096} },
8424 .block_erase = spi_block_erase_db,
8425 }, {
8426 .eraseblocks = { {64 * 1024, 16} },
8427 .block_erase = spi_block_erase_d8,
8428 }
8429 },
8430 .printlock = spi_prettyprint_status_register_default_welwip,
8431 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8432 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8433 .read = spi_chip_read, /* Fast read (0x0B) supported */
8434 .voltage = {2700, 3600},
8435 },
8436
8437 {
8438 .vendor = "Micron/Numonyx/ST",
8439 .name = "M45PE16",
8440 .bustype = BUS_SPI,
8441 .manufacture_id = ST_ID,
8442 .model_id = ST_M45PE16,
8443 .total_size = 2048,
8444 .page_size = 256,
8445 .tested = TEST_UNTESTED,
8446 .probe = probe_spi_rdid,
8447 .probe_timing = TIMING_ZERO,
8448 .block_erasers = {
8449 {
8450 .eraseblocks = { {256, 8192} },
8451 .block_erase = spi_block_erase_db,
8452 }, {
8453 .eraseblocks = { {64 * 1024, 32} },
8454 .block_erase = spi_block_erase_d8,
8455 }
8456 },
8457 .printlock = spi_prettyprint_status_register_default_welwip,
8458 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8459 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8460 .read = spi_chip_read, /* Fast read (0x0B) supported */
8461 .voltage = {2700, 3600},
8462 },
8463
8464 {
8465 .vendor = "Micron/Numonyx/ST",
8466 .name = "N25Q016",
8467 .bustype = BUS_SPI,
8468 .manufacture_id = ST_ID,
8469 .model_id = ST_N25Q016__1E,
8470 .total_size = 2048,
8471 .page_size = 256,
8472 /* supports SFDP */
8473 /* OTP: 64B total; read 0x4B, write 0x42 */
8474 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8475 .tested = TEST_UNTESTED,
8476 .probe = probe_spi_rdid,
8477 .probe_timing = TIMING_ZERO,
8478 .block_erasers =
8479 {
8480 {
8481 .eraseblocks = { {4 * 1024, 512} },
8482 .block_erase = spi_block_erase_20,
8483 }, {
8484 .eraseblocks = { {32 * 1024, 64} },
8485 .block_erase = spi_block_erase_52,
8486 }, {
8487 .eraseblocks = { {64 * 1024, 32} },
8488 .block_erase = spi_block_erase_d8,
8489 }, {
8490 .eraseblocks = { {2 * 1024 * 1024, 1} },
8491 .block_erase = spi_block_erase_c7,
8492 }
8493 },
8494 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8495 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8496 .write = spi_chip_write_256, /* Multi I/O supported */
8497 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8498 .voltage = {1700, 2000},
8499 },
8500
8501 {
8502 .vendor = "Micron/Numonyx/ST",
8503 .name = "N25Q032..1E",
8504 .bustype = BUS_SPI,
8505 .manufacture_id = ST_ID,
8506 .model_id = ST_N25Q032__1E,
8507 .total_size = 4096,
8508 .page_size = 256,
8509 /* supports SFDP */
8510 /* OTP: 64B total; read 0x4B, write 0x42 */
8511 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8512 .tested = TEST_UNTESTED,
8513 .probe = probe_spi_rdid,
8514 .probe_timing = TIMING_ZERO,
8515 .block_erasers =
8516 {
8517 {
8518 .eraseblocks = { {4 * 1024, 1024} },
8519 .block_erase = spi_block_erase_20,
8520 }, {
8521 .eraseblocks = { {64 * 1024, 64} },
8522 .block_erase = spi_block_erase_d8,
8523 }, {
8524 .eraseblocks = { {4 * 1024 * 1024, 1} },
8525 .block_erase = spi_block_erase_c7,
8526 }
8527 },
8528 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8529 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8530 .write = spi_chip_write_256, /* Multi I/O supported */
8531 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8532 .voltage = {1700, 2000},
8533 },
8534
8535 {
8536 .vendor = "Micron/Numonyx/ST",
8537 .name = "N25Q032..3E",
8538 .bustype = BUS_SPI,
8539 .manufacture_id = ST_ID,
8540 .model_id = ST_N25Q032__3E,
8541 .total_size = 4096,
8542 .page_size = 256,
8543 /* supports SFDP */
8544 /* OTP: 64B total; read 0x4B, write 0x42 */
8545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8546 .tested = TEST_OK_PREW,
8547 .probe = probe_spi_rdid,
8548 .probe_timing = TIMING_ZERO,
8549 .block_erasers =
8550 {
8551 {
8552 .eraseblocks = { {4 * 1024, 1024} },
8553 .block_erase = spi_block_erase_20,
8554 }, {
8555 .eraseblocks = { {64 * 1024, 64} },
8556 .block_erase = spi_block_erase_d8,
8557 }, {
8558 .eraseblocks = { {4 * 1024 * 1024, 1} },
8559 .block_erase = spi_block_erase_c7,
8560 }
8561 },
8562 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8563 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8564 .write = spi_chip_write_256, /* Multi I/O supported */
8565 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8566 .voltage = {2700, 3600},
8567 },
8568
8569 {
8570 .vendor = "Micron/Numonyx/ST",
8571 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8572 .bustype = BUS_SPI,
8573 .manufacture_id = ST_ID,
8574 .model_id = ST_N25Q064__1E,
8575 .total_size = 8192,
8576 .page_size = 256,
8577 /* supports SFDP */
8578 /* OTP: 64B total; read 0x4B, write 0x42 */
8579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008580 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008581 .probe = probe_spi_rdid,
8582 .probe_timing = TIMING_ZERO,
8583 .block_erasers =
8584 {
8585 {
8586 .eraseblocks = { {4 * 1024, 2048 } },
8587 .block_erase = spi_block_erase_20,
8588 }, {
8589 .eraseblocks = { {64 * 1024, 128} },
8590 .block_erase = spi_block_erase_d8,
8591 }, {
8592 .eraseblocks = { {8 * 1024 * 1024, 1} },
8593 .block_erase = spi_block_erase_c7,
8594 }
8595 },
8596 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8597 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8598 .write = spi_chip_write_256, /* Multi I/O supported */
8599 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8600 .voltage = {1700, 2000},
8601 },
8602
8603 {
8604 .vendor = "Micron/Numonyx/ST",
8605 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8606 .bustype = BUS_SPI,
8607 .manufacture_id = ST_ID,
8608 .model_id = ST_N25Q064__3E,
8609 .total_size = 8192,
8610 .page_size = 256,
8611 /* supports SFDP */
8612 /* OTP: 64B total; read 0x4B, write 0x42 */
8613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8614 .tested = TEST_OK_PREW,
8615 .probe = probe_spi_rdid,
8616 .probe_timing = TIMING_ZERO,
8617 .block_erasers =
8618 {
8619 {
8620 .eraseblocks = { {4 * 1024, 2048 } },
8621 .block_erase = spi_block_erase_20,
8622 }, {
8623 .eraseblocks = { {64 * 1024, 128} },
8624 .block_erase = spi_block_erase_d8,
8625 }, {
8626 .eraseblocks = { {8 * 1024 * 1024, 1} },
8627 .block_erase = spi_block_erase_c7,
8628 }
8629 },
8630 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8631 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8632 .write = spi_chip_write_256, /* Multi I/O supported */
8633 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8634 .voltage = {2700, 3600},
8635 },
8636
8637 {
8638 .vendor = "Micron/Numonyx/ST",
8639 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8640 .bustype = BUS_SPI,
8641 .manufacture_id = ST_ID,
8642 .model_id = ST_N25Q128__1E,
8643 .total_size = 16384,
8644 .page_size = 256,
8645 /* supports SFDP */
8646 /* OTP: 64B total; read 0x4B, write 0x42 */
8647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8648 .tested = TEST_UNTESTED,
8649 .probe = probe_spi_rdid,
8650 .probe_timing = TIMING_ZERO,
8651 .block_erasers = {
8652 {
8653 .eraseblocks = { {4 * 1024, 4096 } },
8654 .block_erase = spi_block_erase_20,
8655 }, {
8656 .eraseblocks = { {64 * 1024, 256} },
8657 .block_erase = spi_block_erase_d8,
8658 }, {
8659 .eraseblocks = { {16384 * 1024, 1} },
8660 .block_erase = spi_block_erase_c7,
8661 }
8662 },
8663 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8664 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8665 .write = spi_chip_write_256, /* Multi I/O supported */
8666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8667 .voltage = {1700, 2000},
8668 },
8669
8670 {
8671 .vendor = "Micron/Numonyx/ST",
8672 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8673 .bustype = BUS_SPI,
8674 .manufacture_id = ST_ID,
8675 .model_id = ST_N25Q128__3E,
8676 .total_size = 16384,
8677 .page_size = 256,
8678 /* supports SFDP */
8679 /* OTP: 64B total; read 0x4B, write 0x42 */
8680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8681 .tested = TEST_OK_PREW,
8682 .probe = probe_spi_rdid,
8683 .probe_timing = TIMING_ZERO,
8684 .block_erasers = {
8685 {
8686 .eraseblocks = { {4 * 1024, 4096 } },
8687 .block_erase = spi_block_erase_20,
8688 }, {
8689 .eraseblocks = { {64 * 1024, 256} },
8690 .block_erase = spi_block_erase_d8,
8691 }, {
8692 .eraseblocks = { {16384 * 1024, 1} },
8693 .block_erase = spi_block_erase_c7,
8694 }
8695 },
8696 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8697 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8698 .write = spi_chip_write_256, /* Multi I/O supported */
8699 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8700 .voltage = {2700, 3600},
8701 },
8702
8703 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008704 .vendor = "MoselVitelic",
8705 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008706 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008707 .manufacture_id = SYNCMOS_MVC_ID,
8708 .model_id = MVC_V29C51000B,
8709 .total_size = 64,
8710 .page_size = 512,
8711 .feature_bits = FEATURE_EITHER_RESET,
8712 .tested = TEST_UNTESTED,
8713 .probe = probe_jedec,
8714 .probe_timing = TIMING_ZERO,
8715 .block_erasers =
8716 {
8717 {
8718 .eraseblocks = { {512, 128} },
8719 .block_erase = erase_sector_jedec,
8720 }, {
8721 .eraseblocks = { {64 * 1024, 1} },
8722 .block_erase = erase_chip_block_jedec,
8723 },
8724 },
8725 .write = write_jedec_1,
8726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008727 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008728 },
8729
8730 {
8731 .vendor = "MoselVitelic",
8732 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008733 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008734 .manufacture_id = SYNCMOS_MVC_ID,
8735 .model_id = MVC_V29C51000T,
8736 .total_size = 64,
8737 .page_size = 512,
8738 .feature_bits = FEATURE_EITHER_RESET,
8739 .tested = TEST_UNTESTED,
8740 .probe = probe_jedec,
8741 .probe_timing = TIMING_ZERO,
8742 .block_erasers =
8743 {
8744 {
8745 .eraseblocks = { {512, 128} },
8746 .block_erase = erase_sector_jedec,
8747 }, {
8748 .eraseblocks = { {64 * 1024, 1} },
8749 .block_erase = erase_chip_block_jedec,
8750 },
8751 },
8752 .write = write_jedec_1,
8753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008754 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008755 },
8756
8757 {
8758 .vendor = "MoselVitelic",
8759 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008760 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008761 .manufacture_id = SYNCMOS_MVC_ID,
8762 .model_id = MVC_V29C51400B,
8763 .total_size = 512,
8764 .page_size = 1024,
8765 .feature_bits = FEATURE_EITHER_RESET,
8766 .tested = TEST_UNTESTED,
8767 .probe = probe_jedec,
8768 .probe_timing = TIMING_ZERO,
8769 .block_erasers =
8770 {
8771 {
8772 .eraseblocks = { {1024, 512} },
8773 .block_erase = erase_sector_jedec,
8774 }, {
8775 .eraseblocks = { {512 * 1024, 1} },
8776 .block_erase = erase_chip_block_jedec,
8777 },
8778 },
8779 .write = write_jedec_1,
8780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008781 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008782 },
8783
8784 {
8785 .vendor = "MoselVitelic",
8786 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008787 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008788 .manufacture_id = SYNCMOS_MVC_ID,
8789 .model_id = MVC_V29C51400T,
8790 .total_size = 512,
8791 .page_size = 1024,
8792 .feature_bits = FEATURE_EITHER_RESET,
8793 .tested = TEST_UNTESTED,
8794 .probe = probe_jedec,
8795 .probe_timing = TIMING_ZERO,
8796 .block_erasers =
8797 {
8798 {
8799 .eraseblocks = { {1024, 512} },
8800 .block_erase = erase_sector_jedec,
8801 }, {
8802 .eraseblocks = { {512 * 1024, 1} },
8803 .block_erase = erase_chip_block_jedec,
8804 },
8805 },
8806 .write = write_jedec_1,
8807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008808 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008809 },
8810
8811 {
8812 .vendor = "MoselVitelic",
8813 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008814 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008815 .manufacture_id = SYNCMOS_MVC_ID,
8816 .model_id = MVC_V29LC51000,
8817 .total_size = 64,
8818 .page_size = 512,
8819 .feature_bits = FEATURE_EITHER_RESET,
8820 .tested = TEST_UNTESTED,
8821 .probe = probe_jedec,
8822 .probe_timing = TIMING_ZERO,
8823 .block_erasers =
8824 {
8825 {
8826 .eraseblocks = { {512, 128} },
8827 .block_erase = erase_sector_jedec,
8828 }, {
8829 .eraseblocks = { {64 * 1024, 1} },
8830 .block_erase = erase_chip_block_jedec,
8831 },
8832 },
8833 .write = write_jedec_1,
8834 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008835 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008836 },
8837
8838 {
8839 .vendor = "MoselVitelic",
8840 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008841 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008842 .manufacture_id = SYNCMOS_MVC_ID,
8843 .model_id = MVC_V29LC51001,
8844 .total_size = 128,
8845 .page_size = 512,
8846 .feature_bits = FEATURE_EITHER_RESET,
8847 .tested = TEST_UNTESTED,
8848 .probe = probe_jedec,
8849 .probe_timing = TIMING_ZERO,
8850 .block_erasers =
8851 {
8852 {
8853 .eraseblocks = { {512, 256} },
8854 .block_erase = erase_sector_jedec,
8855 }, {
8856 .eraseblocks = { {128 * 1024, 1} },
8857 .block_erase = erase_chip_block_jedec,
8858 },
8859 },
8860 .write = write_jedec_1,
8861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008862 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008863 },
8864
8865 {
8866 .vendor = "MoselVitelic",
8867 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008868 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008869 .manufacture_id = SYNCMOS_MVC_ID,
8870 .model_id = MVC_V29LC51002,
8871 .total_size = 256,
8872 .page_size = 512,
8873 .feature_bits = FEATURE_EITHER_RESET,
8874 .tested = TEST_UNTESTED,
8875 .probe = probe_jedec,
8876 .probe_timing = TIMING_ZERO,
8877 .block_erasers =
8878 {
8879 {
8880 .eraseblocks = { {512, 512} },
8881 .block_erase = erase_sector_jedec,
8882 }, {
8883 .eraseblocks = { {256 * 1024, 1} },
8884 .block_erase = erase_chip_block_jedec,
8885 },
8886 },
8887 .write = write_jedec_1,
8888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008889 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008890 },
8891
8892 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008893 .vendor = "Nantronics",
8894 .name = "N25S10",
8895 .bustype = BUS_SPI,
8896 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8897 .model_id = NANTRONICS_N25S10,
8898 .total_size = 128,
8899 .page_size = 256,
8900 .feature_bits = FEATURE_WRSR_WREN,
8901 .tested = TEST_UNTESTED,
8902 .probe = probe_spi_rdid,
8903 .probe_timing = TIMING_ZERO,
8904 .block_erasers =
8905 {
8906 {
8907 .eraseblocks = { {4 * 1024, 32} },
8908 .block_erase = spi_block_erase_20,
8909 }, {
8910 .eraseblocks = { {4 * 1024, 32} },
8911 .block_erase = spi_block_erase_d7,
8912 }, {
8913 .eraseblocks = { {32 * 1024, 4} },
8914 .block_erase = spi_block_erase_52,
8915 }, {
8916 .eraseblocks = { {64 * 1024, 2} },
8917 .block_erase = spi_block_erase_d8,
8918 }, {
8919 .eraseblocks = { {128 * 1024, 1} },
8920 .block_erase = spi_block_erase_60,
8921 }, {
8922 .eraseblocks = { {128 * 1024, 1} },
8923 .block_erase = spi_block_erase_c7,
8924 }
8925 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008926 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008927 .unlock = spi_disable_blockprotect_bp3_srwd,
8928 .write = spi_chip_write_256,
8929 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8930 .voltage = {2700, 3600},
8931 },
8932
8933 {
8934 .vendor = "Nantronics",
8935 .name = "N25S20",
8936 .bustype = BUS_SPI,
8937 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8938 .model_id = NANTRONICS_N25S20,
8939 .total_size = 256,
8940 .page_size = 256,
8941 .feature_bits = FEATURE_WRSR_WREN,
8942 .tested = TEST_UNTESTED,
8943 .probe = probe_spi_rdid,
8944 .probe_timing = TIMING_ZERO,
8945 .block_erasers =
8946 {
8947 {
8948 .eraseblocks = { {4 * 1024, 64} },
8949 .block_erase = spi_block_erase_20,
8950 }, {
8951 .eraseblocks = { {4 * 1024, 64} },
8952 .block_erase = spi_block_erase_d7,
8953 }, {
8954 .eraseblocks = { {32 * 1024, 8} },
8955 .block_erase = spi_block_erase_52,
8956 }, {
8957 .eraseblocks = { {64 * 1024, 4} },
8958 .block_erase = spi_block_erase_d8,
8959 }, {
8960 .eraseblocks = { {256 * 1024, 1} },
8961 .block_erase = spi_block_erase_60,
8962 }, {
8963 .eraseblocks = { {256 * 1024, 1} },
8964 .block_erase = spi_block_erase_c7,
8965 }
8966 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008967 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008968 .unlock = spi_disable_blockprotect_bp3_srwd,
8969 .write = spi_chip_write_256,
8970 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8971 .voltage = {2700, 3600},
8972 },
8973
8974 {
8975 .vendor = "Nantronics",
8976 .name = "N25S40",
8977 .bustype = BUS_SPI,
8978 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8979 .model_id = NANTRONICS_N25S40,
8980 .total_size = 512,
8981 .page_size = 256,
8982 .feature_bits = FEATURE_WRSR_WREN,
8983 .tested = TEST_UNTESTED,
8984 .probe = probe_spi_rdid,
8985 .probe_timing = TIMING_ZERO,
8986 .block_erasers =
8987 {
8988 {
8989 .eraseblocks = { {4 * 1024, 128} },
8990 .block_erase = spi_block_erase_20,
8991 }, {
8992 .eraseblocks = { {4 * 1024, 128} },
8993 .block_erase = spi_block_erase_d7,
8994 }, {
8995 .eraseblocks = { {32 * 1024, 16} },
8996 .block_erase = spi_block_erase_52,
8997 }, {
8998 .eraseblocks = { {64 * 1024, 8} },
8999 .block_erase = spi_block_erase_d8,
9000 }, {
9001 .eraseblocks = { {512 * 1024, 1} },
9002 .block_erase = spi_block_erase_60,
9003 }, {
9004 .eraseblocks = { {512 * 1024, 1} },
9005 .block_erase = spi_block_erase_c7,
9006 }
9007 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009008 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009009 .unlock = spi_disable_blockprotect_bp3_srwd,
9010 .write = spi_chip_write_256,
9011 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9012 .voltage = {2700, 3600},
9013 },
9014
9015 {
9016 .vendor = "Nantronics",
9017 .name = "N25S80",
9018 .bustype = BUS_SPI,
9019 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9020 .model_id = NANTRONICS_N25S80,
9021 .total_size = 1024,
9022 .page_size = 256,
9023 .feature_bits = FEATURE_WRSR_WREN,
9024 .tested = TEST_UNTESTED,
9025 .probe = probe_spi_rdid,
9026 .probe_timing = TIMING_ZERO,
9027 .block_erasers =
9028 {
9029 {
9030 .eraseblocks = { {4 * 1024, 256} },
9031 .block_erase = spi_block_erase_20,
9032 }, {
9033 .eraseblocks = { {32 * 1024, 32} },
9034 .block_erase = spi_block_erase_52,
9035 }, {
9036 .eraseblocks = { {64 * 1024, 16} },
9037 .block_erase = spi_block_erase_d8,
9038 }, {
9039 .eraseblocks = { {1024 * 1024, 1} },
9040 .block_erase = spi_block_erase_60,
9041 }, {
9042 .eraseblocks = { {1024 * 1024, 1} },
9043 .block_erase = spi_block_erase_c7,
9044 }
9045 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009046 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009047 .unlock = spi_disable_blockprotect_bp3_srwd,
9048 .write = spi_chip_write_256,
9049 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9050 .voltage = {2700, 3600},
9051 },
9052
9053 {
9054 .vendor = "Nantronics",
9055 .name = "N25S16",
9056 .bustype = BUS_SPI,
9057 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9058 .model_id = NANTRONICS_N25S16,
9059 .total_size = 2048,
9060 .page_size = 256,
9061 .feature_bits = FEATURE_WRSR_WREN,
9062 .tested = TEST_UNTESTED,
9063 .probe = probe_spi_rdid,
9064 .probe_timing = TIMING_ZERO,
9065 .block_erasers =
9066 {
9067 {
9068 .eraseblocks = { {4 * 1024, 512} },
9069 .block_erase = spi_block_erase_20,
9070 }, {
9071 .eraseblocks = { {64 * 1024, 32} },
9072 .block_erase = spi_block_erase_d8,
9073 }, {
9074 .eraseblocks = { {2048 * 1024, 1} },
9075 .block_erase = spi_block_erase_60,
9076 }, {
9077 .eraseblocks = { {2048 * 1024, 1} },
9078 .block_erase = spi_block_erase_c7,
9079 }
9080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009081 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009082 .unlock = spi_disable_blockprotect_bp3_srwd,
9083 .write = spi_chip_write_256,
9084 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9085 .voltage = {2700, 3600},
9086 },
9087
9088 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009089 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009090 .name = "Pm25LD256C",
9091 .bustype = BUS_SPI,
9092 .manufacture_id = PMC_ID,
9093 .model_id = PMC_PM25LD256C,
9094 .total_size = 32,
9095 .page_size = 256,
9096 .feature_bits = FEATURE_WRSR_WREN,
9097 .tested = TEST_UNTESTED,
9098 .probe = probe_spi_rdid,
9099 .probe_timing = TIMING_ZERO,
9100 .block_erasers =
9101 {
9102 {
9103 .eraseblocks = { {4 * 1024, 8} },
9104 .block_erase = spi_block_erase_20,
9105 }, {
9106 .eraseblocks = { {4 * 1024, 8} },
9107 .block_erase = spi_block_erase_d7,
9108 }, {
9109 .eraseblocks = { {32 * 1024, 1} },
9110 .block_erase = spi_block_erase_d8,
9111 }, {
9112 .eraseblocks = { {32 * 1024, 1} },
9113 .block_erase = spi_block_erase_60,
9114 }, {
9115 .eraseblocks = { {32 * 1024, 1} },
9116 .block_erase = spi_block_erase_c7,
9117 }
9118 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009119 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009120 .unlock = spi_disable_blockprotect,
9121 .write = spi_chip_write_256,
9122 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9123 .voltage = {2700, 3600},
9124 },
9125 {
9126 .vendor = "PMC",
9127 .name = "Pm25LD512(C)",
9128 .bustype = BUS_SPI,
9129 .manufacture_id = PMC_ID,
9130 .model_id = PMC_PM25LD512,
9131 .total_size = 64,
9132 .page_size = 256,
9133 .feature_bits = FEATURE_WRSR_WREN,
9134 .tested = TEST_OK_PREW,
9135 .probe = probe_spi_rdid,
9136 .probe_timing = TIMING_ZERO,
9137 .block_erasers =
9138 {
9139 {
9140 .eraseblocks = { {4 * 1024, 16} },
9141 .block_erase = spi_block_erase_20,
9142 }, {
9143 .eraseblocks = { {4 * 1024, 16} },
9144 .block_erase = spi_block_erase_d7,
9145 }, {
9146 .eraseblocks = { {32 * 1024, 2} },
9147 .block_erase = spi_block_erase_d8,
9148 }, {
9149 .eraseblocks = { {64 * 1024, 1} },
9150 .block_erase = spi_block_erase_60,
9151 }, {
9152 .eraseblocks = { {64 * 1024, 1} },
9153 .block_erase = spi_block_erase_c7,
9154 }
9155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009156 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009157 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9158 .write = spi_chip_write_256,
9159 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9160 .voltage = {2300, 3600},
9161 },
9162
9163 {
9164 .vendor = "PMC",
9165 .name = "Pm25LD010(C)",
9166 .bustype = BUS_SPI,
9167 .manufacture_id = PMC_ID,
9168 .model_id = PMC_PM25LD010,
9169 .total_size = 128,
9170 .page_size = 256,
9171 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009172 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00009173 .probe = probe_spi_rdid,
9174 .probe_timing = TIMING_ZERO,
9175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {4 * 1024, 32} },
9179 .block_erase = spi_block_erase_20,
9180 }, {
9181 .eraseblocks = { {4 * 1024, 32} },
9182 .block_erase = spi_block_erase_d7,
9183 }, {
9184 .eraseblocks = { {32 * 1024, 4} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {128 * 1024, 1} },
9188 .block_erase = spi_block_erase_60,
9189 }, {
9190 .eraseblocks = { {128 * 1024, 1} },
9191 .block_erase = spi_block_erase_c7,
9192 }
9193 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009194 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009195 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9196 .write = spi_chip_write_256,
9197 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9198 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
9199 },
9200
9201 {
9202 .vendor = "PMC",
9203 .name = "Pm25LD020(C)",
9204 .bustype = BUS_SPI,
9205 .manufacture_id = PMC_ID,
9206 .model_id = PMC_PM25LD020,
9207 .total_size = 256,
9208 .page_size = 256,
9209 .feature_bits = FEATURE_WRSR_WREN,
9210 .tested = TEST_UNTESTED,
9211 .probe = probe_spi_rdid,
9212 .probe_timing = TIMING_ZERO,
9213 .block_erasers =
9214 {
9215 {
9216 .eraseblocks = { {4 * 1024, 64} },
9217 .block_erase = spi_block_erase_20,
9218 }, {
9219 .eraseblocks = { {4 * 1024, 64} },
9220 .block_erase = spi_block_erase_d7,
9221 }, {
9222 .eraseblocks = { {64 * 1024, 4} },
9223 .block_erase = spi_block_erase_d8,
9224 }, {
9225 .eraseblocks = { {256 * 1024, 1} },
9226 .block_erase = spi_block_erase_60,
9227 }, {
9228 .eraseblocks = { {256 * 1024, 1} },
9229 .block_erase = spi_block_erase_c7,
9230 }
9231 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009232 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009233 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9234 .write = spi_chip_write_256,
9235 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9236 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
9237 },
9238
9239 {
9240 .vendor = "PMC",
9241 .name = "Pm25LD040(C)",
9242 .bustype = BUS_SPI,
9243 .manufacture_id = PMC_ID,
9244 .model_id = PMC_PM25LV040,
9245 .total_size = 512,
9246 .page_size = 256,
9247 .feature_bits = FEATURE_WRSR_WREN,
9248 .tested = TEST_UNTESTED,
9249 .probe = probe_spi_rdid,
9250 .probe_timing = TIMING_ZERO,
9251 .block_erasers =
9252 {
9253 {
9254 .eraseblocks = { {4 * 1024, 128} },
9255 .block_erase = spi_block_erase_20,
9256 }, {
9257 .eraseblocks = { {4 * 1024, 128} },
9258 .block_erase = spi_block_erase_d7,
9259 }, {
9260 .eraseblocks = { {64 * 1024, 8} },
9261 .block_erase = spi_block_erase_d8,
9262 }, {
9263 .eraseblocks = { {512 * 1024, 1} },
9264 .block_erase = spi_block_erase_60,
9265 }, {
9266 .eraseblocks = { {512 * 1024, 1} },
9267 .block_erase = spi_block_erase_c7,
9268 }
9269 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009270 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009271 .unlock = spi_disable_blockprotect,
9272 .write = spi_chip_write_256,
9273 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9274 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
9275 },
9276
9277{
9278 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009279 .name = "Pm25LV512(A)",
9280 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009281 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009282 .model_id = PMC_PM25LV512,
9283 .total_size = 64,
9284 .page_size = 256,
9285 .feature_bits = FEATURE_WRSR_WREN,
9286 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00009287 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009288 .probe_timing = TIMING_ZERO,
9289 .block_erasers =
9290 {
9291 {
9292 .eraseblocks = { {4 * 1024, 16} },
9293 .block_erase = spi_block_erase_d7,
9294 }, {
9295 .eraseblocks = { {32 * 1024, 2} },
9296 .block_erase = spi_block_erase_d8,
9297 }, {
9298 .eraseblocks = { {64 * 1024, 1} },
9299 .block_erase = spi_block_erase_c7,
9300 }
9301 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009302 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009303 .unlock = spi_disable_blockprotect,
9304 .write = spi_chip_write_256,
9305 .read = spi_chip_read, /* Fast read (0x0B) supported */
9306 .voltage = {2700, 3600},
9307 },
9308
9309 {
9310 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009311 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009312 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009313 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009314 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009315 .total_size = 128,
9316 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009317 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00009318 .tested = TEST_OK_PREW,
9319 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009320 .probe_timing = TIMING_ZERO,
9321 .block_erasers =
9322 {
9323 {
9324 .eraseblocks = { {4 * 1024, 32} },
9325 .block_erase = spi_block_erase_d7,
9326 }, {
9327 .eraseblocks = { {32 * 1024, 4} },
9328 .block_erase = spi_block_erase_d8,
9329 }, {
9330 .eraseblocks = { {128 * 1024, 1} },
9331 .block_erase = spi_block_erase_c7,
9332 }
9333 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009334 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009335 .unlock = spi_disable_blockprotect,
9336 .write = spi_chip_write_256,
9337 .read = spi_chip_read, /* Fast read (0x0B) supported */
9338 .voltage = {2700, 3600},
9339 },
9340
9341 {
9342 .vendor = "PMC",
9343 .name = "Pm25LV010A",
9344 .bustype = BUS_SPI,
9345 .manufacture_id = PMC_ID,
9346 .model_id = PMC_PM25LV010,
9347 .total_size = 128,
9348 .page_size = 256,
9349 .feature_bits = FEATURE_WRSR_WREN,
9350 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009351 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009352 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009353 .block_erasers =
9354 {
9355 {
9356 .eraseblocks = { {4 * 1024, 32} },
9357 .block_erase = spi_block_erase_d7,
9358 }, {
9359 .eraseblocks = { {32 * 1024, 4} },
9360 .block_erase = spi_block_erase_d8,
9361 }, {
9362 .eraseblocks = { {128 * 1024, 1} },
9363 .block_erase = spi_block_erase_c7,
9364 }
9365 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009366 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009368 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009369 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009370 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009371 },
9372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009373 {
9374 .vendor = "PMC",
9375 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009376 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009377 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009378 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009379 .total_size = 256,
9380 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009381 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009382 .tested = TEST_UNTESTED,
9383 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009384 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009385 .block_erasers =
9386 {
9387 {
9388 .eraseblocks = { {4 * 1024, 64} },
9389 .block_erase = spi_block_erase_d7,
9390 }, {
9391 .eraseblocks = { {64 * 1024, 4} },
9392 .block_erase = spi_block_erase_d8,
9393 }, {
9394 .eraseblocks = { {256 * 1024, 1} },
9395 .block_erase = spi_block_erase_c7,
9396 }
9397 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009398 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009399 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009400 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009401 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009402 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009403 },
9404
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009405 {
9406 .vendor = "PMC",
9407 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009408 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009409 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009410 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009411 .total_size = 512,
9412 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009413 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00009414 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009416 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009417 .block_erasers =
9418 {
9419 {
9420 .eraseblocks = { {4 * 1024, 128} },
9421 .block_erase = spi_block_erase_d7,
9422 }, {
9423 .eraseblocks = { {64 * 1024, 8} },
9424 .block_erase = spi_block_erase_d8,
9425 }, {
9426 .eraseblocks = { {512 * 1024, 1} },
9427 .block_erase = spi_block_erase_c7,
9428 }
9429 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009430 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009431 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009432 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009433 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009434 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009435 },
9436
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009437 {
9438 .vendor = "PMC",
9439 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009440 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009441 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009442 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009443 .total_size = 1024,
9444 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009445 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009446 .tested = TEST_UNTESTED,
9447 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009448 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009449 .block_erasers =
9450 {
9451 {
9452 .eraseblocks = { {4 * 1024, 256} },
9453 .block_erase = spi_block_erase_d7,
9454 }, {
9455 .eraseblocks = { {4 * 1024, 256} },
9456 .block_erase = spi_block_erase_20,
9457 }, {
9458 .eraseblocks = { {64 * 1024, 16} },
9459 .block_erase = spi_block_erase_d8,
9460 }, {
9461 .eraseblocks = { {1024 * 1024, 1} },
9462 .block_erase = spi_block_erase_60,
9463 }, {
9464 .eraseblocks = { {1024 * 1024, 1} },
9465 .block_erase = spi_block_erase_c7,
9466 }
9467 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009468 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009469 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009470 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009471 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009472 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009473 },
9474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009475 {
9476 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009477 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009478 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009479 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009480 .model_id = PMC_PM25LV016B,
9481 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009482 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009483 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009484 .tested = TEST_UNTESTED,
9485 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009486 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009487 .block_erasers =
9488 {
9489 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009490 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00009491 .block_erase = spi_block_erase_d7,
9492 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009493 .eraseblocks = { {4 * 1024, 512} },
9494 .block_erase = spi_block_erase_20,
9495 }, {
9496 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00009497 .block_erase = spi_block_erase_d8,
9498 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009499 .eraseblocks = { {2 * 1024 * 1024, 1} },
9500 .block_erase = spi_block_erase_60,
9501 }, {
9502 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009503 .block_erase = spi_block_erase_c7,
9504 }
9505 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009506 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009507 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009508 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009509 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009510 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009511 },
9512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009513 {
9514 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009515 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009516 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009517 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009518 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009519 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009520 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009522 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009523 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009524 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009525 .block_erasers =
9526 {
9527 {
9528 .eraseblocks = {
9529 {128 * 1024, 1},
9530 {96 * 1024, 1},
9531 {8 * 1024, 2},
9532 {16 * 1024, 1},
9533 },
Sean Nelson35727f72010-01-28 23:55:12 +00009534 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009535 }, {
9536 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009537 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009538 },
9539 },
Sean Nelson35727f72010-01-28 23:55:12 +00009540 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009541 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009542 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009543 },
9544
9545 {
9546 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009547 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009548 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009549 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009550 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009551 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009552 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009553 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009554 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009555 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009556 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009557 .block_erasers =
9558 {
9559 {
9560 .eraseblocks = {
9561 {16 * 1024, 1},
9562 {8 * 1024, 2},
9563 {96 * 1024, 1},
9564 {128 * 1024, 1},
9565 },
Sean Nelson35727f72010-01-28 23:55:12 +00009566 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009567 }, {
9568 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009569 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009570 },
9571 },
Sean Nelson35727f72010-01-28 23:55:12 +00009572 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009573 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009574 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009575 },
9576
9577 {
9578 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009579 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009580 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009581 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009582 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009583 .total_size = 128,
9584 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009585 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009586 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009587 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009588 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009589 .block_erasers =
9590 {
9591 {
9592 .eraseblocks = { {4 * 1024, 32} },
9593 .block_erase = erase_sector_jedec,
9594 }, {
9595 .eraseblocks = { {64 * 1024, 2} },
9596 .block_erase = erase_block_jedec,
9597 }, {
9598 .eraseblocks = { {128 * 1024, 1} },
9599 .block_erase = erase_chip_block_jedec,
9600 }
9601 },
Sean Nelson35727f72010-01-28 23:55:12 +00009602 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009604 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009605 },
9606
9607 {
9608 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009609 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009610 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009611 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009612 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009613 .total_size = 256,
9614 .page_size = 4096,
9615 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9616 .tested = TEST_UNTESTED,
9617 .probe = probe_jedec,
9618 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9619 .block_erasers =
9620 {
9621 {
9622 .eraseblocks = { {4 * 1024, 64} },
9623 .block_erase = erase_sector_jedec,
9624 }, {
9625 .eraseblocks = { {64 * 1024, 4} },
9626 .block_erase = erase_block_jedec,
9627 }, {
9628 .eraseblocks = { {256 * 1024, 1} },
9629 .block_erase = erase_chip_block_jedec,
9630 }
9631 },
9632 .write = write_jedec_1,
9633 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009634 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009635 },
9636
9637 {
9638 .vendor = "PMC",
9639 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009640 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009641 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009642 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009643 .total_size = 512,
9644 .page_size = 4096,
9645 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009646 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009647 .probe = probe_jedec,
9648 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9649 .block_erasers =
9650 {
9651 {
9652 .eraseblocks = { {4 * 1024, 128} },
9653 .block_erase = erase_sector_jedec,
9654 }, {
9655 .eraseblocks = { {64 * 1024, 8} },
9656 .block_erase = erase_block_jedec,
9657 }, {
9658 .eraseblocks = { {512 * 1024, 1} },
9659 .block_erase = erase_chip_block_jedec,
9660 }
9661 },
9662 .write = write_jedec_1,
9663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009664 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009665 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009666
9667 {
9668 .vendor = "PMC",
9669 .name = "Pm39LV512",
9670 .bustype = BUS_PARALLEL,
9671 .manufacture_id = PMC_ID_NOPREFIX,
9672 .model_id = PMC_PM39LV512,
9673 .total_size = 64,
9674 .page_size = 4096,
9675 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9676 .tested = TEST_OK_PREW,
9677 .probe = probe_jedec,
9678 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9679 .block_erasers =
9680 {
9681 {
9682 .eraseblocks = { {4 * 1024, 16} },
9683 .block_erase = erase_sector_jedec,
9684 }, {
9685 .eraseblocks = { {64 * 1024, 1} },
9686 .block_erase = erase_block_jedec,
9687 }, {
9688 .eraseblocks = { {64 * 1024, 1} },
9689 .block_erase = erase_chip_block_jedec,
9690 }
9691 },
9692 .write = write_jedec_1,
9693 .read = read_memmapped,
9694 .voltage = {2700, 3600},
9695 },
9696
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009697 {
9698 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009699 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009700 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009701 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009702 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009703 .total_size = 256,
9704 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009705 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009706 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009707 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009708 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009709 .block_erasers =
9710 {
9711 {
9712 .eraseblocks = { {4 * 1024, 64} },
9713 .block_erase = erase_sector_jedec,
9714 }, {
9715 .eraseblocks = { {16 * 1024, 16} },
9716 .block_erase = erase_block_jedec,
9717 }, {
9718 .eraseblocks = { {256 * 1024, 1} },
9719 .block_erase = erase_chip_block_jedec,
9720 }
9721 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009722 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +00009723 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009725 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009726 },
9727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009728 {
9729 .vendor = "PMC",
9730 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009731 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009732 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009733 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009734 .total_size = 512,
9735 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009736 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009737 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009739 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009740 .block_erasers =
9741 {
9742 {
9743 .eraseblocks = { {4 * 1024, 128} },
9744 .block_erase = erase_sector_jedec,
9745 }, {
9746 .eraseblocks = { {64 * 1024, 8} },
9747 .block_erase = erase_block_jedec,
9748 }, {
9749 .eraseblocks = { {512 * 1024, 1} },
9750 .block_erase = erase_chip_block_jedec,
9751 }
9752 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009753 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +00009754 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009755 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009756 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009757 },
9758
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009759 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009760 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009761 .name = "LE25FW106",
9762 .bustype = BUS_SPI,
9763 .manufacture_id = SANYO_ID,
9764 .model_id = SANYO_LE25FW106,
9765 .total_size = 128,
9766 .page_size = 256,
9767 .feature_bits = FEATURE_WRSR_WREN,
9768 .tested = TEST_OK_PREW,
9769 .probe = probe_spi_res2,
9770 .probe_timing = TIMING_ZERO,
9771 .block_erasers = {
9772 {
9773 .eraseblocks = { {2 * 1024, 64} },
9774 .block_erase = spi_block_erase_d7,
9775 }, {
9776 .eraseblocks = { {32 * 1024, 4} },
9777 .block_erase = spi_block_erase_d8,
9778 }, {
9779 .eraseblocks = { {128 * 1024, 1} },
9780 .block_erase = spi_block_erase_c7,
9781 }
9782 },
9783 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9784 .unlock = spi_disable_blockprotect_bp1_srwd,
9785 .write = spi_chip_write_256,
9786 .read = spi_chip_read,
9787 .voltage = {2700, 3600},
9788 },
9789
9790 {
9791 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009792 .name = "LE25FW406A",
9793 .bustype = BUS_SPI,
9794 .manufacture_id = SANYO_ID,
9795 .model_id = SANYO_LE25FW406A,
9796 .total_size = 512,
9797 .page_size = 256,
9798 .feature_bits = FEATURE_WRSR_WREN,
9799 .tested = TEST_OK_PREW,
9800 .probe = probe_spi_res2,
9801 .probe_timing = TIMING_ZERO,
9802 .block_erasers = {
9803 {
9804 .eraseblocks = { {4 * 1024, 128} },
9805 .block_erase = spi_block_erase_d7,
9806 }, {
9807 .eraseblocks = { {64 * 1024, 8} },
9808 .block_erase = spi_block_erase_d8,
9809 }, {
9810 .eraseblocks = { {512 * 1024, 1} },
9811 .block_erase = spi_block_erase_c7,
9812 }
9813 },
9814 .printlock = spi_prettyprint_status_register_plain,
9815 .unlock = spi_disable_blockprotect,
9816 .write = spi_chip_write_256,
9817 .read = spi_chip_read,
9818 .voltage = {2700, 3600},
9819 },
9820
9821 {
9822 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009823 .name = "LE25FU406B",
9824 .bustype = BUS_SPI,
9825 .manufacture_id = SANYO_ID,
9826 .model_id = SANYO_LE25FU406B,
9827 .total_size = 512,
9828 .page_size = 256,
9829 .feature_bits = FEATURE_WRSR_WREN,
9830 .tested = TEST_OK_PREW,
9831 .probe = probe_spi_res2,
9832 .probe_timing = TIMING_ZERO,
9833 .block_erasers = {
9834 {
9835 .eraseblocks = { {4 * 1024, 128} },
9836 .block_erase = spi_block_erase_d7,
9837 }, {
9838 .eraseblocks = { {64 * 1024, 8} },
9839 .block_erase = spi_block_erase_d8,
9840 }, {
9841 .eraseblocks = { {512 * 1024, 1} },
9842 .block_erase = spi_block_erase_c7,
9843 }
9844 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009845 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009846 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9847 .write = spi_chip_write_256,
9848 .read = spi_chip_read,
9849 .voltage = {2300, 3600},
9850 },
9851
9852 {
9853 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009854 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009855 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009856 .manufacture_id = SANYO_ID,
9857 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009858 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009859 .page_size = 256,
9860 .tested = TEST_UNTESTED,
9861 .probe = probe_spi_rdid,
9862 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009863 .block_erasers =
9864 {
9865 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009866 .eraseblocks = { {256, 1024} },
9867 .block_erase = spi_block_erase_db,
9868 }, {
9869 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009870 .block_erase = spi_block_erase_d8,
9871 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009872 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009873 .block_erase = spi_block_erase_c7,
9874 }
9875 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009876 .printlock = spi_prettyprint_status_register_default_welwip,
9877 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009878 .write = spi_chip_write_256,
9879 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009880 .voltage = {2700, 3600},
9881 },
9882
9883 {
9884 .vendor = "Sanyo",
9885 .name = "LE25FW403A",
9886 .bustype = BUS_SPI,
9887 .manufacture_id = SANYO_ID,
9888 .model_id = SANYO_LE25FW403A,
9889 .total_size = 512,
9890 .page_size = 256,
9891 .tested = TEST_UNTESTED,
9892 .probe = probe_spi_rdid,
9893 .probe_timing = TIMING_ZERO,
9894 .block_erasers = {
9895 {
9896 .eraseblocks = { {256, 2 * 1024} },
9897 .block_erase = spi_block_erase_db,
9898 }, {
9899 .eraseblocks = { {64 * 1024, 8} },
9900 .block_erase = spi_block_erase_d8,
9901 }, {
9902 .eraseblocks = { {512 * 1024, 1} },
9903 .block_erase = spi_block_erase_c7,
9904 }
9905 },
9906 .printlock = spi_prettyprint_status_register_default_welwip,
9907 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9908 .write = spi_chip_write_256,
9909 .read = spi_chip_read,
9910 .voltage = {2700, 3600},
9911 },
9912
9913 {
9914 .vendor = "Sanyo",
9915 .name = "LE25FW418A",
9916 .bustype = BUS_SPI,
9917 .manufacture_id = SANYO_ID,
9918 .model_id = SANYO_LE25FW418A,
9919 .total_size = 512,
9920 .page_size = 256,
9921 .feature_bits = FEATURE_WRSR_WREN,
9922 .tested = TEST_UNTESTED,
9923 .probe = probe_spi_res2,
9924 .probe_timing = TIMING_ZERO,
9925 .block_erasers = {
9926 {
9927 .eraseblocks = { {4 * 1024, 128} },
9928 .block_erase = spi_block_erase_d7,
9929 }, {
9930 .eraseblocks = { {64 * 1024, 8} },
9931 .block_erase = spi_block_erase_d8,
9932 }, {
9933 .eraseblocks = { {512 * 1024, 1} },
9934 .block_erase = spi_block_erase_c7,
9935 }
9936 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009937 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009938 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9939 .write = spi_chip_write_256,
9940 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9941 .voltage = {2700, 3600},
9942 },
9943
9944 {
9945 .vendor = "Sanyo",
9946 .name = "LE25FW806",
9947 .bustype = BUS_SPI,
9948 .manufacture_id = SANYO_ID,
9949 .model_id = SANYO_LE25FW806,
9950 .total_size = 1024,
9951 .page_size = 256,
9952 .feature_bits = FEATURE_WRSR_WREN,
9953 .tested = TEST_UNTESTED,
9954 .probe = probe_spi_res2,
9955 .probe_timing = TIMING_ZERO,
9956 .block_erasers = {
9957 {
9958 .eraseblocks = { {4 * 1024, 256} },
9959 .block_erase = spi_block_erase_20,
9960 }, {
9961 .eraseblocks = { {4 * 1024, 256} },
9962 .block_erase = spi_block_erase_d7,
9963 }, {
9964 .eraseblocks = { {64 * 1024, 16} },
9965 .block_erase = spi_block_erase_d8,
9966 }, {
9967 .eraseblocks = { {1024 * 1024, 1} },
9968 .block_erase = spi_block_erase_c7,
9969 }
9970 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009971 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009972 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9973 .write = spi_chip_write_256,
9974 .read = spi_chip_read,
9975 .voltage = {2700, 3600},
9976 },
9977
9978 {
9979 .vendor = "Sanyo",
9980 .name = "LE25FW808",
9981 .bustype = BUS_SPI,
9982 .manufacture_id = SANYO_ID,
9983 .model_id = SANYO_LE25FW808,
9984 .total_size = 1024,
9985 .page_size = 256,
9986 .feature_bits = FEATURE_WRSR_WREN,
9987 .tested = TEST_UNTESTED,
9988 .probe = probe_spi_res2,
9989 .probe_timing = TIMING_ZERO,
9990 .block_erasers = {
9991 {
9992 .eraseblocks = { {8 * 1024, 128} },
9993 .block_erase = spi_block_erase_d7,
9994 }, {
9995 .eraseblocks = { {64 * 1024, 16} },
9996 .block_erase = spi_block_erase_d8,
9997 }, {
9998 .eraseblocks = { {1024 * 1024, 1} },
9999 .block_erase = spi_block_erase_c7,
10000 }
10001 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010002 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010003 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10004 .write = spi_chip_write_256,
10005 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10006 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000010007 },
10008
10009 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010010 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010011 .name = "LH28F008BJT-BTLZ1",
10012 .bustype = BUS_PARALLEL,
10013 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000010014 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010015 .total_size = 1024,
10016 .page_size = 64 * 1024,
10017 .tested = TEST_OK_PREW,
10018 .probe = probe_82802ab,
10019 .probe_timing = TIMING_ZERO,
10020 .block_erasers =
10021 {
10022 {
10023 .eraseblocks = {
10024 {8 * 1024, 8},
10025 {64 * 1024, 15}
10026 },
10027 .block_erase = erase_block_82802ab,
10028 }, {
10029 .eraseblocks = { {1024 * 1024, 1} },
10030 .block_erase = erase_sector_49lfxxxc,
10031 }
10032 },
10033 .unlock = unlock_lh28f008bjt,
10034 .write = write_82802ab,
10035 .read = read_memmapped,
10036 .voltage = {2700, 3600},
10037 },
10038
10039 {
10040 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010041 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010042 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010043 .manufacture_id = SHARP_ID,
10044 .model_id = SHARP_LHF00L04,
10045 .total_size = 1024,
10046 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010047 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010048 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010049 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010051 .block_erasers =
10052 {
10053 {
10054 .eraseblocks = {
10055 {64 * 1024, 15},
10056 {8 * 1024, 8}
10057 },
Sean Nelson28accc22010-03-19 18:47:06 +000010058 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010059 }, {
10060 .eraseblocks = {
10061 {1024 * 1024, 1}
10062 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010063 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010064 },
10065 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010066 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000010067 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010069 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010070 },
10071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010072 {
10073 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000010074 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010075 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010076 .manufacture_id = SPANSION_ID,
10077 .model_id = SPANSION_S25FL004A,
10078 .total_size = 512,
10079 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010080 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010081 .tested = TEST_UNTESTED,
10082 .probe = probe_spi_rdid,
10083 .probe_timing = TIMING_ZERO,
10084 .block_erasers =
10085 {
10086 {
10087 .eraseblocks = { {64 * 1024, 8} },
10088 .block_erase = spi_block_erase_d8,
10089 }, {
10090 .eraseblocks = { {512 * 1024, 1} },
10091 .block_erase = spi_block_erase_c7,
10092 }
10093 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010094 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010095 .unlock = spi_disable_blockprotect,
10096 .write = spi_chip_write_256,
10097 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010098 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010099 },
10100
10101 {
10102 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000010103 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010104 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000010105 .manufacture_id = SPANSION_ID,
10106 .model_id = SPANSION_S25FL008A,
10107 .total_size = 1024,
10108 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010109 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010110 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000010111 .probe = probe_spi_rdid,
10112 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000010113 .block_erasers =
10114 {
10115 {
10116 .eraseblocks = { {64 * 1024, 16} },
10117 .block_erase = spi_block_erase_d8,
10118 }, {
10119 .eraseblocks = { {1024 * 1024, 1} },
10120 .block_erase = spi_block_erase_c7,
10121 }
10122 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010123 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010124 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000010125 .write = spi_chip_write_256,
10126 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010127 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000010128 },
10129
10130 {
10131 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010132 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010133 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010134 .manufacture_id = SPANSION_ID,
10135 .model_id = SPANSION_S25FL016A,
10136 .total_size = 2048,
10137 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010138 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010139 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010140 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010141 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010142 .block_erasers =
10143 {
10144 {
10145 .eraseblocks = { {64 * 1024, 32} },
10146 .block_erase = spi_block_erase_d8,
10147 }, {
10148 .eraseblocks = { {2 * 1024 * 1024, 1} },
10149 .block_erase = spi_block_erase_c7,
10150 }
10151 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010152 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010153 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010154 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010155 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010156 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010157 },
10158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010159 {
Rudy Hostf4e57772010-11-29 00:37:49 +000010160 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010161 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010162 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010163 .manufacture_id = SPANSION_ID,
10164 .model_id = SPANSION_S25FL032A,
10165 .total_size = 4096,
10166 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010167 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010168 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000010169 .probe = probe_spi_rdid,
10170 .probe_timing = TIMING_ZERO,
10171 .block_erasers =
10172 {
10173 {
10174 .eraseblocks = { {64 * 1024, 64} },
10175 .block_erase = spi_block_erase_d8,
10176 }, {
10177 .eraseblocks = { {4 * 1024 * 1024, 1} },
10178 .block_erase = spi_block_erase_c7,
10179 }
10180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010182 .unlock = spi_disable_blockprotect,
10183 .write = spi_chip_write_256,
10184 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010185 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010186 },
10187
10188 {
10189 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010190 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010191 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010192 .manufacture_id = SPANSION_ID,
10193 .model_id = SPANSION_S25FL064A,
10194 .total_size = 8192,
10195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010196 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010197 .tested = TEST_OK_PREW,
10198 .probe = probe_spi_rdid,
10199 .probe_timing = TIMING_ZERO,
10200 .block_erasers =
10201 {
10202 {
10203 .eraseblocks = { {64 * 1024, 128} },
10204 .block_erase = spi_block_erase_d8,
10205 }, {
10206 .eraseblocks = { {8 * 1024 * 1024, 1} },
10207 .block_erase = spi_block_erase_c7,
10208 }
10209 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010210 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010211 .unlock = spi_disable_blockprotect,
10212 .write = spi_chip_write_256,
10213 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010214 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010215 },
10216
10217 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010218 .vendor = "Spansion",
10219 .name = "S25FL204K",
10220 .bustype = BUS_SPI,
10221 .manufacture_id = SPANSION_ID,
10222 .model_id = SPANSION_S25FL204,
10223 .total_size = 512,
10224 .page_size = 256,
10225 .feature_bits = FEATURE_WRSR_WREN,
10226 .tested = TEST_UNTESTED,
10227 .probe = probe_spi_rdid,
10228 .probe_timing = TIMING_ZERO,
10229 .block_erasers = {
10230 {
10231 .eraseblocks = { {4 * 1024, 128} },
10232 .block_erase = spi_block_erase_20,
10233 }, {
10234 .eraseblocks = { {64 * 1024, 8} },
10235 .block_erase = spi_block_erase_d8,
10236 }, {
10237 .eraseblocks = { { 512 * 1024, 1} },
10238 .block_erase = spi_block_erase_60,
10239 }, {
10240 .eraseblocks = { { 512 * 1024, 1} },
10241 .block_erase = spi_block_erase_c7,
10242 }
10243 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010244 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010245 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
10246 .write = spi_chip_write_256,
10247 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
10248 .voltage = {2700, 3600},
10249 },
10250
10251 {
10252 .vendor = "Spansion",
10253 .name = "S25FL208K",
10254 .bustype = BUS_SPI,
10255 .manufacture_id = SPANSION_ID,
10256 .model_id = SPANSION_S25FL208,
10257 .total_size = 1024,
10258 .page_size = 256,
10259 .feature_bits = FEATURE_WRSR_WREN,
10260 .tested = TEST_UNTESTED,
10261 .probe = probe_spi_rdid,
10262 .probe_timing = TIMING_ZERO,
10263 .block_erasers = {
10264 {
10265 .eraseblocks = { {4 * 1024, 256} },
10266 .block_erase = spi_block_erase_20,
10267 }, {
10268 .eraseblocks = { {64 * 1024, 16} },
10269 .block_erase = spi_block_erase_d8,
10270 }, {
10271 .eraseblocks = { { 1024 * 1024, 1} },
10272 .block_erase = spi_block_erase_60,
10273 }, {
10274 .eraseblocks = { { 1024 * 1024, 1} },
10275 .block_erase = spi_block_erase_c7,
10276 }
10277 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010278 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010279 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
10280 .write = spi_chip_write_256,
10281 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
10282 .voltage = {2700, 3600},
10283 },
10284
10285 {
10286 .vendor = "Spansion",
10287 .name = "S25FL116K/S25FL216K",
10288 .bustype = BUS_SPI,
10289 .manufacture_id = SPANSION_ID,
10290 .model_id = SPANSION_S25FL216,
10291 .total_size = 2048,
10292 .page_size = 256,
10293 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
10294 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10295 .tested = TEST_UNTESTED,
10296 .probe = probe_spi_rdid,
10297 .probe_timing = TIMING_ZERO,
10298 .block_erasers = {
10299 {
10300 .eraseblocks = { {4 * 1024, 512} },
10301 .block_erase = spi_block_erase_20,
10302 }, {
10303 .eraseblocks = { {64 * 1024, 32} },
10304 .block_erase = spi_block_erase_d8,
10305 }, {
10306 .eraseblocks = { { 2048 * 1024, 1} },
10307 .block_erase = spi_block_erase_60,
10308 }, {
10309 .eraseblocks = { { 2048 * 1024, 1} },
10310 .block_erase = spi_block_erase_c7,
10311 }
10312 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010313 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010314 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
10315 .write = spi_chip_write_256,
10316 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
10317 .voltage = {2700, 3600},
10318 },
10319
10320 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010321 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000010322 .name = "S25FL132K",
10323 .bustype = BUS_SPI,
10324 .manufacture_id = SPANSION_ID,
10325 .model_id = SPANSION_S25FL132K,
10326 .total_size = 4096,
10327 .page_size = 256,
10328 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10330 .tested = TEST_UNTESTED,
10331 .probe = probe_spi_rdid,
10332 .probe_timing = TIMING_ZERO,
10333 .block_erasers = {
10334 {
10335 .eraseblocks = { {4 * 1024, 1024} },
10336 .block_erase = spi_block_erase_20,
10337 }, {
10338 .eraseblocks = { {64 * 1024, 64} },
10339 .block_erase = spi_block_erase_d8,
10340 }, {
10341 .eraseblocks = { { 4096 * 1024, 1} },
10342 .block_erase = spi_block_erase_60,
10343 }, {
10344 .eraseblocks = { { 4096 * 1024, 1} },
10345 .block_erase = spi_block_erase_c7,
10346 }
10347 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010348 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010349 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10350 .write = spi_chip_write_256,
10351 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10352 .voltage = {2700, 3600},
10353 },
10354
10355 {
10356 .vendor = "Spansion",
10357 .name = "S25FL164K",
10358 .bustype = BUS_SPI,
10359 .manufacture_id = SPANSION_ID,
10360 .model_id = SPANSION_S25FL164K,
10361 .total_size = 8192,
10362 .page_size = 256,
10363 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10364 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10365 .tested = TEST_OK_PREW,
10366 .probe = probe_spi_rdid,
10367 .probe_timing = TIMING_ZERO,
10368 .block_erasers = {
10369 {
10370 .eraseblocks = { {4 * 1024, 2048} },
10371 .block_erase = spi_block_erase_20,
10372 }, {
10373 .eraseblocks = { {64 * 1024, 128} },
10374 .block_erase = spi_block_erase_d8,
10375 }, {
10376 .eraseblocks = { { 8192 * 1024, 1} },
10377 .block_erase = spi_block_erase_60,
10378 }, {
10379 .eraseblocks = { { 8192 * 1024, 1} },
10380 .block_erase = spi_block_erase_c7,
10381 }
10382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010383 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010384 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10385 .write = spi_chip_write_256,
10386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10387 .voltage = {2700, 3600},
10388 },
10389
10390 {
10391 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010392 .name = "S25FL128S......0", /* uniform 256kB sectors */
10393 .bustype = BUS_SPI,
10394 .manufacture_id = SPANSION_ID,
10395 .model_id = SPANSION_S25FL128,
10396 .total_size = 16384,
10397 .page_size = 256,
10398 /* supports 4B addressing */
10399 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10400 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10401 .tested = TEST_UNTESTED,
10402 .probe = probe_spi_rdid,
10403 .probe_timing = TIMING_ZERO,
10404 .block_erasers = {
10405 {
10406 .eraseblocks = { {4 * 1024, 4096} },
10407 .block_erase = spi_block_erase_20,
10408 }, {
10409 .eraseblocks = { {256 * 1024, 64} },
10410 .block_erase = spi_block_erase_d8,
10411 }, {
10412 .eraseblocks = { { 16384 * 1024, 1} },
10413 .block_erase = spi_block_erase_60,
10414 }, {
10415 .eraseblocks = { { 16384 * 1024, 1} },
10416 .block_erase = spi_block_erase_c7,
10417 }
10418 },
10419 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10420 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10421 .write = spi_chip_write_256, /* Multi I/O supported */
10422 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10423 .voltage = {2700, 3600},
10424 },
10425
10426 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010427 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000010428 .name = "SST25LF020A",
10429 .bustype = BUS_SPI,
10430 .manufacture_id = SST_ID,
10431 .model_id = SST_SST25VF020_REMS,
10432 .total_size = 256,
10433 .page_size = 256,
10434 .feature_bits = FEATURE_WRSR_EWSR,
10435 .tested = TEST_OK_PREW,
10436 .probe = probe_spi_rems,
10437 .probe_timing = TIMING_ZERO,
10438 .block_erasers =
10439 {
10440 {
10441 .eraseblocks = { {4 * 1024, 64} },
10442 .block_erase = spi_block_erase_20,
10443 }, {
10444 .eraseblocks = { {32 * 1024, 8} },
10445 .block_erase = spi_block_erase_52,
10446 }, {
10447 .eraseblocks = { {256 * 1024, 1} },
10448 .block_erase = spi_block_erase_60,
10449 },
10450 },
10451 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10452 .unlock = spi_disable_blockprotect,
10453 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10454 .read = spi_chip_read, /* Fast read (0x0B) supported */
10455 .voltage = {2700, 3600},
10456 },
10457
10458 {
10459 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000010460 .name = "SST25LF040A",
10461 .bustype = BUS_SPI,
10462 .manufacture_id = SST_ID,
10463 .model_id = SST_SST25VF040_REMS,
10464 .total_size = 512,
10465 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010466 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000010467 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000010468 .probe = probe_spi_res2,
10469 .probe_timing = TIMING_ZERO,
10470 .block_erasers =
10471 {
10472 {
10473 .eraseblocks = { {4 * 1024, 128} },
10474 .block_erase = spi_block_erase_20,
10475 }, {
10476 .eraseblocks = { {32 * 1024, 16} },
10477 .block_erase = spi_block_erase_52,
10478 }, {
10479 .eraseblocks = { {512 * 1024, 1} },
10480 .block_erase = spi_block_erase_60,
10481 },
10482 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010483 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010484 .unlock = spi_disable_blockprotect,
10485 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10486 .read = spi_chip_read,
10487 .voltage = {3000, 3600},
10488 },
10489
10490 {
10491 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010492 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000010493 .bustype = BUS_SPI,
10494 .manufacture_id = SST_ID,
10495 .model_id = SST_SST25VF080_REMS,
10496 .total_size = 1024,
10497 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010498 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000010499 .tested = TEST_UNTESTED,
10500 .probe = probe_spi_res2,
10501 .probe_timing = TIMING_ZERO,
10502 .block_erasers =
10503 {
10504 {
10505 .eraseblocks = { {4 * 1024, 256} },
10506 .block_erase = spi_block_erase_20,
10507 }, {
10508 .eraseblocks = { {32 * 1024, 32} },
10509 .block_erase = spi_block_erase_52,
10510 }, {
10511 .eraseblocks = { {1024 * 1024, 1} },
10512 .block_erase = spi_block_erase_60,
10513 },
10514 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010515 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010516 .unlock = spi_disable_blockprotect,
10517 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10518 .read = spi_chip_read,
10519 .voltage = {3000, 3600},
10520 },
10521
10522 {
10523 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000010524 .name = "SST25VF512A",
10525 .bustype = BUS_SPI,
10526 .manufacture_id = SST_ID,
10527 .model_id = SST_SST25VF512A_REMS,
10528 .total_size = 64,
10529 .page_size = 256,
10530 .feature_bits = FEATURE_WRSR_EWSR,
10531 .tested = TEST_OK_PREW,
10532 .probe = probe_spi_rems,
10533 .probe_timing = TIMING_ZERO,
10534 .block_erasers =
10535 {
10536 {
10537 .eraseblocks = { {4 * 1024, 16} },
10538 .block_erase = spi_block_erase_20,
10539 }, {
10540 .eraseblocks = { {32 * 1024, 2} },
10541 .block_erase = spi_block_erase_52,
10542 }, {
10543 .eraseblocks = { {32 * 1024, 2} },
10544 .block_erase = spi_block_erase_d8,
10545 }, {
10546 .eraseblocks = { {64 * 1024, 1} },
10547 .block_erase = spi_block_erase_60,
10548 }, {
10549 .eraseblocks = { {64 * 1024, 1} },
10550 .block_erase = spi_block_erase_c7,
10551 },
10552 },
10553 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10554 .unlock = spi_disable_blockprotect,
10555 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10556 .read = spi_chip_read, /* Fast read (0x0B) supported */
10557 .voltage = {2700, 3600},
10558 },
10559
10560 {
10561 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010562 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010563 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000010564 .manufacture_id = SST_ID,
10565 .model_id = SST_SST25VF010_REMS,
10566 .total_size = 128,
10567 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010568 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010569 .tested = TEST_OK_PREW,
10570 .probe = probe_spi_rems,
10571 .probe_timing = TIMING_ZERO,
10572 .block_erasers =
10573 {
10574 {
10575 .eraseblocks = { {4 * 1024, 32} },
10576 .block_erase = spi_block_erase_20,
10577 }, {
10578 .eraseblocks = { {32 * 1024, 4} },
10579 .block_erase = spi_block_erase_52,
10580 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010581 .eraseblocks = { {32 * 1024, 4} },
10582 .block_erase = spi_block_erase_d8,
10583 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010584 .eraseblocks = { {128 * 1024, 1} },
10585 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010586 }, {
10587 .eraseblocks = { {128 * 1024, 1} },
10588 .block_erase = spi_block_erase_c7,
10589 },
10590 },
10591 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10592 .unlock = spi_disable_blockprotect,
10593 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10594 .read = spi_chip_read, /* Fast read (0x0B) supported */
10595 .voltage = {2700, 3600},
10596 },
10597
10598 {
10599 .vendor = "SST",
10600 .name = "SST25VF020",
10601 .bustype = BUS_SPI,
10602 .manufacture_id = SST_ID,
10603 .model_id = SST_SST25VF020_REMS,
10604 .total_size = 256,
10605 .page_size = 256,
10606 .feature_bits = FEATURE_WRSR_EWSR,
10607 .tested = TEST_UNTESTED,
10608 .probe = probe_spi_rems,
10609 .probe_timing = TIMING_ZERO,
10610 .block_erasers =
10611 {
10612 {
10613 .eraseblocks = { {4 * 1024, 64} },
10614 .block_erase = spi_block_erase_20,
10615 }, {
10616 .eraseblocks = { {32 * 1024, 8} },
10617 .block_erase = spi_block_erase_52,
10618 }, {
10619 .eraseblocks = { {256 * 1024, 1} },
10620 .block_erase = spi_block_erase_60,
10621 },
10622 },
10623 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10624 .unlock = spi_disable_blockprotect,
10625 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10626 .read = spi_chip_read, /* only */
10627 .voltage = {2700, 3600},
10628 },
10629
10630 {
10631 .vendor = "SST",
10632 .name = "SST25VF020B",
10633 .bustype = BUS_SPI,
10634 .manufacture_id = SST_ID,
10635 .model_id = SST_SST25VF020B,
10636 .total_size = 256,
10637 .page_size = 256,
10638 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010639 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000010640 .probe = probe_spi_rdid,
10641 .probe_timing = TIMING_ZERO,
10642 .block_erasers =
10643 {
10644 {
10645 .eraseblocks = { {4 * 1024, 64} },
10646 .block_erase = spi_block_erase_20,
10647 }, {
10648 .eraseblocks = { {32 * 1024, 8} },
10649 .block_erase = spi_block_erase_52,
10650 }, {
10651 .eraseblocks = { {64 * 1024, 4} },
10652 .block_erase = spi_block_erase_d8,
10653 }, {
10654 .eraseblocks = { {256 * 1024, 1} },
10655 .block_erase = spi_block_erase_60,
10656 }, {
10657 .eraseblocks = { {256 * 1024, 1} },
10658 .block_erase = spi_block_erase_c7,
10659 },
10660 },
10661 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
10662 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
10663 .write = spi_aai_write, /* AAI supported (0xAD) */
10664 .read = spi_chip_read, /* Fast read (0x0B) supported */
10665 .voltage = {2700, 3600},
10666 },
10667
10668 {
10669 .vendor = "SST",
10670 .name = "SST25VF040",
10671 .bustype = BUS_SPI,
10672 .manufacture_id = SST_ID,
10673 .model_id = SST_SST25VF040_REMS,
10674 .total_size = 512,
10675 .page_size = 256,
10676 .feature_bits = FEATURE_WRSR_EWSR,
10677 .tested = TEST_OK_PR,
10678 .probe = probe_spi_rems,
10679 .probe_timing = TIMING_ZERO,
10680 .block_erasers =
10681 {
10682 {
10683 .eraseblocks = { {4 * 1024, 128} },
10684 .block_erase = spi_block_erase_20,
10685 }, {
10686 .eraseblocks = { {32 * 1024, 16} },
10687 .block_erase = spi_block_erase_52,
10688 }, {
10689 .eraseblocks = { {512 * 1024, 1} },
10690 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000010691 },
10692 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010693 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000010694 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000010695 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10696 .read = spi_chip_read,
10697 .voltage = {2700, 3600},
10698 },
10699
10700 {
10701 .vendor = "SST",
10702 .name = "SST25VF040B",
10703 .bustype = BUS_SPI,
10704 .manufacture_id = SST_ID,
10705 .model_id = SST_SST25VF040B,
10706 .total_size = 512,
10707 .page_size = 256,
10708 .feature_bits = FEATURE_WRSR_EWSR,
10709 .tested = TEST_OK_PREW,
10710 .probe = probe_spi_rdid,
10711 .probe_timing = TIMING_ZERO,
10712 .block_erasers =
10713 {
10714 {
10715 .eraseblocks = { {4 * 1024, 128} },
10716 .block_erase = spi_block_erase_20,
10717 }, {
10718 .eraseblocks = { {32 * 1024, 16} },
10719 .block_erase = spi_block_erase_52,
10720 }, {
10721 .eraseblocks = { {64 * 1024, 8} },
10722 .block_erase = spi_block_erase_d8,
10723 }, {
10724 .eraseblocks = { {512 * 1024, 1} },
10725 .block_erase = spi_block_erase_60,
10726 }, {
10727 .eraseblocks = { {512 * 1024, 1} },
10728 .block_erase = spi_block_erase_c7,
10729 },
10730 },
10731 .printlock = spi_prettyprint_status_register_sst25vf040b,
10732 .unlock = spi_disable_blockprotect,
10733 .write = spi_aai_write, /* AAI supported (0xAD) */
10734 .read = spi_chip_read, /* Fast read (0x0B) supported */
10735 .voltage = {2700, 3600},
10736 },
10737
10738 {
10739 .vendor = "SST",
10740 .name = "SST25VF040B.REMS",
10741 .bustype = BUS_SPI,
10742 .manufacture_id = SST_ID,
10743 .model_id = SST_SST25VF040B_REMS,
10744 .total_size = 512,
10745 .page_size = 256,
10746 .feature_bits = FEATURE_WRSR_EWSR,
10747 .tested = TEST_OK_PREW,
10748 .probe = probe_spi_rems,
10749 .probe_timing = TIMING_ZERO,
10750 .block_erasers =
10751 {
10752 {
10753 .eraseblocks = { {4 * 1024, 128} },
10754 .block_erase = spi_block_erase_20,
10755 }, {
10756 .eraseblocks = { {32 * 1024, 16} },
10757 .block_erase = spi_block_erase_52,
10758 }, {
10759 .eraseblocks = { {64 * 1024, 8} },
10760 .block_erase = spi_block_erase_d8,
10761 }, {
10762 .eraseblocks = { {512 * 1024, 1} },
10763 .block_erase = spi_block_erase_60,
10764 }, {
10765 .eraseblocks = { {512 * 1024, 1} },
10766 .block_erase = spi_block_erase_c7,
10767 },
10768 },
10769 .printlock = spi_prettyprint_status_register_sst25vf040b,
10770 .unlock = spi_disable_blockprotect,
10771 .write = spi_aai_write,
10772 .read = spi_chip_read,
10773 .voltage = {2700, 3600},
10774 },
10775
10776 {
10777 .vendor = "SST",
10778 .name = "SST25VF080B",
10779 .bustype = BUS_SPI,
10780 .manufacture_id = SST_ID,
10781 .model_id = SST_SST25VF080B,
10782 .total_size = 1024,
10783 .page_size = 256,
10784 .feature_bits = FEATURE_WRSR_EWSR,
10785 .tested = TEST_OK_PREW,
10786 .probe = probe_spi_rdid,
10787 .probe_timing = TIMING_ZERO,
10788 .block_erasers =
10789 {
10790 {
10791 .eraseblocks = { {4 * 1024, 256} },
10792 .block_erase = spi_block_erase_20,
10793 }, {
10794 .eraseblocks = { {32 * 1024, 32} },
10795 .block_erase = spi_block_erase_52,
10796 }, {
10797 .eraseblocks = { {64 * 1024, 16} },
10798 .block_erase = spi_block_erase_d8,
10799 }, {
10800 .eraseblocks = { {1024 * 1024, 1} },
10801 .block_erase = spi_block_erase_60,
10802 }, {
10803 .eraseblocks = { {1024 * 1024, 1} },
10804 .block_erase = spi_block_erase_c7,
10805 },
10806 },
10807 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10808 .unlock = spi_disable_blockprotect,
10809 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010810 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010811 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010812 },
10813
10814 {
10815 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010816 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010817 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010818 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010819 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010820 .total_size = 2048,
10821 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010822 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010823 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010824 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010825 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010826 .block_erasers =
10827 {
10828 {
10829 .eraseblocks = { {4 * 1024, 512} },
10830 .block_erase = spi_block_erase_20,
10831 }, {
10832 .eraseblocks = { {32 * 1024, 64} },
10833 .block_erase = spi_block_erase_52,
10834 }, {
10835 .eraseblocks = { {64 * 1024, 32} },
10836 .block_erase = spi_block_erase_d8,
10837 }, {
10838 .eraseblocks = { {2 * 1024 * 1024, 1} },
10839 .block_erase = spi_block_erase_60,
10840 }, {
10841 .eraseblocks = { {2 * 1024 * 1024, 1} },
10842 .block_erase = spi_block_erase_c7,
10843 },
10844 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010845 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010846 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010847 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010848 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010849 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010850 },
10851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010852 {
10853 .vendor = "SST",
10854 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010855 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010856 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010857 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010858 .total_size = 4096,
10859 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010860 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010861 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010862 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010863 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010864 .block_erasers =
10865 {
10866 {
10867 .eraseblocks = { {4 * 1024, 1024} },
10868 .block_erase = spi_block_erase_20,
10869 }, {
10870 .eraseblocks = { {32 * 1024, 128} },
10871 .block_erase = spi_block_erase_52,
10872 }, {
10873 .eraseblocks = { {64 * 1024, 64} },
10874 .block_erase = spi_block_erase_d8,
10875 }, {
10876 .eraseblocks = { {4 * 1024 * 1024, 1} },
10877 .block_erase = spi_block_erase_60,
10878 }, {
10879 .eraseblocks = { {4 * 1024 * 1024, 1} },
10880 .block_erase = spi_block_erase_c7,
10881 },
10882 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010883 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010884 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010885 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010886 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010887 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010888 },
10889
10890 {
10891 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010892 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010893 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010894 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010895 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010896 .total_size = 8192,
10897 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010898 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010899 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010900 .probe = probe_spi_rdid,
10901 .probe_timing = TIMING_ZERO,
10902 .block_erasers =
10903 {
10904 {
10905 .eraseblocks = { {4 * 1024, 2048} },
10906 .block_erase = spi_block_erase_20,
10907 }, {
10908 .eraseblocks = { {32 * 1024, 256} },
10909 .block_erase = spi_block_erase_52,
10910 }, {
10911 .eraseblocks = { {64 * 1024, 128} },
10912 .block_erase = spi_block_erase_d8,
10913 }, {
10914 .eraseblocks = { {8 * 1024 * 1024, 1} },
10915 .block_erase = spi_block_erase_60,
10916 }, {
10917 .eraseblocks = { {8 * 1024 * 1024, 1} },
10918 .block_erase = spi_block_erase_c7,
10919 },
10920 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010921 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010922 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010923 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010925 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010926 },
10927
10928 {
10929 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010930 .name = "SST25WF512",
10931 .bustype = BUS_SPI,
10932 .manufacture_id = SST_ID,
10933 .model_id = SST_SST25WF512,
10934 .total_size = 64,
10935 .page_size = 256,
10936 .feature_bits = FEATURE_WRSR_EITHER,
10937 .tested = TEST_UNTESTED,
10938 .probe = probe_spi_rdid,
10939 .probe_timing = TIMING_ZERO,
10940 .block_erasers =
10941 {
10942 {
10943 .eraseblocks = { {4 * 1024, 16} },
10944 .block_erase = spi_block_erase_20,
10945 }, {
10946 .eraseblocks = { {32 * 1024, 2} },
10947 .block_erase = spi_block_erase_52,
10948 }, {
10949 .eraseblocks = { {1024 * 64, 1} },
10950 .block_erase = spi_block_erase_60,
10951 }, {
10952 .eraseblocks = { {1024 * 64, 1} },
10953 .block_erase = spi_block_erase_c7,
10954 },
10955 },
Jason Harper43ddef02014-05-04 00:55:24 +000010956 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10957 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010958 .write = spi_aai_write,
10959 .read = spi_chip_read, /* Fast read (0x0B) supported */
10960 .voltage = {1650, 1950},
10961 },
10962
10963 {
10964 .vendor = "SST",
10965 .name = "SST25WF010",
10966 .bustype = BUS_SPI,
10967 .manufacture_id = SST_ID,
10968 .model_id = SST_SST25WF010,
10969 .total_size = 128,
10970 .page_size = 256,
10971 .feature_bits = FEATURE_WRSR_EITHER,
10972 .tested = TEST_UNTESTED,
10973 .probe = probe_spi_rdid,
10974 .probe_timing = TIMING_ZERO,
10975 .block_erasers =
10976 {
10977 {
10978 .eraseblocks = { {4 * 1024, 32} },
10979 .block_erase = spi_block_erase_20,
10980 }, {
10981 .eraseblocks = { {32 * 1024, 4} },
10982 .block_erase = spi_block_erase_52,
10983 }, {
10984 .eraseblocks = { {1024 * 128, 1} },
10985 .block_erase = spi_block_erase_60,
10986 }, {
10987 .eraseblocks = { {1024 * 128, 1} },
10988 .block_erase = spi_block_erase_c7,
10989 },
10990 },
Jason Harper43ddef02014-05-04 00:55:24 +000010991 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10992 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010993 .write = spi_aai_write,
10994 .read = spi_chip_read, /* Fast read (0x0B) supported */
10995 .voltage = {1650, 1950},
10996 },
10997
10998 {
10999 .vendor = "SST",
11000 .name = "SST25WF020",
11001 .bustype = BUS_SPI,
11002 .manufacture_id = SST_ID,
11003 .model_id = SST_SST25WF020,
11004 .total_size = 256,
11005 .page_size = 256,
11006 .feature_bits = FEATURE_WRSR_EITHER,
11007 .tested = TEST_UNTESTED,
11008 .probe = probe_spi_rdid,
11009 .probe_timing = TIMING_ZERO,
11010 .block_erasers =
11011 {
11012 {
11013 .eraseblocks = { {4 * 1024, 64} },
11014 .block_erase = spi_block_erase_20,
11015 }, {
11016 .eraseblocks = { {32 * 1024, 8} },
11017 .block_erase = spi_block_erase_52,
11018 }, {
11019 .eraseblocks = { {64 * 1024, 4} },
11020 .block_erase = spi_block_erase_d8,
11021 }, {
11022 .eraseblocks = { {1024 * 256, 1} },
11023 .block_erase = spi_block_erase_60,
11024 }, {
11025 .eraseblocks = { {1024 * 256, 1} },
11026 .block_erase = spi_block_erase_c7,
11027 },
11028 },
Jason Harper43ddef02014-05-04 00:55:24 +000011029 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11030 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011031 .write = spi_aai_write,
11032 .read = spi_chip_read, /* Fast read (0x0B) supported */
11033 .voltage = {1650, 1950},
11034 },
11035
11036 {
11037 .vendor = "SST",
11038 .name = "SST25WF040",
11039 .bustype = BUS_SPI,
11040 .manufacture_id = SST_ID,
11041 .model_id = SST_SST25WF040,
11042 .total_size = 512,
11043 .page_size = 256,
11044 .feature_bits = FEATURE_WRSR_EITHER,
11045 .tested = TEST_UNTESTED,
11046 .probe = probe_spi_rdid,
11047 .probe_timing = TIMING_ZERO,
11048 .block_erasers =
11049 {
11050 {
11051 .eraseblocks = { {4 * 1024, 128} },
11052 .block_erase = spi_block_erase_20,
11053 }, {
11054 .eraseblocks = { {32 * 1024, 16} },
11055 .block_erase = spi_block_erase_52,
11056 }, {
11057 .eraseblocks = { {64 * 1024, 8} },
11058 .block_erase = spi_block_erase_d8,
11059 }, {
11060 .eraseblocks = { {1024 * 512, 1} },
11061 .block_erase = spi_block_erase_60,
11062 }, {
11063 .eraseblocks = { {1024 * 512, 1} },
11064 .block_erase = spi_block_erase_c7,
11065 },
11066 },
Jason Harper43ddef02014-05-04 00:55:24 +000011067 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11068 .unlock = spi_disable_blockprotect_bp2_srwd,
11069 .write = spi_aai_write,
11070 .read = spi_chip_read, /* Fast read (0x0B) supported */
11071 .voltage = {1650, 1950},
11072 },
11073
11074 {
11075 .vendor = "SST",
11076 .name = "SST25WF080",
11077 .bustype = BUS_SPI,
11078 .manufacture_id = SST_ID,
11079 .model_id = SST_SST25WF080,
11080 .total_size = 1024,
11081 .page_size = 256,
11082 .feature_bits = FEATURE_WRSR_EITHER,
11083 .tested = TEST_OK_PREW,
11084 .probe = probe_spi_rdid,
11085 .probe_timing = TIMING_ZERO,
11086 .block_erasers =
11087 {
11088 {
11089 .eraseblocks = { {4 * 1024, 256} },
11090 .block_erase = spi_block_erase_20,
11091 }, {
11092 .eraseblocks = { {32 * 1024, 32} },
11093 .block_erase = spi_block_erase_52,
11094 }, {
11095 .eraseblocks = { {64 * 1024, 16} },
11096 .block_erase = spi_block_erase_d8,
11097 }, {
11098 .eraseblocks = { {1024 * 1024, 1} },
11099 .block_erase = spi_block_erase_60,
11100 }, {
11101 .eraseblocks = { {1024 * 1024, 1} },
11102 .block_erase = spi_block_erase_c7,
11103 },
11104 },
11105 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
11106 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011107 .write = spi_aai_write,
11108 .read = spi_chip_read, /* Fast read (0x0B) supported */
11109 .voltage = {1650, 1950},
11110 },
11111
11112 {
11113 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011114 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011115 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011116 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011117 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011118 .total_size = 512,
11119 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011120 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011121 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011122 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011123 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011124 .block_erasers =
11125 {
11126 {
11127 .eraseblocks = { {128, 4096} },
11128 .block_erase = erase_sector_28sf040,
11129 }, {
11130 .eraseblocks = { {512 * 1024, 1} },
11131 .block_erase = erase_chip_28sf040,
11132 }
11133 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011134 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011135 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011136 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011137 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011138 },
11139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011140 {
11141 .vendor = "SST",
11142 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011143 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011144 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011145 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011146 .total_size = 128,
11147 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011148 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011149 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011150 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011151 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011152 .block_erasers =
11153 {
11154 {
11155 .eraseblocks = { {128 * 1024, 1} },
11156 .block_erase = erase_chip_block_jedec,
11157 }
11158 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011159 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011161 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011162 },
11163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011164 {
11165 .vendor = "SST",
11166 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011167 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011168 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011169 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011170 .total_size = 128,
11171 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011172 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011173 .tested = TEST_UNTESTED,
11174 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011175 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011176 .block_erasers =
11177 {
11178 {
11179 .eraseblocks = { {128 * 1024, 1} },
11180 .block_erase = erase_chip_block_jedec,
11181 }
11182 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011183 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011185 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011186 },
11187
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011188 {
11189 .vendor = "SST",
11190 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011191 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011192 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011193 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011194 .total_size = 256,
11195 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011196 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011197 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011198 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011199 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011200 .block_erasers =
11201 {
11202 {
11203 .eraseblocks = { {256 * 1024, 1} },
11204 .block_erase = erase_chip_block_jedec,
11205 }
11206 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011207 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011210 },
11211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011212 {
11213 .vendor = "SST",
11214 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011215 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011216 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011217 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011218 .total_size = 256,
11219 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011220 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011221 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011222 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011223 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011224 .block_erasers =
11225 {
11226 {
11227 .eraseblocks = { {256 * 1024, 1} },
11228 .block_erase = erase_chip_block_jedec,
11229 }
11230 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011231 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011233 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011234 },
11235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011236 {
11237 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000011238 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011239 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011240 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011241 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011242 .total_size = 64,
11243 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011244 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000011245 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011246 .probe = probe_jedec,
11247 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000011248 .block_erasers =
11249 {
11250 {
11251 .eraseblocks = { {4 * 1024, 16} },
11252 .block_erase = erase_sector_jedec,
11253 }, {
11254 .eraseblocks = { {64 * 1024, 1} },
11255 .block_erase = erase_chip_block_jedec,
11256 }
11257 },
Sean Nelson35727f72010-01-28 23:55:12 +000011258 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011259 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011260 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000011261 },
11262
11263 {
11264 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011265 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011266 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011267 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011268 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011269 .total_size = 128,
11270 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011271 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011272 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011273 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011274 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011275 .block_erasers =
11276 {
11277 {
11278 .eraseblocks = { {4 * 1024, 32} },
11279 .block_erase = erase_sector_jedec,
11280 }, {
11281 .eraseblocks = { {128 * 1024, 1} },
11282 .block_erase = erase_chip_block_jedec,
11283 }
11284 },
Sean Nelson35727f72010-01-28 23:55:12 +000011285 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011286 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011287 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011288 },
11289
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011290 {
11291 .vendor = "SST",
11292 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011293 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011294 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011295 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011296 .total_size = 256,
11297 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011298 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000011299 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011300 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011301 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011302 .block_erasers =
11303 {
11304 {
11305 .eraseblocks = { {4 * 1024, 64} },
11306 .block_erase = erase_sector_jedec,
11307 }, {
11308 .eraseblocks = { {256 * 1024, 1} },
11309 .block_erase = erase_chip_block_jedec,
11310 }
11311 },
Sean Nelson35727f72010-01-28 23:55:12 +000011312 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011315 },
11316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011317 {
11318 .vendor = "SST",
11319 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011320 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011321 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011322 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011323 .total_size = 512,
11324 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011325 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011326 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011327 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011328 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011329 .block_erasers =
11330 {
11331 {
11332 .eraseblocks = { {4 * 1024, 128} },
11333 .block_erase = erase_sector_jedec,
11334 }, {
11335 .eraseblocks = { {512 * 1024, 1} },
11336 .block_erase = erase_chip_block_jedec,
11337 }
11338 },
Sean Nelson35727f72010-01-28 23:55:12 +000011339 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011341 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011342 },
11343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011344 {
11345 .vendor = "SST",
11346 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011347 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011348 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011349 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011350 .total_size = 64,
11351 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011352 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000011353 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011354 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011355 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011356 .block_erasers =
11357 {
11358 {
11359 .eraseblocks = { {4 * 1024, 16} },
11360 .block_erase = erase_sector_jedec,
11361 }, {
11362 .eraseblocks = { {64 * 1024, 1} },
11363 .block_erase = erase_chip_block_jedec,
11364 }
11365 },
Sean Nelson35727f72010-01-28 23:55:12 +000011366 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011368 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011369 },
11370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011371 {
11372 .vendor = "SST",
11373 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011375 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011376 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011377 .total_size = 128,
11378 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011379 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000011380 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011381 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011382 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011383 .block_erasers =
11384 {
11385 {
11386 .eraseblocks = { {4 * 1024, 32} },
11387 .block_erase = erase_sector_jedec,
11388 }, {
11389 .eraseblocks = { {128 * 1024, 1} },
11390 .block_erase = erase_chip_block_jedec,
11391 }
11392 },
Sean Nelson35727f72010-01-28 23:55:12 +000011393 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011395 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011396 },
11397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011398 {
11399 .vendor = "SST",
11400 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011401 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011402 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011403 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011404 .total_size = 256,
11405 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011406 .feature_bits = FEATURE_EITHER_RESET,
11407 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011408 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011409 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011410 .block_erasers =
11411 {
11412 {
11413 .eraseblocks = { {4 * 1024, 64} },
11414 .block_erase = erase_sector_jedec,
11415 }, {
11416 .eraseblocks = { {256 * 1024, 1} },
11417 .block_erase = erase_chip_block_jedec,
11418 }
11419 },
Sean Nelson35727f72010-01-28 23:55:12 +000011420 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011421 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011422 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011423 },
11424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011425 {
11426 .vendor = "SST",
11427 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011428 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011429 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011430 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011431 .total_size = 512,
11432 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011433 .feature_bits = FEATURE_EITHER_RESET,
11434 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011435 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011436 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011437 .block_erasers =
11438 {
11439 {
11440 .eraseblocks = { {4 * 1024, 128} },
11441 .block_erase = erase_sector_jedec,
11442 }, {
11443 .eraseblocks = { {512 * 1024, 1} },
11444 .block_erase = erase_chip_block_jedec,
11445 }
11446 },
Sean Nelson35727f72010-01-28 23:55:12 +000011447 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011449 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000011450 },
FENG yu ningff692fb2008-12-08 18:15:10 +000011451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011452 {
11453 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000011454 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011455 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011456 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011457 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000011458 .total_size = 1024,
11459 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011460 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000011461 .tested = TEST_UNTESTED,
11462 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011463 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011464 .block_erasers =
11465 {
11466 {
11467 .eraseblocks = { {4 * 1024, 256} },
11468 .block_erase = erase_sector_jedec,
11469 }, {
11470 .eraseblocks = { {64 * 1024, 16} },
11471 .block_erase = erase_block_jedec,
11472 }, {
11473 .eraseblocks = { {1024 * 1024, 1} },
11474 .block_erase = erase_chip_block_jedec,
11475 }
11476 },
Sean Nelson35727f72010-01-28 23:55:12 +000011477 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011479 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000011480 },
11481
11482 {
11483 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011484 .name = "SST49LF002A/B",
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 = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011487 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011488 .total_size = 256,
11489 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011490 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011491 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011492 .probe = probe_jedec,
11493 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011494 .block_erasers =
11495 {
11496 {
11497 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011498 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011499 }, {
11500 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011501 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011502 }, {
11503 .eraseblocks = { {256 * 1024, 1} },
11504 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11505 }
11506 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011507 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011508 .unlock = unlock_sst_fwhub,
11509 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011511 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011512 },
11513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011514 {
11515 .vendor = "SST",
11516 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011517 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011518 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011519 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011520 .total_size = 384,
11521 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011522 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011523 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011524 .probe = probe_jedec,
11525 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011526 .block_erasers =
11527 {
11528 {
11529 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011530 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011531 }, {
11532 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011533 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011534 }, {
11535 .eraseblocks = { {384 * 1024, 1} },
11536 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11537 }
11538 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011539 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011540 .unlock = unlock_sst_fwhub,
11541 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011542 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011543 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011544 },
11545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011546 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011547 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
11548 * and is only honored for 64k block erase, but not 4k sector erase.
11549 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011550 .vendor = "SST",
11551 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011552 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011553 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011554 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011555 .total_size = 512,
11556 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011557 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011558 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011559 .probe = probe_jedec,
11560 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011561 .block_erasers =
11562 {
11563 {
11564 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011565 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011566 }, {
11567 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011568 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011569 }, {
11570 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011571 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011572 },
11573 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011574 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011575 .unlock = unlock_sst_fwhub,
11576 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011577 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011578 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011579 },
11580
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011581 {
11582 .vendor = "SST",
11583 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011584 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011585 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011586 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011587 .total_size = 512,
11588 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011589 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011590 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011591 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011592 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011593 .block_erasers =
11594 {
11595 {
11596 .eraseblocks = { {4 * 1024, 128} },
11597 .block_erase = erase_sector_49lfxxxc,
11598 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011599 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011600 {64 * 1024, 7},
11601 {32 * 1024, 1},
11602 {8 * 1024, 2},
11603 {16 * 1024, 1},
11604 },
Sean Nelson69e58112010-03-23 17:10:28 +000011605 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011606 }
11607 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011608 .printlock = printlock_regspace2_block_eraser_1,
11609 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011610 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011612 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011613 },
11614
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011615 {
11616 .vendor = "SST",
11617 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011618 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011619 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011620 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011621 .total_size = 1024,
11622 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011623 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011624 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011625 .probe = probe_jedec,
11626 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011627 .block_erasers =
11628 {
11629 {
11630 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011631 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011632 }, {
11633 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011634 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011635 }, {
11636 .eraseblocks = { {1024 * 1024, 1} },
11637 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11638 }
11639 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011640 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011641 .unlock = unlock_sst_fwhub,
11642 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011644 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011645 },
11646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011647 {
11648 .vendor = "SST",
11649 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011650 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011651 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011652 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011653 .total_size = 1024,
11654 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011655 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011656 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011657 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011658 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011659 .block_erasers =
11660 {
11661 {
11662 .eraseblocks = { {4 * 1024, 256} },
11663 .block_erase = erase_sector_49lfxxxc,
11664 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011665 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011666 {64 * 1024, 15},
11667 {32 * 1024, 1},
11668 {8 * 1024, 2},
11669 {16 * 1024, 1},
11670 },
Sean Nelson69e58112010-03-23 17:10:28 +000011671 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011672 }
11673 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011674 .printlock = printlock_regspace2_block_eraser_1,
11675 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011676 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011677 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011678 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011679 },
11680
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011681 {
11682 .vendor = "SST",
11683 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011684 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011685 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011686 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011687 .total_size = 2048,
11688 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011689 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011690 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011691 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011692 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011693 .block_erasers =
11694 {
11695 {
11696 .eraseblocks = { {4 * 1024, 512} },
11697 .block_erase = erase_sector_49lfxxxc,
11698 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011699 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011700 {64 * 1024, 31},
11701 {32 * 1024, 1},
11702 {8 * 1024, 2},
11703 {16 * 1024, 1},
11704 },
Sean Nelson69e58112010-03-23 17:10:28 +000011705 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011706 }
11707 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011708 .printlock = printlock_regspace2_block_eraser_1,
11709 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011710 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011711 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011712 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011713 },
11714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011715 {
11716 .vendor = "SST",
11717 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011718 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011719 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011720 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011721 .total_size = 256,
11722 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011723 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000011724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011725 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011726 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011727 .block_erasers =
11728 {
11729 {
11730 .eraseblocks = { {4 * 1024, 64} },
11731 .block_erase = erase_sector_jedec,
11732 }, {
11733 .eraseblocks = { {16 * 1024, 16} },
11734 .block_erase = erase_block_jedec,
11735 }, {
11736 .eraseblocks = { {256 * 1024, 1} },
11737 .block_erase = NULL,
11738 }
11739 },
Sean Nelson35727f72010-01-28 23:55:12 +000011740 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011741 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011742 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000011743 },
11744
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011745 {
11746 .vendor = "SST",
11747 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011748 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011749 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011750 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011751 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011752 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011753 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011754 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011755 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011756 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011757 .block_erasers =
11758 {
11759 {
11760 .eraseblocks = { {4 * 1024, 64} },
11761 .block_erase = erase_sector_jedec,
11762 }, {
11763 .eraseblocks = { {16 * 1024, 16} },
11764 .block_erase = erase_block_jedec,
11765 }, {
11766 .eraseblocks = { {256 * 1024, 1} },
11767 .block_erase = NULL,
11768 }
11769 },
Sean Nelson35727f72010-01-28 23:55:12 +000011770 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011772 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011773 },
11774
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011775 {
11776 .vendor = "SST",
11777 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011778 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011779 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011780 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011781 .total_size = 512,
11782 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011783 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011784 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011785 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011786 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011787 .block_erasers =
11788 {
11789 {
11790 .eraseblocks = { {4 * 1024, 128} },
11791 .block_erase = erase_sector_jedec,
11792 }, {
11793 .eraseblocks = { {64 * 1024, 8} },
11794 .block_erase = erase_block_jedec,
11795 }, {
11796 .eraseblocks = { {512 * 1024, 1} },
11797 .block_erase = NULL,
11798 }
11799 },
Sean Nelson35727f72010-01-28 23:55:12 +000011800 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011802 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011803 },
11804
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011805 {
11806 .vendor = "SST",
11807 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011808 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011809 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011810 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011811 .total_size = 512,
11812 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011813 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011814 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011815 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011816 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011817 .block_erasers =
11818 {
11819 {
11820 .eraseblocks = { {4 * 1024, 128} },
11821 .block_erase = erase_sector_jedec,
11822 }, {
11823 .eraseblocks = { {64 * 1024, 8} },
11824 .block_erase = erase_block_jedec,
11825 }, {
11826 .eraseblocks = { {512 * 1024, 1} },
11827 .block_erase = NULL,
11828 }
11829 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011830 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000011831 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011832 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011833 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011834 },
11835
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011836 {
11837 .vendor = "SST",
11838 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011839 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011840 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011841 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011842 .total_size = 1024,
11843 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011844 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011845 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011846 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011847 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011848 .block_erasers =
11849 {
11850 {
11851 .eraseblocks = { {4 * 1024, 256} },
11852 .block_erase = erase_sector_jedec,
11853 }, {
11854 .eraseblocks = { {64 * 1024, 16} },
11855 .block_erase = erase_block_jedec,
11856 }, {
11857 .eraseblocks = { {1024 * 1024, 1} },
11858 .block_erase = NULL,
11859 }
11860 },
Sean Nelson35727f72010-01-28 23:55:12 +000011861 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011862 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011863 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011864 },
11865
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011866 {
11867 .vendor = "SST",
11868 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011869 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011870 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011871 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011872 .total_size = 2048,
11873 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011874 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011875 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011876 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011877 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011878 .block_erasers =
11879 {
11880 {
11881 .eraseblocks = { {4 * 1024, 512} },
11882 .block_erase = erase_sector_49lfxxxc,
11883 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011884 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011885 {64 * 1024, 31},
11886 {32 * 1024, 1},
11887 {8 * 1024, 2},
11888 {16 * 1024, 1},
11889 },
Sean Nelson69e58112010-03-23 17:10:28 +000011890 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011891 }
11892 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011893 .printlock = printlock_regspace2_block_eraser_1,
11894 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011895 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011897 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011898 },
11899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011900 {
11901 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011902 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011903 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011904 .manufacture_id = ST_ID,
11905 .model_id = ST_M29F002B,
11906 .total_size = 256,
11907 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011908 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011909 .tested = TEST_UNTESTED,
11910 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011911 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011912 .block_erasers =
11913 {
11914 {
11915 .eraseblocks = {
11916 {16 * 1024, 1},
11917 {8 * 1024, 2},
11918 {32 * 1024, 1},
11919 {64 * 1024, 3},
11920 },
11921 .block_erase = erase_sector_jedec,
11922 }, {
11923 .eraseblocks = { {256 * 1024, 1} },
11924 .block_erase = erase_chip_block_jedec,
11925 }
11926 },
Sean Nelson35727f72010-01-28 23:55:12 +000011927 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011928 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011929 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011930 },
11931
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011932 {
11933 .vendor = "ST",
11934 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011935 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011936 .manufacture_id = ST_ID,
11937 .model_id = ST_M29F002T,
11938 .total_size = 256,
11939 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011940 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011941 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011942 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011943 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011944 .block_erasers =
11945 {
11946 {
11947 .eraseblocks = {
11948 {64 * 1024, 3},
11949 {32 * 1024, 1},
11950 {8 * 1024, 2},
11951 {16 * 1024, 1},
11952 },
11953 .block_erase = erase_sector_jedec,
11954 }, {
11955 .eraseblocks = { {256 * 1024, 1} },
11956 .block_erase = erase_chip_block_jedec,
11957 }
11958 },
Sean Nelson35727f72010-01-28 23:55:12 +000011959 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011960 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011961 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011962 },
11963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011964 {
11965 .vendor = "ST",
11966 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011967 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011968 .manufacture_id = ST_ID,
11969 .model_id = ST_M29F040B,
11970 .total_size = 512,
11971 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011972 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11973 .tested = TEST_UNTESTED,
11974 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011975 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011976 .block_erasers =
11977 {
11978 {
11979 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011980 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011981 }, {
11982 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011983 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011984 }
11985 },
Sean Nelson35727f72010-01-28 23:55:12 +000011986 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011988 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011989 },
11990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011991 {
Sean Nelson35727f72010-01-28 23:55:12 +000011992 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011993 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011994 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011995 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011996 .manufacture_id = ST_ID,
11997 .model_id = ST_M29F400BB,
11998 .total_size = 512,
11999 .page_size = 64 * 1024,
12000 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012001 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012002 .probe = probe_m29f400bt,
12003 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
12004 .block_erasers =
12005 {
12006 {
12007 .eraseblocks = {
12008 {16 * 1024, 1},
12009 {8 * 1024, 2},
12010 {32 * 1024, 1},
12011 {64 * 1024, 7},
12012 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000012013 .block_erase = erase_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012014 }, {
12015 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000012016 .block_erase = erase_chip_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012017 }
12018 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012019 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012020 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012021 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012022 },
12023 {
12024 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
12025 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012026 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012027 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012028 .manufacture_id = ST_ID,
12029 .model_id = ST_M29F400BT,
12030 .total_size = 512,
12031 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012032 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012033 .tested = TEST_UNTESTED,
12034 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012035 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012036 .block_erasers =
12037 {
12038 {
12039 .eraseblocks = {
12040 {64 * 1024, 7},
12041 {32 * 1024, 1},
12042 {8 * 1024, 2},
12043 {16 * 1024, 1},
12044 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000012045 .block_erase = erase_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012046 }, {
12047 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000012048 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012049 }
12050 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012051 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012052 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012053 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012054 },
12055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012056 {
12057 .vendor = "ST",
12058 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012059 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012060 .manufacture_id = ST_ID,
12061 .model_id = ST_M29W010B,
12062 .total_size = 128,
12063 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012064 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012065 .tested = TEST_UNTESTED,
12066 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012067 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012068 .block_erasers =
12069 {
12070 {
12071 .eraseblocks = { {16 * 1024, 8}, },
12072 .block_erase = erase_sector_jedec,
12073 }, {
12074 .eraseblocks = { {128 * 1024, 1} },
12075 .block_erase = erase_chip_block_jedec,
12076 }
12077 },
Sean Nelson35727f72010-01-28 23:55:12 +000012078 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012080 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012081 },
12082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012083 {
12084 .vendor = "ST",
12085 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012086 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012087 .manufacture_id = ST_ID,
12088 .model_id = ST_M29W040B,
12089 .total_size = 512,
12090 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012091 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012092 .tested = TEST_UNTESTED,
12093 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012094 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012095 .block_erasers =
12096 {
12097 {
12098 .eraseblocks = { {64 * 1024, 8}, },
12099 .block_erase = erase_sector_jedec,
12100 }, {
12101 .eraseblocks = { {512 * 1024, 1} },
12102 .block_erase = erase_chip_block_jedec,
12103 }
12104 },
Sean Nelson35727f72010-01-28 23:55:12 +000012105 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012107 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012108 },
12109
Stefan Taunereb582572012-09-21 12:52:50 +000012110 {
12111 .vendor = "ST",
12112 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012113 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000012114 .manufacture_id = ST_ID,
12115 .model_id = ST_M29W512B,
12116 .total_size = 64,
12117 .page_size = 64 * 1024,
12118 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012119 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000012120 .probe = probe_jedec,
12121 .probe_timing = TIMING_ZERO,
12122 .block_erasers =
12123 {
12124 {
12125 .eraseblocks = { {64 * 1024, 1} },
12126 .block_erase = erase_chip_block_jedec,
12127 }
12128 },
12129 .write = write_jedec_1,
12130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012131 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000012132 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000012133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012134 {
12135 .vendor = "ST",
12136 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012137 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012138 .manufacture_id = ST_ID,
12139 .model_id = ST_M50FLW040A,
12140 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012141 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012142 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012143 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012144 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012145 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012146 .block_erasers =
12147 {
12148 {
Sean Nelson329bde72010-01-19 16:39:19 +000012149 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012150 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012151 {64 * 1024, 5}, /* block */
12152 {4 * 1024, 16}, /* sector */
12153 {4 * 1024, 16}, /* sector */
12154 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012155 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012156 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000012157 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000012158 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012159 }
12160 },
Sean Nelson28accc22010-03-19 18:47:06 +000012161 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012162 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012164 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012165 },
12166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012167 {
12168 .vendor = "ST",
12169 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012170 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012171 .manufacture_id = ST_ID,
12172 .model_id = ST_M50FLW040B,
12173 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012174 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012175 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012176 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012177 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012178 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012179 .block_erasers =
12180 {
12181 {
Sean Nelson329bde72010-01-19 16:39:19 +000012182 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012183 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012184 {4 * 1024, 16}, /* sector */
12185 {64 * 1024, 5}, /* block */
12186 {4 * 1024, 16}, /* sector */
12187 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012188 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012189 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000012190 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000012191 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012192 }
12193 },
Sean Nelson28accc22010-03-19 18:47:06 +000012194 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012195 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012197 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012198 },
12199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012200 {
12201 .vendor = "ST",
12202 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012203 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012204 .manufacture_id = ST_ID,
12205 .model_id = ST_M50FLW080A,
12206 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012207 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012208 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012209 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012210 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012211 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012212 .block_erasers =
12213 {
12214 {
Sean Nelson329bde72010-01-19 16:39:19 +000012215 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012216 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012217 {64 * 1024, 13}, /* block */
12218 {4 * 1024, 16}, /* sector */
12219 {4 * 1024, 16}, /* sector */
12220 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012221 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012222 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000012223 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000012224 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012225 }
12226 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012227 .printlock = printlock_regspace2_block_eraser_0,
12228 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012229 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012230 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012231 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012232 },
12233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012234 {
12235 .vendor = "ST",
12236 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012237 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012238 .manufacture_id = ST_ID,
12239 .model_id = ST_M50FLW080B,
12240 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012241 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012242 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012243 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012244 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012245 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012246 .block_erasers =
12247 {
12248 {
Sean Nelson329bde72010-01-19 16:39:19 +000012249 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012250 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012251 {4 * 1024, 16}, /* sector */
12252 {64 * 1024, 13}, /* block */
12253 {4 * 1024, 16}, /* sector */
12254 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012255 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012256 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000012257 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000012258 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012259 }
12260 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012261 .printlock = printlock_regspace2_block_eraser_0,
12262 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012263 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012265 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012266 },
12267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012268 {
12269 .vendor = "ST",
12270 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012271 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012272 .manufacture_id = ST_ID,
12273 .model_id = ST_M50FW002,
12274 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000012275 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012276 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012277 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012278 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012279 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012280 .block_erasers =
12281 {
12282 {
12283 .eraseblocks = {
12284 {64 * 1024, 3},
12285 {32 * 1024, 1},
12286 {8 * 1024, 2},
12287 {16 * 1024, 1},
12288 },
Sean Nelson28accc22010-03-19 18:47:06 +000012289 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012290 }, {
12291 .eraseblocks = { {256 * 1024, 1}, },
12292 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000012293 }
12294 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012295 .printlock = printlock_regspace2_block_eraser_0,
12296 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012297 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012298 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012299 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012300 },
12301
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012302 {
12303 .vendor = "ST",
12304 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012305 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012306 .manufacture_id = ST_ID,
12307 .model_id = ST_M50FW016,
12308 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012309 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012310 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012311 .tested = TEST_UNTESTED,
12312 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012313 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012314 .block_erasers =
12315 {
12316 {
12317 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000012318 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012319 }
12320 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012321 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012322 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012323 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012324 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012325 },
12326
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012327 {
12328 .vendor = "ST",
12329 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012330 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012331 .manufacture_id = ST_ID,
12332 .model_id = ST_M50FW040,
12333 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012334 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012335 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000012336 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012337 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012338 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012339 .block_erasers =
12340 {
12341 {
12342 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000012343 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012344 }
12345 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012346 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012347 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012349 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012350 },
12351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012352 {
12353 .vendor = "ST",
12354 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012355 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012356 .manufacture_id = ST_ID,
12357 .model_id = ST_M50FW080,
12358 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012359 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012360 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012361 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012362 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012363 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012364 .block_erasers =
12365 {
12366 {
12367 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000012368 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012369 }
12370 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012371 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012372 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012374 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012375 },
12376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012377 {
12378 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012379 .name = "M50LPW080",
12380 .bustype = BUS_LPC, /* A/A Mux */
12381 .manufacture_id = ST_ID,
12382 .model_id = ST_M50LPW080,
12383 .total_size = 1024,
12384 .page_size = 0,
12385 .feature_bits = FEATURE_REGISTERMAP,
12386 .tested = TEST_UNTESTED,
12387 .probe = probe_82802ab,
12388 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12389 .block_erasers =
12390 {
12391 {
12392 .eraseblocks = { {64 * 1024, 16}, },
12393 .block_erase = erase_block_82802ab,
12394 }
12395 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012396 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012397 .write = write_82802ab,
12398 .read = read_memmapped,
12399 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
12400 },
12401
12402 {
12403 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012404 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012405 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012406 .manufacture_id = ST_ID,
12407 .model_id = ST_M50LPW116,
12408 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012409 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012410 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012411 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012412 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000012413 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012414 .block_erasers =
12415 {
12416 {
12417 .eraseblocks = {
12418 {4 * 1024, 16},
12419 {64 * 1024, 30},
12420 {32 * 1024, 1},
12421 {8 * 1024, 2},
12422 {16 * 1024, 1},
12423 },
Sean Nelson28accc22010-03-19 18:47:06 +000012424 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012425 }
12426 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012427 .printlock = printlock_regspace2_block_eraser_0,
12428 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012429 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012431 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012432 },
12433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012434 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012435 .vendor = "SyncMOS/MoselVitelic",
12436 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012437 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012438 .manufacture_id = SYNCMOS_MVC_ID,
12439 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012440 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012441 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012442 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012443 .tested = TEST_UNTESTED,
12444 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012445 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012446 .block_erasers =
12447 {
12448 {
12449 .eraseblocks = { {512, 256} },
12450 .block_erase = erase_sector_jedec,
12451 }, {
12452 .eraseblocks = { {128 * 1024, 1} },
12453 .block_erase = erase_chip_block_jedec,
12454 },
12455 },
Sean Nelson35727f72010-01-28 23:55:12 +000012456 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012458 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012459 },
12460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012461 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012462 .vendor = "SyncMOS/MoselVitelic",
12463 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012464 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012465 .manufacture_id = SYNCMOS_MVC_ID,
12466 .model_id = SM_MVC_29C51001T,
12467 .total_size = 128,
12468 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012469 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012470 .tested = TEST_UNTESTED,
12471 .probe = probe_jedec,
12472 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12473 .block_erasers =
12474 {
12475 {
12476 .eraseblocks = { {512, 256} },
12477 .block_erase = erase_sector_jedec,
12478 }, {
12479 .eraseblocks = { {128 * 1024, 1} },
12480 .block_erase = erase_chip_block_jedec,
12481 },
12482 },
12483 .write = write_jedec_1,
12484 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012485 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012486 },
12487
12488 {
12489 .vendor = "SyncMOS/MoselVitelic",
12490 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012491 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012492 .manufacture_id = SYNCMOS_MVC_ID,
12493 .model_id = SM_MVC_29C51002B,
12494 .total_size = 256,
12495 .page_size = 512,
12496 .feature_bits = FEATURE_EITHER_RESET,
12497 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012498 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012499 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012500 .block_erasers =
12501 {
12502 {
12503 .eraseblocks = { {512, 512} },
12504 .block_erase = erase_sector_jedec,
12505 }, {
12506 .eraseblocks = { {256 * 1024, 1} },
12507 .block_erase = erase_chip_block_jedec,
12508 },
12509 },
Sean Nelson35727f72010-01-28 23:55:12 +000012510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012511 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012512 },
12513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012514 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012515 .vendor = "SyncMOS/MoselVitelic",
12516 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012517 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012518 .manufacture_id = SYNCMOS_MVC_ID,
12519 .model_id = SM_MVC_29C51002T,
12520 .total_size = 256,
12521 .page_size = 512,
12522 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012523 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012524 .probe = probe_jedec,
12525 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12526 .block_erasers =
12527 {
12528 {
12529 .eraseblocks = { {512, 512} },
12530 .block_erase = erase_sector_jedec,
12531 }, {
12532 .eraseblocks = { {256 * 1024, 1} },
12533 .block_erase = erase_chip_block_jedec,
12534 },
12535 },
12536 .write = write_jedec_1,
12537 .read = read_memmapped,
12538 },
12539
12540 {
12541 .vendor = "SyncMOS/MoselVitelic",
12542 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012543 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012544 .manufacture_id = SYNCMOS_MVC_ID,
12545 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012546 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012547 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012548 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012549 .tested = TEST_UNTESTED,
12550 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012551 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000012552 .block_erasers =
12553 {
12554 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012555 .eraseblocks = { {1024, 512} },
12556 .block_erase = erase_sector_jedec,
12557 }, {
12558 .eraseblocks = { {512 * 1024, 1} },
12559 .block_erase = erase_chip_block_jedec,
12560 },
12561 },
12562 .write = write_jedec_1,
12563 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012564 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012565 },
12566
12567 {
12568 .vendor = "SyncMOS/MoselVitelic",
12569 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012570 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012571 .manufacture_id = SYNCMOS_MVC_ID,
12572 .model_id = SM_MVC_29C51004T,
12573 .total_size = 512,
12574 .page_size = 1024,
12575 .feature_bits = FEATURE_EITHER_RESET,
12576 .tested = TEST_UNTESTED,
12577 .probe = probe_jedec,
12578 .probe_timing = TIMING_ZERO,
12579 .block_erasers =
12580 {
12581 {
12582 .eraseblocks = { {1024, 512} },
12583 .block_erase = erase_sector_jedec,
12584 }, {
12585 .eraseblocks = { {512 * 1024, 1} },
12586 .block_erase = erase_chip_block_jedec,
12587 },
12588 },
12589 .write = write_jedec_1,
12590 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012591 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012592 },
12593
12594 {
12595 .vendor = "SyncMOS/MoselVitelic",
12596 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012597 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012598 .manufacture_id = SYNCMOS_MVC_ID,
12599 .model_id = SM_MVC_29C31004B,
12600 .total_size = 512,
12601 .page_size = 1024,
12602 .feature_bits = FEATURE_EITHER_RESET,
12603 .tested = TEST_UNTESTED,
12604 .probe = probe_jedec,
12605 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12606 .block_erasers =
12607 {
12608 {
12609 .eraseblocks = { {1024, 512} },
12610 .block_erase = erase_sector_jedec,
12611 }, {
12612 .eraseblocks = { {512 * 1024, 1} },
12613 .block_erase = erase_chip_block_jedec,
12614 },
12615 },
12616 .write = write_jedec_1,
12617 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012618 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012619 },
12620
12621 {
12622 .vendor = "SyncMOS/MoselVitelic",
12623 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012624 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012625 .manufacture_id = SYNCMOS_MVC_ID,
12626 .model_id = SM_MVC_29C31004T,
12627 .total_size = 512,
12628 .page_size = 1024,
12629 .feature_bits = FEATURE_EITHER_RESET,
12630 .tested = TEST_UNTESTED,
12631 .probe = probe_jedec,
12632 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12633 .block_erasers =
12634 {
12635 {
12636 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012637 .block_erase = erase_sector_jedec,
12638 }, {
12639 .eraseblocks = { {512 * 1024, 1} },
12640 .block_erase = erase_chip_block_jedec,
12641 },
12642 },
Sean Nelson35727f72010-01-28 23:55:12 +000012643 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012644 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012645 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012646 },
12647
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012648 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012649 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012650 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012651 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012652 .manufacture_id = TI_OLD_ID,
12653 .model_id = TI_TMS29F002RB,
12654 .total_size = 256,
12655 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012656 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012657 .tested = TEST_UNTESTED,
12658 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012659 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012660 .block_erasers =
12661 {
12662 {
12663 .eraseblocks = {
12664 {16 * 1024, 1},
12665 {8 * 1024, 2},
12666 {32 * 1024, 1},
12667 {64 * 1024, 3},
12668 },
12669 .block_erase = erase_sector_jedec,
12670 }, {
12671 .eraseblocks = { {256 * 1024, 1} },
12672 .block_erase = erase_chip_block_jedec,
12673 },
12674 },
Sean Nelson35727f72010-01-28 23:55:12 +000012675 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012676 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012677 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012678 },
12679
12680 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012681 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012682 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012683 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012684 .manufacture_id = TI_OLD_ID,
12685 .model_id = TI_TMS29F002RT,
12686 .total_size = 256,
12687 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012688 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012689 .tested = TEST_UNTESTED,
12690 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012691 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012692 .block_erasers =
12693 {
12694 {
12695 .eraseblocks = {
12696 {64 * 1024, 3},
12697 {32 * 1024, 1},
12698 {8 * 1024, 2},
12699 {16 * 1024, 1},
12700 },
12701 .block_erase = erase_sector_jedec,
12702 }, {
12703 .eraseblocks = { {256 * 1024, 1} },
12704 .block_erase = erase_chip_block_jedec,
12705 },
12706 },
Sean Nelson35727f72010-01-28 23:55:12 +000012707 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012709 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012710 },
12711
12712 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012713 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012714 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012715 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012716 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012717 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012718 .total_size = 1024,
12719 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012720 /* supports SFDP */
12721 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012722 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012723 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012724 .probe = probe_spi_rdid,
12725 .probe_timing = TIMING_ZERO,
12726 .block_erasers =
12727 {
12728 {
12729 .eraseblocks = { {4 * 1024, 256} },
12730 .block_erase = spi_block_erase_20,
12731 }, {
12732 .eraseblocks = { {32 * 1024, 32} },
12733 .block_erase = spi_block_erase_52,
12734 }, {
12735 .eraseblocks = { {64 * 1024, 16} },
12736 .block_erase = spi_block_erase_d8,
12737 }, {
12738 .eraseblocks = { {1024 * 1024, 1} },
12739 .block_erase = spi_block_erase_60,
12740 }, {
12741 .eraseblocks = { {1024 * 1024, 1} },
12742 .block_erase = spi_block_erase_c7,
12743 }
12744 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012745 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012746 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012747 .write = spi_chip_write_256,
12748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012749 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012750 },
12751
12752 {
12753 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012754 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012755 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012756 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012757 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012758 .total_size = 2048,
12759 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012760 /* supports SFDP */
12761 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012762 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000012763 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012764 .probe = probe_spi_rdid,
12765 .probe_timing = TIMING_ZERO,
12766 .block_erasers =
12767 {
12768 {
12769 .eraseblocks = { {4 * 1024, 512} },
12770 .block_erase = spi_block_erase_20,
12771 }, {
12772 .eraseblocks = { {32 * 1024, 64} },
12773 .block_erase = spi_block_erase_52,
12774 }, {
12775 .eraseblocks = { {64 * 1024, 32} },
12776 .block_erase = spi_block_erase_d8,
12777 }, {
12778 .eraseblocks = { {2 * 1024 * 1024, 1} },
12779 .block_erase = spi_block_erase_60,
12780 }, {
12781 .eraseblocks = { {2 * 1024 * 1024, 1} },
12782 .block_erase = spi_block_erase_c7,
12783 }
12784 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012785 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012786 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012787 .write = spi_chip_write_256,
12788 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012789 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012790 },
12791
12792 {
12793 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012794 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012795 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012796 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012797 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012798 .total_size = 4096,
12799 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012800 /* supports SFDP */
12801 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012802 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012803 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012804 .probe = probe_spi_rdid,
12805 .probe_timing = TIMING_ZERO,
12806 .block_erasers =
12807 {
12808 {
12809 .eraseblocks = { {4 * 1024, 1024} },
12810 .block_erase = spi_block_erase_20,
12811 }, {
12812 .eraseblocks = { {32 * 1024, 128} },
12813 .block_erase = spi_block_erase_52,
12814 }, {
12815 .eraseblocks = { {64 * 1024, 64} },
12816 .block_erase = spi_block_erase_d8,
12817 }, {
12818 .eraseblocks = { {4 * 1024 * 1024, 1} },
12819 .block_erase = spi_block_erase_60,
12820 }, {
12821 .eraseblocks = { {4 * 1024 * 1024, 1} },
12822 .block_erase = spi_block_erase_c7,
12823 }
12824 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012825 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012826 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012827 .write = spi_chip_write_256,
12828 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012829 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012830 },
12831
12832 {
12833 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012834 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012835 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012836 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012837 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012838 .total_size = 8192,
12839 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012840 /* supports SFDP */
12841 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012842 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012843 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012844 .probe = probe_spi_rdid,
12845 .probe_timing = TIMING_ZERO,
12846 .block_erasers =
12847 {
12848 {
12849 .eraseblocks = { {4 * 1024, 2048} },
12850 .block_erase = spi_block_erase_20,
12851 }, {
12852 .eraseblocks = { {32 * 1024, 256} },
12853 .block_erase = spi_block_erase_52,
12854 }, {
12855 .eraseblocks = { {64 * 1024, 128} },
12856 .block_erase = spi_block_erase_d8,
12857 }, {
12858 .eraseblocks = { {8 * 1024 * 1024, 1} },
12859 .block_erase = spi_block_erase_60,
12860 }, {
12861 .eraseblocks = { {8 * 1024 * 1024, 1} },
12862 .block_erase = spi_block_erase_c7,
12863 }
12864 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012865 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012866 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012867 .write = spi_chip_write_256,
12868 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012869 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012870 },
12871
12872 {
12873 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012874 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012875 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012876 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012877 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012878 .total_size = 16384,
12879 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012880 /* supports SFDP */
12881 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012882 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012883 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012884 .probe = probe_spi_rdid,
12885 .probe_timing = TIMING_ZERO,
12886 .block_erasers =
12887 {
12888 {
12889 .eraseblocks = { {4 * 1024, 4096} },
12890 .block_erase = spi_block_erase_20,
12891 }, {
12892 .eraseblocks = { {32 * 1024, 512} },
12893 .block_erase = spi_block_erase_52,
12894 }, {
12895 .eraseblocks = { {64 * 1024, 256} },
12896 .block_erase = spi_block_erase_d8,
12897 }, {
12898 .eraseblocks = { {16 * 1024 * 1024, 1} },
12899 .block_erase = spi_block_erase_60,
12900 }, {
12901 .eraseblocks = { {16 * 1024 * 1024, 1} },
12902 .block_erase = spi_block_erase_c7,
12903 }
12904 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012905 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012906 .unlock = spi_disable_blockprotect,
12907 .write = spi_chip_write_256,
12908 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012909 .voltage = {2700, 3600},
12910 },
12911
12912 {
12913 .vendor = "Winbond",
12914 .name = "W25Q20.W",
12915 .bustype = BUS_SPI,
12916 .manufacture_id = WINBOND_NEX_ID,
12917 .model_id = WINBOND_NEX_W25Q20_W,
12918 .total_size = 256,
12919 .page_size = 256,
12920 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12922 .tested = TEST_UNTESTED,
12923 .probe = probe_spi_rdid,
12924 .probe_timing = TIMING_ZERO,
12925 .block_erasers =
12926 {
12927 {
12928 .eraseblocks = { {4 * 1024, 64} },
12929 .block_erase = spi_block_erase_20,
12930 }, {
12931 .eraseblocks = { {32 * 1024, 8} },
12932 .block_erase = spi_block_erase_52,
12933 }, {
12934 .eraseblocks = { {64 * 1024, 4} },
12935 .block_erase = spi_block_erase_d8,
12936 }, {
12937 .eraseblocks = { {256 * 1024, 1} },
12938 .block_erase = spi_block_erase_60,
12939 }, {
12940 .eraseblocks = { {256 * 1024, 1} },
12941 .block_erase = spi_block_erase_c7,
12942 }
12943 },
12944 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12945 .unlock = spi_disable_blockprotect,
12946 .write = spi_chip_write_256,
12947 .read = spi_chip_read,
12948 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12949 },
12950
12951 {
12952 .vendor = "Winbond",
12953 .name = "W25Q40.W",
12954 .bustype = BUS_SPI,
12955 .manufacture_id = WINBOND_NEX_ID,
12956 .model_id = WINBOND_NEX_W25Q40_W,
12957 .total_size = 512,
12958 .page_size = 256,
12959 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12960 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12961 .tested = TEST_UNTESTED,
12962 .probe = probe_spi_rdid,
12963 .probe_timing = TIMING_ZERO,
12964 .block_erasers =
12965 {
12966 {
12967 .eraseblocks = { {4 * 1024, 128} },
12968 .block_erase = spi_block_erase_20,
12969 }, {
12970 .eraseblocks = { {32 * 1024, 16} },
12971 .block_erase = spi_block_erase_52,
12972 }, {
12973 .eraseblocks = { {64 * 1024, 8} },
12974 .block_erase = spi_block_erase_d8,
12975 }, {
12976 .eraseblocks = { {512 * 1024, 1} },
12977 .block_erase = spi_block_erase_60,
12978 }, {
12979 .eraseblocks = { {512 * 1024, 1} },
12980 .block_erase = spi_block_erase_c7,
12981 }
12982 },
12983 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12984 .unlock = spi_disable_blockprotect,
12985 .write = spi_chip_write_256,
12986 .read = spi_chip_read,
12987 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12988 },
12989
12990 {
12991 .vendor = "Winbond",
12992 .name = "W25Q80.W",
12993 .bustype = BUS_SPI,
12994 .manufacture_id = WINBOND_NEX_ID,
12995 .model_id = WINBOND_NEX_W25Q80_W,
12996 .total_size = 1024,
12997 .page_size = 256,
12998 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12999 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13000 .tested = TEST_UNTESTED,
13001 .probe = probe_spi_rdid,
13002 .probe_timing = TIMING_ZERO,
13003 .block_erasers =
13004 {
13005 {
13006 .eraseblocks = { {4 * 1024, 256} },
13007 .block_erase = spi_block_erase_20,
13008 }, {
13009 .eraseblocks = { {32 * 1024, 32} },
13010 .block_erase = spi_block_erase_52,
13011 }, {
13012 .eraseblocks = { {64 * 1024, 16} },
13013 .block_erase = spi_block_erase_d8,
13014 }, {
13015 .eraseblocks = { {1 * 1024 * 1024, 1} },
13016 .block_erase = spi_block_erase_60,
13017 }, {
13018 .eraseblocks = { {1 * 1024 * 1024, 1} },
13019 .block_erase = spi_block_erase_c7,
13020 }
13021 },
13022 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13023 .unlock = spi_disable_blockprotect,
13024 .write = spi_chip_write_256,
13025 .read = spi_chip_read,
13026 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13027 },
13028
13029 {
13030 .vendor = "Winbond",
13031 .name = "W25Q16.W",
13032 .bustype = BUS_SPI,
13033 .manufacture_id = WINBOND_NEX_ID,
13034 .model_id = WINBOND_NEX_W25Q16_W,
13035 .total_size = 2048,
13036 .page_size = 256,
13037 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13038 /* QPI enable 0x38, disable 0xFF */
13039 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13040 .tested = TEST_UNTESTED,
13041 .probe = probe_spi_rdid,
13042 .probe_timing = TIMING_ZERO,
13043 .block_erasers =
13044 {
13045 {
13046 .eraseblocks = { {4 * 1024, 512} },
13047 .block_erase = spi_block_erase_20,
13048 }, {
13049 .eraseblocks = { {32 * 1024, 64} },
13050 .block_erase = spi_block_erase_52,
13051 }, {
13052 .eraseblocks = { {64 * 1024, 32} },
13053 .block_erase = spi_block_erase_d8,
13054 }, {
13055 .eraseblocks = { {2 * 1024 * 1024, 1} },
13056 .block_erase = spi_block_erase_60,
13057 }, {
13058 .eraseblocks = { {2 * 1024 * 1024, 1} },
13059 .block_erase = spi_block_erase_c7,
13060 }
13061 },
13062 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13063 .unlock = spi_disable_blockprotect,
13064 .write = spi_chip_write_256,
13065 .read = spi_chip_read,
13066 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13067 },
13068
13069 {
13070 .vendor = "Winbond",
13071 .name = "W25Q32.W",
13072 .bustype = BUS_SPI,
13073 .manufacture_id = WINBOND_NEX_ID,
13074 .model_id = WINBOND_NEX_W25Q32_W,
13075 .total_size = 4096,
13076 .page_size = 256,
13077 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13078 /* QPI enable 0x38, disable 0xFF */
13079 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13080 .tested = TEST_OK_PREW,
13081 .probe = probe_spi_rdid,
13082 .probe_timing = TIMING_ZERO,
13083 .block_erasers =
13084 {
13085 {
13086 .eraseblocks = { {4 * 1024, 1024} },
13087 .block_erase = spi_block_erase_20,
13088 }, {
13089 .eraseblocks = { {32 * 1024, 128} },
13090 .block_erase = spi_block_erase_52,
13091 }, {
13092 .eraseblocks = { {64 * 1024, 64} },
13093 .block_erase = spi_block_erase_d8,
13094 }, {
13095 .eraseblocks = { {4 * 1024 * 1024, 1} },
13096 .block_erase = spi_block_erase_60,
13097 }, {
13098 .eraseblocks = { {4 * 1024 * 1024, 1} },
13099 .block_erase = spi_block_erase_c7,
13100 }
13101 },
13102 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13103 .unlock = spi_disable_blockprotect,
13104 .write = spi_chip_write_256,
13105 .read = spi_chip_read,
13106 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13107 },
13108
13109 {
13110 .vendor = "Winbond",
13111 .name = "W25Q64.W",
13112 .bustype = BUS_SPI,
13113 .manufacture_id = WINBOND_NEX_ID,
13114 .model_id = WINBOND_NEX_W25Q64_W,
13115 .total_size = 8192,
13116 .page_size = 256,
13117 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13118 /* QPI enable 0x38, disable 0xFF */
13119 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013120 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013121 .probe = probe_spi_rdid,
13122 .probe_timing = TIMING_ZERO,
13123 .block_erasers =
13124 {
13125 {
13126 .eraseblocks = { {4 * 1024, 2048} },
13127 .block_erase = spi_block_erase_20,
13128 }, {
13129 .eraseblocks = { {32 * 1024, 256} },
13130 .block_erase = spi_block_erase_52,
13131 }, {
13132 .eraseblocks = { {64 * 1024, 128} },
13133 .block_erase = spi_block_erase_d8,
13134 }, {
13135 .eraseblocks = { {8 * 1024 * 1024, 1} },
13136 .block_erase = spi_block_erase_60,
13137 }, {
13138 .eraseblocks = { {8 * 1024 * 1024, 1} },
13139 .block_erase = spi_block_erase_c7,
13140 }
13141 },
13142 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13143 .unlock = spi_disable_blockprotect,
13144 .write = spi_chip_write_256,
13145 .read = spi_chip_read,
13146 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013147 },
13148
13149 {
13150 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013151 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013152 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013153 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013154 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013155 .total_size = 128,
13156 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013157 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013158 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013159 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013160 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013161 .block_erasers =
13162 {
13163 {
13164 .eraseblocks = { {4 * 1024, 32} },
13165 .block_erase = spi_block_erase_20,
13166 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013167 .eraseblocks = { {64 * 1024, 2} },
13168 .block_erase = spi_block_erase_d8,
13169 }, {
13170 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013171 .block_erase = spi_block_erase_c7,
13172 }
13173 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013175 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013176 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013177 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013178 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013179 },
13180
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013181 {
13182 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013183 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013184 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013185 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013186 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013187 .total_size = 256,
13188 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013189 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013190 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013191 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013192 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013193 .block_erasers =
13194 {
13195 {
13196 .eraseblocks = { {4 * 1024, 64} },
13197 .block_erase = spi_block_erase_20,
13198 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013199 .eraseblocks = { {64 * 1024, 4} },
13200 .block_erase = spi_block_erase_d8,
13201 }, {
13202 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013203 .block_erase = spi_block_erase_c7,
13204 }
13205 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013206 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013207 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013208 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013209 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013210 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013211 },
13212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013213 {
13214 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013215 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013216 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013217 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013218 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013219 .total_size = 512,
13220 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013221 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000013222 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013224 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013225 .block_erasers =
13226 {
13227 {
13228 .eraseblocks = { {4 * 1024, 128} },
13229 .block_erase = spi_block_erase_20,
13230 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013231 .eraseblocks = { {64 * 1024, 8} },
13232 .block_erase = spi_block_erase_d8,
13233 }, {
13234 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013235 .block_erase = spi_block_erase_c7,
13236 }
13237 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013239 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013240 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013242 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013243 },
13244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013245 {
13246 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013247 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013248 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013249 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013250 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013251 .total_size = 1024,
13252 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013253 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000013254 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013255 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013256 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013257 .block_erasers =
13258 {
13259 {
13260 .eraseblocks = { {4 * 1024, 256} },
13261 .block_erase = spi_block_erase_20,
13262 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013263 .eraseblocks = { {64 * 1024, 16} },
13264 .block_erase = spi_block_erase_d8,
13265 }, {
13266 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013267 .block_erase = spi_block_erase_c7,
13268 }
13269 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013270 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013271 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013272 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013273 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013274 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013275 },
13276
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013277 {
13278 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013279 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013280 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000013281 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013282 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000013283 .total_size = 2048,
13284 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013285 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000013286 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000013287 .probe = probe_spi_rdid,
13288 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013289 .block_erasers =
13290 {
13291 {
13292 .eraseblocks = { {4 * 1024, 512} },
13293 .block_erase = spi_block_erase_20,
13294 }, {
13295 .eraseblocks = { {32 * 1024, 64} },
13296 .block_erase = spi_block_erase_52,
13297 }, {
13298 .eraseblocks = { {64 * 1024, 32} },
13299 .block_erase = spi_block_erase_d8,
13300 }, {
13301 .eraseblocks = { {2 * 1024 * 1024, 1} },
13302 .block_erase = spi_block_erase_60,
13303 }, {
13304 .eraseblocks = { {2 * 1024 * 1024, 1} },
13305 .block_erase = spi_block_erase_c7,
13306 }
13307 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013308 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013309 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000013310 .write = spi_chip_write_256,
13311 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013312 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000013313 },
13314
13315 {
13316 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013317 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013318 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013319 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013320 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000013321 .total_size = 4096,
13322 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013323 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013324 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000013325 .probe = probe_spi_rdid,
13326 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013327 .block_erasers =
13328 {
13329 {
13330 .eraseblocks = { {4 * 1024, 1024} },
13331 .block_erase = spi_block_erase_20,
13332 }, {
13333 .eraseblocks = { {32 * 1024, 128} },
13334 .block_erase = spi_block_erase_52,
13335 }, {
13336 .eraseblocks = { {64 * 1024, 64} },
13337 .block_erase = spi_block_erase_d8,
13338 }, {
13339 .eraseblocks = { {4 * 1024 * 1024, 1} },
13340 .block_erase = spi_block_erase_60,
13341 }, {
13342 .eraseblocks = { {4 * 1024 * 1024, 1} },
13343 .block_erase = spi_block_erase_c7,
13344 }
13345 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013346 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013347 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013348 .write = spi_chip_write_256,
13349 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013350 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013351 },
13352
13353 {
13354 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013355 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013356 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013357 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013358 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000013359 .total_size = 8192,
13360 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013361 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013362 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000013363 .probe = probe_spi_rdid,
13364 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013365 .block_erasers =
13366 {
13367 {
13368 .eraseblocks = { {4 * 1024, 2048} },
13369 .block_erase = spi_block_erase_20,
13370 }, {
13371 .eraseblocks = { {32 * 1024, 256} },
13372 .block_erase = spi_block_erase_52,
13373 }, {
13374 .eraseblocks = { {64 * 1024, 128} },
13375 .block_erase = spi_block_erase_d8,
13376 }, {
13377 .eraseblocks = { {8 * 1024 * 1024, 1} },
13378 .block_erase = spi_block_erase_60,
13379 }, {
13380 .eraseblocks = { {8 * 1024 * 1024, 1} },
13381 .block_erase = spi_block_erase_c7,
13382 }
13383 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013384 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013385 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013386 .write = spi_chip_write_256,
13387 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013388 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013389 },
13390
13391 {
13392 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013393 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013394 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013395 .manufacture_id = WINBOND_ID,
13396 .model_id = WINBOND_W29C010,
13397 .total_size = 128,
13398 .page_size = 128,
13399 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013400 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013401 .probe = probe_w29ee011,
13402 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
13403 .block_erasers =
13404 {
13405 {
13406 .eraseblocks = { {128 * 1024, 1} },
13407 .block_erase = erase_chip_block_jedec,
13408 }
13409 },
13410 .write = write_jedec,
13411 .read = read_memmapped,
13412 },
13413
13414 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
13415 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013416 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013417 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013418 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013419 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013420 .total_size = 128,
13421 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013422 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000013423 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013424 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013425 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013426 .block_erasers =
13427 {
13428 {
13429 .eraseblocks = { {128 * 1024, 1} },
13430 .block_erase = erase_chip_block_jedec,
13431 }
13432 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013433 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013434 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013435 },
13436
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013437 {
13438 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013439 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013440 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013441 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013442 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013443 .total_size = 256,
13444 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013445 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013446 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013447 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013448 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013449 .block_erasers =
13450 {
13451 {
13452 .eraseblocks = { {256 * 1024, 1} },
13453 .block_erase = erase_chip_block_jedec,
13454 }
13455 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013456 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013458 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013459 },
13460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013461 {
13462 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013463 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013464 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013465 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013466 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013467 .total_size = 512,
13468 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013469 .feature_bits = FEATURE_LONG_RESET,
13470 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013471 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013472 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013473 .block_erasers =
13474 {
13475 {
13476 .eraseblocks = { {512 * 1024, 1} },
13477 .block_erase = erase_chip_block_jedec,
13478 }
13479 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013480 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013482 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013483 },
13484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013485 {
13486 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000013487 .name = "W29GL032CB",
13488 .bustype = BUS_PARALLEL,
13489 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13490 .model_id = WINBOND_W29GL032CB,
13491 .total_size = 4096,
13492 .page_size = 128 * 1024, /* actual page size is 16 */
13493 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13494 .tested = TEST_UNTESTED,
13495 .probe = probe_jedec_29gl,
13496 .probe_timing = TIMING_ZERO,
13497 .block_erasers =
13498 {
13499 {
13500 .eraseblocks = {
13501 {8 * 1024, 8},
13502 {64 * 1024, 63},
13503 },
13504 .block_erase = erase_sector_jedec,
13505 }, {
13506 .eraseblocks = { {4 * 1024 * 1024, 1} },
13507 .block_erase = erase_chip_block_jedec,
13508 },
13509 },
13510 .write = write_jedec_1,
13511 .read = read_memmapped,
13512 .voltage = {2700, 3600},
13513 },
13514
13515 {
13516 .vendor = "Winbond",
13517 .name = "W29GL032CT",
13518 .bustype = BUS_PARALLEL,
13519 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13520 .model_id = WINBOND_W29GL032CT,
13521 .total_size = 4096,
13522 .page_size = 128 * 1024, /* actual page size is 16 */
13523 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13524 .tested = TEST_UNTESTED,
13525 .probe = probe_jedec_29gl,
13526 .probe_timing = TIMING_ZERO,
13527 .block_erasers =
13528 {
13529 {
13530 .eraseblocks = {
13531 {64 * 1024, 63},
13532 {8 * 1024, 8},
13533 },
13534 .block_erase = erase_sector_jedec,
13535 }, {
13536 .eraseblocks = { {4 * 1024 * 1024, 1} },
13537 .block_erase = erase_chip_block_jedec,
13538 },
13539 },
13540 .write = write_jedec_1,
13541 .read = read_memmapped,
13542 .voltage = {2700, 3600},
13543 },
13544
13545 {
13546 .vendor = "Winbond",
13547 .name = "W29GL032CH/L",
13548 .bustype = BUS_PARALLEL,
13549 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13550 .model_id = WINBOND_W29GL032CHL,
13551 .total_size = 4096,
13552 .page_size = 128 * 1024, /* actual page size is 16 */
13553 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13554 .tested = TEST_UNTESTED,
13555 .probe = probe_jedec_29gl,
13556 .probe_timing = TIMING_ZERO,
13557 .block_erasers =
13558 {
13559 {
13560 .eraseblocks = { {64 * 1024, 64} },
13561 .block_erase = erase_sector_jedec,
13562 }, {
13563 .eraseblocks = { {4 * 1024 * 1024, 1} },
13564 .block_erase = erase_chip_block_jedec,
13565 },
13566 },
13567 .write = write_jedec_1,
13568 .read = read_memmapped,
13569 .voltage = {2700, 3600},
13570 },
13571
13572 {
13573 .vendor = "Winbond",
13574 .name = "W29GL064CB",
13575 .bustype = BUS_PARALLEL,
13576 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13577 .model_id = WINBOND_W29GL064CB,
13578 .total_size = 8192,
13579 .page_size = 128 * 1024, /* actual page size is 16 */
13580 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13581 .tested = TEST_UNTESTED,
13582 .probe = probe_jedec_29gl,
13583 .probe_timing = TIMING_ZERO,
13584 .block_erasers =
13585 {
13586 {
13587 .eraseblocks = {
13588 {8 * 1024, 8},
13589 {64 * 1024, 127},
13590 },
13591 .block_erase = erase_sector_jedec,
13592 }, {
13593 .eraseblocks = { {8 * 1024 * 1024, 1} },
13594 .block_erase = erase_chip_block_jedec,
13595 },
13596 },
13597 .write = write_jedec_1,
13598 .read = read_memmapped,
13599 .voltage = {2700, 3600},
13600 },
13601
13602 {
13603 .vendor = "Winbond",
13604 .name = "W29GL064CT",
13605 .bustype = BUS_PARALLEL,
13606 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13607 .model_id = WINBOND_W29GL064CT,
13608 .total_size = 8192,
13609 .page_size = 128 * 1024, /* actual page size is 16 */
13610 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13611 .tested = TEST_UNTESTED,
13612 .probe = probe_jedec_29gl,
13613 .probe_timing = TIMING_ZERO,
13614 .block_erasers =
13615 {
13616 {
13617 .eraseblocks = {
13618 {64 * 1024, 127},
13619 {8 * 1024, 8},
13620 },
13621 .block_erase = erase_sector_jedec,
13622 }, {
13623 .eraseblocks = { {8 * 1024 * 1024, 1} },
13624 .block_erase = erase_chip_block_jedec,
13625 },
13626 },
13627 .write = write_jedec_1,
13628 .read = read_memmapped,
13629 .voltage = {2700, 3600},
13630 },
13631
13632 {
13633 .vendor = "Winbond",
13634 .name = "W29GL064CH/L",
13635 .bustype = BUS_PARALLEL,
13636 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13637 .model_id = WINBOND_W29GL064CHL,
13638 .total_size = 8192,
13639 .page_size = 128 * 1024, /* actual page size is 16 */
13640 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13641 .tested = TEST_UNTESTED,
13642 .probe = probe_jedec_29gl,
13643 .probe_timing = TIMING_ZERO,
13644 .block_erasers =
13645 {
13646 {
13647 .eraseblocks = { {64 * 1024, 128} },
13648 .block_erase = erase_sector_jedec,
13649 }, {
13650 .eraseblocks = { {8 * 1024 * 1024, 1} },
13651 .block_erase = erase_chip_block_jedec,
13652 },
13653 },
13654 .write = write_jedec_1,
13655 .read = read_memmapped,
13656 .voltage = {2700, 3600},
13657 },
13658
13659 {
13660 .vendor = "Winbond",
13661 .name = "W29GL128C",
13662 .bustype = BUS_PARALLEL,
13663 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13664 .model_id = WINBOND_W29GL128CHL,
13665 .total_size = 16384,
13666 .page_size = 128 * 1024, /* actual page size is 16 */
13667 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13668 .tested = TEST_UNTESTED,
13669 .probe = probe_jedec_29gl,
13670 .probe_timing = TIMING_ZERO,
13671 .block_erasers =
13672 {
13673 {
13674 .eraseblocks = { {128 * 1024, 128} },
13675 .block_erase = erase_sector_jedec,
13676 }, {
13677 .eraseblocks = { {16 * 1024 * 1024, 1} },
13678 .block_erase = erase_chip_block_jedec,
13679 },
13680 },
13681 .write = write_jedec_1,
13682 .read = read_memmapped,
13683 .voltage = {2700, 3600},
13684 },
13685
13686 {
13687 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000013688 .name = "W39F010",
13689 .bustype = BUS_PARALLEL,
13690 .manufacture_id = WINBOND_ID,
13691 .model_id = WINBOND_W39F010,
13692 .total_size = 128,
13693 .page_size = 4 * 1024,
13694 .feature_bits = FEATURE_EITHER_RESET,
13695 .tested = TEST_OK_PREW,
13696 .probe = probe_jedec,
13697 .probe_timing = 10,
13698 .block_erasers =
13699 {
13700 {
13701 .eraseblocks = { {4 * 1024, 32} },
13702 .block_erase = erase_block_jedec,
13703 }, {
13704 .eraseblocks = { {128 * 1024, 1} },
13705 .block_erase = erase_chip_block_jedec,
13706 }
13707 },
13708 .printlock = printlock_w39f010,
13709 .write = write_jedec_1,
13710 .read = read_memmapped,
13711 .voltage = {4500, 5500},
13712 },
13713
13714 {
13715 .vendor = "Winbond",
13716 .name = "W39L010",
13717 .bustype = BUS_PARALLEL,
13718 .manufacture_id = WINBOND_ID,
13719 .model_id = WINBOND_W39L010,
13720 .total_size = 128,
13721 .page_size = 4 * 1024,
13722 .feature_bits = FEATURE_EITHER_RESET,
13723 .tested = TEST_UNTESTED,
13724 .probe = probe_jedec,
13725 .probe_timing = 10,
13726 .block_erasers =
13727 {
13728 {
13729 .eraseblocks = { {4 * 1024, 32} },
13730 .block_erase = erase_block_jedec,
13731 }, {
13732 .eraseblocks = { {128 * 1024, 1} },
13733 .block_erase = erase_chip_block_jedec,
13734 }
13735 },
13736 .printlock = printlock_w39l010,
13737 .write = write_jedec_1,
13738 .read = read_memmapped,
13739 .voltage = {3000, 3600},
13740 },
13741
13742 {
13743 .vendor = "Winbond",
13744 .name = "W39L020",
13745 .bustype = BUS_PARALLEL,
13746 .manufacture_id = WINBOND_ID,
13747 .model_id = WINBOND_W39L020,
13748 .total_size = 256,
13749 .page_size = 4 * 1024,
13750 .feature_bits = FEATURE_EITHER_RESET,
13751 .tested = TEST_UNTESTED,
13752 .probe = probe_jedec,
13753 .probe_timing = 10,
13754 .block_erasers =
13755 {
13756 {
13757 .eraseblocks = { {4 * 1024, 64} },
13758 .block_erase = erase_block_jedec,
13759 }, {
13760 .eraseblocks = { {64 * 1024, 4} },
13761 .block_erase = erase_sector_jedec,
13762 }, {
13763 .eraseblocks = { {256 * 1024, 1} },
13764 .block_erase = erase_chip_block_jedec,
13765 }
13766 },
13767 .printlock = printlock_w39l020,
13768 .write = write_jedec_1,
13769 .read = read_memmapped,
13770 .voltage = {3000, 3600},
13771 },
13772
13773 {
13774 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000013775 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013776 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000013777 .manufacture_id = WINBOND_ID,
13778 .model_id = WINBOND_W39L040,
13779 .total_size = 512,
13780 .page_size = 64 * 1024,
13781 .feature_bits = FEATURE_EITHER_RESET,
13782 .tested = TEST_OK_PR,
13783 .probe = probe_jedec,
13784 .probe_timing = 10,
13785 .block_erasers =
13786 {
13787 {
13788 .eraseblocks = { {4 * 1024, 128} },
13789 .block_erase = erase_block_jedec,
13790 }, {
13791 .eraseblocks = { {64 * 1024, 8} },
13792 .block_erase = erase_sector_jedec,
13793 }, {
13794 .eraseblocks = { {512 * 1024, 1} },
13795 .block_erase = erase_chip_block_jedec,
13796 }
13797 },
13798 .printlock = printlock_w39l040,
13799 .write = write_jedec_1,
13800 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013801 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000013802 },
13803
13804 {
13805 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013806 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013807 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013808 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013809 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013810 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013811 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013812 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013813 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013814 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000013815 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013816 .block_erasers =
13817 {
13818 {
13819 .eraseblocks = { {64 * 1024, 8} },
13820 .block_erase = erase_sector_jedec,
13821 }, {
13822 .eraseblocks = { {512 * 1024, 1} },
13823 .block_erase = erase_chip_block_jedec,
13824 }
13825 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013826 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000013827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013829 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013830 },
13831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013832 {
13833 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013834 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013835 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013836 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013837 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013838 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013839 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013840 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013841 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013842 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000013843 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013844 .block_erasers =
13845 {
13846 {
13847 .eraseblocks = { {64 * 1024, 8} },
13848 .block_erase = erase_sector_jedec,
13849 }, {
13850 .eraseblocks = { {512 * 1024, 1} },
13851 .block_erase = erase_chip_block_jedec,
13852 }
13853 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013854 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000013855 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013856 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013857 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013858 },
13859
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013860 {
13861 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013862 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013863 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013864 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013865 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013866 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013867 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013868 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013869 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000013870 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013871 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013872 .block_erasers =
13873 {
13874 {
13875 .eraseblocks = { {64 * 1024, 8} },
13876 .block_erase = erase_sector_jedec,
13877 }, {
13878 .eraseblocks = { {512 * 1024, 1} },
13879 .block_erase = erase_chip_block_jedec,
13880 }
13881 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000013882 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000013883 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013884 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013885 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013886 },
13887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013888 {
13889 .vendor = "Winbond",
13890 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013891 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013892 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013893 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013894 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013895 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000013896 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013897 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013898 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013899 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013900 .block_erasers =
13901 {
13902 {
13903 .eraseblocks = { {4 * 1024, 128} },
13904 .block_erase = erase_block_jedec,
13905 }, {
13906 .eraseblocks = { {64 * 1024, 8} },
13907 .block_erase = erase_sector_jedec,
13908 }, {
13909 .eraseblocks = { {512 * 1024, 1} },
13910 .block_erase = erase_chip_block_jedec,
13911 }
13912 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013913 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013914 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013915 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013916 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013917 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013918 },
13919
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013920 {
13921 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013922 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013923 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013924 .manufacture_id = WINBOND_ID,
13925 .model_id = WINBOND_W39V040B,
13926 .total_size = 512,
13927 .page_size = 64 * 1024,
13928 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013929 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013930 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013931 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013932 .block_erasers =
13933 {
13934 {
13935 .eraseblocks = { {64 * 1024, 8} },
13936 .block_erase = erase_sector_jedec,
13937 }, {
13938 .eraseblocks = { {512 * 1024, 1} },
13939 .block_erase = erase_chip_block_jedec,
13940 }
13941 },
13942 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013943 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013944 .write = write_jedec_1,
13945 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013946 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013947 },
13948
13949 {
13950 .vendor = "Winbond",
13951 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013952 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013953 .manufacture_id = WINBOND_ID,
13954 .model_id = WINBOND_W39V040C,
13955 .total_size = 512,
13956 .page_size = 64 * 1024,
13957 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000013958 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013959 .probe = probe_jedec,
13960 .probe_timing = 10,
13961 .block_erasers =
13962 {
13963 {
13964 .eraseblocks = { {64 * 1024, 8} },
13965 .block_erase = erase_sector_jedec,
13966 }, {
13967 .eraseblocks = { {512 * 1024, 1} },
13968 .block_erase = erase_chip_block_jedec,
13969 }
13970 },
13971 .printlock = printlock_w39v040fc,
13972 .write = write_jedec_1,
13973 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013974 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013975 },
13976
13977 {
13978 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013979 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013980 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013981 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013982 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013983 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013984 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013985 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000013986 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013987 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000013988 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013989 .block_erasers =
13990 {
13991 {
13992 .eraseblocks = { {64 * 1024, 16} },
13993 .block_erase = erase_sector_jedec,
13994 }, {
13995 .eraseblocks = { {1024 * 1024, 1} },
13996 .block_erase = erase_chip_block_jedec,
13997 }
13998 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013999 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000014000 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014002 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014003 },
14004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 {
14006 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014007 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014008 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014010 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014011 .total_size = 256,
14012 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014013 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014014 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014015 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014016 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014017 .block_erasers =
14018 {
14019 {
14020 .eraseblocks = {
14021 {128 * 1024, 1},
14022 {96 * 1024, 1},
14023 {8 * 1024, 2},
14024 {16 * 1024, 1},
14025 },
14026 .block_erase = erase_sector_jedec,
14027 }, {
14028 .eraseblocks = { {256 * 1024, 1} },
14029 .block_erase = erase_chip_block_jedec,
14030 }
14031 },
Sean Nelson35727f72010-01-28 23:55:12 +000014032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014034 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014035 },
14036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014037 {
14038 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014039 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014040 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014041 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014042 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014043 .total_size = 256,
14044 .page_size = 128,
14045 .feature_bits = FEATURE_EITHER_RESET,
14046 .tested = TEST_OK_PROBE,
14047 .probe = probe_jedec,
14048 .probe_timing = 10,
14049 .block_erasers =
14050 {
14051 {
14052 .eraseblocks = { {256 * 1024, 1} },
14053 .block_erase = erase_chip_block_jedec,
14054 }
14055 },
14056 .write = write_jedec_1,
14057 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014058 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014059 },
14060
14061 {
14062 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014063 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014064 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014065 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014066 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014067 .total_size = 256,
14068 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014069 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014070 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014071 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014072 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014073 .block_erasers =
14074 {
14075 {
14076 .eraseblocks = {
14077 {64 * 1024, 3},
14078 {32 * 1024, 1},
14079 {8 * 1024, 2},
14080 {16 * 1024, 1},
14081 },
14082 .block_erase = erase_sector_jedec,
14083 }, {
14084 .eraseblocks = { {256 * 1024, 1} },
14085 .block_erase = erase_chip_block_jedec,
14086 }
14087 },
Sean Nelson35727f72010-01-28 23:55:12 +000014088 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014090 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014091 },
14092
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014093 {
14094 .vendor = "Winbond",
14095 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014096 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014097 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014098 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014099 .total_size = 256,
14100 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014101 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014102 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014103 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014104 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014105 .block_erasers =
14106 {
14107 {
14108 .eraseblocks = {
14109 {64 * 1024, 3},
14110 {32 * 1024, 1},
14111 {8 * 1024, 2},
14112 {16 * 1024, 1},
14113 },
14114 .block_erase = erase_sector_jedec,
14115 }, {
14116 .eraseblocks = { {256 * 1024, 1} },
14117 .block_erase = erase_chip_block_jedec,
14118 }
14119 },
Sean Nelson35727f72010-01-28 23:55:12 +000014120 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014122 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014123 },
14124
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014125 {
14126 .vendor = "Winbond",
14127 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014128 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014129 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014130 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014131 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014132 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014133 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014134 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014135 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014136 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014137 .block_erasers =
14138 {
14139 {
14140 .eraseblocks = { {64 * 1024, 16}, },
14141 .block_erase = erase_sector_jedec,
14142 }, {
14143 .eraseblocks = { {1024 * 1024, 1} },
14144 .block_erase = erase_chip_block_jedec,
14145 }
14146 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014147 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014148 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014149 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014150 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014151 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014152 },
14153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014154 {
14155 .vendor = "Winbond",
14156 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014157 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014158 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014159 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014160 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014161 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014162 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014163 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014164 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014165 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014166 .block_erasers =
14167 {
14168 {
14169 .eraseblocks = { {64 * 1024, 8}, },
14170 .block_erase = erase_sector_jedec,
14171 }, {
14172 .eraseblocks = { {512 * 1024, 1} },
14173 .block_erase = erase_chip_block_jedec,
14174 }
14175 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014176 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000014177 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014178 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014179 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014180 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014181
14182 {
14183 .vendor = "Unknown",
14184 .name = "SFDP-capable chip",
14185 .bustype = BUS_SPI,
14186 .manufacture_id = GENERIC_MANUF_ID,
14187 .model_id = SFDP_DEVICE_ID,
14188 /* We present our own "report this" text hence we do not
14189 * want the default "This flash part has status UNTESTED..."
14190 * text to be printed. */
14191 .tested = TEST_OK_PREW,
14192 .probe = probe_spi_sfdp,
14193 .unlock = spi_disable_blockprotect, /* is this safe? */
14194 .read = spi_chip_read,
14195 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000014196 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014197 /* Everything below will be set by the probing function. */
14198 .write = NULL,
14199 .total_size = 0,
14200 .page_size = 0,
14201 .feature_bits = 0,
14202 .block_erasers = {},
14203 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014205 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000014206 .vendor = "Programmer",
14207 .name = "Opaque flash chip",
14208 .bustype = BUS_PROG,
14209 .manufacture_id = PROGMANUF_ID,
14210 .model_id = PROGDEV_ID,
14211 .total_size = 0,
14212 .page_size = 256,
14213 /* probe is assumed to work, rest will be filled in by probe */
14214 .tested = TEST_OK_PROBE,
14215 .probe = probe_opaque,
14216 /* eraseblock sizes will be set by the probing function */
14217 .block_erasers =
14218 {
14219 {
14220 .block_erase = erase_opaque,
14221 }
14222 },
14223 .write = write_opaque,
14224 .read = read_opaque,
14225 },
14226
14227 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014228 .vendor = "AMIC",
14229 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014230 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014231 .manufacture_id = AMIC_ID,
14232 .model_id = GENERIC_DEVICE_ID,
14233 .total_size = 0,
14234 .page_size = 256,
14235 .tested = TEST_BAD_PREW,
14236 .probe = probe_spi_rdid4,
14237 .probe_timing = TIMING_ZERO,
14238 .write = NULL,
14239 .read = NULL,
14240 },
14241
14242 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014243 .vendor = "Atmel",
14244 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014245 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014246 .manufacture_id = ATMEL_ID,
14247 .model_id = GENERIC_DEVICE_ID,
14248 .total_size = 0,
14249 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014250 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014251 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014252 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014253 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014254 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014255 },
14256
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014257 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000014258 .vendor = "Eon",
14259 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014260 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014261 .manufacture_id = EON_ID_NOPREFIX,
14262 .model_id = GENERIC_DEVICE_ID,
14263 .total_size = 0,
14264 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014265 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014266 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014267 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014268 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014269 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014270 },
14271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014272 {
14273 .vendor = "Macronix",
14274 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014275 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014276 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014277 .model_id = GENERIC_DEVICE_ID,
14278 .total_size = 0,
14279 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014280 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014281 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014282 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014283 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014284 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014285 },
14286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014287 {
14288 .vendor = "PMC",
14289 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014290 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014291 .manufacture_id = PMC_ID,
14292 .model_id = GENERIC_DEVICE_ID,
14293 .total_size = 0,
14294 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014295 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014297 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014298 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014299 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014300 },
14301
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014302 {
14303 .vendor = "SST",
14304 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014305 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014306 .manufacture_id = SST_ID,
14307 .model_id = GENERIC_DEVICE_ID,
14308 .total_size = 0,
14309 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014310 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014311 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014312 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014313 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014314 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014315 },
14316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014317 {
14318 .vendor = "ST",
14319 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014320 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014321 .manufacture_id = ST_ID,
14322 .model_id = GENERIC_DEVICE_ID,
14323 .total_size = 0,
14324 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014325 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014326 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014327 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014328 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014329 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014330 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000014331
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014332 {
Sean Nelson118e1d62009-11-24 02:08:11 +000014333 .vendor = "Sanyo",
14334 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014335 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000014336 .manufacture_id = SANYO_ID,
14337 .model_id = GENERIC_DEVICE_ID,
14338 .total_size = 0,
14339 .page_size = 256,
14340 .tested = TEST_BAD_PREW,
14341 .probe = probe_spi_rdid,
14342 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000014343 .write = NULL,
14344 .read = NULL,
14345 },
14346
14347 {
Stefan Taunereb582572012-09-21 12:52:50 +000014348 .vendor = "Winbond",
14349 .name = "unknown Winbond (ex Nexcom) SPI chip",
14350 .bustype = BUS_SPI,
14351 .manufacture_id = WINBOND_NEX_ID,
14352 .model_id = GENERIC_DEVICE_ID,
14353 .total_size = 0,
14354 .page_size = 256,
14355 .tested = TEST_BAD_PREW,
14356 .probe = probe_spi_rdid,
14357 .probe_timing = TIMING_ZERO,
14358 .write = NULL,
14359 .read = NULL,
14360 },
14361
14362 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014363 .vendor = "Generic",
14364 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014365 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014366 .manufacture_id = GENERIC_MANUF_ID,
14367 .model_id = GENERIC_DEVICE_ID,
14368 .total_size = 0,
14369 .page_size = 256,
14370 .tested = TEST_BAD_PREW,
14371 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014372 .write = NULL,
14373 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000014374
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014375 {
14376 .vendor = "Generic",
14377 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014378 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014379 .manufacture_id = GENERIC_MANUF_ID,
14380 .model_id = GENERIC_DEVICE_ID,
14381 .total_size = 0,
14382 .page_size = 256,
14383 .tested = TEST_BAD_PREW,
14384 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014385 .write = NULL,
14386 },
14387
Stefan Tauner96658be2014-05-26 22:05:31 +000014388 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000014389};
Stefan Tauner96658be2014-05-26 22:05:31 +000014390
14391const unsigned int flashchips_size = ARRAY_SIZE(flashchips);