blob: 20cfc1e9cc9d5908d5845553f125df0313304680 [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,
Stefan Tauner6697f712014-08-06 15:09:15 +00001997 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001998 .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,
Stefan Tauner6697f712014-08-06 15:09:15 +00002480 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .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,
Stefan Tauner6697f712014-08-06 15:09:15 +00003161 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003162 .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",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00004866 .name = "EN29LV040(A)",
4867 .bustype = BUS_PARALLEL,
4868 .manufacture_id = EON_ID,
4869 .model_id = EON_EN29LV040,
4870 .total_size = 512,
4871 .page_size = 4 * 1024,
4872 .tested = TEST_OK_PREW,
4873 .probe = probe_jedec,
4874 .probe_timing = TIMING_ZERO,
4875 .block_erasers =
4876 {
4877 {
4878 .eraseblocks = { {64 * 1024, 8} },
4879 .block_erase = erase_sector_jedec,
4880 },
4881 {
4882 .eraseblocks = { {512 * 1024, 1} },
4883 .block_erase = erase_chip_block_jedec,
4884 },
4885 },
4886 .write = write_jedec_1,
4887 .read = read_memmapped,
4888 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
4889 },
4890
4891 {
4892 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004893 .name = "EN29LV640B",
4894 .bustype = BUS_PARALLEL,
4895 .manufacture_id = EON_ID,
4896 .model_id = EON_EN29LV640B,
4897 .total_size = 8192,
4898 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004899 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004900 .tested = TEST_OK_PREW,
4901 .probe = probe_en29lv640b,
4902 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4903 .block_erasers =
4904 {
4905 {
4906 .eraseblocks = {
4907 {8 * 1024, 8},
4908 {64 * 1024, 127},
4909 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004910 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004911 }, {
4912 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004913 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004914 },
4915 },
4916 .write = write_en29lv640b,
4917 .read = read_memmapped,
4918 .voltage = {2700, 3600},
4919 },
4920
4921 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00004922 .vendor = "Eon",
4923 .name = "EN29GL064(A)B",
4924 .bustype = BUS_PARALLEL,
4925 .manufacture_id = EON_ID,
4926 .model_id = EON_EN29GL064B,
4927 .total_size = 8192,
4928 .page_size = 128 * 1024, /* actual page size is 16 */
4929 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4930 .tested = TEST_UNTESTED,
4931 .probe = probe_jedec_29gl,
4932 .probe_timing = TIMING_ZERO,
4933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = {
4937 {8 * 1024, 8},
4938 {64 * 1024, 127},
4939 },
4940 .block_erase = erase_sector_jedec,
4941 }, {
4942 .eraseblocks = { {8 * 1024 * 1024, 1} },
4943 .block_erase = erase_chip_block_jedec,
4944 },
4945 },
4946 .write = write_jedec_1,
4947 .read = read_memmapped,
4948 .voltage = {2700, 3600},
4949 },
4950
4951 {
4952 .vendor = "Eon",
4953 .name = "EN29GL064(A)T",
4954 .bustype = BUS_PARALLEL,
4955 .manufacture_id = EON_ID,
4956 .model_id = EON_EN29GL064T,
4957 .total_size = 8192,
4958 .page_size = 128 * 1024, /* actual page size is 16 */
4959 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_jedec_29gl,
4962 .probe_timing = TIMING_ZERO,
4963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = {
4967 {64 * 1024, 127},
4968 {8 * 1024, 8},
4969 },
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 = "EN29GL064H/L",
4984 .bustype = BUS_PARALLEL,
4985 .manufacture_id = EON_ID,
4986 .model_id = EON_EN29GL064HL,
4987 .total_size = 8192,
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 = { {64 * 1024, 128} },
4997 .block_erase = erase_sector_jedec,
4998 }, {
4999 .eraseblocks = { {8 * 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 {
5009 .vendor = "Eon",
5010 .name = "EN29GL128",
5011 .bustype = BUS_PARALLEL,
5012 .manufacture_id = EON_ID,
5013 .model_id = EON_EN29GL128HL,
5014 .total_size = 16384,
5015 .page_size = 128 * 1024, /* actual page size is 16 */
5016 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5017 .tested = TEST_UNTESTED,
5018 .probe = probe_jedec_29gl,
5019 .probe_timing = TIMING_ZERO,
5020 .block_erasers =
5021 {
5022 {
5023 .eraseblocks = { {128 * 1024, 128} },
5024 .block_erase = erase_sector_jedec,
5025 }, {
5026 .eraseblocks = { {16 * 1024 * 1024, 1} },
5027 .block_erase = erase_chip_block_jedec,
5028 },
5029 },
5030 .write = write_jedec_1,
5031 .read = read_memmapped,
5032 .voltage = {2700, 3600},
5033 },
5034
5035 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005036 .vendor = "Fujitsu",
5037 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005038 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005039 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005040 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005041 .total_size = 512,
5042 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005043 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 .tested = TEST_UNTESTED,
5045 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005046 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005047 .block_erasers =
5048 {
5049 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005050 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005051 {16 * 1024, 1},
5052 {8 * 1024, 2},
5053 {32 * 1024, 1},
5054 {64 * 1024, 7},
5055 },
Sean Nelson35727f72010-01-28 23:55:12 +00005056 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005057 }, {
5058 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005059 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005060 },
5061 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005062 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005064 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005065 },
5066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005067 {
5068 .vendor = "Fujitsu",
5069 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005070 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005071 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005072 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005073 .total_size = 512,
5074 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005075 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .tested = TEST_UNTESTED,
5077 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005078 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005079 .block_erasers =
5080 {
5081 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005082 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005083 {64 * 1024, 7},
5084 {32 * 1024, 1},
5085 {8 * 1024, 2},
5086 {16 * 1024, 1},
5087 },
Sean Nelson35727f72010-01-28 23:55:12 +00005088 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005089 }, {
5090 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005091 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005092 },
5093 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005094 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005096 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005097 },
5098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005099 {
Sean Nelson35727f72010-01-28 23:55:12 +00005100 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005101 .vendor = "Fujitsu",
5102 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005103 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005104 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005105 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005106 .total_size = 512,
5107 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005108 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005109 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005110 .probe = probe_jedec,
5111 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005112 .block_erasers =
5113 {
5114 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005115 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005116 {16 * 1024, 1},
5117 {8 * 1024, 2},
5118 {32 * 1024, 1},
5119 {64 * 1024, 7},
5120 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005121 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005122 }, {
5123 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005124 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005125 },
5126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005127 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005128 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005129 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005130 },
5131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005132 {
5133 .vendor = "Fujitsu",
5134 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005135 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005136 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005137 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 .total_size = 512,
5139 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005140 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005141 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005142 .probe = probe_jedec,
5143 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005144 .block_erasers =
5145 {
5146 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005147 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005148 {64 * 1024, 7},
5149 {32 * 1024, 1},
5150 {8 * 1024, 2},
5151 {16 * 1024, 1},
5152 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005153 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005154 }, {
5155 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005156 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005157 },
5158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005159 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005160 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005161 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005162 },
5163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005164 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005165 .vendor = "Fujitsu",
5166 .name = "MBM29LV160BE",
5167 .bustype = BUS_PARALLEL,
5168 .manufacture_id = FUJITSU_ID,
5169 .model_id = FUJITSU_MBM29LV160BE,
5170 .total_size = 2 * 1024,
5171 .page_size = 0,
5172 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5173 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005174 .probe = probe_jedec,
5175 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005176 .block_erasers =
5177 {
5178 {
5179 .eraseblocks = {
5180 {16 * 1024, 1},
5181 {8 * 1024, 2},
5182 {32 * 1024, 1},
5183 {64 * 1024, 31},
5184 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005185 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005186 }, {
5187 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005188 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005189 },
5190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005191 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005192 .read = read_memmapped,
5193 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5194 },
5195
5196 {
5197 .vendor = "Fujitsu",
5198 .name = "MBM29LV160TE",
5199 .bustype = BUS_PARALLEL,
5200 .manufacture_id = FUJITSU_ID,
5201 .model_id = FUJITSU_MBM29LV160TE,
5202 .total_size = 2 * 1024,
5203 .page_size = 0,
5204 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5205 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005206 .probe = probe_jedec,
5207 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005208 .block_erasers =
5209 {
5210 {
5211 .eraseblocks = {
5212 {64 * 1024, 31},
5213 {32 * 1024, 1},
5214 {8 * 1024, 2},
5215 {16 * 1024, 1},
5216 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005217 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005218 }, {
5219 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005220 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005221 },
5222 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005223 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005224 .read = read_memmapped,
5225 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5226 },
5227
5228 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005229 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005230 .name = "GD25LQ32",
5231 .bustype = BUS_SPI,
5232 .manufacture_id = GIGADEVICE_ID,
5233 .model_id = GIGADEVICE_GD25LQ32,
5234 .total_size = 4096,
5235 .page_size = 256,
5236 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5238 .tested = TEST_OK_PREW,
5239 .probe = probe_spi_rdid,
5240 .probe_timing = TIMING_ZERO,
5241 .block_erasers =
5242 {
5243 {
5244 .eraseblocks = { {4 * 1024, 1024} },
5245 .block_erase = spi_block_erase_20,
5246 }, {
5247 .eraseblocks = { {32 * 1024, 128} },
5248 .block_erase = spi_block_erase_52,
5249 }, {
5250 .eraseblocks = { {64 * 1024, 64} },
5251 .block_erase = spi_block_erase_d8,
5252 }, {
5253 .eraseblocks = { {4 * 1024 * 1024, 1} },
5254 .block_erase = spi_block_erase_60,
5255 }, {
5256 .eraseblocks = { {4 * 1024 * 1024, 1} },
5257 .block_erase = spi_block_erase_c7,
5258 }
5259 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005260 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005261 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5262 .write = spi_chip_write_256,
5263 .read = spi_chip_read,
5264 .voltage = {1700, 1950},
5265 },
5266
5267 {
5268 .vendor = "GigaDevice",
5269 .name = "GD25Q512",
5270 .bustype = BUS_SPI,
5271 .manufacture_id = GIGADEVICE_ID,
5272 .model_id = GIGADEVICE_GD25Q512,
5273 .total_size = 64,
5274 .page_size = 256,
5275 .feature_bits = FEATURE_WRSR_WREN,
5276 .tested = TEST_UNTESTED,
5277 .probe = probe_spi_rdid,
5278 .probe_timing = TIMING_ZERO,
5279 .block_erasers = {
5280 {
5281 .eraseblocks = { {4 * 1024, 16} },
5282 .block_erase = spi_block_erase_20,
5283 }, {
5284 .eraseblocks = { {32 * 1024, 2} },
5285 .block_erase = spi_block_erase_52,
5286 }, {
5287 .eraseblocks = { {64 * 1024, 1} },
5288 .block_erase = spi_block_erase_60,
5289 }, {
5290 .eraseblocks = { {64 * 1024, 1} },
5291 .block_erase = spi_block_erase_c7,
5292 }
5293 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005294 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005295 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5296 .write = spi_chip_write_256,
5297 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5298 .voltage = {2700, 3600},
5299 },
5300
5301 {
5302 .vendor = "GigaDevice",
5303 .name = "GD25Q10",
5304 .bustype = BUS_SPI,
5305 .manufacture_id = GIGADEVICE_ID,
5306 .model_id = GIGADEVICE_GD25Q10,
5307 .total_size = 128,
5308 .page_size = 256,
5309 .feature_bits = FEATURE_WRSR_WREN,
5310 .tested = TEST_UNTESTED,
5311 .probe = probe_spi_rdid,
5312 .probe_timing = TIMING_ZERO,
5313 .block_erasers = {
5314 {
5315 .eraseblocks = { {4 * 1024, 32} },
5316 .block_erase = spi_block_erase_20,
5317 }, {
5318 .eraseblocks = { {32 * 1024, 4} },
5319 .block_erase = spi_block_erase_52,
5320 }, {
5321 .eraseblocks = { {64 * 1024, 2} },
5322 .block_erase = spi_block_erase_d8,
5323 }, {
5324 .eraseblocks = { {128 * 1024, 1} },
5325 .block_erase = spi_block_erase_60,
5326 }, {
5327 .eraseblocks = { {128 * 1024, 1} },
5328 .block_erase = spi_block_erase_c7,
5329 }
5330 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005331 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005332 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5333 .write = spi_chip_write_256,
5334 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5335 .voltage = {2700, 3600},
5336 },
5337
5338 {
5339 .vendor = "GigaDevice",
5340 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005341 .bustype = BUS_SPI,
5342 .manufacture_id = GIGADEVICE_ID,
5343 .model_id = GIGADEVICE_GD25Q20,
5344 .total_size = 256,
5345 .page_size = 256,
5346 .feature_bits = FEATURE_WRSR_WREN,
5347 .tested = TEST_UNTESTED,
5348 .probe = probe_spi_rdid,
5349 .probe_timing = TIMING_ZERO,
5350 .block_erasers =
5351 {
5352 {
5353 .eraseblocks = { {4 * 1024, 64} },
5354 .block_erase = spi_block_erase_20,
5355 }, {
5356 .eraseblocks = { {32 * 1024, 8} },
5357 .block_erase = spi_block_erase_52,
5358 }, {
5359 .eraseblocks = { {64 * 1024, 4} },
5360 .block_erase = spi_block_erase_d8,
5361 }, {
5362 .eraseblocks = { {256 * 1024, 1} },
5363 .block_erase = spi_block_erase_60,
5364 }, {
5365 .eraseblocks = { {256 * 1024, 1} },
5366 .block_erase = spi_block_erase_c7,
5367 }
5368 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005369 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005370 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005371 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005372 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005373 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005374 },
5375
5376 {
5377 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005378 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005379 .bustype = BUS_SPI,
5380 .manufacture_id = GIGADEVICE_ID,
5381 .model_id = GIGADEVICE_GD25Q40,
5382 .total_size = 512,
5383 .page_size = 256,
5384 .feature_bits = FEATURE_WRSR_WREN,
5385 .tested = TEST_UNTESTED,
5386 .probe = probe_spi_rdid,
5387 .probe_timing = TIMING_ZERO,
5388 .block_erasers =
5389 {
5390 {
5391 .eraseblocks = { {4 * 1024, 128} },
5392 .block_erase = spi_block_erase_20,
5393 }, {
5394 .eraseblocks = { {32 * 1024, 16} },
5395 .block_erase = spi_block_erase_52,
5396 }, {
5397 .eraseblocks = { {64 * 1024, 8} },
5398 .block_erase = spi_block_erase_d8,
5399 }, {
5400 .eraseblocks = { {512 * 1024, 1} },
5401 .block_erase = spi_block_erase_60,
5402 }, {
5403 .eraseblocks = { {512 * 1024, 1} },
5404 .block_erase = spi_block_erase_c7,
5405 }
5406 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005407 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005408 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005409 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005410 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005411 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005412 },
5413
5414 {
5415 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005416 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005417 .bustype = BUS_SPI,
5418 .manufacture_id = GIGADEVICE_ID,
5419 .model_id = GIGADEVICE_GD25Q80,
5420 .total_size = 1024,
5421 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005422 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5424 .tested = TEST_OK_PREW,
5425 .probe = probe_spi_rdid,
5426 .probe_timing = TIMING_ZERO,
5427 .block_erasers =
5428 {
5429 {
5430 .eraseblocks = { {4 * 1024, 256} },
5431 .block_erase = spi_block_erase_20,
5432 }, {
5433 .eraseblocks = { {32 * 1024, 32} },
5434 .block_erase = spi_block_erase_52,
5435 }, {
5436 .eraseblocks = { {64 * 1024, 16} },
5437 .block_erase = spi_block_erase_d8,
5438 }, {
5439 .eraseblocks = { {1024 * 1024, 1} },
5440 .block_erase = spi_block_erase_60,
5441 }, {
5442 .eraseblocks = { {1024 * 1024, 1} },
5443 .block_erase = spi_block_erase_c7,
5444 }
5445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005446 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005447 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005448 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005449 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005450 .voltage = {2700, 3600},
5451 },
5452
5453 {
5454 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005455 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005456 .bustype = BUS_SPI,
5457 .manufacture_id = GIGADEVICE_ID,
5458 .model_id = GIGADEVICE_GD25Q16,
5459 .total_size = 2048,
5460 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005461 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005462 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00005463 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005464 .probe = probe_spi_rdid,
5465 .probe_timing = TIMING_ZERO,
5466 .block_erasers =
5467 {
5468 {
5469 .eraseblocks = { {4 * 1024, 512} },
5470 .block_erase = spi_block_erase_20,
5471 }, {
5472 .eraseblocks = { {32 * 1024, 64} },
5473 .block_erase = spi_block_erase_52,
5474 }, {
5475 .eraseblocks = { {64 * 1024, 32} },
5476 .block_erase = spi_block_erase_d8,
5477 }, {
5478 .eraseblocks = { {2 * 1024 * 1024, 1} },
5479 .block_erase = spi_block_erase_60,
5480 }, {
5481 .eraseblocks = { {2 * 1024 * 1024, 1} },
5482 .block_erase = spi_block_erase_c7,
5483 }
5484 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005485 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005486 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005487 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005488 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005489 .voltage = {2700, 3600},
5490 },
5491
5492 {
5493 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005494 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005495 .bustype = BUS_SPI,
5496 .manufacture_id = GIGADEVICE_ID,
5497 .model_id = GIGADEVICE_GD25Q32,
5498 .total_size = 4096,
5499 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005500 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005502 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005503 .probe = probe_spi_rdid,
5504 .probe_timing = TIMING_ZERO,
5505 .block_erasers =
5506 {
5507 {
5508 .eraseblocks = { {4 * 1024, 1024} },
5509 .block_erase = spi_block_erase_20,
5510 }, {
5511 .eraseblocks = { {32 * 1024, 128} },
5512 .block_erase = spi_block_erase_52,
5513 }, {
5514 .eraseblocks = { {64 * 1024, 64} },
5515 .block_erase = spi_block_erase_d8,
5516 }, {
5517 .eraseblocks = { {4 * 1024 * 1024, 1} },
5518 .block_erase = spi_block_erase_60,
5519 }, {
5520 .eraseblocks = { {4 * 1024 * 1024, 1} },
5521 .block_erase = spi_block_erase_c7,
5522 }
5523 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005524 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005525 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005526 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005527 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005528 .voltage = {2700, 3600},
5529 },
5530
5531 {
5532 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005533 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005534 .bustype = BUS_SPI,
5535 .manufacture_id = GIGADEVICE_ID,
5536 .model_id = GIGADEVICE_GD25Q64,
5537 .total_size = 8192,
5538 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005539 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005540 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005541 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005542 .probe = probe_spi_rdid,
5543 .probe_timing = TIMING_ZERO,
5544 .block_erasers =
5545 {
5546 {
5547 .eraseblocks = { {4 * 1024, 2048} },
5548 .block_erase = spi_block_erase_20,
5549 }, {
5550 .eraseblocks = { {32 * 1024, 256} },
5551 .block_erase = spi_block_erase_52,
5552 }, {
5553 .eraseblocks = { {64 * 1024, 128} },
5554 .block_erase = spi_block_erase_d8,
5555 }, {
5556 .eraseblocks = { {8 * 1024 * 1024, 1} },
5557 .block_erase = spi_block_erase_60,
5558 }, {
5559 .eraseblocks = { {8 * 1024 * 1024, 1} },
5560 .block_erase = spi_block_erase_c7,
5561 }
5562 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005563 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005564 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005565 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005566 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005567 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005568 },
5569
5570 {
5571 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005572 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005573 .bustype = BUS_SPI,
5574 .manufacture_id = GIGADEVICE_ID,
5575 .model_id = GIGADEVICE_GD25Q128,
5576 .total_size = 16384,
5577 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005578 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5580 .tested = TEST_UNTESTED,
5581 .probe = probe_spi_rdid,
5582 .probe_timing = TIMING_ZERO,
5583 .block_erasers =
5584 {
5585 {
5586 .eraseblocks = { {4 * 1024, 4096} },
5587 .block_erase = spi_block_erase_20,
5588 }, {
5589 .eraseblocks = { {32 * 1024, 512} },
5590 .block_erase = spi_block_erase_52,
5591 }, {
5592 .eraseblocks = { {64 * 1024, 256} },
5593 .block_erase = spi_block_erase_d8,
5594 }, {
5595 .eraseblocks = { {16 * 1024 * 1024, 1} },
5596 .block_erase = spi_block_erase_60,
5597 }, {
5598 .eraseblocks = { {16 * 1024 * 1024, 1} },
5599 .block_erase = spi_block_erase_c7,
5600 }
5601 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005602 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005603 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5604 .write = spi_chip_write_256,
5605 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5606 .voltage = {2700, 3600},
5607 },
5608
5609 {
5610 .vendor = "GigaDevice",
5611 .name = "GD25T80",
5612 .bustype = BUS_SPI,
5613 .manufacture_id = GIGADEVICE_ID,
5614 .model_id = GIGADEVICE_GD25T80,
5615 .total_size = 1024,
5616 .page_size = 256,
5617 /* OTP: 256B total; enter 0x3A */
5618 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5619 .tested = TEST_UNTESTED,
5620 .probe = probe_spi_rdid,
5621 .probe_timing = TIMING_ZERO,
5622 .block_erasers = {
5623 {
5624 .eraseblocks = { {4 * 1024, 256} },
5625 .block_erase = spi_block_erase_20,
5626 }, {
5627 .eraseblocks = { {64 * 1024, 16} },
5628 .block_erase = spi_block_erase_52,
5629 }, {
5630 .eraseblocks = { {64 * 1024, 16} },
5631 .block_erase = spi_block_erase_d8,
5632 }, {
5633 .eraseblocks = { {1024 * 1024, 1} },
5634 .block_erase = spi_block_erase_60,
5635 }, {
5636 .eraseblocks = { {1024 * 1024, 1} },
5637 .block_erase = spi_block_erase_c7,
5638 }
5639 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005641 .unlock = spi_disable_blockprotect,
5642 .write = spi_chip_write_256,
5643 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005644 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005645 },
5646
5647 {
David Borgc96a8bd2010-06-21 16:12:22 +00005648 .vendor = "Hyundai",
5649 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005650 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005651 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005652 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005653 .total_size = 256,
5654 .page_size = 256 * 1024,
5655 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005656 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005657 .probe = probe_jedec,
5658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5659 .block_erasers =
5660 {
5661 {
5662 .eraseblocks = {
5663 {64 * 1024, 3},
5664 {32 * 1024, 1},
5665 {8 * 1024, 2},
5666 {16 * 1024, 1},
5667 },
5668 .block_erase = erase_sector_jedec,
5669 }, {
5670 .eraseblocks = { {256 * 1024, 1} },
5671 .block_erase = erase_chip_block_jedec,
5672 },
5673 },
5674 .write = write_jedec_1,
5675 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005676 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005677 },
5678
5679 {
5680 .vendor = "Hyundai",
5681 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005682 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005683 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005684 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005685 .total_size = 256,
5686 .page_size = 256 * 1024,
5687 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5688 .tested = TEST_UNTESTED,
5689 .probe = probe_jedec,
5690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5691 .block_erasers =
5692 {
5693 {
5694 .eraseblocks = {
5695 {16 * 1024, 1},
5696 {8 * 1024, 2},
5697 {32 * 1024, 1},
5698 {64 * 1024, 3},
5699 },
5700 .block_erase = erase_sector_jedec,
5701 }, {
5702 .eraseblocks = { {256 * 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 = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005709 },
5710
5711 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005712 .vendor = "Hyundai",
5713 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005714 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005715 .manufacture_id = HYUNDAI_ID,
5716 .model_id = HYUNDAI_HY29F040A,
5717 .total_size = 512,
5718 .page_size = 64 * 1024,
5719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5720 .tested = TEST_UNTESTED,
5721 .probe = probe_jedec,
5722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = { {64 * 1024, 8} },
5727 .block_erase = erase_sector_jedec,
5728 }, {
5729 .eraseblocks = { {512 * 1024, 1} },
5730 .block_erase = erase_chip_block_jedec,
5731 },
5732 },
5733 .write = write_jedec_1,
5734 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005735 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005736 },
5737
5738 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005739 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005740 .name = "25F160S33B8",
5741 .bustype = BUS_SPI,
5742 .manufacture_id = INTEL_ID,
5743 .model_id = INTEL_25F160S33B8,
5744 .total_size = 2048,
5745 .page_size = 256,
5746 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5747 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5748 .tested = TEST_UNTESTED,
5749 .probe = probe_spi_rdid,
5750 .probe_timing = TIMING_ZERO,
5751 .block_erasers =
5752 {
5753 {
5754 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5755 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5756 * have no effect on the memory contents, but sets a flag in the SR.
5757 .eraseblocks = {
5758 {8 * 1024, 8},
5759 {64 * 1024, 31} // inaccessible
5760 },
5761 .block_erase = spi_block_erase_40,
5762 }, { */
5763 .eraseblocks = { {64 * 1024, 32} },
5764 .block_erase = spi_block_erase_d8,
5765 }, {
5766 .eraseblocks = { {2 * 1024 * 1024, 1} },
5767 .block_erase = spi_block_erase_c7,
5768 }
5769 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005770 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5771 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005772 .write = spi_chip_write_256,
5773 .read = spi_chip_read, /* also fast read 0x0B */
5774 .voltage = {2700, 3600},
5775 },
5776
5777 {
5778 .vendor = "Intel",
5779 .name = "25F160S33T8",
5780 .bustype = BUS_SPI,
5781 .manufacture_id = INTEL_ID,
5782 .model_id = INTEL_25F160S33T8,
5783 .total_size = 2048,
5784 .page_size = 256,
5785 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5787 .tested = TEST_UNTESTED,
5788 .probe = probe_spi_rdid,
5789 .probe_timing = TIMING_ZERO,
5790 .block_erasers =
5791 {
5792 {
5793 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5794 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5795 * have no effect on the memory contents, but sets a flag in the SR.
5796 .eraseblocks = {
5797 {64 * 1024, 31}, // inaccessible
5798 {8 * 1024, 8}
5799 },
5800 .block_erase = spi_block_erase_40,
5801 }, { */
5802 .eraseblocks = { {64 * 1024, 32} },
5803 .block_erase = spi_block_erase_d8,
5804 }, {
5805 .eraseblocks = { {2 * 1024 * 1024, 1} },
5806 .block_erase = spi_block_erase_c7,
5807 }
5808 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005809 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5810 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005811 .write = spi_chip_write_256,
5812 .read = spi_chip_read, /* also fast read 0x0B */
5813 .voltage = {2700, 3600},
5814 },
5815
5816 {
5817 .vendor = "Intel",
5818 .name = "25F320S33B8",
5819 .bustype = BUS_SPI,
5820 .manufacture_id = INTEL_ID,
5821 .model_id = INTEL_25F320S33B8,
5822 .total_size = 4096,
5823 .page_size = 256,
5824 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5826 .tested = TEST_UNTESTED,
5827 .probe = probe_spi_rdid,
5828 .probe_timing = TIMING_ZERO,
5829 .block_erasers =
5830 {
5831 {
5832 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5833 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5834 * have no effect on the memory contents, but sets a flag in the SR.
5835 .eraseblocks = {
5836 {8 * 1024, 8},
5837 {64 * 1024, 63} // inaccessible
5838 },
5839 .block_erase = spi_block_erase_40,
5840 }, { */
5841 .eraseblocks = { {64 * 1024, 64} },
5842 .block_erase = spi_block_erase_d8,
5843 }, {
5844 .eraseblocks = { {4 * 1024 * 1024, 1} },
5845 .block_erase = spi_block_erase_c7,
5846 }
5847 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005848 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5849 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005850 .write = spi_chip_write_256,
5851 .read = spi_chip_read, /* also fast read 0x0B */
5852 .voltage = {2700, 3600},
5853 },
5854
5855 {
5856 .vendor = "Intel",
5857 .name = "25F320S33T8",
5858 .bustype = BUS_SPI,
5859 .manufacture_id = INTEL_ID,
5860 .model_id = INTEL_25F320S33T8,
5861 .total_size = 4096,
5862 .page_size = 256,
5863 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5865 .tested = TEST_UNTESTED,
5866 .probe = probe_spi_rdid,
5867 .probe_timing = TIMING_ZERO,
5868 .block_erasers =
5869 {
5870 {
5871 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5872 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5873 * have no effect on the memory contents, but sets a flag in the SR.
5874 .eraseblocks = {
5875 {64 * 1024, 63}, // inaccessible
5876 {8 * 1024, 8}
5877 },
5878 .block_erase = spi_block_erase_40,
5879 }, { */
5880 .eraseblocks = { {64 * 1024, 64} },
5881 .block_erase = spi_block_erase_d8,
5882 }, {
5883 .eraseblocks = { {4 * 1024 * 1024, 1} },
5884 .block_erase = spi_block_erase_c7,
5885 }
5886 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005887 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5888 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005889 .write = spi_chip_write_256,
5890 .read = spi_chip_read, /* also fast read 0x0B */
5891 .voltage = {2700, 3600},
5892 },
5893
5894 {
5895 .vendor = "Intel",
5896 .name = "25F640S33B8",
5897 .bustype = BUS_SPI,
5898 .manufacture_id = INTEL_ID,
5899 .model_id = INTEL_25F640S33B8,
5900 .total_size = 8192,
5901 .page_size = 256,
5902 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5904 .tested = TEST_UNTESTED,
5905 .probe = probe_spi_rdid,
5906 .probe_timing = TIMING_ZERO,
5907 .block_erasers =
5908 {
5909 {
5910 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5911 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5912 * have no effect on the memory contents, but sets a flag in the SR.
5913 .eraseblocks = {
5914 {8 * 1024, 8},
5915 {64 * 1024, 127} // inaccessible
5916 },
5917 .block_erase = spi_block_erase_40,
5918 }, { */
5919 .eraseblocks = { {64 * 1024, 128} },
5920 .block_erase = spi_block_erase_d8,
5921 }, {
5922 .eraseblocks = { {8 * 1024 * 1024, 1} },
5923 .block_erase = spi_block_erase_c7,
5924 }
5925 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005926 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5927 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005928 .write = spi_chip_write_256,
5929 .read = spi_chip_read, /* also fast read 0x0B */
5930 .voltage = {2700, 3600},
5931 },
5932
5933 {
5934 .vendor = "Intel",
5935 .name = "25F640S33T8",
5936 .bustype = BUS_SPI,
5937 .manufacture_id = INTEL_ID,
5938 .model_id = INTEL_25F640S33T8,
5939 .total_size = 8192,
5940 .page_size = 256,
5941 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5943 .tested = TEST_UNTESTED,
5944 .probe = probe_spi_rdid,
5945 .probe_timing = TIMING_ZERO,
5946 .block_erasers =
5947 {
5948 {
5949 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5950 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5951 * have no effect on the memory contents, but sets a flag in the SR.
5952 .eraseblocks = {
5953 {64 * 1024, 127}, // inaccessible
5954 {8 * 1024, 8}
5955 },
5956 .block_erase = spi_block_erase_40,
5957 }, { */
5958 .eraseblocks = { {64 * 1024, 128} },
5959 .block_erase = spi_block_erase_d8,
5960 }, {
5961 .eraseblocks = { {8 * 1024 * 1024, 1} },
5962 .block_erase = spi_block_erase_c7,
5963 }
5964 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005965 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5966 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005967 .write = spi_chip_write_256,
5968 .read = spi_chip_read, /* also fast read 0x0B */
5969 .voltage = {2700, 3600},
5970 },
5971
5972 {
5973 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005974 .name = "28F001BN/BX-B",
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_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005978 .total_size = 128,
5979 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005980 .tested = TEST_UNTESTED,
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 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005986 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005987 {8 * 1024, 1},
5988 {4 * 1024, 2},
5989 {112 * 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 = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006002 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006003 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006004 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006005 .total_size = 128,
6006 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006007 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006008 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006009 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006010 .block_erasers =
6011 {
6012 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006013 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006014 {112 * 1024, 1},
6015 {4 * 1024, 2},
6016 {8 * 1024, 1},
6017 },
Sean Nelson28accc22010-03-19 18:47:06 +00006018 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006019 },
6020 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006021 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006023 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006024 },
6025
6026 {
6027 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006028 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006029 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006030 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006031 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006032 .total_size = 256,
6033 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006034 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006035 .probe = probe_82802ab,
6036 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6037 .block_erasers =
6038 {
6039 {
6040 .eraseblocks = {
6041 {128 * 1024, 1},
6042 {96 * 1024, 1},
6043 {8 * 1024, 2},
6044 {16 * 1024, 1},
6045 },
6046 .block_erase = erase_block_82802ab,
6047 },
6048 },
6049 .write = write_82802ab,
6050 .read = read_memmapped,
6051 },
6052
6053 {
6054 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006055 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006056 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006057 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006058 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006059 .total_size = 512,
6060 .page_size = 256,
6061 .tested = TEST_UNTESTED,
6062 .probe = probe_82802ab,
6063 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006064 .block_erasers =
6065 {
6066 {
6067 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006068 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006069 },
6070 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006071 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006072 .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-B",
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_28F004B,
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 {16 * 1024, 1},
6092 {8 * 1024, 2},
6093 {96 * 1024, 1},
6094 {128 * 1024, 3},
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 = "28F004B5/BE/BV/BX-T",
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_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006109 .total_size = 512,
6110 .page_size = 128 * 1024, /* maximal block size */
6111 .tested = TEST_UNTESTED,
6112 .probe = probe_82802ab,
6113 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6114 .block_erasers =
6115 {
6116 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006117 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006118 {128 * 1024, 3},
6119 {96 * 1024, 1},
6120 {8 * 1024, 2},
6121 {16 * 1024, 1},
6122 },
6123 .block_erase = erase_block_82802ab,
6124 },
6125 },
6126 .write = write_82802ab,
6127 .read = read_memmapped,
6128 },
6129
6130 {
6131 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006132 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006133 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006134 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006135 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006136 .total_size = 512,
6137 .page_size = 128 * 1024, /* maximal block size */
6138 .feature_bits = FEATURE_ADDR_SHIFTED,
6139 .tested = TEST_UNTESTED,
6140 .probe = probe_82802ab,
6141 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6142 .block_erasers =
6143 {
6144 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006145 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006146 {16 * 1024, 1},
6147 {8 * 1024, 2},
6148 {96 * 1024, 1},
6149 {128 * 1024, 3},
6150 },
6151 .block_erase = erase_block_82802ab,
6152 },
6153 },
6154 .write = write_82802ab,
6155 .read = read_memmapped,
6156 },
6157
6158 {
6159 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006160 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006161 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006162 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006163 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006164 .total_size = 512,
6165 .page_size = 128 * 1024, /* maximal block size */
6166 .feature_bits = FEATURE_ADDR_SHIFTED,
6167 .tested = TEST_UNTESTED,
6168 .probe = probe_82802ab,
6169 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6170 .block_erasers =
6171 {
6172 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006173 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006174 {128 * 1024, 3},
6175 {96 * 1024, 1},
6176 {8 * 1024, 2},
6177 {16 * 1024, 1},
6178 },
6179 .block_erase = erase_block_82802ab,
6180 },
6181 },
6182 .write = write_82802ab,
6183 .read = read_memmapped,
6184 },
6185
6186 {
6187 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006189 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006191 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 .total_size = 512,
6193 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006194 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006195 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006197 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006198 .block_erasers =
6199 {
6200 {
6201 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006202 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006203 },
6204 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006205 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006206 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006208 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006209 },
6210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006211 {
6212 .vendor = "Intel",
6213 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006214 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006215 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006216 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006217 .total_size = 1024,
6218 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006219 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006220 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006221 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006222 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006223 .block_erasers =
6224 {
6225 {
6226 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006227 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006228 },
6229 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006230 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006231 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006233 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006234 },
6235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006236 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006237 .vendor = "ISSI",
6238 .name = "IS29GL064B",
6239 .bustype = BUS_PARALLEL,
6240 .manufacture_id = ISSI_ID,
6241 .model_id = ISSI_PMC_IS29GL064B,
6242 .total_size = 8192,
6243 .page_size = 128 * 1024, /* actual page size is 16 */
6244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6245 .tested = TEST_UNTESTED,
6246 .probe = probe_jedec_29gl,
6247 .probe_timing = TIMING_ZERO,
6248 .block_erasers =
6249 {
6250 {
6251 .eraseblocks = {
6252 {8 * 1024, 8},
6253 {64 * 1024, 127},
6254 },
6255 .block_erase = erase_sector_jedec,
6256 }, {
6257 .eraseblocks = { {8 * 1024 * 1024, 1} },
6258 .block_erase = erase_chip_block_jedec,
6259 },
6260 },
6261 .write = write_jedec_1,
6262 .read = read_memmapped,
6263 .voltage = {2700, 3600},
6264 },
6265
6266 {
6267 .vendor = "ISSI",
6268 .name = "IS29GL064T",
6269 .bustype = BUS_PARALLEL,
6270 .manufacture_id = ISSI_ID,
6271 .model_id = ISSI_PMC_IS29GL064T,
6272 .total_size = 8192,
6273 .page_size = 128 * 1024, /* actual page size is 16 */
6274 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6275 .tested = TEST_UNTESTED,
6276 .probe = probe_jedec_29gl,
6277 .probe_timing = TIMING_ZERO,
6278 .block_erasers =
6279 {
6280 {
6281 .eraseblocks = {
6282 {64 * 1024, 127},
6283 {8 * 1024, 8},
6284 },
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 = "IS29GL064H/L",
6299 .bustype = BUS_PARALLEL,
6300 .manufacture_id = ISSI_ID,
6301 .model_id = ISSI_PMC_IS29GL064HL,
6302 .total_size = 8192,
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 = { {64 * 1024, 128} },
6312 .block_erase = erase_sector_jedec,
6313 }, {
6314 .eraseblocks = { {8 * 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 {
6324 .vendor = "ISSI",
6325 .name = "IS29GL128H/L",
6326 .bustype = BUS_PARALLEL,
6327 .manufacture_id = ISSI_ID,
6328 .model_id = ISSI_PMC_IS29GL128HL,
6329 .total_size = 16384,
6330 .page_size = 128 * 1024, /* actual page size is 16 */
6331 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6332 .tested = TEST_UNTESTED,
6333 .probe = probe_jedec_29gl,
6334 .probe_timing = TIMING_ZERO,
6335 .block_erasers =
6336 {
6337 {
6338 .eraseblocks = { {128 * 1024, 128} },
6339 .block_erase = erase_sector_jedec,
6340 }, {
6341 .eraseblocks = { {16 * 1024 * 1024, 1} },
6342 .block_erase = erase_chip_block_jedec,
6343 },
6344 },
6345 .write = write_jedec_1,
6346 .read = read_memmapped,
6347 .voltage = {2700, 3600},
6348 },
6349
6350 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006351 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006352 .name = "MX23L1654",
6353 .bustype = BUS_SPI,
6354 .manufacture_id = MACRONIX_ID,
6355 .model_id = MACRONIX_MX23L1654,
6356 .total_size = 2048,
6357 .page_size = 256,
6358 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6359 .probe = probe_spi_rdid,
6360 .probe_timing = TIMING_ZERO,
6361 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
6362 .read = spi_chip_read, /* Fast read (0x0B) supported */
6363 .voltage = {3000, 3600},
6364 },
6365
6366 {
6367 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006368 .name = "MX23L3254",
6369 .bustype = BUS_SPI,
6370 .manufacture_id = MACRONIX_ID,
6371 .model_id = MACRONIX_MX23L3254,
6372 .total_size = 4096,
6373 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006374 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006375 .probe = probe_spi_rdid,
6376 .probe_timing = TIMING_ZERO,
6377 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6378 .read = spi_chip_read, /* Fast read (0x0B) supported */
6379 .voltage = {3000, 3600},
6380 },
6381
6382 {
6383 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006384 .name = "MX23L6454",
6385 .bustype = BUS_SPI,
6386 .manufacture_id = MACRONIX_ID,
6387 .model_id = MACRONIX_MX23L6454,
6388 .total_size = 8192,
6389 .page_size = 256,
6390 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6391 .probe = probe_spi_rdid,
6392 .probe_timing = TIMING_ZERO,
6393 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
6394 .read = spi_chip_read, /* Fast read (0x0B) supported */
6395 .voltage = {3000, 3600},
6396 },
6397
6398 {
6399 .vendor = "Macronix",
6400 .name = "MX23L12854",
6401 .bustype = BUS_SPI,
6402 .manufacture_id = MACRONIX_ID,
6403 .model_id = MACRONIX_MX23L12854,
6404 .total_size = 16384,
6405 .page_size = 256,
6406 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6407 .probe = probe_spi_rdid,
6408 .probe_timing = TIMING_ZERO,
6409 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
6410 .read = spi_chip_read, /* Fast read (0x0B) supported */
6411 .voltage = {3000, 3600},
6412 },
6413
6414 {
6415 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006416 .name = "MX25L512(E)/MX25V512(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_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 .total_size = 64,
6421 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006422 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006423 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006424 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006425 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006426 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006427 .block_erasers =
6428 {
6429 {
6430 .eraseblocks = { {4 * 1024, 16} },
6431 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006432 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006433 .eraseblocks = { {64 * 1024, 1} },
6434 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006435 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006436 .eraseblocks = { {64 * 1024, 1} },
6437 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006438 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006439 .eraseblocks = { {64 * 1024, 1} },
6440 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006441 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006442 .eraseblocks = { {64 * 1024, 1} },
6443 .block_erase = spi_block_erase_c7,
6444 },
6445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006446 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006447 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006448 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006449 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6450 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006451 },
6452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 {
6454 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006455 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006456 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006457 .manufacture_id = MACRONIX_ID,
6458 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006459 .total_size = 128,
6460 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006461 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006462 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006463 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006464 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006465 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006466 .block_erasers =
6467 {
6468 {
6469 .eraseblocks = { {4 * 1024, 32} },
6470 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006471 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006472 .eraseblocks = { {64 * 1024, 2} },
6473 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006474 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006475 .eraseblocks = { {128 * 1024, 1} },
6476 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006477 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006478 .eraseblocks = { {128 * 1024, 1} },
6479 .block_erase = spi_block_erase_c7,
6480 },
6481 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006482 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006483 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006484 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006485 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006486 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006487 },
6488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 {
6490 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006491 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006492 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006493 .manufacture_id = MACRONIX_ID,
6494 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006495 .total_size = 256,
6496 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006497 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006498 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006499 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006500 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006501 .block_erasers =
6502 {
6503 {
6504 .eraseblocks = { {4 * 1024, 64} },
6505 .block_erase = spi_block_erase_20,
6506 }, {
6507 .eraseblocks = { {64 * 1024, 4} },
6508 .block_erase = spi_block_erase_52,
6509 }, {
6510 .eraseblocks = { {64 * 1024, 4} },
6511 .block_erase = spi_block_erase_d8,
6512 }, {
6513 .eraseblocks = { {256 * 1024, 1} },
6514 .block_erase = spi_block_erase_60,
6515 }, {
6516 .eraseblocks = { {256 * 1024, 1} },
6517 .block_erase = spi_block_erase_c7,
6518 },
6519 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006520 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006521 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006522 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006523 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006525 },
6526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006527 {
6528 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006529 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006530 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006531 .manufacture_id = MACRONIX_ID,
6532 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006533 .total_size = 512,
6534 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006535 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006536 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006537 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006538 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006539 .block_erasers =
6540 {
6541 {
6542 .eraseblocks = { {4 * 1024, 128} },
6543 .block_erase = spi_block_erase_20,
6544 }, {
6545 .eraseblocks = { {64 * 1024, 8} },
6546 .block_erase = spi_block_erase_52,
6547 }, {
6548 .eraseblocks = { {64 * 1024, 8} },
6549 .block_erase = spi_block_erase_d8,
6550 }, {
6551 .eraseblocks = { {512 * 1024, 1} },
6552 .block_erase = spi_block_erase_60,
6553 }, {
6554 .eraseblocks = { {512 * 1024, 1} },
6555 .block_erase = spi_block_erase_c7,
6556 },
6557 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006558 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006559 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006560 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006561 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006563 },
6564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006565 {
6566 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006567 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006568 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006569 .manufacture_id = MACRONIX_ID,
6570 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006571 .total_size = 1024,
6572 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006573 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006574 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006576 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006577 .block_erasers =
6578 {
6579 {
6580 .eraseblocks = { {4 * 1024, 256} },
6581 .block_erase = spi_block_erase_20,
6582 }, {
6583 .eraseblocks = { {64 * 1024, 16} },
6584 .block_erase = spi_block_erase_52,
6585 }, {
6586 .eraseblocks = { {64 * 1024, 16} },
6587 .block_erase = spi_block_erase_d8,
6588 }, {
6589 .eraseblocks = { {1024 * 1024, 1} },
6590 .block_erase = spi_block_erase_60,
6591 }, {
6592 .eraseblocks = { {1024 * 1024, 1} },
6593 .block_erase = spi_block_erase_c7,
6594 },
6595 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006596 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006597 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006598 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006599 .read = spi_chip_read, /* Fast read (0x0B) supported */
6600 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006601 },
6602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006603 {
6604 .vendor = "Macronix",
6605 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006606 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006607 .manufacture_id = MACRONIX_ID,
6608 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 .total_size = 2048,
6610 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006611 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006613 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006614 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006615 .block_erasers =
6616 {
6617 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006618 .eraseblocks = { {64 * 1024, 32} },
6619 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006620 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006621 .eraseblocks = { {64 * 1024, 32} },
6622 .block_erase = spi_block_erase_d8,
6623 }, {
6624 .eraseblocks = { {2 * 1024 * 1024, 1} },
6625 .block_erase = spi_block_erase_60,
6626 }, {
6627 .eraseblocks = { {2 * 1024 * 1024, 1} },
6628 .block_erase = spi_block_erase_c7,
6629 },
6630 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006631 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006632 .unlock = spi_disable_blockprotect,
6633 .write = spi_chip_write_256,
6634 .read = spi_chip_read, /* Fast read (0x0B) supported */
6635 .voltage = {2700, 3600},
6636 },
6637
6638 {
6639 .vendor = "Macronix",
6640 .name = "MX25L1605A/MX25L1606E",
6641 .bustype = BUS_SPI,
6642 .manufacture_id = MACRONIX_ID,
6643 .model_id = MACRONIX_MX25L1605,
6644 .total_size = 2048,
6645 .page_size = 256,
6646 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6648 .tested = TEST_OK_PREW,
6649 .probe = probe_spi_rdid,
6650 .probe_timing = TIMING_ZERO,
6651 .block_erasers =
6652 {
6653 {
6654 .eraseblocks = { {4 * 1024, 512} },
6655 .block_erase = spi_block_erase_20,
6656 }, {
6657 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006658 .block_erase = spi_block_erase_52,
6659 }, {
6660 .eraseblocks = { {64 * 1024, 32} },
6661 .block_erase = spi_block_erase_d8,
6662 }, {
6663 .eraseblocks = { {2 * 1024 * 1024, 1} },
6664 .block_erase = spi_block_erase_60,
6665 }, {
6666 .eraseblocks = { {2 * 1024 * 1024, 1} },
6667 .block_erase = spi_block_erase_c7,
6668 },
6669 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006670 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006671 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006672 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006673 .read = spi_chip_read, /* Fast read (0x0B) supported */
6674 .voltage = {2700, 3600},
6675 },
6676
6677 {
6678 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006679 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006680 .bustype = BUS_SPI,
6681 .manufacture_id = MACRONIX_ID,
6682 .model_id = MACRONIX_MX25L1605,
6683 .total_size = 2048,
6684 .page_size = 256,
6685 .feature_bits = FEATURE_WRSR_WREN,
6686 .tested = TEST_OK_PREW,
6687 .probe = probe_spi_rdid,
6688 .probe_timing = TIMING_ZERO,
6689 .block_erasers =
6690 {
6691 {
6692 .eraseblocks = { {4 * 1024, 512} },
6693 .block_erase = spi_block_erase_20,
6694 }, {
6695 .eraseblocks = { {64 * 1024, 32} },
6696 .block_erase = spi_block_erase_d8,
6697 }, {
6698 .eraseblocks = { {2 * 1024 * 1024, 1} },
6699 .block_erase = spi_block_erase_60,
6700 }, {
6701 .eraseblocks = { {2 * 1024 * 1024, 1} },
6702 .block_erase = spi_block_erase_c7,
6703 },
6704 },
Stefan Tauner6697f712014-08-06 15:09:15 +00006705 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006706 .unlock = spi_disable_blockprotect,
6707 .write = spi_chip_write_256,
6708 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006709 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006710 },
6711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006712 {
6713 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006714 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006715 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006716 .manufacture_id = MACRONIX_ID,
6717 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006718 .total_size = 2048,
6719 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006720 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006722 .tested = TEST_UNTESTED,
6723 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006724 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006725 .block_erasers =
6726 {
6727 {
6728 .eraseblocks = { {4 * 1024, 512} },
6729 .block_erase = spi_block_erase_20,
6730 }, {
6731 .eraseblocks = { {64 * 1024, 32} },
6732 .block_erase = spi_block_erase_d8,
6733 }, {
6734 .eraseblocks = { {2 * 1024 * 1024, 1} },
6735 .block_erase = spi_block_erase_60,
6736 }, {
6737 .eraseblocks = { {2 * 1024 * 1024, 1} },
6738 .block_erase = spi_block_erase_c7,
6739 }
6740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006741 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006742 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006743 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006744 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006745 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006746 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006747
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006748 {
6749 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006750 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006751 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006752 .manufacture_id = MACRONIX_ID,
6753 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006754 .total_size = 2048,
6755 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006756 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006758 .tested = TEST_UNTESTED,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
6761 .block_erasers =
6762 {
6763 {
6764 .eraseblocks = { {4 * 1024, 512} },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {64 * 1024, 32} },
6768 .block_erase = spi_block_erase_d8,
6769 }, {
6770 .eraseblocks = { {2 * 1024 * 1024, 1} },
6771 .block_erase = spi_block_erase_60,
6772 }, {
6773 .eraseblocks = { {2 * 1024 * 1024, 1} },
6774 .block_erase = spi_block_erase_c7,
6775 }
6776 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006777 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006778 .unlock = spi_disable_blockprotect,
6779 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006780 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006781 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006782 },
6783
6784 {
6785 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006786 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006787 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006788 .manufacture_id = MACRONIX_ID,
6789 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006790 .total_size = 4096,
6791 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006792 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006793 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006794 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006795 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006796 .block_erasers =
6797 {
6798 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006799 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006800 .block_erase = spi_block_erase_20,
6801 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006802 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006803 .block_erase = spi_block_erase_d8,
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_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006813 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006814 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006815 .read = spi_chip_read, /* Fast read (0x0B) supported */
6816 .voltage = {2700, 3600},
6817 },
6818
6819 {
6820 .vendor = "Macronix",
6821 .name = "MX25L3205D/MX25L3208D",
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_OK_PREW,
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 = { {64 * 1024, 64} },
6839 .block_erase = spi_block_erase_d8,
6840 }, {
6841 .eraseblocks = { {4 * 1024 * 1024, 1} },
6842 .block_erase = spi_block_erase_60,
6843 }, {
6844 .eraseblocks = { {4 * 1024 * 1024, 1} },
6845 .block_erase = spi_block_erase_c7,
6846 },
6847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006848 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006849 .unlock = spi_disable_blockprotect,
6850 .write = spi_chip_write_256,
6851 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6852 .voltage = {2700, 3600},
6853 },
6854
6855 {
6856 .vendor = "Macronix",
6857 .name = "MX25L3206E",
6858 .bustype = BUS_SPI,
6859 .manufacture_id = MACRONIX_ID,
6860 .model_id = MACRONIX_MX25L3205,
6861 .total_size = 4096,
6862 .page_size = 256,
6863 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6865 .tested = TEST_OK_PREW,
6866 .probe = probe_spi_rdid,
6867 .probe_timing = TIMING_ZERO,
6868 .block_erasers =
6869 {
6870 {
6871 .eraseblocks = { {4 * 1024, 1024} },
6872 .block_erase = spi_block_erase_20,
6873 }, {
6874 .eraseblocks = { {64 * 1024, 64} },
6875 .block_erase = spi_block_erase_d8,
6876 }, {
6877 .eraseblocks = { {64 * 1024, 64} },
6878 .block_erase = spi_block_erase_52,
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,
Stefan Tauner226037d2013-03-16 01:22:12 +00006888 .unlock = spi_disable_blockprotect,
6889 .write = spi_chip_write_256,
6890 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006891 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006892 },
6893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006894 {
6895 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006896 .name = "MX25L3273E",
6897 .bustype = BUS_SPI,
6898 .manufacture_id = MACRONIX_ID,
6899 .model_id = MACRONIX_MX25L3205,
6900 .total_size = 4096,
6901 .page_size = 256,
6902 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6904 .tested = TEST_UNTESTED,
6905 .probe = probe_spi_rdid,
6906 .probe_timing = TIMING_ZERO,
6907 .block_erasers =
6908 {
6909 {
6910 .eraseblocks = { {4 * 1024, 1024} },
6911 .block_erase = spi_block_erase_20,
6912 }, {
6913 .eraseblocks = { {32 * 1024, 128} },
6914 .block_erase = spi_block_erase_52,
6915 }, {
6916 .eraseblocks = { {64 * 1024, 64} },
6917 .block_erase = spi_block_erase_d8,
6918 }, {
6919 .eraseblocks = { {4 * 1024 * 1024, 1} },
6920 .block_erase = spi_block_erase_60,
6921 }, {
6922 .eraseblocks = { {4 * 1024 * 1024, 1} },
6923 .block_erase = spi_block_erase_c7,
6924 },
6925 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006926 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006927 .unlock = spi_disable_blockprotect,
6928 .write = spi_chip_write_256,
6929 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6930 .voltage = {2700, 3600},
6931 },
6932
6933 {
6934 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006935 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006936 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006937 .manufacture_id = MACRONIX_ID,
6938 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006939 .total_size = 4096,
6940 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006941 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006943 .tested = TEST_UNTESTED,
6944 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006945 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006946 .block_erasers =
6947 {
6948 {
6949 .eraseblocks = { {4 * 1024, 1024} },
6950 .block_erase = spi_block_erase_20,
6951 }, {
6952 .eraseblocks = { {64 * 1024, 64} },
6953 .block_erase = spi_block_erase_d8,
6954 }, {
6955 .eraseblocks = { {4 * 1024 * 1024, 1} },
6956 .block_erase = spi_block_erase_60,
6957 }, {
6958 .eraseblocks = { {4 * 1024 * 1024, 1} },
6959 .block_erase = spi_block_erase_c7,
6960 }
6961 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006962 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006963 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006964 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006965 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006966 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006967 },
6968
6969 {
6970 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006971 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006972 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006973 .manufacture_id = MACRONIX_ID,
6974 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006975 .total_size = 8192,
6976 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006977 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6978 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006981 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006982 .block_erasers =
6983 {
6984 {
6985 .eraseblocks = { {64 * 1024, 128} },
6986 .block_erase = spi_block_erase_20,
6987 }, {
6988 .eraseblocks = { {64 * 1024, 128} },
6989 .block_erase = spi_block_erase_d8,
6990 }, {
6991 .eraseblocks = { {8 * 1024 * 1024, 1} },
6992 .block_erase = spi_block_erase_60,
6993 }, {
6994 .eraseblocks = { {8 * 1024 * 1024, 1} },
6995 .block_erase = spi_block_erase_c7,
6996 }
6997 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006998 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006999 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007000 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007001 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007002 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007003 },
7004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 {
7006 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007007 .name = "MX25L6406E/MX25L6436E",
7008 .bustype = BUS_SPI,
7009 .manufacture_id = MACRONIX_ID,
7010 .model_id = MACRONIX_MX25L6405,
7011 .total_size = 8192,
7012 .page_size = 256,
7013 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
7014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7015 .tested = TEST_OK_PREW,
7016 .probe = probe_spi_rdid,
7017 .probe_timing = TIMING_ZERO,
7018 .block_erasers =
7019 {
7020 {
7021 .eraseblocks = { {4 * 1024, 2048} },
7022 .block_erase = spi_block_erase_20,
7023 }, {
7024 .eraseblocks = { {64 * 1024, 128} },
7025 .block_erase = spi_block_erase_d8,
7026 }, {
7027 .eraseblocks = { {8 * 1024 * 1024, 1} },
7028 .block_erase = spi_block_erase_60,
7029 }, {
7030 .eraseblocks = { {8 * 1024 * 1024, 1} },
7031 .block_erase = spi_block_erase_c7,
7032 }
7033 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007034 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007035 .unlock = spi_disable_blockprotect,
7036 .write = spi_chip_write_256,
7037 .read = spi_chip_read,
7038 .voltage = {2700, 3600},
7039 },
7040
7041 {
7042 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007043 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007044 .bustype = BUS_SPI,
7045 .manufacture_id = MACRONIX_ID,
7046 .model_id = MACRONIX_MX25L6405,
7047 .total_size = 8192,
7048 .page_size = 256,
7049 /* supports SFDP */
7050 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7052 .tested = TEST_OK_PREW,
7053 .probe = probe_spi_rdid,
7054 .probe_timing = TIMING_ZERO,
7055 .block_erasers =
7056 {
7057 {
7058 .eraseblocks = { {4 * 1024, 2048} },
7059 .block_erase = spi_block_erase_20,
7060 }, {
7061 .eraseblocks = { {32 * 1024, 256} },
7062 .block_erase = spi_block_erase_52,
7063 }, {
7064 .eraseblocks = { {64 * 1024, 128} },
7065 .block_erase = spi_block_erase_d8,
7066 }, {
7067 .eraseblocks = { {8 * 1024 * 1024, 1} },
7068 .block_erase = spi_block_erase_60,
7069 }, {
7070 .eraseblocks = { {8 * 1024 * 1024, 1} },
7071 .block_erase = spi_block_erase_c7,
7072 }
7073 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007074 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007075 .unlock = spi_disable_blockprotect,
7076 .write = spi_chip_write_256,
7077 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7078 .voltage = {2700, 3600},
7079 },
7080
7081 {
7082 .vendor = "Macronix",
7083 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007084 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007085 .manufacture_id = MACRONIX_ID,
7086 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007087 .total_size = 16384,
7088 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007089 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
7090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007091 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007093 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007094 .block_erasers =
7095 {
7096 {
7097 .eraseblocks = { {4 * 1024, 4096} },
7098 .block_erase = spi_block_erase_20,
7099 }, {
7100 .eraseblocks = { {64 * 1024, 256} },
7101 .block_erase = spi_block_erase_d8,
7102 }, {
7103 .eraseblocks = { {16 * 1024 * 1024, 1} },
7104 .block_erase = spi_block_erase_60,
7105 }, {
7106 .eraseblocks = { {16 * 1024 * 1024, 1} },
7107 .block_erase = spi_block_erase_c7,
7108 }
7109 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007110 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007111 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007112 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007113 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007114 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007115 },
7116
7117 {
7118 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007119 .name = "MX25U1635E",
7120 .bustype = BUS_SPI,
7121 .manufacture_id = MACRONIX_ID,
7122 .model_id = MACRONIX_MX25U1635E,
7123 .total_size = 2048,
7124 .page_size = 256,
7125 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7126 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7128 .tested = TEST_UNTESTED,
7129 .probe = probe_spi_rdid,
7130 .probe_timing = TIMING_ZERO,
7131 .block_erasers =
7132 {
7133 {
7134 .eraseblocks = { {4 * 1024, 512} },
7135 .block_erase = spi_block_erase_20,
7136 }, {
7137 .eraseblocks = { {32 * 1024, 64} },
7138 .block_erase = spi_block_erase_52,
7139 }, {
7140 .eraseblocks = { {64 * 1024, 32} },
7141 .block_erase = spi_block_erase_d8,
7142 }, {
7143 .eraseblocks = { {2 * 1024 * 1024, 1} },
7144 .block_erase = spi_block_erase_60,
7145 }, {
7146 .eraseblocks = { {2 * 1024 * 1024, 1} },
7147 .block_erase = spi_block_erase_c7,
7148 }
7149 },
7150 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007151 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007152 .unlock = spi_disable_blockprotect,
7153 .write = spi_chip_write_256,
7154 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7155 .voltage = {1650, 2000},
7156 },
7157
7158 {
7159 .vendor = "Macronix",
7160 .name = "MX25U3235E/F",
7161 .bustype = BUS_SPI,
7162 .manufacture_id = MACRONIX_ID,
7163 .model_id = MACRONIX_MX25U3235E,
7164 .total_size = 4096,
7165 .page_size = 256,
7166 /* F model supports SFDP */
7167 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7168 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7170 .tested = TEST_OK_PREW,
7171 .probe = probe_spi_rdid,
7172 .probe_timing = TIMING_ZERO,
7173 .block_erasers =
7174 {
7175 {
7176 .eraseblocks = { {4 * 1024, 1024} },
7177 .block_erase = spi_block_erase_20,
7178 }, {
7179 .eraseblocks = { {32 * 1024, 128} },
7180 .block_erase = spi_block_erase_52,
7181 }, {
7182 .eraseblocks = { {64 * 1024, 64} },
7183 .block_erase = spi_block_erase_d8,
7184 }, {
7185 .eraseblocks = { {4 * 1024 * 1024, 1} },
7186 .block_erase = spi_block_erase_60,
7187 }, {
7188 .eraseblocks = { {4 * 1024 * 1024, 1} },
7189 .block_erase = spi_block_erase_c7,
7190 }
7191 },
7192 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007193 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007194 .unlock = spi_disable_blockprotect,
7195 .write = spi_chip_write_256,
7196 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7197 .voltage = {1650, 2000},
7198 },
7199
7200 {
7201 .vendor = "Macronix",
7202 .name = "MX25U6435E/F",
7203 .bustype = BUS_SPI,
7204 .manufacture_id = MACRONIX_ID,
7205 .model_id = MACRONIX_MX25U6435E,
7206 .total_size = 8192,
7207 .page_size = 256,
7208 /* F model supports SFDP */
7209 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7210 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7211 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7212 .tested = TEST_UNTESTED,
7213 .probe = probe_spi_rdid,
7214 .probe_timing = TIMING_ZERO,
7215 .block_erasers =
7216 {
7217 {
7218 .eraseblocks = { {4 * 1024, 2048} },
7219 .block_erase = spi_block_erase_20,
7220 }, {
7221 .eraseblocks = { {32 * 1024, 256} },
7222 .block_erase = spi_block_erase_52,
7223 }, {
7224 .eraseblocks = { {64 * 1024, 128} },
7225 .block_erase = spi_block_erase_d8,
7226 }, {
7227 .eraseblocks = { {8 * 1024 * 1024, 1} },
7228 .block_erase = spi_block_erase_60,
7229 }, {
7230 .eraseblocks = { {8 * 1024 * 1024, 1} },
7231 .block_erase = spi_block_erase_c7,
7232 }
7233 },
7234 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007235 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007236 .unlock = spi_disable_blockprotect,
7237 .write = spi_chip_write_256,
7238 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7239 .voltage = {1650, 2000},
7240 },
7241
7242 {
7243 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00007244 .name = "MX25U12835F",
7245 .bustype = BUS_SPI,
7246 .manufacture_id = MACRONIX_ID,
7247 .model_id = MACRONIX_MX25U12835E,
7248 .total_size = 16384,
7249 .page_size = 256,
7250 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7251 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7252 .tested = TEST_UNTESTED,
7253 .probe = probe_spi_rdid,
7254 .probe_timing = TIMING_ZERO,
7255 .block_erasers =
7256 {
7257 {
7258 .eraseblocks = { {4 * 1024, 4096} },
7259 .block_erase = spi_block_erase_20,
7260 }, {
7261 .eraseblocks = { {32 * 1024, 512} },
7262 .block_erase = spi_block_erase_52,
7263 }, {
7264 .eraseblocks = { {64 * 1024, 256} },
7265 .block_erase = spi_block_erase_d8,
7266 }, {
7267 .eraseblocks = { {16 * 1024 * 1024, 1} },
7268 .block_erase = spi_block_erase_60,
7269 }, {
7270 .eraseblocks = { {16 * 1024 * 1024, 1} },
7271 .block_erase = spi_block_erase_c7,
7272 }
7273 },
7274 /* TODO: security register */
7275 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7276 .unlock = spi_disable_blockprotect_bp3_srwd,
7277 .write = spi_chip_write_256, /* Multi I/O supported */
7278 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7279 .voltage = {1650, 2000},
7280 },
7281
7282 {
7283 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00007284 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007285 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007286 .manufacture_id = MACRONIX_ID,
7287 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007288 .total_size = 128,
7289 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007290 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7291 .tested = TEST_UNTESTED,
7292 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007293 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007294 .block_erasers =
7295 {
7296 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007297 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007298 {8 * 1024, 1},
7299 {4 * 1024, 2},
7300 {8 * 1024, 2},
7301 {32 * 1024, 1},
7302 {64 * 1024, 1},
7303 },
Sean Nelson35727f72010-01-28 23:55:12 +00007304 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007305 }, {
7306 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007307 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007308 }
7309 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007310 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007312 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007313 },
7314
7315 {
7316 .vendor = "Macronix",
7317 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007318 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007319 .manufacture_id = MACRONIX_ID,
7320 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007321 .total_size = 128,
7322 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007323 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00007324 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007325 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007326 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007327 .block_erasers =
7328 {
7329 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007330 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007331 {64 * 1024, 1},
7332 {32 * 1024, 1},
7333 {8 * 1024, 2},
7334 {4 * 1024, 2},
7335 {8 * 1024, 1},
7336 },
Sean Nelson35727f72010-01-28 23:55:12 +00007337 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007338 }, {
7339 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007340 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007341 }
7342 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007343 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007344 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007345 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007346 },
7347
7348 {
7349 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007350 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007351 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007352 .manufacture_id = MACRONIX_ID,
7353 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007354 .total_size = 256,
7355 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007356 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007357 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007358 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007359 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007360 .block_erasers =
7361 {
7362 {
7363 .eraseblocks = {
7364 {16 * 1024, 1},
7365 {8 * 1024, 2},
7366 {32 * 1024, 1},
7367 {64 * 1024, 3},
7368 },
Sean Nelson35727f72010-01-28 23:55:12 +00007369 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007370 }, {
7371 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007372 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007373 },
7374 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007375 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007376 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007377 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007378 },
7379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007380 {
7381 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007382 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007383 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007384 .manufacture_id = MACRONIX_ID,
7385 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007386 .total_size = 256,
7387 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007388 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007389 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007390 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007391 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007392 .block_erasers =
7393 {
7394 {
7395 .eraseblocks = {
7396 {64 * 1024, 3},
7397 {32 * 1024, 1},
7398 {8 * 1024, 2},
7399 {16 * 1024, 1},
7400 },
Sean Nelson35727f72010-01-28 23:55:12 +00007401 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007402 }, {
7403 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007404 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007405 },
7406 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007407 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007408 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007409 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007410 },
7411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007412 {
7413 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007414 .name = "MX29F022(N)B",
7415 .bustype = BUS_PARALLEL,
7416 .manufacture_id = MACRONIX_ID,
7417 .model_id = MACRONIX_MX29F022B,
7418 .total_size = 256,
7419 .page_size = 0, /* unused */
7420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7421 .tested = TEST_UNTESTED,
7422 .probe = probe_jedec,
7423 .probe_timing = TIMING_ZERO,
7424 .block_erasers =
7425 {
7426 {
7427 .eraseblocks = {
7428 {16 * 1024, 1},
7429 {8 * 1024, 2},
7430 {32 * 1024, 1},
7431 {64 * 1024, 3},
7432 },
7433 .block_erase = erase_sector_jedec,
7434 }, {
7435 .eraseblocks = { {256 * 1024, 1} },
7436 .block_erase = erase_chip_block_jedec,
7437 }
7438 },
7439 .write = write_jedec_1,
7440 .read = read_memmapped,
7441 .voltage = {4500, 5500},
7442 },
7443
7444 {
7445 .vendor = "Macronix",
7446 .name = "MX29F022(N)T",
7447 .bustype = BUS_PARALLEL,
7448 .manufacture_id = MACRONIX_ID,
7449 .model_id = MACRONIX_MX29F022T,
7450 .total_size = 256,
7451 .page_size = 0, /* unused */
7452 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7453 .tested = TEST_OK_PREW,
7454 .probe = probe_jedec,
7455 .probe_timing = TIMING_ZERO,
7456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = {
7460 {64 * 1024, 3},
7461 {32 * 1024, 1},
7462 {8 * 1024, 2},
7463 {16 * 1024, 1},
7464 },
7465 .block_erase = erase_sector_jedec,
7466 }, {
7467 .eraseblocks = { {256 * 1024, 1} },
7468 .block_erase = erase_chip_block_jedec,
7469 }
7470 },
7471 .write = write_jedec_1,
7472 .read = read_memmapped,
7473 .voltage = {4500, 5500},
7474 },
7475
7476 {
7477 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007478 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007479 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007480 .manufacture_id = MACRONIX_ID,
7481 .model_id = MACRONIX_MX29F040,
7482 .total_size = 512,
7483 .page_size = 64 * 1024,
7484 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7485 .tested = TEST_UNTESTED,
7486 .probe = probe_jedec,
7487 .probe_timing = TIMING_ZERO,
7488 .block_erasers =
7489 {
7490 {
7491 .eraseblocks = { {64 * 1024, 8} },
7492 .block_erase = erase_sector_jedec,
7493 }, {
7494 .eraseblocks = { {512 * 1024, 1} },
7495 .block_erase = erase_chip_block_jedec,
7496 },
7497 },
7498 .write = write_jedec_1,
7499 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007500 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007501 },
7502
7503 {
7504 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007505 .name = "MX29GL320EB",
7506 .bustype = BUS_PARALLEL,
7507 .manufacture_id = MACRONIX_ID,
7508 .model_id = MACRONIX_MX29GL320EB,
7509 .total_size = 4096,
7510 .page_size = 128 * 1024, /* actual page size is 16 */
7511 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7512 .tested = TEST_UNTESTED,
7513 .probe = probe_jedec_29gl,
7514 .probe_timing = TIMING_ZERO,
7515 .block_erasers =
7516 {
7517 {
7518 .eraseblocks = {
7519 {8 * 1024, 8},
7520 {64 * 1024, 63},
7521 },
7522 .block_erase = erase_sector_jedec,
7523 }, {
7524 .eraseblocks = { {4 * 1024 * 1024, 1} },
7525 .block_erase = erase_chip_block_jedec,
7526 },
7527 },
7528 .write = write_jedec_1,
7529 .read = read_memmapped,
7530 .voltage = {2700, 3600},
7531 },
7532
7533 {
7534 .vendor = "Macronix",
7535 .name = "MX29GL320ET",
7536 .bustype = BUS_PARALLEL,
7537 .manufacture_id = MACRONIX_ID,
7538 .model_id = MACRONIX_MX29GL320ET,
7539 .total_size = 4096,
7540 .page_size = 128 * 1024, /* actual page size is 16 */
7541 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7542 .tested = TEST_UNTESTED,
7543 .probe = probe_jedec_29gl,
7544 .probe_timing = TIMING_ZERO,
7545 .block_erasers =
7546 {
7547 {
7548 .eraseblocks = {
7549 {64 * 1024, 63},
7550 {8 * 1024, 8},
7551 },
7552 .block_erase = erase_sector_jedec,
7553 }, {
7554 .eraseblocks = { {4 * 1024 * 1024, 1} },
7555 .block_erase = erase_chip_block_jedec,
7556 },
7557 },
7558 .write = write_jedec_1,
7559 .read = read_memmapped,
7560 .voltage = {2700, 3600},
7561 },
7562
7563 {
7564 .vendor = "Macronix",
7565 .name = "MX29GL320EH/L",
7566 .bustype = BUS_PARALLEL,
7567 .manufacture_id = MACRONIX_ID,
7568 .model_id = MACRONIX_MX29GL320EHL,
7569 .total_size = 4096,
7570 .page_size = 128 * 1024, /* actual page size is 16 */
7571 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7572 .tested = TEST_UNTESTED,
7573 .probe = probe_jedec_29gl,
7574 .probe_timing = TIMING_ZERO,
7575 .block_erasers =
7576 {
7577 {
7578 .eraseblocks = { {64 * 1024, 64} },
7579 .block_erase = erase_sector_jedec,
7580 }, {
7581 .eraseblocks = { {4 * 1024 * 1024, 1} },
7582 .block_erase = erase_chip_block_jedec,
7583 },
7584 },
7585 .write = write_jedec_1,
7586 .read = read_memmapped,
7587 .voltage = {2700, 3600},
7588 },
7589
7590 {
7591 .vendor = "Macronix",
7592 .name = "MX29GL640EB",
7593 .bustype = BUS_PARALLEL,
7594 .manufacture_id = MACRONIX_ID,
7595 .model_id = MACRONIX_MX29GL640EB,
7596 .total_size = 8192,
7597 .page_size = 128 * 1024, /* actual page size is 16 */
7598 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7599 .tested = TEST_UNTESTED,
7600 .probe = probe_jedec_29gl,
7601 .probe_timing = TIMING_ZERO,
7602 .block_erasers =
7603 {
7604 {
7605 .eraseblocks = {
7606 {8 * 1024, 8},
7607 {64 * 1024, 127},
7608 },
7609 .block_erase = erase_sector_jedec,
7610 }, {
7611 .eraseblocks = { {8 * 1024 * 1024, 1} },
7612 .block_erase = erase_chip_block_jedec,
7613 },
7614 },
7615 .write = write_jedec_1,
7616 .read = read_memmapped,
7617 .voltage = {2700, 3600},
7618 },
7619
7620 {
7621 .vendor = "Macronix",
7622 .name = "MX29GL640ET",
7623 .bustype = BUS_PARALLEL,
7624 .manufacture_id = MACRONIX_ID,
7625 .model_id = MACRONIX_MX29GL640ET,
7626 .total_size = 8192,
7627 .page_size = 128 * 1024, /* actual page size is 16 */
7628 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7629 .tested = TEST_UNTESTED,
7630 .probe = probe_jedec_29gl,
7631 .probe_timing = TIMING_ZERO,
7632 .block_erasers =
7633 {
7634 {
7635 .eraseblocks = {
7636 {64 * 1024, 127},
7637 {8 * 1024, 8},
7638 },
7639 .block_erase = erase_sector_jedec,
7640 }, {
7641 .eraseblocks = { {8 * 1024 * 1024, 1} },
7642 .block_erase = erase_chip_block_jedec,
7643 },
7644 },
7645 .write = write_jedec_1,
7646 .read = read_memmapped,
7647 .voltage = {2700, 3600},
7648 },
7649
7650 {
7651 .vendor = "Macronix",
7652 .name = "MX29GL640EH/L",
7653 .bustype = BUS_PARALLEL,
7654 .manufacture_id = MACRONIX_ID,
7655 .model_id = MACRONIX_MX29GL640EHL,
7656 .total_size = 8192,
7657 .page_size = 128 * 1024, /* actual page size is 16 */
7658 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7659 .tested = TEST_UNTESTED,
7660 .probe = probe_jedec_29gl,
7661 .probe_timing = TIMING_ZERO,
7662 .block_erasers =
7663 {
7664 {
7665 .eraseblocks = { {64 * 1024, 128} },
7666 .block_erase = erase_sector_jedec,
7667 }, {
7668 .eraseblocks = { {8 * 1024 * 1024, 1} },
7669 .block_erase = erase_chip_block_jedec,
7670 },
7671 },
7672 .write = write_jedec_1,
7673 .read = read_memmapped,
7674 .voltage = {2700, 3600},
7675 },
7676
7677 {
7678 .vendor = "Macronix",
7679 .name = "MX29GL128F",
7680 .bustype = BUS_PARALLEL,
7681 .manufacture_id = MACRONIX_ID,
7682 .model_id = MACRONIX_MX29GL128F,
7683 .total_size = 16384,
7684 .page_size = 128 * 1024, /* actual page size is 16 */
7685 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7686 .tested = TEST_UNTESTED,
7687 .probe = probe_jedec_29gl,
7688 .probe_timing = TIMING_ZERO,
7689 .block_erasers =
7690 {
7691 {
7692 .eraseblocks = { {128 * 1024, 128} },
7693 .block_erase = erase_sector_jedec,
7694 }, {
7695 .eraseblocks = { {16 * 1024 * 1024, 1} },
7696 .block_erase = erase_chip_block_jedec,
7697 },
7698 },
7699 .write = write_jedec_1,
7700 .read = read_memmapped,
7701 .voltage = {2700, 3600},
7702 },
7703
7704 {
7705 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007706 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007707 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007708 .manufacture_id = MACRONIX_ID,
7709 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007710 .total_size = 512,
7711 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007712 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7713 .tested = TEST_UNTESTED,
7714 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007715 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007716 .block_erasers =
7717 {
7718 {
Stefan Tauner6697f712014-08-06 15:09:15 +00007719 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00007720 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007721 }, {
7722 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007723 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007724 },
7725 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007726 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007728 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007729 },
7730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007731 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007732 .vendor = "Micron/Numonyx/ST",
7733 .name = "M25P05-A",
7734 .bustype = BUS_SPI,
7735 .manufacture_id = ST_ID,
7736 .model_id = ST_M25P05A,
7737 .total_size = 64,
7738 .page_size = 256,
7739 .feature_bits = FEATURE_WRSR_WREN,
7740 .tested = TEST_OK_PREW,
7741 .probe = probe_spi_rdid,
7742 .probe_timing = TIMING_ZERO,
7743 .block_erasers =
7744 {
7745 {
7746 .eraseblocks = { {32 * 1024, 2} },
7747 .block_erase = spi_block_erase_d8,
7748 }, {
7749 .eraseblocks = { {64 * 1024, 1} },
7750 .block_erase = spi_block_erase_c7,
7751 }
7752 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007753 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007754 .unlock = spi_disable_blockprotect,
7755 .write = spi_chip_write_256,
7756 .read = spi_chip_read,
7757 .voltage = {2700, 3600},
7758 },
7759
7760 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7761 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7762 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7763 * only is successful if RDID does not work.
7764 */
7765 {
7766 .vendor = "Micron/Numonyx/ST",
7767 .name = "M25P05",
7768 .bustype = BUS_SPI,
7769 .manufacture_id = 0, /* Not used. */
7770 .model_id = ST_M25P05_RES,
7771 .total_size = 64,
7772 .page_size = 256,
7773 .feature_bits = FEATURE_WRSR_WREN,
7774 .tested = TEST_UNTESTED,
7775 .probe = probe_spi_res1,
7776 .probe_timing = TIMING_ZERO,
7777 .block_erasers =
7778 {
7779 {
7780 .eraseblocks = { {32 * 1024, 2} },
7781 .block_erase = spi_block_erase_d8,
7782 }, {
7783 .eraseblocks = { {64 * 1024, 1} },
7784 .block_erase = spi_block_erase_c7,
7785 }
7786 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007787 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007788 .unlock = spi_disable_blockprotect,
7789 .write = spi_chip_write_1, /* 128 */
7790 .read = spi_chip_read,
7791 .voltage = {2700, 3600},
7792 },
7793
7794 {
7795 .vendor = "Micron/Numonyx/ST",
7796 .name = "M25P10-A",
7797 .bustype = BUS_SPI,
7798 .manufacture_id = ST_ID,
7799 .model_id = ST_M25P10A,
7800 .total_size = 128,
7801 .page_size = 256,
7802 .feature_bits = FEATURE_WRSR_WREN,
7803 .tested = TEST_OK_PRE,
7804 .probe = probe_spi_rdid,
7805 .probe_timing = TIMING_ZERO,
7806 .block_erasers =
7807 {
7808 {
7809 .eraseblocks = { {32 * 1024, 4} },
7810 .block_erase = spi_block_erase_d8,
7811 }, {
7812 .eraseblocks = { {128 * 1024, 1} },
7813 .block_erase = spi_block_erase_c7,
7814 }
7815 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007816 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007817 .unlock = spi_disable_blockprotect,
7818 .write = spi_chip_write_256,
7819 .read = spi_chip_read,
7820 .voltage = {2700, 3600},
7821 },
7822
7823 /* The ST M25P10 has the same problem as the M25P05. */
7824 {
7825 .vendor = "Micron/Numonyx/ST",
7826 .name = "M25P10",
7827 .bustype = BUS_SPI,
7828 .manufacture_id = 0, /* Not used. */
7829 .model_id = ST_M25P10_RES,
7830 .total_size = 128,
7831 .page_size = 256,
7832 .feature_bits = FEATURE_WRSR_WREN,
7833 .tested = TEST_UNTESTED,
7834 .probe = probe_spi_res1,
7835 .probe_timing = TIMING_ZERO,
7836 .block_erasers =
7837 {
7838 {
7839 .eraseblocks = { {32 * 1024, 4} },
7840 .block_erase = spi_block_erase_d8,
7841 }, {
7842 .eraseblocks = { {128 * 1024, 1} },
7843 .block_erase = spi_block_erase_c7,
7844 }
7845 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007846 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007847 .unlock = spi_disable_blockprotect,
7848 .write = spi_chip_write_1, /* 128 */
7849 .read = spi_chip_read,
7850 .voltage = {2700, 3600},
7851 },
7852
7853 {
7854 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7855 .name = "M25P20",
7856 .bustype = BUS_SPI,
7857 .manufacture_id = ST_ID,
7858 .model_id = ST_M25P20,
7859 .total_size = 256,
7860 .page_size = 256,
7861 .feature_bits = FEATURE_WRSR_WREN,
7862 .tested = TEST_UNTESTED,
7863 .probe = probe_spi_rdid,
7864 .probe_timing = TIMING_ZERO,
7865 .block_erasers =
7866 {
7867 {
7868 .eraseblocks = { {64 * 1024, 4} },
7869 .block_erase = spi_block_erase_d8,
7870 }, {
7871 .eraseblocks = { {256 * 1024, 1} },
7872 .block_erase = spi_block_erase_c7,
7873 }
7874 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007875 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007876 .unlock = spi_disable_blockprotect,
7877 .write = spi_chip_write_256,
7878 .read = spi_chip_read, /* Fast read (0x0B) supported */
7879 .voltage = {2700, 3600},
7880 },
7881
7882 {
7883 .vendor = "Micron/Numonyx/ST",
7884 .name = "M25P20-old",
7885 .bustype = BUS_SPI,
7886 .manufacture_id = 0, /* Not used. */
7887 .model_id = ST_M25P20_RES,
7888 .total_size = 256,
7889 .page_size = 256,
7890 .feature_bits = FEATURE_WRSR_WREN,
7891 .tested = TEST_OK_PREW,
7892 .probe = probe_spi_res1,
7893 .probe_timing = TIMING_ZERO,
7894 .block_erasers =
7895 {
7896 {
7897 .eraseblocks = { {64 * 1024, 4} },
7898 .block_erase = spi_block_erase_d8,
7899 }, {
7900 .eraseblocks = { {256 * 1024, 1} },
7901 .block_erase = spi_block_erase_c7,
7902 }
7903 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007904 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007905 .unlock = spi_disable_blockprotect,
7906 .write = spi_chip_write_256,
7907 .read = spi_chip_read, /* Fast read (0x0B) supported */
7908 .voltage = {2700, 3600},
7909 },
7910
7911 {
7912 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7913 .name = "M25P40",
7914 .bustype = BUS_SPI,
7915 .manufacture_id = ST_ID,
7916 .model_id = ST_M25P40,
7917 .total_size = 512,
7918 .page_size = 256,
7919 .feature_bits = FEATURE_WRSR_WREN,
7920 .tested = TEST_OK_PREW,
7921 .probe = probe_spi_rdid,
7922 .probe_timing = TIMING_ZERO,
7923 .block_erasers =
7924 {
7925 {
7926 .eraseblocks = { {64 * 1024, 8} },
7927 .block_erase = spi_block_erase_d8,
7928 }, {
7929 .eraseblocks = { {512 * 1024, 1} },
7930 .block_erase = spi_block_erase_c7,
7931 }
7932 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007933 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007934 .unlock = spi_disable_blockprotect,
7935 .write = spi_chip_write_256,
7936 .read = spi_chip_read,
7937 .voltage = {2700, 3600},
7938 },
7939
7940 {
7941 .vendor = "Micron/Numonyx/ST",
7942 .name = "M25P40-old",
7943 .bustype = BUS_SPI,
7944 .manufacture_id = 0, /* Not used. */
7945 .model_id = ST_M25P40_RES,
7946 .total_size = 512,
7947 .page_size = 256,
7948 .feature_bits = FEATURE_WRSR_WREN,
7949 .tested = TEST_UNTESTED,
7950 .probe = probe_spi_res1,
7951 .probe_timing = TIMING_ZERO,
7952 .block_erasers =
7953 {
7954 {
7955 .eraseblocks = { {64 * 1024, 8} },
7956 .block_erase = spi_block_erase_d8,
7957 }, {
7958 .eraseblocks = { {512 * 1024, 1} },
7959 .block_erase = spi_block_erase_c7,
7960 }
7961 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007962 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007963 .unlock = spi_disable_blockprotect,
7964 .write = spi_chip_write_256,
7965 .read = spi_chip_read,
7966 },
7967
7968 {
7969 .vendor = "Micron/Numonyx/ST",
7970 .name = "M25P80",
7971 .bustype = BUS_SPI,
7972 .manufacture_id = ST_ID,
7973 .model_id = ST_M25P80,
7974 .total_size = 1024,
7975 .page_size = 256,
7976 .feature_bits = FEATURE_WRSR_WREN,
7977 .tested = TEST_OK_PREW,
7978 .probe = probe_spi_rdid,
7979 .probe_timing = TIMING_ZERO,
7980 .block_erasers =
7981 {
7982 {
7983 .eraseblocks = { {64 * 1024, 16} },
7984 .block_erase = spi_block_erase_d8,
7985 }, {
7986 .eraseblocks = { {1024 * 1024, 1} },
7987 .block_erase = spi_block_erase_c7,
7988 }
7989 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007990 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007991 .unlock = spi_disable_blockprotect,
7992 .write = spi_chip_write_256,
7993 .read = spi_chip_read,
7994 .voltage = {2700, 3600},
7995 },
7996
7997 {
7998 .vendor = "Micron/Numonyx/ST",
7999 .name = "M25P16",
8000 .bustype = BUS_SPI,
8001 .manufacture_id = ST_ID,
8002 .model_id = ST_M25P16,
8003 .total_size = 2048,
8004 .page_size = 256,
8005 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008006 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008007 .probe = probe_spi_rdid,
8008 .probe_timing = TIMING_ZERO,
8009 .block_erasers =
8010 {
8011 {
8012 .eraseblocks = { {64 * 1024, 32} },
8013 .block_erase = spi_block_erase_d8,
8014 }, {
8015 .eraseblocks = { {2 * 1024 * 1024, 1} },
8016 .block_erase = spi_block_erase_c7,
8017 }
8018 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008019 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008020 .unlock = spi_disable_blockprotect,
8021 .write = spi_chip_write_256,
8022 .read = spi_chip_read,
8023 .voltage = {2700, 3600},
8024 },
8025
8026 {
8027 .vendor = "Micron/Numonyx/ST",
8028 .name = "M25P32",
8029 .bustype = BUS_SPI,
8030 .manufacture_id = ST_ID,
8031 .model_id = ST_M25P32,
8032 .total_size = 4096,
8033 .page_size = 256,
8034 .feature_bits = FEATURE_WRSR_WREN,
8035 .tested = TEST_OK_PREW,
8036 .probe = probe_spi_rdid,
8037 .probe_timing = TIMING_ZERO,
8038 .block_erasers =
8039 {
8040 {
8041 .eraseblocks = { {64 * 1024, 64} },
8042 .block_erase = spi_block_erase_d8,
8043 }, {
8044 .eraseblocks = { {4 * 1024 * 1024, 1} },
8045 .block_erase = spi_block_erase_c7,
8046 }
8047 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008048 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008049 .unlock = spi_disable_blockprotect,
8050 .write = spi_chip_write_256,
8051 .read = spi_chip_read,
8052 .voltage = {2700, 3600},
8053 },
8054
8055 {
8056 .vendor = "Micron/Numonyx/ST",
8057 .name = "M25P64",
8058 .bustype = BUS_SPI,
8059 .manufacture_id = ST_ID,
8060 .model_id = ST_M25P64,
8061 .total_size = 8192,
8062 .page_size = 256,
8063 .feature_bits = FEATURE_WRSR_WREN,
8064 .tested = TEST_OK_PREW,
8065 .probe = probe_spi_rdid,
8066 .probe_timing = TIMING_ZERO,
8067 .block_erasers =
8068 {
8069 {
8070 .eraseblocks = { {64 * 1024, 128} },
8071 .block_erase = spi_block_erase_d8,
8072 }, {
8073 .eraseblocks = { {8 * 1024 * 1024, 1} },
8074 .block_erase = spi_block_erase_c7,
8075 }
8076 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008077 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008078 .unlock = spi_disable_blockprotect,
8079 .write = spi_chip_write_256,
8080 .read = spi_chip_read,
8081 .voltage = {2700, 3600},
8082 },
8083
8084 {
8085 .vendor = "Micron/Numonyx/ST",
8086 .name = "M25P128",
8087 .bustype = BUS_SPI,
8088 .manufacture_id = ST_ID,
8089 .model_id = ST_M25P128,
8090 .total_size = 16384,
8091 .page_size = 256,
8092 .feature_bits = FEATURE_WRSR_WREN,
8093 .tested = TEST_OK_PREW,
8094 .probe = probe_spi_rdid,
8095 .probe_timing = TIMING_ZERO,
8096 .block_erasers =
8097 {
8098 {
8099 .eraseblocks = { {256 * 1024, 64} },
8100 .block_erase = spi_block_erase_d8,
8101 }, {
8102 .eraseblocks = { {16 * 1024 * 1024, 1} },
8103 .block_erase = spi_block_erase_c7,
8104 }
8105 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008106 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008107 .unlock = spi_disable_blockprotect,
8108 .write = spi_chip_write_256,
8109 .read = spi_chip_read,
8110 .voltage = {2700, 3600},
8111 },
8112
8113 {
8114 .vendor = "Micron/Numonyx/ST",
8115 .name = "M25PE10",
8116 .bustype = BUS_SPI,
8117 .manufacture_id = ST_ID,
8118 .model_id = ST_M25PE10,
8119 .total_size = 128,
8120 .page_size = 256,
8121 .feature_bits = FEATURE_WRSR_WREN,
8122 .tested = TEST_UNTESTED,
8123 .probe = probe_spi_rdid,
8124 .probe_timing = TIMING_ZERO,
8125 .block_erasers =
8126 {
8127 {
8128 .eraseblocks = { {4 * 1024, 32} },
8129 .block_erase = spi_block_erase_20,
8130 }, {
8131 .eraseblocks = { {64 * 1024, 2} },
8132 .block_erase = spi_block_erase_d8,
8133 }, {
8134 .eraseblocks = { {128 * 1024, 1} },
8135 .block_erase = spi_block_erase_c7,
8136 }
8137 },
8138 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8139 .unlock = spi_disable_blockprotect,
8140 .write = spi_chip_write_256,
8141 .read = spi_chip_read,
8142 .voltage = {2700, 3600},
8143 },
8144
8145 {
8146 .vendor = "Micron/Numonyx/ST",
8147 .name = "M25PE20",
8148 .bustype = BUS_SPI,
8149 .manufacture_id = ST_ID,
8150 .model_id = ST_M25PE20,
8151 .total_size = 256,
8152 .page_size = 256,
8153 .feature_bits = FEATURE_WRSR_WREN,
8154 .tested = TEST_UNTESTED,
8155 .probe = probe_spi_rdid,
8156 .probe_timing = TIMING_ZERO,
8157 .block_erasers =
8158 {
8159 {
8160 .eraseblocks = { {4 * 1024, 64} },
8161 .block_erase = spi_block_erase_20,
8162 }, {
8163 .eraseblocks = { {64 * 1024, 4} },
8164 .block_erase = spi_block_erase_d8,
8165 }, {
8166 .eraseblocks = { {256 * 1024, 1} },
8167 .block_erase = spi_block_erase_c7,
8168 }
8169 },
8170 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8171 .unlock = spi_disable_blockprotect,
8172 .write = spi_chip_write_256,
8173 .read = spi_chip_read,
8174 .voltage = {2700, 3600},
8175 },
8176
8177 {
8178 .vendor = "Micron/Numonyx/ST",
8179 .name = "M25PE40",
8180 .bustype = BUS_SPI,
8181 .manufacture_id = ST_ID,
8182 .model_id = ST_M25PE40,
8183 .total_size = 512,
8184 .page_size = 256,
8185 .feature_bits = FEATURE_WRSR_WREN,
8186 .tested = TEST_UNTESTED,
8187 .probe = probe_spi_rdid,
8188 .probe_timing = TIMING_ZERO,
8189 .block_erasers =
8190 {
8191 {
8192 .eraseblocks = { {4 * 1024, 128} },
8193 .block_erase = spi_block_erase_20,
8194 }, {
8195 .eraseblocks = { {64 * 1024, 8} },
8196 .block_erase = spi_block_erase_d8,
8197 }, {
8198 .eraseblocks = { {512 * 1024, 1} },
8199 .block_erase = spi_block_erase_c7,
8200 }
8201 },
8202 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8203 .unlock = spi_disable_blockprotect,
8204 .write = spi_chip_write_256,
8205 .read = spi_chip_read,
8206 .voltage = {2700, 3600},
8207 },
8208
8209 {
8210 .vendor = "Micron/Numonyx/ST",
8211 .name = "M25PE80",
8212 .bustype = BUS_SPI,
8213 .manufacture_id = ST_ID,
8214 .model_id = ST_M25PE80,
8215 .total_size = 1024,
8216 .page_size = 256,
8217 .feature_bits = FEATURE_WRSR_WREN,
8218 .tested = TEST_OK_PREW,
8219 .probe = probe_spi_rdid,
8220 .probe_timing = TIMING_ZERO,
8221 .block_erasers =
8222 {
8223 {
8224 .eraseblocks = { {4 * 1024, 256} },
8225 .block_erase = spi_block_erase_20,
8226 }, {
8227 .eraseblocks = { {64 * 1024, 16} },
8228 .block_erase = spi_block_erase_d8,
8229 }, {
8230 .eraseblocks = { {1024 * 1024, 1} },
8231 .block_erase = spi_block_erase_c7,
8232 }
8233 },
8234 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8235 .unlock = spi_disable_blockprotect,
8236 .write = spi_chip_write_256,
8237 .read = spi_chip_read,
8238 .voltage = {2700, 3600},
8239 },
8240
8241 {
8242 .vendor = "Micron/Numonyx/ST",
8243 .name = "M25PE16",
8244 .bustype = BUS_SPI,
8245 .manufacture_id = ST_ID,
8246 .model_id = ST_M25PE16,
8247 .total_size = 2048,
8248 .page_size = 256,
8249 .feature_bits = FEATURE_WRSR_WREN,
8250 .tested = TEST_UNTESTED,
8251 .probe = probe_spi_rdid,
8252 .probe_timing = TIMING_ZERO,
8253 .block_erasers =
8254 {
8255 {
8256 .eraseblocks = { {4 * 1024, 512} },
8257 .block_erase = spi_block_erase_20,
8258 }, {
8259 .eraseblocks = { {64 * 1024, 32} },
8260 .block_erase = spi_block_erase_d8,
8261 }, {
8262 .eraseblocks = { {2 * 1024 * 1024, 1} },
8263 .block_erase = spi_block_erase_c7,
8264 }
8265 },
8266 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8267 .unlock = spi_disable_blockprotect,
8268 .write = spi_chip_write_256,
8269 .read = spi_chip_read,
8270 .voltage = {2700, 3600},
8271 },
8272
8273 {
8274 .vendor = "Micron/Numonyx/ST",
8275 .name = "M25PX80",
8276 .bustype = BUS_SPI,
8277 .manufacture_id = ST_ID,
8278 .model_id = ST_M25PX80,
8279 .total_size = 1024,
8280 .page_size = 256,
8281 /* OTP: 64B total; read 0x4B, write 0x42 */
8282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8283 .tested = TEST_OK_PREW,
8284 .probe = probe_spi_rdid,
8285 .probe_timing = TIMING_ZERO,
8286 .block_erasers = {
8287 {
8288 .eraseblocks = { { 4 * 1024, 256 } },
8289 .block_erase = spi_block_erase_20,
8290 }, {
8291 .eraseblocks = { {64 * 1024, 16} },
8292 .block_erase = spi_block_erase_d8,
8293 }, {
8294 .eraseblocks = { {1024 * 1024, 1} },
8295 .block_erase = spi_block_erase_c7,
8296 }
8297 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008298 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008299 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8300 .write = spi_chip_write_256,
8301 .read = spi_chip_read,
8302 .voltage = {2700, 3600},
8303 },
8304
8305 {
8306 .vendor = "Micron/Numonyx/ST",
8307 .name = "M25PX16",
8308 .bustype = BUS_SPI,
8309 .manufacture_id = ST_ID,
8310 .model_id = ST_M25PX16,
8311 .total_size = 2048,
8312 .page_size = 256,
8313 /* OTP: 64B total; read 0x4B; write 0x42 */
8314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8315 .tested = TEST_OK_PREW,
8316 .probe = probe_spi_rdid,
8317 .probe_timing = TIMING_ZERO,
8318 .block_erasers =
8319 {
8320 {
8321 .eraseblocks = { { 4 * 1024, 512 } },
8322 .block_erase = spi_block_erase_20,
8323 }, {
8324 .eraseblocks = { {64 * 1024, 32} },
8325 .block_erase = spi_block_erase_d8,
8326 }, {
8327 .eraseblocks = { {2 * 1024 * 1024, 1} },
8328 .block_erase = spi_block_erase_c7,
8329 }
8330 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008331 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008332 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8333 .write = spi_chip_write_256,
8334 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008335 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008336 },
8337
8338 {
8339 .vendor = "Micron/Numonyx/ST",
8340 .name = "M25PX32",
8341 .bustype = BUS_SPI,
8342 .manufacture_id = ST_ID,
8343 .model_id = ST_M25PX32,
8344 .total_size = 4096,
8345 .page_size = 256,
8346 /* OTP: 64B total; read 0x4B; write 0x42 */
8347 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8348 .tested = TEST_OK_PRE,
8349 .probe = probe_spi_rdid,
8350 .probe_timing = TIMING_ZERO,
8351 .block_erasers =
8352 {
8353 {
8354 .eraseblocks = { { 4 * 1024, 1024 } },
8355 .block_erase = spi_block_erase_20,
8356 }, {
8357 .eraseblocks = { {64 * 1024, 64} },
8358 .block_erase = spi_block_erase_d8,
8359 }, {
8360 .eraseblocks = { {4 * 1024 * 1024, 1} },
8361 .block_erase = spi_block_erase_c7,
8362 }
8363 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008364 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008365 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8366 .write = spi_chip_write_256,
8367 .read = spi_chip_read,
8368 .voltage = {2700, 3600},
8369 },
8370
8371 {
8372 .vendor = "Micron/Numonyx/ST",
8373 .name = "M25PX64",
8374 .bustype = BUS_SPI,
8375 .manufacture_id = ST_ID,
8376 .model_id = ST_M25PX64,
8377 .total_size = 8192,
8378 .page_size = 256,
8379 /* OTP: 64B total; read 0x4B; write 0x42 */
8380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008381 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008382 .probe = probe_spi_rdid,
8383 .probe_timing = TIMING_ZERO,
8384 .block_erasers =
8385 {
8386 {
8387 .eraseblocks = { { 4 * 1024, 2048 } },
8388 .block_erase = spi_block_erase_20,
8389 }, {
8390 .eraseblocks = { {64 * 1024, 128} },
8391 .block_erase = spi_block_erase_d8,
8392 }, {
8393 .eraseblocks = { {8 * 1024 * 1024, 1} },
8394 .block_erase = spi_block_erase_c7,
8395 }
8396 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008397 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008398 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8399 .write = spi_chip_write_256,
8400 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008401 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008402 },
8403
8404 {
8405 .vendor = "Micron/Numonyx/ST",
8406 .name = "M45PE10",
8407 .bustype = BUS_SPI,
8408 .manufacture_id = ST_ID,
8409 .model_id = ST_M45PE10,
8410 .total_size = 128,
8411 .page_size = 256,
8412 .tested = TEST_UNTESTED,
8413 .probe = probe_spi_rdid,
8414 .probe_timing = TIMING_ZERO,
8415 .block_erasers = {
8416 {
8417 .eraseblocks = { {256, 512} },
8418 .block_erase = spi_block_erase_db,
8419 }, {
8420 .eraseblocks = { {64 * 1024, 2} },
8421 .block_erase = spi_block_erase_d8,
8422 }
8423 },
8424 .printlock = spi_prettyprint_status_register_default_welwip,
8425 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8426 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8427 .read = spi_chip_read, /* Fast read (0x0B) supported */
8428 .voltage = {2700, 3600},
8429 },
8430
8431 {
8432 .vendor = "Micron/Numonyx/ST",
8433 .name = "M45PE20",
8434 .bustype = BUS_SPI,
8435 .manufacture_id = ST_ID,
8436 .model_id = ST_M45PE20,
8437 .total_size = 256,
8438 .page_size = 256,
8439 .tested = TEST_UNTESTED,
8440 .probe = probe_spi_rdid,
8441 .probe_timing = TIMING_ZERO,
8442 .block_erasers = {
8443 {
8444 .eraseblocks = { {256, 1024} },
8445 .block_erase = spi_block_erase_db,
8446 }, {
8447 .eraseblocks = { {64 * 1024, 4} },
8448 .block_erase = spi_block_erase_d8,
8449 }
8450 },
8451 .printlock = spi_prettyprint_status_register_default_welwip,
8452 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8453 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8454 .read = spi_chip_read, /* Fast read (0x0B) supported */
8455 .voltage = {2700, 3600},
8456 },
8457
8458 {
8459 .vendor = "Micron/Numonyx/ST",
8460 .name = "M45PE40",
8461 .bustype = BUS_SPI,
8462 .manufacture_id = ST_ID,
8463 .model_id = ST_M45PE40,
8464 .total_size = 512,
8465 .page_size = 256,
8466 .tested = TEST_UNTESTED,
8467 .probe = probe_spi_rdid,
8468 .probe_timing = TIMING_ZERO,
8469 .block_erasers = {
8470 {
8471 .eraseblocks = { {256, 2048} },
8472 .block_erase = spi_block_erase_db,
8473 }, {
8474 .eraseblocks = { {64 * 1024, 8} },
8475 .block_erase = spi_block_erase_d8,
8476 }
8477 },
8478 .printlock = spi_prettyprint_status_register_default_welwip,
8479 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8480 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8481 .read = spi_chip_read, /* Fast read (0x0B) supported */
8482 .voltage = {2700, 3600},
8483 },
8484
8485 {
8486 .vendor = "Micron/Numonyx/ST",
8487 .name = "M45PE80",
8488 .bustype = BUS_SPI,
8489 .manufacture_id = ST_ID,
8490 .model_id = ST_M45PE80,
8491 .total_size = 1024,
8492 .page_size = 256,
8493 .tested = TEST_UNTESTED,
8494 .probe = probe_spi_rdid,
8495 .probe_timing = TIMING_ZERO,
8496 .block_erasers = {
8497 {
8498 .eraseblocks = { {256, 4096} },
8499 .block_erase = spi_block_erase_db,
8500 }, {
8501 .eraseblocks = { {64 * 1024, 16} },
8502 .block_erase = spi_block_erase_d8,
8503 }
8504 },
8505 .printlock = spi_prettyprint_status_register_default_welwip,
8506 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8507 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8508 .read = spi_chip_read, /* Fast read (0x0B) supported */
8509 .voltage = {2700, 3600},
8510 },
8511
8512 {
8513 .vendor = "Micron/Numonyx/ST",
8514 .name = "M45PE16",
8515 .bustype = BUS_SPI,
8516 .manufacture_id = ST_ID,
8517 .model_id = ST_M45PE16,
8518 .total_size = 2048,
8519 .page_size = 256,
8520 .tested = TEST_UNTESTED,
8521 .probe = probe_spi_rdid,
8522 .probe_timing = TIMING_ZERO,
8523 .block_erasers = {
8524 {
8525 .eraseblocks = { {256, 8192} },
8526 .block_erase = spi_block_erase_db,
8527 }, {
8528 .eraseblocks = { {64 * 1024, 32} },
8529 .block_erase = spi_block_erase_d8,
8530 }
8531 },
8532 .printlock = spi_prettyprint_status_register_default_welwip,
8533 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8534 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8535 .read = spi_chip_read, /* Fast read (0x0B) supported */
8536 .voltage = {2700, 3600},
8537 },
8538
8539 {
8540 .vendor = "Micron/Numonyx/ST",
8541 .name = "N25Q016",
8542 .bustype = BUS_SPI,
8543 .manufacture_id = ST_ID,
8544 .model_id = ST_N25Q016__1E,
8545 .total_size = 2048,
8546 .page_size = 256,
8547 /* supports SFDP */
8548 /* OTP: 64B total; read 0x4B, write 0x42 */
8549 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8550 .tested = TEST_UNTESTED,
8551 .probe = probe_spi_rdid,
8552 .probe_timing = TIMING_ZERO,
8553 .block_erasers =
8554 {
8555 {
8556 .eraseblocks = { {4 * 1024, 512} },
8557 .block_erase = spi_block_erase_20,
8558 }, {
8559 .eraseblocks = { {32 * 1024, 64} },
8560 .block_erase = spi_block_erase_52,
8561 }, {
8562 .eraseblocks = { {64 * 1024, 32} },
8563 .block_erase = spi_block_erase_d8,
8564 }, {
8565 .eraseblocks = { {2 * 1024 * 1024, 1} },
8566 .block_erase = spi_block_erase_c7,
8567 }
8568 },
8569 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8570 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8571 .write = spi_chip_write_256, /* Multi I/O supported */
8572 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8573 .voltage = {1700, 2000},
8574 },
8575
8576 {
8577 .vendor = "Micron/Numonyx/ST",
8578 .name = "N25Q032..1E",
8579 .bustype = BUS_SPI,
8580 .manufacture_id = ST_ID,
8581 .model_id = ST_N25Q032__1E,
8582 .total_size = 4096,
8583 .page_size = 256,
8584 /* supports SFDP */
8585 /* OTP: 64B total; read 0x4B, write 0x42 */
8586 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8587 .tested = TEST_UNTESTED,
8588 .probe = probe_spi_rdid,
8589 .probe_timing = TIMING_ZERO,
8590 .block_erasers =
8591 {
8592 {
8593 .eraseblocks = { {4 * 1024, 1024} },
8594 .block_erase = spi_block_erase_20,
8595 }, {
8596 .eraseblocks = { {64 * 1024, 64} },
8597 .block_erase = spi_block_erase_d8,
8598 }, {
8599 .eraseblocks = { {4 * 1024 * 1024, 1} },
8600 .block_erase = spi_block_erase_c7,
8601 }
8602 },
8603 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8604 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8605 .write = spi_chip_write_256, /* Multi I/O supported */
8606 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8607 .voltage = {1700, 2000},
8608 },
8609
8610 {
8611 .vendor = "Micron/Numonyx/ST",
8612 .name = "N25Q032..3E",
8613 .bustype = BUS_SPI,
8614 .manufacture_id = ST_ID,
8615 .model_id = ST_N25Q032__3E,
8616 .total_size = 4096,
8617 .page_size = 256,
8618 /* supports SFDP */
8619 /* OTP: 64B total; read 0x4B, write 0x42 */
8620 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8621 .tested = TEST_OK_PREW,
8622 .probe = probe_spi_rdid,
8623 .probe_timing = TIMING_ZERO,
8624 .block_erasers =
8625 {
8626 {
8627 .eraseblocks = { {4 * 1024, 1024} },
8628 .block_erase = spi_block_erase_20,
8629 }, {
8630 .eraseblocks = { {64 * 1024, 64} },
8631 .block_erase = spi_block_erase_d8,
8632 }, {
8633 .eraseblocks = { {4 * 1024 * 1024, 1} },
8634 .block_erase = spi_block_erase_c7,
8635 }
8636 },
8637 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8638 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8639 .write = spi_chip_write_256, /* Multi I/O supported */
8640 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8641 .voltage = {2700, 3600},
8642 },
8643
8644 {
8645 .vendor = "Micron/Numonyx/ST",
8646 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8647 .bustype = BUS_SPI,
8648 .manufacture_id = ST_ID,
8649 .model_id = ST_N25Q064__1E,
8650 .total_size = 8192,
8651 .page_size = 256,
8652 /* supports SFDP */
8653 /* OTP: 64B total; read 0x4B, write 0x42 */
8654 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008655 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008656 .probe = probe_spi_rdid,
8657 .probe_timing = TIMING_ZERO,
8658 .block_erasers =
8659 {
8660 {
8661 .eraseblocks = { {4 * 1024, 2048 } },
8662 .block_erase = spi_block_erase_20,
8663 }, {
8664 .eraseblocks = { {64 * 1024, 128} },
8665 .block_erase = spi_block_erase_d8,
8666 }, {
8667 .eraseblocks = { {8 * 1024 * 1024, 1} },
8668 .block_erase = spi_block_erase_c7,
8669 }
8670 },
8671 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8672 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8673 .write = spi_chip_write_256, /* Multi I/O supported */
8674 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8675 .voltage = {1700, 2000},
8676 },
8677
8678 {
8679 .vendor = "Micron/Numonyx/ST",
8680 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8681 .bustype = BUS_SPI,
8682 .manufacture_id = ST_ID,
8683 .model_id = ST_N25Q064__3E,
8684 .total_size = 8192,
8685 .page_size = 256,
8686 /* supports SFDP */
8687 /* OTP: 64B total; read 0x4B, write 0x42 */
8688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8689 .tested = TEST_OK_PREW,
8690 .probe = probe_spi_rdid,
8691 .probe_timing = TIMING_ZERO,
8692 .block_erasers =
8693 {
8694 {
8695 .eraseblocks = { {4 * 1024, 2048 } },
8696 .block_erase = spi_block_erase_20,
8697 }, {
8698 .eraseblocks = { {64 * 1024, 128} },
8699 .block_erase = spi_block_erase_d8,
8700 }, {
8701 .eraseblocks = { {8 * 1024 * 1024, 1} },
8702 .block_erase = spi_block_erase_c7,
8703 }
8704 },
8705 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8706 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8707 .write = spi_chip_write_256, /* Multi I/O supported */
8708 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8709 .voltage = {2700, 3600},
8710 },
8711
8712 {
8713 .vendor = "Micron/Numonyx/ST",
8714 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8715 .bustype = BUS_SPI,
8716 .manufacture_id = ST_ID,
8717 .model_id = ST_N25Q128__1E,
8718 .total_size = 16384,
8719 .page_size = 256,
8720 /* supports SFDP */
8721 /* OTP: 64B total; read 0x4B, write 0x42 */
8722 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8723 .tested = TEST_UNTESTED,
8724 .probe = probe_spi_rdid,
8725 .probe_timing = TIMING_ZERO,
8726 .block_erasers = {
8727 {
8728 .eraseblocks = { {4 * 1024, 4096 } },
8729 .block_erase = spi_block_erase_20,
8730 }, {
8731 .eraseblocks = { {64 * 1024, 256} },
8732 .block_erase = spi_block_erase_d8,
8733 }, {
8734 .eraseblocks = { {16384 * 1024, 1} },
8735 .block_erase = spi_block_erase_c7,
8736 }
8737 },
8738 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8739 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8740 .write = spi_chip_write_256, /* Multi I/O supported */
8741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8742 .voltage = {1700, 2000},
8743 },
8744
8745 {
8746 .vendor = "Micron/Numonyx/ST",
8747 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8748 .bustype = BUS_SPI,
8749 .manufacture_id = ST_ID,
8750 .model_id = ST_N25Q128__3E,
8751 .total_size = 16384,
8752 .page_size = 256,
8753 /* supports SFDP */
8754 /* OTP: 64B total; read 0x4B, write 0x42 */
8755 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8756 .tested = TEST_OK_PREW,
8757 .probe = probe_spi_rdid,
8758 .probe_timing = TIMING_ZERO,
8759 .block_erasers = {
8760 {
8761 .eraseblocks = { {4 * 1024, 4096 } },
8762 .block_erase = spi_block_erase_20,
8763 }, {
8764 .eraseblocks = { {64 * 1024, 256} },
8765 .block_erase = spi_block_erase_d8,
8766 }, {
8767 .eraseblocks = { {16384 * 1024, 1} },
8768 .block_erase = spi_block_erase_c7,
8769 }
8770 },
8771 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8772 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8773 .write = spi_chip_write_256, /* Multi I/O supported */
8774 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8775 .voltage = {2700, 3600},
8776 },
8777
8778 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008779 .vendor = "MoselVitelic",
8780 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008781 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008782 .manufacture_id = SYNCMOS_MVC_ID,
8783 .model_id = MVC_V29C51000B,
8784 .total_size = 64,
8785 .page_size = 512,
8786 .feature_bits = FEATURE_EITHER_RESET,
8787 .tested = TEST_UNTESTED,
8788 .probe = probe_jedec,
8789 .probe_timing = TIMING_ZERO,
8790 .block_erasers =
8791 {
8792 {
8793 .eraseblocks = { {512, 128} },
8794 .block_erase = erase_sector_jedec,
8795 }, {
8796 .eraseblocks = { {64 * 1024, 1} },
8797 .block_erase = erase_chip_block_jedec,
8798 },
8799 },
8800 .write = write_jedec_1,
8801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008802 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008803 },
8804
8805 {
8806 .vendor = "MoselVitelic",
8807 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008808 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008809 .manufacture_id = SYNCMOS_MVC_ID,
8810 .model_id = MVC_V29C51000T,
8811 .total_size = 64,
8812 .page_size = 512,
8813 .feature_bits = FEATURE_EITHER_RESET,
8814 .tested = TEST_UNTESTED,
8815 .probe = probe_jedec,
8816 .probe_timing = TIMING_ZERO,
8817 .block_erasers =
8818 {
8819 {
8820 .eraseblocks = { {512, 128} },
8821 .block_erase = erase_sector_jedec,
8822 }, {
8823 .eraseblocks = { {64 * 1024, 1} },
8824 .block_erase = erase_chip_block_jedec,
8825 },
8826 },
8827 .write = write_jedec_1,
8828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008829 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008830 },
8831
8832 {
8833 .vendor = "MoselVitelic",
8834 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008835 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008836 .manufacture_id = SYNCMOS_MVC_ID,
8837 .model_id = MVC_V29C51400B,
8838 .total_size = 512,
8839 .page_size = 1024,
8840 .feature_bits = FEATURE_EITHER_RESET,
8841 .tested = TEST_UNTESTED,
8842 .probe = probe_jedec,
8843 .probe_timing = TIMING_ZERO,
8844 .block_erasers =
8845 {
8846 {
8847 .eraseblocks = { {1024, 512} },
8848 .block_erase = erase_sector_jedec,
8849 }, {
8850 .eraseblocks = { {512 * 1024, 1} },
8851 .block_erase = erase_chip_block_jedec,
8852 },
8853 },
8854 .write = write_jedec_1,
8855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008856 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008857 },
8858
8859 {
8860 .vendor = "MoselVitelic",
8861 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008862 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008863 .manufacture_id = SYNCMOS_MVC_ID,
8864 .model_id = MVC_V29C51400T,
8865 .total_size = 512,
8866 .page_size = 1024,
8867 .feature_bits = FEATURE_EITHER_RESET,
8868 .tested = TEST_UNTESTED,
8869 .probe = probe_jedec,
8870 .probe_timing = TIMING_ZERO,
8871 .block_erasers =
8872 {
8873 {
8874 .eraseblocks = { {1024, 512} },
8875 .block_erase = erase_sector_jedec,
8876 }, {
8877 .eraseblocks = { {512 * 1024, 1} },
8878 .block_erase = erase_chip_block_jedec,
8879 },
8880 },
8881 .write = write_jedec_1,
8882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008883 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008884 },
8885
8886 {
8887 .vendor = "MoselVitelic",
8888 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008889 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008890 .manufacture_id = SYNCMOS_MVC_ID,
8891 .model_id = MVC_V29LC51000,
8892 .total_size = 64,
8893 .page_size = 512,
8894 .feature_bits = FEATURE_EITHER_RESET,
8895 .tested = TEST_UNTESTED,
8896 .probe = probe_jedec,
8897 .probe_timing = TIMING_ZERO,
8898 .block_erasers =
8899 {
8900 {
8901 .eraseblocks = { {512, 128} },
8902 .block_erase = erase_sector_jedec,
8903 }, {
8904 .eraseblocks = { {64 * 1024, 1} },
8905 .block_erase = erase_chip_block_jedec,
8906 },
8907 },
8908 .write = write_jedec_1,
8909 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008910 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008911 },
8912
8913 {
8914 .vendor = "MoselVitelic",
8915 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008916 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008917 .manufacture_id = SYNCMOS_MVC_ID,
8918 .model_id = MVC_V29LC51001,
8919 .total_size = 128,
8920 .page_size = 512,
8921 .feature_bits = FEATURE_EITHER_RESET,
8922 .tested = TEST_UNTESTED,
8923 .probe = probe_jedec,
8924 .probe_timing = TIMING_ZERO,
8925 .block_erasers =
8926 {
8927 {
8928 .eraseblocks = { {512, 256} },
8929 .block_erase = erase_sector_jedec,
8930 }, {
8931 .eraseblocks = { {128 * 1024, 1} },
8932 .block_erase = erase_chip_block_jedec,
8933 },
8934 },
8935 .write = write_jedec_1,
8936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008937 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008938 },
8939
8940 {
8941 .vendor = "MoselVitelic",
8942 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008943 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008944 .manufacture_id = SYNCMOS_MVC_ID,
8945 .model_id = MVC_V29LC51002,
8946 .total_size = 256,
8947 .page_size = 512,
8948 .feature_bits = FEATURE_EITHER_RESET,
8949 .tested = TEST_UNTESTED,
8950 .probe = probe_jedec,
8951 .probe_timing = TIMING_ZERO,
8952 .block_erasers =
8953 {
8954 {
8955 .eraseblocks = { {512, 512} },
8956 .block_erase = erase_sector_jedec,
8957 }, {
8958 .eraseblocks = { {256 * 1024, 1} },
8959 .block_erase = erase_chip_block_jedec,
8960 },
8961 },
8962 .write = write_jedec_1,
8963 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008964 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008965 },
8966
8967 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008968 .vendor = "Nantronics",
8969 .name = "N25S10",
8970 .bustype = BUS_SPI,
8971 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8972 .model_id = NANTRONICS_N25S10,
8973 .total_size = 128,
8974 .page_size = 256,
8975 .feature_bits = FEATURE_WRSR_WREN,
8976 .tested = TEST_UNTESTED,
8977 .probe = probe_spi_rdid,
8978 .probe_timing = TIMING_ZERO,
8979 .block_erasers =
8980 {
8981 {
8982 .eraseblocks = { {4 * 1024, 32} },
8983 .block_erase = spi_block_erase_20,
8984 }, {
8985 .eraseblocks = { {4 * 1024, 32} },
8986 .block_erase = spi_block_erase_d7,
8987 }, {
8988 .eraseblocks = { {32 * 1024, 4} },
8989 .block_erase = spi_block_erase_52,
8990 }, {
8991 .eraseblocks = { {64 * 1024, 2} },
8992 .block_erase = spi_block_erase_d8,
8993 }, {
8994 .eraseblocks = { {128 * 1024, 1} },
8995 .block_erase = spi_block_erase_60,
8996 }, {
8997 .eraseblocks = { {128 * 1024, 1} },
8998 .block_erase = spi_block_erase_c7,
8999 }
9000 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009001 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009002 .unlock = spi_disable_blockprotect_bp3_srwd,
9003 .write = spi_chip_write_256,
9004 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9005 .voltage = {2700, 3600},
9006 },
9007
9008 {
9009 .vendor = "Nantronics",
9010 .name = "N25S20",
9011 .bustype = BUS_SPI,
9012 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9013 .model_id = NANTRONICS_N25S20,
9014 .total_size = 256,
9015 .page_size = 256,
9016 .feature_bits = FEATURE_WRSR_WREN,
9017 .tested = TEST_UNTESTED,
9018 .probe = probe_spi_rdid,
9019 .probe_timing = TIMING_ZERO,
9020 .block_erasers =
9021 {
9022 {
9023 .eraseblocks = { {4 * 1024, 64} },
9024 .block_erase = spi_block_erase_20,
9025 }, {
9026 .eraseblocks = { {4 * 1024, 64} },
9027 .block_erase = spi_block_erase_d7,
9028 }, {
9029 .eraseblocks = { {32 * 1024, 8} },
9030 .block_erase = spi_block_erase_52,
9031 }, {
9032 .eraseblocks = { {64 * 1024, 4} },
9033 .block_erase = spi_block_erase_d8,
9034 }, {
9035 .eraseblocks = { {256 * 1024, 1} },
9036 .block_erase = spi_block_erase_60,
9037 }, {
9038 .eraseblocks = { {256 * 1024, 1} },
9039 .block_erase = spi_block_erase_c7,
9040 }
9041 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009042 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009043 .unlock = spi_disable_blockprotect_bp3_srwd,
9044 .write = spi_chip_write_256,
9045 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9046 .voltage = {2700, 3600},
9047 },
9048
9049 {
9050 .vendor = "Nantronics",
9051 .name = "N25S40",
9052 .bustype = BUS_SPI,
9053 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9054 .model_id = NANTRONICS_N25S40,
9055 .total_size = 512,
9056 .page_size = 256,
9057 .feature_bits = FEATURE_WRSR_WREN,
9058 .tested = TEST_UNTESTED,
9059 .probe = probe_spi_rdid,
9060 .probe_timing = TIMING_ZERO,
9061 .block_erasers =
9062 {
9063 {
9064 .eraseblocks = { {4 * 1024, 128} },
9065 .block_erase = spi_block_erase_20,
9066 }, {
9067 .eraseblocks = { {4 * 1024, 128} },
9068 .block_erase = spi_block_erase_d7,
9069 }, {
9070 .eraseblocks = { {32 * 1024, 16} },
9071 .block_erase = spi_block_erase_52,
9072 }, {
9073 .eraseblocks = { {64 * 1024, 8} },
9074 .block_erase = spi_block_erase_d8,
9075 }, {
9076 .eraseblocks = { {512 * 1024, 1} },
9077 .block_erase = spi_block_erase_60,
9078 }, {
9079 .eraseblocks = { {512 * 1024, 1} },
9080 .block_erase = spi_block_erase_c7,
9081 }
9082 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009083 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009084 .unlock = spi_disable_blockprotect_bp3_srwd,
9085 .write = spi_chip_write_256,
9086 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9087 .voltage = {2700, 3600},
9088 },
9089
9090 {
9091 .vendor = "Nantronics",
9092 .name = "N25S80",
9093 .bustype = BUS_SPI,
9094 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9095 .model_id = NANTRONICS_N25S80,
9096 .total_size = 1024,
9097 .page_size = 256,
9098 .feature_bits = FEATURE_WRSR_WREN,
9099 .tested = TEST_UNTESTED,
9100 .probe = probe_spi_rdid,
9101 .probe_timing = TIMING_ZERO,
9102 .block_erasers =
9103 {
9104 {
9105 .eraseblocks = { {4 * 1024, 256} },
9106 .block_erase = spi_block_erase_20,
9107 }, {
9108 .eraseblocks = { {32 * 1024, 32} },
9109 .block_erase = spi_block_erase_52,
9110 }, {
9111 .eraseblocks = { {64 * 1024, 16} },
9112 .block_erase = spi_block_erase_d8,
9113 }, {
9114 .eraseblocks = { {1024 * 1024, 1} },
9115 .block_erase = spi_block_erase_60,
9116 }, {
9117 .eraseblocks = { {1024 * 1024, 1} },
9118 .block_erase = spi_block_erase_c7,
9119 }
9120 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009121 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009122 .unlock = spi_disable_blockprotect_bp3_srwd,
9123 .write = spi_chip_write_256,
9124 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9125 .voltage = {2700, 3600},
9126 },
9127
9128 {
9129 .vendor = "Nantronics",
9130 .name = "N25S16",
9131 .bustype = BUS_SPI,
9132 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9133 .model_id = NANTRONICS_N25S16,
9134 .total_size = 2048,
9135 .page_size = 256,
9136 .feature_bits = FEATURE_WRSR_WREN,
9137 .tested = TEST_UNTESTED,
9138 .probe = probe_spi_rdid,
9139 .probe_timing = TIMING_ZERO,
9140 .block_erasers =
9141 {
9142 {
9143 .eraseblocks = { {4 * 1024, 512} },
9144 .block_erase = spi_block_erase_20,
9145 }, {
9146 .eraseblocks = { {64 * 1024, 32} },
9147 .block_erase = spi_block_erase_d8,
9148 }, {
9149 .eraseblocks = { {2048 * 1024, 1} },
9150 .block_erase = spi_block_erase_60,
9151 }, {
9152 .eraseblocks = { {2048 * 1024, 1} },
9153 .block_erase = spi_block_erase_c7,
9154 }
9155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009156 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009157 .unlock = spi_disable_blockprotect_bp3_srwd,
9158 .write = spi_chip_write_256,
9159 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9160 .voltage = {2700, 3600},
9161 },
9162
9163 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009164 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009165 .name = "Pm25LD256C",
9166 .bustype = BUS_SPI,
9167 .manufacture_id = PMC_ID,
9168 .model_id = PMC_PM25LD256C,
9169 .total_size = 32,
9170 .page_size = 256,
9171 .feature_bits = FEATURE_WRSR_WREN,
9172 .tested = TEST_UNTESTED,
9173 .probe = probe_spi_rdid,
9174 .probe_timing = TIMING_ZERO,
9175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {4 * 1024, 8} },
9179 .block_erase = spi_block_erase_20,
9180 }, {
9181 .eraseblocks = { {4 * 1024, 8} },
9182 .block_erase = spi_block_erase_d7,
9183 }, {
9184 .eraseblocks = { {32 * 1024, 1} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {32 * 1024, 1} },
9188 .block_erase = spi_block_erase_60,
9189 }, {
9190 .eraseblocks = { {32 * 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,
9196 .write = spi_chip_write_256,
9197 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9198 .voltage = {2700, 3600},
9199 },
9200 {
9201 .vendor = "PMC",
9202 .name = "Pm25LD512(C)",
9203 .bustype = BUS_SPI,
9204 .manufacture_id = PMC_ID,
9205 .model_id = PMC_PM25LD512,
9206 .total_size = 64,
9207 .page_size = 256,
9208 .feature_bits = FEATURE_WRSR_WREN,
9209 .tested = TEST_OK_PREW,
9210 .probe = probe_spi_rdid,
9211 .probe_timing = TIMING_ZERO,
9212 .block_erasers =
9213 {
9214 {
9215 .eraseblocks = { {4 * 1024, 16} },
9216 .block_erase = spi_block_erase_20,
9217 }, {
9218 .eraseblocks = { {4 * 1024, 16} },
9219 .block_erase = spi_block_erase_d7,
9220 }, {
9221 .eraseblocks = { {32 * 1024, 2} },
9222 .block_erase = spi_block_erase_d8,
9223 }, {
9224 .eraseblocks = { {64 * 1024, 1} },
9225 .block_erase = spi_block_erase_60,
9226 }, {
9227 .eraseblocks = { {64 * 1024, 1} },
9228 .block_erase = spi_block_erase_c7,
9229 }
9230 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009231 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009232 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9233 .write = spi_chip_write_256,
9234 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9235 .voltage = {2300, 3600},
9236 },
9237
9238 {
9239 .vendor = "PMC",
9240 .name = "Pm25LD010(C)",
9241 .bustype = BUS_SPI,
9242 .manufacture_id = PMC_ID,
9243 .model_id = PMC_PM25LD010,
9244 .total_size = 128,
9245 .page_size = 256,
9246 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009247 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00009248 .probe = probe_spi_rdid,
9249 .probe_timing = TIMING_ZERO,
9250 .block_erasers =
9251 {
9252 {
9253 .eraseblocks = { {4 * 1024, 32} },
9254 .block_erase = spi_block_erase_20,
9255 }, {
9256 .eraseblocks = { {4 * 1024, 32} },
9257 .block_erase = spi_block_erase_d7,
9258 }, {
9259 .eraseblocks = { {32 * 1024, 4} },
9260 .block_erase = spi_block_erase_d8,
9261 }, {
9262 .eraseblocks = { {128 * 1024, 1} },
9263 .block_erase = spi_block_erase_60,
9264 }, {
9265 .eraseblocks = { {128 * 1024, 1} },
9266 .block_erase = spi_block_erase_c7,
9267 }
9268 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009269 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009270 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9271 .write = spi_chip_write_256,
9272 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9273 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
9274 },
9275
9276 {
9277 .vendor = "PMC",
9278 .name = "Pm25LD020(C)",
9279 .bustype = BUS_SPI,
9280 .manufacture_id = PMC_ID,
9281 .model_id = PMC_PM25LD020,
9282 .total_size = 256,
9283 .page_size = 256,
9284 .feature_bits = FEATURE_WRSR_WREN,
9285 .tested = TEST_UNTESTED,
9286 .probe = probe_spi_rdid,
9287 .probe_timing = TIMING_ZERO,
9288 .block_erasers =
9289 {
9290 {
9291 .eraseblocks = { {4 * 1024, 64} },
9292 .block_erase = spi_block_erase_20,
9293 }, {
9294 .eraseblocks = { {4 * 1024, 64} },
9295 .block_erase = spi_block_erase_d7,
9296 }, {
9297 .eraseblocks = { {64 * 1024, 4} },
9298 .block_erase = spi_block_erase_d8,
9299 }, {
9300 .eraseblocks = { {256 * 1024, 1} },
9301 .block_erase = spi_block_erase_60,
9302 }, {
9303 .eraseblocks = { {256 * 1024, 1} },
9304 .block_erase = spi_block_erase_c7,
9305 }
9306 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009307 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009308 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9309 .write = spi_chip_write_256,
9310 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9311 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
9312 },
9313
9314 {
9315 .vendor = "PMC",
9316 .name = "Pm25LD040(C)",
9317 .bustype = BUS_SPI,
9318 .manufacture_id = PMC_ID,
9319 .model_id = PMC_PM25LV040,
9320 .total_size = 512,
9321 .page_size = 256,
9322 .feature_bits = FEATURE_WRSR_WREN,
9323 .tested = TEST_UNTESTED,
9324 .probe = probe_spi_rdid,
9325 .probe_timing = TIMING_ZERO,
9326 .block_erasers =
9327 {
9328 {
9329 .eraseblocks = { {4 * 1024, 128} },
9330 .block_erase = spi_block_erase_20,
9331 }, {
9332 .eraseblocks = { {4 * 1024, 128} },
9333 .block_erase = spi_block_erase_d7,
9334 }, {
9335 .eraseblocks = { {64 * 1024, 8} },
9336 .block_erase = spi_block_erase_d8,
9337 }, {
9338 .eraseblocks = { {512 * 1024, 1} },
9339 .block_erase = spi_block_erase_60,
9340 }, {
9341 .eraseblocks = { {512 * 1024, 1} },
9342 .block_erase = spi_block_erase_c7,
9343 }
9344 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009345 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009346 .unlock = spi_disable_blockprotect,
9347 .write = spi_chip_write_256,
9348 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9349 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
9350 },
9351
9352{
9353 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009354 .name = "Pm25LV512(A)",
9355 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009356 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009357 .model_id = PMC_PM25LV512,
9358 .total_size = 64,
9359 .page_size = 256,
9360 .feature_bits = FEATURE_WRSR_WREN,
9361 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00009362 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009363 .probe_timing = TIMING_ZERO,
9364 .block_erasers =
9365 {
9366 {
9367 .eraseblocks = { {4 * 1024, 16} },
9368 .block_erase = spi_block_erase_d7,
9369 }, {
9370 .eraseblocks = { {32 * 1024, 2} },
9371 .block_erase = spi_block_erase_d8,
9372 }, {
9373 .eraseblocks = { {64 * 1024, 1} },
9374 .block_erase = spi_block_erase_c7,
9375 }
9376 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009377 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009378 .unlock = spi_disable_blockprotect,
9379 .write = spi_chip_write_256,
9380 .read = spi_chip_read, /* Fast read (0x0B) supported */
9381 .voltage = {2700, 3600},
9382 },
9383
9384 {
9385 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009386 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009387 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009388 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009389 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009390 .total_size = 128,
9391 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009392 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00009393 .tested = TEST_OK_PREW,
9394 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009395 .probe_timing = TIMING_ZERO,
9396 .block_erasers =
9397 {
9398 {
9399 .eraseblocks = { {4 * 1024, 32} },
9400 .block_erase = spi_block_erase_d7,
9401 }, {
9402 .eraseblocks = { {32 * 1024, 4} },
9403 .block_erase = spi_block_erase_d8,
9404 }, {
9405 .eraseblocks = { {128 * 1024, 1} },
9406 .block_erase = spi_block_erase_c7,
9407 }
9408 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009409 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009410 .unlock = spi_disable_blockprotect,
9411 .write = spi_chip_write_256,
9412 .read = spi_chip_read, /* Fast read (0x0B) supported */
9413 .voltage = {2700, 3600},
9414 },
9415
9416 {
9417 .vendor = "PMC",
9418 .name = "Pm25LV010A",
9419 .bustype = BUS_SPI,
9420 .manufacture_id = PMC_ID,
9421 .model_id = PMC_PM25LV010,
9422 .total_size = 128,
9423 .page_size = 256,
9424 .feature_bits = FEATURE_WRSR_WREN,
9425 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009426 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009427 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009428 .block_erasers =
9429 {
9430 {
9431 .eraseblocks = { {4 * 1024, 32} },
9432 .block_erase = spi_block_erase_d7,
9433 }, {
9434 .eraseblocks = { {32 * 1024, 4} },
9435 .block_erase = spi_block_erase_d8,
9436 }, {
9437 .eraseblocks = { {128 * 1024, 1} },
9438 .block_erase = spi_block_erase_c7,
9439 }
9440 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009441 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009442 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009443 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009444 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009445 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009446 },
9447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009448 {
9449 .vendor = "PMC",
9450 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009451 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009452 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009453 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009454 .total_size = 256,
9455 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009456 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009457 .tested = TEST_UNTESTED,
9458 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009459 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009460 .block_erasers =
9461 {
9462 {
9463 .eraseblocks = { {4 * 1024, 64} },
9464 .block_erase = spi_block_erase_d7,
9465 }, {
9466 .eraseblocks = { {64 * 1024, 4} },
9467 .block_erase = spi_block_erase_d8,
9468 }, {
9469 .eraseblocks = { {256 * 1024, 1} },
9470 .block_erase = spi_block_erase_c7,
9471 }
9472 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009473 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009474 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009475 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009476 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009477 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009478 },
9479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009480 {
9481 .vendor = "PMC",
9482 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009483 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009484 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009485 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009486 .total_size = 512,
9487 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009488 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00009489 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009490 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009491 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009492 .block_erasers =
9493 {
9494 {
9495 .eraseblocks = { {4 * 1024, 128} },
9496 .block_erase = spi_block_erase_d7,
9497 }, {
9498 .eraseblocks = { {64 * 1024, 8} },
9499 .block_erase = spi_block_erase_d8,
9500 }, {
9501 .eraseblocks = { {512 * 1024, 1} },
9502 .block_erase = spi_block_erase_c7,
9503 }
9504 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009505 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009506 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009507 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009508 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009509 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009510 },
9511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009512 {
9513 .vendor = "PMC",
9514 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009515 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009516 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009517 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009518 .total_size = 1024,
9519 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009520 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009521 .tested = TEST_UNTESTED,
9522 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009523 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009524 .block_erasers =
9525 {
9526 {
9527 .eraseblocks = { {4 * 1024, 256} },
9528 .block_erase = spi_block_erase_d7,
9529 }, {
9530 .eraseblocks = { {4 * 1024, 256} },
9531 .block_erase = spi_block_erase_20,
9532 }, {
9533 .eraseblocks = { {64 * 1024, 16} },
9534 .block_erase = spi_block_erase_d8,
9535 }, {
9536 .eraseblocks = { {1024 * 1024, 1} },
9537 .block_erase = spi_block_erase_60,
9538 }, {
9539 .eraseblocks = { {1024 * 1024, 1} },
9540 .block_erase = spi_block_erase_c7,
9541 }
9542 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009543 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009544 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009545 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009546 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009547 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009548 },
9549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009550 {
9551 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009552 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009553 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009554 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009555 .model_id = PMC_PM25LV016B,
9556 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009557 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009558 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009559 .tested = TEST_UNTESTED,
9560 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009561 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009562 .block_erasers =
9563 {
9564 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009565 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00009566 .block_erase = spi_block_erase_d7,
9567 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009568 .eraseblocks = { {4 * 1024, 512} },
9569 .block_erase = spi_block_erase_20,
9570 }, {
9571 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00009572 .block_erase = spi_block_erase_d8,
9573 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009574 .eraseblocks = { {2 * 1024 * 1024, 1} },
9575 .block_erase = spi_block_erase_60,
9576 }, {
9577 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009578 .block_erase = spi_block_erase_c7,
9579 }
9580 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009581 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009582 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009583 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009584 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009585 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009586 },
9587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009588 {
9589 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009590 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009591 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009592 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009593 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009594 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009595 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009596 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009597 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009598 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009599 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009600 .block_erasers =
9601 {
9602 {
9603 .eraseblocks = {
9604 {128 * 1024, 1},
9605 {96 * 1024, 1},
9606 {8 * 1024, 2},
9607 {16 * 1024, 1},
9608 },
Sean Nelson35727f72010-01-28 23:55:12 +00009609 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009610 }, {
9611 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009612 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009613 },
9614 },
Sean Nelson35727f72010-01-28 23:55:12 +00009615 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009616 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009617 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009618 },
9619
9620 {
9621 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009622 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009623 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009624 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009625 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009626 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009627 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009628 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009629 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009630 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009631 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009632 .block_erasers =
9633 {
9634 {
9635 .eraseblocks = {
9636 {16 * 1024, 1},
9637 {8 * 1024, 2},
9638 {96 * 1024, 1},
9639 {128 * 1024, 1},
9640 },
Sean Nelson35727f72010-01-28 23:55:12 +00009641 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009642 }, {
9643 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009644 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009645 },
9646 },
Sean Nelson35727f72010-01-28 23:55:12 +00009647 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009648 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009649 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009650 },
9651
9652 {
9653 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009654 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009655 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009656 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009657 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009658 .total_size = 128,
9659 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009660 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009661 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009662 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009663 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009664 .block_erasers =
9665 {
9666 {
9667 .eraseblocks = { {4 * 1024, 32} },
9668 .block_erase = erase_sector_jedec,
9669 }, {
9670 .eraseblocks = { {64 * 1024, 2} },
9671 .block_erase = erase_block_jedec,
9672 }, {
9673 .eraseblocks = { {128 * 1024, 1} },
9674 .block_erase = erase_chip_block_jedec,
9675 }
9676 },
Sean Nelson35727f72010-01-28 23:55:12 +00009677 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009678 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009679 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009680 },
9681
9682 {
9683 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009684 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009685 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009686 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009687 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009688 .total_size = 256,
9689 .page_size = 4096,
9690 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9691 .tested = TEST_UNTESTED,
9692 .probe = probe_jedec,
9693 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9694 .block_erasers =
9695 {
9696 {
9697 .eraseblocks = { {4 * 1024, 64} },
9698 .block_erase = erase_sector_jedec,
9699 }, {
9700 .eraseblocks = { {64 * 1024, 4} },
9701 .block_erase = erase_block_jedec,
9702 }, {
9703 .eraseblocks = { {256 * 1024, 1} },
9704 .block_erase = erase_chip_block_jedec,
9705 }
9706 },
9707 .write = write_jedec_1,
9708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009709 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009710 },
9711
9712 {
9713 .vendor = "PMC",
9714 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009715 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009716 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009717 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009718 .total_size = 512,
9719 .page_size = 4096,
9720 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009721 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009722 .probe = probe_jedec,
9723 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9724 .block_erasers =
9725 {
9726 {
9727 .eraseblocks = { {4 * 1024, 128} },
9728 .block_erase = erase_sector_jedec,
9729 }, {
9730 .eraseblocks = { {64 * 1024, 8} },
9731 .block_erase = erase_block_jedec,
9732 }, {
9733 .eraseblocks = { {512 * 1024, 1} },
9734 .block_erase = erase_chip_block_jedec,
9735 }
9736 },
9737 .write = write_jedec_1,
9738 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009739 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009740 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009741
9742 {
9743 .vendor = "PMC",
9744 .name = "Pm39LV512",
9745 .bustype = BUS_PARALLEL,
9746 .manufacture_id = PMC_ID_NOPREFIX,
9747 .model_id = PMC_PM39LV512,
9748 .total_size = 64,
9749 .page_size = 4096,
9750 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9751 .tested = TEST_OK_PREW,
9752 .probe = probe_jedec,
9753 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9754 .block_erasers =
9755 {
9756 {
9757 .eraseblocks = { {4 * 1024, 16} },
9758 .block_erase = erase_sector_jedec,
9759 }, {
9760 .eraseblocks = { {64 * 1024, 1} },
9761 .block_erase = erase_block_jedec,
9762 }, {
9763 .eraseblocks = { {64 * 1024, 1} },
9764 .block_erase = erase_chip_block_jedec,
9765 }
9766 },
9767 .write = write_jedec_1,
9768 .read = read_memmapped,
9769 .voltage = {2700, 3600},
9770 },
9771
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009772 {
9773 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009774 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009775 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009776 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009777 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009778 .total_size = 256,
9779 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009780 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009781 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009782 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009783 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009784 .block_erasers =
9785 {
9786 {
9787 .eraseblocks = { {4 * 1024, 64} },
9788 .block_erase = erase_sector_jedec,
9789 }, {
9790 .eraseblocks = { {16 * 1024, 16} },
9791 .block_erase = erase_block_jedec,
9792 }, {
9793 .eraseblocks = { {256 * 1024, 1} },
9794 .block_erase = erase_chip_block_jedec,
9795 }
9796 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009797 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +00009798 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009800 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009801 },
9802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009803 {
9804 .vendor = "PMC",
9805 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009806 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009807 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009808 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009809 .total_size = 512,
9810 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009811 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009812 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009813 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009814 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009815 .block_erasers =
9816 {
9817 {
9818 .eraseblocks = { {4 * 1024, 128} },
9819 .block_erase = erase_sector_jedec,
9820 }, {
9821 .eraseblocks = { {64 * 1024, 8} },
9822 .block_erase = erase_block_jedec,
9823 }, {
9824 .eraseblocks = { {512 * 1024, 1} },
9825 .block_erase = erase_chip_block_jedec,
9826 }
9827 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009828 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +00009829 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009831 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009832 },
9833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009834 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009835 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009836 .name = "LE25FW106",
9837 .bustype = BUS_SPI,
9838 .manufacture_id = SANYO_ID,
9839 .model_id = SANYO_LE25FW106,
9840 .total_size = 128,
9841 .page_size = 256,
9842 .feature_bits = FEATURE_WRSR_WREN,
9843 .tested = TEST_OK_PREW,
9844 .probe = probe_spi_res2,
9845 .probe_timing = TIMING_ZERO,
9846 .block_erasers = {
9847 {
9848 .eraseblocks = { {2 * 1024, 64} },
9849 .block_erase = spi_block_erase_d7,
9850 }, {
9851 .eraseblocks = { {32 * 1024, 4} },
9852 .block_erase = spi_block_erase_d8,
9853 }, {
9854 .eraseblocks = { {128 * 1024, 1} },
9855 .block_erase = spi_block_erase_c7,
9856 }
9857 },
9858 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9859 .unlock = spi_disable_blockprotect_bp1_srwd,
9860 .write = spi_chip_write_256,
9861 .read = spi_chip_read,
9862 .voltage = {2700, 3600},
9863 },
9864
9865 {
9866 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009867 .name = "LE25FW406A",
9868 .bustype = BUS_SPI,
9869 .manufacture_id = SANYO_ID,
9870 .model_id = SANYO_LE25FW406A,
9871 .total_size = 512,
9872 .page_size = 256,
9873 .feature_bits = FEATURE_WRSR_WREN,
9874 .tested = TEST_OK_PREW,
9875 .probe = probe_spi_res2,
9876 .probe_timing = TIMING_ZERO,
9877 .block_erasers = {
9878 {
9879 .eraseblocks = { {4 * 1024, 128} },
9880 .block_erase = spi_block_erase_d7,
9881 }, {
9882 .eraseblocks = { {64 * 1024, 8} },
9883 .block_erase = spi_block_erase_d8,
9884 }, {
9885 .eraseblocks = { {512 * 1024, 1} },
9886 .block_erase = spi_block_erase_c7,
9887 }
9888 },
9889 .printlock = spi_prettyprint_status_register_plain,
9890 .unlock = spi_disable_blockprotect,
9891 .write = spi_chip_write_256,
9892 .read = spi_chip_read,
9893 .voltage = {2700, 3600},
9894 },
9895
9896 {
9897 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009898 .name = "LE25FU406B",
9899 .bustype = BUS_SPI,
9900 .manufacture_id = SANYO_ID,
9901 .model_id = SANYO_LE25FU406B,
9902 .total_size = 512,
9903 .page_size = 256,
9904 .feature_bits = FEATURE_WRSR_WREN,
9905 .tested = TEST_OK_PREW,
9906 .probe = probe_spi_res2,
9907 .probe_timing = TIMING_ZERO,
9908 .block_erasers = {
9909 {
9910 .eraseblocks = { {4 * 1024, 128} },
9911 .block_erase = spi_block_erase_d7,
9912 }, {
9913 .eraseblocks = { {64 * 1024, 8} },
9914 .block_erase = spi_block_erase_d8,
9915 }, {
9916 .eraseblocks = { {512 * 1024, 1} },
9917 .block_erase = spi_block_erase_c7,
9918 }
9919 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009920 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009921 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9922 .write = spi_chip_write_256,
9923 .read = spi_chip_read,
9924 .voltage = {2300, 3600},
9925 },
9926
9927 {
9928 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009929 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009930 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009931 .manufacture_id = SANYO_ID,
9932 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009933 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009934 .page_size = 256,
9935 .tested = TEST_UNTESTED,
9936 .probe = probe_spi_rdid,
9937 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009938 .block_erasers =
9939 {
9940 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009941 .eraseblocks = { {256, 1024} },
9942 .block_erase = spi_block_erase_db,
9943 }, {
9944 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009945 .block_erase = spi_block_erase_d8,
9946 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009947 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009948 .block_erase = spi_block_erase_c7,
9949 }
9950 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009951 .printlock = spi_prettyprint_status_register_default_welwip,
9952 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009953 .write = spi_chip_write_256,
9954 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009955 .voltage = {2700, 3600},
9956 },
9957
9958 {
9959 .vendor = "Sanyo",
9960 .name = "LE25FW403A",
9961 .bustype = BUS_SPI,
9962 .manufacture_id = SANYO_ID,
9963 .model_id = SANYO_LE25FW403A,
9964 .total_size = 512,
9965 .page_size = 256,
9966 .tested = TEST_UNTESTED,
9967 .probe = probe_spi_rdid,
9968 .probe_timing = TIMING_ZERO,
9969 .block_erasers = {
9970 {
9971 .eraseblocks = { {256, 2 * 1024} },
9972 .block_erase = spi_block_erase_db,
9973 }, {
9974 .eraseblocks = { {64 * 1024, 8} },
9975 .block_erase = spi_block_erase_d8,
9976 }, {
9977 .eraseblocks = { {512 * 1024, 1} },
9978 .block_erase = spi_block_erase_c7,
9979 }
9980 },
9981 .printlock = spi_prettyprint_status_register_default_welwip,
9982 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9983 .write = spi_chip_write_256,
9984 .read = spi_chip_read,
9985 .voltage = {2700, 3600},
9986 },
9987
9988 {
9989 .vendor = "Sanyo",
9990 .name = "LE25FW418A",
9991 .bustype = BUS_SPI,
9992 .manufacture_id = SANYO_ID,
9993 .model_id = SANYO_LE25FW418A,
9994 .total_size = 512,
9995 .page_size = 256,
9996 .feature_bits = FEATURE_WRSR_WREN,
9997 .tested = TEST_UNTESTED,
9998 .probe = probe_spi_res2,
9999 .probe_timing = TIMING_ZERO,
10000 .block_erasers = {
10001 {
10002 .eraseblocks = { {4 * 1024, 128} },
10003 .block_erase = spi_block_erase_d7,
10004 }, {
10005 .eraseblocks = { {64 * 1024, 8} },
10006 .block_erase = spi_block_erase_d8,
10007 }, {
10008 .eraseblocks = { {512 * 1024, 1} },
10009 .block_erase = spi_block_erase_c7,
10010 }
10011 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010012 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010013 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10014 .write = spi_chip_write_256,
10015 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10016 .voltage = {2700, 3600},
10017 },
10018
10019 {
10020 .vendor = "Sanyo",
10021 .name = "LE25FW806",
10022 .bustype = BUS_SPI,
10023 .manufacture_id = SANYO_ID,
10024 .model_id = SANYO_LE25FW806,
10025 .total_size = 1024,
10026 .page_size = 256,
10027 .feature_bits = FEATURE_WRSR_WREN,
10028 .tested = TEST_UNTESTED,
10029 .probe = probe_spi_res2,
10030 .probe_timing = TIMING_ZERO,
10031 .block_erasers = {
10032 {
10033 .eraseblocks = { {4 * 1024, 256} },
10034 .block_erase = spi_block_erase_20,
10035 }, {
10036 .eraseblocks = { {4 * 1024, 256} },
10037 .block_erase = spi_block_erase_d7,
10038 }, {
10039 .eraseblocks = { {64 * 1024, 16} },
10040 .block_erase = spi_block_erase_d8,
10041 }, {
10042 .eraseblocks = { {1024 * 1024, 1} },
10043 .block_erase = spi_block_erase_c7,
10044 }
10045 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010046 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010047 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10048 .write = spi_chip_write_256,
10049 .read = spi_chip_read,
10050 .voltage = {2700, 3600},
10051 },
10052
10053 {
10054 .vendor = "Sanyo",
10055 .name = "LE25FW808",
10056 .bustype = BUS_SPI,
10057 .manufacture_id = SANYO_ID,
10058 .model_id = SANYO_LE25FW808,
10059 .total_size = 1024,
10060 .page_size = 256,
10061 .feature_bits = FEATURE_WRSR_WREN,
10062 .tested = TEST_UNTESTED,
10063 .probe = probe_spi_res2,
10064 .probe_timing = TIMING_ZERO,
10065 .block_erasers = {
10066 {
10067 .eraseblocks = { {8 * 1024, 128} },
10068 .block_erase = spi_block_erase_d7,
10069 }, {
10070 .eraseblocks = { {64 * 1024, 16} },
10071 .block_erase = spi_block_erase_d8,
10072 }, {
10073 .eraseblocks = { {1024 * 1024, 1} },
10074 .block_erase = spi_block_erase_c7,
10075 }
10076 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010077 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010078 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10079 .write = spi_chip_write_256,
10080 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10081 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000010082 },
10083
10084 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010085 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010086 .name = "LH28F008BJT-BTLZ1",
10087 .bustype = BUS_PARALLEL,
10088 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000010089 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010090 .total_size = 1024,
10091 .page_size = 64 * 1024,
10092 .tested = TEST_OK_PREW,
10093 .probe = probe_82802ab,
10094 .probe_timing = TIMING_ZERO,
10095 .block_erasers =
10096 {
10097 {
10098 .eraseblocks = {
10099 {8 * 1024, 8},
10100 {64 * 1024, 15}
10101 },
10102 .block_erase = erase_block_82802ab,
10103 }, {
10104 .eraseblocks = { {1024 * 1024, 1} },
10105 .block_erase = erase_sector_49lfxxxc,
10106 }
10107 },
10108 .unlock = unlock_lh28f008bjt,
10109 .write = write_82802ab,
10110 .read = read_memmapped,
10111 .voltage = {2700, 3600},
10112 },
10113
10114 {
10115 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010116 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010117 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010118 .manufacture_id = SHARP_ID,
10119 .model_id = SHARP_LHF00L04,
10120 .total_size = 1024,
10121 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010122 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010123 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010124 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010125 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010126 .block_erasers =
10127 {
10128 {
10129 .eraseblocks = {
10130 {64 * 1024, 15},
10131 {8 * 1024, 8}
10132 },
Sean Nelson28accc22010-03-19 18:47:06 +000010133 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010134 }, {
10135 .eraseblocks = {
10136 {1024 * 1024, 1}
10137 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010138 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010139 },
10140 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010141 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000010142 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010144 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010145 },
10146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010147 {
10148 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000010149 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010150 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010151 .manufacture_id = SPANSION_ID,
10152 .model_id = SPANSION_S25FL004A,
10153 .total_size = 512,
10154 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010155 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010156 .tested = TEST_UNTESTED,
10157 .probe = probe_spi_rdid,
10158 .probe_timing = TIMING_ZERO,
10159 .block_erasers =
10160 {
10161 {
10162 .eraseblocks = { {64 * 1024, 8} },
10163 .block_erase = spi_block_erase_d8,
10164 }, {
10165 .eraseblocks = { {512 * 1024, 1} },
10166 .block_erase = spi_block_erase_c7,
10167 }
10168 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010169 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010170 .unlock = spi_disable_blockprotect,
10171 .write = spi_chip_write_256,
10172 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010173 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010174 },
10175
10176 {
10177 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000010178 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010179 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000010180 .manufacture_id = SPANSION_ID,
10181 .model_id = SPANSION_S25FL008A,
10182 .total_size = 1024,
10183 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010184 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010185 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000010186 .probe = probe_spi_rdid,
10187 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000010188 .block_erasers =
10189 {
10190 {
10191 .eraseblocks = { {64 * 1024, 16} },
10192 .block_erase = spi_block_erase_d8,
10193 }, {
10194 .eraseblocks = { {1024 * 1024, 1} },
10195 .block_erase = spi_block_erase_c7,
10196 }
10197 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010198 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010199 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000010200 .write = spi_chip_write_256,
10201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010202 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000010203 },
10204
10205 {
10206 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010207 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010208 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010209 .manufacture_id = SPANSION_ID,
10210 .model_id = SPANSION_S25FL016A,
10211 .total_size = 2048,
10212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010213 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010214 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010216 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010217 .block_erasers =
10218 {
10219 {
10220 .eraseblocks = { {64 * 1024, 32} },
10221 .block_erase = spi_block_erase_d8,
10222 }, {
10223 .eraseblocks = { {2 * 1024 * 1024, 1} },
10224 .block_erase = spi_block_erase_c7,
10225 }
10226 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010227 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010228 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010229 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010231 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010232 },
10233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010234 {
Rudy Hostf4e57772010-11-29 00:37:49 +000010235 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010236 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010237 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010238 .manufacture_id = SPANSION_ID,
10239 .model_id = SPANSION_S25FL032A,
10240 .total_size = 4096,
10241 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010242 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010243 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000010244 .probe = probe_spi_rdid,
10245 .probe_timing = TIMING_ZERO,
10246 .block_erasers =
10247 {
10248 {
10249 .eraseblocks = { {64 * 1024, 64} },
10250 .block_erase = spi_block_erase_d8,
10251 }, {
10252 .eraseblocks = { {4 * 1024 * 1024, 1} },
10253 .block_erase = spi_block_erase_c7,
10254 }
10255 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010256 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010257 .unlock = spi_disable_blockprotect,
10258 .write = spi_chip_write_256,
10259 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010260 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010261 },
10262
10263 {
10264 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010265 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010266 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010267 .manufacture_id = SPANSION_ID,
10268 .model_id = SPANSION_S25FL064A,
10269 .total_size = 8192,
10270 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010271 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010272 .tested = TEST_OK_PREW,
10273 .probe = probe_spi_rdid,
10274 .probe_timing = TIMING_ZERO,
10275 .block_erasers =
10276 {
10277 {
10278 .eraseblocks = { {64 * 1024, 128} },
10279 .block_erase = spi_block_erase_d8,
10280 }, {
10281 .eraseblocks = { {8 * 1024 * 1024, 1} },
10282 .block_erase = spi_block_erase_c7,
10283 }
10284 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010285 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010286 .unlock = spi_disable_blockprotect,
10287 .write = spi_chip_write_256,
10288 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010289 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010290 },
10291
10292 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010293 .vendor = "Spansion",
10294 .name = "S25FL204K",
10295 .bustype = BUS_SPI,
10296 .manufacture_id = SPANSION_ID,
10297 .model_id = SPANSION_S25FL204,
10298 .total_size = 512,
10299 .page_size = 256,
10300 .feature_bits = FEATURE_WRSR_WREN,
10301 .tested = TEST_UNTESTED,
10302 .probe = probe_spi_rdid,
10303 .probe_timing = TIMING_ZERO,
10304 .block_erasers = {
10305 {
10306 .eraseblocks = { {4 * 1024, 128} },
10307 .block_erase = spi_block_erase_20,
10308 }, {
10309 .eraseblocks = { {64 * 1024, 8} },
10310 .block_erase = spi_block_erase_d8,
10311 }, {
10312 .eraseblocks = { { 512 * 1024, 1} },
10313 .block_erase = spi_block_erase_60,
10314 }, {
10315 .eraseblocks = { { 512 * 1024, 1} },
10316 .block_erase = spi_block_erase_c7,
10317 }
10318 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010319 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010320 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010321 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010322 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010323 .voltage = {2700, 3600},
10324 },
10325
10326 {
10327 .vendor = "Spansion",
10328 .name = "S25FL208K",
10329 .bustype = BUS_SPI,
10330 .manufacture_id = SPANSION_ID,
10331 .model_id = SPANSION_S25FL208,
10332 .total_size = 1024,
10333 .page_size = 256,
10334 .feature_bits = FEATURE_WRSR_WREN,
10335 .tested = TEST_UNTESTED,
10336 .probe = probe_spi_rdid,
10337 .probe_timing = TIMING_ZERO,
10338 .block_erasers = {
10339 {
10340 .eraseblocks = { {4 * 1024, 256} },
10341 .block_erase = spi_block_erase_20,
10342 }, {
10343 .eraseblocks = { {64 * 1024, 16} },
10344 .block_erase = spi_block_erase_d8,
10345 }, {
10346 .eraseblocks = { { 1024 * 1024, 1} },
10347 .block_erase = spi_block_erase_60,
10348 }, {
10349 .eraseblocks = { { 1024 * 1024, 1} },
10350 .block_erase = spi_block_erase_c7,
10351 }
10352 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010353 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010354 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010355 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010356 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010357 .voltage = {2700, 3600},
10358 },
10359
10360 {
10361 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000010362 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010363 .bustype = BUS_SPI,
10364 .manufacture_id = SPANSION_ID,
10365 .model_id = SPANSION_S25FL216,
10366 .total_size = 2048,
10367 .page_size = 256,
10368 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
10369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10370 .tested = TEST_UNTESTED,
10371 .probe = probe_spi_rdid,
10372 .probe_timing = TIMING_ZERO,
10373 .block_erasers = {
10374 {
10375 .eraseblocks = { {4 * 1024, 512} },
10376 .block_erase = spi_block_erase_20,
10377 }, {
10378 .eraseblocks = { {64 * 1024, 32} },
10379 .block_erase = spi_block_erase_d8,
10380 }, {
10381 .eraseblocks = { { 2048 * 1024, 1} },
10382 .block_erase = spi_block_erase_60,
10383 }, {
10384 .eraseblocks = { { 2048 * 1024, 1} },
10385 .block_erase = spi_block_erase_c7,
10386 }
10387 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010388 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010389 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010390 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010391 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010392 .voltage = {2700, 3600},
10393 },
10394
10395 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010396 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000010397 .name = "S25FL132K",
10398 .bustype = BUS_SPI,
10399 .manufacture_id = SPANSION_ID,
10400 .model_id = SPANSION_S25FL132K,
10401 .total_size = 4096,
10402 .page_size = 256,
10403 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10404 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10405 .tested = TEST_UNTESTED,
10406 .probe = probe_spi_rdid,
10407 .probe_timing = TIMING_ZERO,
10408 .block_erasers = {
10409 {
10410 .eraseblocks = { {4 * 1024, 1024} },
10411 .block_erase = spi_block_erase_20,
10412 }, {
10413 .eraseblocks = { {64 * 1024, 64} },
10414 .block_erase = spi_block_erase_d8,
10415 }, {
10416 .eraseblocks = { { 4096 * 1024, 1} },
10417 .block_erase = spi_block_erase_60,
10418 }, {
10419 .eraseblocks = { { 4096 * 1024, 1} },
10420 .block_erase = spi_block_erase_c7,
10421 }
10422 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010423 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010424 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10425 .write = spi_chip_write_256,
10426 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10427 .voltage = {2700, 3600},
10428 },
10429
10430 {
10431 .vendor = "Spansion",
10432 .name = "S25FL164K",
10433 .bustype = BUS_SPI,
10434 .manufacture_id = SPANSION_ID,
10435 .model_id = SPANSION_S25FL164K,
10436 .total_size = 8192,
10437 .page_size = 256,
10438 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10440 .tested = TEST_OK_PREW,
10441 .probe = probe_spi_rdid,
10442 .probe_timing = TIMING_ZERO,
10443 .block_erasers = {
10444 {
10445 .eraseblocks = { {4 * 1024, 2048} },
10446 .block_erase = spi_block_erase_20,
10447 }, {
10448 .eraseblocks = { {64 * 1024, 128} },
10449 .block_erase = spi_block_erase_d8,
10450 }, {
10451 .eraseblocks = { { 8192 * 1024, 1} },
10452 .block_erase = spi_block_erase_60,
10453 }, {
10454 .eraseblocks = { { 8192 * 1024, 1} },
10455 .block_erase = spi_block_erase_c7,
10456 }
10457 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010458 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010459 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10460 .write = spi_chip_write_256,
10461 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10462 .voltage = {2700, 3600},
10463 },
10464
10465 {
10466 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000010467 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
10468 .bustype = BUS_SPI,
10469 .manufacture_id = SPANSION_ID,
10470 .model_id = SPANSION_S25FL128,
10471 .total_size = 16384,
10472 .page_size = 256,
10473 /* supports 4B addressing */
10474 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10475 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10476 .tested = TEST_OK_PREW,
10477 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
10478 .probe = probe_spi_rdid,
10479 .probe_timing = TIMING_ZERO,
10480 .block_erasers = {
10481 {
10482 /* This chip supports erasing of 32 so-called "parameter sectors" with
10483 * opcode 0x20 which may be configured to be on top or bottom of the address
10484 * space. Trying to access an address outside these 4kB blocks does have no
10485 * effect on the memory contents, e.g.
10486 .eraseblocks = {
10487 {4 * 1024, 32},
10488 {64 * 1024, 254} // inaccessible
10489 },
10490 .block_erase = spi_block_erase_20,
10491 }, { */
10492 .eraseblocks = { { 64 * 1024, 256} },
10493 .block_erase = spi_block_erase_d8,
10494 }, {
10495 .eraseblocks = { { 16384 * 1024, 1} },
10496 .block_erase = spi_block_erase_60,
10497 }, {
10498 .eraseblocks = { { 16384 * 1024, 1} },
10499 .block_erase = spi_block_erase_c7,
10500 }
10501 },
10502 .printlock = spi_prettyprint_status_register_bp2_srwd,
10503 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10504 .write = spi_chip_write_256, /* Multi I/O supported */
10505 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10506 .voltage = {2700, 3600},
10507 },
10508
10509 {
10510 .vendor = "Spansion",
10511 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
10512 .bustype = BUS_SPI,
10513 .manufacture_id = SPANSION_ID,
10514 .model_id = SPANSION_S25FL128,
10515 .total_size = 16384,
10516 .page_size = 512,
10517 /* supports 4B addressing */
10518 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10519 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10520 .tested = TEST_UNTESTED,
10521 .probe = probe_spi_rdid,
10522 .probe_timing = TIMING_ZERO,
10523 .block_erasers = {
10524 {
10525 .eraseblocks = { {256 * 1024, 64} },
10526 .block_erase = spi_block_erase_d8,
10527 }, {
10528 .eraseblocks = { { 16384 * 1024, 1} },
10529 .block_erase = spi_block_erase_60,
10530 }, {
10531 .eraseblocks = { { 16384 * 1024, 1} },
10532 .block_erase = spi_block_erase_c7,
10533 }
10534 },
10535 .printlock = spi_prettyprint_status_register_bp2_srwd,
10536 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10537 .write = spi_chip_write_256, /* Multi I/O supported */
10538 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10539 .voltage = {2700, 3600},
10540 },
10541
10542 {
10543 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000010544 .name = "S25FL128P......0", /* uniform 64 kB sectors */
10545 .bustype = BUS_SPI,
10546 .manufacture_id = SPANSION_ID,
10547 .model_id = SPANSION_S25FL128,
10548 .total_size = 16384,
10549 .page_size = 256,
10550 .feature_bits = FEATURE_WRSR_WREN,
10551 .tested = TEST_UNTESTED,
10552 .probe = probe_spi_rdid,
10553 .probe_timing = TIMING_ZERO,
10554 .block_erasers = {
10555 {
10556 .eraseblocks = { {64 * 1024, 256} },
10557 .block_erase = spi_block_erase_20,
10558 }, {
10559 .eraseblocks = { {64 * 1024, 256} },
10560 .block_erase = spi_block_erase_d8,
10561 }, {
10562 .eraseblocks = { { 16384 * 1024, 1} },
10563 .block_erase = spi_block_erase_60,
10564 }, {
10565 .eraseblocks = { { 16384 * 1024, 1} },
10566 .block_erase = spi_block_erase_c7,
10567 }
10568 },
10569 .printlock = spi_prettyprint_status_register_bp3_srwd,
10570 .unlock = spi_disable_blockprotect_bp3_srwd,
10571 .write = spi_chip_write_256,
10572 .read = spi_chip_read, /* Fast read (0x0B) supported */
10573 .voltage = {2700, 3600},
10574 },
10575
10576 {
10577 .vendor = "Spansion",
10578 .name = "S25FL128P......1", /* uniform 256kB sectors */
10579 .bustype = BUS_SPI,
10580 .manufacture_id = SPANSION_ID,
10581 .model_id = SPANSION_S25FL128,
10582 .total_size = 16384,
10583 .page_size = 256,
10584 .feature_bits = FEATURE_WRSR_WREN,
10585 .tested = TEST_UNTESTED,
10586 .probe = probe_spi_rdid,
10587 .probe_timing = TIMING_ZERO,
10588 .block_erasers = {
10589 {
10590 .eraseblocks = { {256 * 1024, 64} },
10591 .block_erase = spi_block_erase_d8,
10592 }, {
10593 .eraseblocks = { { 16384 * 1024, 1} },
10594 .block_erase = spi_block_erase_c7,
10595 }
10596 },
10597 .printlock = spi_prettyprint_status_register_bp2_srwd,
10598 .unlock = spi_disable_blockprotect_bp2_srwd,
10599 .write = spi_chip_write_256,
10600 .read = spi_chip_read, /* Fast read (0x0B) supported */
10601 .voltage = {2700, 3600},
10602 },
10603
10604 {
10605 .vendor = "Spansion",
10606 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010607 .bustype = BUS_SPI,
10608 .manufacture_id = SPANSION_ID,
10609 .model_id = SPANSION_S25FL128,
10610 .total_size = 16384,
10611 .page_size = 256,
10612 /* supports 4B addressing */
10613 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10614 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10615 .tested = TEST_UNTESTED,
10616 .probe = probe_spi_rdid,
10617 .probe_timing = TIMING_ZERO,
10618 .block_erasers = {
10619 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010620 /* This chip supports erasing of the 32 so-called "parameter sectors" with
10621 * opcode 0x20. Trying to access an address outside these 4kB blocks does
10622 * have no effect on the memory contents, but sets a flag in the SR.
10623 .eraseblocks = {
10624 {4 * 1024, 32},
10625 {64 * 1024, 254} // inaccessible
10626 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010627 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000010628 }, { */
10629 .eraseblocks = { { 64 * 1024, 256} },
10630 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010631 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000010632 .eraseblocks = { { 16384 * 1024, 1} },
10633 .block_erase = spi_block_erase_60,
10634 }, {
10635 .eraseblocks = { { 16384 * 1024, 1} },
10636 .block_erase = spi_block_erase_c7,
10637 }
10638 },
10639 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10640 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10641 .write = spi_chip_write_256, /* Multi I/O supported */
10642 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10643 .voltage = {2700, 3600},
10644 },
10645
10646 {
10647 .vendor = "Spansion",
10648 .name = "S25FL128S......1", /* uniform 256 kB sectors */
10649 .bustype = BUS_SPI,
10650 .manufacture_id = SPANSION_ID,
10651 .model_id = SPANSION_S25FL128,
10652 .total_size = 16384,
10653 .page_size = 512,
10654 /* supports 4B addressing */
10655 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10656 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10657 .tested = TEST_UNTESTED,
10658 .probe = probe_spi_rdid,
10659 .probe_timing = TIMING_ZERO,
10660 .block_erasers = {
10661 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010662 .eraseblocks = { {256 * 1024, 64} },
10663 .block_erase = spi_block_erase_d8,
10664 }, {
10665 .eraseblocks = { { 16384 * 1024, 1} },
10666 .block_erase = spi_block_erase_60,
10667 }, {
10668 .eraseblocks = { { 16384 * 1024, 1} },
10669 .block_erase = spi_block_erase_c7,
10670 }
10671 },
10672 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10673 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10674 .write = spi_chip_write_256, /* Multi I/O supported */
10675 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10676 .voltage = {2700, 3600},
10677 },
10678
10679 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010680 .vendor = "Spansion",
10681 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
10682 .bustype = BUS_SPI,
10683 .manufacture_id = SPANSION_ID,
10684 .model_id = SPANSION_S25FL128,
10685 .total_size = 16384,
10686 .page_size = 256,
10687 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10689 .tested = TEST_OK_PREW,
10690 .probe = probe_spi_rdid,
10691 .probe_timing = TIMING_ZERO,
10692 .block_erasers = {
10693 {
10694 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
10695 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
10696 * effect on the memory contents, but sets a flag in the SR.
10697 .eraseblocks = {
10698 {4 * 1024, 32},
10699 {64 * 1024, 254} // inaccessible
10700 },
10701 .block_erase = spi_block_erase_20,
10702 }, { */
10703 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
10704 .eraseblocks = {
10705 {8 * 1024, 16},
10706 {64 * 1024, 254} // inaccessible
10707 },
10708 .block_erase = spi_block_erase_40,
10709 }, { */
10710 .eraseblocks = { { 64 * 1024, 256} },
10711 .block_erase = spi_block_erase_d8,
10712 }, {
10713 .eraseblocks = { { 16384 * 1024, 1} },
10714 .block_erase = spi_block_erase_60,
10715 }, {
10716 .eraseblocks = { { 16384 * 1024, 1} },
10717 .block_erase = spi_block_erase_c7,
10718 }
10719 },
10720 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10721 .unlock = spi_disable_blockprotect_bp2_srwd,
10722 .write = spi_chip_write_256, /* Multi I/O supported */
10723 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10724 .voltage = {2700, 3600},
10725 },
10726
10727 {
10728 .vendor = "Spansion",
10729 .name = "S25FL129P......1", /* uniform 256 kB sectors */
10730 .bustype = BUS_SPI,
10731 .manufacture_id = SPANSION_ID,
10732 .model_id = SPANSION_S25FL128,
10733 .total_size = 16384,
10734 .page_size = 512,
10735 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10737 .tested = TEST_UNTESTED,
10738 .probe = probe_spi_rdid,
10739 .probe_timing = TIMING_ZERO,
10740 .block_erasers = {
10741 {
10742 .eraseblocks = { {256 * 1024, 64} },
10743 .block_erase = spi_block_erase_d8,
10744 }, {
10745 .eraseblocks = { { 16384 * 1024, 1} },
10746 .block_erase = spi_block_erase_60,
10747 }, {
10748 .eraseblocks = { { 16384 * 1024, 1} },
10749 .block_erase = spi_block_erase_c7,
10750 }
10751 },
10752 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10753 .unlock = spi_disable_blockprotect_bp2_srwd,
10754 .write = spi_chip_write_256, /* Multi I/O supported */
10755 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10756 .voltage = {2700, 3600},
10757 },
10758
10759 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010760 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000010761 .name = "SST25LF020A",
10762 .bustype = BUS_SPI,
10763 .manufacture_id = SST_ID,
10764 .model_id = SST_SST25VF020_REMS,
10765 .total_size = 256,
10766 .page_size = 256,
10767 .feature_bits = FEATURE_WRSR_EWSR,
10768 .tested = TEST_OK_PREW,
10769 .probe = probe_spi_rems,
10770 .probe_timing = TIMING_ZERO,
10771 .block_erasers =
10772 {
10773 {
10774 .eraseblocks = { {4 * 1024, 64} },
10775 .block_erase = spi_block_erase_20,
10776 }, {
10777 .eraseblocks = { {32 * 1024, 8} },
10778 .block_erase = spi_block_erase_52,
10779 }, {
10780 .eraseblocks = { {256 * 1024, 1} },
10781 .block_erase = spi_block_erase_60,
10782 },
10783 },
10784 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10785 .unlock = spi_disable_blockprotect,
10786 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10787 .read = spi_chip_read, /* Fast read (0x0B) supported */
10788 .voltage = {2700, 3600},
10789 },
10790
10791 {
10792 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000010793 .name = "SST25LF040A",
10794 .bustype = BUS_SPI,
10795 .manufacture_id = SST_ID,
10796 .model_id = SST_SST25VF040_REMS,
10797 .total_size = 512,
10798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010799 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000010800 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000010801 .probe = probe_spi_res2,
10802 .probe_timing = TIMING_ZERO,
10803 .block_erasers =
10804 {
10805 {
10806 .eraseblocks = { {4 * 1024, 128} },
10807 .block_erase = spi_block_erase_20,
10808 }, {
10809 .eraseblocks = { {32 * 1024, 16} },
10810 .block_erase = spi_block_erase_52,
10811 }, {
10812 .eraseblocks = { {512 * 1024, 1} },
10813 .block_erase = spi_block_erase_60,
10814 },
10815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010816 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010817 .unlock = spi_disable_blockprotect,
10818 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10819 .read = spi_chip_read,
10820 .voltage = {3000, 3600},
10821 },
10822
10823 {
10824 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010825 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000010826 .bustype = BUS_SPI,
10827 .manufacture_id = SST_ID,
10828 .model_id = SST_SST25VF080_REMS,
10829 .total_size = 1024,
10830 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010831 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000010832 .tested = TEST_UNTESTED,
10833 .probe = probe_spi_res2,
10834 .probe_timing = TIMING_ZERO,
10835 .block_erasers =
10836 {
10837 {
10838 .eraseblocks = { {4 * 1024, 256} },
10839 .block_erase = spi_block_erase_20,
10840 }, {
10841 .eraseblocks = { {32 * 1024, 32} },
10842 .block_erase = spi_block_erase_52,
10843 }, {
10844 .eraseblocks = { {1024 * 1024, 1} },
10845 .block_erase = spi_block_erase_60,
10846 },
10847 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010848 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010849 .unlock = spi_disable_blockprotect,
10850 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10851 .read = spi_chip_read,
10852 .voltage = {3000, 3600},
10853 },
10854
10855 {
10856 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010857 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000010858 .bustype = BUS_SPI,
10859 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000010860 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000010861 .total_size = 64,
10862 .page_size = 256,
10863 .feature_bits = FEATURE_WRSR_EWSR,
10864 .tested = TEST_OK_PREW,
10865 .probe = probe_spi_rems,
10866 .probe_timing = TIMING_ZERO,
10867 .block_erasers =
10868 {
10869 {
10870 .eraseblocks = { {4 * 1024, 16} },
10871 .block_erase = spi_block_erase_20,
10872 }, {
10873 .eraseblocks = { {32 * 1024, 2} },
10874 .block_erase = spi_block_erase_52,
10875 }, {
10876 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010877 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010878 }, {
10879 .eraseblocks = { {64 * 1024, 1} },
10880 .block_erase = spi_block_erase_60,
10881 }, {
10882 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010883 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010884 },
10885 },
10886 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10887 .unlock = spi_disable_blockprotect,
10888 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010889 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010890 .voltage = {2700, 3600},
10891 },
10892
10893 {
10894 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010895 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010896 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000010897 .manufacture_id = SST_ID,
10898 .model_id = SST_SST25VF010_REMS,
10899 .total_size = 128,
10900 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010901 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010902 .tested = TEST_OK_PREW,
10903 .probe = probe_spi_rems,
10904 .probe_timing = TIMING_ZERO,
10905 .block_erasers =
10906 {
10907 {
10908 .eraseblocks = { {4 * 1024, 32} },
10909 .block_erase = spi_block_erase_20,
10910 }, {
10911 .eraseblocks = { {32 * 1024, 4} },
10912 .block_erase = spi_block_erase_52,
10913 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010914 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010915 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010916 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010917 .eraseblocks = { {128 * 1024, 1} },
10918 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010919 }, {
10920 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010921 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010922 },
10923 },
10924 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10925 .unlock = spi_disable_blockprotect,
10926 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010927 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010928 .voltage = {2700, 3600},
10929 },
10930
10931 {
10932 .vendor = "SST",
10933 .name = "SST25VF020",
10934 .bustype = BUS_SPI,
10935 .manufacture_id = SST_ID,
10936 .model_id = SST_SST25VF020_REMS,
10937 .total_size = 256,
10938 .page_size = 256,
10939 .feature_bits = FEATURE_WRSR_EWSR,
10940 .tested = TEST_UNTESTED,
10941 .probe = probe_spi_rems,
10942 .probe_timing = TIMING_ZERO,
10943 .block_erasers =
10944 {
10945 {
10946 .eraseblocks = { {4 * 1024, 64} },
10947 .block_erase = spi_block_erase_20,
10948 }, {
10949 .eraseblocks = { {32 * 1024, 8} },
10950 .block_erase = spi_block_erase_52,
10951 }, {
10952 .eraseblocks = { {256 * 1024, 1} },
10953 .block_erase = spi_block_erase_60,
10954 },
10955 },
10956 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10957 .unlock = spi_disable_blockprotect,
10958 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10959 .read = spi_chip_read, /* only */
10960 .voltage = {2700, 3600},
10961 },
10962
10963 {
10964 .vendor = "SST",
10965 .name = "SST25VF020B",
10966 .bustype = BUS_SPI,
10967 .manufacture_id = SST_ID,
10968 .model_id = SST_SST25VF020B,
10969 .total_size = 256,
10970 .page_size = 256,
10971 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010972 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000010973 .probe = probe_spi_rdid,
10974 .probe_timing = TIMING_ZERO,
10975 .block_erasers =
10976 {
10977 {
10978 .eraseblocks = { {4 * 1024, 64} },
10979 .block_erase = spi_block_erase_20,
10980 }, {
10981 .eraseblocks = { {32 * 1024, 8} },
10982 .block_erase = spi_block_erase_52,
10983 }, {
10984 .eraseblocks = { {64 * 1024, 4} },
10985 .block_erase = spi_block_erase_d8,
10986 }, {
10987 .eraseblocks = { {256 * 1024, 1} },
10988 .block_erase = spi_block_erase_60,
10989 }, {
10990 .eraseblocks = { {256 * 1024, 1} },
10991 .block_erase = spi_block_erase_c7,
10992 },
10993 },
10994 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
10995 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
10996 .write = spi_aai_write, /* AAI supported (0xAD) */
10997 .read = spi_chip_read, /* Fast read (0x0B) supported */
10998 .voltage = {2700, 3600},
10999 },
11000
11001 {
11002 .vendor = "SST",
11003 .name = "SST25VF040",
11004 .bustype = BUS_SPI,
11005 .manufacture_id = SST_ID,
11006 .model_id = SST_SST25VF040_REMS,
11007 .total_size = 512,
11008 .page_size = 256,
11009 .feature_bits = FEATURE_WRSR_EWSR,
11010 .tested = TEST_OK_PR,
11011 .probe = probe_spi_rems,
11012 .probe_timing = TIMING_ZERO,
11013 .block_erasers =
11014 {
11015 {
11016 .eraseblocks = { {4 * 1024, 128} },
11017 .block_erase = spi_block_erase_20,
11018 }, {
11019 .eraseblocks = { {32 * 1024, 16} },
11020 .block_erase = spi_block_erase_52,
11021 }, {
11022 .eraseblocks = { {512 * 1024, 1} },
11023 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000011024 },
11025 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011026 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000011027 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000011028 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11029 .read = spi_chip_read,
11030 .voltage = {2700, 3600},
11031 },
11032
11033 {
11034 .vendor = "SST",
11035 .name = "SST25VF040B",
11036 .bustype = BUS_SPI,
11037 .manufacture_id = SST_ID,
11038 .model_id = SST_SST25VF040B,
11039 .total_size = 512,
11040 .page_size = 256,
11041 .feature_bits = FEATURE_WRSR_EWSR,
11042 .tested = TEST_OK_PREW,
11043 .probe = probe_spi_rdid,
11044 .probe_timing = TIMING_ZERO,
11045 .block_erasers =
11046 {
11047 {
11048 .eraseblocks = { {4 * 1024, 128} },
11049 .block_erase = spi_block_erase_20,
11050 }, {
11051 .eraseblocks = { {32 * 1024, 16} },
11052 .block_erase = spi_block_erase_52,
11053 }, {
11054 .eraseblocks = { {64 * 1024, 8} },
11055 .block_erase = spi_block_erase_d8,
11056 }, {
11057 .eraseblocks = { {512 * 1024, 1} },
11058 .block_erase = spi_block_erase_60,
11059 }, {
11060 .eraseblocks = { {512 * 1024, 1} },
11061 .block_erase = spi_block_erase_c7,
11062 },
11063 },
11064 .printlock = spi_prettyprint_status_register_sst25vf040b,
11065 .unlock = spi_disable_blockprotect,
11066 .write = spi_aai_write, /* AAI supported (0xAD) */
11067 .read = spi_chip_read, /* Fast read (0x0B) supported */
11068 .voltage = {2700, 3600},
11069 },
11070
11071 {
11072 .vendor = "SST",
11073 .name = "SST25VF040B.REMS",
11074 .bustype = BUS_SPI,
11075 .manufacture_id = SST_ID,
11076 .model_id = SST_SST25VF040B_REMS,
11077 .total_size = 512,
11078 .page_size = 256,
11079 .feature_bits = FEATURE_WRSR_EWSR,
11080 .tested = TEST_OK_PREW,
11081 .probe = probe_spi_rems,
11082 .probe_timing = TIMING_ZERO,
11083 .block_erasers =
11084 {
11085 {
11086 .eraseblocks = { {4 * 1024, 128} },
11087 .block_erase = spi_block_erase_20,
11088 }, {
11089 .eraseblocks = { {32 * 1024, 16} },
11090 .block_erase = spi_block_erase_52,
11091 }, {
11092 .eraseblocks = { {64 * 1024, 8} },
11093 .block_erase = spi_block_erase_d8,
11094 }, {
11095 .eraseblocks = { {512 * 1024, 1} },
11096 .block_erase = spi_block_erase_60,
11097 }, {
11098 .eraseblocks = { {512 * 1024, 1} },
11099 .block_erase = spi_block_erase_c7,
11100 },
11101 },
11102 .printlock = spi_prettyprint_status_register_sst25vf040b,
11103 .unlock = spi_disable_blockprotect,
11104 .write = spi_aai_write,
11105 .read = spi_chip_read,
11106 .voltage = {2700, 3600},
11107 },
11108
11109 {
11110 .vendor = "SST",
11111 .name = "SST25VF080B",
11112 .bustype = BUS_SPI,
11113 .manufacture_id = SST_ID,
11114 .model_id = SST_SST25VF080B,
11115 .total_size = 1024,
11116 .page_size = 256,
11117 .feature_bits = FEATURE_WRSR_EWSR,
11118 .tested = TEST_OK_PREW,
11119 .probe = probe_spi_rdid,
11120 .probe_timing = TIMING_ZERO,
11121 .block_erasers =
11122 {
11123 {
11124 .eraseblocks = { {4 * 1024, 256} },
11125 .block_erase = spi_block_erase_20,
11126 }, {
11127 .eraseblocks = { {32 * 1024, 32} },
11128 .block_erase = spi_block_erase_52,
11129 }, {
11130 .eraseblocks = { {64 * 1024, 16} },
11131 .block_erase = spi_block_erase_d8,
11132 }, {
11133 .eraseblocks = { {1024 * 1024, 1} },
11134 .block_erase = spi_block_erase_60,
11135 }, {
11136 .eraseblocks = { {1024 * 1024, 1} },
11137 .block_erase = spi_block_erase_c7,
11138 },
11139 },
11140 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
11141 .unlock = spi_disable_blockprotect,
11142 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000011143 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011144 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000011145 },
11146
11147 {
11148 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011149 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011150 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011151 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011152 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011153 .total_size = 2048,
11154 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011155 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000011156 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011157 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011158 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011159 .block_erasers =
11160 {
11161 {
11162 .eraseblocks = { {4 * 1024, 512} },
11163 .block_erase = spi_block_erase_20,
11164 }, {
11165 .eraseblocks = { {32 * 1024, 64} },
11166 .block_erase = spi_block_erase_52,
11167 }, {
11168 .eraseblocks = { {64 * 1024, 32} },
11169 .block_erase = spi_block_erase_d8,
11170 }, {
11171 .eraseblocks = { {2 * 1024 * 1024, 1} },
11172 .block_erase = spi_block_erase_60,
11173 }, {
11174 .eraseblocks = { {2 * 1024 * 1024, 1} },
11175 .block_erase = spi_block_erase_c7,
11176 },
11177 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011178 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011179 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000011180 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011181 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011182 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011183 },
11184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011185 {
11186 .vendor = "SST",
11187 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011188 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011189 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011190 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011191 .total_size = 4096,
11192 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011193 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000011194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011195 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011196 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011197 .block_erasers =
11198 {
11199 {
11200 .eraseblocks = { {4 * 1024, 1024} },
11201 .block_erase = spi_block_erase_20,
11202 }, {
11203 .eraseblocks = { {32 * 1024, 128} },
11204 .block_erase = spi_block_erase_52,
11205 }, {
11206 .eraseblocks = { {64 * 1024, 64} },
11207 .block_erase = spi_block_erase_d8,
11208 }, {
11209 .eraseblocks = { {4 * 1024 * 1024, 1} },
11210 .block_erase = spi_block_erase_60,
11211 }, {
11212 .eraseblocks = { {4 * 1024 * 1024, 1} },
11213 .block_erase = spi_block_erase_c7,
11214 },
11215 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011216 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011217 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011218 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011219 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011220 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011221 },
11222
11223 {
11224 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011225 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011226 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011227 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011228 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011229 .total_size = 8192,
11230 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011231 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000011232 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011233 .probe = probe_spi_rdid,
11234 .probe_timing = TIMING_ZERO,
11235 .block_erasers =
11236 {
11237 {
11238 .eraseblocks = { {4 * 1024, 2048} },
11239 .block_erase = spi_block_erase_20,
11240 }, {
11241 .eraseblocks = { {32 * 1024, 256} },
11242 .block_erase = spi_block_erase_52,
11243 }, {
11244 .eraseblocks = { {64 * 1024, 128} },
11245 .block_erase = spi_block_erase_d8,
11246 }, {
11247 .eraseblocks = { {8 * 1024 * 1024, 1} },
11248 .block_erase = spi_block_erase_60,
11249 }, {
11250 .eraseblocks = { {8 * 1024 * 1024, 1} },
11251 .block_erase = spi_block_erase_c7,
11252 },
11253 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011254 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011255 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011256 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011257 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011258 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011259 },
11260
11261 {
11262 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000011263 .name = "SST25WF512",
11264 .bustype = BUS_SPI,
11265 .manufacture_id = SST_ID,
11266 .model_id = SST_SST25WF512,
11267 .total_size = 64,
11268 .page_size = 256,
11269 .feature_bits = FEATURE_WRSR_EITHER,
11270 .tested = TEST_UNTESTED,
11271 .probe = probe_spi_rdid,
11272 .probe_timing = TIMING_ZERO,
11273 .block_erasers =
11274 {
11275 {
11276 .eraseblocks = { {4 * 1024, 16} },
11277 .block_erase = spi_block_erase_20,
11278 }, {
11279 .eraseblocks = { {32 * 1024, 2} },
11280 .block_erase = spi_block_erase_52,
11281 }, {
11282 .eraseblocks = { {1024 * 64, 1} },
11283 .block_erase = spi_block_erase_60,
11284 }, {
11285 .eraseblocks = { {1024 * 64, 1} },
11286 .block_erase = spi_block_erase_c7,
11287 },
11288 },
Jason Harper43ddef02014-05-04 00:55:24 +000011289 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11290 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011291 .write = spi_aai_write,
11292 .read = spi_chip_read, /* Fast read (0x0B) supported */
11293 .voltage = {1650, 1950},
11294 },
11295
11296 {
11297 .vendor = "SST",
11298 .name = "SST25WF010",
11299 .bustype = BUS_SPI,
11300 .manufacture_id = SST_ID,
11301 .model_id = SST_SST25WF010,
11302 .total_size = 128,
11303 .page_size = 256,
11304 .feature_bits = FEATURE_WRSR_EITHER,
11305 .tested = TEST_UNTESTED,
11306 .probe = probe_spi_rdid,
11307 .probe_timing = TIMING_ZERO,
11308 .block_erasers =
11309 {
11310 {
11311 .eraseblocks = { {4 * 1024, 32} },
11312 .block_erase = spi_block_erase_20,
11313 }, {
11314 .eraseblocks = { {32 * 1024, 4} },
11315 .block_erase = spi_block_erase_52,
11316 }, {
11317 .eraseblocks = { {1024 * 128, 1} },
11318 .block_erase = spi_block_erase_60,
11319 }, {
11320 .eraseblocks = { {1024 * 128, 1} },
11321 .block_erase = spi_block_erase_c7,
11322 },
11323 },
Jason Harper43ddef02014-05-04 00:55:24 +000011324 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11325 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011326 .write = spi_aai_write,
11327 .read = spi_chip_read, /* Fast read (0x0B) supported */
11328 .voltage = {1650, 1950},
11329 },
11330
11331 {
11332 .vendor = "SST",
11333 .name = "SST25WF020",
11334 .bustype = BUS_SPI,
11335 .manufacture_id = SST_ID,
11336 .model_id = SST_SST25WF020,
11337 .total_size = 256,
11338 .page_size = 256,
11339 .feature_bits = FEATURE_WRSR_EITHER,
11340 .tested = TEST_UNTESTED,
11341 .probe = probe_spi_rdid,
11342 .probe_timing = TIMING_ZERO,
11343 .block_erasers =
11344 {
11345 {
11346 .eraseblocks = { {4 * 1024, 64} },
11347 .block_erase = spi_block_erase_20,
11348 }, {
11349 .eraseblocks = { {32 * 1024, 8} },
11350 .block_erase = spi_block_erase_52,
11351 }, {
11352 .eraseblocks = { {64 * 1024, 4} },
11353 .block_erase = spi_block_erase_d8,
11354 }, {
11355 .eraseblocks = { {1024 * 256, 1} },
11356 .block_erase = spi_block_erase_60,
11357 }, {
11358 .eraseblocks = { {1024 * 256, 1} },
11359 .block_erase = spi_block_erase_c7,
11360 },
11361 },
Jason Harper43ddef02014-05-04 00:55:24 +000011362 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11363 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011364 .write = spi_aai_write,
11365 .read = spi_chip_read, /* Fast read (0x0B) supported */
11366 .voltage = {1650, 1950},
11367 },
11368
11369 {
11370 .vendor = "SST",
11371 .name = "SST25WF040",
11372 .bustype = BUS_SPI,
11373 .manufacture_id = SST_ID,
11374 .model_id = SST_SST25WF040,
11375 .total_size = 512,
11376 .page_size = 256,
11377 .feature_bits = FEATURE_WRSR_EITHER,
11378 .tested = TEST_UNTESTED,
11379 .probe = probe_spi_rdid,
11380 .probe_timing = TIMING_ZERO,
11381 .block_erasers =
11382 {
11383 {
11384 .eraseblocks = { {4 * 1024, 128} },
11385 .block_erase = spi_block_erase_20,
11386 }, {
11387 .eraseblocks = { {32 * 1024, 16} },
11388 .block_erase = spi_block_erase_52,
11389 }, {
11390 .eraseblocks = { {64 * 1024, 8} },
11391 .block_erase = spi_block_erase_d8,
11392 }, {
11393 .eraseblocks = { {1024 * 512, 1} },
11394 .block_erase = spi_block_erase_60,
11395 }, {
11396 .eraseblocks = { {1024 * 512, 1} },
11397 .block_erase = spi_block_erase_c7,
11398 },
11399 },
Jason Harper43ddef02014-05-04 00:55:24 +000011400 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11401 .unlock = spi_disable_blockprotect_bp2_srwd,
11402 .write = spi_aai_write,
11403 .read = spi_chip_read, /* Fast read (0x0B) supported */
11404 .voltage = {1650, 1950},
11405 },
11406
11407 {
11408 .vendor = "SST",
11409 .name = "SST25WF080",
11410 .bustype = BUS_SPI,
11411 .manufacture_id = SST_ID,
11412 .model_id = SST_SST25WF080,
11413 .total_size = 1024,
11414 .page_size = 256,
11415 .feature_bits = FEATURE_WRSR_EITHER,
11416 .tested = TEST_OK_PREW,
11417 .probe = probe_spi_rdid,
11418 .probe_timing = TIMING_ZERO,
11419 .block_erasers =
11420 {
11421 {
11422 .eraseblocks = { {4 * 1024, 256} },
11423 .block_erase = spi_block_erase_20,
11424 }, {
11425 .eraseblocks = { {32 * 1024, 32} },
11426 .block_erase = spi_block_erase_52,
11427 }, {
11428 .eraseblocks = { {64 * 1024, 16} },
11429 .block_erase = spi_block_erase_d8,
11430 }, {
11431 .eraseblocks = { {1024 * 1024, 1} },
11432 .block_erase = spi_block_erase_60,
11433 }, {
11434 .eraseblocks = { {1024 * 1024, 1} },
11435 .block_erase = spi_block_erase_c7,
11436 },
11437 },
11438 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
11439 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011440 .write = spi_aai_write,
11441 .read = spi_chip_read, /* Fast read (0x0B) supported */
11442 .voltage = {1650, 1950},
11443 },
11444
11445 {
11446 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011447 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011448 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011449 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011450 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011451 .total_size = 512,
11452 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011453 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011454 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011455 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011456 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011457 .block_erasers =
11458 {
11459 {
11460 .eraseblocks = { {128, 4096} },
11461 .block_erase = erase_sector_28sf040,
11462 }, {
11463 .eraseblocks = { {512 * 1024, 1} },
11464 .block_erase = erase_chip_28sf040,
11465 }
11466 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011467 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011468 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011470 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011471 },
11472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011473 {
11474 .vendor = "SST",
11475 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011476 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011477 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011478 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011479 .total_size = 128,
11480 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011481 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011482 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011483 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011484 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011485 .block_erasers =
11486 {
11487 {
11488 .eraseblocks = { {128 * 1024, 1} },
11489 .block_erase = erase_chip_block_jedec,
11490 }
11491 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011492 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011493 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011494 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011495 },
11496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011497 {
11498 .vendor = "SST",
11499 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011500 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011501 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011502 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011503 .total_size = 128,
11504 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011505 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011506 .tested = TEST_UNTESTED,
11507 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011508 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011509 .block_erasers =
11510 {
11511 {
11512 .eraseblocks = { {128 * 1024, 1} },
11513 .block_erase = erase_chip_block_jedec,
11514 }
11515 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011516 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011518 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011519 },
11520
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011521 {
11522 .vendor = "SST",
11523 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011524 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011525 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011526 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011527 .total_size = 256,
11528 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011529 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011530 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011531 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011532 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011533 .block_erasers =
11534 {
11535 {
11536 .eraseblocks = { {256 * 1024, 1} },
11537 .block_erase = erase_chip_block_jedec,
11538 }
11539 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011540 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011541 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011542 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011543 },
11544
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011545 {
11546 .vendor = "SST",
11547 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011548 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011549 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011550 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011551 .total_size = 256,
11552 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011553 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011554 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011555 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011556 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011557 .block_erasers =
11558 {
11559 {
11560 .eraseblocks = { {256 * 1024, 1} },
11561 .block_erase = erase_chip_block_jedec,
11562 }
11563 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011564 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011565 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011566 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011567 },
11568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011569 {
11570 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000011571 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011572 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011573 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011574 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011575 .total_size = 64,
11576 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011577 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000011578 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011579 .probe = probe_jedec,
11580 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000011581 .block_erasers =
11582 {
11583 {
11584 .eraseblocks = { {4 * 1024, 16} },
11585 .block_erase = erase_sector_jedec,
11586 }, {
11587 .eraseblocks = { {64 * 1024, 1} },
11588 .block_erase = erase_chip_block_jedec,
11589 }
11590 },
Sean Nelson35727f72010-01-28 23:55:12 +000011591 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011592 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011593 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000011594 },
11595
11596 {
11597 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011598 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011599 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011600 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011601 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011602 .total_size = 128,
11603 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011604 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011605 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011606 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011607 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011608 .block_erasers =
11609 {
11610 {
11611 .eraseblocks = { {4 * 1024, 32} },
11612 .block_erase = erase_sector_jedec,
11613 }, {
11614 .eraseblocks = { {128 * 1024, 1} },
11615 .block_erase = erase_chip_block_jedec,
11616 }
11617 },
Sean Nelson35727f72010-01-28 23:55:12 +000011618 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011619 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011620 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011621 },
11622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011623 {
11624 .vendor = "SST",
11625 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011626 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011627 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011628 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011629 .total_size = 256,
11630 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011631 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000011632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011633 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011634 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011635 .block_erasers =
11636 {
11637 {
11638 .eraseblocks = { {4 * 1024, 64} },
11639 .block_erase = erase_sector_jedec,
11640 }, {
11641 .eraseblocks = { {256 * 1024, 1} },
11642 .block_erase = erase_chip_block_jedec,
11643 }
11644 },
Sean Nelson35727f72010-01-28 23:55:12 +000011645 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011646 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011647 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011648 },
11649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011650 {
11651 .vendor = "SST",
11652 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011653 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011654 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011655 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011656 .total_size = 512,
11657 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011658 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011659 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011660 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011661 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011662 .block_erasers =
11663 {
11664 {
11665 .eraseblocks = { {4 * 1024, 128} },
11666 .block_erase = erase_sector_jedec,
11667 }, {
11668 .eraseblocks = { {512 * 1024, 1} },
11669 .block_erase = erase_chip_block_jedec,
11670 }
11671 },
Sean Nelson35727f72010-01-28 23:55:12 +000011672 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011673 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011674 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011675 },
11676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011677 {
11678 .vendor = "SST",
11679 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011680 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011681 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011682 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011683 .total_size = 64,
11684 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011685 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000011686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011687 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011688 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011689 .block_erasers =
11690 {
11691 {
11692 .eraseblocks = { {4 * 1024, 16} },
11693 .block_erase = erase_sector_jedec,
11694 }, {
11695 .eraseblocks = { {64 * 1024, 1} },
11696 .block_erase = erase_chip_block_jedec,
11697 }
11698 },
Sean Nelson35727f72010-01-28 23:55:12 +000011699 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011700 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011701 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011702 },
11703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011704 {
11705 .vendor = "SST",
11706 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011707 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011708 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011709 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011710 .total_size = 128,
11711 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011712 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000011713 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011714 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011715 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011716 .block_erasers =
11717 {
11718 {
11719 .eraseblocks = { {4 * 1024, 32} },
11720 .block_erase = erase_sector_jedec,
11721 }, {
11722 .eraseblocks = { {128 * 1024, 1} },
11723 .block_erase = erase_chip_block_jedec,
11724 }
11725 },
Sean Nelson35727f72010-01-28 23:55:12 +000011726 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011728 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011729 },
11730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011731 {
11732 .vendor = "SST",
11733 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011734 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011735 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011736 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011737 .total_size = 256,
11738 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011739 .feature_bits = FEATURE_EITHER_RESET,
11740 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011741 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011742 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011743 .block_erasers =
11744 {
11745 {
11746 .eraseblocks = { {4 * 1024, 64} },
11747 .block_erase = erase_sector_jedec,
11748 }, {
11749 .eraseblocks = { {256 * 1024, 1} },
11750 .block_erase = erase_chip_block_jedec,
11751 }
11752 },
Sean Nelson35727f72010-01-28 23:55:12 +000011753 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011755 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011756 },
11757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011758 {
11759 .vendor = "SST",
11760 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011761 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011762 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011763 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011764 .total_size = 512,
11765 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011766 .feature_bits = FEATURE_EITHER_RESET,
11767 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011768 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011769 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011770 .block_erasers =
11771 {
11772 {
11773 .eraseblocks = { {4 * 1024, 128} },
11774 .block_erase = erase_sector_jedec,
11775 }, {
11776 .eraseblocks = { {512 * 1024, 1} },
11777 .block_erase = erase_chip_block_jedec,
11778 }
11779 },
Sean Nelson35727f72010-01-28 23:55:12 +000011780 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011781 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011782 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000011783 },
FENG yu ningff692fb2008-12-08 18:15:10 +000011784
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011785 {
11786 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000011787 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011788 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011789 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011790 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000011791 .total_size = 1024,
11792 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011793 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000011794 .tested = TEST_UNTESTED,
11795 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011796 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011797 .block_erasers =
11798 {
11799 {
11800 .eraseblocks = { {4 * 1024, 256} },
11801 .block_erase = erase_sector_jedec,
11802 }, {
11803 .eraseblocks = { {64 * 1024, 16} },
11804 .block_erase = erase_block_jedec,
11805 }, {
11806 .eraseblocks = { {1024 * 1024, 1} },
11807 .block_erase = erase_chip_block_jedec,
11808 }
11809 },
Sean Nelson35727f72010-01-28 23:55:12 +000011810 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011811 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011812 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000011813 },
11814
11815 {
11816 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011817 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011818 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011819 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011820 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011821 .total_size = 256,
11822 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011823 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011824 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011825 .probe = probe_jedec,
11826 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011827 .block_erasers =
11828 {
11829 {
11830 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011831 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011832 }, {
11833 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011834 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011835 }, {
11836 .eraseblocks = { {256 * 1024, 1} },
11837 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11838 }
11839 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011840 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011841 .unlock = unlock_sst_fwhub,
11842 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011843 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011844 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011845 },
11846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011847 {
11848 .vendor = "SST",
11849 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011850 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011851 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011852 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011853 .total_size = 384,
11854 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011855 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011856 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011857 .probe = probe_jedec,
11858 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011859 .block_erasers =
11860 {
11861 {
11862 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011863 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011864 }, {
11865 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011866 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011867 }, {
11868 .eraseblocks = { {384 * 1024, 1} },
11869 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11870 }
11871 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011872 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011873 .unlock = unlock_sst_fwhub,
11874 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011876 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011877 },
11878
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011879 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011880 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
11881 * and is only honored for 64k block erase, but not 4k sector erase.
11882 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011883 .vendor = "SST",
11884 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011885 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011886 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011887 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011888 .total_size = 512,
11889 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011890 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011891 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011892 .probe = probe_jedec,
11893 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011894 .block_erasers =
11895 {
11896 {
11897 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011898 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011899 }, {
11900 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011901 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011902 }, {
11903 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011904 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011905 },
11906 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011907 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011908 .unlock = unlock_sst_fwhub,
11909 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011910 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011911 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011912 },
11913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011914 {
11915 .vendor = "SST",
11916 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011917 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011918 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011919 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011920 .total_size = 512,
11921 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011922 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011923 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011924 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011925 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011926 .block_erasers =
11927 {
11928 {
11929 .eraseblocks = { {4 * 1024, 128} },
11930 .block_erase = erase_sector_49lfxxxc,
11931 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011932 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011933 {64 * 1024, 7},
11934 {32 * 1024, 1},
11935 {8 * 1024, 2},
11936 {16 * 1024, 1},
11937 },
Sean Nelson69e58112010-03-23 17:10:28 +000011938 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011939 }
11940 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011941 .printlock = printlock_regspace2_block_eraser_1,
11942 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011943 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011944 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011945 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011946 },
11947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011948 {
11949 .vendor = "SST",
11950 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011951 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011952 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011953 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011954 .total_size = 1024,
11955 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011956 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011957 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011958 .probe = probe_jedec,
11959 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011960 .block_erasers =
11961 {
11962 {
11963 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011964 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011965 }, {
11966 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011967 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011968 }, {
11969 .eraseblocks = { {1024 * 1024, 1} },
11970 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11971 }
11972 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011973 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011974 .unlock = unlock_sst_fwhub,
11975 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011976 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011977 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011978 },
11979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011980 {
11981 .vendor = "SST",
11982 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011983 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011984 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011985 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011986 .total_size = 1024,
11987 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011988 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011989 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011990 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011991 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011992 .block_erasers =
11993 {
11994 {
11995 .eraseblocks = { {4 * 1024, 256} },
11996 .block_erase = erase_sector_49lfxxxc,
11997 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011998 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011999 {64 * 1024, 15},
12000 {32 * 1024, 1},
12001 {8 * 1024, 2},
12002 {16 * 1024, 1},
12003 },
Sean Nelson69e58112010-03-23 17:10:28 +000012004 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012005 }
12006 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012007 .printlock = printlock_regspace2_block_eraser_1,
12008 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012009 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012011 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012012 },
12013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012014 {
12015 .vendor = "SST",
12016 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012017 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012018 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012019 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012020 .total_size = 2048,
12021 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012022 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012023 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012024 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012025 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012026 .block_erasers =
12027 {
12028 {
12029 .eraseblocks = { {4 * 1024, 512} },
12030 .block_erase = erase_sector_49lfxxxc,
12031 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012032 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012033 {64 * 1024, 31},
12034 {32 * 1024, 1},
12035 {8 * 1024, 2},
12036 {16 * 1024, 1},
12037 },
Sean Nelson69e58112010-03-23 17:10:28 +000012038 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012039 }
12040 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012041 .printlock = printlock_regspace2_block_eraser_1,
12042 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012043 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012044 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012045 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012046 },
12047
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012048 {
12049 .vendor = "SST",
12050 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012051 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012052 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012053 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012054 .total_size = 256,
12055 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012056 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000012057 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012058 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012059 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012060 .block_erasers =
12061 {
12062 {
12063 .eraseblocks = { {4 * 1024, 64} },
12064 .block_erase = erase_sector_jedec,
12065 }, {
12066 .eraseblocks = { {16 * 1024, 16} },
12067 .block_erase = erase_block_jedec,
12068 }, {
12069 .eraseblocks = { {256 * 1024, 1} },
12070 .block_erase = NULL,
12071 }
12072 },
Sean Nelson35727f72010-01-28 23:55:12 +000012073 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012074 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012075 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000012076 },
12077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012078 {
12079 .vendor = "SST",
12080 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012081 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012082 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012083 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012084 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000012085 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012086 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012087 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012088 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012089 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012090 .block_erasers =
12091 {
12092 {
12093 .eraseblocks = { {4 * 1024, 64} },
12094 .block_erase = erase_sector_jedec,
12095 }, {
12096 .eraseblocks = { {16 * 1024, 16} },
12097 .block_erase = erase_block_jedec,
12098 }, {
12099 .eraseblocks = { {256 * 1024, 1} },
12100 .block_erase = NULL,
12101 }
12102 },
Sean Nelson35727f72010-01-28 23:55:12 +000012103 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012105 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012106 },
12107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012108 {
12109 .vendor = "SST",
12110 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012111 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012112 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012113 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012114 .total_size = 512,
12115 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012116 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012117 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012118 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012119 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012120 .block_erasers =
12121 {
12122 {
12123 .eraseblocks = { {4 * 1024, 128} },
12124 .block_erase = erase_sector_jedec,
12125 }, {
12126 .eraseblocks = { {64 * 1024, 8} },
12127 .block_erase = erase_block_jedec,
12128 }, {
12129 .eraseblocks = { {512 * 1024, 1} },
12130 .block_erase = NULL,
12131 }
12132 },
Sean Nelson35727f72010-01-28 23:55:12 +000012133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012134 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012135 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012136 },
12137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012138 {
12139 .vendor = "SST",
12140 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012141 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012142 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012143 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012144 .total_size = 512,
12145 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000012146 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012147 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012148 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012149 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012150 .block_erasers =
12151 {
12152 {
12153 .eraseblocks = { {4 * 1024, 128} },
12154 .block_erase = erase_sector_jedec,
12155 }, {
12156 .eraseblocks = { {64 * 1024, 8} },
12157 .block_erase = erase_block_jedec,
12158 }, {
12159 .eraseblocks = { {512 * 1024, 1} },
12160 .block_erase = NULL,
12161 }
12162 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012163 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000012164 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012165 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012166 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012167 },
12168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012169 {
12170 .vendor = "SST",
12171 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012172 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012173 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012174 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012175 .total_size = 1024,
12176 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012177 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000012178 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012179 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012180 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012181 .block_erasers =
12182 {
12183 {
12184 .eraseblocks = { {4 * 1024, 256} },
12185 .block_erase = erase_sector_jedec,
12186 }, {
12187 .eraseblocks = { {64 * 1024, 16} },
12188 .block_erase = erase_block_jedec,
12189 }, {
12190 .eraseblocks = { {1024 * 1024, 1} },
12191 .block_erase = NULL,
12192 }
12193 },
Sean Nelson35727f72010-01-28 23:55:12 +000012194 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012195 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012196 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012197 },
12198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012199 {
12200 .vendor = "SST",
12201 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012202 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012203 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012204 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012205 .total_size = 2048,
12206 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012207 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012208 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012209 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012210 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012211 .block_erasers =
12212 {
12213 {
12214 .eraseblocks = { {4 * 1024, 512} },
12215 .block_erase = erase_sector_49lfxxxc,
12216 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012217 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012218 {64 * 1024, 31},
12219 {32 * 1024, 1},
12220 {8 * 1024, 2},
12221 {16 * 1024, 1},
12222 },
Sean Nelson69e58112010-03-23 17:10:28 +000012223 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012224 }
12225 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012226 .printlock = printlock_regspace2_block_eraser_1,
12227 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012228 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012230 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012231 },
12232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012233 {
12234 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012235 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012236 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012237 .manufacture_id = ST_ID,
12238 .model_id = ST_M29F002B,
12239 .total_size = 256,
12240 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012241 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012242 .tested = TEST_UNTESTED,
12243 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012244 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012245 .block_erasers =
12246 {
12247 {
12248 .eraseblocks = {
12249 {16 * 1024, 1},
12250 {8 * 1024, 2},
12251 {32 * 1024, 1},
12252 {64 * 1024, 3},
12253 },
12254 .block_erase = erase_sector_jedec,
12255 }, {
12256 .eraseblocks = { {256 * 1024, 1} },
12257 .block_erase = erase_chip_block_jedec,
12258 }
12259 },
Sean Nelson35727f72010-01-28 23:55:12 +000012260 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012261 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012262 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012263 },
12264
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012265 {
12266 .vendor = "ST",
12267 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012268 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012269 .manufacture_id = ST_ID,
12270 .model_id = ST_M29F002T,
12271 .total_size = 256,
12272 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012273 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012274 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012275 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012276 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012277 .block_erasers =
12278 {
12279 {
12280 .eraseblocks = {
12281 {64 * 1024, 3},
12282 {32 * 1024, 1},
12283 {8 * 1024, 2},
12284 {16 * 1024, 1},
12285 },
12286 .block_erase = erase_sector_jedec,
12287 }, {
12288 .eraseblocks = { {256 * 1024, 1} },
12289 .block_erase = erase_chip_block_jedec,
12290 }
12291 },
Sean Nelson35727f72010-01-28 23:55:12 +000012292 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012293 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012294 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012295 },
12296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012297 {
12298 .vendor = "ST",
12299 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012300 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012301 .manufacture_id = ST_ID,
12302 .model_id = ST_M29F040B,
12303 .total_size = 512,
12304 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012305 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12306 .tested = TEST_UNTESTED,
12307 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000012308 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000012309 .block_erasers =
12310 {
12311 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012312 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000012313 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012314 }, {
12315 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012316 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012317 }
12318 },
Sean Nelson35727f72010-01-28 23:55:12 +000012319 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012320 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012321 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012322 },
12323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012324 {
Sean Nelson35727f72010-01-28 23:55:12 +000012325 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012326 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012327 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012328 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012329 .manufacture_id = ST_ID,
12330 .model_id = ST_M29F400BB,
12331 .total_size = 512,
12332 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012333 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012334 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012335 .probe = probe_jedec,
12336 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012337 .block_erasers =
12338 {
12339 {
12340 .eraseblocks = {
12341 {16 * 1024, 1},
12342 {8 * 1024, 2},
12343 {32 * 1024, 1},
12344 {64 * 1024, 7},
12345 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012346 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012347 }, {
12348 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012349 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012350 }
12351 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012352 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012353 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012354 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012355 },
12356 {
12357 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
12358 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012359 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012360 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012361 .manufacture_id = ST_ID,
12362 .model_id = ST_M29F400BT,
12363 .total_size = 512,
12364 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012365 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012366 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012367 .probe = probe_jedec,
12368 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000012369 .block_erasers =
12370 {
12371 {
12372 .eraseblocks = {
12373 {64 * 1024, 7},
12374 {32 * 1024, 1},
12375 {8 * 1024, 2},
12376 {16 * 1024, 1},
12377 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012378 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012379 }, {
12380 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012381 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012382 }
12383 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012384 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012385 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012386 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012387 },
12388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012389 {
12390 .vendor = "ST",
12391 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012392 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012393 .manufacture_id = ST_ID,
12394 .model_id = ST_M29W010B,
12395 .total_size = 128,
12396 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012397 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012398 .tested = TEST_UNTESTED,
12399 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012400 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012401 .block_erasers =
12402 {
12403 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012404 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012405 .block_erase = erase_sector_jedec,
12406 }, {
12407 .eraseblocks = { {128 * 1024, 1} },
12408 .block_erase = erase_chip_block_jedec,
12409 }
12410 },
Sean Nelson35727f72010-01-28 23:55:12 +000012411 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012413 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012414 },
12415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012416 {
12417 .vendor = "ST",
12418 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012419 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012420 .manufacture_id = ST_ID,
12421 .model_id = ST_M29W040B,
12422 .total_size = 512,
12423 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012424 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012425 .tested = TEST_UNTESTED,
12426 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012427 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012428 .block_erasers =
12429 {
12430 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012431 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012432 .block_erase = erase_sector_jedec,
12433 }, {
12434 .eraseblocks = { {512 * 1024, 1} },
12435 .block_erase = erase_chip_block_jedec,
12436 }
12437 },
Sean Nelson35727f72010-01-28 23:55:12 +000012438 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012439 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012440 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012441 },
12442
Stefan Taunereb582572012-09-21 12:52:50 +000012443 {
12444 .vendor = "ST",
12445 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012446 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000012447 .manufacture_id = ST_ID,
12448 .model_id = ST_M29W512B,
12449 .total_size = 64,
12450 .page_size = 64 * 1024,
12451 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012452 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000012453 .probe = probe_jedec,
12454 .probe_timing = TIMING_ZERO,
12455 .block_erasers =
12456 {
12457 {
12458 .eraseblocks = { {64 * 1024, 1} },
12459 .block_erase = erase_chip_block_jedec,
12460 }
12461 },
12462 .write = write_jedec_1,
12463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012464 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000012465 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000012466
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012467 {
12468 .vendor = "ST",
12469 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012470 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012471 .manufacture_id = ST_ID,
12472 .model_id = ST_M50FLW040A,
12473 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012474 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012475 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012476 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012477 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012478 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012479 .block_erasers =
12480 {
12481 {
Sean Nelson329bde72010-01-19 16:39:19 +000012482 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012483 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012484 {64 * 1024, 5}, /* block */
12485 {4 * 1024, 16}, /* sector */
12486 {4 * 1024, 16}, /* sector */
12487 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012488 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012489 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012490 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012491 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012492 }
12493 },
Sean Nelson28accc22010-03-19 18:47:06 +000012494 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012495 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012497 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012498 },
12499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012500 {
12501 .vendor = "ST",
12502 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012503 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012504 .manufacture_id = ST_ID,
12505 .model_id = ST_M50FLW040B,
12506 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012507 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012508 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012509 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012510 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012511 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012512 .block_erasers =
12513 {
12514 {
Sean Nelson329bde72010-01-19 16:39:19 +000012515 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012516 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012517 {4 * 1024, 16}, /* sector */
12518 {64 * 1024, 5}, /* block */
12519 {4 * 1024, 16}, /* sector */
12520 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012521 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012522 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012523 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012524 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012525 }
12526 },
Sean Nelson28accc22010-03-19 18:47:06 +000012527 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012528 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012529 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012530 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012531 },
12532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012533 {
12534 .vendor = "ST",
12535 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012536 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012537 .manufacture_id = ST_ID,
12538 .model_id = ST_M50FLW080A,
12539 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012540 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012541 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012542 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012543 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012544 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012545 .block_erasers =
12546 {
12547 {
Sean Nelson329bde72010-01-19 16:39:19 +000012548 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012549 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012550 {64 * 1024, 13}, /* block */
12551 {4 * 1024, 16}, /* sector */
12552 {4 * 1024, 16}, /* sector */
12553 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012554 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012555 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012556 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012557 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012558 }
12559 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012560 .printlock = printlock_regspace2_block_eraser_0,
12561 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012562 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012563 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012564 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012565 },
12566
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012567 {
12568 .vendor = "ST",
12569 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012570 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012571 .manufacture_id = ST_ID,
12572 .model_id = ST_M50FLW080B,
12573 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012574 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012575 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012576 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012577 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012578 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012579 .block_erasers =
12580 {
12581 {
Sean Nelson329bde72010-01-19 16:39:19 +000012582 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012583 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012584 {4 * 1024, 16}, /* sector */
12585 {64 * 1024, 13}, /* block */
12586 {4 * 1024, 16}, /* sector */
12587 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012588 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012589 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012590 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012591 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012592 }
12593 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012594 .printlock = printlock_regspace2_block_eraser_0,
12595 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012596 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012598 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012599 },
12600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012601 {
12602 .vendor = "ST",
12603 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012604 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012605 .manufacture_id = ST_ID,
12606 .model_id = ST_M50FW002,
12607 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000012608 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012609 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012610 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012611 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012612 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012613 .block_erasers =
12614 {
12615 {
12616 .eraseblocks = {
12617 {64 * 1024, 3},
12618 {32 * 1024, 1},
12619 {8 * 1024, 2},
12620 {16 * 1024, 1},
12621 },
Sean Nelson28accc22010-03-19 18:47:06 +000012622 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012623 }, {
12624 .eraseblocks = { {256 * 1024, 1}, },
12625 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000012626 }
12627 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012628 .printlock = printlock_regspace2_block_eraser_0,
12629 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012630 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012632 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012633 },
12634
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012635 {
12636 .vendor = "ST",
12637 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012638 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012639 .manufacture_id = ST_ID,
12640 .model_id = ST_M50FW016,
12641 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012642 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012643 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012644 .tested = TEST_UNTESTED,
12645 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012646 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012647 .block_erasers =
12648 {
12649 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012650 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000012651 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012652 }
12653 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012654 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012655 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012656 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012657 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012658 },
12659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012660 {
12661 .vendor = "ST",
12662 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012663 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012664 .manufacture_id = ST_ID,
12665 .model_id = ST_M50FW040,
12666 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012667 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012668 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000012669 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012670 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012671 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012672 .block_erasers =
12673 {
12674 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012675 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012676 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012677 }
12678 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012679 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012680 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012682 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012683 },
12684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012685 {
12686 .vendor = "ST",
12687 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012688 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012689 .manufacture_id = ST_ID,
12690 .model_id = ST_M50FW080,
12691 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012692 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012693 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012694 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012695 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012696 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012697 .block_erasers =
12698 {
12699 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012700 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012701 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012702 }
12703 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012704 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012705 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012707 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012708 },
12709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012710 {
12711 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012712 .name = "M50LPW080",
12713 .bustype = BUS_LPC, /* A/A Mux */
12714 .manufacture_id = ST_ID,
12715 .model_id = ST_M50LPW080,
12716 .total_size = 1024,
12717 .page_size = 0,
12718 .feature_bits = FEATURE_REGISTERMAP,
12719 .tested = TEST_UNTESTED,
12720 .probe = probe_82802ab,
12721 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12722 .block_erasers =
12723 {
12724 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012725 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012726 .block_erase = erase_block_82802ab,
12727 }
12728 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012729 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012730 .write = write_82802ab,
12731 .read = read_memmapped,
12732 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
12733 },
12734
12735 {
12736 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012737 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012738 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012739 .manufacture_id = ST_ID,
12740 .model_id = ST_M50LPW116,
12741 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012742 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012743 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012744 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012745 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000012746 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012747 .block_erasers =
12748 {
12749 {
12750 .eraseblocks = {
12751 {4 * 1024, 16},
12752 {64 * 1024, 30},
12753 {32 * 1024, 1},
12754 {8 * 1024, 2},
12755 {16 * 1024, 1},
12756 },
Sean Nelson28accc22010-03-19 18:47:06 +000012757 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012758 }
12759 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012760 .printlock = printlock_regspace2_block_eraser_0,
12761 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012762 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012763 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012764 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012765 },
12766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012767 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012768 .vendor = "SyncMOS/MoselVitelic",
12769 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012770 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012771 .manufacture_id = SYNCMOS_MVC_ID,
12772 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012773 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012774 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012775 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012776 .tested = TEST_UNTESTED,
12777 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012778 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012779 .block_erasers =
12780 {
12781 {
12782 .eraseblocks = { {512, 256} },
12783 .block_erase = erase_sector_jedec,
12784 }, {
12785 .eraseblocks = { {128 * 1024, 1} },
12786 .block_erase = erase_chip_block_jedec,
12787 },
12788 },
Sean Nelson35727f72010-01-28 23:55:12 +000012789 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012790 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012791 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012792 },
12793
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012794 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012795 .vendor = "SyncMOS/MoselVitelic",
12796 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012797 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012798 .manufacture_id = SYNCMOS_MVC_ID,
12799 .model_id = SM_MVC_29C51001T,
12800 .total_size = 128,
12801 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012802 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012803 .tested = TEST_UNTESTED,
12804 .probe = probe_jedec,
12805 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12806 .block_erasers =
12807 {
12808 {
12809 .eraseblocks = { {512, 256} },
12810 .block_erase = erase_sector_jedec,
12811 }, {
12812 .eraseblocks = { {128 * 1024, 1} },
12813 .block_erase = erase_chip_block_jedec,
12814 },
12815 },
12816 .write = write_jedec_1,
12817 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012818 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012819 },
12820
12821 {
12822 .vendor = "SyncMOS/MoselVitelic",
12823 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012824 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012825 .manufacture_id = SYNCMOS_MVC_ID,
12826 .model_id = SM_MVC_29C51002B,
12827 .total_size = 256,
12828 .page_size = 512,
12829 .feature_bits = FEATURE_EITHER_RESET,
12830 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012831 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012833 .block_erasers =
12834 {
12835 {
12836 .eraseblocks = { {512, 512} },
12837 .block_erase = erase_sector_jedec,
12838 }, {
12839 .eraseblocks = { {256 * 1024, 1} },
12840 .block_erase = erase_chip_block_jedec,
12841 },
12842 },
Sean Nelson35727f72010-01-28 23:55:12 +000012843 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012844 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012845 },
12846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012847 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012848 .vendor = "SyncMOS/MoselVitelic",
12849 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012850 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012851 .manufacture_id = SYNCMOS_MVC_ID,
12852 .model_id = SM_MVC_29C51002T,
12853 .total_size = 256,
12854 .page_size = 512,
12855 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012856 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012857 .probe = probe_jedec,
12858 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12859 .block_erasers =
12860 {
12861 {
12862 .eraseblocks = { {512, 512} },
12863 .block_erase = erase_sector_jedec,
12864 }, {
12865 .eraseblocks = { {256 * 1024, 1} },
12866 .block_erase = erase_chip_block_jedec,
12867 },
12868 },
12869 .write = write_jedec_1,
12870 .read = read_memmapped,
12871 },
12872
12873 {
12874 .vendor = "SyncMOS/MoselVitelic",
12875 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012876 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012877 .manufacture_id = SYNCMOS_MVC_ID,
12878 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012879 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012880 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012881 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012882 .tested = TEST_UNTESTED,
12883 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012884 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000012885 .block_erasers =
12886 {
12887 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012888 .eraseblocks = { {1024, 512} },
12889 .block_erase = erase_sector_jedec,
12890 }, {
12891 .eraseblocks = { {512 * 1024, 1} },
12892 .block_erase = erase_chip_block_jedec,
12893 },
12894 },
12895 .write = write_jedec_1,
12896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012897 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012898 },
12899
12900 {
12901 .vendor = "SyncMOS/MoselVitelic",
12902 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012903 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012904 .manufacture_id = SYNCMOS_MVC_ID,
12905 .model_id = SM_MVC_29C51004T,
12906 .total_size = 512,
12907 .page_size = 1024,
12908 .feature_bits = FEATURE_EITHER_RESET,
12909 .tested = TEST_UNTESTED,
12910 .probe = probe_jedec,
12911 .probe_timing = TIMING_ZERO,
12912 .block_erasers =
12913 {
12914 {
12915 .eraseblocks = { {1024, 512} },
12916 .block_erase = erase_sector_jedec,
12917 }, {
12918 .eraseblocks = { {512 * 1024, 1} },
12919 .block_erase = erase_chip_block_jedec,
12920 },
12921 },
12922 .write = write_jedec_1,
12923 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012924 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012925 },
12926
12927 {
12928 .vendor = "SyncMOS/MoselVitelic",
12929 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012930 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012931 .manufacture_id = SYNCMOS_MVC_ID,
12932 .model_id = SM_MVC_29C31004B,
12933 .total_size = 512,
12934 .page_size = 1024,
12935 .feature_bits = FEATURE_EITHER_RESET,
12936 .tested = TEST_UNTESTED,
12937 .probe = probe_jedec,
12938 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12939 .block_erasers =
12940 {
12941 {
12942 .eraseblocks = { {1024, 512} },
12943 .block_erase = erase_sector_jedec,
12944 }, {
12945 .eraseblocks = { {512 * 1024, 1} },
12946 .block_erase = erase_chip_block_jedec,
12947 },
12948 },
12949 .write = write_jedec_1,
12950 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012951 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012952 },
12953
12954 {
12955 .vendor = "SyncMOS/MoselVitelic",
12956 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012957 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012958 .manufacture_id = SYNCMOS_MVC_ID,
12959 .model_id = SM_MVC_29C31004T,
12960 .total_size = 512,
12961 .page_size = 1024,
12962 .feature_bits = FEATURE_EITHER_RESET,
12963 .tested = TEST_UNTESTED,
12964 .probe = probe_jedec,
12965 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12966 .block_erasers =
12967 {
12968 {
12969 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012970 .block_erase = erase_sector_jedec,
12971 }, {
12972 .eraseblocks = { {512 * 1024, 1} },
12973 .block_erase = erase_chip_block_jedec,
12974 },
12975 },
Sean Nelson35727f72010-01-28 23:55:12 +000012976 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012977 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012978 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012979 },
12980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012981 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012982 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012983 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012984 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012985 .manufacture_id = TI_OLD_ID,
12986 .model_id = TI_TMS29F002RB,
12987 .total_size = 256,
12988 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012989 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012990 .tested = TEST_UNTESTED,
12991 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012993 .block_erasers =
12994 {
12995 {
12996 .eraseblocks = {
12997 {16 * 1024, 1},
12998 {8 * 1024, 2},
12999 {32 * 1024, 1},
13000 {64 * 1024, 3},
13001 },
13002 .block_erase = erase_sector_jedec,
13003 }, {
13004 .eraseblocks = { {256 * 1024, 1} },
13005 .block_erase = erase_chip_block_jedec,
13006 },
13007 },
Sean Nelson35727f72010-01-28 23:55:12 +000013008 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013009 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013010 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013011 },
13012
13013 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013014 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013015 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013016 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013017 .manufacture_id = TI_OLD_ID,
13018 .model_id = TI_TMS29F002RT,
13019 .total_size = 256,
13020 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013021 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013022 .tested = TEST_UNTESTED,
13023 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013025 .block_erasers =
13026 {
13027 {
13028 .eraseblocks = {
13029 {64 * 1024, 3},
13030 {32 * 1024, 1},
13031 {8 * 1024, 2},
13032 {16 * 1024, 1},
13033 },
13034 .block_erase = erase_sector_jedec,
13035 }, {
13036 .eraseblocks = { {256 * 1024, 1} },
13037 .block_erase = erase_chip_block_jedec,
13038 },
13039 },
Sean Nelson35727f72010-01-28 23:55:12 +000013040 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013042 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013043 },
13044
13045 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013046 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000013047 .name = "W25Q40.V",
13048 .bustype = BUS_SPI,
13049 .manufacture_id = WINBOND_NEX_ID,
13050 .model_id = WINBOND_NEX_W25Q40_V,
13051 .total_size = 512,
13052 .page_size = 256,
13053 /* supports SFDP */
13054 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13055 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13056 .tested = TEST_OK_PR,
13057 .probe = probe_spi_rdid,
13058 .probe_timing = TIMING_ZERO,
13059 .block_erasers =
13060 {
13061 {
13062 .eraseblocks = { {4 * 1024, 128} },
13063 .block_erase = spi_block_erase_20,
13064 }, {
13065 .eraseblocks = { {32 * 1024, 16} },
13066 .block_erase = spi_block_erase_52,
13067 }, {
13068 .eraseblocks = { {64 * 1024, 8} },
13069 .block_erase = spi_block_erase_d8,
13070 }, {
13071 .eraseblocks = { {512 * 1024, 1} },
13072 .block_erase = spi_block_erase_60,
13073 }, {
13074 .eraseblocks = { {512 * 1024, 1} },
13075 .block_erase = spi_block_erase_c7,
13076 }
13077 },
13078 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13079 .unlock = spi_disable_blockprotect,
13080 .write = spi_chip_write_256, /* Multi I/O supported */
13081 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13082 .voltage = {2700, 3600},
13083 },
13084
13085 {
13086 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013087 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013088 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013089 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013090 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013091 .total_size = 1024,
13092 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013093 /* supports SFDP */
13094 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013095 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013096 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013097 .probe = probe_spi_rdid,
13098 .probe_timing = TIMING_ZERO,
13099 .block_erasers =
13100 {
13101 {
13102 .eraseblocks = { {4 * 1024, 256} },
13103 .block_erase = spi_block_erase_20,
13104 }, {
13105 .eraseblocks = { {32 * 1024, 32} },
13106 .block_erase = spi_block_erase_52,
13107 }, {
13108 .eraseblocks = { {64 * 1024, 16} },
13109 .block_erase = spi_block_erase_d8,
13110 }, {
13111 .eraseblocks = { {1024 * 1024, 1} },
13112 .block_erase = spi_block_erase_60,
13113 }, {
13114 .eraseblocks = { {1024 * 1024, 1} },
13115 .block_erase = spi_block_erase_c7,
13116 }
13117 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013118 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013119 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013120 .write = spi_chip_write_256,
13121 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013122 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013123 },
13124
13125 {
13126 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013127 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013128 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013129 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013130 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013131 .total_size = 2048,
13132 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013133 /* supports SFDP */
13134 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000013136 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013137 .probe = probe_spi_rdid,
13138 .probe_timing = TIMING_ZERO,
13139 .block_erasers =
13140 {
13141 {
13142 .eraseblocks = { {4 * 1024, 512} },
13143 .block_erase = spi_block_erase_20,
13144 }, {
13145 .eraseblocks = { {32 * 1024, 64} },
13146 .block_erase = spi_block_erase_52,
13147 }, {
13148 .eraseblocks = { {64 * 1024, 32} },
13149 .block_erase = spi_block_erase_d8,
13150 }, {
13151 .eraseblocks = { {2 * 1024 * 1024, 1} },
13152 .block_erase = spi_block_erase_60,
13153 }, {
13154 .eraseblocks = { {2 * 1024 * 1024, 1} },
13155 .block_erase = spi_block_erase_c7,
13156 }
13157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013158 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013159 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013160 .write = spi_chip_write_256,
13161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013162 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013163 },
13164
13165 {
13166 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013167 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013168 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013169 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013170 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013171 .total_size = 4096,
13172 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013173 /* supports SFDP */
13174 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013176 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013177 .probe = probe_spi_rdid,
13178 .probe_timing = TIMING_ZERO,
13179 .block_erasers =
13180 {
13181 {
13182 .eraseblocks = { {4 * 1024, 1024} },
13183 .block_erase = spi_block_erase_20,
13184 }, {
13185 .eraseblocks = { {32 * 1024, 128} },
13186 .block_erase = spi_block_erase_52,
13187 }, {
13188 .eraseblocks = { {64 * 1024, 64} },
13189 .block_erase = spi_block_erase_d8,
13190 }, {
13191 .eraseblocks = { {4 * 1024 * 1024, 1} },
13192 .block_erase = spi_block_erase_60,
13193 }, {
13194 .eraseblocks = { {4 * 1024 * 1024, 1} },
13195 .block_erase = spi_block_erase_c7,
13196 }
13197 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013198 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013199 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013200 .write = spi_chip_write_256,
13201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013202 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013203 },
13204
13205 {
13206 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013207 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013208 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000013209 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013210 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000013211 .total_size = 8192,
13212 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013213 /* supports SFDP */
13214 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013215 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013216 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000013217 .probe = probe_spi_rdid,
13218 .probe_timing = TIMING_ZERO,
13219 .block_erasers =
13220 {
13221 {
13222 .eraseblocks = { {4 * 1024, 2048} },
13223 .block_erase = spi_block_erase_20,
13224 }, {
13225 .eraseblocks = { {32 * 1024, 256} },
13226 .block_erase = spi_block_erase_52,
13227 }, {
13228 .eraseblocks = { {64 * 1024, 128} },
13229 .block_erase = spi_block_erase_d8,
13230 }, {
13231 .eraseblocks = { {8 * 1024 * 1024, 1} },
13232 .block_erase = spi_block_erase_60,
13233 }, {
13234 .eraseblocks = { {8 * 1024 * 1024, 1} },
13235 .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,
David Hendricksc4acec92010-06-24 11:39:57 +000013240 .write = spi_chip_write_256,
13241 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013242 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000013243 },
13244
13245 {
13246 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013247 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013248 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013249 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013250 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013251 .total_size = 16384,
13252 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013253 /* supports SFDP */
13254 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013256 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013257 .probe = probe_spi_rdid,
13258 .probe_timing = TIMING_ZERO,
13259 .block_erasers =
13260 {
13261 {
13262 .eraseblocks = { {4 * 1024, 4096} },
13263 .block_erase = spi_block_erase_20,
13264 }, {
13265 .eraseblocks = { {32 * 1024, 512} },
13266 .block_erase = spi_block_erase_52,
13267 }, {
13268 .eraseblocks = { {64 * 1024, 256} },
13269 .block_erase = spi_block_erase_d8,
13270 }, {
13271 .eraseblocks = { {16 * 1024 * 1024, 1} },
13272 .block_erase = spi_block_erase_60,
13273 }, {
13274 .eraseblocks = { {16 * 1024 * 1024, 1} },
13275 .block_erase = spi_block_erase_c7,
13276 }
13277 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013278 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013279 .unlock = spi_disable_blockprotect,
13280 .write = spi_chip_write_256,
13281 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013282 .voltage = {2700, 3600},
13283 },
13284
13285 {
13286 .vendor = "Winbond",
13287 .name = "W25Q20.W",
13288 .bustype = BUS_SPI,
13289 .manufacture_id = WINBOND_NEX_ID,
13290 .model_id = WINBOND_NEX_W25Q20_W,
13291 .total_size = 256,
13292 .page_size = 256,
13293 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13294 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13295 .tested = TEST_UNTESTED,
13296 .probe = probe_spi_rdid,
13297 .probe_timing = TIMING_ZERO,
13298 .block_erasers =
13299 {
13300 {
13301 .eraseblocks = { {4 * 1024, 64} },
13302 .block_erase = spi_block_erase_20,
13303 }, {
13304 .eraseblocks = { {32 * 1024, 8} },
13305 .block_erase = spi_block_erase_52,
13306 }, {
13307 .eraseblocks = { {64 * 1024, 4} },
13308 .block_erase = spi_block_erase_d8,
13309 }, {
13310 .eraseblocks = { {256 * 1024, 1} },
13311 .block_erase = spi_block_erase_60,
13312 }, {
13313 .eraseblocks = { {256 * 1024, 1} },
13314 .block_erase = spi_block_erase_c7,
13315 }
13316 },
13317 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13318 .unlock = spi_disable_blockprotect,
13319 .write = spi_chip_write_256,
13320 .read = spi_chip_read,
13321 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13322 },
13323
13324 {
13325 .vendor = "Winbond",
13326 .name = "W25Q40.W",
13327 .bustype = BUS_SPI,
13328 .manufacture_id = WINBOND_NEX_ID,
13329 .model_id = WINBOND_NEX_W25Q40_W,
13330 .total_size = 512,
13331 .page_size = 256,
13332 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13333 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13334 .tested = TEST_UNTESTED,
13335 .probe = probe_spi_rdid,
13336 .probe_timing = TIMING_ZERO,
13337 .block_erasers =
13338 {
13339 {
13340 .eraseblocks = { {4 * 1024, 128} },
13341 .block_erase = spi_block_erase_20,
13342 }, {
13343 .eraseblocks = { {32 * 1024, 16} },
13344 .block_erase = spi_block_erase_52,
13345 }, {
13346 .eraseblocks = { {64 * 1024, 8} },
13347 .block_erase = spi_block_erase_d8,
13348 }, {
13349 .eraseblocks = { {512 * 1024, 1} },
13350 .block_erase = spi_block_erase_60,
13351 }, {
13352 .eraseblocks = { {512 * 1024, 1} },
13353 .block_erase = spi_block_erase_c7,
13354 }
13355 },
13356 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13357 .unlock = spi_disable_blockprotect,
13358 .write = spi_chip_write_256,
13359 .read = spi_chip_read,
13360 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13361 },
13362
13363 {
13364 .vendor = "Winbond",
13365 .name = "W25Q80.W",
13366 .bustype = BUS_SPI,
13367 .manufacture_id = WINBOND_NEX_ID,
13368 .model_id = WINBOND_NEX_W25Q80_W,
13369 .total_size = 1024,
13370 .page_size = 256,
13371 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13372 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13373 .tested = TEST_UNTESTED,
13374 .probe = probe_spi_rdid,
13375 .probe_timing = TIMING_ZERO,
13376 .block_erasers =
13377 {
13378 {
13379 .eraseblocks = { {4 * 1024, 256} },
13380 .block_erase = spi_block_erase_20,
13381 }, {
13382 .eraseblocks = { {32 * 1024, 32} },
13383 .block_erase = spi_block_erase_52,
13384 }, {
13385 .eraseblocks = { {64 * 1024, 16} },
13386 .block_erase = spi_block_erase_d8,
13387 }, {
13388 .eraseblocks = { {1 * 1024 * 1024, 1} },
13389 .block_erase = spi_block_erase_60,
13390 }, {
13391 .eraseblocks = { {1 * 1024 * 1024, 1} },
13392 .block_erase = spi_block_erase_c7,
13393 }
13394 },
13395 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13396 .unlock = spi_disable_blockprotect,
13397 .write = spi_chip_write_256,
13398 .read = spi_chip_read,
13399 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13400 },
13401
13402 {
13403 .vendor = "Winbond",
13404 .name = "W25Q16.W",
13405 .bustype = BUS_SPI,
13406 .manufacture_id = WINBOND_NEX_ID,
13407 .model_id = WINBOND_NEX_W25Q16_W,
13408 .total_size = 2048,
13409 .page_size = 256,
13410 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13411 /* QPI enable 0x38, disable 0xFF */
13412 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13413 .tested = TEST_UNTESTED,
13414 .probe = probe_spi_rdid,
13415 .probe_timing = TIMING_ZERO,
13416 .block_erasers =
13417 {
13418 {
13419 .eraseblocks = { {4 * 1024, 512} },
13420 .block_erase = spi_block_erase_20,
13421 }, {
13422 .eraseblocks = { {32 * 1024, 64} },
13423 .block_erase = spi_block_erase_52,
13424 }, {
13425 .eraseblocks = { {64 * 1024, 32} },
13426 .block_erase = spi_block_erase_d8,
13427 }, {
13428 .eraseblocks = { {2 * 1024 * 1024, 1} },
13429 .block_erase = spi_block_erase_60,
13430 }, {
13431 .eraseblocks = { {2 * 1024 * 1024, 1} },
13432 .block_erase = spi_block_erase_c7,
13433 }
13434 },
13435 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13436 .unlock = spi_disable_blockprotect,
13437 .write = spi_chip_write_256,
13438 .read = spi_chip_read,
13439 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13440 },
13441
13442 {
13443 .vendor = "Winbond",
13444 .name = "W25Q32.W",
13445 .bustype = BUS_SPI,
13446 .manufacture_id = WINBOND_NEX_ID,
13447 .model_id = WINBOND_NEX_W25Q32_W,
13448 .total_size = 4096,
13449 .page_size = 256,
13450 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13451 /* QPI enable 0x38, disable 0xFF */
13452 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13453 .tested = TEST_OK_PREW,
13454 .probe = probe_spi_rdid,
13455 .probe_timing = TIMING_ZERO,
13456 .block_erasers =
13457 {
13458 {
13459 .eraseblocks = { {4 * 1024, 1024} },
13460 .block_erase = spi_block_erase_20,
13461 }, {
13462 .eraseblocks = { {32 * 1024, 128} },
13463 .block_erase = spi_block_erase_52,
13464 }, {
13465 .eraseblocks = { {64 * 1024, 64} },
13466 .block_erase = spi_block_erase_d8,
13467 }, {
13468 .eraseblocks = { {4 * 1024 * 1024, 1} },
13469 .block_erase = spi_block_erase_60,
13470 }, {
13471 .eraseblocks = { {4 * 1024 * 1024, 1} },
13472 .block_erase = spi_block_erase_c7,
13473 }
13474 },
13475 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13476 .unlock = spi_disable_blockprotect,
13477 .write = spi_chip_write_256,
13478 .read = spi_chip_read,
13479 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13480 },
13481
13482 {
13483 .vendor = "Winbond",
13484 .name = "W25Q64.W",
13485 .bustype = BUS_SPI,
13486 .manufacture_id = WINBOND_NEX_ID,
13487 .model_id = WINBOND_NEX_W25Q64_W,
13488 .total_size = 8192,
13489 .page_size = 256,
13490 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13491 /* QPI enable 0x38, disable 0xFF */
13492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013493 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013494 .probe = probe_spi_rdid,
13495 .probe_timing = TIMING_ZERO,
13496 .block_erasers =
13497 {
13498 {
13499 .eraseblocks = { {4 * 1024, 2048} },
13500 .block_erase = spi_block_erase_20,
13501 }, {
13502 .eraseblocks = { {32 * 1024, 256} },
13503 .block_erase = spi_block_erase_52,
13504 }, {
13505 .eraseblocks = { {64 * 1024, 128} },
13506 .block_erase = spi_block_erase_d8,
13507 }, {
13508 .eraseblocks = { {8 * 1024 * 1024, 1} },
13509 .block_erase = spi_block_erase_60,
13510 }, {
13511 .eraseblocks = { {8 * 1024 * 1024, 1} },
13512 .block_erase = spi_block_erase_c7,
13513 }
13514 },
13515 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13516 .unlock = spi_disable_blockprotect,
13517 .write = spi_chip_write_256,
13518 .read = spi_chip_read,
13519 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013520 },
13521
13522 {
13523 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013524 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013525 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013526 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013527 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013528 .total_size = 128,
13529 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013530 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013531 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013532 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013533 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013534 .block_erasers =
13535 {
13536 {
13537 .eraseblocks = { {4 * 1024, 32} },
13538 .block_erase = spi_block_erase_20,
13539 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013540 .eraseblocks = { {64 * 1024, 2} },
13541 .block_erase = spi_block_erase_d8,
13542 }, {
13543 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013544 .block_erase = spi_block_erase_c7,
13545 }
13546 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013547 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013548 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013549 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013550 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013552 },
13553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013554 {
13555 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013556 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013557 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013558 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013559 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013560 .total_size = 256,
13561 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013562 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013563 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013564 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013565 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013566 .block_erasers =
13567 {
13568 {
13569 .eraseblocks = { {4 * 1024, 64} },
13570 .block_erase = spi_block_erase_20,
13571 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013572 .eraseblocks = { {64 * 1024, 4} },
13573 .block_erase = spi_block_erase_d8,
13574 }, {
13575 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013576 .block_erase = spi_block_erase_c7,
13577 }
13578 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013579 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013580 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013581 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013582 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013583 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013584 },
13585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013586 {
13587 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013588 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013589 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013590 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013591 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013592 .total_size = 512,
13593 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013594 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000013595 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013596 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013597 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013598 .block_erasers =
13599 {
13600 {
13601 .eraseblocks = { {4 * 1024, 128} },
13602 .block_erase = spi_block_erase_20,
13603 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013604 .eraseblocks = { {64 * 1024, 8} },
13605 .block_erase = spi_block_erase_d8,
13606 }, {
13607 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013608 .block_erase = spi_block_erase_c7,
13609 }
13610 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013611 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013612 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013613 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013614 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013615 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013616 },
13617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013618 {
13619 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013620 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013621 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013622 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013623 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013624 .total_size = 1024,
13625 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013626 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000013627 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013628 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013629 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013630 .block_erasers =
13631 {
13632 {
13633 .eraseblocks = { {4 * 1024, 256} },
13634 .block_erase = spi_block_erase_20,
13635 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013636 .eraseblocks = { {64 * 1024, 16} },
13637 .block_erase = spi_block_erase_d8,
13638 }, {
13639 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013640 .block_erase = spi_block_erase_c7,
13641 }
13642 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013643 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013644 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013645 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013646 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013647 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013648 },
13649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013650 {
13651 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013652 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013653 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000013654 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013655 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000013656 .total_size = 2048,
13657 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013658 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000013659 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000013660 .probe = probe_spi_rdid,
13661 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013662 .block_erasers =
13663 {
13664 {
13665 .eraseblocks = { {4 * 1024, 512} },
13666 .block_erase = spi_block_erase_20,
13667 }, {
13668 .eraseblocks = { {32 * 1024, 64} },
13669 .block_erase = spi_block_erase_52,
13670 }, {
13671 .eraseblocks = { {64 * 1024, 32} },
13672 .block_erase = spi_block_erase_d8,
13673 }, {
13674 .eraseblocks = { {2 * 1024 * 1024, 1} },
13675 .block_erase = spi_block_erase_60,
13676 }, {
13677 .eraseblocks = { {2 * 1024 * 1024, 1} },
13678 .block_erase = spi_block_erase_c7,
13679 }
13680 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013681 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013682 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000013683 .write = spi_chip_write_256,
13684 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013685 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000013686 },
13687
13688 {
13689 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013690 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013691 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013692 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013693 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000013694 .total_size = 4096,
13695 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013696 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013697 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000013698 .probe = probe_spi_rdid,
13699 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013700 .block_erasers =
13701 {
13702 {
13703 .eraseblocks = { {4 * 1024, 1024} },
13704 .block_erase = spi_block_erase_20,
13705 }, {
13706 .eraseblocks = { {32 * 1024, 128} },
13707 .block_erase = spi_block_erase_52,
13708 }, {
13709 .eraseblocks = { {64 * 1024, 64} },
13710 .block_erase = spi_block_erase_d8,
13711 }, {
13712 .eraseblocks = { {4 * 1024 * 1024, 1} },
13713 .block_erase = spi_block_erase_60,
13714 }, {
13715 .eraseblocks = { {4 * 1024 * 1024, 1} },
13716 .block_erase = spi_block_erase_c7,
13717 }
13718 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013719 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013720 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013721 .write = spi_chip_write_256,
13722 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013723 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013724 },
13725
13726 {
13727 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013728 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013729 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013730 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013731 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000013732 .total_size = 8192,
13733 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013734 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013735 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000013736 .probe = probe_spi_rdid,
13737 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013738 .block_erasers =
13739 {
13740 {
13741 .eraseblocks = { {4 * 1024, 2048} },
13742 .block_erase = spi_block_erase_20,
13743 }, {
13744 .eraseblocks = { {32 * 1024, 256} },
13745 .block_erase = spi_block_erase_52,
13746 }, {
13747 .eraseblocks = { {64 * 1024, 128} },
13748 .block_erase = spi_block_erase_d8,
13749 }, {
13750 .eraseblocks = { {8 * 1024 * 1024, 1} },
13751 .block_erase = spi_block_erase_60,
13752 }, {
13753 .eraseblocks = { {8 * 1024 * 1024, 1} },
13754 .block_erase = spi_block_erase_c7,
13755 }
13756 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013757 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013758 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013759 .write = spi_chip_write_256,
13760 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013761 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013762 },
13763
13764 {
13765 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013766 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013767 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013768 .manufacture_id = WINBOND_ID,
13769 .model_id = WINBOND_W29C010,
13770 .total_size = 128,
13771 .page_size = 128,
13772 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013773 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013774 .probe = probe_w29ee011,
13775 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
13776 .block_erasers =
13777 {
13778 {
13779 .eraseblocks = { {128 * 1024, 1} },
13780 .block_erase = erase_chip_block_jedec,
13781 }
13782 },
13783 .write = write_jedec,
13784 .read = read_memmapped,
13785 },
13786
13787 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
13788 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013789 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013790 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013791 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013792 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013793 .total_size = 128,
13794 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013795 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000013796 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013797 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013798 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013799 .block_erasers =
13800 {
13801 {
13802 .eraseblocks = { {128 * 1024, 1} },
13803 .block_erase = erase_chip_block_jedec,
13804 }
13805 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013806 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013807 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013808 },
13809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013810 {
13811 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013812 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013813 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013814 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013815 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013816 .total_size = 256,
13817 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013818 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013819 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013820 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013821 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013822 .block_erasers =
13823 {
13824 {
13825 .eraseblocks = { {256 * 1024, 1} },
13826 .block_erase = erase_chip_block_jedec,
13827 }
13828 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013829 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013831 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013832 },
13833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013834 {
13835 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013836 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013837 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013838 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013839 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013840 .total_size = 512,
13841 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013842 .feature_bits = FEATURE_LONG_RESET,
13843 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013844 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013845 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013846 .block_erasers =
13847 {
13848 {
13849 .eraseblocks = { {512 * 1024, 1} },
13850 .block_erase = erase_chip_block_jedec,
13851 }
13852 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013853 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013855 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013856 },
13857
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013858 {
13859 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000013860 .name = "W29GL032CB",
13861 .bustype = BUS_PARALLEL,
13862 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13863 .model_id = WINBOND_W29GL032CB,
13864 .total_size = 4096,
13865 .page_size = 128 * 1024, /* actual page size is 16 */
13866 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13867 .tested = TEST_UNTESTED,
13868 .probe = probe_jedec_29gl,
13869 .probe_timing = TIMING_ZERO,
13870 .block_erasers =
13871 {
13872 {
13873 .eraseblocks = {
13874 {8 * 1024, 8},
13875 {64 * 1024, 63},
13876 },
13877 .block_erase = erase_sector_jedec,
13878 }, {
13879 .eraseblocks = { {4 * 1024 * 1024, 1} },
13880 .block_erase = erase_chip_block_jedec,
13881 },
13882 },
13883 .write = write_jedec_1,
13884 .read = read_memmapped,
13885 .voltage = {2700, 3600},
13886 },
13887
13888 {
13889 .vendor = "Winbond",
13890 .name = "W29GL032CT",
13891 .bustype = BUS_PARALLEL,
13892 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13893 .model_id = WINBOND_W29GL032CT,
13894 .total_size = 4096,
13895 .page_size = 128 * 1024, /* actual page size is 16 */
13896 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13897 .tested = TEST_UNTESTED,
13898 .probe = probe_jedec_29gl,
13899 .probe_timing = TIMING_ZERO,
13900 .block_erasers =
13901 {
13902 {
13903 .eraseblocks = {
13904 {64 * 1024, 63},
13905 {8 * 1024, 8},
13906 },
13907 .block_erase = erase_sector_jedec,
13908 }, {
13909 .eraseblocks = { {4 * 1024 * 1024, 1} },
13910 .block_erase = erase_chip_block_jedec,
13911 },
13912 },
13913 .write = write_jedec_1,
13914 .read = read_memmapped,
13915 .voltage = {2700, 3600},
13916 },
13917
13918 {
13919 .vendor = "Winbond",
13920 .name = "W29GL032CH/L",
13921 .bustype = BUS_PARALLEL,
13922 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13923 .model_id = WINBOND_W29GL032CHL,
13924 .total_size = 4096,
13925 .page_size = 128 * 1024, /* actual page size is 16 */
13926 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13927 .tested = TEST_UNTESTED,
13928 .probe = probe_jedec_29gl,
13929 .probe_timing = TIMING_ZERO,
13930 .block_erasers =
13931 {
13932 {
13933 .eraseblocks = { {64 * 1024, 64} },
13934 .block_erase = erase_sector_jedec,
13935 }, {
13936 .eraseblocks = { {4 * 1024 * 1024, 1} },
13937 .block_erase = erase_chip_block_jedec,
13938 },
13939 },
13940 .write = write_jedec_1,
13941 .read = read_memmapped,
13942 .voltage = {2700, 3600},
13943 },
13944
13945 {
13946 .vendor = "Winbond",
13947 .name = "W29GL064CB",
13948 .bustype = BUS_PARALLEL,
13949 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13950 .model_id = WINBOND_W29GL064CB,
13951 .total_size = 8192,
13952 .page_size = 128 * 1024, /* actual page size is 16 */
13953 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13954 .tested = TEST_UNTESTED,
13955 .probe = probe_jedec_29gl,
13956 .probe_timing = TIMING_ZERO,
13957 .block_erasers =
13958 {
13959 {
13960 .eraseblocks = {
13961 {8 * 1024, 8},
13962 {64 * 1024, 127},
13963 },
13964 .block_erase = erase_sector_jedec,
13965 }, {
13966 .eraseblocks = { {8 * 1024 * 1024, 1} },
13967 .block_erase = erase_chip_block_jedec,
13968 },
13969 },
13970 .write = write_jedec_1,
13971 .read = read_memmapped,
13972 .voltage = {2700, 3600},
13973 },
13974
13975 {
13976 .vendor = "Winbond",
13977 .name = "W29GL064CT",
13978 .bustype = BUS_PARALLEL,
13979 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13980 .model_id = WINBOND_W29GL064CT,
13981 .total_size = 8192,
13982 .page_size = 128 * 1024, /* actual page size is 16 */
13983 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13984 .tested = TEST_UNTESTED,
13985 .probe = probe_jedec_29gl,
13986 .probe_timing = TIMING_ZERO,
13987 .block_erasers =
13988 {
13989 {
13990 .eraseblocks = {
13991 {64 * 1024, 127},
13992 {8 * 1024, 8},
13993 },
13994 .block_erase = erase_sector_jedec,
13995 }, {
13996 .eraseblocks = { {8 * 1024 * 1024, 1} },
13997 .block_erase = erase_chip_block_jedec,
13998 },
13999 },
14000 .write = write_jedec_1,
14001 .read = read_memmapped,
14002 .voltage = {2700, 3600},
14003 },
14004
14005 {
14006 .vendor = "Winbond",
14007 .name = "W29GL064CH/L",
14008 .bustype = BUS_PARALLEL,
14009 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14010 .model_id = WINBOND_W29GL064CHL,
14011 .total_size = 8192,
14012 .page_size = 128 * 1024, /* actual page size is 16 */
14013 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14014 .tested = TEST_UNTESTED,
14015 .probe = probe_jedec_29gl,
14016 .probe_timing = TIMING_ZERO,
14017 .block_erasers =
14018 {
14019 {
14020 .eraseblocks = { {64 * 1024, 128} },
14021 .block_erase = erase_sector_jedec,
14022 }, {
14023 .eraseblocks = { {8 * 1024 * 1024, 1} },
14024 .block_erase = erase_chip_block_jedec,
14025 },
14026 },
14027 .write = write_jedec_1,
14028 .read = read_memmapped,
14029 .voltage = {2700, 3600},
14030 },
14031
14032 {
14033 .vendor = "Winbond",
14034 .name = "W29GL128C",
14035 .bustype = BUS_PARALLEL,
14036 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14037 .model_id = WINBOND_W29GL128CHL,
14038 .total_size = 16384,
14039 .page_size = 128 * 1024, /* actual page size is 16 */
14040 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14041 .tested = TEST_UNTESTED,
14042 .probe = probe_jedec_29gl,
14043 .probe_timing = TIMING_ZERO,
14044 .block_erasers =
14045 {
14046 {
14047 .eraseblocks = { {128 * 1024, 128} },
14048 .block_erase = erase_sector_jedec,
14049 }, {
14050 .eraseblocks = { {16 * 1024 * 1024, 1} },
14051 .block_erase = erase_chip_block_jedec,
14052 },
14053 },
14054 .write = write_jedec_1,
14055 .read = read_memmapped,
14056 .voltage = {2700, 3600},
14057 },
14058
14059 {
14060 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000014061 .name = "W39F010",
14062 .bustype = BUS_PARALLEL,
14063 .manufacture_id = WINBOND_ID,
14064 .model_id = WINBOND_W39F010,
14065 .total_size = 128,
14066 .page_size = 4 * 1024,
14067 .feature_bits = FEATURE_EITHER_RESET,
14068 .tested = TEST_OK_PREW,
14069 .probe = probe_jedec,
14070 .probe_timing = 10,
14071 .block_erasers =
14072 {
14073 {
14074 .eraseblocks = { {4 * 1024, 32} },
14075 .block_erase = erase_block_jedec,
14076 }, {
14077 .eraseblocks = { {128 * 1024, 1} },
14078 .block_erase = erase_chip_block_jedec,
14079 }
14080 },
14081 .printlock = printlock_w39f010,
14082 .write = write_jedec_1,
14083 .read = read_memmapped,
14084 .voltage = {4500, 5500},
14085 },
14086
14087 {
14088 .vendor = "Winbond",
14089 .name = "W39L010",
14090 .bustype = BUS_PARALLEL,
14091 .manufacture_id = WINBOND_ID,
14092 .model_id = WINBOND_W39L010,
14093 .total_size = 128,
14094 .page_size = 4 * 1024,
14095 .feature_bits = FEATURE_EITHER_RESET,
14096 .tested = TEST_UNTESTED,
14097 .probe = probe_jedec,
14098 .probe_timing = 10,
14099 .block_erasers =
14100 {
14101 {
14102 .eraseblocks = { {4 * 1024, 32} },
14103 .block_erase = erase_block_jedec,
14104 }, {
14105 .eraseblocks = { {128 * 1024, 1} },
14106 .block_erase = erase_chip_block_jedec,
14107 }
14108 },
14109 .printlock = printlock_w39l010,
14110 .write = write_jedec_1,
14111 .read = read_memmapped,
14112 .voltage = {3000, 3600},
14113 },
14114
14115 {
14116 .vendor = "Winbond",
14117 .name = "W39L020",
14118 .bustype = BUS_PARALLEL,
14119 .manufacture_id = WINBOND_ID,
14120 .model_id = WINBOND_W39L020,
14121 .total_size = 256,
14122 .page_size = 4 * 1024,
14123 .feature_bits = FEATURE_EITHER_RESET,
14124 .tested = TEST_UNTESTED,
14125 .probe = probe_jedec,
14126 .probe_timing = 10,
14127 .block_erasers =
14128 {
14129 {
14130 .eraseblocks = { {4 * 1024, 64} },
14131 .block_erase = erase_block_jedec,
14132 }, {
14133 .eraseblocks = { {64 * 1024, 4} },
14134 .block_erase = erase_sector_jedec,
14135 }, {
14136 .eraseblocks = { {256 * 1024, 1} },
14137 .block_erase = erase_chip_block_jedec,
14138 }
14139 },
14140 .printlock = printlock_w39l020,
14141 .write = write_jedec_1,
14142 .read = read_memmapped,
14143 .voltage = {3000, 3600},
14144 },
14145
14146 {
14147 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000014148 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014149 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000014150 .manufacture_id = WINBOND_ID,
14151 .model_id = WINBOND_W39L040,
14152 .total_size = 512,
14153 .page_size = 64 * 1024,
14154 .feature_bits = FEATURE_EITHER_RESET,
14155 .tested = TEST_OK_PR,
14156 .probe = probe_jedec,
14157 .probe_timing = 10,
14158 .block_erasers =
14159 {
14160 {
14161 .eraseblocks = { {4 * 1024, 128} },
14162 .block_erase = erase_block_jedec,
14163 }, {
14164 .eraseblocks = { {64 * 1024, 8} },
14165 .block_erase = erase_sector_jedec,
14166 }, {
14167 .eraseblocks = { {512 * 1024, 1} },
14168 .block_erase = erase_chip_block_jedec,
14169 }
14170 },
14171 .printlock = printlock_w39l040,
14172 .write = write_jedec_1,
14173 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014174 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000014175 },
14176
14177 {
14178 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014179 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014180 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014181 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014182 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014183 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014185 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014186 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014187 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000014188 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014189 .block_erasers =
14190 {
14191 {
14192 .eraseblocks = { {64 * 1024, 8} },
14193 .block_erase = erase_sector_jedec,
14194 }, {
14195 .eraseblocks = { {512 * 1024, 1} },
14196 .block_erase = erase_chip_block_jedec,
14197 }
14198 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014199 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000014200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014202 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014203 },
14204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014205 {
14206 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014207 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014208 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014209 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014210 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014211 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014213 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014215 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000014216 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014217 .block_erasers =
14218 {
14219 {
14220 .eraseblocks = { {64 * 1024, 8} },
14221 .block_erase = erase_sector_jedec,
14222 }, {
14223 .eraseblocks = { {512 * 1024, 1} },
14224 .block_erase = erase_chip_block_jedec,
14225 }
14226 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014227 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000014228 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014230 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014231 },
14232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014233 {
14234 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014235 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014236 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014237 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014238 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014239 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014240 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014241 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014242 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000014243 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014244 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014245 .block_erasers =
14246 {
14247 {
14248 .eraseblocks = { {64 * 1024, 8} },
14249 .block_erase = erase_sector_jedec,
14250 }, {
14251 .eraseblocks = { {512 * 1024, 1} },
14252 .block_erase = erase_chip_block_jedec,
14253 }
14254 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000014255 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000014256 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014258 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014259 },
14260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014261 {
14262 .vendor = "Winbond",
14263 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014264 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014265 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014266 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014267 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014268 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000014269 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014270 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014271 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014272 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014273 .block_erasers =
14274 {
14275 {
14276 .eraseblocks = { {4 * 1024, 128} },
14277 .block_erase = erase_block_jedec,
14278 }, {
14279 .eraseblocks = { {64 * 1024, 8} },
14280 .block_erase = erase_sector_jedec,
14281 }, {
14282 .eraseblocks = { {512 * 1024, 1} },
14283 .block_erase = erase_chip_block_jedec,
14284 }
14285 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014286 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014287 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014288 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014290 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014291 },
14292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014293 {
14294 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014295 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014296 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014297 .manufacture_id = WINBOND_ID,
14298 .model_id = WINBOND_W39V040B,
14299 .total_size = 512,
14300 .page_size = 64 * 1024,
14301 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014302 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014303 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014304 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014305 .block_erasers =
14306 {
14307 {
14308 .eraseblocks = { {64 * 1024, 8} },
14309 .block_erase = erase_sector_jedec,
14310 }, {
14311 .eraseblocks = { {512 * 1024, 1} },
14312 .block_erase = erase_chip_block_jedec,
14313 }
14314 },
14315 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014316 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014317 .write = write_jedec_1,
14318 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014319 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014320 },
14321
14322 {
14323 .vendor = "Winbond",
14324 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014325 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014326 .manufacture_id = WINBOND_ID,
14327 .model_id = WINBOND_W39V040C,
14328 .total_size = 512,
14329 .page_size = 64 * 1024,
14330 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000014331 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014332 .probe = probe_jedec,
14333 .probe_timing = 10,
14334 .block_erasers =
14335 {
14336 {
14337 .eraseblocks = { {64 * 1024, 8} },
14338 .block_erase = erase_sector_jedec,
14339 }, {
14340 .eraseblocks = { {512 * 1024, 1} },
14341 .block_erase = erase_chip_block_jedec,
14342 }
14343 },
14344 .printlock = printlock_w39v040fc,
14345 .write = write_jedec_1,
14346 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014347 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014348 },
14349
14350 {
14351 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014352 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014353 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014354 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014355 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014356 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014357 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014358 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000014359 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014360 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000014361 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014362 .block_erasers =
14363 {
14364 {
14365 .eraseblocks = { {64 * 1024, 16} },
14366 .block_erase = erase_sector_jedec,
14367 }, {
14368 .eraseblocks = { {1024 * 1024, 1} },
14369 .block_erase = erase_chip_block_jedec,
14370 }
14371 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014372 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000014373 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014374 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014375 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014376 },
14377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014378 {
14379 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014380 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014381 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014382 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014383 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014384 .total_size = 256,
14385 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014386 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014387 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014388 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014389 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014390 .block_erasers =
14391 {
14392 {
14393 .eraseblocks = {
14394 {128 * 1024, 1},
14395 {96 * 1024, 1},
14396 {8 * 1024, 2},
14397 {16 * 1024, 1},
14398 },
14399 .block_erase = erase_sector_jedec,
14400 }, {
14401 .eraseblocks = { {256 * 1024, 1} },
14402 .block_erase = erase_chip_block_jedec,
14403 }
14404 },
Sean Nelson35727f72010-01-28 23:55:12 +000014405 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014406 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014407 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014408 },
14409
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014410 {
14411 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014412 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014413 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014414 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014415 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014416 .total_size = 256,
14417 .page_size = 128,
14418 .feature_bits = FEATURE_EITHER_RESET,
14419 .tested = TEST_OK_PROBE,
14420 .probe = probe_jedec,
14421 .probe_timing = 10,
14422 .block_erasers =
14423 {
14424 {
14425 .eraseblocks = { {256 * 1024, 1} },
14426 .block_erase = erase_chip_block_jedec,
14427 }
14428 },
14429 .write = write_jedec_1,
14430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014431 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014432 },
14433
14434 {
14435 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014436 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014437 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014438 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014439 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014440 .total_size = 256,
14441 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014442 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014443 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014444 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014445 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014446 .block_erasers =
14447 {
14448 {
14449 .eraseblocks = {
14450 {64 * 1024, 3},
14451 {32 * 1024, 1},
14452 {8 * 1024, 2},
14453 {16 * 1024, 1},
14454 },
14455 .block_erase = erase_sector_jedec,
14456 }, {
14457 .eraseblocks = { {256 * 1024, 1} },
14458 .block_erase = erase_chip_block_jedec,
14459 }
14460 },
Sean Nelson35727f72010-01-28 23:55:12 +000014461 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014462 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014463 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014464 },
14465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014466 {
14467 .vendor = "Winbond",
14468 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014469 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014470 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014471 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014472 .total_size = 256,
14473 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014474 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014475 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014476 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014477 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014478 .block_erasers =
14479 {
14480 {
14481 .eraseblocks = {
14482 {64 * 1024, 3},
14483 {32 * 1024, 1},
14484 {8 * 1024, 2},
14485 {16 * 1024, 1},
14486 },
14487 .block_erase = erase_sector_jedec,
14488 }, {
14489 .eraseblocks = { {256 * 1024, 1} },
14490 .block_erase = erase_chip_block_jedec,
14491 }
14492 },
Sean Nelson35727f72010-01-28 23:55:12 +000014493 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014495 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014496 },
14497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014498 {
14499 .vendor = "Winbond",
14500 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014501 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014502 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014503 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014504 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014505 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014506 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014507 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014508 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014509 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014510 .block_erasers =
14511 {
14512 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014513 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014514 .block_erase = erase_sector_jedec,
14515 }, {
14516 .eraseblocks = { {1024 * 1024, 1} },
14517 .block_erase = erase_chip_block_jedec,
14518 }
14519 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014520 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014521 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014522 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014523 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014524 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014525 },
14526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014527 {
14528 .vendor = "Winbond",
14529 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014530 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014531 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014532 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014533 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014534 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014535 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014536 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014537 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014538 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014539 .block_erasers =
14540 {
14541 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014542 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014543 .block_erase = erase_sector_jedec,
14544 }, {
14545 .eraseblocks = { {512 * 1024, 1} },
14546 .block_erase = erase_chip_block_jedec,
14547 }
14548 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014549 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000014550 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014551 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014552 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014553 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014554
14555 {
14556 .vendor = "Unknown",
14557 .name = "SFDP-capable chip",
14558 .bustype = BUS_SPI,
14559 .manufacture_id = GENERIC_MANUF_ID,
14560 .model_id = SFDP_DEVICE_ID,
14561 /* We present our own "report this" text hence we do not
14562 * want the default "This flash part has status UNTESTED..."
14563 * text to be printed. */
14564 .tested = TEST_OK_PREW,
14565 .probe = probe_spi_sfdp,
14566 .unlock = spi_disable_blockprotect, /* is this safe? */
14567 .read = spi_chip_read,
14568 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000014569 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014570 /* Everything below will be set by the probing function. */
14571 .write = NULL,
14572 .total_size = 0,
14573 .page_size = 0,
14574 .feature_bits = 0,
14575 .block_erasers = {},
14576 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014578 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000014579 .vendor = "Programmer",
14580 .name = "Opaque flash chip",
14581 .bustype = BUS_PROG,
14582 .manufacture_id = PROGMANUF_ID,
14583 .model_id = PROGDEV_ID,
14584 .total_size = 0,
14585 .page_size = 256,
14586 /* probe is assumed to work, rest will be filled in by probe */
14587 .tested = TEST_OK_PROBE,
14588 .probe = probe_opaque,
14589 /* eraseblock sizes will be set by the probing function */
14590 .block_erasers =
14591 {
14592 {
14593 .block_erase = erase_opaque,
14594 }
14595 },
14596 .write = write_opaque,
14597 .read = read_opaque,
14598 },
14599
14600 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014601 .vendor = "AMIC",
14602 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014603 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014604 .manufacture_id = AMIC_ID,
14605 .model_id = GENERIC_DEVICE_ID,
14606 .total_size = 0,
14607 .page_size = 256,
14608 .tested = TEST_BAD_PREW,
14609 .probe = probe_spi_rdid4,
14610 .probe_timing = TIMING_ZERO,
14611 .write = NULL,
14612 .read = NULL,
14613 },
14614
14615 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014616 .vendor = "Atmel",
14617 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014618 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014619 .manufacture_id = ATMEL_ID,
14620 .model_id = GENERIC_DEVICE_ID,
14621 .total_size = 0,
14622 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014623 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014624 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014625 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014626 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014627 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014628 },
14629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014630 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000014631 .vendor = "Eon",
14632 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014633 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014634 .manufacture_id = EON_ID_NOPREFIX,
14635 .model_id = GENERIC_DEVICE_ID,
14636 .total_size = 0,
14637 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014638 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014640 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014641 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014642 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014643 },
14644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014645 {
14646 .vendor = "Macronix",
14647 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014648 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014649 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014650 .model_id = GENERIC_DEVICE_ID,
14651 .total_size = 0,
14652 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014653 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014654 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014655 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014656 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014657 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014658 },
14659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014660 {
14661 .vendor = "PMC",
14662 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014663 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014664 .manufacture_id = PMC_ID,
14665 .model_id = GENERIC_DEVICE_ID,
14666 .total_size = 0,
14667 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014668 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014670 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014671 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014672 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014673 },
14674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014675 {
14676 .vendor = "SST",
14677 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014678 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014679 .manufacture_id = SST_ID,
14680 .model_id = GENERIC_DEVICE_ID,
14681 .total_size = 0,
14682 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014683 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014684 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014685 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014686 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014687 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014688 },
14689
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014690 {
14691 .vendor = "ST",
14692 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014693 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014694 .manufacture_id = ST_ID,
14695 .model_id = GENERIC_DEVICE_ID,
14696 .total_size = 0,
14697 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014698 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014699 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014700 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014701 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014702 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014703 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000014704
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014705 {
Sean Nelson118e1d62009-11-24 02:08:11 +000014706 .vendor = "Sanyo",
14707 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014708 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000014709 .manufacture_id = SANYO_ID,
14710 .model_id = GENERIC_DEVICE_ID,
14711 .total_size = 0,
14712 .page_size = 256,
14713 .tested = TEST_BAD_PREW,
14714 .probe = probe_spi_rdid,
14715 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000014716 .write = NULL,
14717 .read = NULL,
14718 },
14719
14720 {
Stefan Taunereb582572012-09-21 12:52:50 +000014721 .vendor = "Winbond",
14722 .name = "unknown Winbond (ex Nexcom) SPI chip",
14723 .bustype = BUS_SPI,
14724 .manufacture_id = WINBOND_NEX_ID,
14725 .model_id = GENERIC_DEVICE_ID,
14726 .total_size = 0,
14727 .page_size = 256,
14728 .tested = TEST_BAD_PREW,
14729 .probe = probe_spi_rdid,
14730 .probe_timing = TIMING_ZERO,
14731 .write = NULL,
14732 .read = NULL,
14733 },
14734
14735 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014736 .vendor = "Generic",
14737 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014738 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014739 .manufacture_id = GENERIC_MANUF_ID,
14740 .model_id = GENERIC_DEVICE_ID,
14741 .total_size = 0,
14742 .page_size = 256,
14743 .tested = TEST_BAD_PREW,
14744 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014745 .write = NULL,
14746 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000014747
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014748 {
14749 .vendor = "Generic",
14750 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014751 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014752 .manufacture_id = GENERIC_MANUF_ID,
14753 .model_id = GENERIC_DEVICE_ID,
14754 .total_size = 0,
14755 .page_size = 256,
14756 .tested = TEST_BAD_PREW,
14757 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014758 .write = NULL,
14759 },
14760
Stefan Tauner96658be2014-05-26 22:05:31 +000014761 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000014762};
Stefan Tauner96658be2014-05-26 22:05:31 +000014763
14764const unsigned int flashchips_size = ARRAY_SIZE(flashchips);