blob: 5f5ffdf4a08195d164a1263445ca3169a481b36b [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",
Martin Roth440057a2014-07-13 00:05:07 +00006869 .name = "MX25U12835F",
6870 .bustype = BUS_SPI,
6871 .manufacture_id = MACRONIX_ID,
6872 .model_id = MACRONIX_MX25U12835E,
6873 .total_size = 16384,
6874 .page_size = 256,
6875 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6877 .tested = TEST_UNTESTED,
6878 .probe = probe_spi_rdid,
6879 .probe_timing = TIMING_ZERO,
6880 .block_erasers =
6881 {
6882 {
6883 .eraseblocks = { {4 * 1024, 4096} },
6884 .block_erase = spi_block_erase_20,
6885 }, {
6886 .eraseblocks = { {32 * 1024, 512} },
6887 .block_erase = spi_block_erase_52,
6888 }, {
6889 .eraseblocks = { {64 * 1024, 256} },
6890 .block_erase = spi_block_erase_d8,
6891 }, {
6892 .eraseblocks = { {16 * 1024 * 1024, 1} },
6893 .block_erase = spi_block_erase_60,
6894 }, {
6895 .eraseblocks = { {16 * 1024 * 1024, 1} },
6896 .block_erase = spi_block_erase_c7,
6897 }
6898 },
6899 /* TODO: security register */
6900 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
6901 .unlock = spi_disable_blockprotect_bp3_srwd,
6902 .write = spi_chip_write_256, /* Multi I/O supported */
6903 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6904 .voltage = {1650, 2000},
6905 },
6906
6907 {
6908 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006909 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006910 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006911 .manufacture_id = MACRONIX_ID,
6912 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006913 .total_size = 128,
6914 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6916 .tested = TEST_UNTESTED,
6917 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006918 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006919 .block_erasers =
6920 {
6921 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006922 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006923 {8 * 1024, 1},
6924 {4 * 1024, 2},
6925 {8 * 1024, 2},
6926 {32 * 1024, 1},
6927 {64 * 1024, 1},
6928 },
Sean Nelson35727f72010-01-28 23:55:12 +00006929 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006930 }, {
6931 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006932 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006933 }
6934 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006935 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006937 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006938 },
6939
6940 {
6941 .vendor = "Macronix",
6942 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006943 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006944 .manufacture_id = MACRONIX_ID,
6945 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006946 .total_size = 128,
6947 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006948 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006949 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006950 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006951 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006952 .block_erasers =
6953 {
6954 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006955 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006956 {64 * 1024, 1},
6957 {32 * 1024, 1},
6958 {8 * 1024, 2},
6959 {4 * 1024, 2},
6960 {8 * 1024, 1},
6961 },
Sean Nelson35727f72010-01-28 23:55:12 +00006962 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006963 }, {
6964 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006965 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006966 }
6967 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006968 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006970 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006971 },
6972
6973 {
6974 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006975 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006976 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006977 .manufacture_id = MACRONIX_ID,
6978 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 .total_size = 256,
6980 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006981 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006982 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006983 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006984 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006985 .block_erasers =
6986 {
6987 {
6988 .eraseblocks = {
6989 {16 * 1024, 1},
6990 {8 * 1024, 2},
6991 {32 * 1024, 1},
6992 {64 * 1024, 3},
6993 },
Sean Nelson35727f72010-01-28 23:55:12 +00006994 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006995 }, {
6996 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006997 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006998 },
6999 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007000 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007002 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007003 },
7004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 {
7006 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007007 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007008 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007009 .manufacture_id = MACRONIX_ID,
7010 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 .total_size = 256,
7012 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007013 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007014 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007015 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007016 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007017 .block_erasers =
7018 {
7019 {
7020 .eraseblocks = {
7021 {64 * 1024, 3},
7022 {32 * 1024, 1},
7023 {8 * 1024, 2},
7024 {16 * 1024, 1},
7025 },
Sean Nelson35727f72010-01-28 23:55:12 +00007026 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007027 }, {
7028 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007029 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007030 },
7031 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007034 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007035 },
7036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 {
7038 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007039 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007040 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007041 .manufacture_id = MACRONIX_ID,
7042 .model_id = MACRONIX_MX29F040,
7043 .total_size = 512,
7044 .page_size = 64 * 1024,
7045 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7046 .tested = TEST_UNTESTED,
7047 .probe = probe_jedec,
7048 .probe_timing = TIMING_ZERO,
7049 .block_erasers =
7050 {
7051 {
7052 .eraseblocks = { {64 * 1024, 8} },
7053 .block_erase = erase_sector_jedec,
7054 }, {
7055 .eraseblocks = { {512 * 1024, 1} },
7056 .block_erase = erase_chip_block_jedec,
7057 },
7058 },
7059 .write = write_jedec_1,
7060 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007061 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007062 },
7063
7064 {
7065 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007066 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007067 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007068 .manufacture_id = MACRONIX_ID,
7069 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007070 .total_size = 512,
7071 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007072 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7073 .tested = TEST_UNTESTED,
7074 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007075 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007076 .block_erasers =
7077 {
7078 {
7079 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007080 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007081 }, {
7082 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007083 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007084 },
7085 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007088 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007089 },
7090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007091 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007092 .vendor = "Micron/Numonyx/ST",
7093 .name = "M25P05-A",
7094 .bustype = BUS_SPI,
7095 .manufacture_id = ST_ID,
7096 .model_id = ST_M25P05A,
7097 .total_size = 64,
7098 .page_size = 256,
7099 .feature_bits = FEATURE_WRSR_WREN,
7100 .tested = TEST_OK_PREW,
7101 .probe = probe_spi_rdid,
7102 .probe_timing = TIMING_ZERO,
7103 .block_erasers =
7104 {
7105 {
7106 .eraseblocks = { {32 * 1024, 2} },
7107 .block_erase = spi_block_erase_d8,
7108 }, {
7109 .eraseblocks = { {64 * 1024, 1} },
7110 .block_erase = spi_block_erase_c7,
7111 }
7112 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007113 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007114 .unlock = spi_disable_blockprotect,
7115 .write = spi_chip_write_256,
7116 .read = spi_chip_read,
7117 .voltage = {2700, 3600},
7118 },
7119
7120 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7121 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7122 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7123 * only is successful if RDID does not work.
7124 */
7125 {
7126 .vendor = "Micron/Numonyx/ST",
7127 .name = "M25P05",
7128 .bustype = BUS_SPI,
7129 .manufacture_id = 0, /* Not used. */
7130 .model_id = ST_M25P05_RES,
7131 .total_size = 64,
7132 .page_size = 256,
7133 .feature_bits = FEATURE_WRSR_WREN,
7134 .tested = TEST_UNTESTED,
7135 .probe = probe_spi_res1,
7136 .probe_timing = TIMING_ZERO,
7137 .block_erasers =
7138 {
7139 {
7140 .eraseblocks = { {32 * 1024, 2} },
7141 .block_erase = spi_block_erase_d8,
7142 }, {
7143 .eraseblocks = { {64 * 1024, 1} },
7144 .block_erase = spi_block_erase_c7,
7145 }
7146 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007147 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007148 .unlock = spi_disable_blockprotect,
7149 .write = spi_chip_write_1, /* 128 */
7150 .read = spi_chip_read,
7151 .voltage = {2700, 3600},
7152 },
7153
7154 {
7155 .vendor = "Micron/Numonyx/ST",
7156 .name = "M25P10-A",
7157 .bustype = BUS_SPI,
7158 .manufacture_id = ST_ID,
7159 .model_id = ST_M25P10A,
7160 .total_size = 128,
7161 .page_size = 256,
7162 .feature_bits = FEATURE_WRSR_WREN,
7163 .tested = TEST_OK_PRE,
7164 .probe = probe_spi_rdid,
7165 .probe_timing = TIMING_ZERO,
7166 .block_erasers =
7167 {
7168 {
7169 .eraseblocks = { {32 * 1024, 4} },
7170 .block_erase = spi_block_erase_d8,
7171 }, {
7172 .eraseblocks = { {128 * 1024, 1} },
7173 .block_erase = spi_block_erase_c7,
7174 }
7175 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007176 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007177 .unlock = spi_disable_blockprotect,
7178 .write = spi_chip_write_256,
7179 .read = spi_chip_read,
7180 .voltage = {2700, 3600},
7181 },
7182
7183 /* The ST M25P10 has the same problem as the M25P05. */
7184 {
7185 .vendor = "Micron/Numonyx/ST",
7186 .name = "M25P10",
7187 .bustype = BUS_SPI,
7188 .manufacture_id = 0, /* Not used. */
7189 .model_id = ST_M25P10_RES,
7190 .total_size = 128,
7191 .page_size = 256,
7192 .feature_bits = FEATURE_WRSR_WREN,
7193 .tested = TEST_UNTESTED,
7194 .probe = probe_spi_res1,
7195 .probe_timing = TIMING_ZERO,
7196 .block_erasers =
7197 {
7198 {
7199 .eraseblocks = { {32 * 1024, 4} },
7200 .block_erase = spi_block_erase_d8,
7201 }, {
7202 .eraseblocks = { {128 * 1024, 1} },
7203 .block_erase = spi_block_erase_c7,
7204 }
7205 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007206 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007207 .unlock = spi_disable_blockprotect,
7208 .write = spi_chip_write_1, /* 128 */
7209 .read = spi_chip_read,
7210 .voltage = {2700, 3600},
7211 },
7212
7213 {
7214 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7215 .name = "M25P20",
7216 .bustype = BUS_SPI,
7217 .manufacture_id = ST_ID,
7218 .model_id = ST_M25P20,
7219 .total_size = 256,
7220 .page_size = 256,
7221 .feature_bits = FEATURE_WRSR_WREN,
7222 .tested = TEST_UNTESTED,
7223 .probe = probe_spi_rdid,
7224 .probe_timing = TIMING_ZERO,
7225 .block_erasers =
7226 {
7227 {
7228 .eraseblocks = { {64 * 1024, 4} },
7229 .block_erase = spi_block_erase_d8,
7230 }, {
7231 .eraseblocks = { {256 * 1024, 1} },
7232 .block_erase = spi_block_erase_c7,
7233 }
7234 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007235 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007236 .unlock = spi_disable_blockprotect,
7237 .write = spi_chip_write_256,
7238 .read = spi_chip_read, /* Fast read (0x0B) supported */
7239 .voltage = {2700, 3600},
7240 },
7241
7242 {
7243 .vendor = "Micron/Numonyx/ST",
7244 .name = "M25P20-old",
7245 .bustype = BUS_SPI,
7246 .manufacture_id = 0, /* Not used. */
7247 .model_id = ST_M25P20_RES,
7248 .total_size = 256,
7249 .page_size = 256,
7250 .feature_bits = FEATURE_WRSR_WREN,
7251 .tested = TEST_OK_PREW,
7252 .probe = probe_spi_res1,
7253 .probe_timing = TIMING_ZERO,
7254 .block_erasers =
7255 {
7256 {
7257 .eraseblocks = { {64 * 1024, 4} },
7258 .block_erase = spi_block_erase_d8,
7259 }, {
7260 .eraseblocks = { {256 * 1024, 1} },
7261 .block_erase = spi_block_erase_c7,
7262 }
7263 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007264 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007265 .unlock = spi_disable_blockprotect,
7266 .write = spi_chip_write_256,
7267 .read = spi_chip_read, /* Fast read (0x0B) supported */
7268 .voltage = {2700, 3600},
7269 },
7270
7271 {
7272 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7273 .name = "M25P40",
7274 .bustype = BUS_SPI,
7275 .manufacture_id = ST_ID,
7276 .model_id = ST_M25P40,
7277 .total_size = 512,
7278 .page_size = 256,
7279 .feature_bits = FEATURE_WRSR_WREN,
7280 .tested = TEST_OK_PREW,
7281 .probe = probe_spi_rdid,
7282 .probe_timing = TIMING_ZERO,
7283 .block_erasers =
7284 {
7285 {
7286 .eraseblocks = { {64 * 1024, 8} },
7287 .block_erase = spi_block_erase_d8,
7288 }, {
7289 .eraseblocks = { {512 * 1024, 1} },
7290 .block_erase = spi_block_erase_c7,
7291 }
7292 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007293 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007294 .unlock = spi_disable_blockprotect,
7295 .write = spi_chip_write_256,
7296 .read = spi_chip_read,
7297 .voltage = {2700, 3600},
7298 },
7299
7300 {
7301 .vendor = "Micron/Numonyx/ST",
7302 .name = "M25P40-old",
7303 .bustype = BUS_SPI,
7304 .manufacture_id = 0, /* Not used. */
7305 .model_id = ST_M25P40_RES,
7306 .total_size = 512,
7307 .page_size = 256,
7308 .feature_bits = FEATURE_WRSR_WREN,
7309 .tested = TEST_UNTESTED,
7310 .probe = probe_spi_res1,
7311 .probe_timing = TIMING_ZERO,
7312 .block_erasers =
7313 {
7314 {
7315 .eraseblocks = { {64 * 1024, 8} },
7316 .block_erase = spi_block_erase_d8,
7317 }, {
7318 .eraseblocks = { {512 * 1024, 1} },
7319 .block_erase = spi_block_erase_c7,
7320 }
7321 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007322 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007323 .unlock = spi_disable_blockprotect,
7324 .write = spi_chip_write_256,
7325 .read = spi_chip_read,
7326 },
7327
7328 {
7329 .vendor = "Micron/Numonyx/ST",
7330 .name = "M25P80",
7331 .bustype = BUS_SPI,
7332 .manufacture_id = ST_ID,
7333 .model_id = ST_M25P80,
7334 .total_size = 1024,
7335 .page_size = 256,
7336 .feature_bits = FEATURE_WRSR_WREN,
7337 .tested = TEST_OK_PREW,
7338 .probe = probe_spi_rdid,
7339 .probe_timing = TIMING_ZERO,
7340 .block_erasers =
7341 {
7342 {
7343 .eraseblocks = { {64 * 1024, 16} },
7344 .block_erase = spi_block_erase_d8,
7345 }, {
7346 .eraseblocks = { {1024 * 1024, 1} },
7347 .block_erase = spi_block_erase_c7,
7348 }
7349 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007350 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007351 .unlock = spi_disable_blockprotect,
7352 .write = spi_chip_write_256,
7353 .read = spi_chip_read,
7354 .voltage = {2700, 3600},
7355 },
7356
7357 {
7358 .vendor = "Micron/Numonyx/ST",
7359 .name = "M25P16",
7360 .bustype = BUS_SPI,
7361 .manufacture_id = ST_ID,
7362 .model_id = ST_M25P16,
7363 .total_size = 2048,
7364 .page_size = 256,
7365 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007366 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007367 .probe = probe_spi_rdid,
7368 .probe_timing = TIMING_ZERO,
7369 .block_erasers =
7370 {
7371 {
7372 .eraseblocks = { {64 * 1024, 32} },
7373 .block_erase = spi_block_erase_d8,
7374 }, {
7375 .eraseblocks = { {2 * 1024 * 1024, 1} },
7376 .block_erase = spi_block_erase_c7,
7377 }
7378 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007379 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007380 .unlock = spi_disable_blockprotect,
7381 .write = spi_chip_write_256,
7382 .read = spi_chip_read,
7383 .voltage = {2700, 3600},
7384 },
7385
7386 {
7387 .vendor = "Micron/Numonyx/ST",
7388 .name = "M25P32",
7389 .bustype = BUS_SPI,
7390 .manufacture_id = ST_ID,
7391 .model_id = ST_M25P32,
7392 .total_size = 4096,
7393 .page_size = 256,
7394 .feature_bits = FEATURE_WRSR_WREN,
7395 .tested = TEST_OK_PREW,
7396 .probe = probe_spi_rdid,
7397 .probe_timing = TIMING_ZERO,
7398 .block_erasers =
7399 {
7400 {
7401 .eraseblocks = { {64 * 1024, 64} },
7402 .block_erase = spi_block_erase_d8,
7403 }, {
7404 .eraseblocks = { {4 * 1024 * 1024, 1} },
7405 .block_erase = spi_block_erase_c7,
7406 }
7407 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007408 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007409 .unlock = spi_disable_blockprotect,
7410 .write = spi_chip_write_256,
7411 .read = spi_chip_read,
7412 .voltage = {2700, 3600},
7413 },
7414
7415 {
7416 .vendor = "Micron/Numonyx/ST",
7417 .name = "M25P64",
7418 .bustype = BUS_SPI,
7419 .manufacture_id = ST_ID,
7420 .model_id = ST_M25P64,
7421 .total_size = 8192,
7422 .page_size = 256,
7423 .feature_bits = FEATURE_WRSR_WREN,
7424 .tested = TEST_OK_PREW,
7425 .probe = probe_spi_rdid,
7426 .probe_timing = TIMING_ZERO,
7427 .block_erasers =
7428 {
7429 {
7430 .eraseblocks = { {64 * 1024, 128} },
7431 .block_erase = spi_block_erase_d8,
7432 }, {
7433 .eraseblocks = { {8 * 1024 * 1024, 1} },
7434 .block_erase = spi_block_erase_c7,
7435 }
7436 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007437 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007438 .unlock = spi_disable_blockprotect,
7439 .write = spi_chip_write_256,
7440 .read = spi_chip_read,
7441 .voltage = {2700, 3600},
7442 },
7443
7444 {
7445 .vendor = "Micron/Numonyx/ST",
7446 .name = "M25P128",
7447 .bustype = BUS_SPI,
7448 .manufacture_id = ST_ID,
7449 .model_id = ST_M25P128,
7450 .total_size = 16384,
7451 .page_size = 256,
7452 .feature_bits = FEATURE_WRSR_WREN,
7453 .tested = TEST_OK_PREW,
7454 .probe = probe_spi_rdid,
7455 .probe_timing = TIMING_ZERO,
7456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = { {256 * 1024, 64} },
7460 .block_erase = spi_block_erase_d8,
7461 }, {
7462 .eraseblocks = { {16 * 1024 * 1024, 1} },
7463 .block_erase = spi_block_erase_c7,
7464 }
7465 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007466 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007467 .unlock = spi_disable_blockprotect,
7468 .write = spi_chip_write_256,
7469 .read = spi_chip_read,
7470 .voltage = {2700, 3600},
7471 },
7472
7473 {
7474 .vendor = "Micron/Numonyx/ST",
7475 .name = "M25PE10",
7476 .bustype = BUS_SPI,
7477 .manufacture_id = ST_ID,
7478 .model_id = ST_M25PE10,
7479 .total_size = 128,
7480 .page_size = 256,
7481 .feature_bits = FEATURE_WRSR_WREN,
7482 .tested = TEST_UNTESTED,
7483 .probe = probe_spi_rdid,
7484 .probe_timing = TIMING_ZERO,
7485 .block_erasers =
7486 {
7487 {
7488 .eraseblocks = { {4 * 1024, 32} },
7489 .block_erase = spi_block_erase_20,
7490 }, {
7491 .eraseblocks = { {64 * 1024, 2} },
7492 .block_erase = spi_block_erase_d8,
7493 }, {
7494 .eraseblocks = { {128 * 1024, 1} },
7495 .block_erase = spi_block_erase_c7,
7496 }
7497 },
7498 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7499 .unlock = spi_disable_blockprotect,
7500 .write = spi_chip_write_256,
7501 .read = spi_chip_read,
7502 .voltage = {2700, 3600},
7503 },
7504
7505 {
7506 .vendor = "Micron/Numonyx/ST",
7507 .name = "M25PE20",
7508 .bustype = BUS_SPI,
7509 .manufacture_id = ST_ID,
7510 .model_id = ST_M25PE20,
7511 .total_size = 256,
7512 .page_size = 256,
7513 .feature_bits = FEATURE_WRSR_WREN,
7514 .tested = TEST_UNTESTED,
7515 .probe = probe_spi_rdid,
7516 .probe_timing = TIMING_ZERO,
7517 .block_erasers =
7518 {
7519 {
7520 .eraseblocks = { {4 * 1024, 64} },
7521 .block_erase = spi_block_erase_20,
7522 }, {
7523 .eraseblocks = { {64 * 1024, 4} },
7524 .block_erase = spi_block_erase_d8,
7525 }, {
7526 .eraseblocks = { {256 * 1024, 1} },
7527 .block_erase = spi_block_erase_c7,
7528 }
7529 },
7530 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7531 .unlock = spi_disable_blockprotect,
7532 .write = spi_chip_write_256,
7533 .read = spi_chip_read,
7534 .voltage = {2700, 3600},
7535 },
7536
7537 {
7538 .vendor = "Micron/Numonyx/ST",
7539 .name = "M25PE40",
7540 .bustype = BUS_SPI,
7541 .manufacture_id = ST_ID,
7542 .model_id = ST_M25PE40,
7543 .total_size = 512,
7544 .page_size = 256,
7545 .feature_bits = FEATURE_WRSR_WREN,
7546 .tested = TEST_UNTESTED,
7547 .probe = probe_spi_rdid,
7548 .probe_timing = TIMING_ZERO,
7549 .block_erasers =
7550 {
7551 {
7552 .eraseblocks = { {4 * 1024, 128} },
7553 .block_erase = spi_block_erase_20,
7554 }, {
7555 .eraseblocks = { {64 * 1024, 8} },
7556 .block_erase = spi_block_erase_d8,
7557 }, {
7558 .eraseblocks = { {512 * 1024, 1} },
7559 .block_erase = spi_block_erase_c7,
7560 }
7561 },
7562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7563 .unlock = spi_disable_blockprotect,
7564 .write = spi_chip_write_256,
7565 .read = spi_chip_read,
7566 .voltage = {2700, 3600},
7567 },
7568
7569 {
7570 .vendor = "Micron/Numonyx/ST",
7571 .name = "M25PE80",
7572 .bustype = BUS_SPI,
7573 .manufacture_id = ST_ID,
7574 .model_id = ST_M25PE80,
7575 .total_size = 1024,
7576 .page_size = 256,
7577 .feature_bits = FEATURE_WRSR_WREN,
7578 .tested = TEST_OK_PREW,
7579 .probe = probe_spi_rdid,
7580 .probe_timing = TIMING_ZERO,
7581 .block_erasers =
7582 {
7583 {
7584 .eraseblocks = { {4 * 1024, 256} },
7585 .block_erase = spi_block_erase_20,
7586 }, {
7587 .eraseblocks = { {64 * 1024, 16} },
7588 .block_erase = spi_block_erase_d8,
7589 }, {
7590 .eraseblocks = { {1024 * 1024, 1} },
7591 .block_erase = spi_block_erase_c7,
7592 }
7593 },
7594 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7595 .unlock = spi_disable_blockprotect,
7596 .write = spi_chip_write_256,
7597 .read = spi_chip_read,
7598 .voltage = {2700, 3600},
7599 },
7600
7601 {
7602 .vendor = "Micron/Numonyx/ST",
7603 .name = "M25PE16",
7604 .bustype = BUS_SPI,
7605 .manufacture_id = ST_ID,
7606 .model_id = ST_M25PE16,
7607 .total_size = 2048,
7608 .page_size = 256,
7609 .feature_bits = FEATURE_WRSR_WREN,
7610 .tested = TEST_UNTESTED,
7611 .probe = probe_spi_rdid,
7612 .probe_timing = TIMING_ZERO,
7613 .block_erasers =
7614 {
7615 {
7616 .eraseblocks = { {4 * 1024, 512} },
7617 .block_erase = spi_block_erase_20,
7618 }, {
7619 .eraseblocks = { {64 * 1024, 32} },
7620 .block_erase = spi_block_erase_d8,
7621 }, {
7622 .eraseblocks = { {2 * 1024 * 1024, 1} },
7623 .block_erase = spi_block_erase_c7,
7624 }
7625 },
7626 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7627 .unlock = spi_disable_blockprotect,
7628 .write = spi_chip_write_256,
7629 .read = spi_chip_read,
7630 .voltage = {2700, 3600},
7631 },
7632
7633 {
7634 .vendor = "Micron/Numonyx/ST",
7635 .name = "M25PX80",
7636 .bustype = BUS_SPI,
7637 .manufacture_id = ST_ID,
7638 .model_id = ST_M25PX80,
7639 .total_size = 1024,
7640 .page_size = 256,
7641 /* OTP: 64B total; read 0x4B, write 0x42 */
7642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7643 .tested = TEST_OK_PREW,
7644 .probe = probe_spi_rdid,
7645 .probe_timing = TIMING_ZERO,
7646 .block_erasers = {
7647 {
7648 .eraseblocks = { { 4 * 1024, 256 } },
7649 .block_erase = spi_block_erase_20,
7650 }, {
7651 .eraseblocks = { {64 * 1024, 16} },
7652 .block_erase = spi_block_erase_d8,
7653 }, {
7654 .eraseblocks = { {1024 * 1024, 1} },
7655 .block_erase = spi_block_erase_c7,
7656 }
7657 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007658 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007659 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7660 .write = spi_chip_write_256,
7661 .read = spi_chip_read,
7662 .voltage = {2700, 3600},
7663 },
7664
7665 {
7666 .vendor = "Micron/Numonyx/ST",
7667 .name = "M25PX16",
7668 .bustype = BUS_SPI,
7669 .manufacture_id = ST_ID,
7670 .model_id = ST_M25PX16,
7671 .total_size = 2048,
7672 .page_size = 256,
7673 /* OTP: 64B total; read 0x4B; write 0x42 */
7674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7675 .tested = TEST_OK_PREW,
7676 .probe = probe_spi_rdid,
7677 .probe_timing = TIMING_ZERO,
7678 .block_erasers =
7679 {
7680 {
7681 .eraseblocks = { { 4 * 1024, 512 } },
7682 .block_erase = spi_block_erase_20,
7683 }, {
7684 .eraseblocks = { {64 * 1024, 32} },
7685 .block_erase = spi_block_erase_d8,
7686 }, {
7687 .eraseblocks = { {2 * 1024 * 1024, 1} },
7688 .block_erase = spi_block_erase_c7,
7689 }
7690 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007691 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007692 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7693 .write = spi_chip_write_256,
7694 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007695 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007696 },
7697
7698 {
7699 .vendor = "Micron/Numonyx/ST",
7700 .name = "M25PX32",
7701 .bustype = BUS_SPI,
7702 .manufacture_id = ST_ID,
7703 .model_id = ST_M25PX32,
7704 .total_size = 4096,
7705 .page_size = 256,
7706 /* OTP: 64B total; read 0x4B; write 0x42 */
7707 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7708 .tested = TEST_OK_PRE,
7709 .probe = probe_spi_rdid,
7710 .probe_timing = TIMING_ZERO,
7711 .block_erasers =
7712 {
7713 {
7714 .eraseblocks = { { 4 * 1024, 1024 } },
7715 .block_erase = spi_block_erase_20,
7716 }, {
7717 .eraseblocks = { {64 * 1024, 64} },
7718 .block_erase = spi_block_erase_d8,
7719 }, {
7720 .eraseblocks = { {4 * 1024 * 1024, 1} },
7721 .block_erase = spi_block_erase_c7,
7722 }
7723 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007724 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007725 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7726 .write = spi_chip_write_256,
7727 .read = spi_chip_read,
7728 .voltage = {2700, 3600},
7729 },
7730
7731 {
7732 .vendor = "Micron/Numonyx/ST",
7733 .name = "M25PX64",
7734 .bustype = BUS_SPI,
7735 .manufacture_id = ST_ID,
7736 .model_id = ST_M25PX64,
7737 .total_size = 8192,
7738 .page_size = 256,
7739 /* OTP: 64B total; read 0x4B; write 0x42 */
7740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007741 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007742 .probe = probe_spi_rdid,
7743 .probe_timing = TIMING_ZERO,
7744 .block_erasers =
7745 {
7746 {
7747 .eraseblocks = { { 4 * 1024, 2048 } },
7748 .block_erase = spi_block_erase_20,
7749 }, {
7750 .eraseblocks = { {64 * 1024, 128} },
7751 .block_erase = spi_block_erase_d8,
7752 }, {
7753 .eraseblocks = { {8 * 1024 * 1024, 1} },
7754 .block_erase = spi_block_erase_c7,
7755 }
7756 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007757 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007758 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7759 .write = spi_chip_write_256,
7760 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007761 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007762 },
7763
7764 {
7765 .vendor = "Micron/Numonyx/ST",
7766 .name = "M45PE10",
7767 .bustype = BUS_SPI,
7768 .manufacture_id = ST_ID,
7769 .model_id = ST_M45PE10,
7770 .total_size = 128,
7771 .page_size = 256,
7772 .tested = TEST_UNTESTED,
7773 .probe = probe_spi_rdid,
7774 .probe_timing = TIMING_ZERO,
7775 .block_erasers = {
7776 {
7777 .eraseblocks = { {256, 512} },
7778 .block_erase = spi_block_erase_db,
7779 }, {
7780 .eraseblocks = { {64 * 1024, 2} },
7781 .block_erase = spi_block_erase_d8,
7782 }
7783 },
7784 .printlock = spi_prettyprint_status_register_default_welwip,
7785 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7786 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7787 .read = spi_chip_read, /* Fast read (0x0B) supported */
7788 .voltage = {2700, 3600},
7789 },
7790
7791 {
7792 .vendor = "Micron/Numonyx/ST",
7793 .name = "M45PE20",
7794 .bustype = BUS_SPI,
7795 .manufacture_id = ST_ID,
7796 .model_id = ST_M45PE20,
7797 .total_size = 256,
7798 .page_size = 256,
7799 .tested = TEST_UNTESTED,
7800 .probe = probe_spi_rdid,
7801 .probe_timing = TIMING_ZERO,
7802 .block_erasers = {
7803 {
7804 .eraseblocks = { {256, 1024} },
7805 .block_erase = spi_block_erase_db,
7806 }, {
7807 .eraseblocks = { {64 * 1024, 4} },
7808 .block_erase = spi_block_erase_d8,
7809 }
7810 },
7811 .printlock = spi_prettyprint_status_register_default_welwip,
7812 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7813 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7814 .read = spi_chip_read, /* Fast read (0x0B) supported */
7815 .voltage = {2700, 3600},
7816 },
7817
7818 {
7819 .vendor = "Micron/Numonyx/ST",
7820 .name = "M45PE40",
7821 .bustype = BUS_SPI,
7822 .manufacture_id = ST_ID,
7823 .model_id = ST_M45PE40,
7824 .total_size = 512,
7825 .page_size = 256,
7826 .tested = TEST_UNTESTED,
7827 .probe = probe_spi_rdid,
7828 .probe_timing = TIMING_ZERO,
7829 .block_erasers = {
7830 {
7831 .eraseblocks = { {256, 2048} },
7832 .block_erase = spi_block_erase_db,
7833 }, {
7834 .eraseblocks = { {64 * 1024, 8} },
7835 .block_erase = spi_block_erase_d8,
7836 }
7837 },
7838 .printlock = spi_prettyprint_status_register_default_welwip,
7839 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7840 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7841 .read = spi_chip_read, /* Fast read (0x0B) supported */
7842 .voltage = {2700, 3600},
7843 },
7844
7845 {
7846 .vendor = "Micron/Numonyx/ST",
7847 .name = "M45PE80",
7848 .bustype = BUS_SPI,
7849 .manufacture_id = ST_ID,
7850 .model_id = ST_M45PE80,
7851 .total_size = 1024,
7852 .page_size = 256,
7853 .tested = TEST_UNTESTED,
7854 .probe = probe_spi_rdid,
7855 .probe_timing = TIMING_ZERO,
7856 .block_erasers = {
7857 {
7858 .eraseblocks = { {256, 4096} },
7859 .block_erase = spi_block_erase_db,
7860 }, {
7861 .eraseblocks = { {64 * 1024, 16} },
7862 .block_erase = spi_block_erase_d8,
7863 }
7864 },
7865 .printlock = spi_prettyprint_status_register_default_welwip,
7866 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7867 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7868 .read = spi_chip_read, /* Fast read (0x0B) supported */
7869 .voltage = {2700, 3600},
7870 },
7871
7872 {
7873 .vendor = "Micron/Numonyx/ST",
7874 .name = "M45PE16",
7875 .bustype = BUS_SPI,
7876 .manufacture_id = ST_ID,
7877 .model_id = ST_M45PE16,
7878 .total_size = 2048,
7879 .page_size = 256,
7880 .tested = TEST_UNTESTED,
7881 .probe = probe_spi_rdid,
7882 .probe_timing = TIMING_ZERO,
7883 .block_erasers = {
7884 {
7885 .eraseblocks = { {256, 8192} },
7886 .block_erase = spi_block_erase_db,
7887 }, {
7888 .eraseblocks = { {64 * 1024, 32} },
7889 .block_erase = spi_block_erase_d8,
7890 }
7891 },
7892 .printlock = spi_prettyprint_status_register_default_welwip,
7893 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7894 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7895 .read = spi_chip_read, /* Fast read (0x0B) supported */
7896 .voltage = {2700, 3600},
7897 },
7898
7899 {
7900 .vendor = "Micron/Numonyx/ST",
7901 .name = "N25Q016",
7902 .bustype = BUS_SPI,
7903 .manufacture_id = ST_ID,
7904 .model_id = ST_N25Q016__1E,
7905 .total_size = 2048,
7906 .page_size = 256,
7907 /* supports SFDP */
7908 /* OTP: 64B total; read 0x4B, write 0x42 */
7909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7910 .tested = TEST_UNTESTED,
7911 .probe = probe_spi_rdid,
7912 .probe_timing = TIMING_ZERO,
7913 .block_erasers =
7914 {
7915 {
7916 .eraseblocks = { {4 * 1024, 512} },
7917 .block_erase = spi_block_erase_20,
7918 }, {
7919 .eraseblocks = { {32 * 1024, 64} },
7920 .block_erase = spi_block_erase_52,
7921 }, {
7922 .eraseblocks = { {64 * 1024, 32} },
7923 .block_erase = spi_block_erase_d8,
7924 }, {
7925 .eraseblocks = { {2 * 1024 * 1024, 1} },
7926 .block_erase = spi_block_erase_c7,
7927 }
7928 },
7929 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7930 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7931 .write = spi_chip_write_256, /* Multi I/O supported */
7932 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7933 .voltage = {1700, 2000},
7934 },
7935
7936 {
7937 .vendor = "Micron/Numonyx/ST",
7938 .name = "N25Q032..1E",
7939 .bustype = BUS_SPI,
7940 .manufacture_id = ST_ID,
7941 .model_id = ST_N25Q032__1E,
7942 .total_size = 4096,
7943 .page_size = 256,
7944 /* supports SFDP */
7945 /* OTP: 64B total; read 0x4B, write 0x42 */
7946 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7947 .tested = TEST_UNTESTED,
7948 .probe = probe_spi_rdid,
7949 .probe_timing = TIMING_ZERO,
7950 .block_erasers =
7951 {
7952 {
7953 .eraseblocks = { {4 * 1024, 1024} },
7954 .block_erase = spi_block_erase_20,
7955 }, {
7956 .eraseblocks = { {64 * 1024, 64} },
7957 .block_erase = spi_block_erase_d8,
7958 }, {
7959 .eraseblocks = { {4 * 1024 * 1024, 1} },
7960 .block_erase = spi_block_erase_c7,
7961 }
7962 },
7963 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7964 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7965 .write = spi_chip_write_256, /* Multi I/O supported */
7966 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7967 .voltage = {1700, 2000},
7968 },
7969
7970 {
7971 .vendor = "Micron/Numonyx/ST",
7972 .name = "N25Q032..3E",
7973 .bustype = BUS_SPI,
7974 .manufacture_id = ST_ID,
7975 .model_id = ST_N25Q032__3E,
7976 .total_size = 4096,
7977 .page_size = 256,
7978 /* supports SFDP */
7979 /* OTP: 64B total; read 0x4B, write 0x42 */
7980 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7981 .tested = TEST_OK_PREW,
7982 .probe = probe_spi_rdid,
7983 .probe_timing = TIMING_ZERO,
7984 .block_erasers =
7985 {
7986 {
7987 .eraseblocks = { {4 * 1024, 1024} },
7988 .block_erase = spi_block_erase_20,
7989 }, {
7990 .eraseblocks = { {64 * 1024, 64} },
7991 .block_erase = spi_block_erase_d8,
7992 }, {
7993 .eraseblocks = { {4 * 1024 * 1024, 1} },
7994 .block_erase = spi_block_erase_c7,
7995 }
7996 },
7997 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7998 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7999 .write = spi_chip_write_256, /* Multi I/O supported */
8000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8001 .voltage = {2700, 3600},
8002 },
8003
8004 {
8005 .vendor = "Micron/Numonyx/ST",
8006 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8007 .bustype = BUS_SPI,
8008 .manufacture_id = ST_ID,
8009 .model_id = ST_N25Q064__1E,
8010 .total_size = 8192,
8011 .page_size = 256,
8012 /* supports SFDP */
8013 /* OTP: 64B total; read 0x4B, write 0x42 */
8014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008015 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008016 .probe = probe_spi_rdid,
8017 .probe_timing = TIMING_ZERO,
8018 .block_erasers =
8019 {
8020 {
8021 .eraseblocks = { {4 * 1024, 2048 } },
8022 .block_erase = spi_block_erase_20,
8023 }, {
8024 .eraseblocks = { {64 * 1024, 128} },
8025 .block_erase = spi_block_erase_d8,
8026 }, {
8027 .eraseblocks = { {8 * 1024 * 1024, 1} },
8028 .block_erase = spi_block_erase_c7,
8029 }
8030 },
8031 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8032 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8033 .write = spi_chip_write_256, /* Multi I/O supported */
8034 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8035 .voltage = {1700, 2000},
8036 },
8037
8038 {
8039 .vendor = "Micron/Numonyx/ST",
8040 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8041 .bustype = BUS_SPI,
8042 .manufacture_id = ST_ID,
8043 .model_id = ST_N25Q064__3E,
8044 .total_size = 8192,
8045 .page_size = 256,
8046 /* supports SFDP */
8047 /* OTP: 64B total; read 0x4B, write 0x42 */
8048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8049 .tested = TEST_OK_PREW,
8050 .probe = probe_spi_rdid,
8051 .probe_timing = TIMING_ZERO,
8052 .block_erasers =
8053 {
8054 {
8055 .eraseblocks = { {4 * 1024, 2048 } },
8056 .block_erase = spi_block_erase_20,
8057 }, {
8058 .eraseblocks = { {64 * 1024, 128} },
8059 .block_erase = spi_block_erase_d8,
8060 }, {
8061 .eraseblocks = { {8 * 1024 * 1024, 1} },
8062 .block_erase = spi_block_erase_c7,
8063 }
8064 },
8065 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8066 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8067 .write = spi_chip_write_256, /* Multi I/O supported */
8068 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8069 .voltage = {2700, 3600},
8070 },
8071
8072 {
8073 .vendor = "Micron/Numonyx/ST",
8074 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8075 .bustype = BUS_SPI,
8076 .manufacture_id = ST_ID,
8077 .model_id = ST_N25Q128__1E,
8078 .total_size = 16384,
8079 .page_size = 256,
8080 /* supports SFDP */
8081 /* OTP: 64B total; read 0x4B, write 0x42 */
8082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8083 .tested = TEST_UNTESTED,
8084 .probe = probe_spi_rdid,
8085 .probe_timing = TIMING_ZERO,
8086 .block_erasers = {
8087 {
8088 .eraseblocks = { {4 * 1024, 4096 } },
8089 .block_erase = spi_block_erase_20,
8090 }, {
8091 .eraseblocks = { {64 * 1024, 256} },
8092 .block_erase = spi_block_erase_d8,
8093 }, {
8094 .eraseblocks = { {16384 * 1024, 1} },
8095 .block_erase = spi_block_erase_c7,
8096 }
8097 },
8098 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8099 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8100 .write = spi_chip_write_256, /* Multi I/O supported */
8101 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8102 .voltage = {1700, 2000},
8103 },
8104
8105 {
8106 .vendor = "Micron/Numonyx/ST",
8107 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8108 .bustype = BUS_SPI,
8109 .manufacture_id = ST_ID,
8110 .model_id = ST_N25Q128__3E,
8111 .total_size = 16384,
8112 .page_size = 256,
8113 /* supports SFDP */
8114 /* OTP: 64B total; read 0x4B, write 0x42 */
8115 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8116 .tested = TEST_OK_PREW,
8117 .probe = probe_spi_rdid,
8118 .probe_timing = TIMING_ZERO,
8119 .block_erasers = {
8120 {
8121 .eraseblocks = { {4 * 1024, 4096 } },
8122 .block_erase = spi_block_erase_20,
8123 }, {
8124 .eraseblocks = { {64 * 1024, 256} },
8125 .block_erase = spi_block_erase_d8,
8126 }, {
8127 .eraseblocks = { {16384 * 1024, 1} },
8128 .block_erase = spi_block_erase_c7,
8129 }
8130 },
8131 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8132 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8133 .write = spi_chip_write_256, /* Multi I/O supported */
8134 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8135 .voltage = {2700, 3600},
8136 },
8137
8138 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008139 .vendor = "MoselVitelic",
8140 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008141 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008142 .manufacture_id = SYNCMOS_MVC_ID,
8143 .model_id = MVC_V29C51000B,
8144 .total_size = 64,
8145 .page_size = 512,
8146 .feature_bits = FEATURE_EITHER_RESET,
8147 .tested = TEST_UNTESTED,
8148 .probe = probe_jedec,
8149 .probe_timing = TIMING_ZERO,
8150 .block_erasers =
8151 {
8152 {
8153 .eraseblocks = { {512, 128} },
8154 .block_erase = erase_sector_jedec,
8155 }, {
8156 .eraseblocks = { {64 * 1024, 1} },
8157 .block_erase = erase_chip_block_jedec,
8158 },
8159 },
8160 .write = write_jedec_1,
8161 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008162 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008163 },
8164
8165 {
8166 .vendor = "MoselVitelic",
8167 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008168 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008169 .manufacture_id = SYNCMOS_MVC_ID,
8170 .model_id = MVC_V29C51000T,
8171 .total_size = 64,
8172 .page_size = 512,
8173 .feature_bits = FEATURE_EITHER_RESET,
8174 .tested = TEST_UNTESTED,
8175 .probe = probe_jedec,
8176 .probe_timing = TIMING_ZERO,
8177 .block_erasers =
8178 {
8179 {
8180 .eraseblocks = { {512, 128} },
8181 .block_erase = erase_sector_jedec,
8182 }, {
8183 .eraseblocks = { {64 * 1024, 1} },
8184 .block_erase = erase_chip_block_jedec,
8185 },
8186 },
8187 .write = write_jedec_1,
8188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008189 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008190 },
8191
8192 {
8193 .vendor = "MoselVitelic",
8194 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008195 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008196 .manufacture_id = SYNCMOS_MVC_ID,
8197 .model_id = MVC_V29C51400B,
8198 .total_size = 512,
8199 .page_size = 1024,
8200 .feature_bits = FEATURE_EITHER_RESET,
8201 .tested = TEST_UNTESTED,
8202 .probe = probe_jedec,
8203 .probe_timing = TIMING_ZERO,
8204 .block_erasers =
8205 {
8206 {
8207 .eraseblocks = { {1024, 512} },
8208 .block_erase = erase_sector_jedec,
8209 }, {
8210 .eraseblocks = { {512 * 1024, 1} },
8211 .block_erase = erase_chip_block_jedec,
8212 },
8213 },
8214 .write = write_jedec_1,
8215 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008216 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008217 },
8218
8219 {
8220 .vendor = "MoselVitelic",
8221 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008222 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008223 .manufacture_id = SYNCMOS_MVC_ID,
8224 .model_id = MVC_V29C51400T,
8225 .total_size = 512,
8226 .page_size = 1024,
8227 .feature_bits = FEATURE_EITHER_RESET,
8228 .tested = TEST_UNTESTED,
8229 .probe = probe_jedec,
8230 .probe_timing = TIMING_ZERO,
8231 .block_erasers =
8232 {
8233 {
8234 .eraseblocks = { {1024, 512} },
8235 .block_erase = erase_sector_jedec,
8236 }, {
8237 .eraseblocks = { {512 * 1024, 1} },
8238 .block_erase = erase_chip_block_jedec,
8239 },
8240 },
8241 .write = write_jedec_1,
8242 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008243 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008244 },
8245
8246 {
8247 .vendor = "MoselVitelic",
8248 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008249 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008250 .manufacture_id = SYNCMOS_MVC_ID,
8251 .model_id = MVC_V29LC51000,
8252 .total_size = 64,
8253 .page_size = 512,
8254 .feature_bits = FEATURE_EITHER_RESET,
8255 .tested = TEST_UNTESTED,
8256 .probe = probe_jedec,
8257 .probe_timing = TIMING_ZERO,
8258 .block_erasers =
8259 {
8260 {
8261 .eraseblocks = { {512, 128} },
8262 .block_erase = erase_sector_jedec,
8263 }, {
8264 .eraseblocks = { {64 * 1024, 1} },
8265 .block_erase = erase_chip_block_jedec,
8266 },
8267 },
8268 .write = write_jedec_1,
8269 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008270 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008271 },
8272
8273 {
8274 .vendor = "MoselVitelic",
8275 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008276 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008277 .manufacture_id = SYNCMOS_MVC_ID,
8278 .model_id = MVC_V29LC51001,
8279 .total_size = 128,
8280 .page_size = 512,
8281 .feature_bits = FEATURE_EITHER_RESET,
8282 .tested = TEST_UNTESTED,
8283 .probe = probe_jedec,
8284 .probe_timing = TIMING_ZERO,
8285 .block_erasers =
8286 {
8287 {
8288 .eraseblocks = { {512, 256} },
8289 .block_erase = erase_sector_jedec,
8290 }, {
8291 .eraseblocks = { {128 * 1024, 1} },
8292 .block_erase = erase_chip_block_jedec,
8293 },
8294 },
8295 .write = write_jedec_1,
8296 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008297 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008298 },
8299
8300 {
8301 .vendor = "MoselVitelic",
8302 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008303 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008304 .manufacture_id = SYNCMOS_MVC_ID,
8305 .model_id = MVC_V29LC51002,
8306 .total_size = 256,
8307 .page_size = 512,
8308 .feature_bits = FEATURE_EITHER_RESET,
8309 .tested = TEST_UNTESTED,
8310 .probe = probe_jedec,
8311 .probe_timing = TIMING_ZERO,
8312 .block_erasers =
8313 {
8314 {
8315 .eraseblocks = { {512, 512} },
8316 .block_erase = erase_sector_jedec,
8317 }, {
8318 .eraseblocks = { {256 * 1024, 1} },
8319 .block_erase = erase_chip_block_jedec,
8320 },
8321 },
8322 .write = write_jedec_1,
8323 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008324 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008325 },
8326
8327 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008328 .vendor = "Nantronics",
8329 .name = "N25S10",
8330 .bustype = BUS_SPI,
8331 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8332 .model_id = NANTRONICS_N25S10,
8333 .total_size = 128,
8334 .page_size = 256,
8335 .feature_bits = FEATURE_WRSR_WREN,
8336 .tested = TEST_UNTESTED,
8337 .probe = probe_spi_rdid,
8338 .probe_timing = TIMING_ZERO,
8339 .block_erasers =
8340 {
8341 {
8342 .eraseblocks = { {4 * 1024, 32} },
8343 .block_erase = spi_block_erase_20,
8344 }, {
8345 .eraseblocks = { {4 * 1024, 32} },
8346 .block_erase = spi_block_erase_d7,
8347 }, {
8348 .eraseblocks = { {32 * 1024, 4} },
8349 .block_erase = spi_block_erase_52,
8350 }, {
8351 .eraseblocks = { {64 * 1024, 2} },
8352 .block_erase = spi_block_erase_d8,
8353 }, {
8354 .eraseblocks = { {128 * 1024, 1} },
8355 .block_erase = spi_block_erase_60,
8356 }, {
8357 .eraseblocks = { {128 * 1024, 1} },
8358 .block_erase = spi_block_erase_c7,
8359 }
8360 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008361 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008362 .unlock = spi_disable_blockprotect_bp3_srwd,
8363 .write = spi_chip_write_256,
8364 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8365 .voltage = {2700, 3600},
8366 },
8367
8368 {
8369 .vendor = "Nantronics",
8370 .name = "N25S20",
8371 .bustype = BUS_SPI,
8372 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8373 .model_id = NANTRONICS_N25S20,
8374 .total_size = 256,
8375 .page_size = 256,
8376 .feature_bits = FEATURE_WRSR_WREN,
8377 .tested = TEST_UNTESTED,
8378 .probe = probe_spi_rdid,
8379 .probe_timing = TIMING_ZERO,
8380 .block_erasers =
8381 {
8382 {
8383 .eraseblocks = { {4 * 1024, 64} },
8384 .block_erase = spi_block_erase_20,
8385 }, {
8386 .eraseblocks = { {4 * 1024, 64} },
8387 .block_erase = spi_block_erase_d7,
8388 }, {
8389 .eraseblocks = { {32 * 1024, 8} },
8390 .block_erase = spi_block_erase_52,
8391 }, {
8392 .eraseblocks = { {64 * 1024, 4} },
8393 .block_erase = spi_block_erase_d8,
8394 }, {
8395 .eraseblocks = { {256 * 1024, 1} },
8396 .block_erase = spi_block_erase_60,
8397 }, {
8398 .eraseblocks = { {256 * 1024, 1} },
8399 .block_erase = spi_block_erase_c7,
8400 }
8401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008402 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008403 .unlock = spi_disable_blockprotect_bp3_srwd,
8404 .write = spi_chip_write_256,
8405 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8406 .voltage = {2700, 3600},
8407 },
8408
8409 {
8410 .vendor = "Nantronics",
8411 .name = "N25S40",
8412 .bustype = BUS_SPI,
8413 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8414 .model_id = NANTRONICS_N25S40,
8415 .total_size = 512,
8416 .page_size = 256,
8417 .feature_bits = FEATURE_WRSR_WREN,
8418 .tested = TEST_UNTESTED,
8419 .probe = probe_spi_rdid,
8420 .probe_timing = TIMING_ZERO,
8421 .block_erasers =
8422 {
8423 {
8424 .eraseblocks = { {4 * 1024, 128} },
8425 .block_erase = spi_block_erase_20,
8426 }, {
8427 .eraseblocks = { {4 * 1024, 128} },
8428 .block_erase = spi_block_erase_d7,
8429 }, {
8430 .eraseblocks = { {32 * 1024, 16} },
8431 .block_erase = spi_block_erase_52,
8432 }, {
8433 .eraseblocks = { {64 * 1024, 8} },
8434 .block_erase = spi_block_erase_d8,
8435 }, {
8436 .eraseblocks = { {512 * 1024, 1} },
8437 .block_erase = spi_block_erase_60,
8438 }, {
8439 .eraseblocks = { {512 * 1024, 1} },
8440 .block_erase = spi_block_erase_c7,
8441 }
8442 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008443 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008444 .unlock = spi_disable_blockprotect_bp3_srwd,
8445 .write = spi_chip_write_256,
8446 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8447 .voltage = {2700, 3600},
8448 },
8449
8450 {
8451 .vendor = "Nantronics",
8452 .name = "N25S80",
8453 .bustype = BUS_SPI,
8454 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8455 .model_id = NANTRONICS_N25S80,
8456 .total_size = 1024,
8457 .page_size = 256,
8458 .feature_bits = FEATURE_WRSR_WREN,
8459 .tested = TEST_UNTESTED,
8460 .probe = probe_spi_rdid,
8461 .probe_timing = TIMING_ZERO,
8462 .block_erasers =
8463 {
8464 {
8465 .eraseblocks = { {4 * 1024, 256} },
8466 .block_erase = spi_block_erase_20,
8467 }, {
8468 .eraseblocks = { {32 * 1024, 32} },
8469 .block_erase = spi_block_erase_52,
8470 }, {
8471 .eraseblocks = { {64 * 1024, 16} },
8472 .block_erase = spi_block_erase_d8,
8473 }, {
8474 .eraseblocks = { {1024 * 1024, 1} },
8475 .block_erase = spi_block_erase_60,
8476 }, {
8477 .eraseblocks = { {1024 * 1024, 1} },
8478 .block_erase = spi_block_erase_c7,
8479 }
8480 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008481 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008482 .unlock = spi_disable_blockprotect_bp3_srwd,
8483 .write = spi_chip_write_256,
8484 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8485 .voltage = {2700, 3600},
8486 },
8487
8488 {
8489 .vendor = "Nantronics",
8490 .name = "N25S16",
8491 .bustype = BUS_SPI,
8492 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8493 .model_id = NANTRONICS_N25S16,
8494 .total_size = 2048,
8495 .page_size = 256,
8496 .feature_bits = FEATURE_WRSR_WREN,
8497 .tested = TEST_UNTESTED,
8498 .probe = probe_spi_rdid,
8499 .probe_timing = TIMING_ZERO,
8500 .block_erasers =
8501 {
8502 {
8503 .eraseblocks = { {4 * 1024, 512} },
8504 .block_erase = spi_block_erase_20,
8505 }, {
8506 .eraseblocks = { {64 * 1024, 32} },
8507 .block_erase = spi_block_erase_d8,
8508 }, {
8509 .eraseblocks = { {2048 * 1024, 1} },
8510 .block_erase = spi_block_erase_60,
8511 }, {
8512 .eraseblocks = { {2048 * 1024, 1} },
8513 .block_erase = spi_block_erase_c7,
8514 }
8515 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008516 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008517 .unlock = spi_disable_blockprotect_bp3_srwd,
8518 .write = spi_chip_write_256,
8519 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8520 .voltage = {2700, 3600},
8521 },
8522
8523 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008524 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008525 .name = "Pm25LD256C",
8526 .bustype = BUS_SPI,
8527 .manufacture_id = PMC_ID,
8528 .model_id = PMC_PM25LD256C,
8529 .total_size = 32,
8530 .page_size = 256,
8531 .feature_bits = FEATURE_WRSR_WREN,
8532 .tested = TEST_UNTESTED,
8533 .probe = probe_spi_rdid,
8534 .probe_timing = TIMING_ZERO,
8535 .block_erasers =
8536 {
8537 {
8538 .eraseblocks = { {4 * 1024, 8} },
8539 .block_erase = spi_block_erase_20,
8540 }, {
8541 .eraseblocks = { {4 * 1024, 8} },
8542 .block_erase = spi_block_erase_d7,
8543 }, {
8544 .eraseblocks = { {32 * 1024, 1} },
8545 .block_erase = spi_block_erase_d8,
8546 }, {
8547 .eraseblocks = { {32 * 1024, 1} },
8548 .block_erase = spi_block_erase_60,
8549 }, {
8550 .eraseblocks = { {32 * 1024, 1} },
8551 .block_erase = spi_block_erase_c7,
8552 }
8553 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008554 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008555 .unlock = spi_disable_blockprotect,
8556 .write = spi_chip_write_256,
8557 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8558 .voltage = {2700, 3600},
8559 },
8560 {
8561 .vendor = "PMC",
8562 .name = "Pm25LD512(C)",
8563 .bustype = BUS_SPI,
8564 .manufacture_id = PMC_ID,
8565 .model_id = PMC_PM25LD512,
8566 .total_size = 64,
8567 .page_size = 256,
8568 .feature_bits = FEATURE_WRSR_WREN,
8569 .tested = TEST_OK_PREW,
8570 .probe = probe_spi_rdid,
8571 .probe_timing = TIMING_ZERO,
8572 .block_erasers =
8573 {
8574 {
8575 .eraseblocks = { {4 * 1024, 16} },
8576 .block_erase = spi_block_erase_20,
8577 }, {
8578 .eraseblocks = { {4 * 1024, 16} },
8579 .block_erase = spi_block_erase_d7,
8580 }, {
8581 .eraseblocks = { {32 * 1024, 2} },
8582 .block_erase = spi_block_erase_d8,
8583 }, {
8584 .eraseblocks = { {64 * 1024, 1} },
8585 .block_erase = spi_block_erase_60,
8586 }, {
8587 .eraseblocks = { {64 * 1024, 1} },
8588 .block_erase = spi_block_erase_c7,
8589 }
8590 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008591 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008592 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8593 .write = spi_chip_write_256,
8594 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8595 .voltage = {2300, 3600},
8596 },
8597
8598 {
8599 .vendor = "PMC",
8600 .name = "Pm25LD010(C)",
8601 .bustype = BUS_SPI,
8602 .manufacture_id = PMC_ID,
8603 .model_id = PMC_PM25LD010,
8604 .total_size = 128,
8605 .page_size = 256,
8606 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008607 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008608 .probe = probe_spi_rdid,
8609 .probe_timing = TIMING_ZERO,
8610 .block_erasers =
8611 {
8612 {
8613 .eraseblocks = { {4 * 1024, 32} },
8614 .block_erase = spi_block_erase_20,
8615 }, {
8616 .eraseblocks = { {4 * 1024, 32} },
8617 .block_erase = spi_block_erase_d7,
8618 }, {
8619 .eraseblocks = { {32 * 1024, 4} },
8620 .block_erase = spi_block_erase_d8,
8621 }, {
8622 .eraseblocks = { {128 * 1024, 1} },
8623 .block_erase = spi_block_erase_60,
8624 }, {
8625 .eraseblocks = { {128 * 1024, 1} },
8626 .block_erase = spi_block_erase_c7,
8627 }
8628 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008629 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008630 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8631 .write = spi_chip_write_256,
8632 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8633 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8634 },
8635
8636 {
8637 .vendor = "PMC",
8638 .name = "Pm25LD020(C)",
8639 .bustype = BUS_SPI,
8640 .manufacture_id = PMC_ID,
8641 .model_id = PMC_PM25LD020,
8642 .total_size = 256,
8643 .page_size = 256,
8644 .feature_bits = FEATURE_WRSR_WREN,
8645 .tested = TEST_UNTESTED,
8646 .probe = probe_spi_rdid,
8647 .probe_timing = TIMING_ZERO,
8648 .block_erasers =
8649 {
8650 {
8651 .eraseblocks = { {4 * 1024, 64} },
8652 .block_erase = spi_block_erase_20,
8653 }, {
8654 .eraseblocks = { {4 * 1024, 64} },
8655 .block_erase = spi_block_erase_d7,
8656 }, {
8657 .eraseblocks = { {64 * 1024, 4} },
8658 .block_erase = spi_block_erase_d8,
8659 }, {
8660 .eraseblocks = { {256 * 1024, 1} },
8661 .block_erase = spi_block_erase_60,
8662 }, {
8663 .eraseblocks = { {256 * 1024, 1} },
8664 .block_erase = spi_block_erase_c7,
8665 }
8666 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008667 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008668 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8669 .write = spi_chip_write_256,
8670 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8671 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8672 },
8673
8674 {
8675 .vendor = "PMC",
8676 .name = "Pm25LD040(C)",
8677 .bustype = BUS_SPI,
8678 .manufacture_id = PMC_ID,
8679 .model_id = PMC_PM25LV040,
8680 .total_size = 512,
8681 .page_size = 256,
8682 .feature_bits = FEATURE_WRSR_WREN,
8683 .tested = TEST_UNTESTED,
8684 .probe = probe_spi_rdid,
8685 .probe_timing = TIMING_ZERO,
8686 .block_erasers =
8687 {
8688 {
8689 .eraseblocks = { {4 * 1024, 128} },
8690 .block_erase = spi_block_erase_20,
8691 }, {
8692 .eraseblocks = { {4 * 1024, 128} },
8693 .block_erase = spi_block_erase_d7,
8694 }, {
8695 .eraseblocks = { {64 * 1024, 8} },
8696 .block_erase = spi_block_erase_d8,
8697 }, {
8698 .eraseblocks = { {512 * 1024, 1} },
8699 .block_erase = spi_block_erase_60,
8700 }, {
8701 .eraseblocks = { {512 * 1024, 1} },
8702 .block_erase = spi_block_erase_c7,
8703 }
8704 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008705 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008706 .unlock = spi_disable_blockprotect,
8707 .write = spi_chip_write_256,
8708 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8709 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8710 },
8711
8712{
8713 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008714 .name = "Pm25LV512(A)",
8715 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008716 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008717 .model_id = PMC_PM25LV512,
8718 .total_size = 64,
8719 .page_size = 256,
8720 .feature_bits = FEATURE_WRSR_WREN,
8721 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00008722 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008723 .probe_timing = TIMING_ZERO,
8724 .block_erasers =
8725 {
8726 {
8727 .eraseblocks = { {4 * 1024, 16} },
8728 .block_erase = spi_block_erase_d7,
8729 }, {
8730 .eraseblocks = { {32 * 1024, 2} },
8731 .block_erase = spi_block_erase_d8,
8732 }, {
8733 .eraseblocks = { {64 * 1024, 1} },
8734 .block_erase = spi_block_erase_c7,
8735 }
8736 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008737 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008738 .unlock = spi_disable_blockprotect,
8739 .write = spi_chip_write_256,
8740 .read = spi_chip_read, /* Fast read (0x0B) supported */
8741 .voltage = {2700, 3600},
8742 },
8743
8744 {
8745 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008746 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008747 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008748 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008749 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008750 .total_size = 128,
8751 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008752 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00008753 .tested = TEST_OK_PREW,
8754 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008755 .probe_timing = TIMING_ZERO,
8756 .block_erasers =
8757 {
8758 {
8759 .eraseblocks = { {4 * 1024, 32} },
8760 .block_erase = spi_block_erase_d7,
8761 }, {
8762 .eraseblocks = { {32 * 1024, 4} },
8763 .block_erase = spi_block_erase_d8,
8764 }, {
8765 .eraseblocks = { {128 * 1024, 1} },
8766 .block_erase = spi_block_erase_c7,
8767 }
8768 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008769 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008770 .unlock = spi_disable_blockprotect,
8771 .write = spi_chip_write_256,
8772 .read = spi_chip_read, /* Fast read (0x0B) supported */
8773 .voltage = {2700, 3600},
8774 },
8775
8776 {
8777 .vendor = "PMC",
8778 .name = "Pm25LV010A",
8779 .bustype = BUS_SPI,
8780 .manufacture_id = PMC_ID,
8781 .model_id = PMC_PM25LV010,
8782 .total_size = 128,
8783 .page_size = 256,
8784 .feature_bits = FEATURE_WRSR_WREN,
8785 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008786 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008787 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008788 .block_erasers =
8789 {
8790 {
8791 .eraseblocks = { {4 * 1024, 32} },
8792 .block_erase = spi_block_erase_d7,
8793 }, {
8794 .eraseblocks = { {32 * 1024, 4} },
8795 .block_erase = spi_block_erase_d8,
8796 }, {
8797 .eraseblocks = { {128 * 1024, 1} },
8798 .block_erase = spi_block_erase_c7,
8799 }
8800 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008801 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008802 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008803 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008804 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008805 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008806 },
8807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008808 {
8809 .vendor = "PMC",
8810 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008812 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008813 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008814 .total_size = 256,
8815 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008816 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008817 .tested = TEST_UNTESTED,
8818 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008819 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008820 .block_erasers =
8821 {
8822 {
8823 .eraseblocks = { {4 * 1024, 64} },
8824 .block_erase = spi_block_erase_d7,
8825 }, {
8826 .eraseblocks = { {64 * 1024, 4} },
8827 .block_erase = spi_block_erase_d8,
8828 }, {
8829 .eraseblocks = { {256 * 1024, 1} },
8830 .block_erase = spi_block_erase_c7,
8831 }
8832 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008833 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008834 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008835 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008836 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008837 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008838 },
8839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008840 {
8841 .vendor = "PMC",
8842 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008843 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008844 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008845 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008846 .total_size = 512,
8847 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008848 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008849 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008851 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008852 .block_erasers =
8853 {
8854 {
8855 .eraseblocks = { {4 * 1024, 128} },
8856 .block_erase = spi_block_erase_d7,
8857 }, {
8858 .eraseblocks = { {64 * 1024, 8} },
8859 .block_erase = spi_block_erase_d8,
8860 }, {
8861 .eraseblocks = { {512 * 1024, 1} },
8862 .block_erase = spi_block_erase_c7,
8863 }
8864 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008865 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008866 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008867 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008868 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008869 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008870 },
8871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008872 {
8873 .vendor = "PMC",
8874 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008875 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008876 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008877 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008878 .total_size = 1024,
8879 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008880 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008881 .tested = TEST_UNTESTED,
8882 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008883 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008884 .block_erasers =
8885 {
8886 {
8887 .eraseblocks = { {4 * 1024, 256} },
8888 .block_erase = spi_block_erase_d7,
8889 }, {
8890 .eraseblocks = { {4 * 1024, 256} },
8891 .block_erase = spi_block_erase_20,
8892 }, {
8893 .eraseblocks = { {64 * 1024, 16} },
8894 .block_erase = spi_block_erase_d8,
8895 }, {
8896 .eraseblocks = { {1024 * 1024, 1} },
8897 .block_erase = spi_block_erase_60,
8898 }, {
8899 .eraseblocks = { {1024 * 1024, 1} },
8900 .block_erase = spi_block_erase_c7,
8901 }
8902 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008903 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008904 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008905 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008906 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008907 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008908 },
8909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008910 {
8911 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008912 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008913 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008914 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008915 .model_id = PMC_PM25LV016B,
8916 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008917 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008918 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008919 .tested = TEST_UNTESTED,
8920 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008921 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008922 .block_erasers =
8923 {
8924 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008925 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008926 .block_erase = spi_block_erase_d7,
8927 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008928 .eraseblocks = { {4 * 1024, 512} },
8929 .block_erase = spi_block_erase_20,
8930 }, {
8931 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008932 .block_erase = spi_block_erase_d8,
8933 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008934 .eraseblocks = { {2 * 1024 * 1024, 1} },
8935 .block_erase = spi_block_erase_60,
8936 }, {
8937 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008938 .block_erase = spi_block_erase_c7,
8939 }
8940 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008941 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008942 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008943 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008944 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008946 },
8947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008948 {
8949 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008950 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008951 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008952 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008953 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008954 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008955 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008956 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008957 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008958 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008959 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008960 .block_erasers =
8961 {
8962 {
8963 .eraseblocks = {
8964 {128 * 1024, 1},
8965 {96 * 1024, 1},
8966 {8 * 1024, 2},
8967 {16 * 1024, 1},
8968 },
Sean Nelson35727f72010-01-28 23:55:12 +00008969 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008970 }, {
8971 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008972 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008973 },
8974 },
Sean Nelson35727f72010-01-28 23:55:12 +00008975 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008976 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008977 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008978 },
8979
8980 {
8981 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008982 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008983 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008984 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008985 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008986 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008987 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008988 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008989 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008990 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008991 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008992 .block_erasers =
8993 {
8994 {
8995 .eraseblocks = {
8996 {16 * 1024, 1},
8997 {8 * 1024, 2},
8998 {96 * 1024, 1},
8999 {128 * 1024, 1},
9000 },
Sean Nelson35727f72010-01-28 23:55:12 +00009001 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009002 }, {
9003 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009004 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009005 },
9006 },
Sean Nelson35727f72010-01-28 23:55:12 +00009007 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009009 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009010 },
9011
9012 {
9013 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009014 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009015 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009016 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009017 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009018 .total_size = 128,
9019 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009020 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009021 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009022 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009023 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009024 .block_erasers =
9025 {
9026 {
9027 .eraseblocks = { {4 * 1024, 32} },
9028 .block_erase = erase_sector_jedec,
9029 }, {
9030 .eraseblocks = { {64 * 1024, 2} },
9031 .block_erase = erase_block_jedec,
9032 }, {
9033 .eraseblocks = { {128 * 1024, 1} },
9034 .block_erase = erase_chip_block_jedec,
9035 }
9036 },
Sean Nelson35727f72010-01-28 23:55:12 +00009037 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009038 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009039 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009040 },
9041
9042 {
9043 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009044 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009045 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009046 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009047 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009048 .total_size = 256,
9049 .page_size = 4096,
9050 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9051 .tested = TEST_UNTESTED,
9052 .probe = probe_jedec,
9053 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9054 .block_erasers =
9055 {
9056 {
9057 .eraseblocks = { {4 * 1024, 64} },
9058 .block_erase = erase_sector_jedec,
9059 }, {
9060 .eraseblocks = { {64 * 1024, 4} },
9061 .block_erase = erase_block_jedec,
9062 }, {
9063 .eraseblocks = { {256 * 1024, 1} },
9064 .block_erase = erase_chip_block_jedec,
9065 }
9066 },
9067 .write = write_jedec_1,
9068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009069 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009070 },
9071
9072 {
9073 .vendor = "PMC",
9074 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009075 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009076 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009077 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009078 .total_size = 512,
9079 .page_size = 4096,
9080 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009081 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009082 .probe = probe_jedec,
9083 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9084 .block_erasers =
9085 {
9086 {
9087 .eraseblocks = { {4 * 1024, 128} },
9088 .block_erase = erase_sector_jedec,
9089 }, {
9090 .eraseblocks = { {64 * 1024, 8} },
9091 .block_erase = erase_block_jedec,
9092 }, {
9093 .eraseblocks = { {512 * 1024, 1} },
9094 .block_erase = erase_chip_block_jedec,
9095 }
9096 },
9097 .write = write_jedec_1,
9098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009099 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009100 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009101
9102 {
9103 .vendor = "PMC",
9104 .name = "Pm39LV512",
9105 .bustype = BUS_PARALLEL,
9106 .manufacture_id = PMC_ID_NOPREFIX,
9107 .model_id = PMC_PM39LV512,
9108 .total_size = 64,
9109 .page_size = 4096,
9110 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9111 .tested = TEST_OK_PREW,
9112 .probe = probe_jedec,
9113 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9114 .block_erasers =
9115 {
9116 {
9117 .eraseblocks = { {4 * 1024, 16} },
9118 .block_erase = erase_sector_jedec,
9119 }, {
9120 .eraseblocks = { {64 * 1024, 1} },
9121 .block_erase = erase_block_jedec,
9122 }, {
9123 .eraseblocks = { {64 * 1024, 1} },
9124 .block_erase = erase_chip_block_jedec,
9125 }
9126 },
9127 .write = write_jedec_1,
9128 .read = read_memmapped,
9129 .voltage = {2700, 3600},
9130 },
9131
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009132 {
9133 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009134 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009135 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009136 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009137 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009138 .total_size = 256,
9139 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009140 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00009141 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009142 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009143 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009144 .block_erasers =
9145 {
9146 {
9147 .eraseblocks = { {4 * 1024, 64} },
9148 .block_erase = erase_sector_jedec,
9149 }, {
9150 .eraseblocks = { {16 * 1024, 16} },
9151 .block_erase = erase_block_jedec,
9152 }, {
9153 .eraseblocks = { {256 * 1024, 1} },
9154 .block_erase = erase_chip_block_jedec,
9155 }
9156 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009157 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009158 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009160 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009161 },
9162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009163 {
9164 .vendor = "PMC",
9165 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009166 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009167 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009168 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009169 .total_size = 512,
9170 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009171 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009172 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009173 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009174 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {4 * 1024, 128} },
9179 .block_erase = erase_sector_jedec,
9180 }, {
9181 .eraseblocks = { {64 * 1024, 8} },
9182 .block_erase = erase_block_jedec,
9183 }, {
9184 .eraseblocks = { {512 * 1024, 1} },
9185 .block_erase = erase_chip_block_jedec,
9186 }
9187 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009188 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009189 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009190 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009191 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009192 },
9193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009194 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009195 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009196 .name = "LE25FW106",
9197 .bustype = BUS_SPI,
9198 .manufacture_id = SANYO_ID,
9199 .model_id = SANYO_LE25FW106,
9200 .total_size = 128,
9201 .page_size = 256,
9202 .feature_bits = FEATURE_WRSR_WREN,
9203 .tested = TEST_OK_PREW,
9204 .probe = probe_spi_res2,
9205 .probe_timing = TIMING_ZERO,
9206 .block_erasers = {
9207 {
9208 .eraseblocks = { {2 * 1024, 64} },
9209 .block_erase = spi_block_erase_d7,
9210 }, {
9211 .eraseblocks = { {32 * 1024, 4} },
9212 .block_erase = spi_block_erase_d8,
9213 }, {
9214 .eraseblocks = { {128 * 1024, 1} },
9215 .block_erase = spi_block_erase_c7,
9216 }
9217 },
9218 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9219 .unlock = spi_disable_blockprotect_bp1_srwd,
9220 .write = spi_chip_write_256,
9221 .read = spi_chip_read,
9222 .voltage = {2700, 3600},
9223 },
9224
9225 {
9226 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009227 .name = "LE25FW406A",
9228 .bustype = BUS_SPI,
9229 .manufacture_id = SANYO_ID,
9230 .model_id = SANYO_LE25FW406A,
9231 .total_size = 512,
9232 .page_size = 256,
9233 .feature_bits = FEATURE_WRSR_WREN,
9234 .tested = TEST_OK_PREW,
9235 .probe = probe_spi_res2,
9236 .probe_timing = TIMING_ZERO,
9237 .block_erasers = {
9238 {
9239 .eraseblocks = { {4 * 1024, 128} },
9240 .block_erase = spi_block_erase_d7,
9241 }, {
9242 .eraseblocks = { {64 * 1024, 8} },
9243 .block_erase = spi_block_erase_d8,
9244 }, {
9245 .eraseblocks = { {512 * 1024, 1} },
9246 .block_erase = spi_block_erase_c7,
9247 }
9248 },
9249 .printlock = spi_prettyprint_status_register_plain,
9250 .unlock = spi_disable_blockprotect,
9251 .write = spi_chip_write_256,
9252 .read = spi_chip_read,
9253 .voltage = {2700, 3600},
9254 },
9255
9256 {
9257 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009258 .name = "LE25FU406B",
9259 .bustype = BUS_SPI,
9260 .manufacture_id = SANYO_ID,
9261 .model_id = SANYO_LE25FU406B,
9262 .total_size = 512,
9263 .page_size = 256,
9264 .feature_bits = FEATURE_WRSR_WREN,
9265 .tested = TEST_OK_PREW,
9266 .probe = probe_spi_res2,
9267 .probe_timing = TIMING_ZERO,
9268 .block_erasers = {
9269 {
9270 .eraseblocks = { {4 * 1024, 128} },
9271 .block_erase = spi_block_erase_d7,
9272 }, {
9273 .eraseblocks = { {64 * 1024, 8} },
9274 .block_erase = spi_block_erase_d8,
9275 }, {
9276 .eraseblocks = { {512 * 1024, 1} },
9277 .block_erase = spi_block_erase_c7,
9278 }
9279 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009280 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009281 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9282 .write = spi_chip_write_256,
9283 .read = spi_chip_read,
9284 .voltage = {2300, 3600},
9285 },
9286
9287 {
9288 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009289 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009290 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009291 .manufacture_id = SANYO_ID,
9292 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009293 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009294 .page_size = 256,
9295 .tested = TEST_UNTESTED,
9296 .probe = probe_spi_rdid,
9297 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009298 .block_erasers =
9299 {
9300 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009301 .eraseblocks = { {256, 1024} },
9302 .block_erase = spi_block_erase_db,
9303 }, {
9304 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009305 .block_erase = spi_block_erase_d8,
9306 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009307 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009308 .block_erase = spi_block_erase_c7,
9309 }
9310 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009311 .printlock = spi_prettyprint_status_register_default_welwip,
9312 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009313 .write = spi_chip_write_256,
9314 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009315 .voltage = {2700, 3600},
9316 },
9317
9318 {
9319 .vendor = "Sanyo",
9320 .name = "LE25FW403A",
9321 .bustype = BUS_SPI,
9322 .manufacture_id = SANYO_ID,
9323 .model_id = SANYO_LE25FW403A,
9324 .total_size = 512,
9325 .page_size = 256,
9326 .tested = TEST_UNTESTED,
9327 .probe = probe_spi_rdid,
9328 .probe_timing = TIMING_ZERO,
9329 .block_erasers = {
9330 {
9331 .eraseblocks = { {256, 2 * 1024} },
9332 .block_erase = spi_block_erase_db,
9333 }, {
9334 .eraseblocks = { {64 * 1024, 8} },
9335 .block_erase = spi_block_erase_d8,
9336 }, {
9337 .eraseblocks = { {512 * 1024, 1} },
9338 .block_erase = spi_block_erase_c7,
9339 }
9340 },
9341 .printlock = spi_prettyprint_status_register_default_welwip,
9342 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9343 .write = spi_chip_write_256,
9344 .read = spi_chip_read,
9345 .voltage = {2700, 3600},
9346 },
9347
9348 {
9349 .vendor = "Sanyo",
9350 .name = "LE25FW418A",
9351 .bustype = BUS_SPI,
9352 .manufacture_id = SANYO_ID,
9353 .model_id = SANYO_LE25FW418A,
9354 .total_size = 512,
9355 .page_size = 256,
9356 .feature_bits = FEATURE_WRSR_WREN,
9357 .tested = TEST_UNTESTED,
9358 .probe = probe_spi_res2,
9359 .probe_timing = TIMING_ZERO,
9360 .block_erasers = {
9361 {
9362 .eraseblocks = { {4 * 1024, 128} },
9363 .block_erase = spi_block_erase_d7,
9364 }, {
9365 .eraseblocks = { {64 * 1024, 8} },
9366 .block_erase = spi_block_erase_d8,
9367 }, {
9368 .eraseblocks = { {512 * 1024, 1} },
9369 .block_erase = spi_block_erase_c7,
9370 }
9371 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009372 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009373 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9374 .write = spi_chip_write_256,
9375 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9376 .voltage = {2700, 3600},
9377 },
9378
9379 {
9380 .vendor = "Sanyo",
9381 .name = "LE25FW806",
9382 .bustype = BUS_SPI,
9383 .manufacture_id = SANYO_ID,
9384 .model_id = SANYO_LE25FW806,
9385 .total_size = 1024,
9386 .page_size = 256,
9387 .feature_bits = FEATURE_WRSR_WREN,
9388 .tested = TEST_UNTESTED,
9389 .probe = probe_spi_res2,
9390 .probe_timing = TIMING_ZERO,
9391 .block_erasers = {
9392 {
9393 .eraseblocks = { {4 * 1024, 256} },
9394 .block_erase = spi_block_erase_20,
9395 }, {
9396 .eraseblocks = { {4 * 1024, 256} },
9397 .block_erase = spi_block_erase_d7,
9398 }, {
9399 .eraseblocks = { {64 * 1024, 16} },
9400 .block_erase = spi_block_erase_d8,
9401 }, {
9402 .eraseblocks = { {1024 * 1024, 1} },
9403 .block_erase = spi_block_erase_c7,
9404 }
9405 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009406 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009407 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9408 .write = spi_chip_write_256,
9409 .read = spi_chip_read,
9410 .voltage = {2700, 3600},
9411 },
9412
9413 {
9414 .vendor = "Sanyo",
9415 .name = "LE25FW808",
9416 .bustype = BUS_SPI,
9417 .manufacture_id = SANYO_ID,
9418 .model_id = SANYO_LE25FW808,
9419 .total_size = 1024,
9420 .page_size = 256,
9421 .feature_bits = FEATURE_WRSR_WREN,
9422 .tested = TEST_UNTESTED,
9423 .probe = probe_spi_res2,
9424 .probe_timing = TIMING_ZERO,
9425 .block_erasers = {
9426 {
9427 .eraseblocks = { {8 * 1024, 128} },
9428 .block_erase = spi_block_erase_d7,
9429 }, {
9430 .eraseblocks = { {64 * 1024, 16} },
9431 .block_erase = spi_block_erase_d8,
9432 }, {
9433 .eraseblocks = { {1024 * 1024, 1} },
9434 .block_erase = spi_block_erase_c7,
9435 }
9436 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009437 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009438 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9439 .write = spi_chip_write_256,
9440 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9441 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009442 },
9443
9444 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009445 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009446 .name = "LH28F008BJT-BTLZ1",
9447 .bustype = BUS_PARALLEL,
9448 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009449 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009450 .total_size = 1024,
9451 .page_size = 64 * 1024,
9452 .tested = TEST_OK_PREW,
9453 .probe = probe_82802ab,
9454 .probe_timing = TIMING_ZERO,
9455 .block_erasers =
9456 {
9457 {
9458 .eraseblocks = {
9459 {8 * 1024, 8},
9460 {64 * 1024, 15}
9461 },
9462 .block_erase = erase_block_82802ab,
9463 }, {
9464 .eraseblocks = { {1024 * 1024, 1} },
9465 .block_erase = erase_sector_49lfxxxc,
9466 }
9467 },
9468 .unlock = unlock_lh28f008bjt,
9469 .write = write_82802ab,
9470 .read = read_memmapped,
9471 .voltage = {2700, 3600},
9472 },
9473
9474 {
9475 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009476 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009477 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009478 .manufacture_id = SHARP_ID,
9479 .model_id = SHARP_LHF00L04,
9480 .total_size = 1024,
9481 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009482 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009483 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009484 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009485 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009486 .block_erasers =
9487 {
9488 {
9489 .eraseblocks = {
9490 {64 * 1024, 15},
9491 {8 * 1024, 8}
9492 },
Sean Nelson28accc22010-03-19 18:47:06 +00009493 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009494 }, {
9495 .eraseblocks = {
9496 {1024 * 1024, 1}
9497 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009498 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009499 },
9500 },
Sean Nelson28accc22010-03-19 18:47:06 +00009501 .unlock = unlock_82802ab,
9502 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009503 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009504 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009505 },
9506
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009507 {
9508 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009509 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009510 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009511 .manufacture_id = SPANSION_ID,
9512 .model_id = SPANSION_S25FL004A,
9513 .total_size = 512,
9514 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009515 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009516 .tested = TEST_UNTESTED,
9517 .probe = probe_spi_rdid,
9518 .probe_timing = TIMING_ZERO,
9519 .block_erasers =
9520 {
9521 {
9522 .eraseblocks = { {64 * 1024, 8} },
9523 .block_erase = spi_block_erase_d8,
9524 }, {
9525 .eraseblocks = { {512 * 1024, 1} },
9526 .block_erase = spi_block_erase_c7,
9527 }
9528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009530 .unlock = spi_disable_blockprotect,
9531 .write = spi_chip_write_256,
9532 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009533 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009534 },
9535
9536 {
9537 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009538 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009539 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009540 .manufacture_id = SPANSION_ID,
9541 .model_id = SPANSION_S25FL008A,
9542 .total_size = 1024,
9543 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009544 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009545 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009546 .probe = probe_spi_rdid,
9547 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009548 .block_erasers =
9549 {
9550 {
9551 .eraseblocks = { {64 * 1024, 16} },
9552 .block_erase = spi_block_erase_d8,
9553 }, {
9554 .eraseblocks = { {1024 * 1024, 1} },
9555 .block_erase = spi_block_erase_c7,
9556 }
9557 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009558 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009559 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009560 .write = spi_chip_write_256,
9561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009562 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009563 },
9564
9565 {
9566 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009567 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009568 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009569 .manufacture_id = SPANSION_ID,
9570 .model_id = SPANSION_S25FL016A,
9571 .total_size = 2048,
9572 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009573 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009574 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009576 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009577 .block_erasers =
9578 {
9579 {
9580 .eraseblocks = { {64 * 1024, 32} },
9581 .block_erase = spi_block_erase_d8,
9582 }, {
9583 .eraseblocks = { {2 * 1024 * 1024, 1} },
9584 .block_erase = spi_block_erase_c7,
9585 }
9586 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009587 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009588 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009589 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009590 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009591 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009592 },
9593
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009594 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009595 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009596 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009597 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009598 .manufacture_id = SPANSION_ID,
9599 .model_id = SPANSION_S25FL032A,
9600 .total_size = 4096,
9601 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009602 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009603 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009604 .probe = probe_spi_rdid,
9605 .probe_timing = TIMING_ZERO,
9606 .block_erasers =
9607 {
9608 {
9609 .eraseblocks = { {64 * 1024, 64} },
9610 .block_erase = spi_block_erase_d8,
9611 }, {
9612 .eraseblocks = { {4 * 1024 * 1024, 1} },
9613 .block_erase = spi_block_erase_c7,
9614 }
9615 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009617 .unlock = spi_disable_blockprotect,
9618 .write = spi_chip_write_256,
9619 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009620 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009621 },
9622
9623 {
9624 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009625 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009626 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009627 .manufacture_id = SPANSION_ID,
9628 .model_id = SPANSION_S25FL064A,
9629 .total_size = 8192,
9630 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009631 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009632 .tested = TEST_OK_PREW,
9633 .probe = probe_spi_rdid,
9634 .probe_timing = TIMING_ZERO,
9635 .block_erasers =
9636 {
9637 {
9638 .eraseblocks = { {64 * 1024, 128} },
9639 .block_erase = spi_block_erase_d8,
9640 }, {
9641 .eraseblocks = { {8 * 1024 * 1024, 1} },
9642 .block_erase = spi_block_erase_c7,
9643 }
9644 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009646 .unlock = spi_disable_blockprotect,
9647 .write = spi_chip_write_256,
9648 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009649 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009650 },
9651
9652 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009653 .vendor = "Spansion",
9654 .name = "S25FL204K",
9655 .bustype = BUS_SPI,
9656 .manufacture_id = SPANSION_ID,
9657 .model_id = SPANSION_S25FL204,
9658 .total_size = 512,
9659 .page_size = 256,
9660 .feature_bits = FEATURE_WRSR_WREN,
9661 .tested = TEST_UNTESTED,
9662 .probe = probe_spi_rdid,
9663 .probe_timing = TIMING_ZERO,
9664 .block_erasers = {
9665 {
9666 .eraseblocks = { {4 * 1024, 128} },
9667 .block_erase = spi_block_erase_20,
9668 }, {
9669 .eraseblocks = { {64 * 1024, 8} },
9670 .block_erase = spi_block_erase_d8,
9671 }, {
9672 .eraseblocks = { { 512 * 1024, 1} },
9673 .block_erase = spi_block_erase_60,
9674 }, {
9675 .eraseblocks = { { 512 * 1024, 1} },
9676 .block_erase = spi_block_erase_c7,
9677 }
9678 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009679 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009680 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9681 .write = spi_chip_write_256,
9682 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9683 .voltage = {2700, 3600},
9684 },
9685
9686 {
9687 .vendor = "Spansion",
9688 .name = "S25FL208K",
9689 .bustype = BUS_SPI,
9690 .manufacture_id = SPANSION_ID,
9691 .model_id = SPANSION_S25FL208,
9692 .total_size = 1024,
9693 .page_size = 256,
9694 .feature_bits = FEATURE_WRSR_WREN,
9695 .tested = TEST_UNTESTED,
9696 .probe = probe_spi_rdid,
9697 .probe_timing = TIMING_ZERO,
9698 .block_erasers = {
9699 {
9700 .eraseblocks = { {4 * 1024, 256} },
9701 .block_erase = spi_block_erase_20,
9702 }, {
9703 .eraseblocks = { {64 * 1024, 16} },
9704 .block_erase = spi_block_erase_d8,
9705 }, {
9706 .eraseblocks = { { 1024 * 1024, 1} },
9707 .block_erase = spi_block_erase_60,
9708 }, {
9709 .eraseblocks = { { 1024 * 1024, 1} },
9710 .block_erase = spi_block_erase_c7,
9711 }
9712 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009713 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009714 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9715 .write = spi_chip_write_256,
9716 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9717 .voltage = {2700, 3600},
9718 },
9719
9720 {
9721 .vendor = "Spansion",
9722 .name = "S25FL116K/S25FL216K",
9723 .bustype = BUS_SPI,
9724 .manufacture_id = SPANSION_ID,
9725 .model_id = SPANSION_S25FL216,
9726 .total_size = 2048,
9727 .page_size = 256,
9728 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9730 .tested = TEST_UNTESTED,
9731 .probe = probe_spi_rdid,
9732 .probe_timing = TIMING_ZERO,
9733 .block_erasers = {
9734 {
9735 .eraseblocks = { {4 * 1024, 512} },
9736 .block_erase = spi_block_erase_20,
9737 }, {
9738 .eraseblocks = { {64 * 1024, 32} },
9739 .block_erase = spi_block_erase_d8,
9740 }, {
9741 .eraseblocks = { { 2048 * 1024, 1} },
9742 .block_erase = spi_block_erase_60,
9743 }, {
9744 .eraseblocks = { { 2048 * 1024, 1} },
9745 .block_erase = spi_block_erase_c7,
9746 }
9747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009748 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009749 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9750 .write = spi_chip_write_256,
9751 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9752 .voltage = {2700, 3600},
9753 },
9754
9755 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009756 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009757 .name = "S25FL132K",
9758 .bustype = BUS_SPI,
9759 .manufacture_id = SPANSION_ID,
9760 .model_id = SPANSION_S25FL132K,
9761 .total_size = 4096,
9762 .page_size = 256,
9763 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9764 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9765 .tested = TEST_UNTESTED,
9766 .probe = probe_spi_rdid,
9767 .probe_timing = TIMING_ZERO,
9768 .block_erasers = {
9769 {
9770 .eraseblocks = { {4 * 1024, 1024} },
9771 .block_erase = spi_block_erase_20,
9772 }, {
9773 .eraseblocks = { {64 * 1024, 64} },
9774 .block_erase = spi_block_erase_d8,
9775 }, {
9776 .eraseblocks = { { 4096 * 1024, 1} },
9777 .block_erase = spi_block_erase_60,
9778 }, {
9779 .eraseblocks = { { 4096 * 1024, 1} },
9780 .block_erase = spi_block_erase_c7,
9781 }
9782 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009783 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009784 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9785 .write = spi_chip_write_256,
9786 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9787 .voltage = {2700, 3600},
9788 },
9789
9790 {
9791 .vendor = "Spansion",
9792 .name = "S25FL164K",
9793 .bustype = BUS_SPI,
9794 .manufacture_id = SPANSION_ID,
9795 .model_id = SPANSION_S25FL164K,
9796 .total_size = 8192,
9797 .page_size = 256,
9798 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9799 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9800 .tested = TEST_OK_PREW,
9801 .probe = probe_spi_rdid,
9802 .probe_timing = TIMING_ZERO,
9803 .block_erasers = {
9804 {
9805 .eraseblocks = { {4 * 1024, 2048} },
9806 .block_erase = spi_block_erase_20,
9807 }, {
9808 .eraseblocks = { {64 * 1024, 128} },
9809 .block_erase = spi_block_erase_d8,
9810 }, {
9811 .eraseblocks = { { 8192 * 1024, 1} },
9812 .block_erase = spi_block_erase_60,
9813 }, {
9814 .eraseblocks = { { 8192 * 1024, 1} },
9815 .block_erase = spi_block_erase_c7,
9816 }
9817 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009818 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009819 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9820 .write = spi_chip_write_256,
9821 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9822 .voltage = {2700, 3600},
9823 },
9824
9825 {
9826 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009827 .name = "S25FL128S......0", /* uniform 256kB sectors */
9828 .bustype = BUS_SPI,
9829 .manufacture_id = SPANSION_ID,
9830 .model_id = SPANSION_S25FL128,
9831 .total_size = 16384,
9832 .page_size = 256,
9833 /* supports 4B addressing */
9834 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9835 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9836 .tested = TEST_UNTESTED,
9837 .probe = probe_spi_rdid,
9838 .probe_timing = TIMING_ZERO,
9839 .block_erasers = {
9840 {
9841 .eraseblocks = { {4 * 1024, 4096} },
9842 .block_erase = spi_block_erase_20,
9843 }, {
9844 .eraseblocks = { {256 * 1024, 64} },
9845 .block_erase = spi_block_erase_d8,
9846 }, {
9847 .eraseblocks = { { 16384 * 1024, 1} },
9848 .block_erase = spi_block_erase_60,
9849 }, {
9850 .eraseblocks = { { 16384 * 1024, 1} },
9851 .block_erase = spi_block_erase_c7,
9852 }
9853 },
9854 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9855 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9856 .write = spi_chip_write_256, /* Multi I/O supported */
9857 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9858 .voltage = {2700, 3600},
9859 },
9860
9861 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009862 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009863 .name = "SST25LF020A",
9864 .bustype = BUS_SPI,
9865 .manufacture_id = SST_ID,
9866 .model_id = SST_SST25VF020_REMS,
9867 .total_size = 256,
9868 .page_size = 256,
9869 .feature_bits = FEATURE_WRSR_EWSR,
9870 .tested = TEST_OK_PREW,
9871 .probe = probe_spi_rems,
9872 .probe_timing = TIMING_ZERO,
9873 .block_erasers =
9874 {
9875 {
9876 .eraseblocks = { {4 * 1024, 64} },
9877 .block_erase = spi_block_erase_20,
9878 }, {
9879 .eraseblocks = { {32 * 1024, 8} },
9880 .block_erase = spi_block_erase_52,
9881 }, {
9882 .eraseblocks = { {256 * 1024, 1} },
9883 .block_erase = spi_block_erase_60,
9884 },
9885 },
9886 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9887 .unlock = spi_disable_blockprotect,
9888 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9889 .read = spi_chip_read, /* Fast read (0x0B) supported */
9890 .voltage = {2700, 3600},
9891 },
9892
9893 {
9894 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009895 .name = "SST25LF040A",
9896 .bustype = BUS_SPI,
9897 .manufacture_id = SST_ID,
9898 .model_id = SST_SST25VF040_REMS,
9899 .total_size = 512,
9900 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009901 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009902 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009903 .probe = probe_spi_res2,
9904 .probe_timing = TIMING_ZERO,
9905 .block_erasers =
9906 {
9907 {
9908 .eraseblocks = { {4 * 1024, 128} },
9909 .block_erase = spi_block_erase_20,
9910 }, {
9911 .eraseblocks = { {32 * 1024, 16} },
9912 .block_erase = spi_block_erase_52,
9913 }, {
9914 .eraseblocks = { {512 * 1024, 1} },
9915 .block_erase = spi_block_erase_60,
9916 },
9917 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009918 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009919 .unlock = spi_disable_blockprotect,
9920 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9921 .read = spi_chip_read,
9922 .voltage = {3000, 3600},
9923 },
9924
9925 {
9926 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009927 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009928 .bustype = BUS_SPI,
9929 .manufacture_id = SST_ID,
9930 .model_id = SST_SST25VF080_REMS,
9931 .total_size = 1024,
9932 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009933 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009934 .tested = TEST_UNTESTED,
9935 .probe = probe_spi_res2,
9936 .probe_timing = TIMING_ZERO,
9937 .block_erasers =
9938 {
9939 {
9940 .eraseblocks = { {4 * 1024, 256} },
9941 .block_erase = spi_block_erase_20,
9942 }, {
9943 .eraseblocks = { {32 * 1024, 32} },
9944 .block_erase = spi_block_erase_52,
9945 }, {
9946 .eraseblocks = { {1024 * 1024, 1} },
9947 .block_erase = spi_block_erase_60,
9948 },
9949 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009950 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009951 .unlock = spi_disable_blockprotect,
9952 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9953 .read = spi_chip_read,
9954 .voltage = {3000, 3600},
9955 },
9956
9957 {
9958 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +00009959 .name = "SST25VF512A",
9960 .bustype = BUS_SPI,
9961 .manufacture_id = SST_ID,
9962 .model_id = SST_SST25VF512A_REMS,
9963 .total_size = 64,
9964 .page_size = 256,
9965 .feature_bits = FEATURE_WRSR_EWSR,
9966 .tested = TEST_OK_PREW,
9967 .probe = probe_spi_rems,
9968 .probe_timing = TIMING_ZERO,
9969 .block_erasers =
9970 {
9971 {
9972 .eraseblocks = { {4 * 1024, 16} },
9973 .block_erase = spi_block_erase_20,
9974 }, {
9975 .eraseblocks = { {32 * 1024, 2} },
9976 .block_erase = spi_block_erase_52,
9977 }, {
9978 .eraseblocks = { {32 * 1024, 2} },
9979 .block_erase = spi_block_erase_d8,
9980 }, {
9981 .eraseblocks = { {64 * 1024, 1} },
9982 .block_erase = spi_block_erase_60,
9983 }, {
9984 .eraseblocks = { {64 * 1024, 1} },
9985 .block_erase = spi_block_erase_c7,
9986 },
9987 },
9988 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9989 .unlock = spi_disable_blockprotect,
9990 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9991 .read = spi_chip_read, /* Fast read (0x0B) supported */
9992 .voltage = {2700, 3600},
9993 },
9994
9995 {
9996 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009997 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009998 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009999 .manufacture_id = SST_ID,
10000 .model_id = SST_SST25VF010_REMS,
10001 .total_size = 128,
10002 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010003 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010004 .tested = TEST_OK_PREW,
10005 .probe = probe_spi_rems,
10006 .probe_timing = TIMING_ZERO,
10007 .block_erasers =
10008 {
10009 {
10010 .eraseblocks = { {4 * 1024, 32} },
10011 .block_erase = spi_block_erase_20,
10012 }, {
10013 .eraseblocks = { {32 * 1024, 4} },
10014 .block_erase = spi_block_erase_52,
10015 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010016 .eraseblocks = { {32 * 1024, 4} },
10017 .block_erase = spi_block_erase_d8,
10018 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010019 .eraseblocks = { {128 * 1024, 1} },
10020 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010021 }, {
10022 .eraseblocks = { {128 * 1024, 1} },
10023 .block_erase = spi_block_erase_c7,
10024 },
10025 },
10026 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10027 .unlock = spi_disable_blockprotect,
10028 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10029 .read = spi_chip_read, /* Fast read (0x0B) supported */
10030 .voltage = {2700, 3600},
10031 },
10032
10033 {
10034 .vendor = "SST",
10035 .name = "SST25VF020",
10036 .bustype = BUS_SPI,
10037 .manufacture_id = SST_ID,
10038 .model_id = SST_SST25VF020_REMS,
10039 .total_size = 256,
10040 .page_size = 256,
10041 .feature_bits = FEATURE_WRSR_EWSR,
10042 .tested = TEST_UNTESTED,
10043 .probe = probe_spi_rems,
10044 .probe_timing = TIMING_ZERO,
10045 .block_erasers =
10046 {
10047 {
10048 .eraseblocks = { {4 * 1024, 64} },
10049 .block_erase = spi_block_erase_20,
10050 }, {
10051 .eraseblocks = { {32 * 1024, 8} },
10052 .block_erase = spi_block_erase_52,
10053 }, {
10054 .eraseblocks = { {256 * 1024, 1} },
10055 .block_erase = spi_block_erase_60,
10056 },
10057 },
10058 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10059 .unlock = spi_disable_blockprotect,
10060 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10061 .read = spi_chip_read, /* only */
10062 .voltage = {2700, 3600},
10063 },
10064
10065 {
10066 .vendor = "SST",
10067 .name = "SST25VF020B",
10068 .bustype = BUS_SPI,
10069 .manufacture_id = SST_ID,
10070 .model_id = SST_SST25VF020B,
10071 .total_size = 256,
10072 .page_size = 256,
10073 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010074 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000010075 .probe = probe_spi_rdid,
10076 .probe_timing = TIMING_ZERO,
10077 .block_erasers =
10078 {
10079 {
10080 .eraseblocks = { {4 * 1024, 64} },
10081 .block_erase = spi_block_erase_20,
10082 }, {
10083 .eraseblocks = { {32 * 1024, 8} },
10084 .block_erase = spi_block_erase_52,
10085 }, {
10086 .eraseblocks = { {64 * 1024, 4} },
10087 .block_erase = spi_block_erase_d8,
10088 }, {
10089 .eraseblocks = { {256 * 1024, 1} },
10090 .block_erase = spi_block_erase_60,
10091 }, {
10092 .eraseblocks = { {256 * 1024, 1} },
10093 .block_erase = spi_block_erase_c7,
10094 },
10095 },
10096 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
10097 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
10098 .write = spi_aai_write, /* AAI supported (0xAD) */
10099 .read = spi_chip_read, /* Fast read (0x0B) supported */
10100 .voltage = {2700, 3600},
10101 },
10102
10103 {
10104 .vendor = "SST",
10105 .name = "SST25VF040",
10106 .bustype = BUS_SPI,
10107 .manufacture_id = SST_ID,
10108 .model_id = SST_SST25VF040_REMS,
10109 .total_size = 512,
10110 .page_size = 256,
10111 .feature_bits = FEATURE_WRSR_EWSR,
10112 .tested = TEST_OK_PR,
10113 .probe = probe_spi_rems,
10114 .probe_timing = TIMING_ZERO,
10115 .block_erasers =
10116 {
10117 {
10118 .eraseblocks = { {4 * 1024, 128} },
10119 .block_erase = spi_block_erase_20,
10120 }, {
10121 .eraseblocks = { {32 * 1024, 16} },
10122 .block_erase = spi_block_erase_52,
10123 }, {
10124 .eraseblocks = { {512 * 1024, 1} },
10125 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000010126 },
10127 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010128 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000010129 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000010130 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10131 .read = spi_chip_read,
10132 .voltage = {2700, 3600},
10133 },
10134
10135 {
10136 .vendor = "SST",
10137 .name = "SST25VF040B",
10138 .bustype = BUS_SPI,
10139 .manufacture_id = SST_ID,
10140 .model_id = SST_SST25VF040B,
10141 .total_size = 512,
10142 .page_size = 256,
10143 .feature_bits = FEATURE_WRSR_EWSR,
10144 .tested = TEST_OK_PREW,
10145 .probe = probe_spi_rdid,
10146 .probe_timing = TIMING_ZERO,
10147 .block_erasers =
10148 {
10149 {
10150 .eraseblocks = { {4 * 1024, 128} },
10151 .block_erase = spi_block_erase_20,
10152 }, {
10153 .eraseblocks = { {32 * 1024, 16} },
10154 .block_erase = spi_block_erase_52,
10155 }, {
10156 .eraseblocks = { {64 * 1024, 8} },
10157 .block_erase = spi_block_erase_d8,
10158 }, {
10159 .eraseblocks = { {512 * 1024, 1} },
10160 .block_erase = spi_block_erase_60,
10161 }, {
10162 .eraseblocks = { {512 * 1024, 1} },
10163 .block_erase = spi_block_erase_c7,
10164 },
10165 },
10166 .printlock = spi_prettyprint_status_register_sst25vf040b,
10167 .unlock = spi_disable_blockprotect,
10168 .write = spi_aai_write, /* AAI supported (0xAD) */
10169 .read = spi_chip_read, /* Fast read (0x0B) supported */
10170 .voltage = {2700, 3600},
10171 },
10172
10173 {
10174 .vendor = "SST",
10175 .name = "SST25VF040B.REMS",
10176 .bustype = BUS_SPI,
10177 .manufacture_id = SST_ID,
10178 .model_id = SST_SST25VF040B_REMS,
10179 .total_size = 512,
10180 .page_size = 256,
10181 .feature_bits = FEATURE_WRSR_EWSR,
10182 .tested = TEST_OK_PREW,
10183 .probe = probe_spi_rems,
10184 .probe_timing = TIMING_ZERO,
10185 .block_erasers =
10186 {
10187 {
10188 .eraseblocks = { {4 * 1024, 128} },
10189 .block_erase = spi_block_erase_20,
10190 }, {
10191 .eraseblocks = { {32 * 1024, 16} },
10192 .block_erase = spi_block_erase_52,
10193 }, {
10194 .eraseblocks = { {64 * 1024, 8} },
10195 .block_erase = spi_block_erase_d8,
10196 }, {
10197 .eraseblocks = { {512 * 1024, 1} },
10198 .block_erase = spi_block_erase_60,
10199 }, {
10200 .eraseblocks = { {512 * 1024, 1} },
10201 .block_erase = spi_block_erase_c7,
10202 },
10203 },
10204 .printlock = spi_prettyprint_status_register_sst25vf040b,
10205 .unlock = spi_disable_blockprotect,
10206 .write = spi_aai_write,
10207 .read = spi_chip_read,
10208 .voltage = {2700, 3600},
10209 },
10210
10211 {
10212 .vendor = "SST",
10213 .name = "SST25VF080B",
10214 .bustype = BUS_SPI,
10215 .manufacture_id = SST_ID,
10216 .model_id = SST_SST25VF080B,
10217 .total_size = 1024,
10218 .page_size = 256,
10219 .feature_bits = FEATURE_WRSR_EWSR,
10220 .tested = TEST_OK_PREW,
10221 .probe = probe_spi_rdid,
10222 .probe_timing = TIMING_ZERO,
10223 .block_erasers =
10224 {
10225 {
10226 .eraseblocks = { {4 * 1024, 256} },
10227 .block_erase = spi_block_erase_20,
10228 }, {
10229 .eraseblocks = { {32 * 1024, 32} },
10230 .block_erase = spi_block_erase_52,
10231 }, {
10232 .eraseblocks = { {64 * 1024, 16} },
10233 .block_erase = spi_block_erase_d8,
10234 }, {
10235 .eraseblocks = { {1024 * 1024, 1} },
10236 .block_erase = spi_block_erase_60,
10237 }, {
10238 .eraseblocks = { {1024 * 1024, 1} },
10239 .block_erase = spi_block_erase_c7,
10240 },
10241 },
10242 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10243 .unlock = spi_disable_blockprotect,
10244 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010245 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010246 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010247 },
10248
10249 {
10250 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010251 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010252 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010253 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010254 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010255 .total_size = 2048,
10256 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010257 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010258 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010259 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010260 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010261 .block_erasers =
10262 {
10263 {
10264 .eraseblocks = { {4 * 1024, 512} },
10265 .block_erase = spi_block_erase_20,
10266 }, {
10267 .eraseblocks = { {32 * 1024, 64} },
10268 .block_erase = spi_block_erase_52,
10269 }, {
10270 .eraseblocks = { {64 * 1024, 32} },
10271 .block_erase = spi_block_erase_d8,
10272 }, {
10273 .eraseblocks = { {2 * 1024 * 1024, 1} },
10274 .block_erase = spi_block_erase_60,
10275 }, {
10276 .eraseblocks = { {2 * 1024 * 1024, 1} },
10277 .block_erase = spi_block_erase_c7,
10278 },
10279 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010280 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010281 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010282 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010283 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010284 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010285 },
10286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010287 {
10288 .vendor = "SST",
10289 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010290 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010291 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010292 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010293 .total_size = 4096,
10294 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010295 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010296 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010298 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010299 .block_erasers =
10300 {
10301 {
10302 .eraseblocks = { {4 * 1024, 1024} },
10303 .block_erase = spi_block_erase_20,
10304 }, {
10305 .eraseblocks = { {32 * 1024, 128} },
10306 .block_erase = spi_block_erase_52,
10307 }, {
10308 .eraseblocks = { {64 * 1024, 64} },
10309 .block_erase = spi_block_erase_d8,
10310 }, {
10311 .eraseblocks = { {4 * 1024 * 1024, 1} },
10312 .block_erase = spi_block_erase_60,
10313 }, {
10314 .eraseblocks = { {4 * 1024 * 1024, 1} },
10315 .block_erase = spi_block_erase_c7,
10316 },
10317 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010318 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010319 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010320 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010321 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010322 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010323 },
10324
10325 {
10326 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010327 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010328 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010329 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010330 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010331 .total_size = 8192,
10332 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010333 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010334 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010335 .probe = probe_spi_rdid,
10336 .probe_timing = TIMING_ZERO,
10337 .block_erasers =
10338 {
10339 {
10340 .eraseblocks = { {4 * 1024, 2048} },
10341 .block_erase = spi_block_erase_20,
10342 }, {
10343 .eraseblocks = { {32 * 1024, 256} },
10344 .block_erase = spi_block_erase_52,
10345 }, {
10346 .eraseblocks = { {64 * 1024, 128} },
10347 .block_erase = spi_block_erase_d8,
10348 }, {
10349 .eraseblocks = { {8 * 1024 * 1024, 1} },
10350 .block_erase = spi_block_erase_60,
10351 }, {
10352 .eraseblocks = { {8 * 1024 * 1024, 1} },
10353 .block_erase = spi_block_erase_c7,
10354 },
10355 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010356 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010357 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010358 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010359 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010360 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010361 },
10362
10363 {
10364 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010365 .name = "SST25WF512",
10366 .bustype = BUS_SPI,
10367 .manufacture_id = SST_ID,
10368 .model_id = SST_SST25WF512,
10369 .total_size = 64,
10370 .page_size = 256,
10371 .feature_bits = FEATURE_WRSR_EITHER,
10372 .tested = TEST_UNTESTED,
10373 .probe = probe_spi_rdid,
10374 .probe_timing = TIMING_ZERO,
10375 .block_erasers =
10376 {
10377 {
10378 .eraseblocks = { {4 * 1024, 16} },
10379 .block_erase = spi_block_erase_20,
10380 }, {
10381 .eraseblocks = { {32 * 1024, 2} },
10382 .block_erase = spi_block_erase_52,
10383 }, {
10384 .eraseblocks = { {1024 * 64, 1} },
10385 .block_erase = spi_block_erase_60,
10386 }, {
10387 .eraseblocks = { {1024 * 64, 1} },
10388 .block_erase = spi_block_erase_c7,
10389 },
10390 },
Jason Harper43ddef02014-05-04 00:55:24 +000010391 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10392 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010393 .write = spi_aai_write,
10394 .read = spi_chip_read, /* Fast read (0x0B) supported */
10395 .voltage = {1650, 1950},
10396 },
10397
10398 {
10399 .vendor = "SST",
10400 .name = "SST25WF010",
10401 .bustype = BUS_SPI,
10402 .manufacture_id = SST_ID,
10403 .model_id = SST_SST25WF010,
10404 .total_size = 128,
10405 .page_size = 256,
10406 .feature_bits = FEATURE_WRSR_EITHER,
10407 .tested = TEST_UNTESTED,
10408 .probe = probe_spi_rdid,
10409 .probe_timing = TIMING_ZERO,
10410 .block_erasers =
10411 {
10412 {
10413 .eraseblocks = { {4 * 1024, 32} },
10414 .block_erase = spi_block_erase_20,
10415 }, {
10416 .eraseblocks = { {32 * 1024, 4} },
10417 .block_erase = spi_block_erase_52,
10418 }, {
10419 .eraseblocks = { {1024 * 128, 1} },
10420 .block_erase = spi_block_erase_60,
10421 }, {
10422 .eraseblocks = { {1024 * 128, 1} },
10423 .block_erase = spi_block_erase_c7,
10424 },
10425 },
Jason Harper43ddef02014-05-04 00:55:24 +000010426 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10427 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010428 .write = spi_aai_write,
10429 .read = spi_chip_read, /* Fast read (0x0B) supported */
10430 .voltage = {1650, 1950},
10431 },
10432
10433 {
10434 .vendor = "SST",
10435 .name = "SST25WF020",
10436 .bustype = BUS_SPI,
10437 .manufacture_id = SST_ID,
10438 .model_id = SST_SST25WF020,
10439 .total_size = 256,
10440 .page_size = 256,
10441 .feature_bits = FEATURE_WRSR_EITHER,
10442 .tested = TEST_UNTESTED,
10443 .probe = probe_spi_rdid,
10444 .probe_timing = TIMING_ZERO,
10445 .block_erasers =
10446 {
10447 {
10448 .eraseblocks = { {4 * 1024, 64} },
10449 .block_erase = spi_block_erase_20,
10450 }, {
10451 .eraseblocks = { {32 * 1024, 8} },
10452 .block_erase = spi_block_erase_52,
10453 }, {
10454 .eraseblocks = { {64 * 1024, 4} },
10455 .block_erase = spi_block_erase_d8,
10456 }, {
10457 .eraseblocks = { {1024 * 256, 1} },
10458 .block_erase = spi_block_erase_60,
10459 }, {
10460 .eraseblocks = { {1024 * 256, 1} },
10461 .block_erase = spi_block_erase_c7,
10462 },
10463 },
Jason Harper43ddef02014-05-04 00:55:24 +000010464 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10465 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010466 .write = spi_aai_write,
10467 .read = spi_chip_read, /* Fast read (0x0B) supported */
10468 .voltage = {1650, 1950},
10469 },
10470
10471 {
10472 .vendor = "SST",
10473 .name = "SST25WF040",
10474 .bustype = BUS_SPI,
10475 .manufacture_id = SST_ID,
10476 .model_id = SST_SST25WF040,
10477 .total_size = 512,
10478 .page_size = 256,
10479 .feature_bits = FEATURE_WRSR_EITHER,
10480 .tested = TEST_UNTESTED,
10481 .probe = probe_spi_rdid,
10482 .probe_timing = TIMING_ZERO,
10483 .block_erasers =
10484 {
10485 {
10486 .eraseblocks = { {4 * 1024, 128} },
10487 .block_erase = spi_block_erase_20,
10488 }, {
10489 .eraseblocks = { {32 * 1024, 16} },
10490 .block_erase = spi_block_erase_52,
10491 }, {
10492 .eraseblocks = { {64 * 1024, 8} },
10493 .block_erase = spi_block_erase_d8,
10494 }, {
10495 .eraseblocks = { {1024 * 512, 1} },
10496 .block_erase = spi_block_erase_60,
10497 }, {
10498 .eraseblocks = { {1024 * 512, 1} },
10499 .block_erase = spi_block_erase_c7,
10500 },
10501 },
Jason Harper43ddef02014-05-04 00:55:24 +000010502 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10503 .unlock = spi_disable_blockprotect_bp2_srwd,
10504 .write = spi_aai_write,
10505 .read = spi_chip_read, /* Fast read (0x0B) supported */
10506 .voltage = {1650, 1950},
10507 },
10508
10509 {
10510 .vendor = "SST",
10511 .name = "SST25WF080",
10512 .bustype = BUS_SPI,
10513 .manufacture_id = SST_ID,
10514 .model_id = SST_SST25WF080,
10515 .total_size = 1024,
10516 .page_size = 256,
10517 .feature_bits = FEATURE_WRSR_EITHER,
10518 .tested = TEST_OK_PREW,
10519 .probe = probe_spi_rdid,
10520 .probe_timing = TIMING_ZERO,
10521 .block_erasers =
10522 {
10523 {
10524 .eraseblocks = { {4 * 1024, 256} },
10525 .block_erase = spi_block_erase_20,
10526 }, {
10527 .eraseblocks = { {32 * 1024, 32} },
10528 .block_erase = spi_block_erase_52,
10529 }, {
10530 .eraseblocks = { {64 * 1024, 16} },
10531 .block_erase = spi_block_erase_d8,
10532 }, {
10533 .eraseblocks = { {1024 * 1024, 1} },
10534 .block_erase = spi_block_erase_60,
10535 }, {
10536 .eraseblocks = { {1024 * 1024, 1} },
10537 .block_erase = spi_block_erase_c7,
10538 },
10539 },
10540 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10541 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010542 .write = spi_aai_write,
10543 .read = spi_chip_read, /* Fast read (0x0B) supported */
10544 .voltage = {1650, 1950},
10545 },
10546
10547 {
10548 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010549 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010550 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010551 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010552 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010553 .total_size = 512,
10554 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010555 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010556 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010557 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010558 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010559 .block_erasers =
10560 {
10561 {
10562 .eraseblocks = { {128, 4096} },
10563 .block_erase = erase_sector_28sf040,
10564 }, {
10565 .eraseblocks = { {512 * 1024, 1} },
10566 .block_erase = erase_chip_28sf040,
10567 }
10568 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010569 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010570 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010572 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010573 },
10574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010575 {
10576 .vendor = "SST",
10577 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010578 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010579 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010580 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010581 .total_size = 128,
10582 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010583 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010584 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010585 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010586 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010587 .block_erasers =
10588 {
10589 {
10590 .eraseblocks = { {128 * 1024, 1} },
10591 .block_erase = erase_chip_block_jedec,
10592 }
10593 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010594 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010595 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010596 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010597 },
10598
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010599 {
10600 .vendor = "SST",
10601 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010602 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010603 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010604 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010605 .total_size = 128,
10606 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010607 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010608 .tested = TEST_UNTESTED,
10609 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010610 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010611 .block_erasers =
10612 {
10613 {
10614 .eraseblocks = { {128 * 1024, 1} },
10615 .block_erase = erase_chip_block_jedec,
10616 }
10617 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010618 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010619 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010620 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010621 },
10622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010623 {
10624 .vendor = "SST",
10625 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010626 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010627 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010628 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010629 .total_size = 256,
10630 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010631 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010632 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010633 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010634 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010635 .block_erasers =
10636 {
10637 {
10638 .eraseblocks = { {256 * 1024, 1} },
10639 .block_erase = erase_chip_block_jedec,
10640 }
10641 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010642 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010644 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010645 },
10646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010647 {
10648 .vendor = "SST",
10649 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010651 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010652 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010653 .total_size = 256,
10654 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010655 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010656 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010657 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010658 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010659 .block_erasers =
10660 {
10661 {
10662 .eraseblocks = { {256 * 1024, 1} },
10663 .block_erase = erase_chip_block_jedec,
10664 }
10665 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010666 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010668 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010669 },
10670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010671 {
10672 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010673 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010674 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010675 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010676 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010677 .total_size = 64,
10678 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010679 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010680 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010681 .probe = probe_jedec,
10682 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010683 .block_erasers =
10684 {
10685 {
10686 .eraseblocks = { {4 * 1024, 16} },
10687 .block_erase = erase_sector_jedec,
10688 }, {
10689 .eraseblocks = { {64 * 1024, 1} },
10690 .block_erase = erase_chip_block_jedec,
10691 }
10692 },
Sean Nelson35727f72010-01-28 23:55:12 +000010693 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010695 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010696 },
10697
10698 {
10699 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010700 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010701 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010702 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010703 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010704 .total_size = 128,
10705 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010706 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010707 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010708 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010709 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010710 .block_erasers =
10711 {
10712 {
10713 .eraseblocks = { {4 * 1024, 32} },
10714 .block_erase = erase_sector_jedec,
10715 }, {
10716 .eraseblocks = { {128 * 1024, 1} },
10717 .block_erase = erase_chip_block_jedec,
10718 }
10719 },
Sean Nelson35727f72010-01-28 23:55:12 +000010720 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010722 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010723 },
10724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010725 {
10726 .vendor = "SST",
10727 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010728 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010729 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010730 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010731 .total_size = 256,
10732 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010733 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010734 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010735 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010736 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010737 .block_erasers =
10738 {
10739 {
10740 .eraseblocks = { {4 * 1024, 64} },
10741 .block_erase = erase_sector_jedec,
10742 }, {
10743 .eraseblocks = { {256 * 1024, 1} },
10744 .block_erase = erase_chip_block_jedec,
10745 }
10746 },
Sean Nelson35727f72010-01-28 23:55:12 +000010747 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010749 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010750 },
10751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010752 {
10753 .vendor = "SST",
10754 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010755 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010756 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010757 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010758 .total_size = 512,
10759 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010760 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010761 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010762 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010763 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010764 .block_erasers =
10765 {
10766 {
10767 .eraseblocks = { {4 * 1024, 128} },
10768 .block_erase = erase_sector_jedec,
10769 }, {
10770 .eraseblocks = { {512 * 1024, 1} },
10771 .block_erase = erase_chip_block_jedec,
10772 }
10773 },
Sean Nelson35727f72010-01-28 23:55:12 +000010774 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010775 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010776 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010777 },
10778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010779 {
10780 .vendor = "SST",
10781 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010782 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010783 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010784 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010785 .total_size = 64,
10786 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010787 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010788 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010789 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010790 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010791 .block_erasers =
10792 {
10793 {
10794 .eraseblocks = { {4 * 1024, 16} },
10795 .block_erase = erase_sector_jedec,
10796 }, {
10797 .eraseblocks = { {64 * 1024, 1} },
10798 .block_erase = erase_chip_block_jedec,
10799 }
10800 },
Sean Nelson35727f72010-01-28 23:55:12 +000010801 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010803 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010804 },
10805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010806 {
10807 .vendor = "SST",
10808 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010810 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010811 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010812 .total_size = 128,
10813 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010814 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010815 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010816 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010817 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010818 .block_erasers =
10819 {
10820 {
10821 .eraseblocks = { {4 * 1024, 32} },
10822 .block_erase = erase_sector_jedec,
10823 }, {
10824 .eraseblocks = { {128 * 1024, 1} },
10825 .block_erase = erase_chip_block_jedec,
10826 }
10827 },
Sean Nelson35727f72010-01-28 23:55:12 +000010828 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010829 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010830 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010831 },
10832
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010833 {
10834 .vendor = "SST",
10835 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010836 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010837 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010838 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010839 .total_size = 256,
10840 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010841 .feature_bits = FEATURE_EITHER_RESET,
10842 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010843 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010844 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010845 .block_erasers =
10846 {
10847 {
10848 .eraseblocks = { {4 * 1024, 64} },
10849 .block_erase = erase_sector_jedec,
10850 }, {
10851 .eraseblocks = { {256 * 1024, 1} },
10852 .block_erase = erase_chip_block_jedec,
10853 }
10854 },
Sean Nelson35727f72010-01-28 23:55:12 +000010855 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010856 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010857 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010858 },
10859
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010860 {
10861 .vendor = "SST",
10862 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010863 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010864 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010865 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010866 .total_size = 512,
10867 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010868 .feature_bits = FEATURE_EITHER_RESET,
10869 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010870 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010871 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010872 .block_erasers =
10873 {
10874 {
10875 .eraseblocks = { {4 * 1024, 128} },
10876 .block_erase = erase_sector_jedec,
10877 }, {
10878 .eraseblocks = { {512 * 1024, 1} },
10879 .block_erase = erase_chip_block_jedec,
10880 }
10881 },
Sean Nelson35727f72010-01-28 23:55:12 +000010882 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010883 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010884 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010885 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010887 {
10888 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010889 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010890 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010891 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010892 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010893 .total_size = 1024,
10894 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010895 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010896 .tested = TEST_UNTESTED,
10897 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010898 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010899 .block_erasers =
10900 {
10901 {
10902 .eraseblocks = { {4 * 1024, 256} },
10903 .block_erase = erase_sector_jedec,
10904 }, {
10905 .eraseblocks = { {64 * 1024, 16} },
10906 .block_erase = erase_block_jedec,
10907 }, {
10908 .eraseblocks = { {1024 * 1024, 1} },
10909 .block_erase = erase_chip_block_jedec,
10910 }
10911 },
Sean Nelson35727f72010-01-28 23:55:12 +000010912 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010913 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010914 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010915 },
10916
10917 {
10918 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010919 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010920 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010921 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010922 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010923 .total_size = 256,
10924 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010925 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010926 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010927 .probe = probe_jedec,
10928 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010929 .block_erasers =
10930 {
10931 {
10932 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010933 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010934 }, {
10935 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010936 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010937 }, {
10938 .eraseblocks = { {256 * 1024, 1} },
10939 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10940 }
10941 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010942 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010943 .unlock = unlock_sst_fwhub,
10944 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010946 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010947 },
10948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010949 {
10950 .vendor = "SST",
10951 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010952 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010953 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010954 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010955 .total_size = 384,
10956 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010957 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010958 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010959 .probe = probe_jedec,
10960 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010961 .block_erasers =
10962 {
10963 {
10964 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010965 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010966 }, {
10967 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010968 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010969 }, {
10970 .eraseblocks = { {384 * 1024, 1} },
10971 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10972 }
10973 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010974 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010975 .unlock = unlock_sst_fwhub,
10976 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010977 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010978 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010979 },
10980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010981 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010982 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10983 * and is only honored for 64k block erase, but not 4k sector erase.
10984 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010985 .vendor = "SST",
10986 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010987 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010988 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010989 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010990 .total_size = 512,
10991 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010992 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010993 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010994 .probe = probe_jedec,
10995 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010996 .block_erasers =
10997 {
10998 {
10999 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011000 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011001 }, {
11002 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011003 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011004 }, {
11005 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011006 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011007 },
11008 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011009 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011010 .unlock = unlock_sst_fwhub,
11011 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011012 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011013 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011014 },
11015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011016 {
11017 .vendor = "SST",
11018 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011019 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011020 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011021 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011022 .total_size = 512,
11023 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011024 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011025 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011026 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011027 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011028 .block_erasers =
11029 {
11030 {
11031 .eraseblocks = { {4 * 1024, 128} },
11032 .block_erase = erase_sector_49lfxxxc,
11033 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011034 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011035 {64 * 1024, 7},
11036 {32 * 1024, 1},
11037 {8 * 1024, 2},
11038 {16 * 1024, 1},
11039 },
Sean Nelson69e58112010-03-23 17:10:28 +000011040 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011041 }
11042 },
Sean Nelson69e58112010-03-23 17:10:28 +000011043 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011044 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011045 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011046 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011047 },
11048
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011049 {
11050 .vendor = "SST",
11051 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011052 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011053 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011054 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011055 .total_size = 1024,
11056 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011057 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011058 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011059 .probe = probe_jedec,
11060 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011061 .block_erasers =
11062 {
11063 {
11064 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011065 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011066 }, {
11067 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011068 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011069 }, {
11070 .eraseblocks = { {1024 * 1024, 1} },
11071 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11072 }
11073 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011074 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011075 .unlock = unlock_sst_fwhub,
11076 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011077 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011078 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011079 },
11080
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011081 {
11082 .vendor = "SST",
11083 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011084 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011085 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011086 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011087 .total_size = 1024,
11088 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011089 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011090 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011091 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011092 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011093 .block_erasers =
11094 {
11095 {
11096 .eraseblocks = { {4 * 1024, 256} },
11097 .block_erase = erase_sector_49lfxxxc,
11098 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011099 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011100 {64 * 1024, 15},
11101 {32 * 1024, 1},
11102 {8 * 1024, 2},
11103 {16 * 1024, 1},
11104 },
Sean Nelson69e58112010-03-23 17:10:28 +000011105 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011106 }
11107 },
Sean Nelson69e58112010-03-23 17:10:28 +000011108 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011109 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011111 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011112 },
11113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011114 {
11115 .vendor = "SST",
11116 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011117 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011118 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011119 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011120 .total_size = 2048,
11121 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011122 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000011123 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011124 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011125 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011126 .block_erasers =
11127 {
11128 {
11129 .eraseblocks = { {4 * 1024, 512} },
11130 .block_erase = erase_sector_49lfxxxc,
11131 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011132 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011133 {64 * 1024, 31},
11134 {32 * 1024, 1},
11135 {8 * 1024, 2},
11136 {16 * 1024, 1},
11137 },
Sean Nelson69e58112010-03-23 17:10:28 +000011138 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011139 }
11140 },
Sean Nelson69e58112010-03-23 17:10:28 +000011141 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011142 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011144 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011145 },
11146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011147 {
11148 .vendor = "SST",
11149 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011150 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011151 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011152 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011153 .total_size = 256,
11154 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011155 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000011156 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011157 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011158 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011159 .block_erasers =
11160 {
11161 {
11162 .eraseblocks = { {4 * 1024, 64} },
11163 .block_erase = erase_sector_jedec,
11164 }, {
11165 .eraseblocks = { {16 * 1024, 16} },
11166 .block_erase = erase_block_jedec,
11167 }, {
11168 .eraseblocks = { {256 * 1024, 1} },
11169 .block_erase = NULL,
11170 }
11171 },
Sean Nelson35727f72010-01-28 23:55:12 +000011172 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011173 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011174 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000011175 },
11176
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011177 {
11178 .vendor = "SST",
11179 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011180 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011181 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011182 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011183 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011184 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011185 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011186 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011187 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011188 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011189 .block_erasers =
11190 {
11191 {
11192 .eraseblocks = { {4 * 1024, 64} },
11193 .block_erase = erase_sector_jedec,
11194 }, {
11195 .eraseblocks = { {16 * 1024, 16} },
11196 .block_erase = erase_block_jedec,
11197 }, {
11198 .eraseblocks = { {256 * 1024, 1} },
11199 .block_erase = NULL,
11200 }
11201 },
Sean Nelson35727f72010-01-28 23:55:12 +000011202 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011204 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011205 },
11206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011207 {
11208 .vendor = "SST",
11209 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011210 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011211 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011212 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011213 .total_size = 512,
11214 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011215 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011216 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011217 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011218 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011219 .block_erasers =
11220 {
11221 {
11222 .eraseblocks = { {4 * 1024, 128} },
11223 .block_erase = erase_sector_jedec,
11224 }, {
11225 .eraseblocks = { {64 * 1024, 8} },
11226 .block_erase = erase_block_jedec,
11227 }, {
11228 .eraseblocks = { {512 * 1024, 1} },
11229 .block_erase = NULL,
11230 }
11231 },
Sean Nelson35727f72010-01-28 23:55:12 +000011232 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011233 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011234 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011235 },
11236
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011237 {
11238 .vendor = "SST",
11239 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011240 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011241 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011242 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011243 .total_size = 512,
11244 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011245 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011246 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011247 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011248 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011249 .block_erasers =
11250 {
11251 {
11252 .eraseblocks = { {4 * 1024, 128} },
11253 .block_erase = erase_sector_jedec,
11254 }, {
11255 .eraseblocks = { {64 * 1024, 8} },
11256 .block_erase = erase_block_jedec,
11257 }, {
11258 .eraseblocks = { {512 * 1024, 1} },
11259 .block_erase = NULL,
11260 }
11261 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011262 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000011263 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011265 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011266 },
11267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011268 {
11269 .vendor = "SST",
11270 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011271 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011272 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011273 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011274 .total_size = 1024,
11275 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011276 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011277 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011278 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011279 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011280 .block_erasers =
11281 {
11282 {
11283 .eraseblocks = { {4 * 1024, 256} },
11284 .block_erase = erase_sector_jedec,
11285 }, {
11286 .eraseblocks = { {64 * 1024, 16} },
11287 .block_erase = erase_block_jedec,
11288 }, {
11289 .eraseblocks = { {1024 * 1024, 1} },
11290 .block_erase = NULL,
11291 }
11292 },
Sean Nelson35727f72010-01-28 23:55:12 +000011293 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011295 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011296 },
11297
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011298 {
11299 .vendor = "SST",
11300 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011301 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011302 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011303 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011304 .total_size = 2048,
11305 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011306 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011307 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011308 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011309 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011310 .block_erasers =
11311 {
11312 {
11313 .eraseblocks = { {4 * 1024, 512} },
11314 .block_erase = erase_sector_49lfxxxc,
11315 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011316 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011317 {64 * 1024, 31},
11318 {32 * 1024, 1},
11319 {8 * 1024, 2},
11320 {16 * 1024, 1},
11321 },
Sean Nelson69e58112010-03-23 17:10:28 +000011322 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011323 }
11324 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011325 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011326 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011327 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011328 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011329 },
11330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011331 {
11332 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011333 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011334 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011335 .manufacture_id = ST_ID,
11336 .model_id = ST_M29F002B,
11337 .total_size = 256,
11338 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011339 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011340 .tested = TEST_UNTESTED,
11341 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011342 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011343 .block_erasers =
11344 {
11345 {
11346 .eraseblocks = {
11347 {16 * 1024, 1},
11348 {8 * 1024, 2},
11349 {32 * 1024, 1},
11350 {64 * 1024, 3},
11351 },
11352 .block_erase = erase_sector_jedec,
11353 }, {
11354 .eraseblocks = { {256 * 1024, 1} },
11355 .block_erase = erase_chip_block_jedec,
11356 }
11357 },
Sean Nelson35727f72010-01-28 23:55:12 +000011358 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011359 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011360 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011361 },
11362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011363 {
11364 .vendor = "ST",
11365 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011366 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011367 .manufacture_id = ST_ID,
11368 .model_id = ST_M29F002T,
11369 .total_size = 256,
11370 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011371 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011372 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011373 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011374 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011375 .block_erasers =
11376 {
11377 {
11378 .eraseblocks = {
11379 {64 * 1024, 3},
11380 {32 * 1024, 1},
11381 {8 * 1024, 2},
11382 {16 * 1024, 1},
11383 },
11384 .block_erase = erase_sector_jedec,
11385 }, {
11386 .eraseblocks = { {256 * 1024, 1} },
11387 .block_erase = erase_chip_block_jedec,
11388 }
11389 },
Sean Nelson35727f72010-01-28 23:55:12 +000011390 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011391 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011392 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011393 },
11394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011395 {
11396 .vendor = "ST",
11397 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011399 .manufacture_id = ST_ID,
11400 .model_id = ST_M29F040B,
11401 .total_size = 512,
11402 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011403 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11404 .tested = TEST_UNTESTED,
11405 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011406 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011407 .block_erasers =
11408 {
11409 {
11410 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011411 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011412 }, {
11413 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011414 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011415 }
11416 },
Sean Nelson35727f72010-01-28 23:55:12 +000011417 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011418 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011419 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011420 },
11421
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011422 {
Sean Nelson35727f72010-01-28 23:55:12 +000011423 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011424 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011425 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011426 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011427 .manufacture_id = ST_ID,
11428 .model_id = ST_M29F400BB,
11429 .total_size = 512,
11430 .page_size = 64 * 1024,
11431 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011432 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011433 .probe = probe_m29f400bt,
11434 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11435 .block_erasers =
11436 {
11437 {
11438 .eraseblocks = {
11439 {16 * 1024, 1},
11440 {8 * 1024, 2},
11441 {32 * 1024, 1},
11442 {64 * 1024, 7},
11443 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011444 .block_erase = erase_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011445 }, {
11446 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011447 .block_erase = erase_chip_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011448 }
11449 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011450 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011451 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011452 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011453 },
11454 {
11455 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11456 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011457 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011458 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011459 .manufacture_id = ST_ID,
11460 .model_id = ST_M29F400BT,
11461 .total_size = 512,
11462 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011463 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011464 .tested = TEST_UNTESTED,
11465 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011466 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011467 .block_erasers =
11468 {
11469 {
11470 .eraseblocks = {
11471 {64 * 1024, 7},
11472 {32 * 1024, 1},
11473 {8 * 1024, 2},
11474 {16 * 1024, 1},
11475 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011476 .block_erase = erase_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011477 }, {
11478 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011479 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011480 }
11481 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011482 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011483 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011484 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011485 },
11486
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011487 {
11488 .vendor = "ST",
11489 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011490 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011491 .manufacture_id = ST_ID,
11492 .model_id = ST_M29W010B,
11493 .total_size = 128,
11494 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011495 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011496 .tested = TEST_UNTESTED,
11497 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011498 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011499 .block_erasers =
11500 {
11501 {
11502 .eraseblocks = { {16 * 1024, 8}, },
11503 .block_erase = erase_sector_jedec,
11504 }, {
11505 .eraseblocks = { {128 * 1024, 1} },
11506 .block_erase = erase_chip_block_jedec,
11507 }
11508 },
Sean Nelson35727f72010-01-28 23:55:12 +000011509 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011512 },
11513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011514 {
11515 .vendor = "ST",
11516 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011517 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011518 .manufacture_id = ST_ID,
11519 .model_id = ST_M29W040B,
11520 .total_size = 512,
11521 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011522 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011523 .tested = TEST_UNTESTED,
11524 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011525 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011526 .block_erasers =
11527 {
11528 {
11529 .eraseblocks = { {64 * 1024, 8}, },
11530 .block_erase = erase_sector_jedec,
11531 }, {
11532 .eraseblocks = { {512 * 1024, 1} },
11533 .block_erase = erase_chip_block_jedec,
11534 }
11535 },
Sean Nelson35727f72010-01-28 23:55:12 +000011536 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011538 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011539 },
11540
Stefan Taunereb582572012-09-21 12:52:50 +000011541 {
11542 .vendor = "ST",
11543 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011544 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011545 .manufacture_id = ST_ID,
11546 .model_id = ST_M29W512B,
11547 .total_size = 64,
11548 .page_size = 64 * 1024,
11549 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011550 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011551 .probe = probe_jedec,
11552 .probe_timing = TIMING_ZERO,
11553 .block_erasers =
11554 {
11555 {
11556 .eraseblocks = { {64 * 1024, 1} },
11557 .block_erase = erase_chip_block_jedec,
11558 }
11559 },
11560 .write = write_jedec_1,
11561 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011562 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011563 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011565 {
11566 .vendor = "ST",
11567 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011568 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011569 .manufacture_id = ST_ID,
11570 .model_id = ST_M50FLW040A,
11571 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011572 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011573 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011574 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011575 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011576 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011577 .block_erasers =
11578 {
11579 {
Sean Nelson329bde72010-01-19 16:39:19 +000011580 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011581 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011582 {64 * 1024, 5}, /* block */
11583 {4 * 1024, 16}, /* sector */
11584 {4 * 1024, 16}, /* sector */
11585 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011586 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011587 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011588 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011589 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011590 }
11591 },
Sean Nelson28accc22010-03-19 18:47:06 +000011592 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011593 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011595 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011596 },
11597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011598 {
11599 .vendor = "ST",
11600 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011601 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011602 .manufacture_id = ST_ID,
11603 .model_id = ST_M50FLW040B,
11604 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011605 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011606 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011607 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011608 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011609 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011610 .block_erasers =
11611 {
11612 {
Sean Nelson329bde72010-01-19 16:39:19 +000011613 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011614 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011615 {4 * 1024, 16}, /* sector */
11616 {64 * 1024, 5}, /* block */
11617 {4 * 1024, 16}, /* sector */
11618 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011619 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011620 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011621 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011622 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011623 }
11624 },
Sean Nelson28accc22010-03-19 18:47:06 +000011625 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011626 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011628 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011629 },
11630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011631 {
11632 .vendor = "ST",
11633 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011634 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011635 .manufacture_id = ST_ID,
11636 .model_id = ST_M50FLW080A,
11637 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011638 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011639 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011640 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011641 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011642 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011643 .block_erasers =
11644 {
11645 {
Sean Nelson329bde72010-01-19 16:39:19 +000011646 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011647 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011648 {64 * 1024, 13}, /* block */
11649 {4 * 1024, 16}, /* sector */
11650 {4 * 1024, 16}, /* sector */
11651 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011652 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011653 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011654 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011655 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011656 }
11657 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011658 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011659 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011661 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011662 },
11663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011664 {
11665 .vendor = "ST",
11666 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011667 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011668 .manufacture_id = ST_ID,
11669 .model_id = ST_M50FLW080B,
11670 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011671 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011672 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011673 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011674 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011675 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011676 .block_erasers =
11677 {
11678 {
Sean Nelson329bde72010-01-19 16:39:19 +000011679 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011680 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011681 {4 * 1024, 16}, /* sector */
11682 {64 * 1024, 13}, /* block */
11683 {4 * 1024, 16}, /* sector */
11684 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011685 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011686 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011687 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011688 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011689 }
11690 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011691 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011692 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011694 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011695 },
11696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011697 {
11698 .vendor = "ST",
11699 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011700 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011701 .manufacture_id = ST_ID,
11702 .model_id = ST_M50FW002,
11703 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011704 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011705 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011706 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011707 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011708 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011709 .block_erasers =
11710 {
11711 {
11712 .eraseblocks = {
11713 {64 * 1024, 3},
11714 {32 * 1024, 1},
11715 {8 * 1024, 2},
11716 {16 * 1024, 1},
11717 },
Sean Nelson28accc22010-03-19 18:47:06 +000011718 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011719 }
11720 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011721 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011722 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011724 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011725 },
11726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011727 {
11728 .vendor = "ST",
11729 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011730 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011731 .manufacture_id = ST_ID,
11732 .model_id = ST_M50FW016,
11733 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011734 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011735 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011736 .tested = TEST_UNTESTED,
11737 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011738 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011739 .block_erasers =
11740 {
11741 {
11742 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011743 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011744 }
11745 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011746 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011747 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011749 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011750 },
11751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011752 {
11753 .vendor = "ST",
11754 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011755 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011756 .manufacture_id = ST_ID,
11757 .model_id = ST_M50FW040,
11758 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011759 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011760 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011761 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011762 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011763 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011764 .block_erasers =
11765 {
11766 {
11767 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011768 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011769 }
11770 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011771 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011772 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011774 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011775 },
11776
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011777 {
11778 .vendor = "ST",
11779 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011780 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011781 .manufacture_id = ST_ID,
11782 .model_id = ST_M50FW080,
11783 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011784 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011785 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011786 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011787 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011788 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011789 .block_erasers =
11790 {
11791 {
11792 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011793 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011794 }
11795 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011796 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011797 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011799 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011800 },
11801
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011802 {
11803 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011804 .name = "M50LPW080",
11805 .bustype = BUS_LPC, /* A/A Mux */
11806 .manufacture_id = ST_ID,
11807 .model_id = ST_M50LPW080,
11808 .total_size = 1024,
11809 .page_size = 0,
11810 .feature_bits = FEATURE_REGISTERMAP,
11811 .tested = TEST_UNTESTED,
11812 .probe = probe_82802ab,
11813 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11814 .block_erasers =
11815 {
11816 {
11817 .eraseblocks = { {64 * 1024, 16}, },
11818 .block_erase = erase_block_82802ab,
11819 }
11820 },
11821 .unlock = unlock_stm50_uniform,
11822 .write = write_82802ab,
11823 .read = read_memmapped,
11824 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11825 },
11826
11827 {
11828 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011829 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011830 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011831 .manufacture_id = ST_ID,
11832 .model_id = ST_M50LPW116,
11833 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011834 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011835 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011836 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011837 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011838 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011839 .block_erasers =
11840 {
11841 {
11842 .eraseblocks = {
11843 {4 * 1024, 16},
11844 {64 * 1024, 30},
11845 {32 * 1024, 1},
11846 {8 * 1024, 2},
11847 {16 * 1024, 1},
11848 },
Sean Nelson28accc22010-03-19 18:47:06 +000011849 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011850 }
11851 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011852 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011853 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011855 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011856 },
11857
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011858 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011859 .vendor = "SyncMOS/MoselVitelic",
11860 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011861 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011862 .manufacture_id = SYNCMOS_MVC_ID,
11863 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011864 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011865 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011866 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011867 .tested = TEST_UNTESTED,
11868 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011870 .block_erasers =
11871 {
11872 {
11873 .eraseblocks = { {512, 256} },
11874 .block_erase = erase_sector_jedec,
11875 }, {
11876 .eraseblocks = { {128 * 1024, 1} },
11877 .block_erase = erase_chip_block_jedec,
11878 },
11879 },
Sean Nelson35727f72010-01-28 23:55:12 +000011880 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011882 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011883 },
11884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011885 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011886 .vendor = "SyncMOS/MoselVitelic",
11887 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011888 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011889 .manufacture_id = SYNCMOS_MVC_ID,
11890 .model_id = SM_MVC_29C51001T,
11891 .total_size = 128,
11892 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011893 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011894 .tested = TEST_UNTESTED,
11895 .probe = probe_jedec,
11896 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11897 .block_erasers =
11898 {
11899 {
11900 .eraseblocks = { {512, 256} },
11901 .block_erase = erase_sector_jedec,
11902 }, {
11903 .eraseblocks = { {128 * 1024, 1} },
11904 .block_erase = erase_chip_block_jedec,
11905 },
11906 },
11907 .write = write_jedec_1,
11908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011909 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011910 },
11911
11912 {
11913 .vendor = "SyncMOS/MoselVitelic",
11914 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011915 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011916 .manufacture_id = SYNCMOS_MVC_ID,
11917 .model_id = SM_MVC_29C51002B,
11918 .total_size = 256,
11919 .page_size = 512,
11920 .feature_bits = FEATURE_EITHER_RESET,
11921 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011922 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011923 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011924 .block_erasers =
11925 {
11926 {
11927 .eraseblocks = { {512, 512} },
11928 .block_erase = erase_sector_jedec,
11929 }, {
11930 .eraseblocks = { {256 * 1024, 1} },
11931 .block_erase = erase_chip_block_jedec,
11932 },
11933 },
Sean Nelson35727f72010-01-28 23:55:12 +000011934 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011935 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011936 },
11937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011938 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011939 .vendor = "SyncMOS/MoselVitelic",
11940 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011941 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011942 .manufacture_id = SYNCMOS_MVC_ID,
11943 .model_id = SM_MVC_29C51002T,
11944 .total_size = 256,
11945 .page_size = 512,
11946 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011947 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011948 .probe = probe_jedec,
11949 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11950 .block_erasers =
11951 {
11952 {
11953 .eraseblocks = { {512, 512} },
11954 .block_erase = erase_sector_jedec,
11955 }, {
11956 .eraseblocks = { {256 * 1024, 1} },
11957 .block_erase = erase_chip_block_jedec,
11958 },
11959 },
11960 .write = write_jedec_1,
11961 .read = read_memmapped,
11962 },
11963
11964 {
11965 .vendor = "SyncMOS/MoselVitelic",
11966 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011967 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011968 .manufacture_id = SYNCMOS_MVC_ID,
11969 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011970 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011971 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011972 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011973 .tested = TEST_UNTESTED,
11974 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011975 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011976 .block_erasers =
11977 {
11978 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011979 .eraseblocks = { {1024, 512} },
11980 .block_erase = erase_sector_jedec,
11981 }, {
11982 .eraseblocks = { {512 * 1024, 1} },
11983 .block_erase = erase_chip_block_jedec,
11984 },
11985 },
11986 .write = write_jedec_1,
11987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011988 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011989 },
11990
11991 {
11992 .vendor = "SyncMOS/MoselVitelic",
11993 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011994 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011995 .manufacture_id = SYNCMOS_MVC_ID,
11996 .model_id = SM_MVC_29C51004T,
11997 .total_size = 512,
11998 .page_size = 1024,
11999 .feature_bits = FEATURE_EITHER_RESET,
12000 .tested = TEST_UNTESTED,
12001 .probe = probe_jedec,
12002 .probe_timing = TIMING_ZERO,
12003 .block_erasers =
12004 {
12005 {
12006 .eraseblocks = { {1024, 512} },
12007 .block_erase = erase_sector_jedec,
12008 }, {
12009 .eraseblocks = { {512 * 1024, 1} },
12010 .block_erase = erase_chip_block_jedec,
12011 },
12012 },
12013 .write = write_jedec_1,
12014 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012015 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012016 },
12017
12018 {
12019 .vendor = "SyncMOS/MoselVitelic",
12020 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012021 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012022 .manufacture_id = SYNCMOS_MVC_ID,
12023 .model_id = SM_MVC_29C31004B,
12024 .total_size = 512,
12025 .page_size = 1024,
12026 .feature_bits = FEATURE_EITHER_RESET,
12027 .tested = TEST_UNTESTED,
12028 .probe = probe_jedec,
12029 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12030 .block_erasers =
12031 {
12032 {
12033 .eraseblocks = { {1024, 512} },
12034 .block_erase = erase_sector_jedec,
12035 }, {
12036 .eraseblocks = { {512 * 1024, 1} },
12037 .block_erase = erase_chip_block_jedec,
12038 },
12039 },
12040 .write = write_jedec_1,
12041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012042 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012043 },
12044
12045 {
12046 .vendor = "SyncMOS/MoselVitelic",
12047 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012048 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012049 .manufacture_id = SYNCMOS_MVC_ID,
12050 .model_id = SM_MVC_29C31004T,
12051 .total_size = 512,
12052 .page_size = 1024,
12053 .feature_bits = FEATURE_EITHER_RESET,
12054 .tested = TEST_UNTESTED,
12055 .probe = probe_jedec,
12056 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12057 .block_erasers =
12058 {
12059 {
12060 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012061 .block_erase = erase_sector_jedec,
12062 }, {
12063 .eraseblocks = { {512 * 1024, 1} },
12064 .block_erase = erase_chip_block_jedec,
12065 },
12066 },
Sean Nelson35727f72010-01-28 23:55:12 +000012067 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012069 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012070 },
12071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012072 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012073 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012074 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012075 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012076 .manufacture_id = TI_OLD_ID,
12077 .model_id = TI_TMS29F002RB,
12078 .total_size = 256,
12079 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012080 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012081 .tested = TEST_UNTESTED,
12082 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012083 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012084 .block_erasers =
12085 {
12086 {
12087 .eraseblocks = {
12088 {16 * 1024, 1},
12089 {8 * 1024, 2},
12090 {32 * 1024, 1},
12091 {64 * 1024, 3},
12092 },
12093 .block_erase = erase_sector_jedec,
12094 }, {
12095 .eraseblocks = { {256 * 1024, 1} },
12096 .block_erase = erase_chip_block_jedec,
12097 },
12098 },
Sean Nelson35727f72010-01-28 23:55:12 +000012099 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012101 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012102 },
12103
12104 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012105 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012106 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012107 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012108 .manufacture_id = TI_OLD_ID,
12109 .model_id = TI_TMS29F002RT,
12110 .total_size = 256,
12111 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012112 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012113 .tested = TEST_UNTESTED,
12114 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012115 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012116 .block_erasers =
12117 {
12118 {
12119 .eraseblocks = {
12120 {64 * 1024, 3},
12121 {32 * 1024, 1},
12122 {8 * 1024, 2},
12123 {16 * 1024, 1},
12124 },
12125 .block_erase = erase_sector_jedec,
12126 }, {
12127 .eraseblocks = { {256 * 1024, 1} },
12128 .block_erase = erase_chip_block_jedec,
12129 },
12130 },
Sean Nelson35727f72010-01-28 23:55:12 +000012131 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012133 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012134 },
12135
12136 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012137 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012138 .name = "W25Q80.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_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012142 .total_size = 1024,
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,
David Hendricks22e05322010-12-13 23:54:59 +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, 256} },
12154 .block_erase = spi_block_erase_20,
12155 }, {
12156 .eraseblocks = { {32 * 1024, 32} },
12157 .block_erase = spi_block_erase_52,
12158 }, {
12159 .eraseblocks = { {64 * 1024, 16} },
12160 .block_erase = spi_block_erase_d8,
12161 }, {
12162 .eraseblocks = { {1024 * 1024, 1} },
12163 .block_erase = spi_block_erase_60,
12164 }, {
12165 .eraseblocks = { {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 = "W25Q16.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_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012182 .total_size = 2048,
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,
Stefan Tauner716e0982011-07-25 20:38:52 +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, 512} },
12194 .block_erase = spi_block_erase_20,
12195 }, {
12196 .eraseblocks = { {32 * 1024, 64} },
12197 .block_erase = spi_block_erase_52,
12198 }, {
12199 .eraseblocks = { {64 * 1024, 32} },
12200 .block_erase = spi_block_erase_d8,
12201 }, {
12202 .eraseblocks = { {2 * 1024 * 1024, 1} },
12203 .block_erase = spi_block_erase_60,
12204 }, {
12205 .eraseblocks = { {2 * 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 = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012219 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012220 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012221 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012222 .total_size = 4096,
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,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012228 .probe = probe_spi_rdid,
12229 .probe_timing = TIMING_ZERO,
12230 .block_erasers =
12231 {
12232 {
12233 .eraseblocks = { {4 * 1024, 1024} },
12234 .block_erase = spi_block_erase_20,
12235 }, {
12236 .eraseblocks = { {32 * 1024, 128} },
12237 .block_erase = spi_block_erase_52,
12238 }, {
12239 .eraseblocks = { {64 * 1024, 64} },
12240 .block_erase = spi_block_erase_d8,
12241 }, {
12242 .eraseblocks = { {4 * 1024 * 1024, 1} },
12243 .block_erase = spi_block_erase_60,
12244 }, {
12245 .eraseblocks = { {4 * 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,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012251 .write = spi_chip_write_256,
12252 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012253 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012254 },
12255
12256 {
12257 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012258 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012259 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012260 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012261 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012262 .total_size = 8192,
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,
David Hendricks22e05322010-12-13 23:54:59 +000012267 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012268 .probe = probe_spi_rdid,
12269 .probe_timing = TIMING_ZERO,
12270 .block_erasers =
12271 {
12272 {
12273 .eraseblocks = { {4 * 1024, 2048} },
12274 .block_erase = spi_block_erase_20,
12275 }, {
12276 .eraseblocks = { {32 * 1024, 256} },
12277 .block_erase = spi_block_erase_52,
12278 }, {
12279 .eraseblocks = { {64 * 1024, 128} },
12280 .block_erase = spi_block_erase_d8,
12281 }, {
12282 .eraseblocks = { {8 * 1024 * 1024, 1} },
12283 .block_erase = spi_block_erase_60,
12284 }, {
12285 .eraseblocks = { {8 * 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 */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012290 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012291 .write = spi_chip_write_256,
12292 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012293 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012294 },
12295
12296 {
12297 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012298 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012299 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012300 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012301 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012302 .total_size = 16384,
12303 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012304 /* supports SFDP */
12305 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012306 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012307 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012308 .probe = probe_spi_rdid,
12309 .probe_timing = TIMING_ZERO,
12310 .block_erasers =
12311 {
12312 {
12313 .eraseblocks = { {4 * 1024, 4096} },
12314 .block_erase = spi_block_erase_20,
12315 }, {
12316 .eraseblocks = { {32 * 1024, 512} },
12317 .block_erase = spi_block_erase_52,
12318 }, {
12319 .eraseblocks = { {64 * 1024, 256} },
12320 .block_erase = spi_block_erase_d8,
12321 }, {
12322 .eraseblocks = { {16 * 1024 * 1024, 1} },
12323 .block_erase = spi_block_erase_60,
12324 }, {
12325 .eraseblocks = { {16 * 1024 * 1024, 1} },
12326 .block_erase = spi_block_erase_c7,
12327 }
12328 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012329 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012330 .unlock = spi_disable_blockprotect,
12331 .write = spi_chip_write_256,
12332 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012333 .voltage = {2700, 3600},
12334 },
12335
12336 {
12337 .vendor = "Winbond",
12338 .name = "W25Q20.W",
12339 .bustype = BUS_SPI,
12340 .manufacture_id = WINBOND_NEX_ID,
12341 .model_id = WINBOND_NEX_W25Q20_W,
12342 .total_size = 256,
12343 .page_size = 256,
12344 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12346 .tested = TEST_UNTESTED,
12347 .probe = probe_spi_rdid,
12348 .probe_timing = TIMING_ZERO,
12349 .block_erasers =
12350 {
12351 {
12352 .eraseblocks = { {4 * 1024, 64} },
12353 .block_erase = spi_block_erase_20,
12354 }, {
12355 .eraseblocks = { {32 * 1024, 8} },
12356 .block_erase = spi_block_erase_52,
12357 }, {
12358 .eraseblocks = { {64 * 1024, 4} },
12359 .block_erase = spi_block_erase_d8,
12360 }, {
12361 .eraseblocks = { {256 * 1024, 1} },
12362 .block_erase = spi_block_erase_60,
12363 }, {
12364 .eraseblocks = { {256 * 1024, 1} },
12365 .block_erase = spi_block_erase_c7,
12366 }
12367 },
12368 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12369 .unlock = spi_disable_blockprotect,
12370 .write = spi_chip_write_256,
12371 .read = spi_chip_read,
12372 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12373 },
12374
12375 {
12376 .vendor = "Winbond",
12377 .name = "W25Q40.W",
12378 .bustype = BUS_SPI,
12379 .manufacture_id = WINBOND_NEX_ID,
12380 .model_id = WINBOND_NEX_W25Q40_W,
12381 .total_size = 512,
12382 .page_size = 256,
12383 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12385 .tested = TEST_UNTESTED,
12386 .probe = probe_spi_rdid,
12387 .probe_timing = TIMING_ZERO,
12388 .block_erasers =
12389 {
12390 {
12391 .eraseblocks = { {4 * 1024, 128} },
12392 .block_erase = spi_block_erase_20,
12393 }, {
12394 .eraseblocks = { {32 * 1024, 16} },
12395 .block_erase = spi_block_erase_52,
12396 }, {
12397 .eraseblocks = { {64 * 1024, 8} },
12398 .block_erase = spi_block_erase_d8,
12399 }, {
12400 .eraseblocks = { {512 * 1024, 1} },
12401 .block_erase = spi_block_erase_60,
12402 }, {
12403 .eraseblocks = { {512 * 1024, 1} },
12404 .block_erase = spi_block_erase_c7,
12405 }
12406 },
12407 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12408 .unlock = spi_disable_blockprotect,
12409 .write = spi_chip_write_256,
12410 .read = spi_chip_read,
12411 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12412 },
12413
12414 {
12415 .vendor = "Winbond",
12416 .name = "W25Q80.W",
12417 .bustype = BUS_SPI,
12418 .manufacture_id = WINBOND_NEX_ID,
12419 .model_id = WINBOND_NEX_W25Q80_W,
12420 .total_size = 1024,
12421 .page_size = 256,
12422 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12424 .tested = TEST_UNTESTED,
12425 .probe = probe_spi_rdid,
12426 .probe_timing = TIMING_ZERO,
12427 .block_erasers =
12428 {
12429 {
12430 .eraseblocks = { {4 * 1024, 256} },
12431 .block_erase = spi_block_erase_20,
12432 }, {
12433 .eraseblocks = { {32 * 1024, 32} },
12434 .block_erase = spi_block_erase_52,
12435 }, {
12436 .eraseblocks = { {64 * 1024, 16} },
12437 .block_erase = spi_block_erase_d8,
12438 }, {
12439 .eraseblocks = { {1 * 1024 * 1024, 1} },
12440 .block_erase = spi_block_erase_60,
12441 }, {
12442 .eraseblocks = { {1 * 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 = "W25Q16.W",
12456 .bustype = BUS_SPI,
12457 .manufacture_id = WINBOND_NEX_ID,
12458 .model_id = WINBOND_NEX_W25Q16_W,
12459 .total_size = 2048,
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_UNTESTED,
12465 .probe = probe_spi_rdid,
12466 .probe_timing = TIMING_ZERO,
12467 .block_erasers =
12468 {
12469 {
12470 .eraseblocks = { {4 * 1024, 512} },
12471 .block_erase = spi_block_erase_20,
12472 }, {
12473 .eraseblocks = { {32 * 1024, 64} },
12474 .block_erase = spi_block_erase_52,
12475 }, {
12476 .eraseblocks = { {64 * 1024, 32} },
12477 .block_erase = spi_block_erase_d8,
12478 }, {
12479 .eraseblocks = { {2 * 1024 * 1024, 1} },
12480 .block_erase = spi_block_erase_60,
12481 }, {
12482 .eraseblocks = { {2 * 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 = "W25Q32.W",
12496 .bustype = BUS_SPI,
12497 .manufacture_id = WINBOND_NEX_ID,
12498 .model_id = WINBOND_NEX_W25Q32_W,
12499 .total_size = 4096,
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,
12504 .tested = TEST_OK_PREW,
12505 .probe = probe_spi_rdid,
12506 .probe_timing = TIMING_ZERO,
12507 .block_erasers =
12508 {
12509 {
12510 .eraseblocks = { {4 * 1024, 1024} },
12511 .block_erase = spi_block_erase_20,
12512 }, {
12513 .eraseblocks = { {32 * 1024, 128} },
12514 .block_erase = spi_block_erase_52,
12515 }, {
12516 .eraseblocks = { {64 * 1024, 64} },
12517 .block_erase = spi_block_erase_d8,
12518 }, {
12519 .eraseblocks = { {4 * 1024 * 1024, 1} },
12520 .block_erase = spi_block_erase_60,
12521 }, {
12522 .eraseblocks = { {4 * 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 */
12531 },
12532
12533 {
12534 .vendor = "Winbond",
12535 .name = "W25Q64.W",
12536 .bustype = BUS_SPI,
12537 .manufacture_id = WINBOND_NEX_ID,
12538 .model_id = WINBOND_NEX_W25Q64_W,
12539 .total_size = 8192,
12540 .page_size = 256,
12541 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12542 /* QPI enable 0x38, disable 0xFF */
12543 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012544 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012545 .probe = probe_spi_rdid,
12546 .probe_timing = TIMING_ZERO,
12547 .block_erasers =
12548 {
12549 {
12550 .eraseblocks = { {4 * 1024, 2048} },
12551 .block_erase = spi_block_erase_20,
12552 }, {
12553 .eraseblocks = { {32 * 1024, 256} },
12554 .block_erase = spi_block_erase_52,
12555 }, {
12556 .eraseblocks = { {64 * 1024, 128} },
12557 .block_erase = spi_block_erase_d8,
12558 }, {
12559 .eraseblocks = { {8 * 1024 * 1024, 1} },
12560 .block_erase = spi_block_erase_60,
12561 }, {
12562 .eraseblocks = { {8 * 1024 * 1024, 1} },
12563 .block_erase = spi_block_erase_c7,
12564 }
12565 },
12566 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12567 .unlock = spi_disable_blockprotect,
12568 .write = spi_chip_write_256,
12569 .read = spi_chip_read,
12570 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012571 },
12572
12573 {
12574 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012575 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012576 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012577 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012578 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012579 .total_size = 128,
12580 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012581 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012582 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012583 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012584 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012585 .block_erasers =
12586 {
12587 {
12588 .eraseblocks = { {4 * 1024, 32} },
12589 .block_erase = spi_block_erase_20,
12590 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012591 .eraseblocks = { {64 * 1024, 2} },
12592 .block_erase = spi_block_erase_d8,
12593 }, {
12594 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012595 .block_erase = spi_block_erase_c7,
12596 }
12597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012598 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012599 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012600 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012601 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012602 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012603 },
12604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012605 {
12606 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012607 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012608 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012609 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012610 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012611 .total_size = 256,
12612 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012613 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012614 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012615 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012616 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012617 .block_erasers =
12618 {
12619 {
12620 .eraseblocks = { {4 * 1024, 64} },
12621 .block_erase = spi_block_erase_20,
12622 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012623 .eraseblocks = { {64 * 1024, 4} },
12624 .block_erase = spi_block_erase_d8,
12625 }, {
12626 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012627 .block_erase = spi_block_erase_c7,
12628 }
12629 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012630 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012631 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012632 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012633 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012634 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012635 },
12636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012637 {
12638 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012639 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012641 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012642 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012643 .total_size = 512,
12644 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012645 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012646 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012647 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012648 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012649 .block_erasers =
12650 {
12651 {
12652 .eraseblocks = { {4 * 1024, 128} },
12653 .block_erase = spi_block_erase_20,
12654 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012655 .eraseblocks = { {64 * 1024, 8} },
12656 .block_erase = spi_block_erase_d8,
12657 }, {
12658 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012659 .block_erase = spi_block_erase_c7,
12660 }
12661 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012663 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012664 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012665 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012666 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012667 },
12668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012669 {
12670 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012671 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012672 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012673 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012674 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012675 .total_size = 1024,
12676 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012677 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012678 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012680 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012681 .block_erasers =
12682 {
12683 {
12684 .eraseblocks = { {4 * 1024, 256} },
12685 .block_erase = spi_block_erase_20,
12686 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012687 .eraseblocks = { {64 * 1024, 16} },
12688 .block_erase = spi_block_erase_d8,
12689 }, {
12690 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012691 .block_erase = spi_block_erase_c7,
12692 }
12693 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012694 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012695 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012696 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012697 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012698 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012699 },
12700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012701 {
12702 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012703 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012704 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012705 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012706 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012707 .total_size = 2048,
12708 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012709 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012710 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012711 .probe = probe_spi_rdid,
12712 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012713 .block_erasers =
12714 {
12715 {
12716 .eraseblocks = { {4 * 1024, 512} },
12717 .block_erase = spi_block_erase_20,
12718 }, {
12719 .eraseblocks = { {32 * 1024, 64} },
12720 .block_erase = spi_block_erase_52,
12721 }, {
12722 .eraseblocks = { {64 * 1024, 32} },
12723 .block_erase = spi_block_erase_d8,
12724 }, {
12725 .eraseblocks = { {2 * 1024 * 1024, 1} },
12726 .block_erase = spi_block_erase_60,
12727 }, {
12728 .eraseblocks = { {2 * 1024 * 1024, 1} },
12729 .block_erase = spi_block_erase_c7,
12730 }
12731 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012732 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012733 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012734 .write = spi_chip_write_256,
12735 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012736 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012737 },
12738
12739 {
12740 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012741 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012742 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012743 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012744 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012745 .total_size = 4096,
12746 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012747 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012748 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012749 .probe = probe_spi_rdid,
12750 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012751 .block_erasers =
12752 {
12753 {
12754 .eraseblocks = { {4 * 1024, 1024} },
12755 .block_erase = spi_block_erase_20,
12756 }, {
12757 .eraseblocks = { {32 * 1024, 128} },
12758 .block_erase = spi_block_erase_52,
12759 }, {
12760 .eraseblocks = { {64 * 1024, 64} },
12761 .block_erase = spi_block_erase_d8,
12762 }, {
12763 .eraseblocks = { {4 * 1024 * 1024, 1} },
12764 .block_erase = spi_block_erase_60,
12765 }, {
12766 .eraseblocks = { {4 * 1024 * 1024, 1} },
12767 .block_erase = spi_block_erase_c7,
12768 }
12769 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012770 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012771 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012772 .write = spi_chip_write_256,
12773 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012774 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012775 },
12776
12777 {
12778 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012779 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012780 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012781 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012782 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012783 .total_size = 8192,
12784 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012785 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012786 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012787 .probe = probe_spi_rdid,
12788 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012789 .block_erasers =
12790 {
12791 {
12792 .eraseblocks = { {4 * 1024, 2048} },
12793 .block_erase = spi_block_erase_20,
12794 }, {
12795 .eraseblocks = { {32 * 1024, 256} },
12796 .block_erase = spi_block_erase_52,
12797 }, {
12798 .eraseblocks = { {64 * 1024, 128} },
12799 .block_erase = spi_block_erase_d8,
12800 }, {
12801 .eraseblocks = { {8 * 1024 * 1024, 1} },
12802 .block_erase = spi_block_erase_60,
12803 }, {
12804 .eraseblocks = { {8 * 1024 * 1024, 1} },
12805 .block_erase = spi_block_erase_c7,
12806 }
12807 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012808 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012809 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012810 .write = spi_chip_write_256,
12811 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012812 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012813 },
12814
12815 {
12816 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012817 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012818 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012819 .manufacture_id = WINBOND_ID,
12820 .model_id = WINBOND_W29C010,
12821 .total_size = 128,
12822 .page_size = 128,
12823 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012824 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012825 .probe = probe_w29ee011,
12826 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12827 .block_erasers =
12828 {
12829 {
12830 .eraseblocks = { {128 * 1024, 1} },
12831 .block_erase = erase_chip_block_jedec,
12832 }
12833 },
12834 .write = write_jedec,
12835 .read = read_memmapped,
12836 },
12837
12838 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12839 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012840 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012841 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012842 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012843 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012844 .total_size = 128,
12845 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012846 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012847 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012848 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012849 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012850 .block_erasers =
12851 {
12852 {
12853 .eraseblocks = { {128 * 1024, 1} },
12854 .block_erase = erase_chip_block_jedec,
12855 }
12856 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012857 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012858 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012859 },
12860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012861 {
12862 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012863 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012864 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012865 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012866 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012867 .total_size = 256,
12868 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012869 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012870 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012871 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012872 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012873 .block_erasers =
12874 {
12875 {
12876 .eraseblocks = { {256 * 1024, 1} },
12877 .block_erase = erase_chip_block_jedec,
12878 }
12879 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012880 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012882 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012883 },
12884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012885 {
12886 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012887 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012888 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012889 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012890 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012891 .total_size = 512,
12892 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012893 .feature_bits = FEATURE_LONG_RESET,
12894 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012895 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012896 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012897 .block_erasers =
12898 {
12899 {
12900 .eraseblocks = { {512 * 1024, 1} },
12901 .block_erase = erase_chip_block_jedec,
12902 }
12903 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012904 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012905 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012906 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012907 },
12908
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012909 {
12910 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012911 .name = "W39F010",
12912 .bustype = BUS_PARALLEL,
12913 .manufacture_id = WINBOND_ID,
12914 .model_id = WINBOND_W39F010,
12915 .total_size = 128,
12916 .page_size = 4 * 1024,
12917 .feature_bits = FEATURE_EITHER_RESET,
12918 .tested = TEST_OK_PREW,
12919 .probe = probe_jedec,
12920 .probe_timing = 10,
12921 .block_erasers =
12922 {
12923 {
12924 .eraseblocks = { {4 * 1024, 32} },
12925 .block_erase = erase_block_jedec,
12926 }, {
12927 .eraseblocks = { {128 * 1024, 1} },
12928 .block_erase = erase_chip_block_jedec,
12929 }
12930 },
12931 .printlock = printlock_w39f010,
12932 .write = write_jedec_1,
12933 .read = read_memmapped,
12934 .voltage = {4500, 5500},
12935 },
12936
12937 {
12938 .vendor = "Winbond",
12939 .name = "W39L010",
12940 .bustype = BUS_PARALLEL,
12941 .manufacture_id = WINBOND_ID,
12942 .model_id = WINBOND_W39L010,
12943 .total_size = 128,
12944 .page_size = 4 * 1024,
12945 .feature_bits = FEATURE_EITHER_RESET,
12946 .tested = TEST_UNTESTED,
12947 .probe = probe_jedec,
12948 .probe_timing = 10,
12949 .block_erasers =
12950 {
12951 {
12952 .eraseblocks = { {4 * 1024, 32} },
12953 .block_erase = erase_block_jedec,
12954 }, {
12955 .eraseblocks = { {128 * 1024, 1} },
12956 .block_erase = erase_chip_block_jedec,
12957 }
12958 },
12959 .printlock = printlock_w39l010,
12960 .write = write_jedec_1,
12961 .read = read_memmapped,
12962 .voltage = {3000, 3600},
12963 },
12964
12965 {
12966 .vendor = "Winbond",
12967 .name = "W39L020",
12968 .bustype = BUS_PARALLEL,
12969 .manufacture_id = WINBOND_ID,
12970 .model_id = WINBOND_W39L020,
12971 .total_size = 256,
12972 .page_size = 4 * 1024,
12973 .feature_bits = FEATURE_EITHER_RESET,
12974 .tested = TEST_UNTESTED,
12975 .probe = probe_jedec,
12976 .probe_timing = 10,
12977 .block_erasers =
12978 {
12979 {
12980 .eraseblocks = { {4 * 1024, 64} },
12981 .block_erase = erase_block_jedec,
12982 }, {
12983 .eraseblocks = { {64 * 1024, 4} },
12984 .block_erase = erase_sector_jedec,
12985 }, {
12986 .eraseblocks = { {256 * 1024, 1} },
12987 .block_erase = erase_chip_block_jedec,
12988 }
12989 },
12990 .printlock = printlock_w39l020,
12991 .write = write_jedec_1,
12992 .read = read_memmapped,
12993 .voltage = {3000, 3600},
12994 },
12995
12996 {
12997 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012998 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012999 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000013000 .manufacture_id = WINBOND_ID,
13001 .model_id = WINBOND_W39L040,
13002 .total_size = 512,
13003 .page_size = 64 * 1024,
13004 .feature_bits = FEATURE_EITHER_RESET,
13005 .tested = TEST_OK_PR,
13006 .probe = probe_jedec,
13007 .probe_timing = 10,
13008 .block_erasers =
13009 {
13010 {
13011 .eraseblocks = { {4 * 1024, 128} },
13012 .block_erase = erase_block_jedec,
13013 }, {
13014 .eraseblocks = { {64 * 1024, 8} },
13015 .block_erase = erase_sector_jedec,
13016 }, {
13017 .eraseblocks = { {512 * 1024, 1} },
13018 .block_erase = erase_chip_block_jedec,
13019 }
13020 },
13021 .printlock = printlock_w39l040,
13022 .write = write_jedec_1,
13023 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013024 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000013025 },
13026
13027 {
13028 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013029 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013030 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013031 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013032 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013033 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013034 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013035 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013036 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013037 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000013038 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013039 .block_erasers =
13040 {
13041 {
13042 .eraseblocks = { {64 * 1024, 8} },
13043 .block_erase = erase_sector_jedec,
13044 }, {
13045 .eraseblocks = { {512 * 1024, 1} },
13046 .block_erase = erase_chip_block_jedec,
13047 }
13048 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013049 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000013050 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013051 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013052 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013053 },
13054
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013055 {
13056 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013057 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013058 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013059 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013060 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013061 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013062 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013063 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013064 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013065 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000013066 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013067 .block_erasers =
13068 {
13069 {
13070 .eraseblocks = { {64 * 1024, 8} },
13071 .block_erase = erase_sector_jedec,
13072 }, {
13073 .eraseblocks = { {512 * 1024, 1} },
13074 .block_erase = erase_chip_block_jedec,
13075 }
13076 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013077 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000013078 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013080 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013081 },
13082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013083 {
13084 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013085 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013086 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013087 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013088 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013089 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013090 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013091 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013092 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000013093 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013094 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013095 .block_erasers =
13096 {
13097 {
13098 .eraseblocks = { {64 * 1024, 8} },
13099 .block_erase = erase_sector_jedec,
13100 }, {
13101 .eraseblocks = { {512 * 1024, 1} },
13102 .block_erase = erase_chip_block_jedec,
13103 }
13104 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000013105 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000013106 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013107 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013108 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013109 },
13110
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013111 {
13112 .vendor = "Winbond",
13113 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013114 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013115 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013116 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013117 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013118 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000013119 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013120 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013121 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013122 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013123 .block_erasers =
13124 {
13125 {
13126 .eraseblocks = { {4 * 1024, 128} },
13127 .block_erase = erase_block_jedec,
13128 }, {
13129 .eraseblocks = { {64 * 1024, 8} },
13130 .block_erase = erase_sector_jedec,
13131 }, {
13132 .eraseblocks = { {512 * 1024, 1} },
13133 .block_erase = erase_chip_block_jedec,
13134 }
13135 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013136 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000013137 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000013138 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013139 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013140 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013141 },
13142
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013143 {
13144 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013145 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013146 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013147 .manufacture_id = WINBOND_ID,
13148 .model_id = WINBOND_W39V040B,
13149 .total_size = 512,
13150 .page_size = 64 * 1024,
13151 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013153 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013154 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013155 .block_erasers =
13156 {
13157 {
13158 .eraseblocks = { {64 * 1024, 8} },
13159 .block_erase = erase_sector_jedec,
13160 }, {
13161 .eraseblocks = { {512 * 1024, 1} },
13162 .block_erase = erase_chip_block_jedec,
13163 }
13164 },
13165 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000013166 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013167 .write = write_jedec_1,
13168 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013169 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013170 },
13171
13172 {
13173 .vendor = "Winbond",
13174 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013175 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013176 .manufacture_id = WINBOND_ID,
13177 .model_id = WINBOND_W39V040C,
13178 .total_size = 512,
13179 .page_size = 64 * 1024,
13180 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000013181 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013182 .probe = probe_jedec,
13183 .probe_timing = 10,
13184 .block_erasers =
13185 {
13186 {
13187 .eraseblocks = { {64 * 1024, 8} },
13188 .block_erase = erase_sector_jedec,
13189 }, {
13190 .eraseblocks = { {512 * 1024, 1} },
13191 .block_erase = erase_chip_block_jedec,
13192 }
13193 },
13194 .printlock = printlock_w39v040fc,
13195 .write = write_jedec_1,
13196 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013197 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013198 },
13199
13200 {
13201 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013202 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013203 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013204 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013205 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013206 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013207 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013208 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000013209 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013210 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000013211 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013212 .block_erasers =
13213 {
13214 {
13215 .eraseblocks = { {64 * 1024, 16} },
13216 .block_erase = erase_sector_jedec,
13217 }, {
13218 .eraseblocks = { {1024 * 1024, 1} },
13219 .block_erase = erase_chip_block_jedec,
13220 }
13221 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013222 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000013223 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013225 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013226 },
13227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013228 {
13229 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013230 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013231 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013232 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013233 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013234 .total_size = 256,
13235 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013236 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013238 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013239 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013240 .block_erasers =
13241 {
13242 {
13243 .eraseblocks = {
13244 {128 * 1024, 1},
13245 {96 * 1024, 1},
13246 {8 * 1024, 2},
13247 {16 * 1024, 1},
13248 },
13249 .block_erase = erase_sector_jedec,
13250 }, {
13251 .eraseblocks = { {256 * 1024, 1} },
13252 .block_erase = erase_chip_block_jedec,
13253 }
13254 },
Sean Nelson35727f72010-01-28 23:55:12 +000013255 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013257 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013258 },
13259
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013260 {
13261 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013262 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013263 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013264 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013265 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013266 .total_size = 256,
13267 .page_size = 128,
13268 .feature_bits = FEATURE_EITHER_RESET,
13269 .tested = TEST_OK_PROBE,
13270 .probe = probe_jedec,
13271 .probe_timing = 10,
13272 .block_erasers =
13273 {
13274 {
13275 .eraseblocks = { {256 * 1024, 1} },
13276 .block_erase = erase_chip_block_jedec,
13277 }
13278 },
13279 .write = write_jedec_1,
13280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013281 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013282 },
13283
13284 {
13285 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013286 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013287 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013288 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013289 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013290 .total_size = 256,
13291 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013292 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013293 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013294 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013295 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013296 .block_erasers =
13297 {
13298 {
13299 .eraseblocks = {
13300 {64 * 1024, 3},
13301 {32 * 1024, 1},
13302 {8 * 1024, 2},
13303 {16 * 1024, 1},
13304 },
13305 .block_erase = erase_sector_jedec,
13306 }, {
13307 .eraseblocks = { {256 * 1024, 1} },
13308 .block_erase = erase_chip_block_jedec,
13309 }
13310 },
Sean Nelson35727f72010-01-28 23:55:12 +000013311 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013313 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013314 },
13315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013316 {
13317 .vendor = "Winbond",
13318 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013319 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013320 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013321 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013322 .total_size = 256,
13323 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013324 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013325 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013326 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013327 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013328 .block_erasers =
13329 {
13330 {
13331 .eraseblocks = {
13332 {64 * 1024, 3},
13333 {32 * 1024, 1},
13334 {8 * 1024, 2},
13335 {16 * 1024, 1},
13336 },
13337 .block_erase = erase_sector_jedec,
13338 }, {
13339 .eraseblocks = { {256 * 1024, 1} },
13340 .block_erase = erase_chip_block_jedec,
13341 }
13342 },
Sean Nelson35727f72010-01-28 23:55:12 +000013343 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013344 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013345 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013346 },
13347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013348 {
13349 .vendor = "Winbond",
13350 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013351 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013352 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013353 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013354 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013355 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013356 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013357 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013358 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013359 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013360 .block_erasers =
13361 {
13362 {
13363 .eraseblocks = { {64 * 1024, 16}, },
13364 .block_erase = erase_sector_jedec,
13365 }, {
13366 .eraseblocks = { {1024 * 1024, 1} },
13367 .block_erase = erase_chip_block_jedec,
13368 }
13369 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013370 .printlock = printlock_w39v080fa,
13371 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000013372 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013373 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013374 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013375 },
13376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013377 {
13378 .vendor = "Winbond",
13379 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013380 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013381 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013382 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013383 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013384 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013385 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013386 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013387 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013388 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013389 .block_erasers =
13390 {
13391 {
13392 .eraseblocks = { {64 * 1024, 8}, },
13393 .block_erase = erase_sector_jedec,
13394 }, {
13395 .eraseblocks = { {512 * 1024, 1} },
13396 .block_erase = erase_chip_block_jedec,
13397 }
13398 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013399 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013400 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013401 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013402 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013403 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013404
13405 {
13406 .vendor = "Unknown",
13407 .name = "SFDP-capable chip",
13408 .bustype = BUS_SPI,
13409 .manufacture_id = GENERIC_MANUF_ID,
13410 .model_id = SFDP_DEVICE_ID,
13411 /* We present our own "report this" text hence we do not
13412 * want the default "This flash part has status UNTESTED..."
13413 * text to be printed. */
13414 .tested = TEST_OK_PREW,
13415 .probe = probe_spi_sfdp,
13416 .unlock = spi_disable_blockprotect, /* is this safe? */
13417 .read = spi_chip_read,
13418 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013419 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013420 /* Everything below will be set by the probing function. */
13421 .write = NULL,
13422 .total_size = 0,
13423 .page_size = 0,
13424 .feature_bits = 0,
13425 .block_erasers = {},
13426 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013428 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013429 .vendor = "Programmer",
13430 .name = "Opaque flash chip",
13431 .bustype = BUS_PROG,
13432 .manufacture_id = PROGMANUF_ID,
13433 .model_id = PROGDEV_ID,
13434 .total_size = 0,
13435 .page_size = 256,
13436 /* probe is assumed to work, rest will be filled in by probe */
13437 .tested = TEST_OK_PROBE,
13438 .probe = probe_opaque,
13439 /* eraseblock sizes will be set by the probing function */
13440 .block_erasers =
13441 {
13442 {
13443 .block_erase = erase_opaque,
13444 }
13445 },
13446 .write = write_opaque,
13447 .read = read_opaque,
13448 },
13449
13450 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013451 .vendor = "AMIC",
13452 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013453 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013454 .manufacture_id = AMIC_ID,
13455 .model_id = GENERIC_DEVICE_ID,
13456 .total_size = 0,
13457 .page_size = 256,
13458 .tested = TEST_BAD_PREW,
13459 .probe = probe_spi_rdid4,
13460 .probe_timing = TIMING_ZERO,
13461 .write = NULL,
13462 .read = NULL,
13463 },
13464
13465 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013466 .vendor = "Atmel",
13467 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013468 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013469 .manufacture_id = ATMEL_ID,
13470 .model_id = GENERIC_DEVICE_ID,
13471 .total_size = 0,
13472 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013473 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013474 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013475 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013476 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013477 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013478 },
13479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013480 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013481 .vendor = "Eon",
13482 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013483 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013484 .manufacture_id = EON_ID_NOPREFIX,
13485 .model_id = GENERIC_DEVICE_ID,
13486 .total_size = 0,
13487 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013488 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013490 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013491 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013492 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013493 },
13494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013495 {
13496 .vendor = "Macronix",
13497 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013498 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013499 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013500 .model_id = GENERIC_DEVICE_ID,
13501 .total_size = 0,
13502 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013503 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013504 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013505 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013506 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013507 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013508 },
13509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013510 {
13511 .vendor = "PMC",
13512 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013513 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013514 .manufacture_id = PMC_ID,
13515 .model_id = GENERIC_DEVICE_ID,
13516 .total_size = 0,
13517 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013518 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013519 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013520 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013521 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013522 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013523 },
13524
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013525 {
13526 .vendor = "SST",
13527 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013528 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013529 .manufacture_id = SST_ID,
13530 .model_id = GENERIC_DEVICE_ID,
13531 .total_size = 0,
13532 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013533 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013534 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013535 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013536 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013537 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013538 },
13539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013540 {
13541 .vendor = "ST",
13542 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013543 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013544 .manufacture_id = ST_ID,
13545 .model_id = GENERIC_DEVICE_ID,
13546 .total_size = 0,
13547 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013548 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013549 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013550 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013551 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013552 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013553 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013554
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013555 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013556 .vendor = "Sanyo",
13557 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013558 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013559 .manufacture_id = SANYO_ID,
13560 .model_id = GENERIC_DEVICE_ID,
13561 .total_size = 0,
13562 .page_size = 256,
13563 .tested = TEST_BAD_PREW,
13564 .probe = probe_spi_rdid,
13565 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013566 .write = NULL,
13567 .read = NULL,
13568 },
13569
13570 {
Stefan Taunereb582572012-09-21 12:52:50 +000013571 .vendor = "Winbond",
13572 .name = "unknown Winbond (ex Nexcom) SPI chip",
13573 .bustype = BUS_SPI,
13574 .manufacture_id = WINBOND_NEX_ID,
13575 .model_id = GENERIC_DEVICE_ID,
13576 .total_size = 0,
13577 .page_size = 256,
13578 .tested = TEST_BAD_PREW,
13579 .probe = probe_spi_rdid,
13580 .probe_timing = TIMING_ZERO,
13581 .write = NULL,
13582 .read = NULL,
13583 },
13584
13585 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013586 .vendor = "Generic",
13587 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013588 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013589 .manufacture_id = GENERIC_MANUF_ID,
13590 .model_id = GENERIC_DEVICE_ID,
13591 .total_size = 0,
13592 .page_size = 256,
13593 .tested = TEST_BAD_PREW,
13594 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013595 .write = NULL,
13596 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013597
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013598 {
13599 .vendor = "Generic",
13600 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013601 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013602 .manufacture_id = GENERIC_MANUF_ID,
13603 .model_id = GENERIC_DEVICE_ID,
13604 .total_size = 0,
13605 .page_size = 256,
13606 .tested = TEST_BAD_PREW,
13607 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013608 .write = NULL,
13609 },
13610
Stefan Tauner96658be2014-05-26 22:05:31 +000013611 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013612};
Stefan Tauner96658be2014-05-26 22:05:31 +000013613
13614const unsigned int flashchips_size = ARRAY_SIZE(flashchips);