blob: 0c3bb68026a997f57a6d2281313ec6591ccb45b1 [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,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
1398 .unlock = unlock_49fl00x,
1399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001712 .name = "AT25DL081",
1713 .bustype = BUS_SPI,
1714 .manufacture_id = ATMEL_ID,
1715 .model_id = ATMEL_AT25DF081,
1716 .total_size = 1024,
1717 .page_size = 256,
1718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 256} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 32} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 16} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {1 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {1 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
1743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1744 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1745 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1746 .voltage = {1650, 1950},
1747 },
1748
1749 {
1750 .vendor = "Atmel",
1751 .name = "AT25DL161",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25DL161,
1755 .total_size = 2048,
1756 .page_size = 256,
1757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1759 .tested = TEST_UNTESTED,
1760 .probe = probe_spi_rdid,
1761 .probe_timing = TIMING_ZERO,
1762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 512} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 64} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 32} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {2 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {2 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
1781 .printlock = spi_prettyprint_status_register_at25df_sec,
1782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1783 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1784 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1785 .voltage = {1650, 1950},
1786 },
1787
1788 {
1789 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001790 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001794 .total_size = 2048,
1795 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001796 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001798 .tested = TEST_UNTESTED,
1799 .probe = probe_spi_rdid,
1800 .probe_timing = TIMING_ZERO,
1801 .block_erasers =
1802 {
1803 {
1804 .eraseblocks = { {4 * 1024, 512} },
1805 .block_erase = spi_block_erase_20,
1806 }, {
1807 .eraseblocks = { {32 * 1024, 64} },
1808 .block_erase = spi_block_erase_52,
1809 }, {
1810 .eraseblocks = { {64 * 1024, 32} },
1811 .block_erase = spi_block_erase_d8,
1812 }, {
1813 .eraseblocks = { {2 * 1024 * 1024, 1} },
1814 .block_erase = spi_block_erase_60,
1815 }, {
1816 .eraseblocks = { {2 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_c7,
1818 }
1819 },
1820 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001821 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001822 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001824 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001825 },
1826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 {
1828 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001829 .name = "AT25F512",
1830 .bustype = BUS_SPI,
1831 .manufacture_id = ATMEL_ID,
1832 .model_id = ATMEL_AT25F512,
1833 .total_size = 64,
1834 .page_size = 256,
1835 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001836 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001837 .probe = probe_spi_at25f,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {32 * 1024, 2} },
1843 .block_erase = spi_block_erase_52,
1844 }, {
1845 .eraseblocks = { {64 * 1024, 1} },
1846 .block_erase = spi_block_erase_62,
1847 }
1848 },
1849 .printlock = spi_prettyprint_status_register_at25f,
1850 .unlock = spi_disable_blockprotect_at25f,
1851 .write = spi_chip_write_256,
1852 .read = spi_chip_read,
1853 .voltage = {2700, 3600},
1854 },
1855
1856 {
1857 .vendor = "Atmel",
1858 .name = "AT25F512A",
1859 .bustype = BUS_SPI,
1860 .manufacture_id = ATMEL_ID,
1861 .model_id = ATMEL_AT25F512A,
1862 .total_size = 64,
1863 .page_size = 128,
1864 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001865 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001866 .probe = probe_spi_at25f,
1867 .probe_timing = TIMING_ZERO,
1868 .block_erasers =
1869 {
1870 {
1871 .eraseblocks = { {32 * 1024, 2} },
1872 .block_erase = spi_block_erase_52,
1873 }, {
1874 .eraseblocks = { {64 * 1024, 1} },
1875 .block_erase = spi_block_erase_62,
1876 }
1877 },
1878 .printlock = spi_prettyprint_status_register_at25f512a,
1879 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1880 .unlock = spi_disable_blockprotect_at25f512a,
1881 .write = spi_chip_write_256,
1882 .read = spi_chip_read,
1883 .voltage = {2700, 3600},
1884 },
1885
1886 {
1887 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001888 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 64,
1893 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001894 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .tested = TEST_UNTESTED,
1897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001898 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001899 .block_erasers =
1900 {
1901 {
1902 .eraseblocks = { {4 * 1024, 16} },
1903 .block_erase = spi_block_erase_20,
1904 }, {
1905 .eraseblocks = { {32 * 1024, 2} },
1906 .block_erase = spi_block_erase_52,
1907 }, {
1908 .eraseblocks = { {32 * 1024, 2} },
1909 .block_erase = spi_block_erase_d8,
1910 }, {
1911 .eraseblocks = { {64 * 1024, 1} },
1912 .block_erase = spi_block_erase_60,
1913 }, {
1914 .eraseblocks = { {64 * 1024, 1} },
1915 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001916 }, {
1917 .eraseblocks = { {64 * 1024, 1} },
1918 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001919 }
1920 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001921 .printlock = spi_prettyprint_status_register_at25f512b,
1922 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001923 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001926 },
1927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 {
1929 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001930 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1931 * All other properties seem to be the same.*/
1932 .name = "AT25F1024(A)",
1933 .bustype = BUS_SPI,
1934 .manufacture_id = ATMEL_ID,
1935 .model_id = ATMEL_AT25F1024,
1936 .total_size = 128,
1937 .page_size = 256,
1938 .feature_bits = FEATURE_WRSR_WREN,
1939 .tested = TEST_OK_PREW,
1940 .probe = probe_spi_at25f,
1941 .probe_timing = TIMING_ZERO,
1942 .block_erasers =
1943 {
1944 {
1945 .eraseblocks = { {32 * 1024, 4} },
1946 .block_erase = spi_block_erase_52,
1947 }, {
1948 .eraseblocks = { {128 * 1024, 1} },
1949 .block_erase = spi_block_erase_62,
1950 }
1951 },
1952 .printlock = spi_prettyprint_status_register_at25f,
1953 .unlock = spi_disable_blockprotect_at25f,
1954 .write = spi_chip_write_256,
1955 .read = spi_chip_read,
1956 .voltage = {2700, 3600},
1957 },
1958
1959 {
1960 .vendor = "Atmel",
1961 .name = "AT25F2048",
1962 .bustype = BUS_SPI,
1963 .manufacture_id = ATMEL_ID,
1964 .model_id = ATMEL_AT25F2048,
1965 .total_size = 256,
1966 .page_size = 256,
1967 .feature_bits = FEATURE_WRSR_WREN,
1968 .tested = TEST_UNTESTED,
1969 .probe = probe_spi_at25f,
1970 .probe_timing = TIMING_ZERO,
1971 .block_erasers =
1972 {
1973 {
1974 .eraseblocks = { {64 * 1024, 4} },
1975 .block_erase = spi_block_erase_52,
1976 }, {
1977 .eraseblocks = { {256 * 1024, 1} },
1978 .block_erase = spi_block_erase_62,
1979 }
1980 },
1981 .printlock = spi_prettyprint_status_register_at25f,
1982 .unlock = spi_disable_blockprotect_at25f,
1983 .write = spi_chip_write_256,
1984 .read = spi_chip_read,
1985 .voltage = {2700, 3600},
1986 },
1987
1988 {
1989 .vendor = "Atmel",
1990 .name = "AT25F4096",
1991 .bustype = BUS_SPI,
1992 .manufacture_id = ATMEL_ID,
1993 .model_id = ATMEL_AT25F4096,
1994 .total_size = 512,
1995 .page_size = 256,
1996 .feature_bits = FEATURE_WRSR_WREN,
1997 .tested = TEST_UNTESTED,
1998 .probe = probe_spi_at25f,
1999 .probe_timing = TIMING_ZERO,
2000 .block_erasers =
2001 {
2002 {
2003 .eraseblocks = { {64 * 1024, 8} },
2004 .block_erase = spi_block_erase_52,
2005 }, {
2006 .eraseblocks = { {512 * 1024, 1} },
2007 .block_erase = spi_block_erase_62,
2008 }
2009 },
2010 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002011 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2012 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002013 .write = spi_chip_write_256,
2014 .read = spi_chip_read,
2015 .voltage = {2700, 3600},
2016 },
2017
2018 {
2019 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002020 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002023 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002024 .total_size = 128,
2025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002026 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002027 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002029 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002030 .block_erasers =
2031 {
2032 {
2033 .eraseblocks = { {4 * 1024, 32} },
2034 .block_erase = spi_block_erase_20,
2035 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002036 .eraseblocks = { {4 * 1024, 32} },
2037 .block_erase = spi_block_erase_d7,
2038 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002039 .eraseblocks = { {32 * 1024, 4} },
2040 .block_erase = spi_block_erase_52,
2041 }, {
2042 .eraseblocks = { {32 * 1024, 4} },
2043 .block_erase = spi_block_erase_d8,
2044 }, {
2045 .eraseblocks = { {128 * 1024, 1} },
2046 .block_erase = spi_block_erase_60,
2047 }, {
2048 .eraseblocks = { {128 * 1024, 1} },
2049 .block_erase = spi_block_erase_c7,
2050 }
2051 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002052 .printlock = spi_prettyprint_status_register_at25fs010,
2053 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002054 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002056 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002057 },
2058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 {
2060 .vendor = "Atmel",
2061 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002062 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002064 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .total_size = 512,
2066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002067 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .tested = TEST_UNTESTED,
2069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002070 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002071 .block_erasers =
2072 {
2073 {
2074 .eraseblocks = { {4 * 1024, 128} },
2075 .block_erase = spi_block_erase_20,
2076 }, {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {64 * 1024, 8} },
2081 .block_erase = spi_block_erase_d8,
2082 }, {
2083 .eraseblocks = { {512 * 1024, 1} },
2084 .block_erase = spi_block_erase_60,
2085 }, {
2086 .eraseblocks = { {512 * 1024, 1} },
2087 .block_erase = spi_block_erase_c7,
2088 }
2089 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002090 .printlock = spi_prettyprint_status_register_at25fs040,
2091 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002092 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002094 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002095 },
2096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 {
2098 .vendor = "Atmel",
2099 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 512,
2104 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002105 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002106 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002108 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002109 .block_erasers =
2110 {
2111 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002112 .eraseblocks = { {256, 2048} },
2113 .block_erase = spi_block_erase_81,
2114 }, {
2115 .eraseblocks = { {2 * 1024, 256} },
2116 .block_erase = spi_block_erase_50,
2117 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002121 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002122 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002123 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002124 .write = spi_chip_write_1,
2125 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002126 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002127 },
2128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 {
2130 .vendor = "Atmel",
2131 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002132 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002134 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .total_size = 1024,
2136 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002137 .feature_bits = FEATURE_WRSR_WREN,
2138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002140 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002141 .block_erasers =
2142 {
2143 {
2144 .eraseblocks = { {4 * 1024, 256} },
2145 .block_erase = spi_block_erase_20,
2146 }, {
2147 .eraseblocks = { {32 * 1024, 32} },
2148 .block_erase = spi_block_erase_52,
2149 }, {
2150 .eraseblocks = { {64 * 1024, 16} },
2151 .block_erase = spi_block_erase_d8,
2152 }, {
2153 .eraseblocks = { {1024 * 1024, 1} },
2154 .block_erase = spi_block_erase_60,
2155 }, {
2156 .eraseblocks = { {1024 * 1024, 1} },
2157 .block_erase = spi_block_erase_c7,
2158 }
2159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002160 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002161 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002162 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002165 },
2166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 {
2168 .vendor = "Atmel",
2169 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002172 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .total_size = 2048,
2174 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002178 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002179 .block_erasers =
2180 {
2181 {
2182 .eraseblocks = { {4 * 1024, 512} },
2183 .block_erase = spi_block_erase_20,
2184 }, {
2185 .eraseblocks = { {32 * 1024, 64} },
2186 .block_erase = spi_block_erase_52,
2187 }, {
2188 .eraseblocks = { {64 * 1024, 32} },
2189 .block_erase = spi_block_erase_d8,
2190 }, {
2191 .eraseblocks = { {2 * 1024 * 1024, 1} },
2192 .block_erase = spi_block_erase_60,
2193 }, {
2194 .eraseblocks = { {2 * 1024 * 1024, 1} },
2195 .block_erase = spi_block_erase_c7,
2196 }
2197 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002198 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002199 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002203 },
2204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 {
2206 .vendor = "Atmel",
2207 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002208 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002210 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 .total_size = 2048,
2212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002216 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002217 .block_erasers =
2218 {
2219 {
2220 .eraseblocks = { {4 * 1024, 512} },
2221 .block_erase = spi_block_erase_20,
2222 }, {
2223 .eraseblocks = { {32 * 1024, 64} },
2224 .block_erase = spi_block_erase_52,
2225 }, {
2226 .eraseblocks = { {64 * 1024, 32} },
2227 .block_erase = spi_block_erase_d8,
2228 }, {
2229 .eraseblocks = { {2 * 1024 * 1024, 1} },
2230 .block_erase = spi_block_erase_60,
2231 }, {
2232 .eraseblocks = { {2 * 1024 * 1024, 1} },
2233 .block_erase = spi_block_erase_c7,
2234 }
2235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002236 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002237 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002238 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002241 },
2242
2243 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 /*{
2245 .vendor = "Atmel",
2246 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002249 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002250 .total_size = 4096,
2251 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002252 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .tested = TEST_UNTESTED,
2254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002255 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002256 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002258 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002259 .read = spi_chip_read,
2260 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 {
2263 .vendor = "Atmel",
2264 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002267 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .total_size = 512,
2269 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002270 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002271 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002273 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002274 .block_erasers =
2275 {
2276 {
2277 .eraseblocks = { {4 * 1024, 128} },
2278 .block_erase = spi_block_erase_20,
2279 }, {
2280 .eraseblocks = { {32 * 1024, 16} },
2281 .block_erase = spi_block_erase_52,
2282 }, {
2283 .eraseblocks = { {64 * 1024, 8} },
2284 .block_erase = spi_block_erase_d8,
2285 }, {
2286 .eraseblocks = { {512 * 1024, 1} },
2287 .block_erase = spi_block_erase_60,
2288 }, {
2289 .eraseblocks = { {512 * 1024, 1} },
2290 .block_erase = spi_block_erase_c7,
2291 }
2292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 .write = NULL /* Incompatible Page write */,
2295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002297 },
2298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 {
2300 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002301 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002302 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002303 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002304 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002305 .total_size = 64,
2306 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002307 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002308 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002309 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002310 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002311 .block_erasers =
2312 {
2313 {
2314 .eraseblocks = { {64 * 1024, 1} },
2315 .block_erase = erase_chip_block_jedec,
2316 }
2317 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002318 .write = write_jedec,
2319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002320 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002321 },
2322
2323 {
2324 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002325 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002326 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002328 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002329 .total_size = 128,
2330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002332 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002333 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002334 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002335 .block_erasers =
2336 {
2337 {
2338 .eraseblocks = { {128 * 1024, 1} },
2339 .block_erase = erase_chip_block_jedec,
2340 }
2341 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002342 .write = write_jedec, /* FIXME */
2343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002344 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002345 },
2346
2347 {
2348 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002352 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .total_size = 256,
2354 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002355 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002357 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002358 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002359 .block_erasers =
2360 {
2361 {
2362 .eraseblocks = { {256 * 1024, 1} },
2363 .block_erase = erase_chip_block_jedec,
2364 }
2365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002369 },
2370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 {
2372 .vendor = "Atmel",
2373 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002379 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .tested = TEST_UNTESTED,
2381 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002382 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {512 * 1024, 1} },
2387 .block_erase = erase_chip_block_jedec,
2388 }
2389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002393 },
2394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 {
2396 .vendor = "Atmel",
2397 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002398 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002399 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002400 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002401 .total_size = 16896 /* No power of two sizes */,
2402 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002403 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002404 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2405 .feature_bits = FEATURE_OTP,
2406 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002408 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002409 .block_erasers =
2410 {
2411 {
2412 .eraseblocks = {
2413 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2414 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2415 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2416 },
2417 .block_erase = spi_erase_at45cs_sector,
2418 }
2419 },
2420 .printlock = spi_prettyprint_status_register_plain,
2421 .gran = write_gran_1056bytes,
2422 .write = spi_write_at45db,
2423 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002424 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002427 {
2428 .vendor = "Atmel",
2429 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002430 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002432 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002433 .total_size = 128 /* or 132, determined from status register */,
2434 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002435 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002436 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2437 .feature_bits = FEATURE_OTP,
2438 .tested = TEST_UNTESTED,
2439 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002440 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002441 .block_erasers =
2442 {
2443 {
2444 .eraseblocks = { {256, 512} },
2445 .block_erase = spi_erase_at45db_page,
2446 }, {
2447 .eraseblocks = { {8 * 256, 512/8} },
2448 .block_erase = spi_erase_at45db_block,
2449 }, {
2450 .eraseblocks = {
2451 {8 * 256, 1},
2452 {120 * 256, 1},
2453 {128 * 256, 3},
2454 },
2455 .block_erase = spi_erase_at45db_sector
2456 }, {
2457 .eraseblocks = { {128 * 1024, 1} },
2458 .block_erase = spi_erase_at45db_chip,
2459 }
2460 },
2461 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2462 .printlock = spi_prettyprint_status_register_at45db,
2463 /* granularity will be set by the probing function. */
2464 .write = spi_write_at45db,
2465 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002466 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002467 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 {
2470 .vendor = "Atmel",
2471 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002472 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002473 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002474 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002475 .total_size = 256 /* or 264, determined from status register */,
2476 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002477 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002478 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2479 .feature_bits = FEATURE_OTP,
2480 .tested = TEST_UNTESTED,
2481 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002482 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002483 .block_erasers =
2484 {
2485 {
2486 .eraseblocks = { {256, 1024} },
2487 .block_erase = spi_erase_at45db_page,
2488 }, {
2489 .eraseblocks = { {8 * 256, 1024/8} },
2490 .block_erase = spi_erase_at45db_block,
2491 }, {
2492 .eraseblocks = {
2493 {8 * 256, 1},
2494 {120 * 256, 1},
2495 {128 * 256, 7},
2496 },
2497 .block_erase = spi_erase_at45db_sector
2498 }, {
2499 .eraseblocks = { {256 * 1024, 1} },
2500 .block_erase = spi_erase_at45db_chip,
2501 }
2502 },
2503 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2504 .printlock = spi_prettyprint_status_register_at45db,
2505 /* granularity will be set by the probing function. */
2506 .write = spi_write_at45db,
2507 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002509 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002511 {
2512 .vendor = "Atmel",
2513 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002514 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002516 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 .total_size = 512 /* or 528, determined from status register */,
2518 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002519 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2521 .feature_bits = FEATURE_OTP,
2522 .tested = TEST_OK_PREW,
2523 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002524 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002525 .block_erasers =
2526 {
2527 {
2528 .eraseblocks = { {256, 2048} },
2529 .block_erase = spi_erase_at45db_page,
2530 }, {
2531 .eraseblocks = { {8 * 256, 2048/8} },
2532 .block_erase = spi_erase_at45db_block,
2533 }, {
2534 .eraseblocks = {
2535 {8 * 256, 1},
2536 {248 * 256, 1},
2537 {256 * 256, 7},
2538 },
2539 .block_erase = spi_erase_at45db_sector
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_erase_at45db_chip,
2543 }
2544 },
2545 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2546 .printlock = spi_prettyprint_status_register_at45db,
2547 /* granularity will be set by the probing function. */
2548 .write = spi_write_at45db,
2549 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2550 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002551 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 {
2554 .vendor = "Atmel",
2555 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002556 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002558 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 .total_size = 1024 /* or 1056, determined from status register */,
2560 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002561 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2563 .feature_bits = FEATURE_OTP,
2564 .tested = TEST_UNTESTED,
2565 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {256, 4096} },
2571 .block_erase = spi_erase_at45db_page,
2572 }, {
2573 .eraseblocks = { {8 * 256, 4096/8} },
2574 .block_erase = spi_erase_at45db_block,
2575 }, {
2576 .eraseblocks = {
2577 {8 * 256, 1},
2578 {248 * 256, 1},
2579 {256 * 256, 15},
2580 },
2581 .block_erase = spi_erase_at45db_sector
2582 }, {
2583 .eraseblocks = { {1024 * 1024, 1} },
2584 .block_erase = spi_erase_at45db_chip,
2585 }
2586 },
2587 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2588 .printlock = spi_prettyprint_status_register_at45db,
2589 /* granularity will be set by the probing function. */
2590 .write = spi_write_at45db,
2591 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002592 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002593 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 {
2596 .vendor = "Atmel",
2597 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 .total_size = 2048 /* or 2112, determined from status register */,
2602 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002603 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002604 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2605 .feature_bits = FEATURE_OTP,
2606 .tested = TEST_OK_PREW,
2607 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002608 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {512, 4096} },
2613 .block_erase = spi_erase_at45db_page,
2614 }, {
2615 .eraseblocks = { {8 * 512, 4096/8} },
2616 .block_erase = spi_erase_at45db_block,
2617 }, {
2618 .eraseblocks = {
2619 {8 * 512, 1},
2620 {248 * 512, 1},
2621 {256 * 512, 15},
2622 },
2623 .block_erase = spi_erase_at45db_sector
2624 }, {
2625 .eraseblocks = { {2048 * 1024, 1} },
2626 .block_erase = spi_erase_at45db_chip,
2627 }
2628 },
2629 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2630 .printlock = spi_prettyprint_status_register_at45db,
2631 /* granularity will be set by the probing function. */
2632 .write = spi_write_at45db,
2633 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002634 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002635 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002637 {
2638 .vendor = "Atmel",
2639 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002641 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002642 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002643 .total_size = 4224 /* No power of two sizes */,
2644 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002645 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002646 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2647 .feature_bits = FEATURE_OTP,
2648 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002650 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002651 .block_erasers =
2652 {
2653 {
2654 .eraseblocks = { {528, 8192} },
2655 .block_erase = spi_erase_at45db_page,
2656 }, {
2657 .eraseblocks = { {8 * 528, 8192/8} },
2658 .block_erase = spi_erase_at45db_block,
2659 }, /* Although the datasheets describes sectors (which can be write protected)
2660 * there seems to be no erase functions for them.
2661 {
2662 .eraseblocks = {
2663 {8 * 528, 1},
2664 {120 * 528, 1},
2665 {128 * 528, 63},
2666 },
2667 .block_erase = spi_erase_at45db_sector
2668 }, */ {
2669 .eraseblocks = { {4224 * 1024, 1} },
2670 .block_erase = spi_erase_at45db_chip,
2671 }
2672 },
2673 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2674 .gran = write_gran_528bytes,
2675 .write = spi_write_at45db,
2676 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002678 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 {
2681 .vendor = "Atmel",
2682 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002684 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002685 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002686 .total_size = 4096 /* or 4224, determined from status register */,
2687 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002688 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002689 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002690 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 .tested = TEST_UNTESTED,
2692 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002693 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .block_erasers =
2695 {
2696 {
2697 .eraseblocks = { {512, 8192} },
2698 .block_erase = spi_erase_at45db_page,
2699 }, {
2700 .eraseblocks = { {8 * 512, 8192/8} },
2701 .block_erase = spi_erase_at45db_block,
2702 }, {
2703 .eraseblocks = {
2704 {8 * 512, 1},
2705 {120 * 512, 1},
2706 {128 * 512, 63},
2707 },
2708 .block_erase = spi_erase_at45db_sector
2709 }, {
2710 .eraseblocks = { {4096 * 1024, 1} },
2711 .block_erase = spi_erase_at45db_chip,
2712 }
2713 },
2714 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2715 .printlock = spi_prettyprint_status_register_at45db,
2716 /* granularity will be set by the probing function. */
2717 .write = spi_write_at45db,
2718 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2719 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2720 },
2721
2722 {
2723 .vendor = "Atmel",
2724 .name = "AT45DB321E",
2725 .bustype = BUS_SPI,
2726 .manufacture_id = ATMEL_ID,
2727 .model_id = ATMEL_AT45DB321C,
2728 .total_size = 4096 /* or 4224, determined from status register */,
2729 .page_size = 512 /* or 528, determined from status register */,
2730 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2731 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2732 .feature_bits = FEATURE_OTP,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_at45db,
2735 .probe_timing = TIMING_ZERO,
2736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = { {512, 8192} },
2740 .block_erase = spi_erase_at45db_page,
2741 }, {
2742 .eraseblocks = { {8 * 512, 8192/8} },
2743 .block_erase = spi_erase_at45db_block,
2744 }, {
2745 .eraseblocks = {
2746 {8 * 512, 1},
2747 {120 * 512, 1},
2748 {128 * 512, 63},
2749 },
2750 .block_erase = spi_erase_at45db_sector
2751 }, {
2752 .eraseblocks = { {4096 * 1024, 1} },
2753 .block_erase = spi_erase_at45db_chip,
2754 }
2755 },
2756 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2757 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2758 /* granularity will be set by the probing function. */
2759 .write = spi_write_at45db,
2760 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2761 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002762 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 {
2765 .vendor = "Atmel",
2766 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 .total_size = 8192 /* or 8448, determined from status register */,
2771 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
2776 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = { {1024, 8192} },
2782 .block_erase = spi_erase_at45db_page,
2783 }, {
2784 .eraseblocks = { {8 * 1024, 8192/8} },
2785 .block_erase = spi_erase_at45db_block,
2786 }, {
2787 .eraseblocks = {
2788 {8 * 1024, 1},
2789 {248 * 1024, 1},
2790 {256 * 1024, 31},
2791 },
2792 .block_erase = spi_erase_at45db_sector
2793 }, {
2794 .eraseblocks = { {8192 * 1024, 1} },
2795 .block_erase = spi_erase_at45db_chip,
2796 }
2797 },
2798 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2799 .printlock = spi_prettyprint_status_register_at45db,
2800 /* granularity will be set by the probing function. */
2801 .write = spi_write_at45db,
2802 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002803 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002804 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 {
2807 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002808 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002809 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002810 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002811 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002812 .total_size = 64,
2813 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002814 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002815 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002816 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {64 * 1024, 1} },
2822 .block_erase = erase_chip_block_jedec,
2823 }
2824 },
Sean Nelson35727f72010-01-28 23:55:12 +00002825 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002827 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002828 },
2829
2830 {
2831 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002832 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002834 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002835 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002836 .total_size = 256,
2837 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002838 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002839 .tested = TEST_UNTESTED,
2840 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = {
2846 {16 * 1024, 1},
2847 {8 * 1024, 2},
2848 {96 * 1024, 1},
2849 {128 * 1024, 1},
2850 },
2851 .block_erase = erase_sector_jedec,
2852 }, {
2853 .eraseblocks = { {256 * 1024, 1} },
2854 .block_erase = erase_chip_block_jedec,
2855 }
2856 },
Sean Nelson35727f72010-01-28 23:55:12 +00002857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002859 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002860 },
2861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002862 {
2863 .vendor = "Atmel",
2864 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002865 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002866 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002867 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 .total_size = 256,
2869 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002870 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002871 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002872 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002874 .block_erasers =
2875 {
2876 {
2877 .eraseblocks = {
2878 {128 * 1024, 1},
2879 {96 * 1024, 1},
2880 {8 * 1024, 2},
2881 {16 * 1024, 1},
2882 },
2883 .block_erase = erase_sector_jedec,
2884 }, {
2885 .eraseblocks = { {256 * 1024, 1} },
2886 .block_erase = erase_chip_block_jedec,
2887 }
2888 },
Sean Nelson35727f72010-01-28 23:55:12 +00002889 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002891 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002892 },
2893
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002894 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002895 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002896 .name = "AT49(H)F010",
2897 .bustype = BUS_PARALLEL,
2898 .manufacture_id = ATMEL_ID,
2899 .model_id = ATMEL_AT49F010,
2900 .total_size = 128,
2901 .page_size = 0, /* unused */
2902 .feature_bits = FEATURE_EITHER_RESET,
2903 .tested = TEST_OK_PREW,
2904 .probe = probe_jedec,
2905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {128 * 1024, 1} },
2910 .block_erase = erase_chip_block_jedec,
2911 }
2912 },
2913 .printlock = printlock_at49f,
2914 .write = write_jedec_1,
2915 .read = read_memmapped,
2916 .voltage = {4500, 5500},
2917 },
2918
2919 {
2920 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002921 .name = "AT49F020",
2922 .bustype = BUS_PARALLEL,
2923 .manufacture_id = ATMEL_ID,
2924 .model_id = ATMEL_AT49F020,
2925 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002926 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002927 .feature_bits = FEATURE_EITHER_RESET,
2928 .tested = TEST_OK_PRE,
2929 .probe = probe_jedec,
2930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 /* Chip features an optional permanent write protection
2938 * of the first 8 kB. The erase function is the same as
2939 * above, but 00000H to 01FFFH will not be erased.
2940 * FIXME: add another eraser when partial erasers are
2941 * supported.
2942 */
2943 },
2944 .printlock = printlock_at49f,
2945 .write = write_jedec_1,
2946 .read = read_memmapped,
2947 .voltage = {4500, 5500},
2948 },
2949
2950 {
2951 .vendor = "Atmel",
2952 .name = "AT49F040",
2953 .bustype = BUS_PARALLEL,
2954 .manufacture_id = ATMEL_ID,
2955 .model_id = ATMEL_AT49F040,
2956 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002957 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002958 .feature_bits = FEATURE_EITHER_RESET,
2959 .tested = TEST_UNTESTED,
2960 .probe = probe_jedec,
2961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2962 .block_erasers =
2963 {
2964 {
2965 .eraseblocks = { {512 * 1024, 1} },
2966 .block_erase = erase_chip_block_jedec,
2967 }
2968 /* Chip features an optional permanent write protection
2969 * of the first 16 kB. The erase function is the same as
2970 * above, but 00000H to 03FFFH will not be erased.
2971 * FIXME: add another eraser when partial erasers are
2972 * supported.
2973 */
2974 },
2975 .printlock = printlock_at49f,
2976 .write = write_jedec_1,
2977 .read = read_memmapped,
2978 .voltage = {4500, 5500},
2979 },
2980
2981 {
2982 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002983 .name = "AT49F080",
2984 .bustype = BUS_PARALLEL,
2985 .manufacture_id = ATMEL_ID,
2986 .model_id = ATMEL_AT49F080,
2987 .total_size = 1024,
2988 .page_size = 0, /* unused */
2989 .feature_bits = FEATURE_EITHER_RESET,
2990 .tested = TEST_UNTESTED,
2991 .probe = probe_jedec,
2992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2993 .block_erasers =
2994 {
2995 {
2996 .eraseblocks = { {1024 * 1024, 1} },
2997 .block_erase = erase_chip_block_jedec,
2998 }
2999 /* Chip features an optional permanent write protection
3000 * of the first 16 kB. The erase function is the same as
3001 * above, but 00000H to 03FFFH will not be erased.
3002 * FIXME: add another eraser when partial erasers are
3003 * supported.
3004 */
3005 },
3006 .printlock = printlock_at49f,
3007 .write = write_jedec_1,
3008 .read = read_memmapped,
3009 .voltage = {4500, 5500},
3010 },
3011
3012 {
3013 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3014 .vendor = "Atmel",
3015 .name = "AT49F080T",
3016 .bustype = BUS_PARALLEL,
3017 .manufacture_id = ATMEL_ID,
3018 .model_id = ATMEL_AT49F080T,
3019 .total_size = 1024,
3020 .page_size = 0, /* unused */
3021 .feature_bits = FEATURE_EITHER_RESET,
3022 .tested = TEST_UNTESTED,
3023 .probe = probe_jedec,
3024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3025 .block_erasers =
3026 {
3027 {
3028 .eraseblocks = { {1024 * 1024, 1} },
3029 .block_erase = erase_chip_block_jedec,
3030 }
3031 /* Chip features an optional permanent write protection
3032 * of the first 16 kB. The erase function is the same as
3033 * above, but FC000H to FFFFFH will not be erased.
3034 * FIXME: add another eraser when partial erasers are
3035 * supported.
3036 */
3037 },
3038 .printlock = printlock_at49f,
3039 .write = write_jedec_1,
3040 .read = read_memmapped,
3041 .voltage = {4500, 5500},
3042 },
3043
3044 {
3045 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003046 .name = "AT49LH002",
3047 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3048 .manufacture_id = ATMEL_ID,
3049 .model_id = ATMEL_AT49LH002,
3050 .total_size = 256,
3051 .page_size = 0, /* unused */
3052 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
3053 .tested = TEST_UNTESTED,
3054 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
3055 .probe_timing = TIMING_FIXME,
3056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
3065 .block_erase = erase_block_82802ab,
3066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
3070 .block_erase = NULL, /* TODO: Implement. */
3071 },
3072 },
3073 .printlock = NULL, /* TODO */
3074 .unlock = NULL, /* unlock_82802ab() not correct(?) */
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
Andrew Morganca081462011-09-13 22:05:44 +00003081 .vendor = "Catalyst",
3082 .name = "CAT28F512",
3083 .bustype = BUS_PARALLEL,
3084 .manufacture_id = CATALYST_ID,
3085 .model_id = CATALYST_CAT28F512,
3086 .total_size = 64,
3087 .page_size = 0, /* unused */
3088 .feature_bits = 0,
3089 .tested = TEST_OK_PR,
3090 .probe = probe_jedec, /* FIXME! */
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = { {64 * 1024, 1} },
3096 .block_erase = NULL, /* TODO */
3097 },
3098 },
3099 .write = NULL, /* TODO */
3100 .read = read_memmapped,
3101 .voltage = {4500, 5500},
3102 },
3103
3104 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003105 .vendor = "Bright",
3106 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003107 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003108 .manufacture_id = BRIGHT_ID,
3109 .model_id = BRIGHT_BM29F040,
3110 .total_size = 512,
3111 .page_size = 64 * 1024,
3112 .feature_bits = FEATURE_EITHER_RESET,
3113 .tested = TEST_OK_PR,
3114 .probe = probe_jedec,
3115 .probe_timing = TIMING_ZERO,
3116 .block_erasers =
3117 {
3118 {
3119 .eraseblocks = { {64 * 1024, 8} },
3120 .block_erase = erase_sector_jedec,
3121 }, {
3122 .eraseblocks = { {512 * 1024, 1} },
3123 .block_erase = erase_chip_block_jedec,
3124 },
3125 },
3126 .write = write_jedec_1,
3127 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003128 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003129 },
3130
3131 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003132 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003133 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003134 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003135 .manufacture_id = ESMT_ID,
3136 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003137 .total_size = 256,
3138 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003139 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003140 .tested = TEST_UNTESTED,
3141 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003143 .block_erasers =
3144 {
3145 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003146 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003147 {128 * 1024, 1},
3148 {96 * 1024, 1},
3149 {8 * 1024, 2},
3150 {16 * 1024, 1},
3151 },
3152 .block_erase = erase_sector_jedec,
3153 }, {
3154 .eraseblocks = { {256 * 1024, 1} },
3155 .block_erase = erase_chip_block_jedec,
3156 }
3157 },
Sean Nelson35727f72010-01-28 23:55:12 +00003158 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003161 },
3162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003163 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003164 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003165 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003166 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003167 .manufacture_id = ESMT_ID,
3168 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003169 .total_size = 1024,
3170 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003171 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003172 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003173 .probe = probe_spi_rdid,
3174 .probe_timing = TIMING_ZERO,
3175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = { {4 * 1024, 256} },
3179 .block_erase = spi_block_erase_20,
3180 }, {
3181 .eraseblocks = { {64 * 1024, 16} },
3182 .block_erase = spi_block_erase_d8,
3183 }, {
3184 .eraseblocks = { {1024 * 1024, 1} },
3185 .block_erase = spi_block_erase_60,
3186 }, {
3187 .eraseblocks = { {1024 * 1024, 1} },
3188 .block_erase = spi_block_erase_c7,
3189 }
3190 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003192 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003193 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003194 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003195 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003196 },
3197
3198 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003199 .vendor = "ESMT",
3200 .name = "F25L32PA",
3201 .bustype = BUS_SPI,
3202 .manufacture_id = ESMT_ID,
3203 .model_id = ESMT_F25L32PA,
3204 .total_size = 4096,
3205 .page_size = 256,
3206 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3207 .tested = TEST_UNTESTED,
3208 .probe = probe_spi_rdid,
3209 .probe_timing = TIMING_ZERO,
3210 .block_erasers =
3211 {
3212 {
3213 .eraseblocks = { {4 * 1024, 1024} },
3214 .block_erase = spi_block_erase_20,
3215 }, {
3216 .eraseblocks = { {64 * 1024, 64} },
3217 .block_erase = spi_block_erase_d8,
3218 }, {
3219 .eraseblocks = { {4 * 1024 * 1024, 1} },
3220 .block_erase = spi_block_erase_60,
3221 }, {
3222 .eraseblocks = { {4 * 1024 * 1024, 1} },
3223 .block_erase = spi_block_erase_c7,
3224 }
3225 },
3226 .printlock = spi_prettyprint_status_register_bp2_bpl,
3227 .unlock = spi_disable_blockprotect,
3228 .write = spi_chip_write_256,
3229 .read = spi_chip_read,
3230 .voltage = {2700, 3600},
3231 },
3232
3233 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003234 .vendor = "Eon",
3235 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003236 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003237 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003238 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003239 .total_size = 64,
3240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003241 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003242 .tested = TEST_UNTESTED,
3243 .probe = probe_spi_rdid,
3244 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = {
3249 {4 * 1024, 2},
3250 {8 * 1024, 1},
3251 {16 * 1024, 1},
3252 {32 * 1024, 1},
3253 },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {64 * 1024, 1} },
3257 .block_erase = spi_block_erase_c7,
3258 }
3259 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003260 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003261 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003262 .write = spi_chip_write_256,
3263 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003264 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003265 },
3266
3267 {
3268 .vendor = "Eon",
3269 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003270 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003271 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003272 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003273 .total_size = 64,
3274 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003275 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003276 .tested = TEST_UNTESTED,
3277 .probe = probe_spi_rdid,
3278 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003279 .block_erasers =
3280 {
3281 {
3282 .eraseblocks = {
3283 {32 * 1024, 1},
3284 {16 * 1024, 1},
3285 {8 * 1024, 1},
3286 {4 * 1024, 2},
3287 },
3288 .block_erase = spi_block_erase_d8,
3289 }, {
3290 .eraseblocks = { {64 * 1024, 1} },
3291 .block_erase = spi_block_erase_c7,
3292 }
3293 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003294 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003295 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003296 .write = spi_chip_write_256,
3297 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003298 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003299 },
3300
3301 {
3302 .vendor = "Eon",
3303 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003304 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003305 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003306 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003307 .total_size = 128,
3308 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003309 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003310 .tested = TEST_UNTESTED,
3311 .probe = probe_spi_rdid,
3312 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003313 .block_erasers =
3314 {
3315 {
3316 .eraseblocks = {
3317 {4 * 1024, 2},
3318 {8 * 1024, 1},
3319 {16 * 1024, 1},
3320 {32 * 1024, 3},
3321 },
3322 .block_erase = spi_block_erase_d8,
3323 }, {
3324 .eraseblocks = { {128 * 1024, 1} },
3325 .block_erase = spi_block_erase_c7,
3326 }
3327 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003328 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003329 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003330 .write = spi_chip_write_256,
3331 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003332 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003333 },
3334
3335 {
3336 .vendor = "Eon",
3337 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003338 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003339 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003340 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003341 .total_size = 128,
3342 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003343 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003344 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .probe = probe_spi_rdid,
3346 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003347 .block_erasers =
3348 {
3349 {
3350 .eraseblocks = {
3351 {32 * 1024, 3},
3352 {16 * 1024, 1},
3353 {8 * 1024, 1},
3354 {4 * 1024, 2},
3355 },
3356 .block_erase = spi_block_erase_d8,
3357 }, {
3358 .eraseblocks = { {128 * 1024, 1} },
3359 .block_erase = spi_block_erase_c7,
3360 }
3361 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003362 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003363 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003364 .write = spi_chip_write_256,
3365 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003366 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003367 },
3368
3369 {
3370 .vendor = "Eon",
3371 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003372 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003373 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003374 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003375 .total_size = 256,
3376 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003377 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003378 .tested = TEST_UNTESTED,
3379 .probe = probe_spi_rdid,
3380 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003381 .block_erasers =
3382 {
3383 {
3384 .eraseblocks = {
3385 {4 * 1024, 2},
3386 {8 * 1024, 1},
3387 {16 * 1024, 1},
3388 {32 * 1024, 1},
3389 {64 * 1024, 3}
3390 },
3391 .block_erase = spi_block_erase_d8,
3392 }, {
3393 .eraseblocks = { {256 * 1024, 1} },
3394 .block_erase = spi_block_erase_c7,
3395 }
3396 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003397 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003398 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003399 .write = spi_chip_write_256,
3400 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003401 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003402 },
3403
3404 {
3405 .vendor = "Eon",
3406 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003407 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003408 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003409 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003410 .total_size = 256,
3411 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003412 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003413 .tested = TEST_UNTESTED,
3414 .probe = probe_spi_rdid,
3415 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003416 .block_erasers =
3417 {
3418 {
3419 .eraseblocks = {
3420 {64 * 1024, 3},
3421 {32 * 1024, 1},
3422 {16 * 1024, 1},
3423 {8 * 1024, 1},
3424 {4 * 1024, 2},
3425 },
3426 .block_erase = spi_block_erase_d8,
3427 }, {
3428 .eraseblocks = { {256 * 1024, 1} },
3429 .block_erase = spi_block_erase_c7,
3430 }
3431 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003432 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003433 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003434 .write = spi_chip_write_256,
3435 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003436 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003437 },
3438
3439 {
3440 .vendor = "Eon",
3441 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003442 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003443 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003444 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003445 .total_size = 512,
3446 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003447 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003448 .tested = TEST_UNTESTED,
3449 .probe = probe_spi_rdid,
3450 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003451 .block_erasers =
3452 {
3453 {
3454 .eraseblocks = {
3455 {4 * 1024, 2},
3456 {8 * 1024, 1},
3457 {16 * 1024, 1},
3458 {32 * 1024, 1},
3459 {64 * 1024, 7}
3460 },
3461 .block_erase = spi_block_erase_d8,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = spi_block_erase_c7,
3465 }
3466 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003467 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003468 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003469 .write = spi_chip_write_256,
3470 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003471 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003472 },
3473
3474 {
3475 .vendor = "Eon",
3476 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003477 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003478 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003479 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003480 .total_size = 512,
3481 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003482 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003483 .tested = TEST_UNTESTED,
3484 .probe = probe_spi_rdid,
3485 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003486 .block_erasers =
3487 {
3488 {
3489 .eraseblocks = {
3490 {64 * 1024, 7},
3491 {32 * 1024, 1},
3492 {16 * 1024, 1},
3493 {8 * 1024, 1},
3494 {4 * 1024, 2},
3495 },
3496 .block_erase = spi_block_erase_d8,
3497 }, {
3498 .eraseblocks = { {512 * 1024, 1} },
3499 .block_erase = spi_block_erase_c7,
3500 }
3501 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003502 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003503 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003504 .write = spi_chip_write_256,
3505 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003506 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003507 },
3508
3509 {
3510 .vendor = "Eon",
3511 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003512 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003513 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003514 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003515 .total_size = 1024,
3516 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003517 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003518 .tested = TEST_UNTESTED,
3519 .probe = probe_spi_rdid,
3520 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003521 .block_erasers =
3522 {
3523 {
3524 .eraseblocks = {
3525 {4 * 1024, 2},
3526 {8 * 1024, 1},
3527 {16 * 1024, 1},
3528 {32 * 1024, 1},
3529 {64 * 1024, 15}
3530 },
3531 .block_erase = spi_block_erase_d8,
3532 }, {
3533 .eraseblocks = { {1024 * 1024, 1} },
3534 .block_erase = spi_block_erase_c7,
3535 }
3536 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003537 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003538 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003539 .write = spi_chip_write_256,
3540 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003541 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003542 },
3543
3544 {
3545 .vendor = "Eon",
3546 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003547 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003548 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003549 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003550 .total_size = 1024,
3551 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003552 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003553 .tested = TEST_UNTESTED,
3554 .probe = probe_spi_rdid,
3555 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003556 .block_erasers =
3557 {
3558 {
3559 .eraseblocks = {
3560 {64 * 1024, 15},
3561 {32 * 1024, 1},
3562 {16 * 1024, 1},
3563 {8 * 1024, 1},
3564 {4 * 1024, 2},
3565 },
3566 .block_erase = spi_block_erase_d8,
3567 }, {
3568 .eraseblocks = { {1024 * 1024, 1} },
3569 .block_erase = spi_block_erase_c7,
3570 }
3571 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003572 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003573 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003574 .write = spi_chip_write_256,
3575 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003576 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003577 },
3578
3579 {
3580 .vendor = "Eon",
3581 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003582 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003583 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003584 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003585 .total_size = 2048,
3586 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003587 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003588 .tested = TEST_UNTESTED,
3589 .probe = probe_spi_rdid,
3590 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003591 .block_erasers =
3592 {
3593 {
3594 .eraseblocks = {
3595 {4 * 1024, 2},
3596 {8 * 1024, 1},
3597 {16 * 1024, 1},
3598 {32 * 1024, 1},
3599 {64 * 1024, 31},
3600 },
3601 .block_erase = spi_block_erase_d8,
3602 }, {
3603 .eraseblocks = { {2 * 1024 * 1024, 1} },
3604 .block_erase = spi_block_erase_c7,
3605 }
3606 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003608 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003609 .write = spi_chip_write_256,
3610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003611 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003612 },
3613
3614 {
3615 .vendor = "Eon",
3616 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003617 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003619 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .total_size = 2048,
3621 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003622 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003623 .tested = TEST_UNTESTED,
3624 .probe = probe_spi_rdid,
3625 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003626 .block_erasers =
3627 {
3628 {
3629 .eraseblocks = {
3630 {64 * 1024, 31},
3631 {32 * 1024, 1},
3632 {16 * 1024, 1},
3633 {8 * 1024, 1},
3634 {4 * 1024, 2},
3635 },
3636 .block_erase = spi_block_erase_d8,
3637 }, {
3638 .eraseblocks = { {2 * 1024 * 1024, 1} },
3639 .block_erase = spi_block_erase_c7,
3640 }
3641 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003642 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003643 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003644 .write = spi_chip_write_256,
3645 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003646 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003647 },
3648
3649 {
3650 .vendor = "Eon",
3651 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003652 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003653 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003654 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003655 .total_size = 4096,
3656 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003657 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003658 .tested = TEST_UNTESTED,
3659 .probe = probe_spi_rdid,
3660 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003661 .block_erasers =
3662 {
3663 {
3664 .eraseblocks = {
3665 {4 * 1024, 2},
3666 {8 * 1024, 1},
3667 {16 * 1024, 1},
3668 {32 * 1024, 1},
3669 {64 * 1024, 63},
3670 },
3671 .block_erase = spi_block_erase_d8,
3672 }, {
3673 .eraseblocks = { {4 * 1024 * 1024, 1} },
3674 .block_erase = spi_block_erase_c7,
3675 }
3676 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003677 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003678 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003679 .write = spi_chip_write_256,
3680 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003681 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003682 },
3683
3684 {
3685 .vendor = "Eon",
3686 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003687 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003689 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003690 .total_size = 4096,
3691 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003692 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003693 .tested = TEST_UNTESTED,
3694 .probe = probe_spi_rdid,
3695 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003696 .block_erasers =
3697 {
3698 {
3699 .eraseblocks = {
3700 {64 * 1024, 63},
3701 {32 * 1024, 1},
3702 {16 * 1024, 1},
3703 {8 * 1024, 1},
3704 {4 * 1024, 2},
3705 },
3706 .block_erase = spi_block_erase_d8,
3707 }, {
3708 .eraseblocks = { {4 * 1024 * 1024, 1} },
3709 .block_erase = spi_block_erase_c7,
3710 }
3711 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003712 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003713 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003714 .write = spi_chip_write_256,
3715 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003716 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003717 },
3718
3719 {
3720 .vendor = "Eon",
3721 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003722 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003723 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003724 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003725 .total_size = 8192,
3726 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003727 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003728 .tested = TEST_UNTESTED,
3729 .probe = probe_spi_rdid,
3730 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003731 .block_erasers =
3732 {
3733 {
3734 .eraseblocks = {
3735 {4 * 1024, 2},
3736 {8 * 1024, 1},
3737 {16 * 1024, 1},
3738 {32 * 1024, 1},
3739 {64 * 1024, 127},
3740 },
3741 .block_erase = spi_block_erase_d8,
3742 }, {
3743 .eraseblocks = { {8 * 1024 * 1024, 1} },
3744 .block_erase = spi_block_erase_c7,
3745 }
3746 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003748 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003749 .write = spi_chip_write_256,
3750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003751 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003752 },
3753
3754 {
3755 .vendor = "Eon",
3756 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003757 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003758 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003759 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003760 .total_size = 8192,
3761 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003762 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003763 .tested = TEST_UNTESTED,
3764 .probe = probe_spi_rdid,
3765 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003766 .block_erasers =
3767 {
3768 {
3769 .eraseblocks = {
3770 {64 * 1024, 127},
3771 {32 * 1024, 1},
3772 {16 * 1024, 1},
3773 {8 * 1024, 1},
3774 {4 * 1024, 2},
3775 },
3776 .block_erase = spi_block_erase_d8,
3777 }, {
3778 .eraseblocks = { {8 * 1024 * 1024, 1} },
3779 .block_erase = spi_block_erase_c7,
3780 }
3781 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003782 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003783 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003784 .write = spi_chip_write_256,
3785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003786 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003787 },
3788
3789 {
3790 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003791 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003792 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003793 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003794 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .total_size = 64,
3796 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003797 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003798 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003799 .probe = probe_spi_rdid,
3800 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003801 .block_erasers =
3802 {
3803 {
3804 .eraseblocks = { {4 * 1024, 16} },
3805 .block_erase = spi_block_erase_20,
3806 }, {
3807 .eraseblocks = { {32 * 1024, 2} },
3808 .block_erase = spi_block_erase_d8,
3809 }, {
3810 .eraseblocks = { {32 * 1024, 2} },
3811 .block_erase = spi_block_erase_52,
3812 }, {
3813 .eraseblocks = { {64 * 1024, 1} },
3814 .block_erase = spi_block_erase_60,
3815 }, {
3816 .eraseblocks = { {64 * 1024, 1} },
3817 .block_erase = spi_block_erase_c7,
3818 }
3819 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003820 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003821 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003822 .write = spi_chip_write_256,
3823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003824 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003825 },
3826
3827 {
3828 .vendor = "Eon",
3829 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003830 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003831 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003832 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003833 .total_size = 128,
3834 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003835 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003836 .tested = TEST_UNTESTED,
3837 .probe = probe_spi_rdid,
3838 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003839 .block_erasers =
3840 {
3841 {
3842 .eraseblocks = { {4 * 1024, 32} },
3843 .block_erase = spi_block_erase_20,
3844 }, {
3845 .eraseblocks = { {32 * 1024, 4} },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {32 * 1024, 4} },
3849 .block_erase = spi_block_erase_52,
3850 }, {
3851 .eraseblocks = { {128 * 1024, 1} },
3852 .block_erase = spi_block_erase_60,
3853 }, {
3854 .eraseblocks = { {128 * 1024, 1} },
3855 .block_erase = spi_block_erase_c7,
3856 }
3857 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003858 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003859 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003860 .write = spi_chip_write_256,
3861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003862 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 },
3864
3865 {
3866 .vendor = "Eon",
3867 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003868 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003869 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003870 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003871 .total_size = 256,
3872 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003873 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003874 .tested = TEST_UNTESTED,
3875 .probe = probe_spi_rdid,
3876 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003877 .block_erasers =
3878 {
3879 {
3880 .eraseblocks = { {4 * 1024, 64} },
3881 .block_erase = spi_block_erase_20,
3882 }, {
3883 .eraseblocks = { {64 * 1024, 4} },
3884 .block_erase = spi_block_erase_d8,
3885 }, {
3886 .eraseblocks = { {64 * 1024, 4} },
3887 .block_erase = spi_block_erase_52,
3888 }, {
3889 .eraseblocks = { {256 * 1024, 1} },
3890 .block_erase = spi_block_erase_60,
3891 }, {
3892 .eraseblocks = { {256 * 1024, 1} },
3893 .block_erase = spi_block_erase_c7,
3894 }
3895 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003896 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003897 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003898 .write = spi_chip_write_256,
3899 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003900 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003901 },
3902
3903 {
3904 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003905 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003906 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003908 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003909 .total_size = 512,
3910 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003911 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003912 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003913 .probe = probe_spi_rdid,
3914 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003915 .block_erasers =
3916 {
3917 {
Sean Nelson54596372010-01-09 05:30:14 +00003918 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003919 .block_erase = spi_block_erase_20,
3920 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003921 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003922 .block_erase = spi_block_erase_d8,
3923 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003924 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003925 .block_erase = spi_block_erase_60,
3926 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003927 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003928 .block_erase = spi_block_erase_c7,
3929 },
3930 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003931 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003932 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003933 .write = spi_chip_write_256,
3934 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003935 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003936 },
3937
3938 {
3939 .vendor = "Eon",
3940 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003941 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003942 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003943 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003944 .total_size = 1024,
3945 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003946 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003947 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003948 .probe = probe_spi_rdid,
3949 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003950 .block_erasers =
3951 {
3952 {
3953 .eraseblocks = { {4 * 1024, 256} },
3954 .block_erase = spi_block_erase_20,
3955 }, {
3956 .eraseblocks = { {64 * 1024, 16} },
3957 .block_erase = spi_block_erase_d8,
3958 }, {
3959 .eraseblocks = { {1024 * 1024, 1} },
3960 .block_erase = spi_block_erase_60,
3961 }, {
3962 .eraseblocks = { {1024 * 1024, 1} },
3963 .block_erase = spi_block_erase_c7,
3964 }
3965 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003966 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003967 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003968 .write = spi_chip_write_256,
3969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003970 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003971 },
3972
3973 {
3974 .vendor = "Eon",
3975 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003976 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003977 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003978 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003979 .total_size = 2048,
3980 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003981 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003982 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003983 .probe = probe_spi_rdid,
3984 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003985 .block_erasers =
3986 {
3987 {
3988 .eraseblocks = { {4 * 1024, 512} },
3989 .block_erase = spi_block_erase_20,
3990 }, {
3991 .eraseblocks = { {64 * 1024, 32} },
3992 .block_erase = spi_block_erase_d8,
3993 }, {
3994 .eraseblocks = { {2 * 1024 * 1024, 1} },
3995 .block_erase = spi_block_erase_60,
3996 }, {
3997 .eraseblocks = { {2 * 1024 * 1024, 1} },
3998 .block_erase = spi_block_erase_c7,
3999 }
4000 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004001 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004002 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004003 .write = spi_chip_write_256,
4004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004005 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004006 },
4007
4008 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004009 .vendor = "Eon",
4010 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004011 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004012 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004013 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004014 .total_size = 4096,
4015 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004016 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004017 .tested = TEST_UNTESTED,
4018 .probe = probe_spi_rdid,
4019 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004020 .block_erasers =
4021 {
4022 {
4023 .eraseblocks = { {4 * 1024, 1024} },
4024 .block_erase = spi_block_erase_20,
4025 }, {
4026 .eraseblocks = { {64 * 1024, 64} },
4027 .block_erase = spi_block_erase_d8,
4028 }, {
4029 .eraseblocks = { {4 * 1024 * 1024, 1} },
4030 .block_erase = spi_block_erase_60,
4031 }, {
4032 .eraseblocks = { {4 * 1024 * 1024, 1} },
4033 .block_erase = spi_block_erase_c7,
4034 }
4035 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004036 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004037 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004038 .write = spi_chip_write_256,
4039 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004040 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004041 },
4042
4043 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004044 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004045 .name = "EN25F64",
4046 .bustype = BUS_SPI,
4047 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004048 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004049 .total_size = 8192,
4050 .page_size = 256,
4051 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004052 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004053 .probe = probe_spi_rdid,
4054 .probe_timing = TIMING_ZERO,
4055 .block_erasers =
4056 {
4057 {
4058 .eraseblocks = { {4 * 1024, 2048} },
4059 .block_erase = spi_block_erase_20,
4060 }, {
4061 .eraseblocks = { {64 * 1024, 128} },
4062 .block_erase = spi_block_erase_d8,
4063 }, {
4064 .eraseblocks = { {8 * 1024 * 1024, 1} },
4065 .block_erase = spi_block_erase_60,
4066 }, {
4067 .eraseblocks = { {8 * 1024 * 1024, 1} },
4068 .block_erase = spi_block_erase_c7,
4069 }
4070 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004071 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004072 .unlock = spi_disable_blockprotect,
4073 .write = spi_chip_write_256,
4074 .read = spi_chip_read,
4075 .voltage = {2700, 3600},
4076 },
4077
4078 {
4079 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004080 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004081 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004082 .manufacture_id = EON_ID_NOPREFIX,
4083 .model_id = EON_EN25Q40,
4084 .total_size = 512,
4085 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004086 /* OTP: 256B total; enter 0x3A */
4087 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004088 .tested = TEST_UNTESTED,
4089 .probe = probe_spi_rdid,
4090 .probe_timing = TIMING_ZERO,
4091 .block_erasers =
4092 {
4093 {
4094 .eraseblocks = { {4 * 1024, 128} },
4095 .block_erase = spi_block_erase_20,
4096 }, {
4097 .eraseblocks = { {64 * 1024, 8} },
4098 .block_erase = spi_block_erase_d8,
4099 }, {
4100 .eraseblocks = { {512 * 1024, 1} },
4101 .block_erase = spi_block_erase_60,
4102 }, {
4103 .eraseblocks = { {512 * 1024, 1} },
4104 .block_erase = spi_block_erase_c7,
4105 }
4106 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004107 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004108 .unlock = spi_disable_blockprotect,
4109 .write = spi_chip_write_256,
4110 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004111 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004112 },
4113
4114 {
4115 .vendor = "Eon",
4116 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004117 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004118 .manufacture_id = EON_ID_NOPREFIX,
4119 .model_id = EON_EN25Q80,
4120 .total_size = 1024,
4121 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004122 /* OTP: 256B total; enter 0x3A */
4123 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004124 .tested = TEST_UNTESTED,
4125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 256} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 16} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {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 */
David Hendricks6d715302011-07-24 22:21:57 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004147 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004148 },
4149
4150 {
4151 /* Note: EN25D16 is an evil twin which shares the model ID
4152 but has different write protection capabilities */
4153 .vendor = "Eon",
4154 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004155 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004156 .manufacture_id = EON_ID_NOPREFIX,
4157 .model_id = EON_EN25Q16,
4158 .total_size = 2048,
4159 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004160 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4161 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004162 .tested = TEST_UNTESTED,
4163 .probe = probe_spi_rdid,
4164 .probe_timing = TIMING_ZERO,
4165 .block_erasers =
4166 {
4167 {
4168 .eraseblocks = { {4 * 1024, 512} },
4169 .block_erase = spi_block_erase_20,
4170 }, {
4171 .eraseblocks = { {64 * 1024, 32} },
4172 .block_erase = spi_block_erase_d8,
4173 }, {
4174 /* not supported by Q16 version */
4175 .eraseblocks = { {64 * 1024, 32} },
4176 .block_erase = spi_block_erase_52,
4177 }, {
4178 .eraseblocks = { {2 * 1024 * 1024, 1} },
4179 .block_erase = spi_block_erase_60,
4180 }, {
4181 .eraseblocks = { {2 * 1024 * 1024, 1} },
4182 .block_erase = spi_block_erase_c7,
4183 }
4184 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004185 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004186 .unlock = spi_disable_blockprotect,
4187 .write = spi_chip_write_256,
4188 .read = spi_chip_read,
4189 .voltage = {2700, 3600},
4190 },
4191
4192 {
4193 .vendor = "Eon",
4194 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004195 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .manufacture_id = EON_ID_NOPREFIX,
4197 .model_id = EON_EN25Q32,
4198 .total_size = 4096,
4199 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004200 /* OTP: 512B total; enter 0x3A */
4201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004202 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004203 .probe = probe_spi_rdid,
4204 .probe_timing = TIMING_ZERO,
4205 .block_erasers =
4206 {
4207 {
4208 .eraseblocks = { {4 * 1024, 1024} },
4209 .block_erase = spi_block_erase_20,
4210 }, {
4211 .eraseblocks = { {64 * 1024, 64} },
4212 .block_erase = spi_block_erase_d8,
4213 }, {
4214 .eraseblocks = { {4 * 1024 * 1024, 1} },
4215 .block_erase = spi_block_erase_60,
4216 }, {
4217 .eraseblocks = { {4 * 1024 * 1024, 1} },
4218 .block_erase = spi_block_erase_c7,
4219 }
4220 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004221 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004222 .unlock = spi_disable_blockprotect,
4223 .write = spi_chip_write_256,
4224 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004225 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004226 },
4227
4228 {
4229 .vendor = "Eon",
4230 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004231 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004232 .manufacture_id = EON_ID_NOPREFIX,
4233 .model_id = EON_EN25Q64,
4234 .total_size = 8192,
4235 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004236 /* OTP: 512B total; enter 0x3A */
4237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004238 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004239 .probe = probe_spi_rdid,
4240 .probe_timing = TIMING_ZERO,
4241 .block_erasers =
4242 {
4243 {
4244 .eraseblocks = { {4 * 1024, 2048} },
4245 .block_erase = spi_block_erase_20,
4246 }, {
4247 .eraseblocks = { {64 * 1024, 128} },
4248 .block_erase = spi_block_erase_d8,
4249 }, {
4250 .eraseblocks = { {8 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_60,
4252 }, {
4253 .eraseblocks = { {8 * 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,
Stefan Taunereb582572012-09-21 12:52:50 +00004261 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004262 },
4263
4264 {
4265 .vendor = "Eon",
4266 .name = "EN25Q128",
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_EN25Q128,
4270 .total_size = 16384,
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,
David Hendricks6d715302011-07-24 22:21:57 +00004274 .tested = TEST_UNTESTED,
4275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers =
4278 {
4279 {
4280 .eraseblocks = { {4 * 1024, 4096} },
4281 .block_erase = spi_block_erase_20,
4282 }, {
4283 .eraseblocks = { {64 * 1024, 256} },
4284 .block_erase = spi_block_erase_d8,
4285 }, {
4286 .eraseblocks = { {16 * 1024 * 1024, 1} },
4287 .block_erase = spi_block_erase_60,
4288 }, {
4289 .eraseblocks = { {16 * 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,
4297 },
4298
4299 {
4300 .vendor = "Eon",
4301 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004302 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004303 .manufacture_id = EON_ID_NOPREFIX,
4304 .model_id = EON_EN25QH16,
4305 .total_size = 2048,
4306 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004307 /* supports SFDP */
4308 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004309 /* QPI enable 0x38, disable 0xFF */
4310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004311 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004312 .probe = probe_spi_rdid,
4313 .probe_timing = TIMING_ZERO,
4314 .block_erasers =
4315 {
4316 {
4317 .eraseblocks = { {4 * 1024, 512} },
4318 .block_erase = spi_block_erase_20,
4319 }, {
4320 .eraseblocks = { {64 * 1024, 32} },
4321 .block_erase = spi_block_erase_d8,
4322 }, {
4323 .eraseblocks = { {1024 * 2048, 1} },
4324 .block_erase = spi_block_erase_60,
4325 }, {
4326 .eraseblocks = { {1024 * 2048, 1} },
4327 .block_erase = spi_block_erase_c7,
4328 }
4329 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004330 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004331 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004332 .write = spi_chip_write_256,
4333 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004334 .voltage = {2700, 3600},
4335 },
4336
4337 {
4338 .vendor = "Eon",
4339 .name = "EN25QH32",
4340 .bustype = BUS_SPI,
4341 .manufacture_id = EON_ID_NOPREFIX,
4342 .model_id = EON_EN25QH32,
4343 .total_size = 4096,
4344 .page_size = 256,
4345 /* supports SFDP */
4346 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004347 /* QPI enable 0x38, disable 0xFF */
4348 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004349 .tested = TEST_UNTESTED,
4350 .probe = probe_spi_rdid,
4351 .probe_timing = TIMING_ZERO,
4352 .block_erasers =
4353 {
4354 {
4355 .eraseblocks = { {4 * 1024, 1024} },
4356 .block_erase = spi_block_erase_20,
4357 }, {
4358 .eraseblocks = { {64 * 1024, 64} },
4359 .block_erase = spi_block_erase_d8,
4360 }, {
4361 .eraseblocks = { {1024 * 4096, 1} },
4362 .block_erase = spi_block_erase_60,
4363 }, {
4364 .eraseblocks = { {1024 * 4096, 1} },
4365 .block_erase = spi_block_erase_c7,
4366 }
4367 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004368 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004369 .unlock = spi_disable_blockprotect_bp3_srwd,
4370 .write = spi_chip_write_256,
4371 .read = spi_chip_read,
4372 .voltage = {2700, 3600},
4373 },
4374
4375 {
4376 .vendor = "Eon",
4377 .name = "EN25QH64",
4378 .bustype = BUS_SPI,
4379 .manufacture_id = EON_ID_NOPREFIX,
4380 .model_id = EON_EN25QH64,
4381 .total_size = 8192,
4382 .page_size = 256,
4383 /* supports SFDP */
4384 /* OTP: 512B total; enter 0x3A */
4385 /* QPI enable 0x38, disable 0xFF */
4386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004387 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004388 .probe = probe_spi_rdid,
4389 .probe_timing = TIMING_ZERO,
4390 .block_erasers = {
4391 {
4392 .eraseblocks = { {4 * 1024, 2048} },
4393 .block_erase = spi_block_erase_20,
4394 }, {
4395 .eraseblocks = { {64 * 1024, 128} },
4396 .block_erase = spi_block_erase_d8,
4397 }, {
4398 .eraseblocks = { { 8192 * 1024, 1} },
4399 .block_erase = spi_block_erase_60,
4400 }, {
4401 .eraseblocks = { { 8192 * 1024, 1} },
4402 .block_erase = spi_block_erase_c7,
4403 }
4404 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004405 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004406 .unlock = spi_disable_blockprotect_bp3_srwd,
4407 .write = spi_chip_write_256,
4408 .read = spi_chip_read,
4409 .voltage = {2700, 3600},
4410 },
4411
4412 {
4413 .vendor = "Eon",
4414 .name = "EN25QH128",
4415 .bustype = BUS_SPI,
4416 .manufacture_id = EON_ID_NOPREFIX,
4417 .model_id = EON_EN25QH128,
4418 .total_size = 16384,
4419 .page_size = 256,
4420 /* supports SFDP */
4421 /* OTP: 512B total; enter 0x3A */
4422 /* QPI enable 0x38, disable 0xFF */
4423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4424 .tested = TEST_UNTESTED,
4425 .probe = probe_spi_rdid,
4426 .probe_timing = TIMING_ZERO,
4427 .block_erasers = {
4428 {
4429 .eraseblocks = { {4 * 1024, 4096} },
4430 .block_erase = spi_block_erase_20,
4431 }, {
4432 .eraseblocks = { {64 * 1024, 256} },
4433 .block_erase = spi_block_erase_d8,
4434 }, {
4435 .eraseblocks = { { 16384 * 1024, 1} },
4436 .block_erase = spi_block_erase_60,
4437 }, {
4438 .eraseblocks = { { 16384 * 1024, 1} },
4439 .block_erase = spi_block_erase_c7,
4440 }
4441 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004442 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004443 .unlock = spi_disable_blockprotect_bp3_srwd,
4444 .write = spi_chip_write_256,
4445 .read = spi_chip_read,
4446 .voltage = {2700, 3600},
4447 },
4448
4449 {
4450 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004451 .name = "EN25S10",
4452 .bustype = BUS_SPI,
4453 .manufacture_id = EON_ID_NOPREFIX,
4454 .model_id = EON_EN25S10,
4455 .total_size = 128,
4456 .page_size = 256,
4457 /* OTP: 256B total; enter 0x3A */
4458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4459 .tested = TEST_UNTESTED,
4460 .probe = probe_spi_rdid,
4461 .probe_timing = TIMING_ZERO,
4462 .block_erasers = {
4463 {
4464 .eraseblocks = { {4 * 1024, 32} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {32 * 1024, 4} },
4468 .block_erase = spi_block_erase_52,
4469 }, {
4470 .eraseblocks = { {128 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { {128 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004477 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004478 .unlock = spi_disable_blockprotect,
4479 .write = spi_chip_write_256,
4480 .read = spi_chip_read,
4481 .voltage = {1650, 1950},
4482 },
4483
4484 {
4485 .vendor = "Eon",
4486 .name = "EN25S20",
4487 .bustype = BUS_SPI,
4488 .manufacture_id = EON_ID_NOPREFIX,
4489 .model_id = EON_EN25S20,
4490 .total_size = 256,
4491 .page_size = 256,
4492 /* OTP: 256B total; enter 0x3A */
4493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4494 .tested = TEST_UNTESTED,
4495 .probe = probe_spi_rdid,
4496 .probe_timing = TIMING_ZERO,
4497 .block_erasers = {
4498 {
4499 .eraseblocks = { {4 * 1024, 64} },
4500 .block_erase = spi_block_erase_20,
4501 }, {
4502 .eraseblocks = { {64 * 1024, 4} },
4503 .block_erase = spi_block_erase_d8,
4504 }, {
4505 .eraseblocks = { {256 * 1024, 1} },
4506 .block_erase = spi_block_erase_60,
4507 }, {
4508 .eraseblocks = { {256 * 1024, 1} },
4509 .block_erase = spi_block_erase_c7,
4510 }
4511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004512 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004513 .unlock = spi_disable_blockprotect,
4514 .write = spi_chip_write_256,
4515 .read = spi_chip_read,
4516 .voltage = {1650, 1950},
4517 },
4518
4519 {
4520 .vendor = "Eon",
4521 .name = "EN25S40",
4522 .bustype = BUS_SPI,
4523 .manufacture_id = EON_ID_NOPREFIX,
4524 .model_id = EON_EN25S40,
4525 .total_size = 512,
4526 .page_size = 256,
4527 /* OTP: 256B total; enter 0x3A */
4528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4529 .tested = TEST_UNTESTED,
4530 .probe = probe_spi_rdid,
4531 .probe_timing = TIMING_ZERO,
4532 .block_erasers = {
4533 {
4534 .eraseblocks = { {4 * 1024, 128} },
4535 .block_erase = spi_block_erase_20,
4536 }, {
4537 .eraseblocks = { {64 * 1024, 8} },
4538 .block_erase = spi_block_erase_d8,
4539 }, {
4540 .eraseblocks = { {512 * 1024, 1} },
4541 .block_erase = spi_block_erase_60,
4542 }, {
4543 .eraseblocks = { {512 * 1024, 1} },
4544 .block_erase = spi_block_erase_c7,
4545 }
4546 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004547 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004548 .unlock = spi_disable_blockprotect,
4549 .write = spi_chip_write_256,
4550 .read = spi_chip_read,
4551 .voltage = {1650, 1950},
4552 },
4553
4554 {
4555 .vendor = "Eon",
4556 .name = "EN25S80",
4557 .bustype = BUS_SPI,
4558 .manufacture_id = EON_ID_NOPREFIX,
4559 .model_id = EON_EN25S80,
4560 .total_size = 1024,
4561 .page_size = 256,
4562 /* OTP: 256B total; enter 0x3A */
4563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4564 .tested = TEST_UNTESTED,
4565 .probe = probe_spi_rdid,
4566 .probe_timing = TIMING_ZERO,
4567 .block_erasers = {
4568 {
4569 .eraseblocks = { {4 * 1024, 256} },
4570 .block_erase = spi_block_erase_20,
4571 }, {
4572 .eraseblocks = { {64 * 1024, 16} },
4573 .block_erase = spi_block_erase_d8,
4574 }, {
4575 .eraseblocks = { {1024 * 1024, 1} },
4576 .block_erase = spi_block_erase_60,
4577 }, {
4578 .eraseblocks = { {1024 * 1024, 1} },
4579 .block_erase = spi_block_erase_c7,
4580 }
4581 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004582 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004583 .unlock = spi_disable_blockprotect,
4584 .write = spi_chip_write_256,
4585 .read = spi_chip_read,
4586 .voltage = {1650, 1950},
4587 },
4588
4589 {
4590 .vendor = "Eon",
4591 .name = "EN25S16",
4592 .bustype = BUS_SPI,
4593 .manufacture_id = EON_ID_NOPREFIX,
4594 .model_id = EON_EN25S16,
4595 .total_size = 2048,
4596 .page_size = 256,
4597 /* OTP: 512B total; enter 0x3A */
4598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4599 .tested = TEST_UNTESTED,
4600 .probe = probe_spi_rdid,
4601 .probe_timing = TIMING_ZERO,
4602 .block_erasers = {
4603 {
4604 .eraseblocks = { {4 * 1024, 512} },
4605 .block_erase = spi_block_erase_20,
4606 }, {
4607 .eraseblocks = { {64 * 1024, 32} },
4608 .block_erase = spi_block_erase_52,
4609 }, {
4610 .eraseblocks = { {32 * 1024, 64} },
4611 .block_erase = spi_block_erase_d8,
4612 }, {
4613 .eraseblocks = { {2048 * 1024, 1} },
4614 .block_erase = spi_block_erase_60,
4615 }, {
4616 .eraseblocks = { {2048 * 1024, 1} },
4617 .block_erase = spi_block_erase_c7,
4618 }
4619 },
4620 .printlock = spi_prettyprint_status_register_en25s_wp,
4621 .unlock = spi_disable_blockprotect_bp3_srwd,
4622 .write = spi_chip_write_256,
4623 .read = spi_chip_read,
4624 .voltage = {1650, 1950},
4625 },
4626
4627 {
4628 .vendor = "Eon",
4629 .name = "EN25S32",
4630 .bustype = BUS_SPI,
4631 .manufacture_id = EON_ID_NOPREFIX,
4632 .model_id = EON_EN25S32,
4633 .total_size = 4096,
4634 .page_size = 256,
4635 /* OTP: 512B total; enter 0x3A */
4636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4637 .tested = TEST_UNTESTED,
4638 .probe = probe_spi_rdid,
4639 .probe_timing = TIMING_ZERO,
4640 .block_erasers = {
4641 {
4642 .eraseblocks = { {4 * 1024, 1024} },
4643 .block_erase = spi_block_erase_20,
4644 }, {
4645 .eraseblocks = { {32 * 1024, 128} },
4646 .block_erase = spi_block_erase_52,
4647 }, {
4648 .eraseblocks = { {64 * 1024, 64} },
4649 .block_erase = spi_block_erase_d8,
4650 }, {
4651 .eraseblocks = { {4096 * 1024, 1} },
4652 .block_erase = spi_block_erase_60,
4653 }, {
4654 .eraseblocks = { {4096 * 1024, 1} },
4655 .block_erase = spi_block_erase_c7,
4656 }
4657 },
4658 .printlock = spi_prettyprint_status_register_en25s_wp,
4659 .unlock = spi_disable_blockprotect_bp3_srwd,
4660 .write = spi_chip_write_256,
4661 .read = spi_chip_read,
4662 .voltage = {1650, 1950},
4663 },
4664
4665 {
4666 .vendor = "Eon",
4667 .name = "EN25S64",
4668 .bustype = BUS_SPI,
4669 .manufacture_id = EON_ID_NOPREFIX,
4670 .model_id = EON_EN25S64,
4671 .total_size = 8192,
4672 .page_size = 256,
4673 /* OTP: 512B total; enter 0x3A */
4674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4675 .tested = TEST_UNTESTED,
4676 .probe = probe_spi_rdid,
4677 .probe_timing = TIMING_ZERO,
4678 .block_erasers = {
4679 {
4680 .eraseblocks = { {4 * 1024, 2048} },
4681 .block_erase = spi_block_erase_20,
4682 }, {
4683 .eraseblocks = { {64 * 1024, 128} },
4684 .block_erase = spi_block_erase_d8,
4685 }, {
4686 .eraseblocks = { {8192 * 1024, 1} },
4687 .block_erase = spi_block_erase_60,
4688 }, {
4689 .eraseblocks = { {8192 * 1024, 1} },
4690 .block_erase = spi_block_erase_c7,
4691 }
4692 },
4693 .printlock = spi_prettyprint_status_register_en25s_wp,
4694 .unlock = spi_disable_blockprotect_bp3_srwd,
4695 .write = spi_chip_write_256,
4696 .read = spi_chip_read,
4697 .voltage = {1650, 1950},
4698 },
4699
4700 {
4701 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004702 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004703 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004704 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004705 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004706 .total_size = 128,
4707 .page_size = 128,
4708 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004709 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004710 .probe = probe_jedec,
4711 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4712 .block_erasers =
4713 {
4714 {
4715 .eraseblocks = { {16 * 1024, 8} },
4716 .block_erase = erase_sector_jedec,
4717 },
4718 {
4719 .eraseblocks = { {128 * 1024, 1} },
4720 .block_erase = erase_chip_block_jedec,
4721 },
4722 },
4723 .write = write_jedec_1,
4724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004725 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004726 },
4727
4728 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004729 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004730 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004731 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004732 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004733 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004734 .total_size = 256,
4735 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004736 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004737 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004740 .block_erasers =
4741 {
4742 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004743 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004744 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004745 {8 * 1024, 2},
4746 {32 * 1024, 1},
4747 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004748 },
4749 .block_erase = erase_sector_jedec,
4750 }, {
4751 .eraseblocks = { {256 * 1024, 1} },
4752 .block_erase = erase_chip_block_jedec,
4753 },
4754 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004755 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004757 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004758 },
4759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004760 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004761 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004762 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004763 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004764 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004765 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004766 .total_size = 256,
4767 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004768 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004769 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004770 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004771 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004772 .block_erasers =
4773 {
4774 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004775 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004776 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004777 {32 * 1024, 1},
4778 {8 * 1024, 2},
4779 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004780 },
4781 .block_erase = erase_sector_jedec,
4782 }, {
4783 .eraseblocks = { {256 * 1024, 1} },
4784 .block_erase = erase_chip_block_jedec,
4785 },
4786 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004787 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004788 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004789 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004790 },
4791
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004792 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004793 .vendor = "Eon",
4794 .name = "EN29LV640B",
4795 .bustype = BUS_PARALLEL,
4796 .manufacture_id = EON_ID,
4797 .model_id = EON_EN29LV640B,
4798 .total_size = 8192,
4799 .page_size = 8192,
4800 .feature_bits = 0,
4801 .tested = TEST_OK_PREW,
4802 .probe = probe_en29lv640b,
4803 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4804 .block_erasers =
4805 {
4806 {
4807 .eraseblocks = {
4808 {8 * 1024, 8},
4809 {64 * 1024, 127},
4810 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004811 .block_erase = erase_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004812 }, {
4813 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004814 .block_erase = erase_chip_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004815 },
4816 },
4817 .write = write_en29lv640b,
4818 .read = read_memmapped,
4819 .voltage = {2700, 3600},
4820 },
4821
4822 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004823 .vendor = "Fujitsu",
4824 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004825 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004826 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004827 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004828 .total_size = 512,
4829 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004830 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004831 .tested = TEST_UNTESTED,
4832 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004833 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004834 .block_erasers =
4835 {
4836 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004837 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004838 {16 * 1024, 1},
4839 {8 * 1024, 2},
4840 {32 * 1024, 1},
4841 {64 * 1024, 7},
4842 },
Sean Nelson35727f72010-01-28 23:55:12 +00004843 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004844 }, {
4845 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004846 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004847 },
4848 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004849 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004851 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004852 },
4853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004854 {
4855 .vendor = "Fujitsu",
4856 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004857 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004858 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004859 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .total_size = 512,
4861 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004863 .tested = TEST_UNTESTED,
4864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004865 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004866 .block_erasers =
4867 {
4868 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004869 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004870 {64 * 1024, 7},
4871 {32 * 1024, 1},
4872 {8 * 1024, 2},
4873 {16 * 1024, 1},
4874 },
Sean Nelson35727f72010-01-28 23:55:12 +00004875 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004876 }, {
4877 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004878 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004879 },
4880 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004881 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004883 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004884 },
4885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004886 {
Sean Nelson35727f72010-01-28 23:55:12 +00004887 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004888 .vendor = "Fujitsu",
4889 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004890 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004891 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004892 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004893 .total_size = 512,
4894 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004895 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004896 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004897 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004898 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004899 .block_erasers =
4900 {
4901 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004902 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004903 {16 * 1024, 1},
4904 {8 * 1024, 2},
4905 {32 * 1024, 1},
4906 {64 * 1024, 7},
4907 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004908 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004909 }, {
4910 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004911 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004912 },
4913 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004914 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004915 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004916 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004917 },
4918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004919 {
4920 .vendor = "Fujitsu",
4921 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004922 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004923 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004924 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004925 .total_size = 512,
4926 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004927 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004928 .tested = TEST_UNTESTED,
4929 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004930 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004931 .block_erasers =
4932 {
4933 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004934 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004935 {64 * 1024, 7},
4936 {32 * 1024, 1},
4937 {8 * 1024, 2},
4938 {16 * 1024, 1},
4939 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004940 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004941 }, {
4942 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004943 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004944 },
4945 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004946 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004947 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004948 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004949 },
4950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004951 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004952 .vendor = "Fujitsu",
4953 .name = "MBM29LV160BE",
4954 .bustype = BUS_PARALLEL,
4955 .manufacture_id = FUJITSU_ID,
4956 .model_id = FUJITSU_MBM29LV160BE,
4957 .total_size = 2 * 1024,
4958 .page_size = 0,
4959 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_m29f400bt,
4962 .probe_timing = TIMING_IGNORED,
4963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = {
4967 {16 * 1024, 1},
4968 {8 * 1024, 2},
4969 {32 * 1024, 1},
4970 {64 * 1024, 31},
4971 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004972 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004973 }, {
4974 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004975 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004976 },
4977 },
4978 .write = write_m29f400bt, /* Supports a fast mode too */
4979 .read = read_memmapped,
4980 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4981 },
4982
4983 {
4984 .vendor = "Fujitsu",
4985 .name = "MBM29LV160TE",
4986 .bustype = BUS_PARALLEL,
4987 .manufacture_id = FUJITSU_ID,
4988 .model_id = FUJITSU_MBM29LV160TE,
4989 .total_size = 2 * 1024,
4990 .page_size = 0,
4991 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4992 .tested = TEST_UNTESTED,
4993 .probe = probe_m29f400bt,
4994 .probe_timing = TIMING_IGNORED,
4995 .block_erasers =
4996 {
4997 {
4998 .eraseblocks = {
4999 {64 * 1024, 31},
5000 {32 * 1024, 1},
5001 {8 * 1024, 2},
5002 {16 * 1024, 1},
5003 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005004 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005005 }, {
5006 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005007 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005008 },
5009 },
5010 .write = write_m29f400bt, /* Supports a fast mode too */
5011 .read = read_memmapped,
5012 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5013 },
5014
5015 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005016 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005017 .name = "GD25LQ32",
5018 .bustype = BUS_SPI,
5019 .manufacture_id = GIGADEVICE_ID,
5020 .model_id = GIGADEVICE_GD25LQ32,
5021 .total_size = 4096,
5022 .page_size = 256,
5023 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5024 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5025 .tested = TEST_OK_PREW,
5026 .probe = probe_spi_rdid,
5027 .probe_timing = TIMING_ZERO,
5028 .block_erasers =
5029 {
5030 {
5031 .eraseblocks = { {4 * 1024, 1024} },
5032 .block_erase = spi_block_erase_20,
5033 }, {
5034 .eraseblocks = { {32 * 1024, 128} },
5035 .block_erase = spi_block_erase_52,
5036 }, {
5037 .eraseblocks = { {64 * 1024, 64} },
5038 .block_erase = spi_block_erase_d8,
5039 }, {
5040 .eraseblocks = { {4 * 1024 * 1024, 1} },
5041 .block_erase = spi_block_erase_60,
5042 }, {
5043 .eraseblocks = { {4 * 1024 * 1024, 1} },
5044 .block_erase = spi_block_erase_c7,
5045 }
5046 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005047 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005048 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5049 .write = spi_chip_write_256,
5050 .read = spi_chip_read,
5051 .voltage = {1700, 1950},
5052 },
5053
5054 {
5055 .vendor = "GigaDevice",
5056 .name = "GD25Q512",
5057 .bustype = BUS_SPI,
5058 .manufacture_id = GIGADEVICE_ID,
5059 .model_id = GIGADEVICE_GD25Q512,
5060 .total_size = 64,
5061 .page_size = 256,
5062 .feature_bits = FEATURE_WRSR_WREN,
5063 .tested = TEST_UNTESTED,
5064 .probe = probe_spi_rdid,
5065 .probe_timing = TIMING_ZERO,
5066 .block_erasers = {
5067 {
5068 .eraseblocks = { {4 * 1024, 16} },
5069 .block_erase = spi_block_erase_20,
5070 }, {
5071 .eraseblocks = { {32 * 1024, 2} },
5072 .block_erase = spi_block_erase_52,
5073 }, {
5074 .eraseblocks = { {64 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {64 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005081 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005082 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5083 .write = spi_chip_write_256,
5084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5085 .voltage = {2700, 3600},
5086 },
5087
5088 {
5089 .vendor = "GigaDevice",
5090 .name = "GD25Q10",
5091 .bustype = BUS_SPI,
5092 .manufacture_id = GIGADEVICE_ID,
5093 .model_id = GIGADEVICE_GD25Q10,
5094 .total_size = 128,
5095 .page_size = 256,
5096 .feature_bits = FEATURE_WRSR_WREN,
5097 .tested = TEST_UNTESTED,
5098 .probe = probe_spi_rdid,
5099 .probe_timing = TIMING_ZERO,
5100 .block_erasers = {
5101 {
5102 .eraseblocks = { {4 * 1024, 32} },
5103 .block_erase = spi_block_erase_20,
5104 }, {
5105 .eraseblocks = { {32 * 1024, 4} },
5106 .block_erase = spi_block_erase_52,
5107 }, {
5108 .eraseblocks = { {64 * 1024, 2} },
5109 .block_erase = spi_block_erase_d8,
5110 }, {
5111 .eraseblocks = { {128 * 1024, 1} },
5112 .block_erase = spi_block_erase_60,
5113 }, {
5114 .eraseblocks = { {128 * 1024, 1} },
5115 .block_erase = spi_block_erase_c7,
5116 }
5117 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005118 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005119 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5120 .write = spi_chip_write_256,
5121 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5122 .voltage = {2700, 3600},
5123 },
5124
5125 {
5126 .vendor = "GigaDevice",
5127 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005128 .bustype = BUS_SPI,
5129 .manufacture_id = GIGADEVICE_ID,
5130 .model_id = GIGADEVICE_GD25Q20,
5131 .total_size = 256,
5132 .page_size = 256,
5133 .feature_bits = FEATURE_WRSR_WREN,
5134 .tested = TEST_UNTESTED,
5135 .probe = probe_spi_rdid,
5136 .probe_timing = TIMING_ZERO,
5137 .block_erasers =
5138 {
5139 {
5140 .eraseblocks = { {4 * 1024, 64} },
5141 .block_erase = spi_block_erase_20,
5142 }, {
5143 .eraseblocks = { {32 * 1024, 8} },
5144 .block_erase = spi_block_erase_52,
5145 }, {
5146 .eraseblocks = { {64 * 1024, 4} },
5147 .block_erase = spi_block_erase_d8,
5148 }, {
5149 .eraseblocks = { {256 * 1024, 1} },
5150 .block_erase = spi_block_erase_60,
5151 }, {
5152 .eraseblocks = { {256 * 1024, 1} },
5153 .block_erase = spi_block_erase_c7,
5154 }
5155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005156 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005157 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005158 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005159 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005160 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 },
5162
5163 {
5164 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005165 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005166 .bustype = BUS_SPI,
5167 .manufacture_id = GIGADEVICE_ID,
5168 .model_id = GIGADEVICE_GD25Q40,
5169 .total_size = 512,
5170 .page_size = 256,
5171 .feature_bits = FEATURE_WRSR_WREN,
5172 .tested = TEST_UNTESTED,
5173 .probe = probe_spi_rdid,
5174 .probe_timing = TIMING_ZERO,
5175 .block_erasers =
5176 {
5177 {
5178 .eraseblocks = { {4 * 1024, 128} },
5179 .block_erase = spi_block_erase_20,
5180 }, {
5181 .eraseblocks = { {32 * 1024, 16} },
5182 .block_erase = spi_block_erase_52,
5183 }, {
5184 .eraseblocks = { {64 * 1024, 8} },
5185 .block_erase = spi_block_erase_d8,
5186 }, {
5187 .eraseblocks = { {512 * 1024, 1} },
5188 .block_erase = spi_block_erase_60,
5189 }, {
5190 .eraseblocks = { {512 * 1024, 1} },
5191 .block_erase = spi_block_erase_c7,
5192 }
5193 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005194 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005195 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005196 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005198 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005199 },
5200
5201 {
5202 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005203 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005204 .bustype = BUS_SPI,
5205 .manufacture_id = GIGADEVICE_ID,
5206 .model_id = GIGADEVICE_GD25Q80,
5207 .total_size = 1024,
5208 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005209 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5211 .tested = TEST_OK_PREW,
5212 .probe = probe_spi_rdid,
5213 .probe_timing = TIMING_ZERO,
5214 .block_erasers =
5215 {
5216 {
5217 .eraseblocks = { {4 * 1024, 256} },
5218 .block_erase = spi_block_erase_20,
5219 }, {
5220 .eraseblocks = { {32 * 1024, 32} },
5221 .block_erase = spi_block_erase_52,
5222 }, {
5223 .eraseblocks = { {64 * 1024, 16} },
5224 .block_erase = spi_block_erase_d8,
5225 }, {
5226 .eraseblocks = { {1024 * 1024, 1} },
5227 .block_erase = spi_block_erase_60,
5228 }, {
5229 .eraseblocks = { {1024 * 1024, 1} },
5230 .block_erase = spi_block_erase_c7,
5231 }
5232 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005233 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005234 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005235 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005236 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005237 .voltage = {2700, 3600},
5238 },
5239
5240 {
5241 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005242 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005243 .bustype = BUS_SPI,
5244 .manufacture_id = GIGADEVICE_ID,
5245 .model_id = GIGADEVICE_GD25Q16,
5246 .total_size = 2048,
5247 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005248 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5250 .tested = TEST_UNTESTED,
5251 .probe = probe_spi_rdid,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = { {4 * 1024, 512} },
5257 .block_erase = spi_block_erase_20,
5258 }, {
5259 .eraseblocks = { {32 * 1024, 64} },
5260 .block_erase = spi_block_erase_52,
5261 }, {
5262 .eraseblocks = { {64 * 1024, 32} },
5263 .block_erase = spi_block_erase_d8,
5264 }, {
5265 .eraseblocks = { {2 * 1024 * 1024, 1} },
5266 .block_erase = spi_block_erase_60,
5267 }, {
5268 .eraseblocks = { {2 * 1024 * 1024, 1} },
5269 .block_erase = spi_block_erase_c7,
5270 }
5271 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005272 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005273 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005274 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005276 .voltage = {2700, 3600},
5277 },
5278
5279 {
5280 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005281 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005282 .bustype = BUS_SPI,
5283 .manufacture_id = GIGADEVICE_ID,
5284 .model_id = GIGADEVICE_GD25Q32,
5285 .total_size = 4096,
5286 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005287 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005289 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005290 .probe = probe_spi_rdid,
5291 .probe_timing = TIMING_ZERO,
5292 .block_erasers =
5293 {
5294 {
5295 .eraseblocks = { {4 * 1024, 1024} },
5296 .block_erase = spi_block_erase_20,
5297 }, {
5298 .eraseblocks = { {32 * 1024, 128} },
5299 .block_erase = spi_block_erase_52,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 64} },
5302 .block_erase = spi_block_erase_d8,
5303 }, {
5304 .eraseblocks = { {4 * 1024 * 1024, 1} },
5305 .block_erase = spi_block_erase_60,
5306 }, {
5307 .eraseblocks = { {4 * 1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_c7,
5309 }
5310 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005311 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005312 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005313 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005314 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005315 .voltage = {2700, 3600},
5316 },
5317
5318 {
5319 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005320 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005321 .bustype = BUS_SPI,
5322 .manufacture_id = GIGADEVICE_ID,
5323 .model_id = GIGADEVICE_GD25Q64,
5324 .total_size = 8192,
5325 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005326 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005328 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005329 .probe = probe_spi_rdid,
5330 .probe_timing = TIMING_ZERO,
5331 .block_erasers =
5332 {
5333 {
5334 .eraseblocks = { {4 * 1024, 2048} },
5335 .block_erase = spi_block_erase_20,
5336 }, {
5337 .eraseblocks = { {32 * 1024, 256} },
5338 .block_erase = spi_block_erase_52,
5339 }, {
5340 .eraseblocks = { {64 * 1024, 128} },
5341 .block_erase = spi_block_erase_d8,
5342 }, {
5343 .eraseblocks = { {8 * 1024 * 1024, 1} },
5344 .block_erase = spi_block_erase_60,
5345 }, {
5346 .eraseblocks = { {8 * 1024 * 1024, 1} },
5347 .block_erase = spi_block_erase_c7,
5348 }
5349 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005350 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005351 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005352 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005353 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005354 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005355 },
5356
5357 {
5358 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005359 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005360 .bustype = BUS_SPI,
5361 .manufacture_id = GIGADEVICE_ID,
5362 .model_id = GIGADEVICE_GD25Q128,
5363 .total_size = 16384,
5364 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005365 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005366 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5367 .tested = TEST_UNTESTED,
5368 .probe = probe_spi_rdid,
5369 .probe_timing = TIMING_ZERO,
5370 .block_erasers =
5371 {
5372 {
5373 .eraseblocks = { {4 * 1024, 4096} },
5374 .block_erase = spi_block_erase_20,
5375 }, {
5376 .eraseblocks = { {32 * 1024, 512} },
5377 .block_erase = spi_block_erase_52,
5378 }, {
5379 .eraseblocks = { {64 * 1024, 256} },
5380 .block_erase = spi_block_erase_d8,
5381 }, {
5382 .eraseblocks = { {16 * 1024 * 1024, 1} },
5383 .block_erase = spi_block_erase_60,
5384 }, {
5385 .eraseblocks = { {16 * 1024 * 1024, 1} },
5386 .block_erase = spi_block_erase_c7,
5387 }
5388 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005389 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005390 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5391 .write = spi_chip_write_256,
5392 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5393 .voltage = {2700, 3600},
5394 },
5395
5396 {
5397 .vendor = "GigaDevice",
5398 .name = "GD25T80",
5399 .bustype = BUS_SPI,
5400 .manufacture_id = GIGADEVICE_ID,
5401 .model_id = GIGADEVICE_GD25T80,
5402 .total_size = 1024,
5403 .page_size = 256,
5404 /* OTP: 256B total; enter 0x3A */
5405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5406 .tested = TEST_UNTESTED,
5407 .probe = probe_spi_rdid,
5408 .probe_timing = TIMING_ZERO,
5409 .block_erasers = {
5410 {
5411 .eraseblocks = { {4 * 1024, 256} },
5412 .block_erase = spi_block_erase_20,
5413 }, {
5414 .eraseblocks = { {64 * 1024, 16} },
5415 .block_erase = spi_block_erase_52,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 16} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {1024 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {1024 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 }
5426 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005427 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005428 .unlock = spi_disable_blockprotect,
5429 .write = spi_chip_write_256,
5430 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005431 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005432 },
5433
5434 {
David Borgc96a8bd2010-06-21 16:12:22 +00005435 .vendor = "Hyundai",
5436 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005437 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005438 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005439 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005440 .total_size = 256,
5441 .page_size = 256 * 1024,
5442 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005443 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005444 .probe = probe_jedec,
5445 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5446 .block_erasers =
5447 {
5448 {
5449 .eraseblocks = {
5450 {64 * 1024, 3},
5451 {32 * 1024, 1},
5452 {8 * 1024, 2},
5453 {16 * 1024, 1},
5454 },
5455 .block_erase = erase_sector_jedec,
5456 }, {
5457 .eraseblocks = { {256 * 1024, 1} },
5458 .block_erase = erase_chip_block_jedec,
5459 },
5460 },
5461 .write = write_jedec_1,
5462 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005463 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005464 },
5465
5466 {
5467 .vendor = "Hyundai",
5468 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005469 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005470 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005471 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005472 .total_size = 256,
5473 .page_size = 256 * 1024,
5474 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5475 .tested = TEST_UNTESTED,
5476 .probe = probe_jedec,
5477 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5478 .block_erasers =
5479 {
5480 {
5481 .eraseblocks = {
5482 {16 * 1024, 1},
5483 {8 * 1024, 2},
5484 {32 * 1024, 1},
5485 {64 * 1024, 3},
5486 },
5487 .block_erase = erase_sector_jedec,
5488 }, {
5489 .eraseblocks = { {256 * 1024, 1} },
5490 .block_erase = erase_chip_block_jedec,
5491 },
5492 },
5493 .write = write_jedec_1,
5494 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005495 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005496 },
5497
5498 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005499 .vendor = "Hyundai",
5500 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005501 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005502 .manufacture_id = HYUNDAI_ID,
5503 .model_id = HYUNDAI_HY29F040A,
5504 .total_size = 512,
5505 .page_size = 64 * 1024,
5506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5507 .tested = TEST_UNTESTED,
5508 .probe = probe_jedec,
5509 .probe_timing = TIMING_ZERO,
5510 .block_erasers =
5511 {
5512 {
5513 .eraseblocks = { {64 * 1024, 8} },
5514 .block_erase = erase_sector_jedec,
5515 }, {
5516 .eraseblocks = { {512 * 1024, 1} },
5517 .block_erase = erase_chip_block_jedec,
5518 },
5519 },
5520 .write = write_jedec_1,
5521 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005522 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005523 },
5524
5525 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005526 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005527 .name = "25F160S33B8",
5528 .bustype = BUS_SPI,
5529 .manufacture_id = INTEL_ID,
5530 .model_id = INTEL_25F160S33B8,
5531 .total_size = 2048,
5532 .page_size = 256,
5533 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5534 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5535 .tested = TEST_UNTESTED,
5536 .probe = probe_spi_rdid,
5537 .probe_timing = TIMING_ZERO,
5538 .block_erasers =
5539 {
5540 {
5541 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5542 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5543 * have no effect on the memory contents, but sets a flag in the SR.
5544 .eraseblocks = {
5545 {8 * 1024, 8},
5546 {64 * 1024, 31} // inaccessible
5547 },
5548 .block_erase = spi_block_erase_40,
5549 }, { */
5550 .eraseblocks = { {64 * 1024, 32} },
5551 .block_erase = spi_block_erase_d8,
5552 }, {
5553 .eraseblocks = { {2 * 1024 * 1024, 1} },
5554 .block_erase = spi_block_erase_c7,
5555 }
5556 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005557 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5558 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005559 .write = spi_chip_write_256,
5560 .read = spi_chip_read, /* also fast read 0x0B */
5561 .voltage = {2700, 3600},
5562 },
5563
5564 {
5565 .vendor = "Intel",
5566 .name = "25F160S33T8",
5567 .bustype = BUS_SPI,
5568 .manufacture_id = INTEL_ID,
5569 .model_id = INTEL_25F160S33T8,
5570 .total_size = 2048,
5571 .page_size = 256,
5572 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5574 .tested = TEST_UNTESTED,
5575 .probe = probe_spi_rdid,
5576 .probe_timing = TIMING_ZERO,
5577 .block_erasers =
5578 {
5579 {
5580 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5581 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5582 * have no effect on the memory contents, but sets a flag in the SR.
5583 .eraseblocks = {
5584 {64 * 1024, 31}, // inaccessible
5585 {8 * 1024, 8}
5586 },
5587 .block_erase = spi_block_erase_40,
5588 }, { */
5589 .eraseblocks = { {64 * 1024, 32} },
5590 .block_erase = spi_block_erase_d8,
5591 }, {
5592 .eraseblocks = { {2 * 1024 * 1024, 1} },
5593 .block_erase = spi_block_erase_c7,
5594 }
5595 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005596 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5597 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005598 .write = spi_chip_write_256,
5599 .read = spi_chip_read, /* also fast read 0x0B */
5600 .voltage = {2700, 3600},
5601 },
5602
5603 {
5604 .vendor = "Intel",
5605 .name = "25F320S33B8",
5606 .bustype = BUS_SPI,
5607 .manufacture_id = INTEL_ID,
5608 .model_id = INTEL_25F320S33B8,
5609 .total_size = 4096,
5610 .page_size = 256,
5611 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5612 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5613 .tested = TEST_UNTESTED,
5614 .probe = probe_spi_rdid,
5615 .probe_timing = TIMING_ZERO,
5616 .block_erasers =
5617 {
5618 {
5619 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5620 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5621 * have no effect on the memory contents, but sets a flag in the SR.
5622 .eraseblocks = {
5623 {8 * 1024, 8},
5624 {64 * 1024, 63} // inaccessible
5625 },
5626 .block_erase = spi_block_erase_40,
5627 }, { */
5628 .eraseblocks = { {64 * 1024, 64} },
5629 .block_erase = spi_block_erase_d8,
5630 }, {
5631 .eraseblocks = { {4 * 1024 * 1024, 1} },
5632 .block_erase = spi_block_erase_c7,
5633 }
5634 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005635 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5636 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005637 .write = spi_chip_write_256,
5638 .read = spi_chip_read, /* also fast read 0x0B */
5639 .voltage = {2700, 3600},
5640 },
5641
5642 {
5643 .vendor = "Intel",
5644 .name = "25F320S33T8",
5645 .bustype = BUS_SPI,
5646 .manufacture_id = INTEL_ID,
5647 .model_id = INTEL_25F320S33T8,
5648 .total_size = 4096,
5649 .page_size = 256,
5650 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5652 .tested = TEST_UNTESTED,
5653 .probe = probe_spi_rdid,
5654 .probe_timing = TIMING_ZERO,
5655 .block_erasers =
5656 {
5657 {
5658 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5659 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5660 * have no effect on the memory contents, but sets a flag in the SR.
5661 .eraseblocks = {
5662 {64 * 1024, 63}, // inaccessible
5663 {8 * 1024, 8}
5664 },
5665 .block_erase = spi_block_erase_40,
5666 }, { */
5667 .eraseblocks = { {64 * 1024, 64} },
5668 .block_erase = spi_block_erase_d8,
5669 }, {
5670 .eraseblocks = { {4 * 1024 * 1024, 1} },
5671 .block_erase = spi_block_erase_c7,
5672 }
5673 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005674 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5675 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005676 .write = spi_chip_write_256,
5677 .read = spi_chip_read, /* also fast read 0x0B */
5678 .voltage = {2700, 3600},
5679 },
5680
5681 {
5682 .vendor = "Intel",
5683 .name = "25F640S33B8",
5684 .bustype = BUS_SPI,
5685 .manufacture_id = INTEL_ID,
5686 .model_id = INTEL_25F640S33B8,
5687 .total_size = 8192,
5688 .page_size = 256,
5689 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5691 .tested = TEST_UNTESTED,
5692 .probe = probe_spi_rdid,
5693 .probe_timing = TIMING_ZERO,
5694 .block_erasers =
5695 {
5696 {
5697 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5698 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5699 * have no effect on the memory contents, but sets a flag in the SR.
5700 .eraseblocks = {
5701 {8 * 1024, 8},
5702 {64 * 1024, 127} // inaccessible
5703 },
5704 .block_erase = spi_block_erase_40,
5705 }, { */
5706 .eraseblocks = { {64 * 1024, 128} },
5707 .block_erase = spi_block_erase_d8,
5708 }, {
5709 .eraseblocks = { {8 * 1024 * 1024, 1} },
5710 .block_erase = spi_block_erase_c7,
5711 }
5712 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005713 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5714 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005715 .write = spi_chip_write_256,
5716 .read = spi_chip_read, /* also fast read 0x0B */
5717 .voltage = {2700, 3600},
5718 },
5719
5720 {
5721 .vendor = "Intel",
5722 .name = "25F640S33T8",
5723 .bustype = BUS_SPI,
5724 .manufacture_id = INTEL_ID,
5725 .model_id = INTEL_25F640S33T8,
5726 .total_size = 8192,
5727 .page_size = 256,
5728 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5730 .tested = TEST_UNTESTED,
5731 .probe = probe_spi_rdid,
5732 .probe_timing = TIMING_ZERO,
5733 .block_erasers =
5734 {
5735 {
5736 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5737 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5738 * have no effect on the memory contents, but sets a flag in the SR.
5739 .eraseblocks = {
5740 {64 * 1024, 127}, // inaccessible
5741 {8 * 1024, 8}
5742 },
5743 .block_erase = spi_block_erase_40,
5744 }, { */
5745 .eraseblocks = { {64 * 1024, 128} },
5746 .block_erase = spi_block_erase_d8,
5747 }, {
5748 .eraseblocks = { {8 * 1024 * 1024, 1} },
5749 .block_erase = spi_block_erase_c7,
5750 }
5751 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005752 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5753 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005754 .write = spi_chip_write_256,
5755 .read = spi_chip_read, /* also fast read 0x0B */
5756 .voltage = {2700, 3600},
5757 },
5758
5759 {
5760 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005761 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005762 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005763 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005764 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005765 .total_size = 128,
5766 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005767 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005768 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005769 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005770 .block_erasers =
5771 {
5772 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005773 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005774 {8 * 1024, 1},
5775 {4 * 1024, 2},
5776 {112 * 1024, 1},
5777 },
Sean Nelson28accc22010-03-19 18:47:06 +00005778 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005779 },
5780 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005781 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005783 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005784 },
5785
5786 {
5787 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005788 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005789 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005790 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005791 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005792 .total_size = 128,
5793 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005794 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005795 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005796 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005797 .block_erasers =
5798 {
5799 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005800 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005801 {112 * 1024, 1},
5802 {4 * 1024, 2},
5803 {8 * 1024, 1},
5804 },
Sean Nelson28accc22010-03-19 18:47:06 +00005805 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005806 },
5807 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005808 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005809 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005810 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005811 },
5812
5813 {
5814 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005815 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005816 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005817 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005818 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005819 .total_size = 256,
5820 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005821 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005822 .probe = probe_82802ab,
5823 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5824 .block_erasers =
5825 {
5826 {
5827 .eraseblocks = {
5828 {128 * 1024, 1},
5829 {96 * 1024, 1},
5830 {8 * 1024, 2},
5831 {16 * 1024, 1},
5832 },
5833 .block_erase = erase_block_82802ab,
5834 },
5835 },
5836 .write = write_82802ab,
5837 .read = read_memmapped,
5838 },
5839
5840 {
5841 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005842 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005843 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005844 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005845 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005846 .total_size = 512,
5847 .page_size = 256,
5848 .tested = TEST_UNTESTED,
5849 .probe = probe_82802ab,
5850 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005851 .block_erasers =
5852 {
5853 {
5854 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005855 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005856 },
5857 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005858 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005859 .write = write_82802ab,
5860 .read = read_memmapped,
5861 },
5862
5863 {
5864 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005865 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005866 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005867 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005868 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005869 .total_size = 512,
5870 .page_size = 128 * 1024, /* maximal block size */
5871 .tested = TEST_UNTESTED,
5872 .probe = probe_82802ab,
5873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5874 .block_erasers =
5875 {
5876 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005877 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005878 {16 * 1024, 1},
5879 {8 * 1024, 2},
5880 {96 * 1024, 1},
5881 {128 * 1024, 3},
5882 },
5883 .block_erase = erase_block_82802ab,
5884 },
5885 },
5886 .write = write_82802ab,
5887 .read = read_memmapped,
5888 },
5889
5890 {
5891 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005892 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005893 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005894 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005895 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005896 .total_size = 512,
5897 .page_size = 128 * 1024, /* maximal block size */
5898 .tested = TEST_UNTESTED,
5899 .probe = probe_82802ab,
5900 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5901 .block_erasers =
5902 {
5903 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005904 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005905 {128 * 1024, 3},
5906 {96 * 1024, 1},
5907 {8 * 1024, 2},
5908 {16 * 1024, 1},
5909 },
5910 .block_erase = erase_block_82802ab,
5911 },
5912 },
5913 .write = write_82802ab,
5914 .read = read_memmapped,
5915 },
5916
5917 {
5918 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005919 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005920 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005921 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005922 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005923 .total_size = 512,
5924 .page_size = 128 * 1024, /* maximal block size */
5925 .feature_bits = FEATURE_ADDR_SHIFTED,
5926 .tested = TEST_UNTESTED,
5927 .probe = probe_82802ab,
5928 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5929 .block_erasers =
5930 {
5931 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005932 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005933 {16 * 1024, 1},
5934 {8 * 1024, 2},
5935 {96 * 1024, 1},
5936 {128 * 1024, 3},
5937 },
5938 .block_erase = erase_block_82802ab,
5939 },
5940 },
5941 .write = write_82802ab,
5942 .read = read_memmapped,
5943 },
5944
5945 {
5946 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005947 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005948 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005949 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005950 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005951 .total_size = 512,
5952 .page_size = 128 * 1024, /* maximal block size */
5953 .feature_bits = FEATURE_ADDR_SHIFTED,
5954 .tested = TEST_UNTESTED,
5955 .probe = probe_82802ab,
5956 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5957 .block_erasers =
5958 {
5959 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005960 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005961 {128 * 1024, 3},
5962 {96 * 1024, 1},
5963 {8 * 1024, 2},
5964 {16 * 1024, 1},
5965 },
5966 .block_erase = erase_block_82802ab,
5967 },
5968 },
5969 .write = write_82802ab,
5970 .read = read_memmapped,
5971 },
5972
5973 {
5974 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005975 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005976 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005977 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005978 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005979 .total_size = 512,
5980 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005981 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005982 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005983 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005984 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005985 .block_erasers =
5986 {
5987 {
5988 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005989 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005990 },
5991 },
Sean Nelson28accc22010-03-19 18:47:06 +00005992 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005993 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005995 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005996 },
5997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005998 {
5999 .vendor = "Intel",
6000 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006001 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006003 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006004 .total_size = 1024,
6005 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006006 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006007 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006009 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006010 .block_erasers =
6011 {
6012 {
6013 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006014 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006015 },
6016 },
Sean Nelson28accc22010-03-19 18:47:06 +00006017 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006018 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006020 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006021 },
6022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006023 {
6024 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006025 .name = "MX23L3254",
6026 .bustype = BUS_SPI,
6027 .manufacture_id = MACRONIX_ID,
6028 .model_id = MACRONIX_MX23L3254,
6029 .total_size = 4096,
6030 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006031 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006032 .probe = probe_spi_rdid,
6033 .probe_timing = TIMING_ZERO,
6034 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6035 .read = spi_chip_read, /* Fast read (0x0B) supported */
6036 .voltage = {3000, 3600},
6037 },
6038
6039 {
6040 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006041 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006042 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006043 .manufacture_id = MACRONIX_ID,
6044 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .total_size = 64,
6046 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006047 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006048 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006049 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006051 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006052 .block_erasers =
6053 {
6054 {
6055 .eraseblocks = { {4 * 1024, 16} },
6056 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006057 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006058 .eraseblocks = { {64 * 1024, 1} },
6059 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006060 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006061 .eraseblocks = { {64 * 1024, 1} },
6062 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006063 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006064 .eraseblocks = { {64 * 1024, 1} },
6065 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006066 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006067 .eraseblocks = { {64 * 1024, 1} },
6068 .block_erase = spi_block_erase_c7,
6069 },
6070 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006071 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006072 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006073 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006074 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6075 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006076 },
6077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006078 {
6079 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006080 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006081 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006082 .manufacture_id = MACRONIX_ID,
6083 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006084 .total_size = 128,
6085 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006086 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006087 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006088 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006089 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006090 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006091 .block_erasers =
6092 {
6093 {
6094 .eraseblocks = { {4 * 1024, 32} },
6095 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006096 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006097 .eraseblocks = { {64 * 1024, 2} },
6098 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006099 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006100 .eraseblocks = { {128 * 1024, 1} },
6101 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006102 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006103 .eraseblocks = { {128 * 1024, 1} },
6104 .block_erase = spi_block_erase_c7,
6105 },
6106 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006107 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006108 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006109 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006110 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006111 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006112 },
6113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006114 {
6115 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006116 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006117 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006118 .manufacture_id = MACRONIX_ID,
6119 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006120 .total_size = 256,
6121 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006122 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006123 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006125 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006126 .block_erasers =
6127 {
6128 {
6129 .eraseblocks = { {4 * 1024, 64} },
6130 .block_erase = spi_block_erase_20,
6131 }, {
6132 .eraseblocks = { {64 * 1024, 4} },
6133 .block_erase = spi_block_erase_52,
6134 }, {
6135 .eraseblocks = { {64 * 1024, 4} },
6136 .block_erase = spi_block_erase_d8,
6137 }, {
6138 .eraseblocks = { {256 * 1024, 1} },
6139 .block_erase = spi_block_erase_60,
6140 }, {
6141 .eraseblocks = { {256 * 1024, 1} },
6142 .block_erase = spi_block_erase_c7,
6143 },
6144 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006145 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006146 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006147 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006148 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006149 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006150 },
6151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006152 {
6153 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006154 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006155 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006156 .manufacture_id = MACRONIX_ID,
6157 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 .total_size = 512,
6159 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006160 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006163 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006164 .block_erasers =
6165 {
6166 {
6167 .eraseblocks = { {4 * 1024, 128} },
6168 .block_erase = spi_block_erase_20,
6169 }, {
6170 .eraseblocks = { {64 * 1024, 8} },
6171 .block_erase = spi_block_erase_52,
6172 }, {
6173 .eraseblocks = { {64 * 1024, 8} },
6174 .block_erase = spi_block_erase_d8,
6175 }, {
6176 .eraseblocks = { {512 * 1024, 1} },
6177 .block_erase = spi_block_erase_60,
6178 }, {
6179 .eraseblocks = { {512 * 1024, 1} },
6180 .block_erase = spi_block_erase_c7,
6181 },
6182 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006183 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006184 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006185 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006186 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006187 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006188 },
6189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 {
6191 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006192 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006193 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006194 .manufacture_id = MACRONIX_ID,
6195 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .total_size = 1024,
6197 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006198 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006199 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006200 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006201 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006202 .block_erasers =
6203 {
6204 {
6205 .eraseblocks = { {4 * 1024, 256} },
6206 .block_erase = spi_block_erase_20,
6207 }, {
6208 .eraseblocks = { {64 * 1024, 16} },
6209 .block_erase = spi_block_erase_52,
6210 }, {
6211 .eraseblocks = { {64 * 1024, 16} },
6212 .block_erase = spi_block_erase_d8,
6213 }, {
6214 .eraseblocks = { {1024 * 1024, 1} },
6215 .block_erase = spi_block_erase_60,
6216 }, {
6217 .eraseblocks = { {1024 * 1024, 1} },
6218 .block_erase = spi_block_erase_c7,
6219 },
6220 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006221 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006222 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006223 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006224 .read = spi_chip_read, /* Fast read (0x0B) supported */
6225 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006226 },
6227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006228 {
6229 .vendor = "Macronix",
6230 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006231 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006232 .manufacture_id = MACRONIX_ID,
6233 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006234 .total_size = 2048,
6235 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006236 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006238 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006239 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006240 .block_erasers =
6241 {
6242 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006243 .eraseblocks = { {64 * 1024, 32} },
6244 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006245 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006246 .eraseblocks = { {64 * 1024, 32} },
6247 .block_erase = spi_block_erase_d8,
6248 }, {
6249 .eraseblocks = { {2 * 1024 * 1024, 1} },
6250 .block_erase = spi_block_erase_60,
6251 }, {
6252 .eraseblocks = { {2 * 1024 * 1024, 1} },
6253 .block_erase = spi_block_erase_c7,
6254 },
6255 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006256 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006257 .unlock = spi_disable_blockprotect,
6258 .write = spi_chip_write_256,
6259 .read = spi_chip_read, /* Fast read (0x0B) supported */
6260 .voltage = {2700, 3600},
6261 },
6262
6263 {
6264 .vendor = "Macronix",
6265 .name = "MX25L1605A/MX25L1606E",
6266 .bustype = BUS_SPI,
6267 .manufacture_id = MACRONIX_ID,
6268 .model_id = MACRONIX_MX25L1605,
6269 .total_size = 2048,
6270 .page_size = 256,
6271 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6272 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6273 .tested = TEST_OK_PREW,
6274 .probe = probe_spi_rdid,
6275 .probe_timing = TIMING_ZERO,
6276 .block_erasers =
6277 {
6278 {
6279 .eraseblocks = { {4 * 1024, 512} },
6280 .block_erase = spi_block_erase_20,
6281 }, {
6282 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006283 .block_erase = spi_block_erase_52,
6284 }, {
6285 .eraseblocks = { {64 * 1024, 32} },
6286 .block_erase = spi_block_erase_d8,
6287 }, {
6288 .eraseblocks = { {2 * 1024 * 1024, 1} },
6289 .block_erase = spi_block_erase_60,
6290 }, {
6291 .eraseblocks = { {2 * 1024 * 1024, 1} },
6292 .block_erase = spi_block_erase_c7,
6293 },
6294 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006295 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006296 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006297 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .read = spi_chip_read, /* Fast read (0x0B) supported */
6299 .voltage = {2700, 3600},
6300 },
6301
6302 {
6303 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006304 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006305 .bustype = BUS_SPI,
6306 .manufacture_id = MACRONIX_ID,
6307 .model_id = MACRONIX_MX25L1605,
6308 .total_size = 2048,
6309 .page_size = 256,
6310 .feature_bits = FEATURE_WRSR_WREN,
6311 .tested = TEST_OK_PREW,
6312 .probe = probe_spi_rdid,
6313 .probe_timing = TIMING_ZERO,
6314 .block_erasers =
6315 {
6316 {
6317 .eraseblocks = { {4 * 1024, 512} },
6318 .block_erase = spi_block_erase_20,
6319 }, {
6320 .eraseblocks = { {64 * 1024, 32} },
6321 .block_erase = spi_block_erase_d8,
6322 }, {
6323 .eraseblocks = { {2 * 1024 * 1024, 1} },
6324 .block_erase = spi_block_erase_60,
6325 }, {
6326 .eraseblocks = { {2 * 1024 * 1024, 1} },
6327 .block_erase = spi_block_erase_c7,
6328 },
6329 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006330 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006331 .unlock = spi_disable_blockprotect,
6332 .write = spi_chip_write_256,
6333 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006334 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006335 },
6336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006337 {
6338 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006339 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006340 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006341 .manufacture_id = MACRONIX_ID,
6342 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006343 .total_size = 2048,
6344 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006345 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6346 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006347 .tested = TEST_UNTESTED,
6348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006349 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006350 .block_erasers =
6351 {
6352 {
6353 .eraseblocks = { {4 * 1024, 512} },
6354 .block_erase = spi_block_erase_20,
6355 }, {
6356 .eraseblocks = { {64 * 1024, 32} },
6357 .block_erase = spi_block_erase_d8,
6358 }, {
6359 .eraseblocks = { {2 * 1024 * 1024, 1} },
6360 .block_erase = spi_block_erase_60,
6361 }, {
6362 .eraseblocks = { {2 * 1024 * 1024, 1} },
6363 .block_erase = spi_block_erase_c7,
6364 }
6365 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006366 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006368 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006369 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006370 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006371 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006372
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006373 {
6374 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006375 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006376 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006377 .manufacture_id = MACRONIX_ID,
6378 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006379 .total_size = 2048,
6380 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006381 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006383 .tested = TEST_UNTESTED,
6384 .probe = probe_spi_rdid,
6385 .probe_timing = TIMING_ZERO,
6386 .block_erasers =
6387 {
6388 {
6389 .eraseblocks = { {4 * 1024, 512} },
6390 .block_erase = spi_block_erase_20,
6391 }, {
6392 .eraseblocks = { {64 * 1024, 32} },
6393 .block_erase = spi_block_erase_d8,
6394 }, {
6395 .eraseblocks = { {2 * 1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_60,
6397 }, {
6398 .eraseblocks = { {2 * 1024 * 1024, 1} },
6399 .block_erase = spi_block_erase_c7,
6400 }
6401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006403 .unlock = spi_disable_blockprotect,
6404 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006406 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006407 },
6408
6409 {
6410 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006411 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006412 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006413 .manufacture_id = MACRONIX_ID,
6414 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006415 .total_size = 4096,
6416 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006417 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006420 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006421 .block_erasers =
6422 {
6423 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006424 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006425 .block_erase = spi_block_erase_20,
6426 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006427 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006428 .block_erase = spi_block_erase_d8,
6429 }, {
6430 .eraseblocks = { {4 * 1024 * 1024, 1} },
6431 .block_erase = spi_block_erase_60,
6432 }, {
6433 .eraseblocks = { {4 * 1024 * 1024, 1} },
6434 .block_erase = spi_block_erase_c7,
6435 },
6436 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006437 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006438 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006439 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006440 .read = spi_chip_read, /* Fast read (0x0B) supported */
6441 .voltage = {2700, 3600},
6442 },
6443
6444 {
6445 .vendor = "Macronix",
6446 .name = "MX25L3205D/MX25L3208D",
6447 .bustype = BUS_SPI,
6448 .manufacture_id = MACRONIX_ID,
6449 .model_id = MACRONIX_MX25L3205,
6450 .total_size = 4096,
6451 .page_size = 256,
6452 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6454 .tested = TEST_OK_PREW,
6455 .probe = probe_spi_rdid,
6456 .probe_timing = TIMING_ZERO,
6457 .block_erasers =
6458 {
6459 {
6460 .eraseblocks = { {4 * 1024, 1024} },
6461 .block_erase = spi_block_erase_20,
6462 }, {
6463 .eraseblocks = { {64 * 1024, 64} },
6464 .block_erase = spi_block_erase_d8,
6465 }, {
6466 .eraseblocks = { {4 * 1024 * 1024, 1} },
6467 .block_erase = spi_block_erase_60,
6468 }, {
6469 .eraseblocks = { {4 * 1024 * 1024, 1} },
6470 .block_erase = spi_block_erase_c7,
6471 },
6472 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006473 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006474 .unlock = spi_disable_blockprotect,
6475 .write = spi_chip_write_256,
6476 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6477 .voltage = {2700, 3600},
6478 },
6479
6480 {
6481 .vendor = "Macronix",
6482 .name = "MX25L3206E",
6483 .bustype = BUS_SPI,
6484 .manufacture_id = MACRONIX_ID,
6485 .model_id = MACRONIX_MX25L3205,
6486 .total_size = 4096,
6487 .page_size = 256,
6488 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6490 .tested = TEST_OK_PREW,
6491 .probe = probe_spi_rdid,
6492 .probe_timing = TIMING_ZERO,
6493 .block_erasers =
6494 {
6495 {
6496 .eraseblocks = { {4 * 1024, 1024} },
6497 .block_erase = spi_block_erase_20,
6498 }, {
6499 .eraseblocks = { {64 * 1024, 64} },
6500 .block_erase = spi_block_erase_d8,
6501 }, {
6502 .eraseblocks = { {64 * 1024, 64} },
6503 .block_erase = spi_block_erase_52,
6504 }, {
6505 .eraseblocks = { {4 * 1024 * 1024, 1} },
6506 .block_erase = spi_block_erase_60,
6507 }, {
6508 .eraseblocks = { {4 * 1024 * 1024, 1} },
6509 .block_erase = spi_block_erase_c7,
6510 },
6511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006512 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00006513 .unlock = spi_disable_blockprotect,
6514 .write = spi_chip_write_256,
6515 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006516 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006517 },
6518
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006519 {
6520 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006521 .name = "MX25L3273E",
6522 .bustype = BUS_SPI,
6523 .manufacture_id = MACRONIX_ID,
6524 .model_id = MACRONIX_MX25L3205,
6525 .total_size = 4096,
6526 .page_size = 256,
6527 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6529 .tested = TEST_UNTESTED,
6530 .probe = probe_spi_rdid,
6531 .probe_timing = TIMING_ZERO,
6532 .block_erasers =
6533 {
6534 {
6535 .eraseblocks = { {4 * 1024, 1024} },
6536 .block_erase = spi_block_erase_20,
6537 }, {
6538 .eraseblocks = { {32 * 1024, 128} },
6539 .block_erase = spi_block_erase_52,
6540 }, {
6541 .eraseblocks = { {64 * 1024, 64} },
6542 .block_erase = spi_block_erase_d8,
6543 }, {
6544 .eraseblocks = { {4 * 1024 * 1024, 1} },
6545 .block_erase = spi_block_erase_60,
6546 }, {
6547 .eraseblocks = { {4 * 1024 * 1024, 1} },
6548 .block_erase = spi_block_erase_c7,
6549 },
6550 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006551 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006552 .unlock = spi_disable_blockprotect,
6553 .write = spi_chip_write_256,
6554 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6555 .voltage = {2700, 3600},
6556 },
6557
6558 {
6559 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006560 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006561 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006562 .manufacture_id = MACRONIX_ID,
6563 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006564 .total_size = 4096,
6565 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006566 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006568 .tested = TEST_UNTESTED,
6569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006570 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006571 .block_erasers =
6572 {
6573 {
6574 .eraseblocks = { {4 * 1024, 1024} },
6575 .block_erase = spi_block_erase_20,
6576 }, {
6577 .eraseblocks = { {64 * 1024, 64} },
6578 .block_erase = spi_block_erase_d8,
6579 }, {
6580 .eraseblocks = { {4 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_60,
6582 }, {
6583 .eraseblocks = { {4 * 1024 * 1024, 1} },
6584 .block_erase = spi_block_erase_c7,
6585 }
6586 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006587 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006588 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006589 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006590 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006591 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006592 },
6593
6594 {
6595 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006596 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006597 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006598 .manufacture_id = MACRONIX_ID,
6599 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006600 .total_size = 8192,
6601 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006602 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6603 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006606 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006607 .block_erasers =
6608 {
6609 {
6610 .eraseblocks = { {64 * 1024, 128} },
6611 .block_erase = spi_block_erase_20,
6612 }, {
6613 .eraseblocks = { {64 * 1024, 128} },
6614 .block_erase = spi_block_erase_d8,
6615 }, {
6616 .eraseblocks = { {8 * 1024 * 1024, 1} },
6617 .block_erase = spi_block_erase_60,
6618 }, {
6619 .eraseblocks = { {8 * 1024 * 1024, 1} },
6620 .block_erase = spi_block_erase_c7,
6621 }
6622 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006623 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006624 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006625 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006626 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006627 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006628 },
6629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006630 {
6631 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006632 .name = "MX25L6406E/MX25L6436E",
6633 .bustype = BUS_SPI,
6634 .manufacture_id = MACRONIX_ID,
6635 .model_id = MACRONIX_MX25L6405,
6636 .total_size = 8192,
6637 .page_size = 256,
6638 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6640 .tested = TEST_OK_PREW,
6641 .probe = probe_spi_rdid,
6642 .probe_timing = TIMING_ZERO,
6643 .block_erasers =
6644 {
6645 {
6646 .eraseblocks = { {4 * 1024, 2048} },
6647 .block_erase = spi_block_erase_20,
6648 }, {
6649 .eraseblocks = { {64 * 1024, 128} },
6650 .block_erase = spi_block_erase_d8,
6651 }, {
6652 .eraseblocks = { {8 * 1024 * 1024, 1} },
6653 .block_erase = spi_block_erase_60,
6654 }, {
6655 .eraseblocks = { {8 * 1024 * 1024, 1} },
6656 .block_erase = spi_block_erase_c7,
6657 }
6658 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006659 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006660 .unlock = spi_disable_blockprotect,
6661 .write = spi_chip_write_256,
6662 .read = spi_chip_read,
6663 .voltage = {2700, 3600},
6664 },
6665
6666 {
6667 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006668 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006669 .bustype = BUS_SPI,
6670 .manufacture_id = MACRONIX_ID,
6671 .model_id = MACRONIX_MX25L6405,
6672 .total_size = 8192,
6673 .page_size = 256,
6674 /* supports SFDP */
6675 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6677 .tested = TEST_OK_PREW,
6678 .probe = probe_spi_rdid,
6679 .probe_timing = TIMING_ZERO,
6680 .block_erasers =
6681 {
6682 {
6683 .eraseblocks = { {4 * 1024, 2048} },
6684 .block_erase = spi_block_erase_20,
6685 }, {
6686 .eraseblocks = { {32 * 1024, 256} },
6687 .block_erase = spi_block_erase_52,
6688 }, {
6689 .eraseblocks = { {64 * 1024, 128} },
6690 .block_erase = spi_block_erase_d8,
6691 }, {
6692 .eraseblocks = { {8 * 1024 * 1024, 1} },
6693 .block_erase = spi_block_erase_60,
6694 }, {
6695 .eraseblocks = { {8 * 1024 * 1024, 1} },
6696 .block_erase = spi_block_erase_c7,
6697 }
6698 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006699 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006700 .unlock = spi_disable_blockprotect,
6701 .write = spi_chip_write_256,
6702 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6703 .voltage = {2700, 3600},
6704 },
6705
6706 {
6707 .vendor = "Macronix",
6708 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006709 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006710 .manufacture_id = MACRONIX_ID,
6711 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006712 .total_size = 16384,
6713 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006714 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006716 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006718 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006719 .block_erasers =
6720 {
6721 {
6722 .eraseblocks = { {4 * 1024, 4096} },
6723 .block_erase = spi_block_erase_20,
6724 }, {
6725 .eraseblocks = { {64 * 1024, 256} },
6726 .block_erase = spi_block_erase_d8,
6727 }, {
6728 .eraseblocks = { {16 * 1024 * 1024, 1} },
6729 .block_erase = spi_block_erase_60,
6730 }, {
6731 .eraseblocks = { {16 * 1024 * 1024, 1} },
6732 .block_erase = spi_block_erase_c7,
6733 }
6734 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006735 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006736 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006737 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006738 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006739 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006740 },
6741
6742 {
6743 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006744 .name = "MX25U1635E",
6745 .bustype = BUS_SPI,
6746 .manufacture_id = MACRONIX_ID,
6747 .model_id = MACRONIX_MX25U1635E,
6748 .total_size = 2048,
6749 .page_size = 256,
6750 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6751 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6753 .tested = TEST_UNTESTED,
6754 .probe = probe_spi_rdid,
6755 .probe_timing = TIMING_ZERO,
6756 .block_erasers =
6757 {
6758 {
6759 .eraseblocks = { {4 * 1024, 512} },
6760 .block_erase = spi_block_erase_20,
6761 }, {
6762 .eraseblocks = { {32 * 1024, 64} },
6763 .block_erase = spi_block_erase_52,
6764 }, {
6765 .eraseblocks = { {64 * 1024, 32} },
6766 .block_erase = spi_block_erase_d8,
6767 }, {
6768 .eraseblocks = { {2 * 1024 * 1024, 1} },
6769 .block_erase = spi_block_erase_60,
6770 }, {
6771 .eraseblocks = { {2 * 1024 * 1024, 1} },
6772 .block_erase = spi_block_erase_c7,
6773 }
6774 },
6775 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006776 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006777 .unlock = spi_disable_blockprotect,
6778 .write = spi_chip_write_256,
6779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6780 .voltage = {1650, 2000},
6781 },
6782
6783 {
6784 .vendor = "Macronix",
6785 .name = "MX25U3235E/F",
6786 .bustype = BUS_SPI,
6787 .manufacture_id = MACRONIX_ID,
6788 .model_id = MACRONIX_MX25U3235E,
6789 .total_size = 4096,
6790 .page_size = 256,
6791 /* F model supports SFDP */
6792 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6793 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6794 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6795 .tested = TEST_OK_PREW,
6796 .probe = probe_spi_rdid,
6797 .probe_timing = TIMING_ZERO,
6798 .block_erasers =
6799 {
6800 {
6801 .eraseblocks = { {4 * 1024, 1024} },
6802 .block_erase = spi_block_erase_20,
6803 }, {
6804 .eraseblocks = { {32 * 1024, 128} },
6805 .block_erase = spi_block_erase_52,
6806 }, {
6807 .eraseblocks = { {64 * 1024, 64} },
6808 .block_erase = spi_block_erase_d8,
6809 }, {
6810 .eraseblocks = { {4 * 1024 * 1024, 1} },
6811 .block_erase = spi_block_erase_60,
6812 }, {
6813 .eraseblocks = { {4 * 1024 * 1024, 1} },
6814 .block_erase = spi_block_erase_c7,
6815 }
6816 },
6817 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006818 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006819 .unlock = spi_disable_blockprotect,
6820 .write = spi_chip_write_256,
6821 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6822 .voltage = {1650, 2000},
6823 },
6824
6825 {
6826 .vendor = "Macronix",
6827 .name = "MX25U6435E/F",
6828 .bustype = BUS_SPI,
6829 .manufacture_id = MACRONIX_ID,
6830 .model_id = MACRONIX_MX25U6435E,
6831 .total_size = 8192,
6832 .page_size = 256,
6833 /* F model supports SFDP */
6834 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6835 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6837 .tested = TEST_UNTESTED,
6838 .probe = probe_spi_rdid,
6839 .probe_timing = TIMING_ZERO,
6840 .block_erasers =
6841 {
6842 {
6843 .eraseblocks = { {4 * 1024, 2048} },
6844 .block_erase = spi_block_erase_20,
6845 }, {
6846 .eraseblocks = { {32 * 1024, 256} },
6847 .block_erase = spi_block_erase_52,
6848 }, {
6849 .eraseblocks = { {64 * 1024, 128} },
6850 .block_erase = spi_block_erase_d8,
6851 }, {
6852 .eraseblocks = { {8 * 1024 * 1024, 1} },
6853 .block_erase = spi_block_erase_60,
6854 }, {
6855 .eraseblocks = { {8 * 1024 * 1024, 1} },
6856 .block_erase = spi_block_erase_c7,
6857 }
6858 },
6859 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006860 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006861 .unlock = spi_disable_blockprotect,
6862 .write = spi_chip_write_256,
6863 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6864 .voltage = {1650, 2000},
6865 },
6866
6867 {
6868 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006869 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006870 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006871 .manufacture_id = MACRONIX_ID,
6872 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006873 .total_size = 128,
6874 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006875 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6876 .tested = TEST_UNTESTED,
6877 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006878 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006879 .block_erasers =
6880 {
6881 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006882 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006883 {8 * 1024, 1},
6884 {4 * 1024, 2},
6885 {8 * 1024, 2},
6886 {32 * 1024, 1},
6887 {64 * 1024, 1},
6888 },
Sean Nelson35727f72010-01-28 23:55:12 +00006889 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006890 }, {
6891 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006892 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006893 }
6894 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006895 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006897 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006898 },
6899
6900 {
6901 .vendor = "Macronix",
6902 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006903 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006904 .manufacture_id = MACRONIX_ID,
6905 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006906 .total_size = 128,
6907 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006908 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006909 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006910 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006911 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006912 .block_erasers =
6913 {
6914 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006915 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006916 {64 * 1024, 1},
6917 {32 * 1024, 1},
6918 {8 * 1024, 2},
6919 {4 * 1024, 2},
6920 {8 * 1024, 1},
6921 },
Sean Nelson35727f72010-01-28 23:55:12 +00006922 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006923 }, {
6924 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006925 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006926 }
6927 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006928 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006929 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006930 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006931 },
6932
6933 {
6934 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006935 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006936 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006937 .manufacture_id = MACRONIX_ID,
6938 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006939 .total_size = 256,
6940 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006941 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006942 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006943 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006944 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006945 .block_erasers =
6946 {
6947 {
6948 .eraseblocks = {
6949 {16 * 1024, 1},
6950 {8 * 1024, 2},
6951 {32 * 1024, 1},
6952 {64 * 1024, 3},
6953 },
Sean Nelson35727f72010-01-28 23:55:12 +00006954 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006955 }, {
6956 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006957 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006958 },
6959 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006960 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006961 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006962 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006963 },
6964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006965 {
6966 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006967 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006968 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006969 .manufacture_id = MACRONIX_ID,
6970 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006971 .total_size = 256,
6972 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006973 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006974 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006975 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006976 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006977 .block_erasers =
6978 {
6979 {
6980 .eraseblocks = {
6981 {64 * 1024, 3},
6982 {32 * 1024, 1},
6983 {8 * 1024, 2},
6984 {16 * 1024, 1},
6985 },
Sean Nelson35727f72010-01-28 23:55:12 +00006986 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006987 }, {
6988 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006989 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006990 },
6991 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006992 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006993 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006994 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006995 },
6996
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006997 {
6998 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006999 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007000 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007001 .manufacture_id = MACRONIX_ID,
7002 .model_id = MACRONIX_MX29F040,
7003 .total_size = 512,
7004 .page_size = 64 * 1024,
7005 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7006 .tested = TEST_UNTESTED,
7007 .probe = probe_jedec,
7008 .probe_timing = TIMING_ZERO,
7009 .block_erasers =
7010 {
7011 {
7012 .eraseblocks = { {64 * 1024, 8} },
7013 .block_erase = erase_sector_jedec,
7014 }, {
7015 .eraseblocks = { {512 * 1024, 1} },
7016 .block_erase = erase_chip_block_jedec,
7017 },
7018 },
7019 .write = write_jedec_1,
7020 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007021 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007022 },
7023
7024 {
7025 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007026 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007027 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007028 .manufacture_id = MACRONIX_ID,
7029 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007030 .total_size = 512,
7031 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007032 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7033 .tested = TEST_UNTESTED,
7034 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007035 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007036 .block_erasers =
7037 {
7038 {
7039 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007040 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007041 }, {
7042 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007043 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007044 },
7045 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007046 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007048 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007049 },
7050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007051 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007052 .vendor = "Micron/Numonyx/ST",
7053 .name = "M25P05-A",
7054 .bustype = BUS_SPI,
7055 .manufacture_id = ST_ID,
7056 .model_id = ST_M25P05A,
7057 .total_size = 64,
7058 .page_size = 256,
7059 .feature_bits = FEATURE_WRSR_WREN,
7060 .tested = TEST_OK_PREW,
7061 .probe = probe_spi_rdid,
7062 .probe_timing = TIMING_ZERO,
7063 .block_erasers =
7064 {
7065 {
7066 .eraseblocks = { {32 * 1024, 2} },
7067 .block_erase = spi_block_erase_d8,
7068 }, {
7069 .eraseblocks = { {64 * 1024, 1} },
7070 .block_erase = spi_block_erase_c7,
7071 }
7072 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007073 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007074 .unlock = spi_disable_blockprotect,
7075 .write = spi_chip_write_256,
7076 .read = spi_chip_read,
7077 .voltage = {2700, 3600},
7078 },
7079
7080 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7081 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7082 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7083 * only is successful if RDID does not work.
7084 */
7085 {
7086 .vendor = "Micron/Numonyx/ST",
7087 .name = "M25P05",
7088 .bustype = BUS_SPI,
7089 .manufacture_id = 0, /* Not used. */
7090 .model_id = ST_M25P05_RES,
7091 .total_size = 64,
7092 .page_size = 256,
7093 .feature_bits = FEATURE_WRSR_WREN,
7094 .tested = TEST_UNTESTED,
7095 .probe = probe_spi_res1,
7096 .probe_timing = TIMING_ZERO,
7097 .block_erasers =
7098 {
7099 {
7100 .eraseblocks = { {32 * 1024, 2} },
7101 .block_erase = spi_block_erase_d8,
7102 }, {
7103 .eraseblocks = { {64 * 1024, 1} },
7104 .block_erase = spi_block_erase_c7,
7105 }
7106 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007107 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007108 .unlock = spi_disable_blockprotect,
7109 .write = spi_chip_write_1, /* 128 */
7110 .read = spi_chip_read,
7111 .voltage = {2700, 3600},
7112 },
7113
7114 {
7115 .vendor = "Micron/Numonyx/ST",
7116 .name = "M25P10-A",
7117 .bustype = BUS_SPI,
7118 .manufacture_id = ST_ID,
7119 .model_id = ST_M25P10A,
7120 .total_size = 128,
7121 .page_size = 256,
7122 .feature_bits = FEATURE_WRSR_WREN,
7123 .tested = TEST_OK_PRE,
7124 .probe = probe_spi_rdid,
7125 .probe_timing = TIMING_ZERO,
7126 .block_erasers =
7127 {
7128 {
7129 .eraseblocks = { {32 * 1024, 4} },
7130 .block_erase = spi_block_erase_d8,
7131 }, {
7132 .eraseblocks = { {128 * 1024, 1} },
7133 .block_erase = spi_block_erase_c7,
7134 }
7135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007136 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007137 .unlock = spi_disable_blockprotect,
7138 .write = spi_chip_write_256,
7139 .read = spi_chip_read,
7140 .voltage = {2700, 3600},
7141 },
7142
7143 /* The ST M25P10 has the same problem as the M25P05. */
7144 {
7145 .vendor = "Micron/Numonyx/ST",
7146 .name = "M25P10",
7147 .bustype = BUS_SPI,
7148 .manufacture_id = 0, /* Not used. */
7149 .model_id = ST_M25P10_RES,
7150 .total_size = 128,
7151 .page_size = 256,
7152 .feature_bits = FEATURE_WRSR_WREN,
7153 .tested = TEST_UNTESTED,
7154 .probe = probe_spi_res1,
7155 .probe_timing = TIMING_ZERO,
7156 .block_erasers =
7157 {
7158 {
7159 .eraseblocks = { {32 * 1024, 4} },
7160 .block_erase = spi_block_erase_d8,
7161 }, {
7162 .eraseblocks = { {128 * 1024, 1} },
7163 .block_erase = spi_block_erase_c7,
7164 }
7165 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007166 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007167 .unlock = spi_disable_blockprotect,
7168 .write = spi_chip_write_1, /* 128 */
7169 .read = spi_chip_read,
7170 .voltage = {2700, 3600},
7171 },
7172
7173 {
7174 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7175 .name = "M25P20",
7176 .bustype = BUS_SPI,
7177 .manufacture_id = ST_ID,
7178 .model_id = ST_M25P20,
7179 .total_size = 256,
7180 .page_size = 256,
7181 .feature_bits = FEATURE_WRSR_WREN,
7182 .tested = TEST_UNTESTED,
7183 .probe = probe_spi_rdid,
7184 .probe_timing = TIMING_ZERO,
7185 .block_erasers =
7186 {
7187 {
7188 .eraseblocks = { {64 * 1024, 4} },
7189 .block_erase = spi_block_erase_d8,
7190 }, {
7191 .eraseblocks = { {256 * 1024, 1} },
7192 .block_erase = spi_block_erase_c7,
7193 }
7194 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007195 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007196 .unlock = spi_disable_blockprotect,
7197 .write = spi_chip_write_256,
7198 .read = spi_chip_read, /* Fast read (0x0B) supported */
7199 .voltage = {2700, 3600},
7200 },
7201
7202 {
7203 .vendor = "Micron/Numonyx/ST",
7204 .name = "M25P20-old",
7205 .bustype = BUS_SPI,
7206 .manufacture_id = 0, /* Not used. */
7207 .model_id = ST_M25P20_RES,
7208 .total_size = 256,
7209 .page_size = 256,
7210 .feature_bits = FEATURE_WRSR_WREN,
7211 .tested = TEST_OK_PREW,
7212 .probe = probe_spi_res1,
7213 .probe_timing = TIMING_ZERO,
7214 .block_erasers =
7215 {
7216 {
7217 .eraseblocks = { {64 * 1024, 4} },
7218 .block_erase = spi_block_erase_d8,
7219 }, {
7220 .eraseblocks = { {256 * 1024, 1} },
7221 .block_erase = spi_block_erase_c7,
7222 }
7223 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007224 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007225 .unlock = spi_disable_blockprotect,
7226 .write = spi_chip_write_256,
7227 .read = spi_chip_read, /* Fast read (0x0B) supported */
7228 .voltage = {2700, 3600},
7229 },
7230
7231 {
7232 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7233 .name = "M25P40",
7234 .bustype = BUS_SPI,
7235 .manufacture_id = ST_ID,
7236 .model_id = ST_M25P40,
7237 .total_size = 512,
7238 .page_size = 256,
7239 .feature_bits = FEATURE_WRSR_WREN,
7240 .tested = TEST_OK_PREW,
7241 .probe = probe_spi_rdid,
7242 .probe_timing = TIMING_ZERO,
7243 .block_erasers =
7244 {
7245 {
7246 .eraseblocks = { {64 * 1024, 8} },
7247 .block_erase = spi_block_erase_d8,
7248 }, {
7249 .eraseblocks = { {512 * 1024, 1} },
7250 .block_erase = spi_block_erase_c7,
7251 }
7252 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007253 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007254 .unlock = spi_disable_blockprotect,
7255 .write = spi_chip_write_256,
7256 .read = spi_chip_read,
7257 .voltage = {2700, 3600},
7258 },
7259
7260 {
7261 .vendor = "Micron/Numonyx/ST",
7262 .name = "M25P40-old",
7263 .bustype = BUS_SPI,
7264 .manufacture_id = 0, /* Not used. */
7265 .model_id = ST_M25P40_RES,
7266 .total_size = 512,
7267 .page_size = 256,
7268 .feature_bits = FEATURE_WRSR_WREN,
7269 .tested = TEST_UNTESTED,
7270 .probe = probe_spi_res1,
7271 .probe_timing = TIMING_ZERO,
7272 .block_erasers =
7273 {
7274 {
7275 .eraseblocks = { {64 * 1024, 8} },
7276 .block_erase = spi_block_erase_d8,
7277 }, {
7278 .eraseblocks = { {512 * 1024, 1} },
7279 .block_erase = spi_block_erase_c7,
7280 }
7281 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007282 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007283 .unlock = spi_disable_blockprotect,
7284 .write = spi_chip_write_256,
7285 .read = spi_chip_read,
7286 },
7287
7288 {
7289 .vendor = "Micron/Numonyx/ST",
7290 .name = "M25P80",
7291 .bustype = BUS_SPI,
7292 .manufacture_id = ST_ID,
7293 .model_id = ST_M25P80,
7294 .total_size = 1024,
7295 .page_size = 256,
7296 .feature_bits = FEATURE_WRSR_WREN,
7297 .tested = TEST_OK_PREW,
7298 .probe = probe_spi_rdid,
7299 .probe_timing = TIMING_ZERO,
7300 .block_erasers =
7301 {
7302 {
7303 .eraseblocks = { {64 * 1024, 16} },
7304 .block_erase = spi_block_erase_d8,
7305 }, {
7306 .eraseblocks = { {1024 * 1024, 1} },
7307 .block_erase = spi_block_erase_c7,
7308 }
7309 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007310 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007311 .unlock = spi_disable_blockprotect,
7312 .write = spi_chip_write_256,
7313 .read = spi_chip_read,
7314 .voltage = {2700, 3600},
7315 },
7316
7317 {
7318 .vendor = "Micron/Numonyx/ST",
7319 .name = "M25P16",
7320 .bustype = BUS_SPI,
7321 .manufacture_id = ST_ID,
7322 .model_id = ST_M25P16,
7323 .total_size = 2048,
7324 .page_size = 256,
7325 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007326 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007327 .probe = probe_spi_rdid,
7328 .probe_timing = TIMING_ZERO,
7329 .block_erasers =
7330 {
7331 {
7332 .eraseblocks = { {64 * 1024, 32} },
7333 .block_erase = spi_block_erase_d8,
7334 }, {
7335 .eraseblocks = { {2 * 1024 * 1024, 1} },
7336 .block_erase = spi_block_erase_c7,
7337 }
7338 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007339 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007340 .unlock = spi_disable_blockprotect,
7341 .write = spi_chip_write_256,
7342 .read = spi_chip_read,
7343 .voltage = {2700, 3600},
7344 },
7345
7346 {
7347 .vendor = "Micron/Numonyx/ST",
7348 .name = "M25P32",
7349 .bustype = BUS_SPI,
7350 .manufacture_id = ST_ID,
7351 .model_id = ST_M25P32,
7352 .total_size = 4096,
7353 .page_size = 256,
7354 .feature_bits = FEATURE_WRSR_WREN,
7355 .tested = TEST_OK_PREW,
7356 .probe = probe_spi_rdid,
7357 .probe_timing = TIMING_ZERO,
7358 .block_erasers =
7359 {
7360 {
7361 .eraseblocks = { {64 * 1024, 64} },
7362 .block_erase = spi_block_erase_d8,
7363 }, {
7364 .eraseblocks = { {4 * 1024 * 1024, 1} },
7365 .block_erase = spi_block_erase_c7,
7366 }
7367 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007368 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007369 .unlock = spi_disable_blockprotect,
7370 .write = spi_chip_write_256,
7371 .read = spi_chip_read,
7372 .voltage = {2700, 3600},
7373 },
7374
7375 {
7376 .vendor = "Micron/Numonyx/ST",
7377 .name = "M25P64",
7378 .bustype = BUS_SPI,
7379 .manufacture_id = ST_ID,
7380 .model_id = ST_M25P64,
7381 .total_size = 8192,
7382 .page_size = 256,
7383 .feature_bits = FEATURE_WRSR_WREN,
7384 .tested = TEST_OK_PREW,
7385 .probe = probe_spi_rdid,
7386 .probe_timing = TIMING_ZERO,
7387 .block_erasers =
7388 {
7389 {
7390 .eraseblocks = { {64 * 1024, 128} },
7391 .block_erase = spi_block_erase_d8,
7392 }, {
7393 .eraseblocks = { {8 * 1024 * 1024, 1} },
7394 .block_erase = spi_block_erase_c7,
7395 }
7396 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007397 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007398 .unlock = spi_disable_blockprotect,
7399 .write = spi_chip_write_256,
7400 .read = spi_chip_read,
7401 .voltage = {2700, 3600},
7402 },
7403
7404 {
7405 .vendor = "Micron/Numonyx/ST",
7406 .name = "M25P128",
7407 .bustype = BUS_SPI,
7408 .manufacture_id = ST_ID,
7409 .model_id = ST_M25P128,
7410 .total_size = 16384,
7411 .page_size = 256,
7412 .feature_bits = FEATURE_WRSR_WREN,
7413 .tested = TEST_OK_PREW,
7414 .probe = probe_spi_rdid,
7415 .probe_timing = TIMING_ZERO,
7416 .block_erasers =
7417 {
7418 {
7419 .eraseblocks = { {256 * 1024, 64} },
7420 .block_erase = spi_block_erase_d8,
7421 }, {
7422 .eraseblocks = { {16 * 1024 * 1024, 1} },
7423 .block_erase = spi_block_erase_c7,
7424 }
7425 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007426 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007427 .unlock = spi_disable_blockprotect,
7428 .write = spi_chip_write_256,
7429 .read = spi_chip_read,
7430 .voltage = {2700, 3600},
7431 },
7432
7433 {
7434 .vendor = "Micron/Numonyx/ST",
7435 .name = "M25PE10",
7436 .bustype = BUS_SPI,
7437 .manufacture_id = ST_ID,
7438 .model_id = ST_M25PE10,
7439 .total_size = 128,
7440 .page_size = 256,
7441 .feature_bits = FEATURE_WRSR_WREN,
7442 .tested = TEST_UNTESTED,
7443 .probe = probe_spi_rdid,
7444 .probe_timing = TIMING_ZERO,
7445 .block_erasers =
7446 {
7447 {
7448 .eraseblocks = { {4 * 1024, 32} },
7449 .block_erase = spi_block_erase_20,
7450 }, {
7451 .eraseblocks = { {64 * 1024, 2} },
7452 .block_erase = spi_block_erase_d8,
7453 }, {
7454 .eraseblocks = { {128 * 1024, 1} },
7455 .block_erase = spi_block_erase_c7,
7456 }
7457 },
7458 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7459 .unlock = spi_disable_blockprotect,
7460 .write = spi_chip_write_256,
7461 .read = spi_chip_read,
7462 .voltage = {2700, 3600},
7463 },
7464
7465 {
7466 .vendor = "Micron/Numonyx/ST",
7467 .name = "M25PE20",
7468 .bustype = BUS_SPI,
7469 .manufacture_id = ST_ID,
7470 .model_id = ST_M25PE20,
7471 .total_size = 256,
7472 .page_size = 256,
7473 .feature_bits = FEATURE_WRSR_WREN,
7474 .tested = TEST_UNTESTED,
7475 .probe = probe_spi_rdid,
7476 .probe_timing = TIMING_ZERO,
7477 .block_erasers =
7478 {
7479 {
7480 .eraseblocks = { {4 * 1024, 64} },
7481 .block_erase = spi_block_erase_20,
7482 }, {
7483 .eraseblocks = { {64 * 1024, 4} },
7484 .block_erase = spi_block_erase_d8,
7485 }, {
7486 .eraseblocks = { {256 * 1024, 1} },
7487 .block_erase = spi_block_erase_c7,
7488 }
7489 },
7490 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7491 .unlock = spi_disable_blockprotect,
7492 .write = spi_chip_write_256,
7493 .read = spi_chip_read,
7494 .voltage = {2700, 3600},
7495 },
7496
7497 {
7498 .vendor = "Micron/Numonyx/ST",
7499 .name = "M25PE40",
7500 .bustype = BUS_SPI,
7501 .manufacture_id = ST_ID,
7502 .model_id = ST_M25PE40,
7503 .total_size = 512,
7504 .page_size = 256,
7505 .feature_bits = FEATURE_WRSR_WREN,
7506 .tested = TEST_UNTESTED,
7507 .probe = probe_spi_rdid,
7508 .probe_timing = TIMING_ZERO,
7509 .block_erasers =
7510 {
7511 {
7512 .eraseblocks = { {4 * 1024, 128} },
7513 .block_erase = spi_block_erase_20,
7514 }, {
7515 .eraseblocks = { {64 * 1024, 8} },
7516 .block_erase = spi_block_erase_d8,
7517 }, {
7518 .eraseblocks = { {512 * 1024, 1} },
7519 .block_erase = spi_block_erase_c7,
7520 }
7521 },
7522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7523 .unlock = spi_disable_blockprotect,
7524 .write = spi_chip_write_256,
7525 .read = spi_chip_read,
7526 .voltage = {2700, 3600},
7527 },
7528
7529 {
7530 .vendor = "Micron/Numonyx/ST",
7531 .name = "M25PE80",
7532 .bustype = BUS_SPI,
7533 .manufacture_id = ST_ID,
7534 .model_id = ST_M25PE80,
7535 .total_size = 1024,
7536 .page_size = 256,
7537 .feature_bits = FEATURE_WRSR_WREN,
7538 .tested = TEST_OK_PREW,
7539 .probe = probe_spi_rdid,
7540 .probe_timing = TIMING_ZERO,
7541 .block_erasers =
7542 {
7543 {
7544 .eraseblocks = { {4 * 1024, 256} },
7545 .block_erase = spi_block_erase_20,
7546 }, {
7547 .eraseblocks = { {64 * 1024, 16} },
7548 .block_erase = spi_block_erase_d8,
7549 }, {
7550 .eraseblocks = { {1024 * 1024, 1} },
7551 .block_erase = spi_block_erase_c7,
7552 }
7553 },
7554 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7555 .unlock = spi_disable_blockprotect,
7556 .write = spi_chip_write_256,
7557 .read = spi_chip_read,
7558 .voltage = {2700, 3600},
7559 },
7560
7561 {
7562 .vendor = "Micron/Numonyx/ST",
7563 .name = "M25PE16",
7564 .bustype = BUS_SPI,
7565 .manufacture_id = ST_ID,
7566 .model_id = ST_M25PE16,
7567 .total_size = 2048,
7568 .page_size = 256,
7569 .feature_bits = FEATURE_WRSR_WREN,
7570 .tested = TEST_UNTESTED,
7571 .probe = probe_spi_rdid,
7572 .probe_timing = TIMING_ZERO,
7573 .block_erasers =
7574 {
7575 {
7576 .eraseblocks = { {4 * 1024, 512} },
7577 .block_erase = spi_block_erase_20,
7578 }, {
7579 .eraseblocks = { {64 * 1024, 32} },
7580 .block_erase = spi_block_erase_d8,
7581 }, {
7582 .eraseblocks = { {2 * 1024 * 1024, 1} },
7583 .block_erase = spi_block_erase_c7,
7584 }
7585 },
7586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7587 .unlock = spi_disable_blockprotect,
7588 .write = spi_chip_write_256,
7589 .read = spi_chip_read,
7590 .voltage = {2700, 3600},
7591 },
7592
7593 {
7594 .vendor = "Micron/Numonyx/ST",
7595 .name = "M25PX80",
7596 .bustype = BUS_SPI,
7597 .manufacture_id = ST_ID,
7598 .model_id = ST_M25PX80,
7599 .total_size = 1024,
7600 .page_size = 256,
7601 /* OTP: 64B total; read 0x4B, write 0x42 */
7602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7603 .tested = TEST_OK_PREW,
7604 .probe = probe_spi_rdid,
7605 .probe_timing = TIMING_ZERO,
7606 .block_erasers = {
7607 {
7608 .eraseblocks = { { 4 * 1024, 256 } },
7609 .block_erase = spi_block_erase_20,
7610 }, {
7611 .eraseblocks = { {64 * 1024, 16} },
7612 .block_erase = spi_block_erase_d8,
7613 }, {
7614 .eraseblocks = { {1024 * 1024, 1} },
7615 .block_erase = spi_block_erase_c7,
7616 }
7617 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007618 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007619 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7620 .write = spi_chip_write_256,
7621 .read = spi_chip_read,
7622 .voltage = {2700, 3600},
7623 },
7624
7625 {
7626 .vendor = "Micron/Numonyx/ST",
7627 .name = "M25PX16",
7628 .bustype = BUS_SPI,
7629 .manufacture_id = ST_ID,
7630 .model_id = ST_M25PX16,
7631 .total_size = 2048,
7632 .page_size = 256,
7633 /* OTP: 64B total; read 0x4B; write 0x42 */
7634 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7635 .tested = TEST_OK_PREW,
7636 .probe = probe_spi_rdid,
7637 .probe_timing = TIMING_ZERO,
7638 .block_erasers =
7639 {
7640 {
7641 .eraseblocks = { { 4 * 1024, 512 } },
7642 .block_erase = spi_block_erase_20,
7643 }, {
7644 .eraseblocks = { {64 * 1024, 32} },
7645 .block_erase = spi_block_erase_d8,
7646 }, {
7647 .eraseblocks = { {2 * 1024 * 1024, 1} },
7648 .block_erase = spi_block_erase_c7,
7649 }
7650 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007651 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007652 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7653 .write = spi_chip_write_256,
7654 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007655 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007656 },
7657
7658 {
7659 .vendor = "Micron/Numonyx/ST",
7660 .name = "M25PX32",
7661 .bustype = BUS_SPI,
7662 .manufacture_id = ST_ID,
7663 .model_id = ST_M25PX32,
7664 .total_size = 4096,
7665 .page_size = 256,
7666 /* OTP: 64B total; read 0x4B; write 0x42 */
7667 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7668 .tested = TEST_OK_PRE,
7669 .probe = probe_spi_rdid,
7670 .probe_timing = TIMING_ZERO,
7671 .block_erasers =
7672 {
7673 {
7674 .eraseblocks = { { 4 * 1024, 1024 } },
7675 .block_erase = spi_block_erase_20,
7676 }, {
7677 .eraseblocks = { {64 * 1024, 64} },
7678 .block_erase = spi_block_erase_d8,
7679 }, {
7680 .eraseblocks = { {4 * 1024 * 1024, 1} },
7681 .block_erase = spi_block_erase_c7,
7682 }
7683 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007684 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007685 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7686 .write = spi_chip_write_256,
7687 .read = spi_chip_read,
7688 .voltage = {2700, 3600},
7689 },
7690
7691 {
7692 .vendor = "Micron/Numonyx/ST",
7693 .name = "M25PX64",
7694 .bustype = BUS_SPI,
7695 .manufacture_id = ST_ID,
7696 .model_id = ST_M25PX64,
7697 .total_size = 8192,
7698 .page_size = 256,
7699 /* OTP: 64B total; read 0x4B; write 0x42 */
7700 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007701 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007702 .probe = probe_spi_rdid,
7703 .probe_timing = TIMING_ZERO,
7704 .block_erasers =
7705 {
7706 {
7707 .eraseblocks = { { 4 * 1024, 2048 } },
7708 .block_erase = spi_block_erase_20,
7709 }, {
7710 .eraseblocks = { {64 * 1024, 128} },
7711 .block_erase = spi_block_erase_d8,
7712 }, {
7713 .eraseblocks = { {8 * 1024 * 1024, 1} },
7714 .block_erase = spi_block_erase_c7,
7715 }
7716 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007717 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007718 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7719 .write = spi_chip_write_256,
7720 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007721 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007722 },
7723
7724 {
7725 .vendor = "Micron/Numonyx/ST",
7726 .name = "M45PE10",
7727 .bustype = BUS_SPI,
7728 .manufacture_id = ST_ID,
7729 .model_id = ST_M45PE10,
7730 .total_size = 128,
7731 .page_size = 256,
7732 .tested = TEST_UNTESTED,
7733 .probe = probe_spi_rdid,
7734 .probe_timing = TIMING_ZERO,
7735 .block_erasers = {
7736 {
7737 .eraseblocks = { {256, 512} },
7738 .block_erase = spi_block_erase_db,
7739 }, {
7740 .eraseblocks = { {64 * 1024, 2} },
7741 .block_erase = spi_block_erase_d8,
7742 }
7743 },
7744 .printlock = spi_prettyprint_status_register_default_welwip,
7745 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7746 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7747 .read = spi_chip_read, /* Fast read (0x0B) supported */
7748 .voltage = {2700, 3600},
7749 },
7750
7751 {
7752 .vendor = "Micron/Numonyx/ST",
7753 .name = "M45PE20",
7754 .bustype = BUS_SPI,
7755 .manufacture_id = ST_ID,
7756 .model_id = ST_M45PE20,
7757 .total_size = 256,
7758 .page_size = 256,
7759 .tested = TEST_UNTESTED,
7760 .probe = probe_spi_rdid,
7761 .probe_timing = TIMING_ZERO,
7762 .block_erasers = {
7763 {
7764 .eraseblocks = { {256, 1024} },
7765 .block_erase = spi_block_erase_db,
7766 }, {
7767 .eraseblocks = { {64 * 1024, 4} },
7768 .block_erase = spi_block_erase_d8,
7769 }
7770 },
7771 .printlock = spi_prettyprint_status_register_default_welwip,
7772 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7773 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7774 .read = spi_chip_read, /* Fast read (0x0B) supported */
7775 .voltage = {2700, 3600},
7776 },
7777
7778 {
7779 .vendor = "Micron/Numonyx/ST",
7780 .name = "M45PE40",
7781 .bustype = BUS_SPI,
7782 .manufacture_id = ST_ID,
7783 .model_id = ST_M45PE40,
7784 .total_size = 512,
7785 .page_size = 256,
7786 .tested = TEST_UNTESTED,
7787 .probe = probe_spi_rdid,
7788 .probe_timing = TIMING_ZERO,
7789 .block_erasers = {
7790 {
7791 .eraseblocks = { {256, 2048} },
7792 .block_erase = spi_block_erase_db,
7793 }, {
7794 .eraseblocks = { {64 * 1024, 8} },
7795 .block_erase = spi_block_erase_d8,
7796 }
7797 },
7798 .printlock = spi_prettyprint_status_register_default_welwip,
7799 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7800 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7801 .read = spi_chip_read, /* Fast read (0x0B) supported */
7802 .voltage = {2700, 3600},
7803 },
7804
7805 {
7806 .vendor = "Micron/Numonyx/ST",
7807 .name = "M45PE80",
7808 .bustype = BUS_SPI,
7809 .manufacture_id = ST_ID,
7810 .model_id = ST_M45PE80,
7811 .total_size = 1024,
7812 .page_size = 256,
7813 .tested = TEST_UNTESTED,
7814 .probe = probe_spi_rdid,
7815 .probe_timing = TIMING_ZERO,
7816 .block_erasers = {
7817 {
7818 .eraseblocks = { {256, 4096} },
7819 .block_erase = spi_block_erase_db,
7820 }, {
7821 .eraseblocks = { {64 * 1024, 16} },
7822 .block_erase = spi_block_erase_d8,
7823 }
7824 },
7825 .printlock = spi_prettyprint_status_register_default_welwip,
7826 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7827 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7828 .read = spi_chip_read, /* Fast read (0x0B) supported */
7829 .voltage = {2700, 3600},
7830 },
7831
7832 {
7833 .vendor = "Micron/Numonyx/ST",
7834 .name = "M45PE16",
7835 .bustype = BUS_SPI,
7836 .manufacture_id = ST_ID,
7837 .model_id = ST_M45PE16,
7838 .total_size = 2048,
7839 .page_size = 256,
7840 .tested = TEST_UNTESTED,
7841 .probe = probe_spi_rdid,
7842 .probe_timing = TIMING_ZERO,
7843 .block_erasers = {
7844 {
7845 .eraseblocks = { {256, 8192} },
7846 .block_erase = spi_block_erase_db,
7847 }, {
7848 .eraseblocks = { {64 * 1024, 32} },
7849 .block_erase = spi_block_erase_d8,
7850 }
7851 },
7852 .printlock = spi_prettyprint_status_register_default_welwip,
7853 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7854 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7855 .read = spi_chip_read, /* Fast read (0x0B) supported */
7856 .voltage = {2700, 3600},
7857 },
7858
7859 {
7860 .vendor = "Micron/Numonyx/ST",
7861 .name = "N25Q016",
7862 .bustype = BUS_SPI,
7863 .manufacture_id = ST_ID,
7864 .model_id = ST_N25Q016__1E,
7865 .total_size = 2048,
7866 .page_size = 256,
7867 /* supports SFDP */
7868 /* OTP: 64B total; read 0x4B, write 0x42 */
7869 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7870 .tested = TEST_UNTESTED,
7871 .probe = probe_spi_rdid,
7872 .probe_timing = TIMING_ZERO,
7873 .block_erasers =
7874 {
7875 {
7876 .eraseblocks = { {4 * 1024, 512} },
7877 .block_erase = spi_block_erase_20,
7878 }, {
7879 .eraseblocks = { {32 * 1024, 64} },
7880 .block_erase = spi_block_erase_52,
7881 }, {
7882 .eraseblocks = { {64 * 1024, 32} },
7883 .block_erase = spi_block_erase_d8,
7884 }, {
7885 .eraseblocks = { {2 * 1024 * 1024, 1} },
7886 .block_erase = spi_block_erase_c7,
7887 }
7888 },
7889 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7890 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7891 .write = spi_chip_write_256, /* Multi I/O supported */
7892 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7893 .voltage = {1700, 2000},
7894 },
7895
7896 {
7897 .vendor = "Micron/Numonyx/ST",
7898 .name = "N25Q032..1E",
7899 .bustype = BUS_SPI,
7900 .manufacture_id = ST_ID,
7901 .model_id = ST_N25Q032__1E,
7902 .total_size = 4096,
7903 .page_size = 256,
7904 /* supports SFDP */
7905 /* OTP: 64B total; read 0x4B, write 0x42 */
7906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7907 .tested = TEST_UNTESTED,
7908 .probe = probe_spi_rdid,
7909 .probe_timing = TIMING_ZERO,
7910 .block_erasers =
7911 {
7912 {
7913 .eraseblocks = { {4 * 1024, 1024} },
7914 .block_erase = spi_block_erase_20,
7915 }, {
7916 .eraseblocks = { {64 * 1024, 64} },
7917 .block_erase = spi_block_erase_d8,
7918 }, {
7919 .eraseblocks = { {4 * 1024 * 1024, 1} },
7920 .block_erase = spi_block_erase_c7,
7921 }
7922 },
7923 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7924 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7925 .write = spi_chip_write_256, /* Multi I/O supported */
7926 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7927 .voltage = {1700, 2000},
7928 },
7929
7930 {
7931 .vendor = "Micron/Numonyx/ST",
7932 .name = "N25Q032..3E",
7933 .bustype = BUS_SPI,
7934 .manufacture_id = ST_ID,
7935 .model_id = ST_N25Q032__3E,
7936 .total_size = 4096,
7937 .page_size = 256,
7938 /* supports SFDP */
7939 /* OTP: 64B total; read 0x4B, write 0x42 */
7940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7941 .tested = TEST_OK_PREW,
7942 .probe = probe_spi_rdid,
7943 .probe_timing = TIMING_ZERO,
7944 .block_erasers =
7945 {
7946 {
7947 .eraseblocks = { {4 * 1024, 1024} },
7948 .block_erase = spi_block_erase_20,
7949 }, {
7950 .eraseblocks = { {64 * 1024, 64} },
7951 .block_erase = spi_block_erase_d8,
7952 }, {
7953 .eraseblocks = { {4 * 1024 * 1024, 1} },
7954 .block_erase = spi_block_erase_c7,
7955 }
7956 },
7957 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7958 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7959 .write = spi_chip_write_256, /* Multi I/O supported */
7960 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7961 .voltage = {2700, 3600},
7962 },
7963
7964 {
7965 .vendor = "Micron/Numonyx/ST",
7966 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7967 .bustype = BUS_SPI,
7968 .manufacture_id = ST_ID,
7969 .model_id = ST_N25Q064__1E,
7970 .total_size = 8192,
7971 .page_size = 256,
7972 /* supports SFDP */
7973 /* OTP: 64B total; read 0x4B, write 0x42 */
7974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007975 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007976 .probe = probe_spi_rdid,
7977 .probe_timing = TIMING_ZERO,
7978 .block_erasers =
7979 {
7980 {
7981 .eraseblocks = { {4 * 1024, 2048 } },
7982 .block_erase = spi_block_erase_20,
7983 }, {
7984 .eraseblocks = { {64 * 1024, 128} },
7985 .block_erase = spi_block_erase_d8,
7986 }, {
7987 .eraseblocks = { {8 * 1024 * 1024, 1} },
7988 .block_erase = spi_block_erase_c7,
7989 }
7990 },
7991 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7992 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7993 .write = spi_chip_write_256, /* Multi I/O supported */
7994 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7995 .voltage = {1700, 2000},
7996 },
7997
7998 {
7999 .vendor = "Micron/Numonyx/ST",
8000 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8001 .bustype = BUS_SPI,
8002 .manufacture_id = ST_ID,
8003 .model_id = ST_N25Q064__3E,
8004 .total_size = 8192,
8005 .page_size = 256,
8006 /* supports SFDP */
8007 /* OTP: 64B total; read 0x4B, write 0x42 */
8008 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8009 .tested = TEST_OK_PREW,
8010 .probe = probe_spi_rdid,
8011 .probe_timing = TIMING_ZERO,
8012 .block_erasers =
8013 {
8014 {
8015 .eraseblocks = { {4 * 1024, 2048 } },
8016 .block_erase = spi_block_erase_20,
8017 }, {
8018 .eraseblocks = { {64 * 1024, 128} },
8019 .block_erase = spi_block_erase_d8,
8020 }, {
8021 .eraseblocks = { {8 * 1024 * 1024, 1} },
8022 .block_erase = spi_block_erase_c7,
8023 }
8024 },
8025 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8026 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8027 .write = spi_chip_write_256, /* Multi I/O supported */
8028 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8029 .voltage = {2700, 3600},
8030 },
8031
8032 {
8033 .vendor = "Micron/Numonyx/ST",
8034 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8035 .bustype = BUS_SPI,
8036 .manufacture_id = ST_ID,
8037 .model_id = ST_N25Q128__1E,
8038 .total_size = 16384,
8039 .page_size = 256,
8040 /* supports SFDP */
8041 /* OTP: 64B total; read 0x4B, write 0x42 */
8042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8043 .tested = TEST_UNTESTED,
8044 .probe = probe_spi_rdid,
8045 .probe_timing = TIMING_ZERO,
8046 .block_erasers = {
8047 {
8048 .eraseblocks = { {4 * 1024, 4096 } },
8049 .block_erase = spi_block_erase_20,
8050 }, {
8051 .eraseblocks = { {64 * 1024, 256} },
8052 .block_erase = spi_block_erase_d8,
8053 }, {
8054 .eraseblocks = { {16384 * 1024, 1} },
8055 .block_erase = spi_block_erase_c7,
8056 }
8057 },
8058 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8059 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8060 .write = spi_chip_write_256, /* Multi I/O supported */
8061 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8062 .voltage = {1700, 2000},
8063 },
8064
8065 {
8066 .vendor = "Micron/Numonyx/ST",
8067 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8068 .bustype = BUS_SPI,
8069 .manufacture_id = ST_ID,
8070 .model_id = ST_N25Q128__3E,
8071 .total_size = 16384,
8072 .page_size = 256,
8073 /* supports SFDP */
8074 /* OTP: 64B total; read 0x4B, write 0x42 */
8075 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8076 .tested = TEST_OK_PREW,
8077 .probe = probe_spi_rdid,
8078 .probe_timing = TIMING_ZERO,
8079 .block_erasers = {
8080 {
8081 .eraseblocks = { {4 * 1024, 4096 } },
8082 .block_erase = spi_block_erase_20,
8083 }, {
8084 .eraseblocks = { {64 * 1024, 256} },
8085 .block_erase = spi_block_erase_d8,
8086 }, {
8087 .eraseblocks = { {16384 * 1024, 1} },
8088 .block_erase = spi_block_erase_c7,
8089 }
8090 },
8091 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8092 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8093 .write = spi_chip_write_256, /* Multi I/O supported */
8094 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8095 .voltage = {2700, 3600},
8096 },
8097
8098 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008099 .vendor = "MoselVitelic",
8100 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008101 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008102 .manufacture_id = SYNCMOS_MVC_ID,
8103 .model_id = MVC_V29C51000B,
8104 .total_size = 64,
8105 .page_size = 512,
8106 .feature_bits = FEATURE_EITHER_RESET,
8107 .tested = TEST_UNTESTED,
8108 .probe = probe_jedec,
8109 .probe_timing = TIMING_ZERO,
8110 .block_erasers =
8111 {
8112 {
8113 .eraseblocks = { {512, 128} },
8114 .block_erase = erase_sector_jedec,
8115 }, {
8116 .eraseblocks = { {64 * 1024, 1} },
8117 .block_erase = erase_chip_block_jedec,
8118 },
8119 },
8120 .write = write_jedec_1,
8121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008122 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008123 },
8124
8125 {
8126 .vendor = "MoselVitelic",
8127 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008128 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008129 .manufacture_id = SYNCMOS_MVC_ID,
8130 .model_id = MVC_V29C51000T,
8131 .total_size = 64,
8132 .page_size = 512,
8133 .feature_bits = FEATURE_EITHER_RESET,
8134 .tested = TEST_UNTESTED,
8135 .probe = probe_jedec,
8136 .probe_timing = TIMING_ZERO,
8137 .block_erasers =
8138 {
8139 {
8140 .eraseblocks = { {512, 128} },
8141 .block_erase = erase_sector_jedec,
8142 }, {
8143 .eraseblocks = { {64 * 1024, 1} },
8144 .block_erase = erase_chip_block_jedec,
8145 },
8146 },
8147 .write = write_jedec_1,
8148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008149 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008150 },
8151
8152 {
8153 .vendor = "MoselVitelic",
8154 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008155 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008156 .manufacture_id = SYNCMOS_MVC_ID,
8157 .model_id = MVC_V29C51400B,
8158 .total_size = 512,
8159 .page_size = 1024,
8160 .feature_bits = FEATURE_EITHER_RESET,
8161 .tested = TEST_UNTESTED,
8162 .probe = probe_jedec,
8163 .probe_timing = TIMING_ZERO,
8164 .block_erasers =
8165 {
8166 {
8167 .eraseblocks = { {1024, 512} },
8168 .block_erase = erase_sector_jedec,
8169 }, {
8170 .eraseblocks = { {512 * 1024, 1} },
8171 .block_erase = erase_chip_block_jedec,
8172 },
8173 },
8174 .write = write_jedec_1,
8175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008176 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008177 },
8178
8179 {
8180 .vendor = "MoselVitelic",
8181 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008182 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008183 .manufacture_id = SYNCMOS_MVC_ID,
8184 .model_id = MVC_V29C51400T,
8185 .total_size = 512,
8186 .page_size = 1024,
8187 .feature_bits = FEATURE_EITHER_RESET,
8188 .tested = TEST_UNTESTED,
8189 .probe = probe_jedec,
8190 .probe_timing = TIMING_ZERO,
8191 .block_erasers =
8192 {
8193 {
8194 .eraseblocks = { {1024, 512} },
8195 .block_erase = erase_sector_jedec,
8196 }, {
8197 .eraseblocks = { {512 * 1024, 1} },
8198 .block_erase = erase_chip_block_jedec,
8199 },
8200 },
8201 .write = write_jedec_1,
8202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008203 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008204 },
8205
8206 {
8207 .vendor = "MoselVitelic",
8208 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008209 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008210 .manufacture_id = SYNCMOS_MVC_ID,
8211 .model_id = MVC_V29LC51000,
8212 .total_size = 64,
8213 .page_size = 512,
8214 .feature_bits = FEATURE_EITHER_RESET,
8215 .tested = TEST_UNTESTED,
8216 .probe = probe_jedec,
8217 .probe_timing = TIMING_ZERO,
8218 .block_erasers =
8219 {
8220 {
8221 .eraseblocks = { {512, 128} },
8222 .block_erase = erase_sector_jedec,
8223 }, {
8224 .eraseblocks = { {64 * 1024, 1} },
8225 .block_erase = erase_chip_block_jedec,
8226 },
8227 },
8228 .write = write_jedec_1,
8229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008230 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008231 },
8232
8233 {
8234 .vendor = "MoselVitelic",
8235 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008236 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008237 .manufacture_id = SYNCMOS_MVC_ID,
8238 .model_id = MVC_V29LC51001,
8239 .total_size = 128,
8240 .page_size = 512,
8241 .feature_bits = FEATURE_EITHER_RESET,
8242 .tested = TEST_UNTESTED,
8243 .probe = probe_jedec,
8244 .probe_timing = TIMING_ZERO,
8245 .block_erasers =
8246 {
8247 {
8248 .eraseblocks = { {512, 256} },
8249 .block_erase = erase_sector_jedec,
8250 }, {
8251 .eraseblocks = { {128 * 1024, 1} },
8252 .block_erase = erase_chip_block_jedec,
8253 },
8254 },
8255 .write = write_jedec_1,
8256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008257 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008258 },
8259
8260 {
8261 .vendor = "MoselVitelic",
8262 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008263 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008264 .manufacture_id = SYNCMOS_MVC_ID,
8265 .model_id = MVC_V29LC51002,
8266 .total_size = 256,
8267 .page_size = 512,
8268 .feature_bits = FEATURE_EITHER_RESET,
8269 .tested = TEST_UNTESTED,
8270 .probe = probe_jedec,
8271 .probe_timing = TIMING_ZERO,
8272 .block_erasers =
8273 {
8274 {
8275 .eraseblocks = { {512, 512} },
8276 .block_erase = erase_sector_jedec,
8277 }, {
8278 .eraseblocks = { {256 * 1024, 1} },
8279 .block_erase = erase_chip_block_jedec,
8280 },
8281 },
8282 .write = write_jedec_1,
8283 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008284 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008285 },
8286
8287 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008288 .vendor = "Nantronics",
8289 .name = "N25S10",
8290 .bustype = BUS_SPI,
8291 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8292 .model_id = NANTRONICS_N25S10,
8293 .total_size = 128,
8294 .page_size = 256,
8295 .feature_bits = FEATURE_WRSR_WREN,
8296 .tested = TEST_UNTESTED,
8297 .probe = probe_spi_rdid,
8298 .probe_timing = TIMING_ZERO,
8299 .block_erasers =
8300 {
8301 {
8302 .eraseblocks = { {4 * 1024, 32} },
8303 .block_erase = spi_block_erase_20,
8304 }, {
8305 .eraseblocks = { {4 * 1024, 32} },
8306 .block_erase = spi_block_erase_d7,
8307 }, {
8308 .eraseblocks = { {32 * 1024, 4} },
8309 .block_erase = spi_block_erase_52,
8310 }, {
8311 .eraseblocks = { {64 * 1024, 2} },
8312 .block_erase = spi_block_erase_d8,
8313 }, {
8314 .eraseblocks = { {128 * 1024, 1} },
8315 .block_erase = spi_block_erase_60,
8316 }, {
8317 .eraseblocks = { {128 * 1024, 1} },
8318 .block_erase = spi_block_erase_c7,
8319 }
8320 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008321 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008322 .unlock = spi_disable_blockprotect_bp3_srwd,
8323 .write = spi_chip_write_256,
8324 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8325 .voltage = {2700, 3600},
8326 },
8327
8328 {
8329 .vendor = "Nantronics",
8330 .name = "N25S20",
8331 .bustype = BUS_SPI,
8332 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8333 .model_id = NANTRONICS_N25S20,
8334 .total_size = 256,
8335 .page_size = 256,
8336 .feature_bits = FEATURE_WRSR_WREN,
8337 .tested = TEST_UNTESTED,
8338 .probe = probe_spi_rdid,
8339 .probe_timing = TIMING_ZERO,
8340 .block_erasers =
8341 {
8342 {
8343 .eraseblocks = { {4 * 1024, 64} },
8344 .block_erase = spi_block_erase_20,
8345 }, {
8346 .eraseblocks = { {4 * 1024, 64} },
8347 .block_erase = spi_block_erase_d7,
8348 }, {
8349 .eraseblocks = { {32 * 1024, 8} },
8350 .block_erase = spi_block_erase_52,
8351 }, {
8352 .eraseblocks = { {64 * 1024, 4} },
8353 .block_erase = spi_block_erase_d8,
8354 }, {
8355 .eraseblocks = { {256 * 1024, 1} },
8356 .block_erase = spi_block_erase_60,
8357 }, {
8358 .eraseblocks = { {256 * 1024, 1} },
8359 .block_erase = spi_block_erase_c7,
8360 }
8361 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008362 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008363 .unlock = spi_disable_blockprotect_bp3_srwd,
8364 .write = spi_chip_write_256,
8365 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8366 .voltage = {2700, 3600},
8367 },
8368
8369 {
8370 .vendor = "Nantronics",
8371 .name = "N25S40",
8372 .bustype = BUS_SPI,
8373 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8374 .model_id = NANTRONICS_N25S40,
8375 .total_size = 512,
8376 .page_size = 256,
8377 .feature_bits = FEATURE_WRSR_WREN,
8378 .tested = TEST_UNTESTED,
8379 .probe = probe_spi_rdid,
8380 .probe_timing = TIMING_ZERO,
8381 .block_erasers =
8382 {
8383 {
8384 .eraseblocks = { {4 * 1024, 128} },
8385 .block_erase = spi_block_erase_20,
8386 }, {
8387 .eraseblocks = { {4 * 1024, 128} },
8388 .block_erase = spi_block_erase_d7,
8389 }, {
8390 .eraseblocks = { {32 * 1024, 16} },
8391 .block_erase = spi_block_erase_52,
8392 }, {
8393 .eraseblocks = { {64 * 1024, 8} },
8394 .block_erase = spi_block_erase_d8,
8395 }, {
8396 .eraseblocks = { {512 * 1024, 1} },
8397 .block_erase = spi_block_erase_60,
8398 }, {
8399 .eraseblocks = { {512 * 1024, 1} },
8400 .block_erase = spi_block_erase_c7,
8401 }
8402 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008403 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008404 .unlock = spi_disable_blockprotect_bp3_srwd,
8405 .write = spi_chip_write_256,
8406 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8407 .voltage = {2700, 3600},
8408 },
8409
8410 {
8411 .vendor = "Nantronics",
8412 .name = "N25S80",
8413 .bustype = BUS_SPI,
8414 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8415 .model_id = NANTRONICS_N25S80,
8416 .total_size = 1024,
8417 .page_size = 256,
8418 .feature_bits = FEATURE_WRSR_WREN,
8419 .tested = TEST_UNTESTED,
8420 .probe = probe_spi_rdid,
8421 .probe_timing = TIMING_ZERO,
8422 .block_erasers =
8423 {
8424 {
8425 .eraseblocks = { {4 * 1024, 256} },
8426 .block_erase = spi_block_erase_20,
8427 }, {
8428 .eraseblocks = { {32 * 1024, 32} },
8429 .block_erase = spi_block_erase_52,
8430 }, {
8431 .eraseblocks = { {64 * 1024, 16} },
8432 .block_erase = spi_block_erase_d8,
8433 }, {
8434 .eraseblocks = { {1024 * 1024, 1} },
8435 .block_erase = spi_block_erase_60,
8436 }, {
8437 .eraseblocks = { {1024 * 1024, 1} },
8438 .block_erase = spi_block_erase_c7,
8439 }
8440 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008441 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008442 .unlock = spi_disable_blockprotect_bp3_srwd,
8443 .write = spi_chip_write_256,
8444 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8445 .voltage = {2700, 3600},
8446 },
8447
8448 {
8449 .vendor = "Nantronics",
8450 .name = "N25S16",
8451 .bustype = BUS_SPI,
8452 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8453 .model_id = NANTRONICS_N25S16,
8454 .total_size = 2048,
8455 .page_size = 256,
8456 .feature_bits = FEATURE_WRSR_WREN,
8457 .tested = TEST_UNTESTED,
8458 .probe = probe_spi_rdid,
8459 .probe_timing = TIMING_ZERO,
8460 .block_erasers =
8461 {
8462 {
8463 .eraseblocks = { {4 * 1024, 512} },
8464 .block_erase = spi_block_erase_20,
8465 }, {
8466 .eraseblocks = { {64 * 1024, 32} },
8467 .block_erase = spi_block_erase_d8,
8468 }, {
8469 .eraseblocks = { {2048 * 1024, 1} },
8470 .block_erase = spi_block_erase_60,
8471 }, {
8472 .eraseblocks = { {2048 * 1024, 1} },
8473 .block_erase = spi_block_erase_c7,
8474 }
8475 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008476 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008477 .unlock = spi_disable_blockprotect_bp3_srwd,
8478 .write = spi_chip_write_256,
8479 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8480 .voltage = {2700, 3600},
8481 },
8482
8483 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008484 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008485 .name = "Pm25LD256C",
8486 .bustype = BUS_SPI,
8487 .manufacture_id = PMC_ID,
8488 .model_id = PMC_PM25LD256C,
8489 .total_size = 32,
8490 .page_size = 256,
8491 .feature_bits = FEATURE_WRSR_WREN,
8492 .tested = TEST_UNTESTED,
8493 .probe = probe_spi_rdid,
8494 .probe_timing = TIMING_ZERO,
8495 .block_erasers =
8496 {
8497 {
8498 .eraseblocks = { {4 * 1024, 8} },
8499 .block_erase = spi_block_erase_20,
8500 }, {
8501 .eraseblocks = { {4 * 1024, 8} },
8502 .block_erase = spi_block_erase_d7,
8503 }, {
8504 .eraseblocks = { {32 * 1024, 1} },
8505 .block_erase = spi_block_erase_d8,
8506 }, {
8507 .eraseblocks = { {32 * 1024, 1} },
8508 .block_erase = spi_block_erase_60,
8509 }, {
8510 .eraseblocks = { {32 * 1024, 1} },
8511 .block_erase = spi_block_erase_c7,
8512 }
8513 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008514 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008515 .unlock = spi_disable_blockprotect,
8516 .write = spi_chip_write_256,
8517 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8518 .voltage = {2700, 3600},
8519 },
8520 {
8521 .vendor = "PMC",
8522 .name = "Pm25LD512(C)",
8523 .bustype = BUS_SPI,
8524 .manufacture_id = PMC_ID,
8525 .model_id = PMC_PM25LD512,
8526 .total_size = 64,
8527 .page_size = 256,
8528 .feature_bits = FEATURE_WRSR_WREN,
8529 .tested = TEST_OK_PREW,
8530 .probe = probe_spi_rdid,
8531 .probe_timing = TIMING_ZERO,
8532 .block_erasers =
8533 {
8534 {
8535 .eraseblocks = { {4 * 1024, 16} },
8536 .block_erase = spi_block_erase_20,
8537 }, {
8538 .eraseblocks = { {4 * 1024, 16} },
8539 .block_erase = spi_block_erase_d7,
8540 }, {
8541 .eraseblocks = { {32 * 1024, 2} },
8542 .block_erase = spi_block_erase_d8,
8543 }, {
8544 .eraseblocks = { {64 * 1024, 1} },
8545 .block_erase = spi_block_erase_60,
8546 }, {
8547 .eraseblocks = { {64 * 1024, 1} },
8548 .block_erase = spi_block_erase_c7,
8549 }
8550 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008551 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008552 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8553 .write = spi_chip_write_256,
8554 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8555 .voltage = {2300, 3600},
8556 },
8557
8558 {
8559 .vendor = "PMC",
8560 .name = "Pm25LD010(C)",
8561 .bustype = BUS_SPI,
8562 .manufacture_id = PMC_ID,
8563 .model_id = PMC_PM25LD010,
8564 .total_size = 128,
8565 .page_size = 256,
8566 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008567 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008568 .probe = probe_spi_rdid,
8569 .probe_timing = TIMING_ZERO,
8570 .block_erasers =
8571 {
8572 {
8573 .eraseblocks = { {4 * 1024, 32} },
8574 .block_erase = spi_block_erase_20,
8575 }, {
8576 .eraseblocks = { {4 * 1024, 32} },
8577 .block_erase = spi_block_erase_d7,
8578 }, {
8579 .eraseblocks = { {32 * 1024, 4} },
8580 .block_erase = spi_block_erase_d8,
8581 }, {
8582 .eraseblocks = { {128 * 1024, 1} },
8583 .block_erase = spi_block_erase_60,
8584 }, {
8585 .eraseblocks = { {128 * 1024, 1} },
8586 .block_erase = spi_block_erase_c7,
8587 }
8588 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008589 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008590 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8591 .write = spi_chip_write_256,
8592 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8593 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8594 },
8595
8596 {
8597 .vendor = "PMC",
8598 .name = "Pm25LD020(C)",
8599 .bustype = BUS_SPI,
8600 .manufacture_id = PMC_ID,
8601 .model_id = PMC_PM25LD020,
8602 .total_size = 256,
8603 .page_size = 256,
8604 .feature_bits = FEATURE_WRSR_WREN,
8605 .tested = TEST_UNTESTED,
8606 .probe = probe_spi_rdid,
8607 .probe_timing = TIMING_ZERO,
8608 .block_erasers =
8609 {
8610 {
8611 .eraseblocks = { {4 * 1024, 64} },
8612 .block_erase = spi_block_erase_20,
8613 }, {
8614 .eraseblocks = { {4 * 1024, 64} },
8615 .block_erase = spi_block_erase_d7,
8616 }, {
8617 .eraseblocks = { {64 * 1024, 4} },
8618 .block_erase = spi_block_erase_d8,
8619 }, {
8620 .eraseblocks = { {256 * 1024, 1} },
8621 .block_erase = spi_block_erase_60,
8622 }, {
8623 .eraseblocks = { {256 * 1024, 1} },
8624 .block_erase = spi_block_erase_c7,
8625 }
8626 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008627 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008628 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8629 .write = spi_chip_write_256,
8630 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8631 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8632 },
8633
8634 {
8635 .vendor = "PMC",
8636 .name = "Pm25LD040(C)",
8637 .bustype = BUS_SPI,
8638 .manufacture_id = PMC_ID,
8639 .model_id = PMC_PM25LV040,
8640 .total_size = 512,
8641 .page_size = 256,
8642 .feature_bits = FEATURE_WRSR_WREN,
8643 .tested = TEST_UNTESTED,
8644 .probe = probe_spi_rdid,
8645 .probe_timing = TIMING_ZERO,
8646 .block_erasers =
8647 {
8648 {
8649 .eraseblocks = { {4 * 1024, 128} },
8650 .block_erase = spi_block_erase_20,
8651 }, {
8652 .eraseblocks = { {4 * 1024, 128} },
8653 .block_erase = spi_block_erase_d7,
8654 }, {
8655 .eraseblocks = { {64 * 1024, 8} },
8656 .block_erase = spi_block_erase_d8,
8657 }, {
8658 .eraseblocks = { {512 * 1024, 1} },
8659 .block_erase = spi_block_erase_60,
8660 }, {
8661 .eraseblocks = { {512 * 1024, 1} },
8662 .block_erase = spi_block_erase_c7,
8663 }
8664 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008665 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008666 .unlock = spi_disable_blockprotect,
8667 .write = spi_chip_write_256,
8668 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8669 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8670 },
8671
8672{
8673 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008674 .name = "Pm25LV512(A)",
8675 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008676 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008677 .model_id = PMC_PM25LV512,
8678 .total_size = 64,
8679 .page_size = 256,
8680 .feature_bits = FEATURE_WRSR_WREN,
8681 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00008682 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008683 .probe_timing = TIMING_ZERO,
8684 .block_erasers =
8685 {
8686 {
8687 .eraseblocks = { {4 * 1024, 16} },
8688 .block_erase = spi_block_erase_d7,
8689 }, {
8690 .eraseblocks = { {32 * 1024, 2} },
8691 .block_erase = spi_block_erase_d8,
8692 }, {
8693 .eraseblocks = { {64 * 1024, 1} },
8694 .block_erase = spi_block_erase_c7,
8695 }
8696 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008697 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008698 .unlock = spi_disable_blockprotect,
8699 .write = spi_chip_write_256,
8700 .read = spi_chip_read, /* Fast read (0x0B) supported */
8701 .voltage = {2700, 3600},
8702 },
8703
8704 {
8705 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008706 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008707 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008708 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008709 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008710 .total_size = 128,
8711 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008712 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00008713 .tested = TEST_OK_PREW,
8714 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008715 .probe_timing = TIMING_ZERO,
8716 .block_erasers =
8717 {
8718 {
8719 .eraseblocks = { {4 * 1024, 32} },
8720 .block_erase = spi_block_erase_d7,
8721 }, {
8722 .eraseblocks = { {32 * 1024, 4} },
8723 .block_erase = spi_block_erase_d8,
8724 }, {
8725 .eraseblocks = { {128 * 1024, 1} },
8726 .block_erase = spi_block_erase_c7,
8727 }
8728 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008729 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008730 .unlock = spi_disable_blockprotect,
8731 .write = spi_chip_write_256,
8732 .read = spi_chip_read, /* Fast read (0x0B) supported */
8733 .voltage = {2700, 3600},
8734 },
8735
8736 {
8737 .vendor = "PMC",
8738 .name = "Pm25LV010A",
8739 .bustype = BUS_SPI,
8740 .manufacture_id = PMC_ID,
8741 .model_id = PMC_PM25LV010,
8742 .total_size = 128,
8743 .page_size = 256,
8744 .feature_bits = FEATURE_WRSR_WREN,
8745 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008746 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008747 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008748 .block_erasers =
8749 {
8750 {
8751 .eraseblocks = { {4 * 1024, 32} },
8752 .block_erase = spi_block_erase_d7,
8753 }, {
8754 .eraseblocks = { {32 * 1024, 4} },
8755 .block_erase = spi_block_erase_d8,
8756 }, {
8757 .eraseblocks = { {128 * 1024, 1} },
8758 .block_erase = spi_block_erase_c7,
8759 }
8760 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008761 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008762 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008763 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008764 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008765 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008766 },
8767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008768 {
8769 .vendor = "PMC",
8770 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008771 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008772 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008773 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008774 .total_size = 256,
8775 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008776 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008777 .tested = TEST_UNTESTED,
8778 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008779 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008780 .block_erasers =
8781 {
8782 {
8783 .eraseblocks = { {4 * 1024, 64} },
8784 .block_erase = spi_block_erase_d7,
8785 }, {
8786 .eraseblocks = { {64 * 1024, 4} },
8787 .block_erase = spi_block_erase_d8,
8788 }, {
8789 .eraseblocks = { {256 * 1024, 1} },
8790 .block_erase = spi_block_erase_c7,
8791 }
8792 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008793 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008794 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008795 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008796 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008797 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008798 },
8799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008800 {
8801 .vendor = "PMC",
8802 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008803 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008804 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008805 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 .total_size = 512,
8807 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008808 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008809 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008811 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008812 .block_erasers =
8813 {
8814 {
8815 .eraseblocks = { {4 * 1024, 128} },
8816 .block_erase = spi_block_erase_d7,
8817 }, {
8818 .eraseblocks = { {64 * 1024, 8} },
8819 .block_erase = spi_block_erase_d8,
8820 }, {
8821 .eraseblocks = { {512 * 1024, 1} },
8822 .block_erase = spi_block_erase_c7,
8823 }
8824 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008825 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008826 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008827 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008828 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008829 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008830 },
8831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008832 {
8833 .vendor = "PMC",
8834 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008835 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008836 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008837 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008838 .total_size = 1024,
8839 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008840 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008841 .tested = TEST_UNTESTED,
8842 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008843 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008844 .block_erasers =
8845 {
8846 {
8847 .eraseblocks = { {4 * 1024, 256} },
8848 .block_erase = spi_block_erase_d7,
8849 }, {
8850 .eraseblocks = { {4 * 1024, 256} },
8851 .block_erase = spi_block_erase_20,
8852 }, {
8853 .eraseblocks = { {64 * 1024, 16} },
8854 .block_erase = spi_block_erase_d8,
8855 }, {
8856 .eraseblocks = { {1024 * 1024, 1} },
8857 .block_erase = spi_block_erase_60,
8858 }, {
8859 .eraseblocks = { {1024 * 1024, 1} },
8860 .block_erase = spi_block_erase_c7,
8861 }
8862 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008863 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008864 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008865 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008866 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008867 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008868 },
8869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008870 {
8871 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008872 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008873 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008874 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008875 .model_id = PMC_PM25LV016B,
8876 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008877 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008878 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008879 .tested = TEST_UNTESTED,
8880 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008881 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008882 .block_erasers =
8883 {
8884 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008885 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008886 .block_erase = spi_block_erase_d7,
8887 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008888 .eraseblocks = { {4 * 1024, 512} },
8889 .block_erase = spi_block_erase_20,
8890 }, {
8891 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008892 .block_erase = spi_block_erase_d8,
8893 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008894 .eraseblocks = { {2 * 1024 * 1024, 1} },
8895 .block_erase = spi_block_erase_60,
8896 }, {
8897 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008898 .block_erase = spi_block_erase_c7,
8899 }
8900 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008901 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008902 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008903 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008904 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008905 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008906 },
8907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008908 {
8909 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008910 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008911 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008912 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008913 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008914 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008915 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008916 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008917 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008918 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008919 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008920 .block_erasers =
8921 {
8922 {
8923 .eraseblocks = {
8924 {128 * 1024, 1},
8925 {96 * 1024, 1},
8926 {8 * 1024, 2},
8927 {16 * 1024, 1},
8928 },
Sean Nelson35727f72010-01-28 23:55:12 +00008929 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008930 }, {
8931 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008932 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008933 },
8934 },
Sean Nelson35727f72010-01-28 23:55:12 +00008935 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008937 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008938 },
8939
8940 {
8941 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008942 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008943 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008944 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008945 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008946 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008947 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008948 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008949 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008950 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008951 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008952 .block_erasers =
8953 {
8954 {
8955 .eraseblocks = {
8956 {16 * 1024, 1},
8957 {8 * 1024, 2},
8958 {96 * 1024, 1},
8959 {128 * 1024, 1},
8960 },
Sean Nelson35727f72010-01-28 23:55:12 +00008961 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008962 }, {
8963 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008964 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008965 },
8966 },
Sean Nelson35727f72010-01-28 23:55:12 +00008967 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008969 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008970 },
8971
8972 {
8973 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008974 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008975 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008976 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008977 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008978 .total_size = 128,
8979 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008980 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008981 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008982 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008983 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008984 .block_erasers =
8985 {
8986 {
8987 .eraseblocks = { {4 * 1024, 32} },
8988 .block_erase = erase_sector_jedec,
8989 }, {
8990 .eraseblocks = { {64 * 1024, 2} },
8991 .block_erase = erase_block_jedec,
8992 }, {
8993 .eraseblocks = { {128 * 1024, 1} },
8994 .block_erase = erase_chip_block_jedec,
8995 }
8996 },
Sean Nelson35727f72010-01-28 23:55:12 +00008997 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008999 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009000 },
9001
9002 {
9003 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009004 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009005 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009006 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009007 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009008 .total_size = 256,
9009 .page_size = 4096,
9010 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9011 .tested = TEST_UNTESTED,
9012 .probe = probe_jedec,
9013 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9014 .block_erasers =
9015 {
9016 {
9017 .eraseblocks = { {4 * 1024, 64} },
9018 .block_erase = erase_sector_jedec,
9019 }, {
9020 .eraseblocks = { {64 * 1024, 4} },
9021 .block_erase = erase_block_jedec,
9022 }, {
9023 .eraseblocks = { {256 * 1024, 1} },
9024 .block_erase = erase_chip_block_jedec,
9025 }
9026 },
9027 .write = write_jedec_1,
9028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009029 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009030 },
9031
9032 {
9033 .vendor = "PMC",
9034 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009035 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009036 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009037 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009038 .total_size = 512,
9039 .page_size = 4096,
9040 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009041 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009042 .probe = probe_jedec,
9043 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9044 .block_erasers =
9045 {
9046 {
9047 .eraseblocks = { {4 * 1024, 128} },
9048 .block_erase = erase_sector_jedec,
9049 }, {
9050 .eraseblocks = { {64 * 1024, 8} },
9051 .block_erase = erase_block_jedec,
9052 }, {
9053 .eraseblocks = { {512 * 1024, 1} },
9054 .block_erase = erase_chip_block_jedec,
9055 }
9056 },
9057 .write = write_jedec_1,
9058 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009059 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009060 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009061
9062 {
9063 .vendor = "PMC",
9064 .name = "Pm39LV512",
9065 .bustype = BUS_PARALLEL,
9066 .manufacture_id = PMC_ID_NOPREFIX,
9067 .model_id = PMC_PM39LV512,
9068 .total_size = 64,
9069 .page_size = 4096,
9070 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9071 .tested = TEST_OK_PREW,
9072 .probe = probe_jedec,
9073 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9074 .block_erasers =
9075 {
9076 {
9077 .eraseblocks = { {4 * 1024, 16} },
9078 .block_erase = erase_sector_jedec,
9079 }, {
9080 .eraseblocks = { {64 * 1024, 1} },
9081 .block_erase = erase_block_jedec,
9082 }, {
9083 .eraseblocks = { {64 * 1024, 1} },
9084 .block_erase = erase_chip_block_jedec,
9085 }
9086 },
9087 .write = write_jedec_1,
9088 .read = read_memmapped,
9089 .voltage = {2700, 3600},
9090 },
9091
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009092 {
9093 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009094 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009095 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009096 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009097 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009098 .total_size = 256,
9099 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009100 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00009101 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009102 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009103 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009104 .block_erasers =
9105 {
9106 {
9107 .eraseblocks = { {4 * 1024, 64} },
9108 .block_erase = erase_sector_jedec,
9109 }, {
9110 .eraseblocks = { {16 * 1024, 16} },
9111 .block_erase = erase_block_jedec,
9112 }, {
9113 .eraseblocks = { {256 * 1024, 1} },
9114 .block_erase = erase_chip_block_jedec,
9115 }
9116 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009117 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009120 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009121 },
9122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009123 {
9124 .vendor = "PMC",
9125 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009126 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009127 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009128 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009129 .total_size = 512,
9130 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009131 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009132 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009133 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009134 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009135 .block_erasers =
9136 {
9137 {
9138 .eraseblocks = { {4 * 1024, 128} },
9139 .block_erase = erase_sector_jedec,
9140 }, {
9141 .eraseblocks = { {64 * 1024, 8} },
9142 .block_erase = erase_block_jedec,
9143 }, {
9144 .eraseblocks = { {512 * 1024, 1} },
9145 .block_erase = erase_chip_block_jedec,
9146 }
9147 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009148 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009149 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009151 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009152 },
9153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009154 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009155 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009156 .name = "LE25FW106",
9157 .bustype = BUS_SPI,
9158 .manufacture_id = SANYO_ID,
9159 .model_id = SANYO_LE25FW106,
9160 .total_size = 128,
9161 .page_size = 256,
9162 .feature_bits = FEATURE_WRSR_WREN,
9163 .tested = TEST_OK_PREW,
9164 .probe = probe_spi_res2,
9165 .probe_timing = TIMING_ZERO,
9166 .block_erasers = {
9167 {
9168 .eraseblocks = { {2 * 1024, 64} },
9169 .block_erase = spi_block_erase_d7,
9170 }, {
9171 .eraseblocks = { {32 * 1024, 4} },
9172 .block_erase = spi_block_erase_d8,
9173 }, {
9174 .eraseblocks = { {128 * 1024, 1} },
9175 .block_erase = spi_block_erase_c7,
9176 }
9177 },
9178 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9179 .unlock = spi_disable_blockprotect_bp1_srwd,
9180 .write = spi_chip_write_256,
9181 .read = spi_chip_read,
9182 .voltage = {2700, 3600},
9183 },
9184
9185 {
9186 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009187 .name = "LE25FW406A",
9188 .bustype = BUS_SPI,
9189 .manufacture_id = SANYO_ID,
9190 .model_id = SANYO_LE25FW406A,
9191 .total_size = 512,
9192 .page_size = 256,
9193 .feature_bits = FEATURE_WRSR_WREN,
9194 .tested = TEST_OK_PREW,
9195 .probe = probe_spi_res2,
9196 .probe_timing = TIMING_ZERO,
9197 .block_erasers = {
9198 {
9199 .eraseblocks = { {4 * 1024, 128} },
9200 .block_erase = spi_block_erase_d7,
9201 }, {
9202 .eraseblocks = { {64 * 1024, 8} },
9203 .block_erase = spi_block_erase_d8,
9204 }, {
9205 .eraseblocks = { {512 * 1024, 1} },
9206 .block_erase = spi_block_erase_c7,
9207 }
9208 },
9209 .printlock = spi_prettyprint_status_register_plain,
9210 .unlock = spi_disable_blockprotect,
9211 .write = spi_chip_write_256,
9212 .read = spi_chip_read,
9213 .voltage = {2700, 3600},
9214 },
9215
9216 {
9217 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009218 .name = "LE25FU406B",
9219 .bustype = BUS_SPI,
9220 .manufacture_id = SANYO_ID,
9221 .model_id = SANYO_LE25FU406B,
9222 .total_size = 512,
9223 .page_size = 256,
9224 .feature_bits = FEATURE_WRSR_WREN,
9225 .tested = TEST_OK_PREW,
9226 .probe = probe_spi_res2,
9227 .probe_timing = TIMING_ZERO,
9228 .block_erasers = {
9229 {
9230 .eraseblocks = { {4 * 1024, 128} },
9231 .block_erase = spi_block_erase_d7,
9232 }, {
9233 .eraseblocks = { {64 * 1024, 8} },
9234 .block_erase = spi_block_erase_d8,
9235 }, {
9236 .eraseblocks = { {512 * 1024, 1} },
9237 .block_erase = spi_block_erase_c7,
9238 }
9239 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009240 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009241 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9242 .write = spi_chip_write_256,
9243 .read = spi_chip_read,
9244 .voltage = {2300, 3600},
9245 },
9246
9247 {
9248 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009249 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009250 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009251 .manufacture_id = SANYO_ID,
9252 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009253 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009254 .page_size = 256,
9255 .tested = TEST_UNTESTED,
9256 .probe = probe_spi_rdid,
9257 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009258 .block_erasers =
9259 {
9260 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009261 .eraseblocks = { {256, 1024} },
9262 .block_erase = spi_block_erase_db,
9263 }, {
9264 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009265 .block_erase = spi_block_erase_d8,
9266 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009267 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009268 .block_erase = spi_block_erase_c7,
9269 }
9270 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009271 .printlock = spi_prettyprint_status_register_default_welwip,
9272 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009273 .write = spi_chip_write_256,
9274 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009275 .voltage = {2700, 3600},
9276 },
9277
9278 {
9279 .vendor = "Sanyo",
9280 .name = "LE25FW403A",
9281 .bustype = BUS_SPI,
9282 .manufacture_id = SANYO_ID,
9283 .model_id = SANYO_LE25FW403A,
9284 .total_size = 512,
9285 .page_size = 256,
9286 .tested = TEST_UNTESTED,
9287 .probe = probe_spi_rdid,
9288 .probe_timing = TIMING_ZERO,
9289 .block_erasers = {
9290 {
9291 .eraseblocks = { {256, 2 * 1024} },
9292 .block_erase = spi_block_erase_db,
9293 }, {
9294 .eraseblocks = { {64 * 1024, 8} },
9295 .block_erase = spi_block_erase_d8,
9296 }, {
9297 .eraseblocks = { {512 * 1024, 1} },
9298 .block_erase = spi_block_erase_c7,
9299 }
9300 },
9301 .printlock = spi_prettyprint_status_register_default_welwip,
9302 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9303 .write = spi_chip_write_256,
9304 .read = spi_chip_read,
9305 .voltage = {2700, 3600},
9306 },
9307
9308 {
9309 .vendor = "Sanyo",
9310 .name = "LE25FW418A",
9311 .bustype = BUS_SPI,
9312 .manufacture_id = SANYO_ID,
9313 .model_id = SANYO_LE25FW418A,
9314 .total_size = 512,
9315 .page_size = 256,
9316 .feature_bits = FEATURE_WRSR_WREN,
9317 .tested = TEST_UNTESTED,
9318 .probe = probe_spi_res2,
9319 .probe_timing = TIMING_ZERO,
9320 .block_erasers = {
9321 {
9322 .eraseblocks = { {4 * 1024, 128} },
9323 .block_erase = spi_block_erase_d7,
9324 }, {
9325 .eraseblocks = { {64 * 1024, 8} },
9326 .block_erase = spi_block_erase_d8,
9327 }, {
9328 .eraseblocks = { {512 * 1024, 1} },
9329 .block_erase = spi_block_erase_c7,
9330 }
9331 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009332 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009333 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9334 .write = spi_chip_write_256,
9335 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9336 .voltage = {2700, 3600},
9337 },
9338
9339 {
9340 .vendor = "Sanyo",
9341 .name = "LE25FW806",
9342 .bustype = BUS_SPI,
9343 .manufacture_id = SANYO_ID,
9344 .model_id = SANYO_LE25FW806,
9345 .total_size = 1024,
9346 .page_size = 256,
9347 .feature_bits = FEATURE_WRSR_WREN,
9348 .tested = TEST_UNTESTED,
9349 .probe = probe_spi_res2,
9350 .probe_timing = TIMING_ZERO,
9351 .block_erasers = {
9352 {
9353 .eraseblocks = { {4 * 1024, 256} },
9354 .block_erase = spi_block_erase_20,
9355 }, {
9356 .eraseblocks = { {4 * 1024, 256} },
9357 .block_erase = spi_block_erase_d7,
9358 }, {
9359 .eraseblocks = { {64 * 1024, 16} },
9360 .block_erase = spi_block_erase_d8,
9361 }, {
9362 .eraseblocks = { {1024 * 1024, 1} },
9363 .block_erase = spi_block_erase_c7,
9364 }
9365 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009366 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009367 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9368 .write = spi_chip_write_256,
9369 .read = spi_chip_read,
9370 .voltage = {2700, 3600},
9371 },
9372
9373 {
9374 .vendor = "Sanyo",
9375 .name = "LE25FW808",
9376 .bustype = BUS_SPI,
9377 .manufacture_id = SANYO_ID,
9378 .model_id = SANYO_LE25FW808,
9379 .total_size = 1024,
9380 .page_size = 256,
9381 .feature_bits = FEATURE_WRSR_WREN,
9382 .tested = TEST_UNTESTED,
9383 .probe = probe_spi_res2,
9384 .probe_timing = TIMING_ZERO,
9385 .block_erasers = {
9386 {
9387 .eraseblocks = { {8 * 1024, 128} },
9388 .block_erase = spi_block_erase_d7,
9389 }, {
9390 .eraseblocks = { {64 * 1024, 16} },
9391 .block_erase = spi_block_erase_d8,
9392 }, {
9393 .eraseblocks = { {1024 * 1024, 1} },
9394 .block_erase = spi_block_erase_c7,
9395 }
9396 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009397 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009398 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9399 .write = spi_chip_write_256,
9400 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9401 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009402 },
9403
9404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009405 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009406 .name = "LH28F008BJT-BTLZ1",
9407 .bustype = BUS_PARALLEL,
9408 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009409 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009410 .total_size = 1024,
9411 .page_size = 64 * 1024,
9412 .tested = TEST_OK_PREW,
9413 .probe = probe_82802ab,
9414 .probe_timing = TIMING_ZERO,
9415 .block_erasers =
9416 {
9417 {
9418 .eraseblocks = {
9419 {8 * 1024, 8},
9420 {64 * 1024, 15}
9421 },
9422 .block_erase = erase_block_82802ab,
9423 }, {
9424 .eraseblocks = { {1024 * 1024, 1} },
9425 .block_erase = erase_sector_49lfxxxc,
9426 }
9427 },
9428 .unlock = unlock_lh28f008bjt,
9429 .write = write_82802ab,
9430 .read = read_memmapped,
9431 .voltage = {2700, 3600},
9432 },
9433
9434 {
9435 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009436 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009437 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009438 .manufacture_id = SHARP_ID,
9439 .model_id = SHARP_LHF00L04,
9440 .total_size = 1024,
9441 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009442 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009443 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009444 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009445 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009446 .block_erasers =
9447 {
9448 {
9449 .eraseblocks = {
9450 {64 * 1024, 15},
9451 {8 * 1024, 8}
9452 },
Sean Nelson28accc22010-03-19 18:47:06 +00009453 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009454 }, {
9455 .eraseblocks = {
9456 {1024 * 1024, 1}
9457 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009458 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009459 },
9460 },
Sean Nelson28accc22010-03-19 18:47:06 +00009461 .unlock = unlock_82802ab,
9462 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009464 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009465 },
9466
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009467 {
9468 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009469 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009470 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009471 .manufacture_id = SPANSION_ID,
9472 .model_id = SPANSION_S25FL004A,
9473 .total_size = 512,
9474 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009475 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009476 .tested = TEST_UNTESTED,
9477 .probe = probe_spi_rdid,
9478 .probe_timing = TIMING_ZERO,
9479 .block_erasers =
9480 {
9481 {
9482 .eraseblocks = { {64 * 1024, 8} },
9483 .block_erase = spi_block_erase_d8,
9484 }, {
9485 .eraseblocks = { {512 * 1024, 1} },
9486 .block_erase = spi_block_erase_c7,
9487 }
9488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009490 .unlock = spi_disable_blockprotect,
9491 .write = spi_chip_write_256,
9492 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009493 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009494 },
9495
9496 {
9497 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009498 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009499 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009500 .manufacture_id = SPANSION_ID,
9501 .model_id = SPANSION_S25FL008A,
9502 .total_size = 1024,
9503 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009504 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009505 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009506 .probe = probe_spi_rdid,
9507 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009508 .block_erasers =
9509 {
9510 {
9511 .eraseblocks = { {64 * 1024, 16} },
9512 .block_erase = spi_block_erase_d8,
9513 }, {
9514 .eraseblocks = { {1024 * 1024, 1} },
9515 .block_erase = spi_block_erase_c7,
9516 }
9517 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009518 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009519 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009520 .write = spi_chip_write_256,
9521 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009522 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009523 },
9524
9525 {
9526 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009527 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009528 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009529 .manufacture_id = SPANSION_ID,
9530 .model_id = SPANSION_S25FL016A,
9531 .total_size = 2048,
9532 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009533 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009534 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009535 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009536 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009537 .block_erasers =
9538 {
9539 {
9540 .eraseblocks = { {64 * 1024, 32} },
9541 .block_erase = spi_block_erase_d8,
9542 }, {
9543 .eraseblocks = { {2 * 1024 * 1024, 1} },
9544 .block_erase = spi_block_erase_c7,
9545 }
9546 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009547 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009548 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009549 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009550 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009552 },
9553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009554 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009555 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009556 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009557 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009558 .manufacture_id = SPANSION_ID,
9559 .model_id = SPANSION_S25FL032A,
9560 .total_size = 4096,
9561 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009562 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009563 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009564 .probe = probe_spi_rdid,
9565 .probe_timing = TIMING_ZERO,
9566 .block_erasers =
9567 {
9568 {
9569 .eraseblocks = { {64 * 1024, 64} },
9570 .block_erase = spi_block_erase_d8,
9571 }, {
9572 .eraseblocks = { {4 * 1024 * 1024, 1} },
9573 .block_erase = spi_block_erase_c7,
9574 }
9575 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009576 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009577 .unlock = spi_disable_blockprotect,
9578 .write = spi_chip_write_256,
9579 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009580 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009581 },
9582
9583 {
9584 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009585 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009586 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009587 .manufacture_id = SPANSION_ID,
9588 .model_id = SPANSION_S25FL064A,
9589 .total_size = 8192,
9590 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009591 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009592 .tested = TEST_OK_PREW,
9593 .probe = probe_spi_rdid,
9594 .probe_timing = TIMING_ZERO,
9595 .block_erasers =
9596 {
9597 {
9598 .eraseblocks = { {64 * 1024, 128} },
9599 .block_erase = spi_block_erase_d8,
9600 }, {
9601 .eraseblocks = { {8 * 1024 * 1024, 1} },
9602 .block_erase = spi_block_erase_c7,
9603 }
9604 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009605 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009606 .unlock = spi_disable_blockprotect,
9607 .write = spi_chip_write_256,
9608 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009609 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009610 },
9611
9612 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009613 .vendor = "Spansion",
9614 .name = "S25FL204K",
9615 .bustype = BUS_SPI,
9616 .manufacture_id = SPANSION_ID,
9617 .model_id = SPANSION_S25FL204,
9618 .total_size = 512,
9619 .page_size = 256,
9620 .feature_bits = FEATURE_WRSR_WREN,
9621 .tested = TEST_UNTESTED,
9622 .probe = probe_spi_rdid,
9623 .probe_timing = TIMING_ZERO,
9624 .block_erasers = {
9625 {
9626 .eraseblocks = { {4 * 1024, 128} },
9627 .block_erase = spi_block_erase_20,
9628 }, {
9629 .eraseblocks = { {64 * 1024, 8} },
9630 .block_erase = spi_block_erase_d8,
9631 }, {
9632 .eraseblocks = { { 512 * 1024, 1} },
9633 .block_erase = spi_block_erase_60,
9634 }, {
9635 .eraseblocks = { { 512 * 1024, 1} },
9636 .block_erase = spi_block_erase_c7,
9637 }
9638 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009639 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009640 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9641 .write = spi_chip_write_256,
9642 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9643 .voltage = {2700, 3600},
9644 },
9645
9646 {
9647 .vendor = "Spansion",
9648 .name = "S25FL208K",
9649 .bustype = BUS_SPI,
9650 .manufacture_id = SPANSION_ID,
9651 .model_id = SPANSION_S25FL208,
9652 .total_size = 1024,
9653 .page_size = 256,
9654 .feature_bits = FEATURE_WRSR_WREN,
9655 .tested = TEST_UNTESTED,
9656 .probe = probe_spi_rdid,
9657 .probe_timing = TIMING_ZERO,
9658 .block_erasers = {
9659 {
9660 .eraseblocks = { {4 * 1024, 256} },
9661 .block_erase = spi_block_erase_20,
9662 }, {
9663 .eraseblocks = { {64 * 1024, 16} },
9664 .block_erase = spi_block_erase_d8,
9665 }, {
9666 .eraseblocks = { { 1024 * 1024, 1} },
9667 .block_erase = spi_block_erase_60,
9668 }, {
9669 .eraseblocks = { { 1024 * 1024, 1} },
9670 .block_erase = spi_block_erase_c7,
9671 }
9672 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009673 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009674 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9675 .write = spi_chip_write_256,
9676 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9677 .voltage = {2700, 3600},
9678 },
9679
9680 {
9681 .vendor = "Spansion",
9682 .name = "S25FL116K/S25FL216K",
9683 .bustype = BUS_SPI,
9684 .manufacture_id = SPANSION_ID,
9685 .model_id = SPANSION_S25FL216,
9686 .total_size = 2048,
9687 .page_size = 256,
9688 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9690 .tested = TEST_UNTESTED,
9691 .probe = probe_spi_rdid,
9692 .probe_timing = TIMING_ZERO,
9693 .block_erasers = {
9694 {
9695 .eraseblocks = { {4 * 1024, 512} },
9696 .block_erase = spi_block_erase_20,
9697 }, {
9698 .eraseblocks = { {64 * 1024, 32} },
9699 .block_erase = spi_block_erase_d8,
9700 }, {
9701 .eraseblocks = { { 2048 * 1024, 1} },
9702 .block_erase = spi_block_erase_60,
9703 }, {
9704 .eraseblocks = { { 2048 * 1024, 1} },
9705 .block_erase = spi_block_erase_c7,
9706 }
9707 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009708 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009709 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9710 .write = spi_chip_write_256,
9711 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9712 .voltage = {2700, 3600},
9713 },
9714
9715 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009716 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009717 .name = "S25FL132K",
9718 .bustype = BUS_SPI,
9719 .manufacture_id = SPANSION_ID,
9720 .model_id = SPANSION_S25FL132K,
9721 .total_size = 4096,
9722 .page_size = 256,
9723 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9724 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9725 .tested = TEST_UNTESTED,
9726 .probe = probe_spi_rdid,
9727 .probe_timing = TIMING_ZERO,
9728 .block_erasers = {
9729 {
9730 .eraseblocks = { {4 * 1024, 1024} },
9731 .block_erase = spi_block_erase_20,
9732 }, {
9733 .eraseblocks = { {64 * 1024, 64} },
9734 .block_erase = spi_block_erase_d8,
9735 }, {
9736 .eraseblocks = { { 4096 * 1024, 1} },
9737 .block_erase = spi_block_erase_60,
9738 }, {
9739 .eraseblocks = { { 4096 * 1024, 1} },
9740 .block_erase = spi_block_erase_c7,
9741 }
9742 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009743 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009744 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9745 .write = spi_chip_write_256,
9746 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9747 .voltage = {2700, 3600},
9748 },
9749
9750 {
9751 .vendor = "Spansion",
9752 .name = "S25FL164K",
9753 .bustype = BUS_SPI,
9754 .manufacture_id = SPANSION_ID,
9755 .model_id = SPANSION_S25FL164K,
9756 .total_size = 8192,
9757 .page_size = 256,
9758 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9760 .tested = TEST_OK_PREW,
9761 .probe = probe_spi_rdid,
9762 .probe_timing = TIMING_ZERO,
9763 .block_erasers = {
9764 {
9765 .eraseblocks = { {4 * 1024, 2048} },
9766 .block_erase = spi_block_erase_20,
9767 }, {
9768 .eraseblocks = { {64 * 1024, 128} },
9769 .block_erase = spi_block_erase_d8,
9770 }, {
9771 .eraseblocks = { { 8192 * 1024, 1} },
9772 .block_erase = spi_block_erase_60,
9773 }, {
9774 .eraseblocks = { { 8192 * 1024, 1} },
9775 .block_erase = spi_block_erase_c7,
9776 }
9777 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009778 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009779 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9780 .write = spi_chip_write_256,
9781 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9782 .voltage = {2700, 3600},
9783 },
9784
9785 {
9786 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009787 .name = "S25FL128S......0", /* uniform 256kB sectors */
9788 .bustype = BUS_SPI,
9789 .manufacture_id = SPANSION_ID,
9790 .model_id = SPANSION_S25FL128,
9791 .total_size = 16384,
9792 .page_size = 256,
9793 /* supports 4B addressing */
9794 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9795 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9796 .tested = TEST_UNTESTED,
9797 .probe = probe_spi_rdid,
9798 .probe_timing = TIMING_ZERO,
9799 .block_erasers = {
9800 {
9801 .eraseblocks = { {4 * 1024, 4096} },
9802 .block_erase = spi_block_erase_20,
9803 }, {
9804 .eraseblocks = { {256 * 1024, 64} },
9805 .block_erase = spi_block_erase_d8,
9806 }, {
9807 .eraseblocks = { { 16384 * 1024, 1} },
9808 .block_erase = spi_block_erase_60,
9809 }, {
9810 .eraseblocks = { { 16384 * 1024, 1} },
9811 .block_erase = spi_block_erase_c7,
9812 }
9813 },
9814 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9815 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9816 .write = spi_chip_write_256, /* Multi I/O supported */
9817 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9818 .voltage = {2700, 3600},
9819 },
9820
9821 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009822 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009823 .name = "SST25LF020A",
9824 .bustype = BUS_SPI,
9825 .manufacture_id = SST_ID,
9826 .model_id = SST_SST25VF020_REMS,
9827 .total_size = 256,
9828 .page_size = 256,
9829 .feature_bits = FEATURE_WRSR_EWSR,
9830 .tested = TEST_OK_PREW,
9831 .probe = probe_spi_rems,
9832 .probe_timing = TIMING_ZERO,
9833 .block_erasers =
9834 {
9835 {
9836 .eraseblocks = { {4 * 1024, 64} },
9837 .block_erase = spi_block_erase_20,
9838 }, {
9839 .eraseblocks = { {32 * 1024, 8} },
9840 .block_erase = spi_block_erase_52,
9841 }, {
9842 .eraseblocks = { {256 * 1024, 1} },
9843 .block_erase = spi_block_erase_60,
9844 },
9845 },
9846 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9847 .unlock = spi_disable_blockprotect,
9848 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9849 .read = spi_chip_read, /* Fast read (0x0B) supported */
9850 .voltage = {2700, 3600},
9851 },
9852
9853 {
9854 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009855 .name = "SST25LF040A",
9856 .bustype = BUS_SPI,
9857 .manufacture_id = SST_ID,
9858 .model_id = SST_SST25VF040_REMS,
9859 .total_size = 512,
9860 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009861 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009862 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009863 .probe = probe_spi_res2,
9864 .probe_timing = TIMING_ZERO,
9865 .block_erasers =
9866 {
9867 {
9868 .eraseblocks = { {4 * 1024, 128} },
9869 .block_erase = spi_block_erase_20,
9870 }, {
9871 .eraseblocks = { {32 * 1024, 16} },
9872 .block_erase = spi_block_erase_52,
9873 }, {
9874 .eraseblocks = { {512 * 1024, 1} },
9875 .block_erase = spi_block_erase_60,
9876 },
9877 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009878 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009879 .unlock = spi_disable_blockprotect,
9880 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9881 .read = spi_chip_read,
9882 .voltage = {3000, 3600},
9883 },
9884
9885 {
9886 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009887 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009888 .bustype = BUS_SPI,
9889 .manufacture_id = SST_ID,
9890 .model_id = SST_SST25VF080_REMS,
9891 .total_size = 1024,
9892 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009893 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009894 .tested = TEST_UNTESTED,
9895 .probe = probe_spi_res2,
9896 .probe_timing = TIMING_ZERO,
9897 .block_erasers =
9898 {
9899 {
9900 .eraseblocks = { {4 * 1024, 256} },
9901 .block_erase = spi_block_erase_20,
9902 }, {
9903 .eraseblocks = { {32 * 1024, 32} },
9904 .block_erase = spi_block_erase_52,
9905 }, {
9906 .eraseblocks = { {1024 * 1024, 1} },
9907 .block_erase = spi_block_erase_60,
9908 },
9909 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009910 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009911 .unlock = spi_disable_blockprotect,
9912 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9913 .read = spi_chip_read,
9914 .voltage = {3000, 3600},
9915 },
9916
9917 {
9918 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +00009919 .name = "SST25VF512A",
9920 .bustype = BUS_SPI,
9921 .manufacture_id = SST_ID,
9922 .model_id = SST_SST25VF512A_REMS,
9923 .total_size = 64,
9924 .page_size = 256,
9925 .feature_bits = FEATURE_WRSR_EWSR,
9926 .tested = TEST_OK_PREW,
9927 .probe = probe_spi_rems,
9928 .probe_timing = TIMING_ZERO,
9929 .block_erasers =
9930 {
9931 {
9932 .eraseblocks = { {4 * 1024, 16} },
9933 .block_erase = spi_block_erase_20,
9934 }, {
9935 .eraseblocks = { {32 * 1024, 2} },
9936 .block_erase = spi_block_erase_52,
9937 }, {
9938 .eraseblocks = { {32 * 1024, 2} },
9939 .block_erase = spi_block_erase_d8,
9940 }, {
9941 .eraseblocks = { {64 * 1024, 1} },
9942 .block_erase = spi_block_erase_60,
9943 }, {
9944 .eraseblocks = { {64 * 1024, 1} },
9945 .block_erase = spi_block_erase_c7,
9946 },
9947 },
9948 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9949 .unlock = spi_disable_blockprotect,
9950 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9951 .read = spi_chip_read, /* Fast read (0x0B) supported */
9952 .voltage = {2700, 3600},
9953 },
9954
9955 {
9956 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009957 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009958 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009959 .manufacture_id = SST_ID,
9960 .model_id = SST_SST25VF010_REMS,
9961 .total_size = 128,
9962 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009963 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009964 .tested = TEST_OK_PREW,
9965 .probe = probe_spi_rems,
9966 .probe_timing = TIMING_ZERO,
9967 .block_erasers =
9968 {
9969 {
9970 .eraseblocks = { {4 * 1024, 32} },
9971 .block_erase = spi_block_erase_20,
9972 }, {
9973 .eraseblocks = { {32 * 1024, 4} },
9974 .block_erase = spi_block_erase_52,
9975 }, {
Cory Henderson370f5822013-10-19 23:09:16 +00009976 .eraseblocks = { {32 * 1024, 4} },
9977 .block_erase = spi_block_erase_d8,
9978 }, {
Mark Marshall90021f22010-12-03 14:48:11 +00009979 .eraseblocks = { {128 * 1024, 1} },
9980 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +00009981 }, {
9982 .eraseblocks = { {128 * 1024, 1} },
9983 .block_erase = spi_block_erase_c7,
9984 },
9985 },
9986 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9987 .unlock = spi_disable_blockprotect,
9988 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9989 .read = spi_chip_read, /* Fast read (0x0B) supported */
9990 .voltage = {2700, 3600},
9991 },
9992
9993 {
9994 .vendor = "SST",
9995 .name = "SST25VF020",
9996 .bustype = BUS_SPI,
9997 .manufacture_id = SST_ID,
9998 .model_id = SST_SST25VF020_REMS,
9999 .total_size = 256,
10000 .page_size = 256,
10001 .feature_bits = FEATURE_WRSR_EWSR,
10002 .tested = TEST_UNTESTED,
10003 .probe = probe_spi_rems,
10004 .probe_timing = TIMING_ZERO,
10005 .block_erasers =
10006 {
10007 {
10008 .eraseblocks = { {4 * 1024, 64} },
10009 .block_erase = spi_block_erase_20,
10010 }, {
10011 .eraseblocks = { {32 * 1024, 8} },
10012 .block_erase = spi_block_erase_52,
10013 }, {
10014 .eraseblocks = { {256 * 1024, 1} },
10015 .block_erase = spi_block_erase_60,
10016 },
10017 },
10018 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10019 .unlock = spi_disable_blockprotect,
10020 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10021 .read = spi_chip_read, /* only */
10022 .voltage = {2700, 3600},
10023 },
10024
10025 {
10026 .vendor = "SST",
10027 .name = "SST25VF020B",
10028 .bustype = BUS_SPI,
10029 .manufacture_id = SST_ID,
10030 .model_id = SST_SST25VF020B,
10031 .total_size = 256,
10032 .page_size = 256,
10033 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010034 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000010035 .probe = probe_spi_rdid,
10036 .probe_timing = TIMING_ZERO,
10037 .block_erasers =
10038 {
10039 {
10040 .eraseblocks = { {4 * 1024, 64} },
10041 .block_erase = spi_block_erase_20,
10042 }, {
10043 .eraseblocks = { {32 * 1024, 8} },
10044 .block_erase = spi_block_erase_52,
10045 }, {
10046 .eraseblocks = { {64 * 1024, 4} },
10047 .block_erase = spi_block_erase_d8,
10048 }, {
10049 .eraseblocks = { {256 * 1024, 1} },
10050 .block_erase = spi_block_erase_60,
10051 }, {
10052 .eraseblocks = { {256 * 1024, 1} },
10053 .block_erase = spi_block_erase_c7,
10054 },
10055 },
10056 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
10057 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
10058 .write = spi_aai_write, /* AAI supported (0xAD) */
10059 .read = spi_chip_read, /* Fast read (0x0B) supported */
10060 .voltage = {2700, 3600},
10061 },
10062
10063 {
10064 .vendor = "SST",
10065 .name = "SST25VF040",
10066 .bustype = BUS_SPI,
10067 .manufacture_id = SST_ID,
10068 .model_id = SST_SST25VF040_REMS,
10069 .total_size = 512,
10070 .page_size = 256,
10071 .feature_bits = FEATURE_WRSR_EWSR,
10072 .tested = TEST_OK_PR,
10073 .probe = probe_spi_rems,
10074 .probe_timing = TIMING_ZERO,
10075 .block_erasers =
10076 {
10077 {
10078 .eraseblocks = { {4 * 1024, 128} },
10079 .block_erase = spi_block_erase_20,
10080 }, {
10081 .eraseblocks = { {32 * 1024, 16} },
10082 .block_erase = spi_block_erase_52,
10083 }, {
10084 .eraseblocks = { {512 * 1024, 1} },
10085 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000010086 },
10087 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010088 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000010089 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000010090 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10091 .read = spi_chip_read,
10092 .voltage = {2700, 3600},
10093 },
10094
10095 {
10096 .vendor = "SST",
10097 .name = "SST25VF040B",
10098 .bustype = BUS_SPI,
10099 .manufacture_id = SST_ID,
10100 .model_id = SST_SST25VF040B,
10101 .total_size = 512,
10102 .page_size = 256,
10103 .feature_bits = FEATURE_WRSR_EWSR,
10104 .tested = TEST_OK_PREW,
10105 .probe = probe_spi_rdid,
10106 .probe_timing = TIMING_ZERO,
10107 .block_erasers =
10108 {
10109 {
10110 .eraseblocks = { {4 * 1024, 128} },
10111 .block_erase = spi_block_erase_20,
10112 }, {
10113 .eraseblocks = { {32 * 1024, 16} },
10114 .block_erase = spi_block_erase_52,
10115 }, {
10116 .eraseblocks = { {64 * 1024, 8} },
10117 .block_erase = spi_block_erase_d8,
10118 }, {
10119 .eraseblocks = { {512 * 1024, 1} },
10120 .block_erase = spi_block_erase_60,
10121 }, {
10122 .eraseblocks = { {512 * 1024, 1} },
10123 .block_erase = spi_block_erase_c7,
10124 },
10125 },
10126 .printlock = spi_prettyprint_status_register_sst25vf040b,
10127 .unlock = spi_disable_blockprotect,
10128 .write = spi_aai_write, /* AAI supported (0xAD) */
10129 .read = spi_chip_read, /* Fast read (0x0B) supported */
10130 .voltage = {2700, 3600},
10131 },
10132
10133 {
10134 .vendor = "SST",
10135 .name = "SST25VF040B.REMS",
10136 .bustype = BUS_SPI,
10137 .manufacture_id = SST_ID,
10138 .model_id = SST_SST25VF040B_REMS,
10139 .total_size = 512,
10140 .page_size = 256,
10141 .feature_bits = FEATURE_WRSR_EWSR,
10142 .tested = TEST_OK_PREW,
10143 .probe = probe_spi_rems,
10144 .probe_timing = TIMING_ZERO,
10145 .block_erasers =
10146 {
10147 {
10148 .eraseblocks = { {4 * 1024, 128} },
10149 .block_erase = spi_block_erase_20,
10150 }, {
10151 .eraseblocks = { {32 * 1024, 16} },
10152 .block_erase = spi_block_erase_52,
10153 }, {
10154 .eraseblocks = { {64 * 1024, 8} },
10155 .block_erase = spi_block_erase_d8,
10156 }, {
10157 .eraseblocks = { {512 * 1024, 1} },
10158 .block_erase = spi_block_erase_60,
10159 }, {
10160 .eraseblocks = { {512 * 1024, 1} },
10161 .block_erase = spi_block_erase_c7,
10162 },
10163 },
10164 .printlock = spi_prettyprint_status_register_sst25vf040b,
10165 .unlock = spi_disable_blockprotect,
10166 .write = spi_aai_write,
10167 .read = spi_chip_read,
10168 .voltage = {2700, 3600},
10169 },
10170
10171 {
10172 .vendor = "SST",
10173 .name = "SST25VF080B",
10174 .bustype = BUS_SPI,
10175 .manufacture_id = SST_ID,
10176 .model_id = SST_SST25VF080B,
10177 .total_size = 1024,
10178 .page_size = 256,
10179 .feature_bits = FEATURE_WRSR_EWSR,
10180 .tested = TEST_OK_PREW,
10181 .probe = probe_spi_rdid,
10182 .probe_timing = TIMING_ZERO,
10183 .block_erasers =
10184 {
10185 {
10186 .eraseblocks = { {4 * 1024, 256} },
10187 .block_erase = spi_block_erase_20,
10188 }, {
10189 .eraseblocks = { {32 * 1024, 32} },
10190 .block_erase = spi_block_erase_52,
10191 }, {
10192 .eraseblocks = { {64 * 1024, 16} },
10193 .block_erase = spi_block_erase_d8,
10194 }, {
10195 .eraseblocks = { {1024 * 1024, 1} },
10196 .block_erase = spi_block_erase_60,
10197 }, {
10198 .eraseblocks = { {1024 * 1024, 1} },
10199 .block_erase = spi_block_erase_c7,
10200 },
10201 },
10202 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10203 .unlock = spi_disable_blockprotect,
10204 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010205 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010206 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010207 },
10208
10209 {
10210 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010211 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010212 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010213 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010214 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010215 .total_size = 2048,
10216 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010217 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010218 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010219 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010220 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010221 .block_erasers =
10222 {
10223 {
10224 .eraseblocks = { {4 * 1024, 512} },
10225 .block_erase = spi_block_erase_20,
10226 }, {
10227 .eraseblocks = { {32 * 1024, 64} },
10228 .block_erase = spi_block_erase_52,
10229 }, {
10230 .eraseblocks = { {64 * 1024, 32} },
10231 .block_erase = spi_block_erase_d8,
10232 }, {
10233 .eraseblocks = { {2 * 1024 * 1024, 1} },
10234 .block_erase = spi_block_erase_60,
10235 }, {
10236 .eraseblocks = { {2 * 1024 * 1024, 1} },
10237 .block_erase = spi_block_erase_c7,
10238 },
10239 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010240 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010241 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010242 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010243 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010244 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010245 },
10246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010247 {
10248 .vendor = "SST",
10249 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010250 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010251 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010252 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010253 .total_size = 4096,
10254 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010255 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010256 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010257 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010258 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010259 .block_erasers =
10260 {
10261 {
10262 .eraseblocks = { {4 * 1024, 1024} },
10263 .block_erase = spi_block_erase_20,
10264 }, {
10265 .eraseblocks = { {32 * 1024, 128} },
10266 .block_erase = spi_block_erase_52,
10267 }, {
10268 .eraseblocks = { {64 * 1024, 64} },
10269 .block_erase = spi_block_erase_d8,
10270 }, {
10271 .eraseblocks = { {4 * 1024 * 1024, 1} },
10272 .block_erase = spi_block_erase_60,
10273 }, {
10274 .eraseblocks = { {4 * 1024 * 1024, 1} },
10275 .block_erase = spi_block_erase_c7,
10276 },
10277 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010278 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010279 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010280 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010282 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010283 },
10284
10285 {
10286 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010287 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010288 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010289 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010290 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010291 .total_size = 8192,
10292 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010293 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010294 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010295 .probe = probe_spi_rdid,
10296 .probe_timing = TIMING_ZERO,
10297 .block_erasers =
10298 {
10299 {
10300 .eraseblocks = { {4 * 1024, 2048} },
10301 .block_erase = spi_block_erase_20,
10302 }, {
10303 .eraseblocks = { {32 * 1024, 256} },
10304 .block_erase = spi_block_erase_52,
10305 }, {
10306 .eraseblocks = { {64 * 1024, 128} },
10307 .block_erase = spi_block_erase_d8,
10308 }, {
10309 .eraseblocks = { {8 * 1024 * 1024, 1} },
10310 .block_erase = spi_block_erase_60,
10311 }, {
10312 .eraseblocks = { {8 * 1024 * 1024, 1} },
10313 .block_erase = spi_block_erase_c7,
10314 },
10315 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010316 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010317 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010318 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010319 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010320 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010321 },
10322
10323 {
10324 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010325 .name = "SST25WF512",
10326 .bustype = BUS_SPI,
10327 .manufacture_id = SST_ID,
10328 .model_id = SST_SST25WF512,
10329 .total_size = 64,
10330 .page_size = 256,
10331 .feature_bits = FEATURE_WRSR_EITHER,
10332 .tested = TEST_UNTESTED,
10333 .probe = probe_spi_rdid,
10334 .probe_timing = TIMING_ZERO,
10335 .block_erasers =
10336 {
10337 {
10338 .eraseblocks = { {4 * 1024, 16} },
10339 .block_erase = spi_block_erase_20,
10340 }, {
10341 .eraseblocks = { {32 * 1024, 2} },
10342 .block_erase = spi_block_erase_52,
10343 }, {
10344 .eraseblocks = { {1024 * 64, 1} },
10345 .block_erase = spi_block_erase_60,
10346 }, {
10347 .eraseblocks = { {1024 * 64, 1} },
10348 .block_erase = spi_block_erase_c7,
10349 },
10350 },
Jason Harper43ddef02014-05-04 00:55:24 +000010351 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10352 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010353 .write = spi_aai_write,
10354 .read = spi_chip_read, /* Fast read (0x0B) supported */
10355 .voltage = {1650, 1950},
10356 },
10357
10358 {
10359 .vendor = "SST",
10360 .name = "SST25WF010",
10361 .bustype = BUS_SPI,
10362 .manufacture_id = SST_ID,
10363 .model_id = SST_SST25WF010,
10364 .total_size = 128,
10365 .page_size = 256,
10366 .feature_bits = FEATURE_WRSR_EITHER,
10367 .tested = TEST_UNTESTED,
10368 .probe = probe_spi_rdid,
10369 .probe_timing = TIMING_ZERO,
10370 .block_erasers =
10371 {
10372 {
10373 .eraseblocks = { {4 * 1024, 32} },
10374 .block_erase = spi_block_erase_20,
10375 }, {
10376 .eraseblocks = { {32 * 1024, 4} },
10377 .block_erase = spi_block_erase_52,
10378 }, {
10379 .eraseblocks = { {1024 * 128, 1} },
10380 .block_erase = spi_block_erase_60,
10381 }, {
10382 .eraseblocks = { {1024 * 128, 1} },
10383 .block_erase = spi_block_erase_c7,
10384 },
10385 },
Jason Harper43ddef02014-05-04 00:55:24 +000010386 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10387 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010388 .write = spi_aai_write,
10389 .read = spi_chip_read, /* Fast read (0x0B) supported */
10390 .voltage = {1650, 1950},
10391 },
10392
10393 {
10394 .vendor = "SST",
10395 .name = "SST25WF020",
10396 .bustype = BUS_SPI,
10397 .manufacture_id = SST_ID,
10398 .model_id = SST_SST25WF020,
10399 .total_size = 256,
10400 .page_size = 256,
10401 .feature_bits = FEATURE_WRSR_EITHER,
10402 .tested = TEST_UNTESTED,
10403 .probe = probe_spi_rdid,
10404 .probe_timing = TIMING_ZERO,
10405 .block_erasers =
10406 {
10407 {
10408 .eraseblocks = { {4 * 1024, 64} },
10409 .block_erase = spi_block_erase_20,
10410 }, {
10411 .eraseblocks = { {32 * 1024, 8} },
10412 .block_erase = spi_block_erase_52,
10413 }, {
10414 .eraseblocks = { {64 * 1024, 4} },
10415 .block_erase = spi_block_erase_d8,
10416 }, {
10417 .eraseblocks = { {1024 * 256, 1} },
10418 .block_erase = spi_block_erase_60,
10419 }, {
10420 .eraseblocks = { {1024 * 256, 1} },
10421 .block_erase = spi_block_erase_c7,
10422 },
10423 },
Jason Harper43ddef02014-05-04 00:55:24 +000010424 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10425 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010426 .write = spi_aai_write,
10427 .read = spi_chip_read, /* Fast read (0x0B) supported */
10428 .voltage = {1650, 1950},
10429 },
10430
10431 {
10432 .vendor = "SST",
10433 .name = "SST25WF040",
10434 .bustype = BUS_SPI,
10435 .manufacture_id = SST_ID,
10436 .model_id = SST_SST25WF040,
10437 .total_size = 512,
10438 .page_size = 256,
10439 .feature_bits = FEATURE_WRSR_EITHER,
10440 .tested = TEST_UNTESTED,
10441 .probe = probe_spi_rdid,
10442 .probe_timing = TIMING_ZERO,
10443 .block_erasers =
10444 {
10445 {
10446 .eraseblocks = { {4 * 1024, 128} },
10447 .block_erase = spi_block_erase_20,
10448 }, {
10449 .eraseblocks = { {32 * 1024, 16} },
10450 .block_erase = spi_block_erase_52,
10451 }, {
10452 .eraseblocks = { {64 * 1024, 8} },
10453 .block_erase = spi_block_erase_d8,
10454 }, {
10455 .eraseblocks = { {1024 * 512, 1} },
10456 .block_erase = spi_block_erase_60,
10457 }, {
10458 .eraseblocks = { {1024 * 512, 1} },
10459 .block_erase = spi_block_erase_c7,
10460 },
10461 },
Jason Harper43ddef02014-05-04 00:55:24 +000010462 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10463 .unlock = spi_disable_blockprotect_bp2_srwd,
10464 .write = spi_aai_write,
10465 .read = spi_chip_read, /* Fast read (0x0B) supported */
10466 .voltage = {1650, 1950},
10467 },
10468
10469 {
10470 .vendor = "SST",
10471 .name = "SST25WF080",
10472 .bustype = BUS_SPI,
10473 .manufacture_id = SST_ID,
10474 .model_id = SST_SST25WF080,
10475 .total_size = 1024,
10476 .page_size = 256,
10477 .feature_bits = FEATURE_WRSR_EITHER,
10478 .tested = TEST_OK_PREW,
10479 .probe = probe_spi_rdid,
10480 .probe_timing = TIMING_ZERO,
10481 .block_erasers =
10482 {
10483 {
10484 .eraseblocks = { {4 * 1024, 256} },
10485 .block_erase = spi_block_erase_20,
10486 }, {
10487 .eraseblocks = { {32 * 1024, 32} },
10488 .block_erase = spi_block_erase_52,
10489 }, {
10490 .eraseblocks = { {64 * 1024, 16} },
10491 .block_erase = spi_block_erase_d8,
10492 }, {
10493 .eraseblocks = { {1024 * 1024, 1} },
10494 .block_erase = spi_block_erase_60,
10495 }, {
10496 .eraseblocks = { {1024 * 1024, 1} },
10497 .block_erase = spi_block_erase_c7,
10498 },
10499 },
10500 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10501 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010502 .write = spi_aai_write,
10503 .read = spi_chip_read, /* Fast read (0x0B) supported */
10504 .voltage = {1650, 1950},
10505 },
10506
10507 {
10508 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010509 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010510 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010511 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010512 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010513 .total_size = 512,
10514 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010515 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010516 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010517 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010518 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010519 .block_erasers =
10520 {
10521 {
10522 .eraseblocks = { {128, 4096} },
10523 .block_erase = erase_sector_28sf040,
10524 }, {
10525 .eraseblocks = { {512 * 1024, 1} },
10526 .block_erase = erase_chip_28sf040,
10527 }
10528 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010529 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010530 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010531 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010532 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010533 },
10534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010535 {
10536 .vendor = "SST",
10537 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010538 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010539 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010540 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010541 .total_size = 128,
10542 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010543 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010544 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010545 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010546 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010547 .block_erasers =
10548 {
10549 {
10550 .eraseblocks = { {128 * 1024, 1} },
10551 .block_erase = erase_chip_block_jedec,
10552 }
10553 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010554 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010555 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010556 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010557 },
10558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010559 {
10560 .vendor = "SST",
10561 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010562 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010563 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010564 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010565 .total_size = 128,
10566 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010567 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010568 .tested = TEST_UNTESTED,
10569 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010570 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010571 .block_erasers =
10572 {
10573 {
10574 .eraseblocks = { {128 * 1024, 1} },
10575 .block_erase = erase_chip_block_jedec,
10576 }
10577 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010578 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010580 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010581 },
10582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010583 {
10584 .vendor = "SST",
10585 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010586 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010587 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010588 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010589 .total_size = 256,
10590 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010591 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010592 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010593 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010594 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010595 .block_erasers =
10596 {
10597 {
10598 .eraseblocks = { {256 * 1024, 1} },
10599 .block_erase = erase_chip_block_jedec,
10600 }
10601 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010602 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010604 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010605 },
10606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010607 {
10608 .vendor = "SST",
10609 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010610 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010611 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010612 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010613 .total_size = 256,
10614 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010615 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010616 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010617 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010618 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010619 .block_erasers =
10620 {
10621 {
10622 .eraseblocks = { {256 * 1024, 1} },
10623 .block_erase = erase_chip_block_jedec,
10624 }
10625 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010626 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010628 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010629 },
10630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010631 {
10632 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010633 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010634 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010635 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010636 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010637 .total_size = 64,
10638 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010639 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010640 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010641 .probe = probe_jedec,
10642 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010643 .block_erasers =
10644 {
10645 {
10646 .eraseblocks = { {4 * 1024, 16} },
10647 .block_erase = erase_sector_jedec,
10648 }, {
10649 .eraseblocks = { {64 * 1024, 1} },
10650 .block_erase = erase_chip_block_jedec,
10651 }
10652 },
Sean Nelson35727f72010-01-28 23:55:12 +000010653 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010654 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010655 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010656 },
10657
10658 {
10659 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010660 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010661 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010662 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010663 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010664 .total_size = 128,
10665 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010666 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010667 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010668 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010669 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010670 .block_erasers =
10671 {
10672 {
10673 .eraseblocks = { {4 * 1024, 32} },
10674 .block_erase = erase_sector_jedec,
10675 }, {
10676 .eraseblocks = { {128 * 1024, 1} },
10677 .block_erase = erase_chip_block_jedec,
10678 }
10679 },
Sean Nelson35727f72010-01-28 23:55:12 +000010680 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010682 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010683 },
10684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010685 {
10686 .vendor = "SST",
10687 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010688 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010689 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010690 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010691 .total_size = 256,
10692 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010693 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010694 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010695 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010696 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010697 .block_erasers =
10698 {
10699 {
10700 .eraseblocks = { {4 * 1024, 64} },
10701 .block_erase = erase_sector_jedec,
10702 }, {
10703 .eraseblocks = { {256 * 1024, 1} },
10704 .block_erase = erase_chip_block_jedec,
10705 }
10706 },
Sean Nelson35727f72010-01-28 23:55:12 +000010707 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010709 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010710 },
10711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010712 {
10713 .vendor = "SST",
10714 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010715 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010716 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010717 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010718 .total_size = 512,
10719 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010720 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010721 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010722 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010723 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010724 .block_erasers =
10725 {
10726 {
10727 .eraseblocks = { {4 * 1024, 128} },
10728 .block_erase = erase_sector_jedec,
10729 }, {
10730 .eraseblocks = { {512 * 1024, 1} },
10731 .block_erase = erase_chip_block_jedec,
10732 }
10733 },
Sean Nelson35727f72010-01-28 23:55:12 +000010734 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010736 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010737 },
10738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010739 {
10740 .vendor = "SST",
10741 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010742 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010743 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010744 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010745 .total_size = 64,
10746 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010747 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010748 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010749 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010750 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010751 .block_erasers =
10752 {
10753 {
10754 .eraseblocks = { {4 * 1024, 16} },
10755 .block_erase = erase_sector_jedec,
10756 }, {
10757 .eraseblocks = { {64 * 1024, 1} },
10758 .block_erase = erase_chip_block_jedec,
10759 }
10760 },
Sean Nelson35727f72010-01-28 23:55:12 +000010761 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010762 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010763 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010764 },
10765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010766 {
10767 .vendor = "SST",
10768 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010769 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010770 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010771 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010772 .total_size = 128,
10773 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010774 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010775 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010776 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010777 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010778 .block_erasers =
10779 {
10780 {
10781 .eraseblocks = { {4 * 1024, 32} },
10782 .block_erase = erase_sector_jedec,
10783 }, {
10784 .eraseblocks = { {128 * 1024, 1} },
10785 .block_erase = erase_chip_block_jedec,
10786 }
10787 },
Sean Nelson35727f72010-01-28 23:55:12 +000010788 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010789 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010791 },
10792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010793 {
10794 .vendor = "SST",
10795 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010796 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010797 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010798 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010799 .total_size = 256,
10800 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010801 .feature_bits = FEATURE_EITHER_RESET,
10802 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010803 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010804 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010805 .block_erasers =
10806 {
10807 {
10808 .eraseblocks = { {4 * 1024, 64} },
10809 .block_erase = erase_sector_jedec,
10810 }, {
10811 .eraseblocks = { {256 * 1024, 1} },
10812 .block_erase = erase_chip_block_jedec,
10813 }
10814 },
Sean Nelson35727f72010-01-28 23:55:12 +000010815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010817 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010818 },
10819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010820 {
10821 .vendor = "SST",
10822 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010823 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010824 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010825 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010826 .total_size = 512,
10827 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010828 .feature_bits = FEATURE_EITHER_RESET,
10829 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010830 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010831 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010832 .block_erasers =
10833 {
10834 {
10835 .eraseblocks = { {4 * 1024, 128} },
10836 .block_erase = erase_sector_jedec,
10837 }, {
10838 .eraseblocks = { {512 * 1024, 1} },
10839 .block_erase = erase_chip_block_jedec,
10840 }
10841 },
Sean Nelson35727f72010-01-28 23:55:12 +000010842 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010843 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010844 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010845 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010847 {
10848 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010849 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010850 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010851 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010852 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010853 .total_size = 1024,
10854 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010855 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010856 .tested = TEST_UNTESTED,
10857 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010858 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010859 .block_erasers =
10860 {
10861 {
10862 .eraseblocks = { {4 * 1024, 256} },
10863 .block_erase = erase_sector_jedec,
10864 }, {
10865 .eraseblocks = { {64 * 1024, 16} },
10866 .block_erase = erase_block_jedec,
10867 }, {
10868 .eraseblocks = { {1024 * 1024, 1} },
10869 .block_erase = erase_chip_block_jedec,
10870 }
10871 },
Sean Nelson35727f72010-01-28 23:55:12 +000010872 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010873 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010874 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010875 },
10876
10877 {
10878 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010879 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010880 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010881 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010882 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010883 .total_size = 256,
10884 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010885 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010886 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010887 .probe = probe_jedec,
10888 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010889 .block_erasers =
10890 {
10891 {
10892 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010893 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010894 }, {
10895 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010896 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010897 }, {
10898 .eraseblocks = { {256 * 1024, 1} },
10899 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10900 }
10901 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010902 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010903 .unlock = unlock_sst_fwhub,
10904 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010905 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010906 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010907 },
10908
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010909 {
10910 .vendor = "SST",
10911 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010912 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010913 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010914 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010915 .total_size = 384,
10916 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010917 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010918 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010919 .probe = probe_jedec,
10920 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010921 .block_erasers =
10922 {
10923 {
10924 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010925 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010926 }, {
10927 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010928 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010929 }, {
10930 .eraseblocks = { {384 * 1024, 1} },
10931 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10932 }
10933 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010934 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010935 .unlock = unlock_sst_fwhub,
10936 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010937 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010938 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010939 },
10940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010941 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010942 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10943 * and is only honored for 64k block erase, but not 4k sector erase.
10944 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010945 .vendor = "SST",
10946 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010947 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010948 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010949 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010950 .total_size = 512,
10951 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010952 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010953 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010954 .probe = probe_jedec,
10955 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010956 .block_erasers =
10957 {
10958 {
10959 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010960 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010961 }, {
10962 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010963 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010964 }, {
10965 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010966 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010967 },
10968 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010969 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010970 .unlock = unlock_sst_fwhub,
10971 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010972 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010973 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010974 },
10975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010976 {
10977 .vendor = "SST",
10978 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010979 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010980 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010981 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010982 .total_size = 512,
10983 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010984 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010985 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010986 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010987 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010988 .block_erasers =
10989 {
10990 {
10991 .eraseblocks = { {4 * 1024, 128} },
10992 .block_erase = erase_sector_49lfxxxc,
10993 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010994 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010995 {64 * 1024, 7},
10996 {32 * 1024, 1},
10997 {8 * 1024, 2},
10998 {16 * 1024, 1},
10999 },
Sean Nelson69e58112010-03-23 17:10:28 +000011000 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011001 }
11002 },
Sean Nelson69e58112010-03-23 17:10:28 +000011003 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011004 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011006 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011007 },
11008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011009 {
11010 .vendor = "SST",
11011 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011012 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011013 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011014 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011015 .total_size = 1024,
11016 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011017 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011018 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011019 .probe = probe_jedec,
11020 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011021 .block_erasers =
11022 {
11023 {
11024 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011025 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011026 }, {
11027 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011028 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011029 }, {
11030 .eraseblocks = { {1024 * 1024, 1} },
11031 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11032 }
11033 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011034 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011035 .unlock = unlock_sst_fwhub,
11036 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011037 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011038 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011039 },
11040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011041 {
11042 .vendor = "SST",
11043 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011044 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011045 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011046 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011047 .total_size = 1024,
11048 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011049 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011050 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011051 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011052 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011053 .block_erasers =
11054 {
11055 {
11056 .eraseblocks = { {4 * 1024, 256} },
11057 .block_erase = erase_sector_49lfxxxc,
11058 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011059 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011060 {64 * 1024, 15},
11061 {32 * 1024, 1},
11062 {8 * 1024, 2},
11063 {16 * 1024, 1},
11064 },
Sean Nelson69e58112010-03-23 17:10:28 +000011065 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011066 }
11067 },
Sean Nelson69e58112010-03-23 17:10:28 +000011068 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011069 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011071 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011072 },
11073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011074 {
11075 .vendor = "SST",
11076 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011077 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011078 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011079 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011080 .total_size = 2048,
11081 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011082 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000011083 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011084 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011085 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011086 .block_erasers =
11087 {
11088 {
11089 .eraseblocks = { {4 * 1024, 512} },
11090 .block_erase = erase_sector_49lfxxxc,
11091 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011092 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011093 {64 * 1024, 31},
11094 {32 * 1024, 1},
11095 {8 * 1024, 2},
11096 {16 * 1024, 1},
11097 },
Sean Nelson69e58112010-03-23 17:10:28 +000011098 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011099 }
11100 },
Sean Nelson69e58112010-03-23 17:10:28 +000011101 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011102 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011103 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011104 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011105 },
11106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011107 {
11108 .vendor = "SST",
11109 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011110 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011111 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011112 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011113 .total_size = 256,
11114 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011115 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000011116 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011117 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011118 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011119 .block_erasers =
11120 {
11121 {
11122 .eraseblocks = { {4 * 1024, 64} },
11123 .block_erase = erase_sector_jedec,
11124 }, {
11125 .eraseblocks = { {16 * 1024, 16} },
11126 .block_erase = erase_block_jedec,
11127 }, {
11128 .eraseblocks = { {256 * 1024, 1} },
11129 .block_erase = NULL,
11130 }
11131 },
Sean Nelson35727f72010-01-28 23:55:12 +000011132 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011133 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011134 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000011135 },
11136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011137 {
11138 .vendor = "SST",
11139 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011140 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011141 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011142 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011143 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011144 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011145 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011146 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011147 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011148 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011149 .block_erasers =
11150 {
11151 {
11152 .eraseblocks = { {4 * 1024, 64} },
11153 .block_erase = erase_sector_jedec,
11154 }, {
11155 .eraseblocks = { {16 * 1024, 16} },
11156 .block_erase = erase_block_jedec,
11157 }, {
11158 .eraseblocks = { {256 * 1024, 1} },
11159 .block_erase = NULL,
11160 }
11161 },
Sean Nelson35727f72010-01-28 23:55:12 +000011162 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011164 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011165 },
11166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011167 {
11168 .vendor = "SST",
11169 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011170 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011171 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011172 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011173 .total_size = 512,
11174 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011175 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011176 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011177 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011178 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011179 .block_erasers =
11180 {
11181 {
11182 .eraseblocks = { {4 * 1024, 128} },
11183 .block_erase = erase_sector_jedec,
11184 }, {
11185 .eraseblocks = { {64 * 1024, 8} },
11186 .block_erase = erase_block_jedec,
11187 }, {
11188 .eraseblocks = { {512 * 1024, 1} },
11189 .block_erase = NULL,
11190 }
11191 },
Sean Nelson35727f72010-01-28 23:55:12 +000011192 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011193 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011194 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011195 },
11196
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011197 {
11198 .vendor = "SST",
11199 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011200 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011201 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011202 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011203 .total_size = 512,
11204 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011205 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011206 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011207 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011208 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011209 .block_erasers =
11210 {
11211 {
11212 .eraseblocks = { {4 * 1024, 128} },
11213 .block_erase = erase_sector_jedec,
11214 }, {
11215 .eraseblocks = { {64 * 1024, 8} },
11216 .block_erase = erase_block_jedec,
11217 }, {
11218 .eraseblocks = { {512 * 1024, 1} },
11219 .block_erase = NULL,
11220 }
11221 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011222 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000011223 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011225 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011226 },
11227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011228 {
11229 .vendor = "SST",
11230 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011231 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011232 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011233 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011234 .total_size = 1024,
11235 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011236 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011238 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011239 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011240 .block_erasers =
11241 {
11242 {
11243 .eraseblocks = { {4 * 1024, 256} },
11244 .block_erase = erase_sector_jedec,
11245 }, {
11246 .eraseblocks = { {64 * 1024, 16} },
11247 .block_erase = erase_block_jedec,
11248 }, {
11249 .eraseblocks = { {1024 * 1024, 1} },
11250 .block_erase = NULL,
11251 }
11252 },
Sean Nelson35727f72010-01-28 23:55:12 +000011253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011255 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011256 },
11257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011258 {
11259 .vendor = "SST",
11260 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011261 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011262 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011263 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011264 .total_size = 2048,
11265 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011266 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011267 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011268 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011269 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011270 .block_erasers =
11271 {
11272 {
11273 .eraseblocks = { {4 * 1024, 512} },
11274 .block_erase = erase_sector_49lfxxxc,
11275 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011276 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011277 {64 * 1024, 31},
11278 {32 * 1024, 1},
11279 {8 * 1024, 2},
11280 {16 * 1024, 1},
11281 },
Sean Nelson69e58112010-03-23 17:10:28 +000011282 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011283 }
11284 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011285 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011286 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011287 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011288 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011289 },
11290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011291 {
11292 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011293 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011294 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011295 .manufacture_id = ST_ID,
11296 .model_id = ST_M29F002B,
11297 .total_size = 256,
11298 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011299 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011300 .tested = TEST_UNTESTED,
11301 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011302 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011303 .block_erasers =
11304 {
11305 {
11306 .eraseblocks = {
11307 {16 * 1024, 1},
11308 {8 * 1024, 2},
11309 {32 * 1024, 1},
11310 {64 * 1024, 3},
11311 },
11312 .block_erase = erase_sector_jedec,
11313 }, {
11314 .eraseblocks = { {256 * 1024, 1} },
11315 .block_erase = erase_chip_block_jedec,
11316 }
11317 },
Sean Nelson35727f72010-01-28 23:55:12 +000011318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011319 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011320 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011321 },
11322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011323 {
11324 .vendor = "ST",
11325 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011326 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011327 .manufacture_id = ST_ID,
11328 .model_id = ST_M29F002T,
11329 .total_size = 256,
11330 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011331 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011332 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011333 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011334 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011335 .block_erasers =
11336 {
11337 {
11338 .eraseblocks = {
11339 {64 * 1024, 3},
11340 {32 * 1024, 1},
11341 {8 * 1024, 2},
11342 {16 * 1024, 1},
11343 },
11344 .block_erase = erase_sector_jedec,
11345 }, {
11346 .eraseblocks = { {256 * 1024, 1} },
11347 .block_erase = erase_chip_block_jedec,
11348 }
11349 },
Sean Nelson35727f72010-01-28 23:55:12 +000011350 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011351 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011352 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011353 },
11354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011355 {
11356 .vendor = "ST",
11357 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011358 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011359 .manufacture_id = ST_ID,
11360 .model_id = ST_M29F040B,
11361 .total_size = 512,
11362 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011363 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11364 .tested = TEST_UNTESTED,
11365 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011366 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011367 .block_erasers =
11368 {
11369 {
11370 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011371 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011372 }, {
11373 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011374 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011375 }
11376 },
Sean Nelson35727f72010-01-28 23:55:12 +000011377 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011378 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011379 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011380 },
11381
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011382 {
Sean Nelson35727f72010-01-28 23:55:12 +000011383 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011384 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011385 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011386 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011387 .manufacture_id = ST_ID,
11388 .model_id = ST_M29F400BB,
11389 .total_size = 512,
11390 .page_size = 64 * 1024,
11391 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011392 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011393 .probe = probe_m29f400bt,
11394 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11395 .block_erasers =
11396 {
11397 {
11398 .eraseblocks = {
11399 {16 * 1024, 1},
11400 {8 * 1024, 2},
11401 {32 * 1024, 1},
11402 {64 * 1024, 7},
11403 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011404 .block_erase = erase_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011405 }, {
11406 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011407 .block_erase = erase_chip_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011408 }
11409 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011410 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011412 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011413 },
11414 {
11415 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11416 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011417 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011418 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011419 .manufacture_id = ST_ID,
11420 .model_id = ST_M29F400BT,
11421 .total_size = 512,
11422 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011423 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011424 .tested = TEST_UNTESTED,
11425 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011426 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011427 .block_erasers =
11428 {
11429 {
11430 .eraseblocks = {
11431 {64 * 1024, 7},
11432 {32 * 1024, 1},
11433 {8 * 1024, 2},
11434 {16 * 1024, 1},
11435 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011436 .block_erase = erase_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011437 }, {
11438 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011439 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011440 }
11441 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011442 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011444 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011445 },
11446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011447 {
11448 .vendor = "ST",
11449 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011450 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011451 .manufacture_id = ST_ID,
11452 .model_id = ST_M29W010B,
11453 .total_size = 128,
11454 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011455 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011456 .tested = TEST_UNTESTED,
11457 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011458 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011459 .block_erasers =
11460 {
11461 {
11462 .eraseblocks = { {16 * 1024, 8}, },
11463 .block_erase = erase_sector_jedec,
11464 }, {
11465 .eraseblocks = { {128 * 1024, 1} },
11466 .block_erase = erase_chip_block_jedec,
11467 }
11468 },
Sean Nelson35727f72010-01-28 23:55:12 +000011469 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011470 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011471 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011472 },
11473
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011474 {
11475 .vendor = "ST",
11476 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011477 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011478 .manufacture_id = ST_ID,
11479 .model_id = ST_M29W040B,
11480 .total_size = 512,
11481 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011482 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011483 .tested = TEST_UNTESTED,
11484 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011485 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011486 .block_erasers =
11487 {
11488 {
11489 .eraseblocks = { {64 * 1024, 8}, },
11490 .block_erase = erase_sector_jedec,
11491 }, {
11492 .eraseblocks = { {512 * 1024, 1} },
11493 .block_erase = erase_chip_block_jedec,
11494 }
11495 },
Sean Nelson35727f72010-01-28 23:55:12 +000011496 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011497 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011498 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011499 },
11500
Stefan Taunereb582572012-09-21 12:52:50 +000011501 {
11502 .vendor = "ST",
11503 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011504 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011505 .manufacture_id = ST_ID,
11506 .model_id = ST_M29W512B,
11507 .total_size = 64,
11508 .page_size = 64 * 1024,
11509 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011510 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011511 .probe = probe_jedec,
11512 .probe_timing = TIMING_ZERO,
11513 .block_erasers =
11514 {
11515 {
11516 .eraseblocks = { {64 * 1024, 1} },
11517 .block_erase = erase_chip_block_jedec,
11518 }
11519 },
11520 .write = write_jedec_1,
11521 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011522 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011523 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011524
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011525 {
11526 .vendor = "ST",
11527 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011528 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011529 .manufacture_id = ST_ID,
11530 .model_id = ST_M50FLW040A,
11531 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011532 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011533 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011534 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011535 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011536 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011537 .block_erasers =
11538 {
11539 {
Sean Nelson329bde72010-01-19 16:39:19 +000011540 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011541 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011542 {64 * 1024, 5}, /* block */
11543 {4 * 1024, 16}, /* sector */
11544 {4 * 1024, 16}, /* sector */
11545 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011546 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011547 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011548 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011549 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011550 }
11551 },
Sean Nelson28accc22010-03-19 18:47:06 +000011552 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011553 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011555 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011556 },
11557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011558 {
11559 .vendor = "ST",
11560 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011561 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011562 .manufacture_id = ST_ID,
11563 .model_id = ST_M50FLW040B,
11564 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011565 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011566 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011567 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011568 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011569 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011570 .block_erasers =
11571 {
11572 {
Sean Nelson329bde72010-01-19 16:39:19 +000011573 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011574 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011575 {4 * 1024, 16}, /* sector */
11576 {64 * 1024, 5}, /* block */
11577 {4 * 1024, 16}, /* sector */
11578 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011579 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011580 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011581 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011582 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011583 }
11584 },
Sean Nelson28accc22010-03-19 18:47:06 +000011585 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011586 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011587 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011588 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011589 },
11590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011591 {
11592 .vendor = "ST",
11593 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011594 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011595 .manufacture_id = ST_ID,
11596 .model_id = ST_M50FLW080A,
11597 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011598 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011599 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011600 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011601 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011602 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011603 .block_erasers =
11604 {
11605 {
Sean Nelson329bde72010-01-19 16:39:19 +000011606 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011607 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011608 {64 * 1024, 13}, /* block */
11609 {4 * 1024, 16}, /* sector */
11610 {4 * 1024, 16}, /* sector */
11611 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011612 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011613 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011614 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011615 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011616 }
11617 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011618 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011619 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011620 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011621 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011622 },
11623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011624 {
11625 .vendor = "ST",
11626 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011627 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011628 .manufacture_id = ST_ID,
11629 .model_id = ST_M50FLW080B,
11630 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011631 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011632 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011633 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011634 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011635 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011636 .block_erasers =
11637 {
11638 {
Sean Nelson329bde72010-01-19 16:39:19 +000011639 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011640 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011641 {4 * 1024, 16}, /* sector */
11642 {64 * 1024, 13}, /* block */
11643 {4 * 1024, 16}, /* sector */
11644 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011645 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011646 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011647 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011648 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011649 }
11650 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011651 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011652 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011654 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011655 },
11656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011657 {
11658 .vendor = "ST",
11659 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011660 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011661 .manufacture_id = ST_ID,
11662 .model_id = ST_M50FW002,
11663 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011664 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011665 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011666 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011667 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011668 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011669 .block_erasers =
11670 {
11671 {
11672 .eraseblocks = {
11673 {64 * 1024, 3},
11674 {32 * 1024, 1},
11675 {8 * 1024, 2},
11676 {16 * 1024, 1},
11677 },
Sean Nelson28accc22010-03-19 18:47:06 +000011678 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011679 }
11680 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011681 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011682 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011684 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011685 },
11686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011687 {
11688 .vendor = "ST",
11689 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011690 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011691 .manufacture_id = ST_ID,
11692 .model_id = ST_M50FW016,
11693 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011694 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011695 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011696 .tested = TEST_UNTESTED,
11697 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011698 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011699 .block_erasers =
11700 {
11701 {
11702 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011703 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011704 }
11705 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011706 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011707 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011709 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011710 },
11711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011712 {
11713 .vendor = "ST",
11714 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011715 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011716 .manufacture_id = ST_ID,
11717 .model_id = ST_M50FW040,
11718 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011719 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011720 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011721 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011722 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011723 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011724 .block_erasers =
11725 {
11726 {
11727 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011728 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011729 }
11730 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011731 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011732 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011733 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011734 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011735 },
11736
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011737 {
11738 .vendor = "ST",
11739 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011740 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011741 .manufacture_id = ST_ID,
11742 .model_id = ST_M50FW080,
11743 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011744 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011745 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011746 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011747 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011748 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011749 .block_erasers =
11750 {
11751 {
11752 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011753 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011754 }
11755 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011756 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011757 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011758 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011759 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011760 },
11761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011762 {
11763 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011764 .name = "M50LPW080",
11765 .bustype = BUS_LPC, /* A/A Mux */
11766 .manufacture_id = ST_ID,
11767 .model_id = ST_M50LPW080,
11768 .total_size = 1024,
11769 .page_size = 0,
11770 .feature_bits = FEATURE_REGISTERMAP,
11771 .tested = TEST_UNTESTED,
11772 .probe = probe_82802ab,
11773 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11774 .block_erasers =
11775 {
11776 {
11777 .eraseblocks = { {64 * 1024, 16}, },
11778 .block_erase = erase_block_82802ab,
11779 }
11780 },
11781 .unlock = unlock_stm50_uniform,
11782 .write = write_82802ab,
11783 .read = read_memmapped,
11784 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11785 },
11786
11787 {
11788 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011789 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011790 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011791 .manufacture_id = ST_ID,
11792 .model_id = ST_M50LPW116,
11793 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011794 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011795 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011796 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011797 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011798 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011799 .block_erasers =
11800 {
11801 {
11802 .eraseblocks = {
11803 {4 * 1024, 16},
11804 {64 * 1024, 30},
11805 {32 * 1024, 1},
11806 {8 * 1024, 2},
11807 {16 * 1024, 1},
11808 },
Sean Nelson28accc22010-03-19 18:47:06 +000011809 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011810 }
11811 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011812 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011813 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011814 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011815 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011816 },
11817
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011818 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011819 .vendor = "SyncMOS/MoselVitelic",
11820 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011821 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011822 .manufacture_id = SYNCMOS_MVC_ID,
11823 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011824 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011825 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011826 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011827 .tested = TEST_UNTESTED,
11828 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011829 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011830 .block_erasers =
11831 {
11832 {
11833 .eraseblocks = { {512, 256} },
11834 .block_erase = erase_sector_jedec,
11835 }, {
11836 .eraseblocks = { {128 * 1024, 1} },
11837 .block_erase = erase_chip_block_jedec,
11838 },
11839 },
Sean Nelson35727f72010-01-28 23:55:12 +000011840 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011841 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011842 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011843 },
11844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011845 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011846 .vendor = "SyncMOS/MoselVitelic",
11847 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011848 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011849 .manufacture_id = SYNCMOS_MVC_ID,
11850 .model_id = SM_MVC_29C51001T,
11851 .total_size = 128,
11852 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011853 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011854 .tested = TEST_UNTESTED,
11855 .probe = probe_jedec,
11856 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11857 .block_erasers =
11858 {
11859 {
11860 .eraseblocks = { {512, 256} },
11861 .block_erase = erase_sector_jedec,
11862 }, {
11863 .eraseblocks = { {128 * 1024, 1} },
11864 .block_erase = erase_chip_block_jedec,
11865 },
11866 },
11867 .write = write_jedec_1,
11868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011869 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011870 },
11871
11872 {
11873 .vendor = "SyncMOS/MoselVitelic",
11874 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011875 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011876 .manufacture_id = SYNCMOS_MVC_ID,
11877 .model_id = SM_MVC_29C51002B,
11878 .total_size = 256,
11879 .page_size = 512,
11880 .feature_bits = FEATURE_EITHER_RESET,
11881 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011882 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011884 .block_erasers =
11885 {
11886 {
11887 .eraseblocks = { {512, 512} },
11888 .block_erase = erase_sector_jedec,
11889 }, {
11890 .eraseblocks = { {256 * 1024, 1} },
11891 .block_erase = erase_chip_block_jedec,
11892 },
11893 },
Sean Nelson35727f72010-01-28 23:55:12 +000011894 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011895 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011896 },
11897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011898 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011899 .vendor = "SyncMOS/MoselVitelic",
11900 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011901 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011902 .manufacture_id = SYNCMOS_MVC_ID,
11903 .model_id = SM_MVC_29C51002T,
11904 .total_size = 256,
11905 .page_size = 512,
11906 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011907 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011908 .probe = probe_jedec,
11909 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11910 .block_erasers =
11911 {
11912 {
11913 .eraseblocks = { {512, 512} },
11914 .block_erase = erase_sector_jedec,
11915 }, {
11916 .eraseblocks = { {256 * 1024, 1} },
11917 .block_erase = erase_chip_block_jedec,
11918 },
11919 },
11920 .write = write_jedec_1,
11921 .read = read_memmapped,
11922 },
11923
11924 {
11925 .vendor = "SyncMOS/MoselVitelic",
11926 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011927 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011928 .manufacture_id = SYNCMOS_MVC_ID,
11929 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011930 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011931 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011932 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011933 .tested = TEST_UNTESTED,
11934 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011935 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011936 .block_erasers =
11937 {
11938 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011939 .eraseblocks = { {1024, 512} },
11940 .block_erase = erase_sector_jedec,
11941 }, {
11942 .eraseblocks = { {512 * 1024, 1} },
11943 .block_erase = erase_chip_block_jedec,
11944 },
11945 },
11946 .write = write_jedec_1,
11947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011948 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011949 },
11950
11951 {
11952 .vendor = "SyncMOS/MoselVitelic",
11953 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011954 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011955 .manufacture_id = SYNCMOS_MVC_ID,
11956 .model_id = SM_MVC_29C51004T,
11957 .total_size = 512,
11958 .page_size = 1024,
11959 .feature_bits = FEATURE_EITHER_RESET,
11960 .tested = TEST_UNTESTED,
11961 .probe = probe_jedec,
11962 .probe_timing = TIMING_ZERO,
11963 .block_erasers =
11964 {
11965 {
11966 .eraseblocks = { {1024, 512} },
11967 .block_erase = erase_sector_jedec,
11968 }, {
11969 .eraseblocks = { {512 * 1024, 1} },
11970 .block_erase = erase_chip_block_jedec,
11971 },
11972 },
11973 .write = write_jedec_1,
11974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011975 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011976 },
11977
11978 {
11979 .vendor = "SyncMOS/MoselVitelic",
11980 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011981 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011982 .manufacture_id = SYNCMOS_MVC_ID,
11983 .model_id = SM_MVC_29C31004B,
11984 .total_size = 512,
11985 .page_size = 1024,
11986 .feature_bits = FEATURE_EITHER_RESET,
11987 .tested = TEST_UNTESTED,
11988 .probe = probe_jedec,
11989 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11990 .block_erasers =
11991 {
11992 {
11993 .eraseblocks = { {1024, 512} },
11994 .block_erase = erase_sector_jedec,
11995 }, {
11996 .eraseblocks = { {512 * 1024, 1} },
11997 .block_erase = erase_chip_block_jedec,
11998 },
11999 },
12000 .write = write_jedec_1,
12001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012002 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012003 },
12004
12005 {
12006 .vendor = "SyncMOS/MoselVitelic",
12007 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012008 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012009 .manufacture_id = SYNCMOS_MVC_ID,
12010 .model_id = SM_MVC_29C31004T,
12011 .total_size = 512,
12012 .page_size = 1024,
12013 .feature_bits = FEATURE_EITHER_RESET,
12014 .tested = TEST_UNTESTED,
12015 .probe = probe_jedec,
12016 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12017 .block_erasers =
12018 {
12019 {
12020 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012021 .block_erase = erase_sector_jedec,
12022 }, {
12023 .eraseblocks = { {512 * 1024, 1} },
12024 .block_erase = erase_chip_block_jedec,
12025 },
12026 },
Sean Nelson35727f72010-01-28 23:55:12 +000012027 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012029 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012030 },
12031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012032 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012033 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012034 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012035 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012036 .manufacture_id = TI_OLD_ID,
12037 .model_id = TI_TMS29F002RB,
12038 .total_size = 256,
12039 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012040 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012041 .tested = TEST_UNTESTED,
12042 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012043 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012044 .block_erasers =
12045 {
12046 {
12047 .eraseblocks = {
12048 {16 * 1024, 1},
12049 {8 * 1024, 2},
12050 {32 * 1024, 1},
12051 {64 * 1024, 3},
12052 },
12053 .block_erase = erase_sector_jedec,
12054 }, {
12055 .eraseblocks = { {256 * 1024, 1} },
12056 .block_erase = erase_chip_block_jedec,
12057 },
12058 },
Sean Nelson35727f72010-01-28 23:55:12 +000012059 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012060 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012061 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012062 },
12063
12064 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012065 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012066 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012067 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012068 .manufacture_id = TI_OLD_ID,
12069 .model_id = TI_TMS29F002RT,
12070 .total_size = 256,
12071 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012072 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012073 .tested = TEST_UNTESTED,
12074 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012075 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012076 .block_erasers =
12077 {
12078 {
12079 .eraseblocks = {
12080 {64 * 1024, 3},
12081 {32 * 1024, 1},
12082 {8 * 1024, 2},
12083 {16 * 1024, 1},
12084 },
12085 .block_erase = erase_sector_jedec,
12086 }, {
12087 .eraseblocks = { {256 * 1024, 1} },
12088 .block_erase = erase_chip_block_jedec,
12089 },
12090 },
Sean Nelson35727f72010-01-28 23:55:12 +000012091 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012093 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012094 },
12095
12096 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012097 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012098 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012099 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012100 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012101 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012102 .total_size = 1024,
12103 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012104 /* supports SFDP */
12105 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012107 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012108 .probe = probe_spi_rdid,
12109 .probe_timing = TIMING_ZERO,
12110 .block_erasers =
12111 {
12112 {
12113 .eraseblocks = { {4 * 1024, 256} },
12114 .block_erase = spi_block_erase_20,
12115 }, {
12116 .eraseblocks = { {32 * 1024, 32} },
12117 .block_erase = spi_block_erase_52,
12118 }, {
12119 .eraseblocks = { {64 * 1024, 16} },
12120 .block_erase = spi_block_erase_d8,
12121 }, {
12122 .eraseblocks = { {1024 * 1024, 1} },
12123 .block_erase = spi_block_erase_60,
12124 }, {
12125 .eraseblocks = { {1024 * 1024, 1} },
12126 .block_erase = spi_block_erase_c7,
12127 }
12128 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012129 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012130 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012131 .write = spi_chip_write_256,
12132 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012133 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012134 },
12135
12136 {
12137 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012138 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012139 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012140 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012141 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012142 .total_size = 2048,
12143 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012144 /* supports SFDP */
12145 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000012147 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012148 .probe = probe_spi_rdid,
12149 .probe_timing = TIMING_ZERO,
12150 .block_erasers =
12151 {
12152 {
12153 .eraseblocks = { {4 * 1024, 512} },
12154 .block_erase = spi_block_erase_20,
12155 }, {
12156 .eraseblocks = { {32 * 1024, 64} },
12157 .block_erase = spi_block_erase_52,
12158 }, {
12159 .eraseblocks = { {64 * 1024, 32} },
12160 .block_erase = spi_block_erase_d8,
12161 }, {
12162 .eraseblocks = { {2 * 1024 * 1024, 1} },
12163 .block_erase = spi_block_erase_60,
12164 }, {
12165 .eraseblocks = { {2 * 1024 * 1024, 1} },
12166 .block_erase = spi_block_erase_c7,
12167 }
12168 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012169 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012170 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012171 .write = spi_chip_write_256,
12172 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012173 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012174 },
12175
12176 {
12177 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012178 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012179 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012180 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012181 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012182 .total_size = 4096,
12183 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012184 /* supports SFDP */
12185 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012186 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012187 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012188 .probe = probe_spi_rdid,
12189 .probe_timing = TIMING_ZERO,
12190 .block_erasers =
12191 {
12192 {
12193 .eraseblocks = { {4 * 1024, 1024} },
12194 .block_erase = spi_block_erase_20,
12195 }, {
12196 .eraseblocks = { {32 * 1024, 128} },
12197 .block_erase = spi_block_erase_52,
12198 }, {
12199 .eraseblocks = { {64 * 1024, 64} },
12200 .block_erase = spi_block_erase_d8,
12201 }, {
12202 .eraseblocks = { {4 * 1024 * 1024, 1} },
12203 .block_erase = spi_block_erase_60,
12204 }, {
12205 .eraseblocks = { {4 * 1024 * 1024, 1} },
12206 .block_erase = spi_block_erase_c7,
12207 }
12208 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012209 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012210 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012211 .write = spi_chip_write_256,
12212 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012213 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012214 },
12215
12216 {
12217 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012218 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012219 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012220 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012221 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012222 .total_size = 8192,
12223 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012224 /* supports SFDP */
12225 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012227 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012228 .probe = probe_spi_rdid,
12229 .probe_timing = TIMING_ZERO,
12230 .block_erasers =
12231 {
12232 {
12233 .eraseblocks = { {4 * 1024, 2048} },
12234 .block_erase = spi_block_erase_20,
12235 }, {
12236 .eraseblocks = { {32 * 1024, 256} },
12237 .block_erase = spi_block_erase_52,
12238 }, {
12239 .eraseblocks = { {64 * 1024, 128} },
12240 .block_erase = spi_block_erase_d8,
12241 }, {
12242 .eraseblocks = { {8 * 1024 * 1024, 1} },
12243 .block_erase = spi_block_erase_60,
12244 }, {
12245 .eraseblocks = { {8 * 1024 * 1024, 1} },
12246 .block_erase = spi_block_erase_c7,
12247 }
12248 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012249 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012250 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012251 .write = spi_chip_write_256,
12252 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012253 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012254 },
12255
12256 {
12257 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012258 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012259 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012260 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012261 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012262 .total_size = 16384,
12263 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012264 /* supports SFDP */
12265 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012266 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012267 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012268 .probe = probe_spi_rdid,
12269 .probe_timing = TIMING_ZERO,
12270 .block_erasers =
12271 {
12272 {
12273 .eraseblocks = { {4 * 1024, 4096} },
12274 .block_erase = spi_block_erase_20,
12275 }, {
12276 .eraseblocks = { {32 * 1024, 512} },
12277 .block_erase = spi_block_erase_52,
12278 }, {
12279 .eraseblocks = { {64 * 1024, 256} },
12280 .block_erase = spi_block_erase_d8,
12281 }, {
12282 .eraseblocks = { {16 * 1024 * 1024, 1} },
12283 .block_erase = spi_block_erase_60,
12284 }, {
12285 .eraseblocks = { {16 * 1024 * 1024, 1} },
12286 .block_erase = spi_block_erase_c7,
12287 }
12288 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012289 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012290 .unlock = spi_disable_blockprotect,
12291 .write = spi_chip_write_256,
12292 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012293 .voltage = {2700, 3600},
12294 },
12295
12296 {
12297 .vendor = "Winbond",
12298 .name = "W25Q20.W",
12299 .bustype = BUS_SPI,
12300 .manufacture_id = WINBOND_NEX_ID,
12301 .model_id = WINBOND_NEX_W25Q20_W,
12302 .total_size = 256,
12303 .page_size = 256,
12304 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12306 .tested = TEST_UNTESTED,
12307 .probe = probe_spi_rdid,
12308 .probe_timing = TIMING_ZERO,
12309 .block_erasers =
12310 {
12311 {
12312 .eraseblocks = { {4 * 1024, 64} },
12313 .block_erase = spi_block_erase_20,
12314 }, {
12315 .eraseblocks = { {32 * 1024, 8} },
12316 .block_erase = spi_block_erase_52,
12317 }, {
12318 .eraseblocks = { {64 * 1024, 4} },
12319 .block_erase = spi_block_erase_d8,
12320 }, {
12321 .eraseblocks = { {256 * 1024, 1} },
12322 .block_erase = spi_block_erase_60,
12323 }, {
12324 .eraseblocks = { {256 * 1024, 1} },
12325 .block_erase = spi_block_erase_c7,
12326 }
12327 },
12328 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12329 .unlock = spi_disable_blockprotect,
12330 .write = spi_chip_write_256,
12331 .read = spi_chip_read,
12332 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12333 },
12334
12335 {
12336 .vendor = "Winbond",
12337 .name = "W25Q40.W",
12338 .bustype = BUS_SPI,
12339 .manufacture_id = WINBOND_NEX_ID,
12340 .model_id = WINBOND_NEX_W25Q40_W,
12341 .total_size = 512,
12342 .page_size = 256,
12343 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12344 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12345 .tested = TEST_UNTESTED,
12346 .probe = probe_spi_rdid,
12347 .probe_timing = TIMING_ZERO,
12348 .block_erasers =
12349 {
12350 {
12351 .eraseblocks = { {4 * 1024, 128} },
12352 .block_erase = spi_block_erase_20,
12353 }, {
12354 .eraseblocks = { {32 * 1024, 16} },
12355 .block_erase = spi_block_erase_52,
12356 }, {
12357 .eraseblocks = { {64 * 1024, 8} },
12358 .block_erase = spi_block_erase_d8,
12359 }, {
12360 .eraseblocks = { {512 * 1024, 1} },
12361 .block_erase = spi_block_erase_60,
12362 }, {
12363 .eraseblocks = { {512 * 1024, 1} },
12364 .block_erase = spi_block_erase_c7,
12365 }
12366 },
12367 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12368 .unlock = spi_disable_blockprotect,
12369 .write = spi_chip_write_256,
12370 .read = spi_chip_read,
12371 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12372 },
12373
12374 {
12375 .vendor = "Winbond",
12376 .name = "W25Q80.W",
12377 .bustype = BUS_SPI,
12378 .manufacture_id = WINBOND_NEX_ID,
12379 .model_id = WINBOND_NEX_W25Q80_W,
12380 .total_size = 1024,
12381 .page_size = 256,
12382 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12383 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12384 .tested = TEST_UNTESTED,
12385 .probe = probe_spi_rdid,
12386 .probe_timing = TIMING_ZERO,
12387 .block_erasers =
12388 {
12389 {
12390 .eraseblocks = { {4 * 1024, 256} },
12391 .block_erase = spi_block_erase_20,
12392 }, {
12393 .eraseblocks = { {32 * 1024, 32} },
12394 .block_erase = spi_block_erase_52,
12395 }, {
12396 .eraseblocks = { {64 * 1024, 16} },
12397 .block_erase = spi_block_erase_d8,
12398 }, {
12399 .eraseblocks = { {1 * 1024 * 1024, 1} },
12400 .block_erase = spi_block_erase_60,
12401 }, {
12402 .eraseblocks = { {1 * 1024 * 1024, 1} },
12403 .block_erase = spi_block_erase_c7,
12404 }
12405 },
12406 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12407 .unlock = spi_disable_blockprotect,
12408 .write = spi_chip_write_256,
12409 .read = spi_chip_read,
12410 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12411 },
12412
12413 {
12414 .vendor = "Winbond",
12415 .name = "W25Q16.W",
12416 .bustype = BUS_SPI,
12417 .manufacture_id = WINBOND_NEX_ID,
12418 .model_id = WINBOND_NEX_W25Q16_W,
12419 .total_size = 2048,
12420 .page_size = 256,
12421 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12422 /* QPI enable 0x38, disable 0xFF */
12423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12424 .tested = TEST_UNTESTED,
12425 .probe = probe_spi_rdid,
12426 .probe_timing = TIMING_ZERO,
12427 .block_erasers =
12428 {
12429 {
12430 .eraseblocks = { {4 * 1024, 512} },
12431 .block_erase = spi_block_erase_20,
12432 }, {
12433 .eraseblocks = { {32 * 1024, 64} },
12434 .block_erase = spi_block_erase_52,
12435 }, {
12436 .eraseblocks = { {64 * 1024, 32} },
12437 .block_erase = spi_block_erase_d8,
12438 }, {
12439 .eraseblocks = { {2 * 1024 * 1024, 1} },
12440 .block_erase = spi_block_erase_60,
12441 }, {
12442 .eraseblocks = { {2 * 1024 * 1024, 1} },
12443 .block_erase = spi_block_erase_c7,
12444 }
12445 },
12446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12447 .unlock = spi_disable_blockprotect,
12448 .write = spi_chip_write_256,
12449 .read = spi_chip_read,
12450 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12451 },
12452
12453 {
12454 .vendor = "Winbond",
12455 .name = "W25Q32.W",
12456 .bustype = BUS_SPI,
12457 .manufacture_id = WINBOND_NEX_ID,
12458 .model_id = WINBOND_NEX_W25Q32_W,
12459 .total_size = 4096,
12460 .page_size = 256,
12461 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12462 /* QPI enable 0x38, disable 0xFF */
12463 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12464 .tested = TEST_OK_PREW,
12465 .probe = probe_spi_rdid,
12466 .probe_timing = TIMING_ZERO,
12467 .block_erasers =
12468 {
12469 {
12470 .eraseblocks = { {4 * 1024, 1024} },
12471 .block_erase = spi_block_erase_20,
12472 }, {
12473 .eraseblocks = { {32 * 1024, 128} },
12474 .block_erase = spi_block_erase_52,
12475 }, {
12476 .eraseblocks = { {64 * 1024, 64} },
12477 .block_erase = spi_block_erase_d8,
12478 }, {
12479 .eraseblocks = { {4 * 1024 * 1024, 1} },
12480 .block_erase = spi_block_erase_60,
12481 }, {
12482 .eraseblocks = { {4 * 1024 * 1024, 1} },
12483 .block_erase = spi_block_erase_c7,
12484 }
12485 },
12486 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12487 .unlock = spi_disable_blockprotect,
12488 .write = spi_chip_write_256,
12489 .read = spi_chip_read,
12490 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12491 },
12492
12493 {
12494 .vendor = "Winbond",
12495 .name = "W25Q64.W",
12496 .bustype = BUS_SPI,
12497 .manufacture_id = WINBOND_NEX_ID,
12498 .model_id = WINBOND_NEX_W25Q64_W,
12499 .total_size = 8192,
12500 .page_size = 256,
12501 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12502 /* QPI enable 0x38, disable 0xFF */
12503 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012504 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012505 .probe = probe_spi_rdid,
12506 .probe_timing = TIMING_ZERO,
12507 .block_erasers =
12508 {
12509 {
12510 .eraseblocks = { {4 * 1024, 2048} },
12511 .block_erase = spi_block_erase_20,
12512 }, {
12513 .eraseblocks = { {32 * 1024, 256} },
12514 .block_erase = spi_block_erase_52,
12515 }, {
12516 .eraseblocks = { {64 * 1024, 128} },
12517 .block_erase = spi_block_erase_d8,
12518 }, {
12519 .eraseblocks = { {8 * 1024 * 1024, 1} },
12520 .block_erase = spi_block_erase_60,
12521 }, {
12522 .eraseblocks = { {8 * 1024 * 1024, 1} },
12523 .block_erase = spi_block_erase_c7,
12524 }
12525 },
12526 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12527 .unlock = spi_disable_blockprotect,
12528 .write = spi_chip_write_256,
12529 .read = spi_chip_read,
12530 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012531 },
12532
12533 {
12534 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012535 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012536 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012537 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012538 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012539 .total_size = 128,
12540 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012541 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012542 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012543 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012544 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012545 .block_erasers =
12546 {
12547 {
12548 .eraseblocks = { {4 * 1024, 32} },
12549 .block_erase = spi_block_erase_20,
12550 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012551 .eraseblocks = { {64 * 1024, 2} },
12552 .block_erase = spi_block_erase_d8,
12553 }, {
12554 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012555 .block_erase = spi_block_erase_c7,
12556 }
12557 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012558 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012559 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012560 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012563 },
12564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012565 {
12566 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012567 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012568 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012569 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012570 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012571 .total_size = 256,
12572 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012573 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012574 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012576 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012577 .block_erasers =
12578 {
12579 {
12580 .eraseblocks = { {4 * 1024, 64} },
12581 .block_erase = spi_block_erase_20,
12582 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012583 .eraseblocks = { {64 * 1024, 4} },
12584 .block_erase = spi_block_erase_d8,
12585 }, {
12586 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012587 .block_erase = spi_block_erase_c7,
12588 }
12589 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012590 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012591 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012592 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012593 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012594 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012595 },
12596
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012597 {
12598 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012599 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012600 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012601 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012602 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012603 .total_size = 512,
12604 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012605 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012606 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012607 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012608 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012609 .block_erasers =
12610 {
12611 {
12612 .eraseblocks = { {4 * 1024, 128} },
12613 .block_erase = spi_block_erase_20,
12614 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012615 .eraseblocks = { {64 * 1024, 8} },
12616 .block_erase = spi_block_erase_d8,
12617 }, {
12618 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012619 .block_erase = spi_block_erase_c7,
12620 }
12621 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012622 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012623 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012624 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012626 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012627 },
12628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012629 {
12630 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012631 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012632 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012633 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012634 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012635 .total_size = 1024,
12636 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012637 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012638 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012640 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012641 .block_erasers =
12642 {
12643 {
12644 .eraseblocks = { {4 * 1024, 256} },
12645 .block_erase = spi_block_erase_20,
12646 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012647 .eraseblocks = { {64 * 1024, 16} },
12648 .block_erase = spi_block_erase_d8,
12649 }, {
12650 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012651 .block_erase = spi_block_erase_c7,
12652 }
12653 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012654 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012655 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012656 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012657 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012658 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012659 },
12660
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012661 {
12662 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012663 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012664 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012665 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012666 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012667 .total_size = 2048,
12668 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012669 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012670 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012671 .probe = probe_spi_rdid,
12672 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012673 .block_erasers =
12674 {
12675 {
12676 .eraseblocks = { {4 * 1024, 512} },
12677 .block_erase = spi_block_erase_20,
12678 }, {
12679 .eraseblocks = { {32 * 1024, 64} },
12680 .block_erase = spi_block_erase_52,
12681 }, {
12682 .eraseblocks = { {64 * 1024, 32} },
12683 .block_erase = spi_block_erase_d8,
12684 }, {
12685 .eraseblocks = { {2 * 1024 * 1024, 1} },
12686 .block_erase = spi_block_erase_60,
12687 }, {
12688 .eraseblocks = { {2 * 1024 * 1024, 1} },
12689 .block_erase = spi_block_erase_c7,
12690 }
12691 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012693 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012694 .write = spi_chip_write_256,
12695 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012696 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012697 },
12698
12699 {
12700 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012701 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012702 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012703 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012704 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012705 .total_size = 4096,
12706 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012707 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012708 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012709 .probe = probe_spi_rdid,
12710 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012711 .block_erasers =
12712 {
12713 {
12714 .eraseblocks = { {4 * 1024, 1024} },
12715 .block_erase = spi_block_erase_20,
12716 }, {
12717 .eraseblocks = { {32 * 1024, 128} },
12718 .block_erase = spi_block_erase_52,
12719 }, {
12720 .eraseblocks = { {64 * 1024, 64} },
12721 .block_erase = spi_block_erase_d8,
12722 }, {
12723 .eraseblocks = { {4 * 1024 * 1024, 1} },
12724 .block_erase = spi_block_erase_60,
12725 }, {
12726 .eraseblocks = { {4 * 1024 * 1024, 1} },
12727 .block_erase = spi_block_erase_c7,
12728 }
12729 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012730 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012731 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012732 .write = spi_chip_write_256,
12733 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012734 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012735 },
12736
12737 {
12738 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012739 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012740 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012741 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012742 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012743 .total_size = 8192,
12744 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012745 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012746 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012747 .probe = probe_spi_rdid,
12748 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012749 .block_erasers =
12750 {
12751 {
12752 .eraseblocks = { {4 * 1024, 2048} },
12753 .block_erase = spi_block_erase_20,
12754 }, {
12755 .eraseblocks = { {32 * 1024, 256} },
12756 .block_erase = spi_block_erase_52,
12757 }, {
12758 .eraseblocks = { {64 * 1024, 128} },
12759 .block_erase = spi_block_erase_d8,
12760 }, {
12761 .eraseblocks = { {8 * 1024 * 1024, 1} },
12762 .block_erase = spi_block_erase_60,
12763 }, {
12764 .eraseblocks = { {8 * 1024 * 1024, 1} },
12765 .block_erase = spi_block_erase_c7,
12766 }
12767 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012768 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012769 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012770 .write = spi_chip_write_256,
12771 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012772 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012773 },
12774
12775 {
12776 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012777 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012778 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012779 .manufacture_id = WINBOND_ID,
12780 .model_id = WINBOND_W29C010,
12781 .total_size = 128,
12782 .page_size = 128,
12783 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012784 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012785 .probe = probe_w29ee011,
12786 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12787 .block_erasers =
12788 {
12789 {
12790 .eraseblocks = { {128 * 1024, 1} },
12791 .block_erase = erase_chip_block_jedec,
12792 }
12793 },
12794 .write = write_jedec,
12795 .read = read_memmapped,
12796 },
12797
12798 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12799 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012800 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012801 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012802 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012803 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012804 .total_size = 128,
12805 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012806 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012807 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012808 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012809 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012810 .block_erasers =
12811 {
12812 {
12813 .eraseblocks = { {128 * 1024, 1} },
12814 .block_erase = erase_chip_block_jedec,
12815 }
12816 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012817 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012818 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012819 },
12820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012821 {
12822 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012823 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012824 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012825 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012826 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012827 .total_size = 256,
12828 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012829 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012830 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012831 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012832 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012833 .block_erasers =
12834 {
12835 {
12836 .eraseblocks = { {256 * 1024, 1} },
12837 .block_erase = erase_chip_block_jedec,
12838 }
12839 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012840 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012841 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012842 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012843 },
12844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012845 {
12846 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012847 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012848 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012850 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012851 .total_size = 512,
12852 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012853 .feature_bits = FEATURE_LONG_RESET,
12854 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012855 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012856 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012857 .block_erasers =
12858 {
12859 {
12860 .eraseblocks = { {512 * 1024, 1} },
12861 .block_erase = erase_chip_block_jedec,
12862 }
12863 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012864 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012866 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012867 },
12868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012869 {
12870 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012871 .name = "W39F010",
12872 .bustype = BUS_PARALLEL,
12873 .manufacture_id = WINBOND_ID,
12874 .model_id = WINBOND_W39F010,
12875 .total_size = 128,
12876 .page_size = 4 * 1024,
12877 .feature_bits = FEATURE_EITHER_RESET,
12878 .tested = TEST_OK_PREW,
12879 .probe = probe_jedec,
12880 .probe_timing = 10,
12881 .block_erasers =
12882 {
12883 {
12884 .eraseblocks = { {4 * 1024, 32} },
12885 .block_erase = erase_block_jedec,
12886 }, {
12887 .eraseblocks = { {128 * 1024, 1} },
12888 .block_erase = erase_chip_block_jedec,
12889 }
12890 },
12891 .printlock = printlock_w39f010,
12892 .write = write_jedec_1,
12893 .read = read_memmapped,
12894 .voltage = {4500, 5500},
12895 },
12896
12897 {
12898 .vendor = "Winbond",
12899 .name = "W39L010",
12900 .bustype = BUS_PARALLEL,
12901 .manufacture_id = WINBOND_ID,
12902 .model_id = WINBOND_W39L010,
12903 .total_size = 128,
12904 .page_size = 4 * 1024,
12905 .feature_bits = FEATURE_EITHER_RESET,
12906 .tested = TEST_UNTESTED,
12907 .probe = probe_jedec,
12908 .probe_timing = 10,
12909 .block_erasers =
12910 {
12911 {
12912 .eraseblocks = { {4 * 1024, 32} },
12913 .block_erase = erase_block_jedec,
12914 }, {
12915 .eraseblocks = { {128 * 1024, 1} },
12916 .block_erase = erase_chip_block_jedec,
12917 }
12918 },
12919 .printlock = printlock_w39l010,
12920 .write = write_jedec_1,
12921 .read = read_memmapped,
12922 .voltage = {3000, 3600},
12923 },
12924
12925 {
12926 .vendor = "Winbond",
12927 .name = "W39L020",
12928 .bustype = BUS_PARALLEL,
12929 .manufacture_id = WINBOND_ID,
12930 .model_id = WINBOND_W39L020,
12931 .total_size = 256,
12932 .page_size = 4 * 1024,
12933 .feature_bits = FEATURE_EITHER_RESET,
12934 .tested = TEST_UNTESTED,
12935 .probe = probe_jedec,
12936 .probe_timing = 10,
12937 .block_erasers =
12938 {
12939 {
12940 .eraseblocks = { {4 * 1024, 64} },
12941 .block_erase = erase_block_jedec,
12942 }, {
12943 .eraseblocks = { {64 * 1024, 4} },
12944 .block_erase = erase_sector_jedec,
12945 }, {
12946 .eraseblocks = { {256 * 1024, 1} },
12947 .block_erase = erase_chip_block_jedec,
12948 }
12949 },
12950 .printlock = printlock_w39l020,
12951 .write = write_jedec_1,
12952 .read = read_memmapped,
12953 .voltage = {3000, 3600},
12954 },
12955
12956 {
12957 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012958 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012959 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012960 .manufacture_id = WINBOND_ID,
12961 .model_id = WINBOND_W39L040,
12962 .total_size = 512,
12963 .page_size = 64 * 1024,
12964 .feature_bits = FEATURE_EITHER_RESET,
12965 .tested = TEST_OK_PR,
12966 .probe = probe_jedec,
12967 .probe_timing = 10,
12968 .block_erasers =
12969 {
12970 {
12971 .eraseblocks = { {4 * 1024, 128} },
12972 .block_erase = erase_block_jedec,
12973 }, {
12974 .eraseblocks = { {64 * 1024, 8} },
12975 .block_erase = erase_sector_jedec,
12976 }, {
12977 .eraseblocks = { {512 * 1024, 1} },
12978 .block_erase = erase_chip_block_jedec,
12979 }
12980 },
12981 .printlock = printlock_w39l040,
12982 .write = write_jedec_1,
12983 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012984 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012985 },
12986
12987 {
12988 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012989 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012990 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012991 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012992 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012993 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012994 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012995 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012996 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012997 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012998 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012999 .block_erasers =
13000 {
13001 {
13002 .eraseblocks = { {64 * 1024, 8} },
13003 .block_erase = erase_sector_jedec,
13004 }, {
13005 .eraseblocks = { {512 * 1024, 1} },
13006 .block_erase = erase_chip_block_jedec,
13007 }
13008 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013009 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000013010 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013012 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013013 },
13014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013015 {
13016 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013017 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013018 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013019 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013020 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013021 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013022 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013023 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013024 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013025 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000013026 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013027 .block_erasers =
13028 {
13029 {
13030 .eraseblocks = { {64 * 1024, 8} },
13031 .block_erase = erase_sector_jedec,
13032 }, {
13033 .eraseblocks = { {512 * 1024, 1} },
13034 .block_erase = erase_chip_block_jedec,
13035 }
13036 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013037 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000013038 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013039 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013040 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013041 },
13042
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013043 {
13044 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013045 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013046 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013047 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013048 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013049 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013050 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013051 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013052 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000013053 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013054 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013055 .block_erasers =
13056 {
13057 {
13058 .eraseblocks = { {64 * 1024, 8} },
13059 .block_erase = erase_sector_jedec,
13060 }, {
13061 .eraseblocks = { {512 * 1024, 1} },
13062 .block_erase = erase_chip_block_jedec,
13063 }
13064 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000013065 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000013066 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013067 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013068 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013069 },
13070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013071 {
13072 .vendor = "Winbond",
13073 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013074 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013075 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013076 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013077 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013078 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000013079 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013080 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013081 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013082 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013083 .block_erasers =
13084 {
13085 {
13086 .eraseblocks = { {4 * 1024, 128} },
13087 .block_erase = erase_block_jedec,
13088 }, {
13089 .eraseblocks = { {64 * 1024, 8} },
13090 .block_erase = erase_sector_jedec,
13091 }, {
13092 .eraseblocks = { {512 * 1024, 1} },
13093 .block_erase = erase_chip_block_jedec,
13094 }
13095 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013096 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000013097 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000013098 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013099 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013100 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013101 },
13102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013103 {
13104 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013105 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013106 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013107 .manufacture_id = WINBOND_ID,
13108 .model_id = WINBOND_W39V040B,
13109 .total_size = 512,
13110 .page_size = 64 * 1024,
13111 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013112 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013113 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013114 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013115 .block_erasers =
13116 {
13117 {
13118 .eraseblocks = { {64 * 1024, 8} },
13119 .block_erase = erase_sector_jedec,
13120 }, {
13121 .eraseblocks = { {512 * 1024, 1} },
13122 .block_erase = erase_chip_block_jedec,
13123 }
13124 },
13125 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000013126 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013127 .write = write_jedec_1,
13128 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013129 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013130 },
13131
13132 {
13133 .vendor = "Winbond",
13134 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013135 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013136 .manufacture_id = WINBOND_ID,
13137 .model_id = WINBOND_W39V040C,
13138 .total_size = 512,
13139 .page_size = 64 * 1024,
13140 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000013141 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013142 .probe = probe_jedec,
13143 .probe_timing = 10,
13144 .block_erasers =
13145 {
13146 {
13147 .eraseblocks = { {64 * 1024, 8} },
13148 .block_erase = erase_sector_jedec,
13149 }, {
13150 .eraseblocks = { {512 * 1024, 1} },
13151 .block_erase = erase_chip_block_jedec,
13152 }
13153 },
13154 .printlock = printlock_w39v040fc,
13155 .write = write_jedec_1,
13156 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013157 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013158 },
13159
13160 {
13161 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013162 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013163 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013164 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013165 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013166 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013167 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013168 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000013169 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013170 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000013171 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013172 .block_erasers =
13173 {
13174 {
13175 .eraseblocks = { {64 * 1024, 16} },
13176 .block_erase = erase_sector_jedec,
13177 }, {
13178 .eraseblocks = { {1024 * 1024, 1} },
13179 .block_erase = erase_chip_block_jedec,
13180 }
13181 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013182 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000013183 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013185 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013186 },
13187
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013188 {
13189 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013190 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013191 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013192 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013193 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013194 .total_size = 256,
13195 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013196 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013197 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013198 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013199 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013200 .block_erasers =
13201 {
13202 {
13203 .eraseblocks = {
13204 {128 * 1024, 1},
13205 {96 * 1024, 1},
13206 {8 * 1024, 2},
13207 {16 * 1024, 1},
13208 },
13209 .block_erase = erase_sector_jedec,
13210 }, {
13211 .eraseblocks = { {256 * 1024, 1} },
13212 .block_erase = erase_chip_block_jedec,
13213 }
13214 },
Sean Nelson35727f72010-01-28 23:55:12 +000013215 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013217 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013218 },
13219
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013220 {
13221 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013222 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013223 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013224 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013225 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013226 .total_size = 256,
13227 .page_size = 128,
13228 .feature_bits = FEATURE_EITHER_RESET,
13229 .tested = TEST_OK_PROBE,
13230 .probe = probe_jedec,
13231 .probe_timing = 10,
13232 .block_erasers =
13233 {
13234 {
13235 .eraseblocks = { {256 * 1024, 1} },
13236 .block_erase = erase_chip_block_jedec,
13237 }
13238 },
13239 .write = write_jedec_1,
13240 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013241 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013242 },
13243
13244 {
13245 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013246 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013247 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013248 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013249 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013250 .total_size = 256,
13251 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013252 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013253 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013254 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013255 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013256 .block_erasers =
13257 {
13258 {
13259 .eraseblocks = {
13260 {64 * 1024, 3},
13261 {32 * 1024, 1},
13262 {8 * 1024, 2},
13263 {16 * 1024, 1},
13264 },
13265 .block_erase = erase_sector_jedec,
13266 }, {
13267 .eraseblocks = { {256 * 1024, 1} },
13268 .block_erase = erase_chip_block_jedec,
13269 }
13270 },
Sean Nelson35727f72010-01-28 23:55:12 +000013271 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013272 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013273 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013274 },
13275
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013276 {
13277 .vendor = "Winbond",
13278 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013279 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013280 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013281 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013282 .total_size = 256,
13283 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013284 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013285 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013286 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013287 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013288 .block_erasers =
13289 {
13290 {
13291 .eraseblocks = {
13292 {64 * 1024, 3},
13293 {32 * 1024, 1},
13294 {8 * 1024, 2},
13295 {16 * 1024, 1},
13296 },
13297 .block_erase = erase_sector_jedec,
13298 }, {
13299 .eraseblocks = { {256 * 1024, 1} },
13300 .block_erase = erase_chip_block_jedec,
13301 }
13302 },
Sean Nelson35727f72010-01-28 23:55:12 +000013303 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013304 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013305 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013306 },
13307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013308 {
13309 .vendor = "Winbond",
13310 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013311 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013312 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013313 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013314 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013315 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013316 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013317 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013318 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013319 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013320 .block_erasers =
13321 {
13322 {
13323 .eraseblocks = { {64 * 1024, 16}, },
13324 .block_erase = erase_sector_jedec,
13325 }, {
13326 .eraseblocks = { {1024 * 1024, 1} },
13327 .block_erase = erase_chip_block_jedec,
13328 }
13329 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013330 .printlock = printlock_w39v080fa,
13331 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000013332 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013333 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013334 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013335 },
13336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013337 {
13338 .vendor = "Winbond",
13339 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013340 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013341 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013342 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013343 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013344 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013345 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013346 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013347 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013348 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013349 .block_erasers =
13350 {
13351 {
13352 .eraseblocks = { {64 * 1024, 8}, },
13353 .block_erase = erase_sector_jedec,
13354 }, {
13355 .eraseblocks = { {512 * 1024, 1} },
13356 .block_erase = erase_chip_block_jedec,
13357 }
13358 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013359 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013360 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013361 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013362 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013363 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013364
13365 {
13366 .vendor = "Unknown",
13367 .name = "SFDP-capable chip",
13368 .bustype = BUS_SPI,
13369 .manufacture_id = GENERIC_MANUF_ID,
13370 .model_id = SFDP_DEVICE_ID,
13371 /* We present our own "report this" text hence we do not
13372 * want the default "This flash part has status UNTESTED..."
13373 * text to be printed. */
13374 .tested = TEST_OK_PREW,
13375 .probe = probe_spi_sfdp,
13376 .unlock = spi_disable_blockprotect, /* is this safe? */
13377 .read = spi_chip_read,
13378 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013379 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013380 /* Everything below will be set by the probing function. */
13381 .write = NULL,
13382 .total_size = 0,
13383 .page_size = 0,
13384 .feature_bits = 0,
13385 .block_erasers = {},
13386 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013388 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013389 .vendor = "Programmer",
13390 .name = "Opaque flash chip",
13391 .bustype = BUS_PROG,
13392 .manufacture_id = PROGMANUF_ID,
13393 .model_id = PROGDEV_ID,
13394 .total_size = 0,
13395 .page_size = 256,
13396 /* probe is assumed to work, rest will be filled in by probe */
13397 .tested = TEST_OK_PROBE,
13398 .probe = probe_opaque,
13399 /* eraseblock sizes will be set by the probing function */
13400 .block_erasers =
13401 {
13402 {
13403 .block_erase = erase_opaque,
13404 }
13405 },
13406 .write = write_opaque,
13407 .read = read_opaque,
13408 },
13409
13410 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013411 .vendor = "AMIC",
13412 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013413 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013414 .manufacture_id = AMIC_ID,
13415 .model_id = GENERIC_DEVICE_ID,
13416 .total_size = 0,
13417 .page_size = 256,
13418 .tested = TEST_BAD_PREW,
13419 .probe = probe_spi_rdid4,
13420 .probe_timing = TIMING_ZERO,
13421 .write = NULL,
13422 .read = NULL,
13423 },
13424
13425 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013426 .vendor = "Atmel",
13427 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013428 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013429 .manufacture_id = ATMEL_ID,
13430 .model_id = GENERIC_DEVICE_ID,
13431 .total_size = 0,
13432 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013433 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013434 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013435 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013436 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013437 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013438 },
13439
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013440 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013441 .vendor = "Eon",
13442 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013443 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013444 .manufacture_id = EON_ID_NOPREFIX,
13445 .model_id = GENERIC_DEVICE_ID,
13446 .total_size = 0,
13447 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013448 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013449 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013450 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013451 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013452 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013453 },
13454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013455 {
13456 .vendor = "Macronix",
13457 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013458 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013459 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013460 .model_id = GENERIC_DEVICE_ID,
13461 .total_size = 0,
13462 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013463 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013464 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013465 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013466 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013467 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013468 },
13469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013470 {
13471 .vendor = "PMC",
13472 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013473 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013474 .manufacture_id = PMC_ID,
13475 .model_id = GENERIC_DEVICE_ID,
13476 .total_size = 0,
13477 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013478 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013479 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013480 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013481 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013482 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013483 },
13484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013485 {
13486 .vendor = "SST",
13487 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013489 .manufacture_id = SST_ID,
13490 .model_id = GENERIC_DEVICE_ID,
13491 .total_size = 0,
13492 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013493 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013494 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013495 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013496 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013497 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013498 },
13499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013500 {
13501 .vendor = "ST",
13502 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013503 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013504 .manufacture_id = ST_ID,
13505 .model_id = GENERIC_DEVICE_ID,
13506 .total_size = 0,
13507 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013508 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013509 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013510 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013511 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013512 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013513 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013514
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013515 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013516 .vendor = "Sanyo",
13517 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013518 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013519 .manufacture_id = SANYO_ID,
13520 .model_id = GENERIC_DEVICE_ID,
13521 .total_size = 0,
13522 .page_size = 256,
13523 .tested = TEST_BAD_PREW,
13524 .probe = probe_spi_rdid,
13525 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013526 .write = NULL,
13527 .read = NULL,
13528 },
13529
13530 {
Stefan Taunereb582572012-09-21 12:52:50 +000013531 .vendor = "Winbond",
13532 .name = "unknown Winbond (ex Nexcom) SPI chip",
13533 .bustype = BUS_SPI,
13534 .manufacture_id = WINBOND_NEX_ID,
13535 .model_id = GENERIC_DEVICE_ID,
13536 .total_size = 0,
13537 .page_size = 256,
13538 .tested = TEST_BAD_PREW,
13539 .probe = probe_spi_rdid,
13540 .probe_timing = TIMING_ZERO,
13541 .write = NULL,
13542 .read = NULL,
13543 },
13544
13545 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013546 .vendor = "Generic",
13547 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013548 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013549 .manufacture_id = GENERIC_MANUF_ID,
13550 .model_id = GENERIC_DEVICE_ID,
13551 .total_size = 0,
13552 .page_size = 256,
13553 .tested = TEST_BAD_PREW,
13554 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013555 .write = NULL,
13556 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013557
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013558 {
13559 .vendor = "Generic",
13560 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013561 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013562 .manufacture_id = GENERIC_MANUF_ID,
13563 .model_id = GENERIC_DEVICE_ID,
13564 .total_size = 0,
13565 .page_size = 256,
13566 .tested = TEST_BAD_PREW,
13567 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013568 .write = NULL,
13569 },
13570
Stefan Tauner96658be2014-05-26 22:05:31 +000013571 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013572};
Stefan Tauner96658be2014-05-26 22:05:31 +000013573
13574const unsigned int flashchips_size = ARRAY_SIZE(flashchips);