blob: 8289788a30c35f82e7e4fa2b70f74238f6c3001f [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000567 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000601 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000636 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000671 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000706 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000741 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000781 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000816 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000851 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000889 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000927 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000959 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000991 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001023 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001055 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001087 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001119 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enhance (sic!) */
1279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
1398 .unlock = unlock_49fl00x,
1399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
1712 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001716 .total_size = 2048,
1717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 512} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 64} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 32} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {2 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {2 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001751 .name = "AT25F512",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25F512,
1755 .total_size = 64,
1756 .page_size = 256,
1757 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001758 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001759 .probe = probe_spi_at25f,
1760 .probe_timing = TIMING_ZERO,
1761 .block_erasers =
1762 {
1763 {
1764 .eraseblocks = { {32 * 1024, 2} },
1765 .block_erase = spi_block_erase_52,
1766 }, {
1767 .eraseblocks = { {64 * 1024, 1} },
1768 .block_erase = spi_block_erase_62,
1769 }
1770 },
1771 .printlock = spi_prettyprint_status_register_at25f,
1772 .unlock = spi_disable_blockprotect_at25f,
1773 .write = spi_chip_write_256,
1774 .read = spi_chip_read,
1775 .voltage = {2700, 3600},
1776 },
1777
1778 {
1779 .vendor = "Atmel",
1780 .name = "AT25F512A",
1781 .bustype = BUS_SPI,
1782 .manufacture_id = ATMEL_ID,
1783 .model_id = ATMEL_AT25F512A,
1784 .total_size = 64,
1785 .page_size = 128,
1786 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001787 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001788 .probe = probe_spi_at25f,
1789 .probe_timing = TIMING_ZERO,
1790 .block_erasers =
1791 {
1792 {
1793 .eraseblocks = { {32 * 1024, 2} },
1794 .block_erase = spi_block_erase_52,
1795 }, {
1796 .eraseblocks = { {64 * 1024, 1} },
1797 .block_erase = spi_block_erase_62,
1798 }
1799 },
1800 .printlock = spi_prettyprint_status_register_at25f512a,
1801 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1802 .unlock = spi_disable_blockprotect_at25f512a,
1803 .write = spi_chip_write_256,
1804 .read = spi_chip_read,
1805 .voltage = {2700, 3600},
1806 },
1807
1808 {
1809 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 64,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001818 .tested = TEST_UNTESTED,
1819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 16} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 2} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {32 * 1024, 2} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {64 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {64 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001838 }, {
1839 .eraseblocks = { {64 * 1024, 1} },
1840 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001841 }
1842 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001843 .printlock = spi_prettyprint_status_register_at25f512b,
1844 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001845 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001848 },
1849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001850 {
1851 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001852 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1853 * All other properties seem to be the same.*/
1854 .name = "AT25F1024(A)",
1855 .bustype = BUS_SPI,
1856 .manufacture_id = ATMEL_ID,
1857 .model_id = ATMEL_AT25F1024,
1858 .total_size = 128,
1859 .page_size = 256,
1860 .feature_bits = FEATURE_WRSR_WREN,
1861 .tested = TEST_OK_PREW,
1862 .probe = probe_spi_at25f,
1863 .probe_timing = TIMING_ZERO,
1864 .block_erasers =
1865 {
1866 {
1867 .eraseblocks = { {32 * 1024, 4} },
1868 .block_erase = spi_block_erase_52,
1869 }, {
1870 .eraseblocks = { {128 * 1024, 1} },
1871 .block_erase = spi_block_erase_62,
1872 }
1873 },
1874 .printlock = spi_prettyprint_status_register_at25f,
1875 .unlock = spi_disable_blockprotect_at25f,
1876 .write = spi_chip_write_256,
1877 .read = spi_chip_read,
1878 .voltage = {2700, 3600},
1879 },
1880
1881 {
1882 .vendor = "Atmel",
1883 .name = "AT25F2048",
1884 .bustype = BUS_SPI,
1885 .manufacture_id = ATMEL_ID,
1886 .model_id = ATMEL_AT25F2048,
1887 .total_size = 256,
1888 .page_size = 256,
1889 .feature_bits = FEATURE_WRSR_WREN,
1890 .tested = TEST_UNTESTED,
1891 .probe = probe_spi_at25f,
1892 .probe_timing = TIMING_ZERO,
1893 .block_erasers =
1894 {
1895 {
1896 .eraseblocks = { {64 * 1024, 4} },
1897 .block_erase = spi_block_erase_52,
1898 }, {
1899 .eraseblocks = { {256 * 1024, 1} },
1900 .block_erase = spi_block_erase_62,
1901 }
1902 },
1903 .printlock = spi_prettyprint_status_register_at25f,
1904 .unlock = spi_disable_blockprotect_at25f,
1905 .write = spi_chip_write_256,
1906 .read = spi_chip_read,
1907 .voltage = {2700, 3600},
1908 },
1909
1910 {
1911 .vendor = "Atmel",
1912 .name = "AT25F4096",
1913 .bustype = BUS_SPI,
1914 .manufacture_id = ATMEL_ID,
1915 .model_id = ATMEL_AT25F4096,
1916 .total_size = 512,
1917 .page_size = 256,
1918 .feature_bits = FEATURE_WRSR_WREN,
1919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_at25f,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {64 * 1024, 8} },
1926 .block_erase = spi_block_erase_52,
1927 }, {
1928 .eraseblocks = { {512 * 1024, 1} },
1929 .block_erase = spi_block_erase_62,
1930 }
1931 },
1932 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001933 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1934 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001935 .write = spi_chip_write_256,
1936 .read = spi_chip_read,
1937 .voltage = {2700, 3600},
1938 },
1939
1940 {
1941 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001945 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001946 .total_size = 128,
1947 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001948 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001949 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001951 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001952 .block_erasers =
1953 {
1954 {
1955 .eraseblocks = { {4 * 1024, 32} },
1956 .block_erase = spi_block_erase_20,
1957 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001958 .eraseblocks = { {4 * 1024, 32} },
1959 .block_erase = spi_block_erase_d7,
1960 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001961 .eraseblocks = { {32 * 1024, 4} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {32 * 1024, 4} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {128 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {128 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001974 .printlock = spi_prettyprint_status_register_at25fs010,
1975 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001976 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001978 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001979 },
1980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001981 {
1982 .vendor = "Atmel",
1983 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001984 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001985 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001986 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001987 .total_size = 512,
1988 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001989 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001990 .tested = TEST_UNTESTED,
1991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001992 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001993 .block_erasers =
1994 {
1995 {
1996 .eraseblocks = { {4 * 1024, 128} },
1997 .block_erase = spi_block_erase_20,
1998 }, {
1999 .eraseblocks = { {64 * 1024, 8} },
2000 .block_erase = spi_block_erase_52,
2001 }, {
2002 .eraseblocks = { {64 * 1024, 8} },
2003 .block_erase = spi_block_erase_d8,
2004 }, {
2005 .eraseblocks = { {512 * 1024, 1} },
2006 .block_erase = spi_block_erase_60,
2007 }, {
2008 .eraseblocks = { {512 * 1024, 1} },
2009 .block_erase = spi_block_erase_c7,
2010 }
2011 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002012 .printlock = spi_prettyprint_status_register_at25fs040,
2013 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002014 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002016 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002017 },
2018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 {
2020 .vendor = "Atmel",
2021 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002024 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002025 .total_size = 512,
2026 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002030 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002031 .block_erasers =
2032 {
2033 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002034 .eraseblocks = { {256, 2048} },
2035 .block_erase = spi_block_erase_81,
2036 }, {
2037 .eraseblocks = { {2 * 1024, 256} },
2038 .block_erase = spi_block_erase_50,
2039 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002040 .eraseblocks = { {4 * 1024, 128} },
2041 .block_erase = spi_block_erase_20,
2042 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002043 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002044 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002045 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002046 .write = spi_chip_write_1,
2047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002048 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 1024,
2058 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002059 .feature_bits = FEATURE_WRSR_WREN,
2060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002062 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {4 * 1024, 256} },
2067 .block_erase = spi_block_erase_20,
2068 }, {
2069 .eraseblocks = { {32 * 1024, 32} },
2070 .block_erase = spi_block_erase_52,
2071 }, {
2072 .eraseblocks = { {64 * 1024, 16} },
2073 .block_erase = spi_block_erase_d8,
2074 }, {
2075 .eraseblocks = { {1024 * 1024, 1} },
2076 .block_erase = spi_block_erase_60,
2077 }, {
2078 .eraseblocks = { {1024 * 1024, 1} },
2079 .block_erase = spi_block_erase_c7,
2080 }
2081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002082 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002083 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002084 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002087 },
2088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002095 .total_size = 2048,
2096 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002097 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002098 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002100 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002101 .block_erasers =
2102 {
2103 {
2104 .eraseblocks = { {4 * 1024, 512} },
2105 .block_erase = spi_block_erase_20,
2106 }, {
2107 .eraseblocks = { {32 * 1024, 64} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 32} },
2111 .block_erase = spi_block_erase_d8,
2112 }, {
2113 .eraseblocks = { {2 * 1024 * 1024, 1} },
2114 .block_erase = spi_block_erase_60,
2115 }, {
2116 .eraseblocks = { {2 * 1024 * 1024, 1} },
2117 .block_erase = spi_block_erase_c7,
2118 }
2119 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002120 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002121 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002122 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002124 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002125 },
2126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002127 {
2128 .vendor = "Atmel",
2129 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002130 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002132 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .total_size = 2048,
2134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002135 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002136 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002138 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002139 .block_erasers =
2140 {
2141 {
2142 .eraseblocks = { {4 * 1024, 512} },
2143 .block_erase = spi_block_erase_20,
2144 }, {
2145 .eraseblocks = { {32 * 1024, 64} },
2146 .block_erase = spi_block_erase_52,
2147 }, {
2148 .eraseblocks = { {64 * 1024, 32} },
2149 .block_erase = spi_block_erase_d8,
2150 }, {
2151 .eraseblocks = { {2 * 1024 * 1024, 1} },
2152 .block_erase = spi_block_erase_60,
2153 }, {
2154 .eraseblocks = { {2 * 1024 * 1024, 1} },
2155 .block_erase = spi_block_erase_c7,
2156 }
2157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002158 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002159 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002160 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002163 },
2164
2165 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002166 /*{
2167 .vendor = "Atmel",
2168 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002169 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002170 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002171 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .total_size = 4096,
2173 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002174 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 .tested = TEST_UNTESTED,
2176 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002177 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002178 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002179 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .read = spi_chip_read,
2182 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 {
2185 .vendor = "Atmel",
2186 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002189 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .total_size = 512,
2191 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002192 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002193 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002195 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002196 .block_erasers =
2197 {
2198 {
2199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }, {
2202 .eraseblocks = { {32 * 1024, 16} },
2203 .block_erase = spi_block_erase_52,
2204 }, {
2205 .eraseblocks = { {64 * 1024, 8} },
2206 .block_erase = spi_block_erase_d8,
2207 }, {
2208 .eraseblocks = { {512 * 1024, 1} },
2209 .block_erase = spi_block_erase_60,
2210 }, {
2211 .eraseblocks = { {512 * 1024, 1} },
2212 .block_erase = spi_block_erase_c7,
2213 }
2214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .write = NULL /* Incompatible Page write */,
2217 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002218 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002219 },
2220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 {
2222 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002223 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002224 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002225 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002226 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002227 .total_size = 64,
2228 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002229 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002230 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002231 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002232 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002233 .block_erasers =
2234 {
2235 {
2236 .eraseblocks = { {64 * 1024, 1} },
2237 .block_erase = erase_chip_block_jedec,
2238 }
2239 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002240 .write = write_jedec,
2241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002242 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002243 },
2244
2245 {
2246 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002247 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002248 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002249 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002250 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002251 .total_size = 128,
2252 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002253 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002254 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002255 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002256 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002257 .block_erasers =
2258 {
2259 {
2260 .eraseblocks = { {128 * 1024, 1} },
2261 .block_erase = erase_chip_block_jedec,
2262 }
2263 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002264 .write = write_jedec, /* FIXME */
2265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002267 },
2268
2269 {
2270 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002271 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .total_size = 256,
2276 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002277 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002278 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002280 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002281 .block_erasers =
2282 {
2283 {
2284 .eraseblocks = { {256 * 1024, 1} },
2285 .block_erase = erase_chip_block_jedec,
2286 }
2287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002290 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002291 },
2292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 {
2294 .vendor = "Atmel",
2295 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002298 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .total_size = 512,
2300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002301 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 .tested = TEST_UNTESTED,
2303 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002304 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002305 .block_erasers =
2306 {
2307 {
2308 .eraseblocks = { {512 * 1024, 1} },
2309 .block_erase = erase_chip_block_jedec,
2310 }
2311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002315 },
2316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002317 {
2318 .vendor = "Atmel",
2319 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002320 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002322 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002323 .total_size = 16896 /* No power of two sizes */,
2324 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002325 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002326 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2327 .feature_bits = FEATURE_OTP,
2328 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002330 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002331 .block_erasers =
2332 {
2333 {
2334 .eraseblocks = {
2335 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2336 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2337 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2338 },
2339 .block_erase = spi_erase_at45cs_sector,
2340 }
2341 },
2342 .printlock = spi_prettyprint_status_register_plain,
2343 .gran = write_gran_1056bytes,
2344 .write = spi_write_at45db,
2345 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002346 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002347 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 {
2350 .vendor = "Atmel",
2351 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002352 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002354 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002355 .total_size = 128 /* or 132, determined from status register */,
2356 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002357 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002358 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2359 .feature_bits = FEATURE_OTP,
2360 .tested = TEST_UNTESTED,
2361 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002362 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002363 .block_erasers =
2364 {
2365 {
2366 .eraseblocks = { {256, 512} },
2367 .block_erase = spi_erase_at45db_page,
2368 }, {
2369 .eraseblocks = { {8 * 256, 512/8} },
2370 .block_erase = spi_erase_at45db_block,
2371 }, {
2372 .eraseblocks = {
2373 {8 * 256, 1},
2374 {120 * 256, 1},
2375 {128 * 256, 3},
2376 },
2377 .block_erase = spi_erase_at45db_sector
2378 }, {
2379 .eraseblocks = { {128 * 1024, 1} },
2380 .block_erase = spi_erase_at45db_chip,
2381 }
2382 },
2383 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2384 .printlock = spi_prettyprint_status_register_at45db,
2385 /* granularity will be set by the probing function. */
2386 .write = spi_write_at45db,
2387 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002388 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002389 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002391 {
2392 .vendor = "Atmel",
2393 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002396 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002397 .total_size = 256 /* or 264, determined from status register */,
2398 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002399 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002400 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2401 .feature_bits = FEATURE_OTP,
2402 .tested = TEST_UNTESTED,
2403 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002404 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002405 .block_erasers =
2406 {
2407 {
2408 .eraseblocks = { {256, 1024} },
2409 .block_erase = spi_erase_at45db_page,
2410 }, {
2411 .eraseblocks = { {8 * 256, 1024/8} },
2412 .block_erase = spi_erase_at45db_block,
2413 }, {
2414 .eraseblocks = {
2415 {8 * 256, 1},
2416 {120 * 256, 1},
2417 {128 * 256, 7},
2418 },
2419 .block_erase = spi_erase_at45db_sector
2420 }, {
2421 .eraseblocks = { {256 * 1024, 1} },
2422 .block_erase = spi_erase_at45db_chip,
2423 }
2424 },
2425 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2426 .printlock = spi_prettyprint_status_register_at45db,
2427 /* granularity will be set by the probing function. */
2428 .write = spi_write_at45db,
2429 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002430 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002431 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002433 {
2434 .vendor = "Atmel",
2435 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002436 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002437 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002438 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002439 .total_size = 512 /* or 528, determined from status register */,
2440 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002441 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002442 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2443 .feature_bits = FEATURE_OTP,
2444 .tested = TEST_OK_PREW,
2445 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002446 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002447 .block_erasers =
2448 {
2449 {
2450 .eraseblocks = { {256, 2048} },
2451 .block_erase = spi_erase_at45db_page,
2452 }, {
2453 .eraseblocks = { {8 * 256, 2048/8} },
2454 .block_erase = spi_erase_at45db_block,
2455 }, {
2456 .eraseblocks = {
2457 {8 * 256, 1},
2458 {248 * 256, 1},
2459 {256 * 256, 7},
2460 },
2461 .block_erase = spi_erase_at45db_sector
2462 }, {
2463 .eraseblocks = { {512 * 1024, 1} },
2464 .block_erase = spi_erase_at45db_chip,
2465 }
2466 },
2467 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2468 .printlock = spi_prettyprint_status_register_at45db,
2469 /* granularity will be set by the probing function. */
2470 .write = spi_write_at45db,
2471 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2472 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002473 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 {
2476 .vendor = "Atmel",
2477 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002478 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002480 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .total_size = 1024 /* or 1056, determined from status register */,
2482 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002483 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002484 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2485 .feature_bits = FEATURE_OTP,
2486 .tested = TEST_UNTESTED,
2487 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002488 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002489 .block_erasers =
2490 {
2491 {
2492 .eraseblocks = { {256, 4096} },
2493 .block_erase = spi_erase_at45db_page,
2494 }, {
2495 .eraseblocks = { {8 * 256, 4096/8} },
2496 .block_erase = spi_erase_at45db_block,
2497 }, {
2498 .eraseblocks = {
2499 {8 * 256, 1},
2500 {248 * 256, 1},
2501 {256 * 256, 15},
2502 },
2503 .block_erase = spi_erase_at45db_sector
2504 }, {
2505 .eraseblocks = { {1024 * 1024, 1} },
2506 .block_erase = spi_erase_at45db_chip,
2507 }
2508 },
2509 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2510 .printlock = spi_prettyprint_status_register_at45db,
2511 /* granularity will be set by the probing function. */
2512 .write = spi_write_at45db,
2513 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002514 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002515 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002523 .total_size = 2048 /* or 2112, determined from status register */,
2524 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002526 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2527 .feature_bits = FEATURE_OTP,
2528 .tested = TEST_OK_PREW,
2529 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002530 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002531 .block_erasers =
2532 {
2533 {
2534 .eraseblocks = { {512, 4096} },
2535 .block_erase = spi_erase_at45db_page,
2536 }, {
2537 .eraseblocks = { {8 * 512, 4096/8} },
2538 .block_erase = spi_erase_at45db_block,
2539 }, {
2540 .eraseblocks = {
2541 {8 * 512, 1},
2542 {248 * 512, 1},
2543 {256 * 512, 15},
2544 },
2545 .block_erase = spi_erase_at45db_sector
2546 }, {
2547 .eraseblocks = { {2048 * 1024, 1} },
2548 .block_erase = spi_erase_at45db_chip,
2549 }
2550 },
2551 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2552 .printlock = spi_prettyprint_status_register_at45db,
2553 /* granularity will be set by the probing function. */
2554 .write = spi_write_at45db,
2555 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002556 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002557 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 {
2560 .vendor = "Atmel",
2561 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002563 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002564 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002565 .total_size = 4224 /* No power of two sizes */,
2566 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002567 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002568 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2569 .feature_bits = FEATURE_OTP,
2570 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002572 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002573 .block_erasers =
2574 {
2575 {
2576 .eraseblocks = { {528, 8192} },
2577 .block_erase = spi_erase_at45db_page,
2578 }, {
2579 .eraseblocks = { {8 * 528, 8192/8} },
2580 .block_erase = spi_erase_at45db_block,
2581 }, /* Although the datasheets describes sectors (which can be write protected)
2582 * there seems to be no erase functions for them.
2583 {
2584 .eraseblocks = {
2585 {8 * 528, 1},
2586 {120 * 528, 1},
2587 {128 * 528, 63},
2588 },
2589 .block_erase = spi_erase_at45db_sector
2590 }, */ {
2591 .eraseblocks = { {4224 * 1024, 1} },
2592 .block_erase = spi_erase_at45db_chip,
2593 }
2594 },
2595 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2596 .gran = write_gran_528bytes,
2597 .write = spi_write_at45db,
2598 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002600 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
2604 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002608 .total_size = 4096 /* or 4224, determined from status register */,
2609 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002610 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002611 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002612 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002613 .tested = TEST_UNTESTED,
2614 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002615 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002616 .block_erasers =
2617 {
2618 {
2619 .eraseblocks = { {512, 8192} },
2620 .block_erase = spi_erase_at45db_page,
2621 }, {
2622 .eraseblocks = { {8 * 512, 8192/8} },
2623 .block_erase = spi_erase_at45db_block,
2624 }, {
2625 .eraseblocks = {
2626 {8 * 512, 1},
2627 {120 * 512, 1},
2628 {128 * 512, 63},
2629 },
2630 .block_erase = spi_erase_at45db_sector
2631 }, {
2632 .eraseblocks = { {4096 * 1024, 1} },
2633 .block_erase = spi_erase_at45db_chip,
2634 }
2635 },
2636 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2637 .printlock = spi_prettyprint_status_register_at45db,
2638 /* granularity will be set by the probing function. */
2639 .write = spi_write_at45db,
2640 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2641 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2642 },
2643
2644 {
2645 .vendor = "Atmel",
2646 .name = "AT45DB321E",
2647 .bustype = BUS_SPI,
2648 .manufacture_id = ATMEL_ID,
2649 .model_id = ATMEL_AT45DB321C,
2650 .total_size = 4096 /* or 4224, determined from status register */,
2651 .page_size = 512 /* or 528, determined from status register */,
2652 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2653 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2654 .feature_bits = FEATURE_OTP,
2655 .tested = TEST_UNTESTED,
2656 .probe = probe_spi_at45db,
2657 .probe_timing = TIMING_ZERO,
2658 .block_erasers =
2659 {
2660 {
2661 .eraseblocks = { {512, 8192} },
2662 .block_erase = spi_erase_at45db_page,
2663 }, {
2664 .eraseblocks = { {8 * 512, 8192/8} },
2665 .block_erase = spi_erase_at45db_block,
2666 }, {
2667 .eraseblocks = {
2668 {8 * 512, 1},
2669 {120 * 512, 1},
2670 {128 * 512, 63},
2671 },
2672 .block_erase = spi_erase_at45db_sector
2673 }, {
2674 .eraseblocks = { {4096 * 1024, 1} },
2675 .block_erase = spi_erase_at45db_chip,
2676 }
2677 },
2678 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2679 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2680 /* granularity will be set by the probing function. */
2681 .write = spi_write_at45db,
2682 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2683 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002684 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002686 {
2687 .vendor = "Atmel",
2688 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002689 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002691 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002692 .total_size = 8192 /* or 8448, determined from status register */,
2693 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002694 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002695 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2696 .feature_bits = FEATURE_OTP,
2697 .tested = TEST_UNTESTED,
2698 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002699 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002700 .block_erasers =
2701 {
2702 {
2703 .eraseblocks = { {1024, 8192} },
2704 .block_erase = spi_erase_at45db_page,
2705 }, {
2706 .eraseblocks = { {8 * 1024, 8192/8} },
2707 .block_erase = spi_erase_at45db_block,
2708 }, {
2709 .eraseblocks = {
2710 {8 * 1024, 1},
2711 {248 * 1024, 1},
2712 {256 * 1024, 31},
2713 },
2714 .block_erase = spi_erase_at45db_sector
2715 }, {
2716 .eraseblocks = { {8192 * 1024, 1} },
2717 .block_erase = spi_erase_at45db_chip,
2718 }
2719 },
2720 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2721 .printlock = spi_prettyprint_status_register_at45db,
2722 /* granularity will be set by the probing function. */
2723 .write = spi_write_at45db,
2724 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002725 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002726 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002728 {
2729 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002730 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002731 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002732 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002733 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002734 .total_size = 64,
2735 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002736 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002737 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002740 .block_erasers =
2741 {
2742 {
2743 .eraseblocks = { {64 * 1024, 1} },
2744 .block_erase = erase_chip_block_jedec,
2745 }
2746 },
Sean Nelson35727f72010-01-28 23:55:12 +00002747 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002749 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002750 },
2751
2752 {
2753 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002754 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002755 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002756 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002757 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002758 .total_size = 256,
2759 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002760 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002761 .tested = TEST_UNTESTED,
2762 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002763 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002764 .block_erasers =
2765 {
2766 {
2767 .eraseblocks = {
2768 {16 * 1024, 1},
2769 {8 * 1024, 2},
2770 {96 * 1024, 1},
2771 {128 * 1024, 1},
2772 },
2773 .block_erase = erase_sector_jedec,
2774 }, {
2775 .eraseblocks = { {256 * 1024, 1} },
2776 .block_erase = erase_chip_block_jedec,
2777 }
2778 },
Sean Nelson35727f72010-01-28 23:55:12 +00002779 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002781 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002782 },
2783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002784 {
2785 .vendor = "Atmel",
2786 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002787 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002788 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002789 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002790 .total_size = 256,
2791 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002792 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002793 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002794 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002795 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002796 .block_erasers =
2797 {
2798 {
2799 .eraseblocks = {
2800 {128 * 1024, 1},
2801 {96 * 1024, 1},
2802 {8 * 1024, 2},
2803 {16 * 1024, 1},
2804 },
2805 .block_erase = erase_sector_jedec,
2806 }, {
2807 .eraseblocks = { {256 * 1024, 1} },
2808 .block_erase = erase_chip_block_jedec,
2809 }
2810 },
Sean Nelson35727f72010-01-28 23:55:12 +00002811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002812 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002813 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002814 },
2815
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002816 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002817 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002818 .name = "AT49(H)F010",
2819 .bustype = BUS_PARALLEL,
2820 .manufacture_id = ATMEL_ID,
2821 .model_id = ATMEL_AT49F010,
2822 .total_size = 128,
2823 .page_size = 0, /* unused */
2824 .feature_bits = FEATURE_EITHER_RESET,
2825 .tested = TEST_OK_PREW,
2826 .probe = probe_jedec,
2827 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = { {128 * 1024, 1} },
2832 .block_erase = erase_chip_block_jedec,
2833 }
2834 },
2835 .printlock = printlock_at49f,
2836 .write = write_jedec_1,
2837 .read = read_memmapped,
2838 .voltage = {4500, 5500},
2839 },
2840
2841 {
2842 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002843 .name = "AT49F020",
2844 .bustype = BUS_PARALLEL,
2845 .manufacture_id = ATMEL_ID,
2846 .model_id = ATMEL_AT49F020,
2847 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002848 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002849 .feature_bits = FEATURE_EITHER_RESET,
2850 .tested = TEST_OK_PRE,
2851 .probe = probe_jedec,
2852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2853 .block_erasers =
2854 {
2855 {
2856 .eraseblocks = { {256 * 1024, 1} },
2857 .block_erase = erase_chip_block_jedec,
2858 }
2859 /* Chip features an optional permanent write protection
2860 * of the first 8 kB. The erase function is the same as
2861 * above, but 00000H to 01FFFH will not be erased.
2862 * FIXME: add another eraser when partial erasers are
2863 * supported.
2864 */
2865 },
2866 .printlock = printlock_at49f,
2867 .write = write_jedec_1,
2868 .read = read_memmapped,
2869 .voltage = {4500, 5500},
2870 },
2871
2872 {
2873 .vendor = "Atmel",
2874 .name = "AT49F040",
2875 .bustype = BUS_PARALLEL,
2876 .manufacture_id = ATMEL_ID,
2877 .model_id = ATMEL_AT49F040,
2878 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002879 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002880 .feature_bits = FEATURE_EITHER_RESET,
2881 .tested = TEST_UNTESTED,
2882 .probe = probe_jedec,
2883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2884 .block_erasers =
2885 {
2886 {
2887 .eraseblocks = { {512 * 1024, 1} },
2888 .block_erase = erase_chip_block_jedec,
2889 }
2890 /* Chip features an optional permanent write protection
2891 * of the first 16 kB. The erase function is the same as
2892 * above, but 00000H to 03FFFH will not be erased.
2893 * FIXME: add another eraser when partial erasers are
2894 * supported.
2895 */
2896 },
2897 .printlock = printlock_at49f,
2898 .write = write_jedec_1,
2899 .read = read_memmapped,
2900 .voltage = {4500, 5500},
2901 },
2902
2903 {
2904 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002905 .name = "AT49F080",
2906 .bustype = BUS_PARALLEL,
2907 .manufacture_id = ATMEL_ID,
2908 .model_id = ATMEL_AT49F080,
2909 .total_size = 1024,
2910 .page_size = 0, /* unused */
2911 .feature_bits = FEATURE_EITHER_RESET,
2912 .tested = TEST_UNTESTED,
2913 .probe = probe_jedec,
2914 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2915 .block_erasers =
2916 {
2917 {
2918 .eraseblocks = { {1024 * 1024, 1} },
2919 .block_erase = erase_chip_block_jedec,
2920 }
2921 /* Chip features an optional permanent write protection
2922 * of the first 16 kB. The erase function is the same as
2923 * above, but 00000H to 03FFFH will not be erased.
2924 * FIXME: add another eraser when partial erasers are
2925 * supported.
2926 */
2927 },
2928 .printlock = printlock_at49f,
2929 .write = write_jedec_1,
2930 .read = read_memmapped,
2931 .voltage = {4500, 5500},
2932 },
2933
2934 {
2935 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2936 .vendor = "Atmel",
2937 .name = "AT49F080T",
2938 .bustype = BUS_PARALLEL,
2939 .manufacture_id = ATMEL_ID,
2940 .model_id = ATMEL_AT49F080T,
2941 .total_size = 1024,
2942 .page_size = 0, /* unused */
2943 .feature_bits = FEATURE_EITHER_RESET,
2944 .tested = TEST_UNTESTED,
2945 .probe = probe_jedec,
2946 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2947 .block_erasers =
2948 {
2949 {
2950 .eraseblocks = { {1024 * 1024, 1} },
2951 .block_erase = erase_chip_block_jedec,
2952 }
2953 /* Chip features an optional permanent write protection
2954 * of the first 16 kB. The erase function is the same as
2955 * above, but FC000H to FFFFFH will not be erased.
2956 * FIXME: add another eraser when partial erasers are
2957 * supported.
2958 */
2959 },
2960 .printlock = printlock_at49f,
2961 .write = write_jedec_1,
2962 .read = read_memmapped,
2963 .voltage = {4500, 5500},
2964 },
2965
2966 {
2967 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002968 .name = "AT49LH002",
2969 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2970 .manufacture_id = ATMEL_ID,
2971 .model_id = ATMEL_AT49LH002,
2972 .total_size = 256,
2973 .page_size = 0, /* unused */
2974 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2975 .tested = TEST_UNTESTED,
2976 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2977 .probe_timing = TIMING_FIXME,
2978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = {
2982 {64 * 1024, 3},
2983 {32 * 1024, 1},
2984 {8 * 1024, 2},
2985 {16 * 1024, 1},
2986 },
2987 .block_erase = erase_block_82802ab,
2988 }, {
2989 .eraseblocks = {
2990 {64 * 1024, 4},
2991 },
2992 .block_erase = NULL, /* TODO: Implement. */
2993 },
2994 },
2995 .printlock = NULL, /* TODO */
2996 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2997 .write = write_82802ab,
2998 .read = read_memmapped,
2999 .voltage = {3000, 3600},
3000 },
3001
3002 {
Andrew Morganca081462011-09-13 22:05:44 +00003003 .vendor = "Catalyst",
3004 .name = "CAT28F512",
3005 .bustype = BUS_PARALLEL,
3006 .manufacture_id = CATALYST_ID,
3007 .model_id = CATALYST_CAT28F512,
3008 .total_size = 64,
3009 .page_size = 0, /* unused */
3010 .feature_bits = 0,
3011 .tested = TEST_OK_PR,
3012 .probe = probe_jedec, /* FIXME! */
3013 .probe_timing = TIMING_ZERO,
3014 .block_erasers =
3015 {
3016 {
3017 .eraseblocks = { {64 * 1024, 1} },
3018 .block_erase = NULL, /* TODO */
3019 },
3020 },
3021 .write = NULL, /* TODO */
3022 .read = read_memmapped,
3023 .voltage = {4500, 5500},
3024 },
3025
3026 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003027 .vendor = "Bright",
3028 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003029 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003030 .manufacture_id = BRIGHT_ID,
3031 .model_id = BRIGHT_BM29F040,
3032 .total_size = 512,
3033 .page_size = 64 * 1024,
3034 .feature_bits = FEATURE_EITHER_RESET,
3035 .tested = TEST_OK_PR,
3036 .probe = probe_jedec,
3037 .probe_timing = TIMING_ZERO,
3038 .block_erasers =
3039 {
3040 {
3041 .eraseblocks = { {64 * 1024, 8} },
3042 .block_erase = erase_sector_jedec,
3043 }, {
3044 .eraseblocks = { {512 * 1024, 1} },
3045 .block_erase = erase_chip_block_jedec,
3046 },
3047 },
3048 .write = write_jedec_1,
3049 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003050 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003051 },
3052
3053 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003054 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003055 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003056 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003057 .manufacture_id = ESMT_ID,
3058 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003059 .total_size = 256,
3060 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003061 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003062 .tested = TEST_UNTESTED,
3063 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003064 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003065 .block_erasers =
3066 {
3067 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003068 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003069 {128 * 1024, 1},
3070 {96 * 1024, 1},
3071 {8 * 1024, 2},
3072 {16 * 1024, 1},
3073 },
3074 .block_erase = erase_sector_jedec,
3075 }, {
3076 .eraseblocks = { {256 * 1024, 1} },
3077 .block_erase = erase_chip_block_jedec,
3078 }
3079 },
Sean Nelson35727f72010-01-28 23:55:12 +00003080 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003082 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003083 },
3084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003085 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003086 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003087 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003088 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003089 .manufacture_id = ESMT_ID,
3090 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003091 .total_size = 1024,
3092 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003093 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003094 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003095 .probe = probe_spi_rdid,
3096 .probe_timing = TIMING_ZERO,
3097 .block_erasers =
3098 {
3099 {
3100 .eraseblocks = { {4 * 1024, 256} },
3101 .block_erase = spi_block_erase_20,
3102 }, {
3103 .eraseblocks = { {64 * 1024, 16} },
3104 .block_erase = spi_block_erase_d8,
3105 }, {
3106 .eraseblocks = { {1024 * 1024, 1} },
3107 .block_erase = spi_block_erase_60,
3108 }, {
3109 .eraseblocks = { {1024 * 1024, 1} },
3110 .block_erase = spi_block_erase_c7,
3111 }
3112 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003115 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003116 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003117 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003118 },
3119
3120 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003121 .vendor = "Eon",
3122 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003123 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003124 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003125 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003126 .total_size = 64,
3127 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003128 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003129 .tested = TEST_UNTESTED,
3130 .probe = probe_spi_rdid,
3131 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003132 .block_erasers =
3133 {
3134 {
3135 .eraseblocks = {
3136 {4 * 1024, 2},
3137 {8 * 1024, 1},
3138 {16 * 1024, 1},
3139 {32 * 1024, 1},
3140 },
3141 .block_erase = spi_block_erase_d8,
3142 }, {
3143 .eraseblocks = { {64 * 1024, 1} },
3144 .block_erase = spi_block_erase_c7,
3145 }
3146 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003147 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003148 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .write = spi_chip_write_256,
3150 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003151 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003152 },
3153
3154 {
3155 .vendor = "Eon",
3156 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003157 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003158 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003159 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003160 .total_size = 64,
3161 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003162 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003163 .tested = TEST_UNTESTED,
3164 .probe = probe_spi_rdid,
3165 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003166 .block_erasers =
3167 {
3168 {
3169 .eraseblocks = {
3170 {32 * 1024, 1},
3171 {16 * 1024, 1},
3172 {8 * 1024, 1},
3173 {4 * 1024, 2},
3174 },
3175 .block_erase = spi_block_erase_d8,
3176 }, {
3177 .eraseblocks = { {64 * 1024, 1} },
3178 .block_erase = spi_block_erase_c7,
3179 }
3180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003182 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003183 .write = spi_chip_write_256,
3184 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003185 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003186 },
3187
3188 {
3189 .vendor = "Eon",
3190 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003191 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003192 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003193 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .total_size = 128,
3195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003196 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003197 .tested = TEST_UNTESTED,
3198 .probe = probe_spi_rdid,
3199 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003200 .block_erasers =
3201 {
3202 {
3203 .eraseblocks = {
3204 {4 * 1024, 2},
3205 {8 * 1024, 1},
3206 {16 * 1024, 1},
3207 {32 * 1024, 3},
3208 },
3209 .block_erase = spi_block_erase_d8,
3210 }, {
3211 .eraseblocks = { {128 * 1024, 1} },
3212 .block_erase = spi_block_erase_c7,
3213 }
3214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003216 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003217 .write = spi_chip_write_256,
3218 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003219 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003220 },
3221
3222 {
3223 .vendor = "Eon",
3224 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003225 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003226 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003227 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003228 .total_size = 128,
3229 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003230 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003231 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003232 .probe = probe_spi_rdid,
3233 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003234 .block_erasers =
3235 {
3236 {
3237 .eraseblocks = {
3238 {32 * 1024, 3},
3239 {16 * 1024, 1},
3240 {8 * 1024, 1},
3241 {4 * 1024, 2},
3242 },
3243 .block_erase = spi_block_erase_d8,
3244 }, {
3245 .eraseblocks = { {128 * 1024, 1} },
3246 .block_erase = spi_block_erase_c7,
3247 }
3248 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003249 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003250 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003251 .write = spi_chip_write_256,
3252 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003253 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003254 },
3255
3256 {
3257 .vendor = "Eon",
3258 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003259 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003260 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003261 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003262 .total_size = 256,
3263 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003264 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003265 .tested = TEST_UNTESTED,
3266 .probe = probe_spi_rdid,
3267 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003268 .block_erasers =
3269 {
3270 {
3271 .eraseblocks = {
3272 {4 * 1024, 2},
3273 {8 * 1024, 1},
3274 {16 * 1024, 1},
3275 {32 * 1024, 1},
3276 {64 * 1024, 3}
3277 },
3278 .block_erase = spi_block_erase_d8,
3279 }, {
3280 .eraseblocks = { {256 * 1024, 1} },
3281 .block_erase = spi_block_erase_c7,
3282 }
3283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003285 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003286 .write = spi_chip_write_256,
3287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003288 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003289 },
3290
3291 {
3292 .vendor = "Eon",
3293 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003294 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003295 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003296 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003297 .total_size = 256,
3298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003299 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003300 .tested = TEST_UNTESTED,
3301 .probe = probe_spi_rdid,
3302 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003303 .block_erasers =
3304 {
3305 {
3306 .eraseblocks = {
3307 {64 * 1024, 3},
3308 {32 * 1024, 1},
3309 {16 * 1024, 1},
3310 {8 * 1024, 1},
3311 {4 * 1024, 2},
3312 },
3313 .block_erase = spi_block_erase_d8,
3314 }, {
3315 .eraseblocks = { {256 * 1024, 1} },
3316 .block_erase = spi_block_erase_c7,
3317 }
3318 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003319 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003320 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003321 .write = spi_chip_write_256,
3322 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003323 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003324 },
3325
3326 {
3327 .vendor = "Eon",
3328 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003329 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003330 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003331 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003332 .total_size = 512,
3333 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003334 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003335 .tested = TEST_UNTESTED,
3336 .probe = probe_spi_rdid,
3337 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003338 .block_erasers =
3339 {
3340 {
3341 .eraseblocks = {
3342 {4 * 1024, 2},
3343 {8 * 1024, 1},
3344 {16 * 1024, 1},
3345 {32 * 1024, 1},
3346 {64 * 1024, 7}
3347 },
3348 .block_erase = spi_block_erase_d8,
3349 }, {
3350 .eraseblocks = { {512 * 1024, 1} },
3351 .block_erase = spi_block_erase_c7,
3352 }
3353 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003355 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003356 .write = spi_chip_write_256,
3357 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003358 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003359 },
3360
3361 {
3362 .vendor = "Eon",
3363 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003364 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003366 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003367 .total_size = 512,
3368 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003369 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003370 .tested = TEST_UNTESTED,
3371 .probe = probe_spi_rdid,
3372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003373 .block_erasers =
3374 {
3375 {
3376 .eraseblocks = {
3377 {64 * 1024, 7},
3378 {32 * 1024, 1},
3379 {16 * 1024, 1},
3380 {8 * 1024, 1},
3381 {4 * 1024, 2},
3382 },
3383 .block_erase = spi_block_erase_d8,
3384 }, {
3385 .eraseblocks = { {512 * 1024, 1} },
3386 .block_erase = spi_block_erase_c7,
3387 }
3388 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003389 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003390 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003391 .write = spi_chip_write_256,
3392 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003393 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003394 },
3395
3396 {
3397 .vendor = "Eon",
3398 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003399 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003400 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003401 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003402 .total_size = 1024,
3403 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003404 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003405 .tested = TEST_UNTESTED,
3406 .probe = probe_spi_rdid,
3407 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003408 .block_erasers =
3409 {
3410 {
3411 .eraseblocks = {
3412 {4 * 1024, 2},
3413 {8 * 1024, 1},
3414 {16 * 1024, 1},
3415 {32 * 1024, 1},
3416 {64 * 1024, 15}
3417 },
3418 .block_erase = spi_block_erase_d8,
3419 }, {
3420 .eraseblocks = { {1024 * 1024, 1} },
3421 .block_erase = spi_block_erase_c7,
3422 }
3423 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003424 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003425 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .write = spi_chip_write_256,
3427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003428 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003429 },
3430
3431 {
3432 .vendor = "Eon",
3433 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003434 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003436 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003437 .total_size = 1024,
3438 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003439 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003440 .tested = TEST_UNTESTED,
3441 .probe = probe_spi_rdid,
3442 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003443 .block_erasers =
3444 {
3445 {
3446 .eraseblocks = {
3447 {64 * 1024, 15},
3448 {32 * 1024, 1},
3449 {16 * 1024, 1},
3450 {8 * 1024, 1},
3451 {4 * 1024, 2},
3452 },
3453 .block_erase = spi_block_erase_d8,
3454 }, {
3455 .eraseblocks = { {1024 * 1024, 1} },
3456 .block_erase = spi_block_erase_c7,
3457 }
3458 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003459 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003460 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003461 .write = spi_chip_write_256,
3462 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003463 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003464 },
3465
3466 {
3467 .vendor = "Eon",
3468 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003469 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003470 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003471 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003472 .total_size = 2048,
3473 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003474 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003475 .tested = TEST_UNTESTED,
3476 .probe = probe_spi_rdid,
3477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003478 .block_erasers =
3479 {
3480 {
3481 .eraseblocks = {
3482 {4 * 1024, 2},
3483 {8 * 1024, 1},
3484 {16 * 1024, 1},
3485 {32 * 1024, 1},
3486 {64 * 1024, 31},
3487 },
3488 .block_erase = spi_block_erase_d8,
3489 }, {
3490 .eraseblocks = { {2 * 1024 * 1024, 1} },
3491 .block_erase = spi_block_erase_c7,
3492 }
3493 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003494 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003495 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .write = spi_chip_write_256,
3497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003498 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003499 },
3500
3501 {
3502 .vendor = "Eon",
3503 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003504 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003505 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003506 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003507 .total_size = 2048,
3508 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003509 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003510 .tested = TEST_UNTESTED,
3511 .probe = probe_spi_rdid,
3512 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003513 .block_erasers =
3514 {
3515 {
3516 .eraseblocks = {
3517 {64 * 1024, 31},
3518 {32 * 1024, 1},
3519 {16 * 1024, 1},
3520 {8 * 1024, 1},
3521 {4 * 1024, 2},
3522 },
3523 .block_erase = spi_block_erase_d8,
3524 }, {
3525 .eraseblocks = { {2 * 1024 * 1024, 1} },
3526 .block_erase = spi_block_erase_c7,
3527 }
3528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003530 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003531 .write = spi_chip_write_256,
3532 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003533 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003534 },
3535
3536 {
3537 .vendor = "Eon",
3538 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003539 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003540 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003541 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003542 .total_size = 4096,
3543 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003544 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003545 .tested = TEST_UNTESTED,
3546 .probe = probe_spi_rdid,
3547 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003548 .block_erasers =
3549 {
3550 {
3551 .eraseblocks = {
3552 {4 * 1024, 2},
3553 {8 * 1024, 1},
3554 {16 * 1024, 1},
3555 {32 * 1024, 1},
3556 {64 * 1024, 63},
3557 },
3558 .block_erase = spi_block_erase_d8,
3559 }, {
3560 .eraseblocks = { {4 * 1024 * 1024, 1} },
3561 .block_erase = spi_block_erase_c7,
3562 }
3563 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003564 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003565 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003566 .write = spi_chip_write_256,
3567 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003568 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003569 },
3570
3571 {
3572 .vendor = "Eon",
3573 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003574 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003575 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003576 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003577 .total_size = 4096,
3578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003579 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003580 .tested = TEST_UNTESTED,
3581 .probe = probe_spi_rdid,
3582 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = {
3587 {64 * 1024, 63},
3588 {32 * 1024, 1},
3589 {16 * 1024, 1},
3590 {8 * 1024, 1},
3591 {4 * 1024, 2},
3592 },
3593 .block_erase = spi_block_erase_d8,
3594 }, {
3595 .eraseblocks = { {4 * 1024 * 1024, 1} },
3596 .block_erase = spi_block_erase_c7,
3597 }
3598 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003599 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003600 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003601 .write = spi_chip_write_256,
3602 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003603 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003604 },
3605
3606 {
3607 .vendor = "Eon",
3608 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003609 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003610 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003611 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003612 .total_size = 8192,
3613 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003614 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003615 .tested = TEST_UNTESTED,
3616 .probe = probe_spi_rdid,
3617 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .block_erasers =
3619 {
3620 {
3621 .eraseblocks = {
3622 {4 * 1024, 2},
3623 {8 * 1024, 1},
3624 {16 * 1024, 1},
3625 {32 * 1024, 1},
3626 {64 * 1024, 127},
3627 },
3628 .block_erase = spi_block_erase_d8,
3629 }, {
3630 .eraseblocks = { {8 * 1024 * 1024, 1} },
3631 .block_erase = spi_block_erase_c7,
3632 }
3633 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003634 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003635 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003636 .write = spi_chip_write_256,
3637 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003638 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003639 },
3640
3641 {
3642 .vendor = "Eon",
3643 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003644 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003645 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003646 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003647 .total_size = 8192,
3648 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003649 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003650 .tested = TEST_UNTESTED,
3651 .probe = probe_spi_rdid,
3652 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003653 .block_erasers =
3654 {
3655 {
3656 .eraseblocks = {
3657 {64 * 1024, 127},
3658 {32 * 1024, 1},
3659 {16 * 1024, 1},
3660 {8 * 1024, 1},
3661 {4 * 1024, 2},
3662 },
3663 .block_erase = spi_block_erase_d8,
3664 }, {
3665 .eraseblocks = { {8 * 1024 * 1024, 1} },
3666 .block_erase = spi_block_erase_c7,
3667 }
3668 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003670 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003671 .write = spi_chip_write_256,
3672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003673 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003674 },
3675
3676 {
3677 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003678 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003679 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003680 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003681 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003682 .total_size = 64,
3683 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003684 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003685 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003686 .probe = probe_spi_rdid,
3687 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .block_erasers =
3689 {
3690 {
3691 .eraseblocks = { {4 * 1024, 16} },
3692 .block_erase = spi_block_erase_20,
3693 }, {
3694 .eraseblocks = { {32 * 1024, 2} },
3695 .block_erase = spi_block_erase_d8,
3696 }, {
3697 .eraseblocks = { {32 * 1024, 2} },
3698 .block_erase = spi_block_erase_52,
3699 }, {
3700 .eraseblocks = { {64 * 1024, 1} },
3701 .block_erase = spi_block_erase_60,
3702 }, {
3703 .eraseblocks = { {64 * 1024, 1} },
3704 .block_erase = spi_block_erase_c7,
3705 }
3706 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003707 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003708 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003709 .write = spi_chip_write_256,
3710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003711 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003712 },
3713
3714 {
3715 .vendor = "Eon",
3716 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003717 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003718 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003719 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003720 .total_size = 128,
3721 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003722 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003723 .tested = TEST_UNTESTED,
3724 .probe = probe_spi_rdid,
3725 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003726 .block_erasers =
3727 {
3728 {
3729 .eraseblocks = { {4 * 1024, 32} },
3730 .block_erase = spi_block_erase_20,
3731 }, {
3732 .eraseblocks = { {32 * 1024, 4} },
3733 .block_erase = spi_block_erase_d8,
3734 }, {
3735 .eraseblocks = { {32 * 1024, 4} },
3736 .block_erase = spi_block_erase_52,
3737 }, {
3738 .eraseblocks = { {128 * 1024, 1} },
3739 .block_erase = spi_block_erase_60,
3740 }, {
3741 .eraseblocks = { {128 * 1024, 1} },
3742 .block_erase = spi_block_erase_c7,
3743 }
3744 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003745 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003747 .write = spi_chip_write_256,
3748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003749 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003750 },
3751
3752 {
3753 .vendor = "Eon",
3754 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003755 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003756 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003757 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003758 .total_size = 256,
3759 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003760 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003761 .tested = TEST_UNTESTED,
3762 .probe = probe_spi_rdid,
3763 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003764 .block_erasers =
3765 {
3766 {
3767 .eraseblocks = { {4 * 1024, 64} },
3768 .block_erase = spi_block_erase_20,
3769 }, {
3770 .eraseblocks = { {64 * 1024, 4} },
3771 .block_erase = spi_block_erase_d8,
3772 }, {
3773 .eraseblocks = { {64 * 1024, 4} },
3774 .block_erase = spi_block_erase_52,
3775 }, {
3776 .eraseblocks = { {256 * 1024, 1} },
3777 .block_erase = spi_block_erase_60,
3778 }, {
3779 .eraseblocks = { {256 * 1024, 1} },
3780 .block_erase = spi_block_erase_c7,
3781 }
3782 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003783 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003784 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003785 .write = spi_chip_write_256,
3786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003787 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003788 },
3789
3790 {
3791 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003793 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003794 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003795 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003796 .total_size = 512,
3797 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003798 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003799 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .probe = probe_spi_rdid,
3801 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003802 .block_erasers =
3803 {
3804 {
Sean Nelson54596372010-01-09 05:30:14 +00003805 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003806 .block_erase = spi_block_erase_20,
3807 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003808 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003809 .block_erase = spi_block_erase_d8,
3810 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003811 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003812 .block_erase = spi_block_erase_60,
3813 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003814 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003815 .block_erase = spi_block_erase_c7,
3816 },
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003820 .write = spi_chip_write_256,
3821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003831 .total_size = 1024,
3832 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003834 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = { {4 * 1024, 256} },
3841 .block_erase = spi_block_erase_20,
3842 }, {
3843 .eraseblocks = { {64 * 1024, 16} },
3844 .block_erase = spi_block_erase_d8,
3845 }, {
3846 .eraseblocks = { {1024 * 1024, 1} },
3847 .block_erase = spi_block_erase_60,
3848 }, {
3849 .eraseblocks = { {1024 * 1024, 1} },
3850 .block_erase = spi_block_erase_c7,
3851 }
3852 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003853 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003854 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003855 .write = spi_chip_write_256,
3856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003857 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003858 },
3859
3860 {
3861 .vendor = "Eon",
3862 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003863 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003864 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003865 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003866 .total_size = 2048,
3867 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003868 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003869 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003870 .probe = probe_spi_rdid,
3871 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003872 .block_erasers =
3873 {
3874 {
3875 .eraseblocks = { {4 * 1024, 512} },
3876 .block_erase = spi_block_erase_20,
3877 }, {
3878 .eraseblocks = { {64 * 1024, 32} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {2 * 1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_60,
3883 }, {
3884 .eraseblocks = { {2 * 1024 * 1024, 1} },
3885 .block_erase = spi_block_erase_c7,
3886 }
3887 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003889 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003890 .write = spi_chip_write_256,
3891 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003892 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003893 },
3894
3895 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003896 .vendor = "Eon",
3897 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003898 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003899 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003900 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003901 .total_size = 4096,
3902 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003903 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003904 .tested = TEST_UNTESTED,
3905 .probe = probe_spi_rdid,
3906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003907 .block_erasers =
3908 {
3909 {
3910 .eraseblocks = { {4 * 1024, 1024} },
3911 .block_erase = spi_block_erase_20,
3912 }, {
3913 .eraseblocks = { {64 * 1024, 64} },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {4 * 1024 * 1024, 1} },
3917 .block_erase = spi_block_erase_60,
3918 }, {
3919 .eraseblocks = { {4 * 1024 * 1024, 1} },
3920 .block_erase = spi_block_erase_c7,
3921 }
3922 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003923 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003924 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003925 .write = spi_chip_write_256,
3926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003927 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003928 },
3929
3930 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003931 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003932 .name = "EN25F64",
3933 .bustype = BUS_SPI,
3934 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003935 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003936 .total_size = 8192,
3937 .page_size = 256,
3938 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003939 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003940 .probe = probe_spi_rdid,
3941 .probe_timing = TIMING_ZERO,
3942 .block_erasers =
3943 {
3944 {
3945 .eraseblocks = { {4 * 1024, 2048} },
3946 .block_erase = spi_block_erase_20,
3947 }, {
3948 .eraseblocks = { {64 * 1024, 128} },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {8 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_60,
3953 }, {
3954 .eraseblocks = { {8 * 1024 * 1024, 1} },
3955 .block_erase = spi_block_erase_c7,
3956 }
3957 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003958 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003959 .unlock = spi_disable_blockprotect,
3960 .write = spi_chip_write_256,
3961 .read = spi_chip_read,
3962 .voltage = {2700, 3600},
3963 },
3964
3965 {
3966 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003967 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003968 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003969 .manufacture_id = EON_ID_NOPREFIX,
3970 .model_id = EON_EN25Q40,
3971 .total_size = 512,
3972 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003973 /* OTP: 256B total; enter 0x3A */
3974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003975 .tested = TEST_UNTESTED,
3976 .probe = probe_spi_rdid,
3977 .probe_timing = TIMING_ZERO,
3978 .block_erasers =
3979 {
3980 {
3981 .eraseblocks = { {4 * 1024, 128} },
3982 .block_erase = spi_block_erase_20,
3983 }, {
3984 .eraseblocks = { {64 * 1024, 8} },
3985 .block_erase = spi_block_erase_d8,
3986 }, {
3987 .eraseblocks = { {512 * 1024, 1} },
3988 .block_erase = spi_block_erase_60,
3989 }, {
3990 .eraseblocks = { {512 * 1024, 1} },
3991 .block_erase = spi_block_erase_c7,
3992 }
3993 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003995 .unlock = spi_disable_blockprotect,
3996 .write = spi_chip_write_256,
3997 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003998 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003999 },
4000
4001 {
4002 .vendor = "Eon",
4003 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004004 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004005 .manufacture_id = EON_ID_NOPREFIX,
4006 .model_id = EON_EN25Q80,
4007 .total_size = 1024,
4008 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004009 /* OTP: 256B total; enter 0x3A */
4010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004011 .tested = TEST_UNTESTED,
4012 .probe = probe_spi_rdid,
4013 .probe_timing = TIMING_ZERO,
4014 .block_erasers =
4015 {
4016 {
4017 .eraseblocks = { {4 * 1024, 256} },
4018 .block_erase = spi_block_erase_20,
4019 }, {
4020 .eraseblocks = { {64 * 1024, 16} },
4021 .block_erase = spi_block_erase_d8,
4022 }, {
4023 .eraseblocks = { {1024 * 1024, 1} },
4024 .block_erase = spi_block_erase_60,
4025 }, {
4026 .eraseblocks = { {1024 * 1024, 1} },
4027 .block_erase = spi_block_erase_c7,
4028 }
4029 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004030 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004031 .unlock = spi_disable_blockprotect,
4032 .write = spi_chip_write_256,
4033 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004034 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004035 },
4036
4037 {
4038 /* Note: EN25D16 is an evil twin which shares the model ID
4039 but has different write protection capabilities */
4040 .vendor = "Eon",
4041 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004042 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004043 .manufacture_id = EON_ID_NOPREFIX,
4044 .model_id = EON_EN25Q16,
4045 .total_size = 2048,
4046 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004047 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004049 .tested = TEST_UNTESTED,
4050 .probe = probe_spi_rdid,
4051 .probe_timing = TIMING_ZERO,
4052 .block_erasers =
4053 {
4054 {
4055 .eraseblocks = { {4 * 1024, 512} },
4056 .block_erase = spi_block_erase_20,
4057 }, {
4058 .eraseblocks = { {64 * 1024, 32} },
4059 .block_erase = spi_block_erase_d8,
4060 }, {
4061 /* not supported by Q16 version */
4062 .eraseblocks = { {64 * 1024, 32} },
4063 .block_erase = spi_block_erase_52,
4064 }, {
4065 .eraseblocks = { {2 * 1024 * 1024, 1} },
4066 .block_erase = spi_block_erase_60,
4067 }, {
4068 .eraseblocks = { {2 * 1024 * 1024, 1} },
4069 .block_erase = spi_block_erase_c7,
4070 }
4071 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004073 .unlock = spi_disable_blockprotect,
4074 .write = spi_chip_write_256,
4075 .read = spi_chip_read,
4076 .voltage = {2700, 3600},
4077 },
4078
4079 {
4080 .vendor = "Eon",
4081 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004082 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004083 .manufacture_id = EON_ID_NOPREFIX,
4084 .model_id = EON_EN25Q32,
4085 .total_size = 4096,
4086 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004087 /* OTP: 512B total; enter 0x3A */
4088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004089 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
4092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = { {4 * 1024, 1024} },
4096 .block_erase = spi_block_erase_20,
4097 }, {
4098 .eraseblocks = { {64 * 1024, 64} },
4099 .block_erase = spi_block_erase_d8,
4100 }, {
4101 .eraseblocks = { {4 * 1024 * 1024, 1} },
4102 .block_erase = spi_block_erase_60,
4103 }, {
4104 .eraseblocks = { {4 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004109 .unlock = spi_disable_blockprotect,
4110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004112 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004113 },
4114
4115 {
4116 .vendor = "Eon",
4117 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004118 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004119 .manufacture_id = EON_ID_NOPREFIX,
4120 .model_id = EON_EN25Q64,
4121 .total_size = 8192,
4122 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004123 /* OTP: 512B total; enter 0x3A */
4124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004125 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004126 .probe = probe_spi_rdid,
4127 .probe_timing = TIMING_ZERO,
4128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = { {4 * 1024, 2048} },
4132 .block_erase = spi_block_erase_20,
4133 }, {
4134 .eraseblocks = { {64 * 1024, 128} },
4135 .block_erase = spi_block_erase_d8,
4136 }, {
4137 .eraseblocks = { {8 * 1024 * 1024, 1} },
4138 .block_erase = spi_block_erase_60,
4139 }, {
4140 .eraseblocks = { {8 * 1024 * 1024, 1} },
4141 .block_erase = spi_block_erase_c7,
4142 }
4143 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004145 .unlock = spi_disable_blockprotect,
4146 .write = spi_chip_write_256,
4147 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004148 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004149 },
4150
4151 {
4152 .vendor = "Eon",
4153 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004154 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004155 .manufacture_id = EON_ID_NOPREFIX,
4156 .model_id = EON_EN25Q128,
4157 .total_size = 16384,
4158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004159 /* OTP: 512B total; enter 0x3A */
4160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004161 .tested = TEST_UNTESTED,
4162 .probe = probe_spi_rdid,
4163 .probe_timing = TIMING_ZERO,
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = { {4 * 1024, 4096} },
4168 .block_erase = spi_block_erase_20,
4169 }, {
4170 .eraseblocks = { {64 * 1024, 256} },
4171 .block_erase = spi_block_erase_d8,
4172 }, {
4173 .eraseblocks = { {16 * 1024 * 1024, 1} },
4174 .block_erase = spi_block_erase_60,
4175 }, {
4176 .eraseblocks = { {16 * 1024 * 1024, 1} },
4177 .block_erase = spi_block_erase_c7,
4178 }
4179 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004180 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004181 .unlock = spi_disable_blockprotect,
4182 .write = spi_chip_write_256,
4183 .read = spi_chip_read,
4184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004189 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004190 .manufacture_id = EON_ID_NOPREFIX,
4191 .model_id = EON_EN25QH16,
4192 .total_size = 2048,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* supports SFDP */
4195 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004196 /* QPI enable 0x38, disable 0xFF */
4197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004198 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004199 .probe = probe_spi_rdid,
4200 .probe_timing = TIMING_ZERO,
4201 .block_erasers =
4202 {
4203 {
4204 .eraseblocks = { {4 * 1024, 512} },
4205 .block_erase = spi_block_erase_20,
4206 }, {
4207 .eraseblocks = { {64 * 1024, 32} },
4208 .block_erase = spi_block_erase_d8,
4209 }, {
4210 .eraseblocks = { {1024 * 2048, 1} },
4211 .block_erase = spi_block_erase_60,
4212 }, {
4213 .eraseblocks = { {1024 * 2048, 1} },
4214 .block_erase = spi_block_erase_c7,
4215 }
4216 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004217 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4218 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004219 .write = spi_chip_write_256,
4220 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004221 .voltage = {2700, 3600},
4222 },
4223
4224 {
4225 .vendor = "Eon",
4226 .name = "EN25QH32",
4227 .bustype = BUS_SPI,
4228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25QH32,
4230 .total_size = 4096,
4231 .page_size = 256,
4232 /* supports SFDP */
4233 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004234 /* QPI enable 0x38, disable 0xFF */
4235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004236 .tested = TEST_UNTESTED,
4237 .probe = probe_spi_rdid,
4238 .probe_timing = TIMING_ZERO,
4239 .block_erasers =
4240 {
4241 {
4242 .eraseblocks = { {4 * 1024, 1024} },
4243 .block_erase = spi_block_erase_20,
4244 }, {
4245 .eraseblocks = { {64 * 1024, 64} },
4246 .block_erase = spi_block_erase_d8,
4247 }, {
4248 .eraseblocks = { {1024 * 4096, 1} },
4249 .block_erase = spi_block_erase_60,
4250 }, {
4251 .eraseblocks = { {1024 * 4096, 1} },
4252 .block_erase = spi_block_erase_c7,
4253 }
4254 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004255 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4256 .unlock = spi_disable_blockprotect_bp3_srwd,
4257 .write = spi_chip_write_256,
4258 .read = spi_chip_read,
4259 .voltage = {2700, 3600},
4260 },
4261
4262 {
4263 .vendor = "Eon",
4264 .name = "EN25QH64",
4265 .bustype = BUS_SPI,
4266 .manufacture_id = EON_ID_NOPREFIX,
4267 .model_id = EON_EN25QH64,
4268 .total_size = 8192,
4269 .page_size = 256,
4270 /* supports SFDP */
4271 /* OTP: 512B total; enter 0x3A */
4272 /* QPI enable 0x38, disable 0xFF */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004274 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers = {
4278 {
4279 .eraseblocks = { {4 * 1024, 2048} },
4280 .block_erase = spi_block_erase_20,
4281 }, {
4282 .eraseblocks = { {64 * 1024, 128} },
4283 .block_erase = spi_block_erase_d8,
4284 }, {
4285 .eraseblocks = { { 8192 * 1024, 1} },
4286 .block_erase = spi_block_erase_60,
4287 }, {
4288 .eraseblocks = { { 8192 * 1024, 1} },
4289 .block_erase = spi_block_erase_c7,
4290 }
4291 },
4292 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4293 .unlock = spi_disable_blockprotect_bp3_srwd,
4294 .write = spi_chip_write_256,
4295 .read = spi_chip_read,
4296 .voltage = {2700, 3600},
4297 },
4298
4299 {
4300 .vendor = "Eon",
4301 .name = "EN25QH128",
4302 .bustype = BUS_SPI,
4303 .manufacture_id = EON_ID_NOPREFIX,
4304 .model_id = EON_EN25QH128,
4305 .total_size = 16384,
4306 .page_size = 256,
4307 /* supports SFDP */
4308 /* OTP: 512B total; enter 0x3A */
4309 /* QPI enable 0x38, disable 0xFF */
4310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4311 .tested = TEST_UNTESTED,
4312 .probe = probe_spi_rdid,
4313 .probe_timing = TIMING_ZERO,
4314 .block_erasers = {
4315 {
4316 .eraseblocks = { {4 * 1024, 4096} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 256} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { { 16384 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { { 16384 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
4329 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4330 .unlock = spi_disable_blockprotect_bp3_srwd,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
4333 .voltage = {2700, 3600},
4334 },
4335
4336 {
4337 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004338 .name = "EN25S10",
4339 .bustype = BUS_SPI,
4340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25S10,
4342 .total_size = 128,
4343 .page_size = 256,
4344 /* OTP: 256B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers = {
4350 {
4351 .eraseblocks = { {4 * 1024, 32} },
4352 .block_erase = spi_block_erase_20,
4353 }, {
4354 .eraseblocks = { {32 * 1024, 4} },
4355 .block_erase = spi_block_erase_52,
4356 }, {
4357 .eraseblocks = { {128 * 1024, 1} },
4358 .block_erase = spi_block_erase_60,
4359 }, {
4360 .eraseblocks = { {128 * 1024, 1} },
4361 .block_erase = spi_block_erase_c7,
4362 }
4363 },
4364 .printlock = spi_prettyprint_status_register_default_bp2,
4365 .unlock = spi_disable_blockprotect,
4366 .write = spi_chip_write_256,
4367 .read = spi_chip_read,
4368 .voltage = {1650, 1950},
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25S20",
4374 .bustype = BUS_SPI,
4375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25S20,
4377 .total_size = 256,
4378 .page_size = 256,
4379 /* OTP: 256B total; enter 0x3A */
4380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4381 .tested = TEST_UNTESTED,
4382 .probe = probe_spi_rdid,
4383 .probe_timing = TIMING_ZERO,
4384 .block_erasers = {
4385 {
4386 .eraseblocks = { {4 * 1024, 64} },
4387 .block_erase = spi_block_erase_20,
4388 }, {
4389 .eraseblocks = { {64 * 1024, 4} },
4390 .block_erase = spi_block_erase_d8,
4391 }, {
4392 .eraseblocks = { {256 * 1024, 1} },
4393 .block_erase = spi_block_erase_60,
4394 }, {
4395 .eraseblocks = { {256 * 1024, 1} },
4396 .block_erase = spi_block_erase_c7,
4397 }
4398 },
4399 .printlock = spi_prettyprint_status_register_default_bp2,
4400 .unlock = spi_disable_blockprotect,
4401 .write = spi_chip_write_256,
4402 .read = spi_chip_read,
4403 .voltage = {1650, 1950},
4404 },
4405
4406 {
4407 .vendor = "Eon",
4408 .name = "EN25S40",
4409 .bustype = BUS_SPI,
4410 .manufacture_id = EON_ID_NOPREFIX,
4411 .model_id = EON_EN25S40,
4412 .total_size = 512,
4413 .page_size = 256,
4414 /* OTP: 256B total; enter 0x3A */
4415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4416 .tested = TEST_UNTESTED,
4417 .probe = probe_spi_rdid,
4418 .probe_timing = TIMING_ZERO,
4419 .block_erasers = {
4420 {
4421 .eraseblocks = { {4 * 1024, 128} },
4422 .block_erase = spi_block_erase_20,
4423 }, {
4424 .eraseblocks = { {64 * 1024, 8} },
4425 .block_erase = spi_block_erase_d8,
4426 }, {
4427 .eraseblocks = { {512 * 1024, 1} },
4428 .block_erase = spi_block_erase_60,
4429 }, {
4430 .eraseblocks = { {512 * 1024, 1} },
4431 .block_erase = spi_block_erase_c7,
4432 }
4433 },
4434 .printlock = spi_prettyprint_status_register_default_bp2,
4435 .unlock = spi_disable_blockprotect,
4436 .write = spi_chip_write_256,
4437 .read = spi_chip_read,
4438 .voltage = {1650, 1950},
4439 },
4440
4441 {
4442 .vendor = "Eon",
4443 .name = "EN25S80",
4444 .bustype = BUS_SPI,
4445 .manufacture_id = EON_ID_NOPREFIX,
4446 .model_id = EON_EN25S80,
4447 .total_size = 1024,
4448 .page_size = 256,
4449 /* OTP: 256B total; enter 0x3A */
4450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4451 .tested = TEST_UNTESTED,
4452 .probe = probe_spi_rdid,
4453 .probe_timing = TIMING_ZERO,
4454 .block_erasers = {
4455 {
4456 .eraseblocks = { {4 * 1024, 256} },
4457 .block_erase = spi_block_erase_20,
4458 }, {
4459 .eraseblocks = { {64 * 1024, 16} },
4460 .block_erase = spi_block_erase_d8,
4461 }, {
4462 .eraseblocks = { {1024 * 1024, 1} },
4463 .block_erase = spi_block_erase_60,
4464 }, {
4465 .eraseblocks = { {1024 * 1024, 1} },
4466 .block_erase = spi_block_erase_c7,
4467 }
4468 },
4469 .printlock = spi_prettyprint_status_register_default_bp2,
4470 .unlock = spi_disable_blockprotect,
4471 .write = spi_chip_write_256,
4472 .read = spi_chip_read,
4473 .voltage = {1650, 1950},
4474 },
4475
4476 {
4477 .vendor = "Eon",
4478 .name = "EN25S16",
4479 .bustype = BUS_SPI,
4480 .manufacture_id = EON_ID_NOPREFIX,
4481 .model_id = EON_EN25S16,
4482 .total_size = 2048,
4483 .page_size = 256,
4484 /* OTP: 512B total; enter 0x3A */
4485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4486 .tested = TEST_UNTESTED,
4487 .probe = probe_spi_rdid,
4488 .probe_timing = TIMING_ZERO,
4489 .block_erasers = {
4490 {
4491 .eraseblocks = { {4 * 1024, 512} },
4492 .block_erase = spi_block_erase_20,
4493 }, {
4494 .eraseblocks = { {64 * 1024, 32} },
4495 .block_erase = spi_block_erase_52,
4496 }, {
4497 .eraseblocks = { {32 * 1024, 64} },
4498 .block_erase = spi_block_erase_d8,
4499 }, {
4500 .eraseblocks = { {2048 * 1024, 1} },
4501 .block_erase = spi_block_erase_60,
4502 }, {
4503 .eraseblocks = { {2048 * 1024, 1} },
4504 .block_erase = spi_block_erase_c7,
4505 }
4506 },
4507 .printlock = spi_prettyprint_status_register_en25s_wp,
4508 .unlock = spi_disable_blockprotect_bp3_srwd,
4509 .write = spi_chip_write_256,
4510 .read = spi_chip_read,
4511 .voltage = {1650, 1950},
4512 },
4513
4514 {
4515 .vendor = "Eon",
4516 .name = "EN25S32",
4517 .bustype = BUS_SPI,
4518 .manufacture_id = EON_ID_NOPREFIX,
4519 .model_id = EON_EN25S32,
4520 .total_size = 4096,
4521 .page_size = 256,
4522 /* OTP: 512B total; enter 0x3A */
4523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4524 .tested = TEST_UNTESTED,
4525 .probe = probe_spi_rdid,
4526 .probe_timing = TIMING_ZERO,
4527 .block_erasers = {
4528 {
4529 .eraseblocks = { {4 * 1024, 1024} },
4530 .block_erase = spi_block_erase_20,
4531 }, {
4532 .eraseblocks = { {32 * 1024, 128} },
4533 .block_erase = spi_block_erase_52,
4534 }, {
4535 .eraseblocks = { {64 * 1024, 64} },
4536 .block_erase = spi_block_erase_d8,
4537 }, {
4538 .eraseblocks = { {4096 * 1024, 1} },
4539 .block_erase = spi_block_erase_60,
4540 }, {
4541 .eraseblocks = { {4096 * 1024, 1} },
4542 .block_erase = spi_block_erase_c7,
4543 }
4544 },
4545 .printlock = spi_prettyprint_status_register_en25s_wp,
4546 .unlock = spi_disable_blockprotect_bp3_srwd,
4547 .write = spi_chip_write_256,
4548 .read = spi_chip_read,
4549 .voltage = {1650, 1950},
4550 },
4551
4552 {
4553 .vendor = "Eon",
4554 .name = "EN25S64",
4555 .bustype = BUS_SPI,
4556 .manufacture_id = EON_ID_NOPREFIX,
4557 .model_id = EON_EN25S64,
4558 .total_size = 8192,
4559 .page_size = 256,
4560 /* OTP: 512B total; enter 0x3A */
4561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4562 .tested = TEST_UNTESTED,
4563 .probe = probe_spi_rdid,
4564 .probe_timing = TIMING_ZERO,
4565 .block_erasers = {
4566 {
4567 .eraseblocks = { {4 * 1024, 2048} },
4568 .block_erase = spi_block_erase_20,
4569 }, {
4570 .eraseblocks = { {64 * 1024, 128} },
4571 .block_erase = spi_block_erase_d8,
4572 }, {
4573 .eraseblocks = { {8192 * 1024, 1} },
4574 .block_erase = spi_block_erase_60,
4575 }, {
4576 .eraseblocks = { {8192 * 1024, 1} },
4577 .block_erase = spi_block_erase_c7,
4578 }
4579 },
4580 .printlock = spi_prettyprint_status_register_en25s_wp,
4581 .unlock = spi_disable_blockprotect_bp3_srwd,
4582 .write = spi_chip_write_256,
4583 .read = spi_chip_read,
4584 .voltage = {1650, 1950},
4585 },
4586
4587 {
4588 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004589 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004590 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004591 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004592 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004593 .total_size = 128,
4594 .page_size = 128,
4595 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004596 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004597 .probe = probe_jedec,
4598 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4599 .block_erasers =
4600 {
4601 {
4602 .eraseblocks = { {16 * 1024, 8} },
4603 .block_erase = erase_sector_jedec,
4604 },
4605 {
4606 .eraseblocks = { {128 * 1024, 1} },
4607 .block_erase = erase_chip_block_jedec,
4608 },
4609 },
4610 .write = write_jedec_1,
4611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004612 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004613 },
4614
4615 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004616 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004617 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004619 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004620 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004621 .total_size = 256,
4622 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004623 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004624 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004625 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004627 .block_erasers =
4628 {
4629 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004630 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004631 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004632 {8 * 1024, 2},
4633 {32 * 1024, 1},
4634 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004635 },
4636 .block_erase = erase_sector_jedec,
4637 }, {
4638 .eraseblocks = { {256 * 1024, 1} },
4639 .block_erase = erase_chip_block_jedec,
4640 },
4641 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004642 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004644 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004645 },
4646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004647 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004648 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004649 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004651 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004652 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004653 .total_size = 256,
4654 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004655 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004656 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004657 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004659 .block_erasers =
4660 {
4661 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004662 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004663 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004664 {32 * 1024, 1},
4665 {8 * 1024, 2},
4666 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004667 },
4668 .block_erase = erase_sector_jedec,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = erase_chip_block_jedec,
4672 },
4673 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004674 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004676 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004677 },
4678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004679 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004680 .vendor = "Eon",
4681 .name = "EN29LV640B",
4682 .bustype = BUS_PARALLEL,
4683 .manufacture_id = EON_ID,
4684 .model_id = EON_EN29LV640B,
4685 .total_size = 8192,
4686 .page_size = 8192,
4687 .feature_bits = 0,
4688 .tested = TEST_OK_PREW,
4689 .probe = probe_en29lv640b,
4690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4691 .block_erasers =
4692 {
4693 {
4694 .eraseblocks = {
4695 {8 * 1024, 8},
4696 {64 * 1024, 127},
4697 },
4698 .block_erase = block_erase_en29lv640b,
4699 }, {
4700 .eraseblocks = { {8 * 1024 * 1024, 1} },
4701 .block_erase = block_erase_chip_en29lv640b,
4702 },
4703 },
4704 .write = write_en29lv640b,
4705 .read = read_memmapped,
4706 .voltage = {2700, 3600},
4707 },
4708
4709 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004710 .vendor = "Fujitsu",
4711 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004712 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004713 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004714 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004715 .total_size = 512,
4716 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004717 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004718 .tested = TEST_UNTESTED,
4719 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004720 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004721 .block_erasers =
4722 {
4723 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004724 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004725 {16 * 1024, 1},
4726 {8 * 1024, 2},
4727 {32 * 1024, 1},
4728 {64 * 1024, 7},
4729 },
Sean Nelson35727f72010-01-28 23:55:12 +00004730 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004731 }, {
4732 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004733 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004734 },
4735 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004736 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004738 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004739 },
4740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004741 {
4742 .vendor = "Fujitsu",
4743 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004744 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004745 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004746 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004747 .total_size = 512,
4748 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004750 .tested = TEST_UNTESTED,
4751 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004752 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004753 .block_erasers =
4754 {
4755 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004756 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004757 {64 * 1024, 7},
4758 {32 * 1024, 1},
4759 {8 * 1024, 2},
4760 {16 * 1024, 1},
4761 },
Sean Nelson35727f72010-01-28 23:55:12 +00004762 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004763 }, {
4764 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004765 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004766 },
4767 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004768 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004769 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004770 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004771 },
4772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004773 {
Sean Nelson35727f72010-01-28 23:55:12 +00004774 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004775 .vendor = "Fujitsu",
4776 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004777 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004778 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004779 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004780 .total_size = 512,
4781 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004782 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004783 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004784 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004785 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004786 .block_erasers =
4787 {
4788 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004789 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004790 {16 * 1024, 1},
4791 {8 * 1024, 2},
4792 {32 * 1024, 1},
4793 {64 * 1024, 7},
4794 },
4795 .block_erase = block_erase_m29f400bt,
4796 }, {
4797 .eraseblocks = { {512 * 1024, 1} },
4798 .block_erase = block_erase_chip_m29f400bt,
4799 },
4800 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004801 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004802 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004803 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004804 },
4805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 {
4807 .vendor = "Fujitsu",
4808 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004811 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004812 .total_size = 512,
4813 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004814 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004815 .tested = TEST_UNTESTED,
4816 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004817 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004818 .block_erasers =
4819 {
4820 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004821 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004822 {64 * 1024, 7},
4823 {32 * 1024, 1},
4824 {8 * 1024, 2},
4825 {16 * 1024, 1},
4826 },
4827 .block_erase = block_erase_m29f400bt,
4828 }, {
4829 .eraseblocks = { {512 * 1024, 1} },
4830 .block_erase = block_erase_chip_m29f400bt,
4831 },
4832 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004833 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004834 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004835 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004836 },
4837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004839 .vendor = "Fujitsu",
4840 .name = "MBM29LV160BE",
4841 .bustype = BUS_PARALLEL,
4842 .manufacture_id = FUJITSU_ID,
4843 .model_id = FUJITSU_MBM29LV160BE,
4844 .total_size = 2 * 1024,
4845 .page_size = 0,
4846 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4847 .tested = TEST_UNTESTED,
4848 .probe = probe_m29f400bt,
4849 .probe_timing = TIMING_IGNORED,
4850 .block_erasers =
4851 {
4852 {
4853 .eraseblocks = {
4854 {16 * 1024, 1},
4855 {8 * 1024, 2},
4856 {32 * 1024, 1},
4857 {64 * 1024, 31},
4858 },
4859 .block_erase = block_erase_m29f400bt,
4860 }, {
4861 .eraseblocks = { {2048 * 1024, 1} },
4862 .block_erase = block_erase_chip_m29f400bt,
4863 },
4864 },
4865 .write = write_m29f400bt, /* Supports a fast mode too */
4866 .read = read_memmapped,
4867 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4868 },
4869
4870 {
4871 .vendor = "Fujitsu",
4872 .name = "MBM29LV160TE",
4873 .bustype = BUS_PARALLEL,
4874 .manufacture_id = FUJITSU_ID,
4875 .model_id = FUJITSU_MBM29LV160TE,
4876 .total_size = 2 * 1024,
4877 .page_size = 0,
4878 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4879 .tested = TEST_UNTESTED,
4880 .probe = probe_m29f400bt,
4881 .probe_timing = TIMING_IGNORED,
4882 .block_erasers =
4883 {
4884 {
4885 .eraseblocks = {
4886 {64 * 1024, 31},
4887 {32 * 1024, 1},
4888 {8 * 1024, 2},
4889 {16 * 1024, 1},
4890 },
4891 .block_erase = block_erase_m29f400bt,
4892 }, {
4893 .eraseblocks = { {2048 * 1024, 1} },
4894 .block_erase = block_erase_chip_m29f400bt,
4895 },
4896 },
4897 .write = write_m29f400bt, /* Supports a fast mode too */
4898 .read = read_memmapped,
4899 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4900 },
4901
4902 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004903 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004904 .name = "GD25LQ32",
4905 .bustype = BUS_SPI,
4906 .manufacture_id = GIGADEVICE_ID,
4907 .model_id = GIGADEVICE_GD25LQ32,
4908 .total_size = 4096,
4909 .page_size = 256,
4910 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4912 .tested = TEST_OK_PREW,
4913 .probe = probe_spi_rdid,
4914 .probe_timing = TIMING_ZERO,
4915 .block_erasers =
4916 {
4917 {
4918 .eraseblocks = { {4 * 1024, 1024} },
4919 .block_erase = spi_block_erase_20,
4920 }, {
4921 .eraseblocks = { {32 * 1024, 128} },
4922 .block_erase = spi_block_erase_52,
4923 }, {
4924 .eraseblocks = { {64 * 1024, 64} },
4925 .block_erase = spi_block_erase_d8,
4926 }, {
4927 .eraseblocks = { {4 * 1024 * 1024, 1} },
4928 .block_erase = spi_block_erase_60,
4929 }, {
4930 .eraseblocks = { {4 * 1024 * 1024, 1} },
4931 .block_erase = spi_block_erase_c7,
4932 }
4933 },
4934 .printlock = spi_prettyprint_status_register_default_bp4,
4935 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4936 .write = spi_chip_write_256,
4937 .read = spi_chip_read,
4938 .voltage = {1700, 1950},
4939 },
4940
4941 {
4942 .vendor = "GigaDevice",
4943 .name = "GD25Q512",
4944 .bustype = BUS_SPI,
4945 .manufacture_id = GIGADEVICE_ID,
4946 .model_id = GIGADEVICE_GD25Q512,
4947 .total_size = 64,
4948 .page_size = 256,
4949 .feature_bits = FEATURE_WRSR_WREN,
4950 .tested = TEST_UNTESTED,
4951 .probe = probe_spi_rdid,
4952 .probe_timing = TIMING_ZERO,
4953 .block_erasers = {
4954 {
4955 .eraseblocks = { {4 * 1024, 16} },
4956 .block_erase = spi_block_erase_20,
4957 }, {
4958 .eraseblocks = { {32 * 1024, 2} },
4959 .block_erase = spi_block_erase_52,
4960 }, {
4961 .eraseblocks = { {64 * 1024, 1} },
4962 .block_erase = spi_block_erase_60,
4963 }, {
4964 .eraseblocks = { {64 * 1024, 1} },
4965 .block_erase = spi_block_erase_c7,
4966 }
4967 },
4968 .printlock = spi_prettyprint_status_register_default_bp4,
4969 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4970 .write = spi_chip_write_256,
4971 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4972 .voltage = {2700, 3600},
4973 },
4974
4975 {
4976 .vendor = "GigaDevice",
4977 .name = "GD25Q10",
4978 .bustype = BUS_SPI,
4979 .manufacture_id = GIGADEVICE_ID,
4980 .model_id = GIGADEVICE_GD25Q10,
4981 .total_size = 128,
4982 .page_size = 256,
4983 .feature_bits = FEATURE_WRSR_WREN,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
4986 .probe_timing = TIMING_ZERO,
4987 .block_erasers = {
4988 {
4989 .eraseblocks = { {4 * 1024, 32} },
4990 .block_erase = spi_block_erase_20,
4991 }, {
4992 .eraseblocks = { {32 * 1024, 4} },
4993 .block_erase = spi_block_erase_52,
4994 }, {
4995 .eraseblocks = { {64 * 1024, 2} },
4996 .block_erase = spi_block_erase_d8,
4997 }, {
4998 .eraseblocks = { {128 * 1024, 1} },
4999 .block_erase = spi_block_erase_60,
5000 }, {
5001 .eraseblocks = { {128 * 1024, 1} },
5002 .block_erase = spi_block_erase_c7,
5003 }
5004 },
5005 .printlock = spi_prettyprint_status_register_default_bp4,
5006 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5007 .write = spi_chip_write_256,
5008 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5009 .voltage = {2700, 3600},
5010 },
5011
5012 {
5013 .vendor = "GigaDevice",
5014 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005015 .bustype = BUS_SPI,
5016 .manufacture_id = GIGADEVICE_ID,
5017 .model_id = GIGADEVICE_GD25Q20,
5018 .total_size = 256,
5019 .page_size = 256,
5020 .feature_bits = FEATURE_WRSR_WREN,
5021 .tested = TEST_UNTESTED,
5022 .probe = probe_spi_rdid,
5023 .probe_timing = TIMING_ZERO,
5024 .block_erasers =
5025 {
5026 {
5027 .eraseblocks = { {4 * 1024, 64} },
5028 .block_erase = spi_block_erase_20,
5029 }, {
5030 .eraseblocks = { {32 * 1024, 8} },
5031 .block_erase = spi_block_erase_52,
5032 }, {
5033 .eraseblocks = { {64 * 1024, 4} },
5034 .block_erase = spi_block_erase_d8,
5035 }, {
5036 .eraseblocks = { {256 * 1024, 1} },
5037 .block_erase = spi_block_erase_60,
5038 }, {
5039 .eraseblocks = { {256 * 1024, 1} },
5040 .block_erase = spi_block_erase_c7,
5041 }
5042 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005043 .printlock = spi_prettyprint_status_register_default_bp4,
5044 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005045 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005046 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005047 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005048 },
5049
5050 {
5051 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005052 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005053 .bustype = BUS_SPI,
5054 .manufacture_id = GIGADEVICE_ID,
5055 .model_id = GIGADEVICE_GD25Q40,
5056 .total_size = 512,
5057 .page_size = 256,
5058 .feature_bits = FEATURE_WRSR_WREN,
5059 .tested = TEST_UNTESTED,
5060 .probe = probe_spi_rdid,
5061 .probe_timing = TIMING_ZERO,
5062 .block_erasers =
5063 {
5064 {
5065 .eraseblocks = { {4 * 1024, 128} },
5066 .block_erase = spi_block_erase_20,
5067 }, {
5068 .eraseblocks = { {32 * 1024, 16} },
5069 .block_erase = spi_block_erase_52,
5070 }, {
5071 .eraseblocks = { {64 * 1024, 8} },
5072 .block_erase = spi_block_erase_d8,
5073 }, {
5074 .eraseblocks = { {512 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {512 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005081 .printlock = spi_prettyprint_status_register_default_bp4,
5082 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005083 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005085 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005086 },
5087
5088 {
5089 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005090 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005091 .bustype = BUS_SPI,
5092 .manufacture_id = GIGADEVICE_ID,
5093 .model_id = GIGADEVICE_GD25Q80,
5094 .total_size = 1024,
5095 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005096 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5098 .tested = TEST_OK_PREW,
5099 .probe = probe_spi_rdid,
5100 .probe_timing = TIMING_ZERO,
5101 .block_erasers =
5102 {
5103 {
5104 .eraseblocks = { {4 * 1024, 256} },
5105 .block_erase = spi_block_erase_20,
5106 }, {
5107 .eraseblocks = { {32 * 1024, 32} },
5108 .block_erase = spi_block_erase_52,
5109 }, {
5110 .eraseblocks = { {64 * 1024, 16} },
5111 .block_erase = spi_block_erase_d8,
5112 }, {
5113 .eraseblocks = { {1024 * 1024, 1} },
5114 .block_erase = spi_block_erase_60,
5115 }, {
5116 .eraseblocks = { {1024 * 1024, 1} },
5117 .block_erase = spi_block_erase_c7,
5118 }
5119 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005120 .printlock = spi_prettyprint_status_register_default_bp4,
5121 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005122 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005123 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005124 .voltage = {2700, 3600},
5125 },
5126
5127 {
5128 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005129 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005130 .bustype = BUS_SPI,
5131 .manufacture_id = GIGADEVICE_ID,
5132 .model_id = GIGADEVICE_GD25Q16,
5133 .total_size = 2048,
5134 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005135 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5137 .tested = TEST_UNTESTED,
5138 .probe = probe_spi_rdid,
5139 .probe_timing = TIMING_ZERO,
5140 .block_erasers =
5141 {
5142 {
5143 .eraseblocks = { {4 * 1024, 512} },
5144 .block_erase = spi_block_erase_20,
5145 }, {
5146 .eraseblocks = { {32 * 1024, 64} },
5147 .block_erase = spi_block_erase_52,
5148 }, {
5149 .eraseblocks = { {64 * 1024, 32} },
5150 .block_erase = spi_block_erase_d8,
5151 }, {
5152 .eraseblocks = { {2 * 1024 * 1024, 1} },
5153 .block_erase = spi_block_erase_60,
5154 }, {
5155 .eraseblocks = { {2 * 1024 * 1024, 1} },
5156 .block_erase = spi_block_erase_c7,
5157 }
5158 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005159 .printlock = spi_prettyprint_status_register_default_bp4,
5160 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005162 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005163 .voltage = {2700, 3600},
5164 },
5165
5166 {
5167 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005168 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005169 .bustype = BUS_SPI,
5170 .manufacture_id = GIGADEVICE_ID,
5171 .model_id = GIGADEVICE_GD25Q32,
5172 .total_size = 4096,
5173 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005174 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005176 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005177 .probe = probe_spi_rdid,
5178 .probe_timing = TIMING_ZERO,
5179 .block_erasers =
5180 {
5181 {
5182 .eraseblocks = { {4 * 1024, 1024} },
5183 .block_erase = spi_block_erase_20,
5184 }, {
5185 .eraseblocks = { {32 * 1024, 128} },
5186 .block_erase = spi_block_erase_52,
5187 }, {
5188 .eraseblocks = { {64 * 1024, 64} },
5189 .block_erase = spi_block_erase_d8,
5190 }, {
5191 .eraseblocks = { {4 * 1024 * 1024, 1} },
5192 .block_erase = spi_block_erase_60,
5193 }, {
5194 .eraseblocks = { {4 * 1024 * 1024, 1} },
5195 .block_erase = spi_block_erase_c7,
5196 }
5197 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005198 .printlock = spi_prettyprint_status_register_default_bp4,
5199 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005200 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005201 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005202 .voltage = {2700, 3600},
5203 },
5204
5205 {
5206 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005207 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005208 .bustype = BUS_SPI,
5209 .manufacture_id = GIGADEVICE_ID,
5210 .model_id = GIGADEVICE_GD25Q64,
5211 .total_size = 8192,
5212 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005213 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005215 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005216 .probe = probe_spi_rdid,
5217 .probe_timing = TIMING_ZERO,
5218 .block_erasers =
5219 {
5220 {
5221 .eraseblocks = { {4 * 1024, 2048} },
5222 .block_erase = spi_block_erase_20,
5223 }, {
5224 .eraseblocks = { {32 * 1024, 256} },
5225 .block_erase = spi_block_erase_52,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 128} },
5228 .block_erase = spi_block_erase_d8,
5229 }, {
5230 .eraseblocks = { {8 * 1024 * 1024, 1} },
5231 .block_erase = spi_block_erase_60,
5232 }, {
5233 .eraseblocks = { {8 * 1024 * 1024, 1} },
5234 .block_erase = spi_block_erase_c7,
5235 }
5236 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005237 .printlock = spi_prettyprint_status_register_default_bp4,
5238 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005239 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005240 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005241 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005242 },
5243
5244 {
5245 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005246 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005247 .bustype = BUS_SPI,
5248 .manufacture_id = GIGADEVICE_ID,
5249 .model_id = GIGADEVICE_GD25Q128,
5250 .total_size = 16384,
5251 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005252 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5254 .tested = TEST_UNTESTED,
5255 .probe = probe_spi_rdid,
5256 .probe_timing = TIMING_ZERO,
5257 .block_erasers =
5258 {
5259 {
5260 .eraseblocks = { {4 * 1024, 4096} },
5261 .block_erase = spi_block_erase_20,
5262 }, {
5263 .eraseblocks = { {32 * 1024, 512} },
5264 .block_erase = spi_block_erase_52,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 256} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {16 * 1024 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {16 * 1024 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005276 .printlock = spi_prettyprint_status_register_default_bp4,
5277 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5280 .voltage = {2700, 3600},
5281 },
5282
5283 {
5284 .vendor = "GigaDevice",
5285 .name = "GD25T80",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = GIGADEVICE_ID,
5288 .model_id = GIGADEVICE_GD25T80,
5289 .total_size = 1024,
5290 .page_size = 256,
5291 /* OTP: 256B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
5296 .block_erasers = {
5297 {
5298 .eraseblocks = { {4 * 1024, 256} },
5299 .block_erase = spi_block_erase_20,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 16} },
5302 .block_erase = spi_block_erase_52,
5303 }, {
5304 .eraseblocks = { {64 * 1024, 16} },
5305 .block_erase = spi_block_erase_d8,
5306 }, {
5307 .eraseblocks = { {1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_60,
5309 }, {
5310 .eraseblocks = { {1024 * 1024, 1} },
5311 .block_erase = spi_block_erase_c7,
5312 }
5313 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005314 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005315 .unlock = spi_disable_blockprotect,
5316 .write = spi_chip_write_256,
5317 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005318 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005319 },
5320
5321 {
David Borgc96a8bd2010-06-21 16:12:22 +00005322 .vendor = "Hyundai",
5323 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005324 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005325 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005326 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005327 .total_size = 256,
5328 .page_size = 256 * 1024,
5329 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005330 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005331 .probe = probe_jedec,
5332 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5333 .block_erasers =
5334 {
5335 {
5336 .eraseblocks = {
5337 {64 * 1024, 3},
5338 {32 * 1024, 1},
5339 {8 * 1024, 2},
5340 {16 * 1024, 1},
5341 },
5342 .block_erase = erase_sector_jedec,
5343 }, {
5344 .eraseblocks = { {256 * 1024, 1} },
5345 .block_erase = erase_chip_block_jedec,
5346 },
5347 },
5348 .write = write_jedec_1,
5349 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005350 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005351 },
5352
5353 {
5354 .vendor = "Hyundai",
5355 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005356 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005357 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005358 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005359 .total_size = 256,
5360 .page_size = 256 * 1024,
5361 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5362 .tested = TEST_UNTESTED,
5363 .probe = probe_jedec,
5364 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5365 .block_erasers =
5366 {
5367 {
5368 .eraseblocks = {
5369 {16 * 1024, 1},
5370 {8 * 1024, 2},
5371 {32 * 1024, 1},
5372 {64 * 1024, 3},
5373 },
5374 .block_erase = erase_sector_jedec,
5375 }, {
5376 .eraseblocks = { {256 * 1024, 1} },
5377 .block_erase = erase_chip_block_jedec,
5378 },
5379 },
5380 .write = write_jedec_1,
5381 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005382 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005383 },
5384
5385 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005386 .vendor = "Hyundai",
5387 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005388 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005389 .manufacture_id = HYUNDAI_ID,
5390 .model_id = HYUNDAI_HY29F040A,
5391 .total_size = 512,
5392 .page_size = 64 * 1024,
5393 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5394 .tested = TEST_UNTESTED,
5395 .probe = probe_jedec,
5396 .probe_timing = TIMING_ZERO,
5397 .block_erasers =
5398 {
5399 {
5400 .eraseblocks = { {64 * 1024, 8} },
5401 .block_erase = erase_sector_jedec,
5402 }, {
5403 .eraseblocks = { {512 * 1024, 1} },
5404 .block_erase = erase_chip_block_jedec,
5405 },
5406 },
5407 .write = write_jedec_1,
5408 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005409 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005410 },
5411
5412 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005413 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005414 .name = "25F160S33B8",
5415 .bustype = BUS_SPI,
5416 .manufacture_id = INTEL_ID,
5417 .model_id = INTEL_25F160S33B8,
5418 .total_size = 2048,
5419 .page_size = 256,
5420 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5422 .tested = TEST_UNTESTED,
5423 .probe = probe_spi_rdid,
5424 .probe_timing = TIMING_ZERO,
5425 .block_erasers =
5426 {
5427 {
5428 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5429 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5430 * have no effect on the memory contents, but sets a flag in the SR.
5431 .eraseblocks = {
5432 {8 * 1024, 8},
5433 {64 * 1024, 31} // inaccessible
5434 },
5435 .block_erase = spi_block_erase_40,
5436 }, { */
5437 .eraseblocks = { {64 * 1024, 32} },
5438 .block_erase = spi_block_erase_d8,
5439 }, {
5440 .eraseblocks = { {2 * 1024 * 1024, 1} },
5441 .block_erase = spi_block_erase_c7,
5442 }
5443 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005444 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5445 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005446 .write = spi_chip_write_256,
5447 .read = spi_chip_read, /* also fast read 0x0B */
5448 .voltage = {2700, 3600},
5449 },
5450
5451 {
5452 .vendor = "Intel",
5453 .name = "25F160S33T8",
5454 .bustype = BUS_SPI,
5455 .manufacture_id = INTEL_ID,
5456 .model_id = INTEL_25F160S33T8,
5457 .total_size = 2048,
5458 .page_size = 256,
5459 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5461 .tested = TEST_UNTESTED,
5462 .probe = probe_spi_rdid,
5463 .probe_timing = TIMING_ZERO,
5464 .block_erasers =
5465 {
5466 {
5467 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5468 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5469 * have no effect on the memory contents, but sets a flag in the SR.
5470 .eraseblocks = {
5471 {64 * 1024, 31}, // inaccessible
5472 {8 * 1024, 8}
5473 },
5474 .block_erase = spi_block_erase_40,
5475 }, { */
5476 .eraseblocks = { {64 * 1024, 32} },
5477 .block_erase = spi_block_erase_d8,
5478 }, {
5479 .eraseblocks = { {2 * 1024 * 1024, 1} },
5480 .block_erase = spi_block_erase_c7,
5481 }
5482 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005483 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5484 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005485 .write = spi_chip_write_256,
5486 .read = spi_chip_read, /* also fast read 0x0B */
5487 .voltage = {2700, 3600},
5488 },
5489
5490 {
5491 .vendor = "Intel",
5492 .name = "25F320S33B8",
5493 .bustype = BUS_SPI,
5494 .manufacture_id = INTEL_ID,
5495 .model_id = INTEL_25F320S33B8,
5496 .total_size = 4096,
5497 .page_size = 256,
5498 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5500 .tested = TEST_UNTESTED,
5501 .probe = probe_spi_rdid,
5502 .probe_timing = TIMING_ZERO,
5503 .block_erasers =
5504 {
5505 {
5506 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5507 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5508 * have no effect on the memory contents, but sets a flag in the SR.
5509 .eraseblocks = {
5510 {8 * 1024, 8},
5511 {64 * 1024, 63} // inaccessible
5512 },
5513 .block_erase = spi_block_erase_40,
5514 }, { */
5515 .eraseblocks = { {64 * 1024, 64} },
5516 .block_erase = spi_block_erase_d8,
5517 }, {
5518 .eraseblocks = { {4 * 1024 * 1024, 1} },
5519 .block_erase = spi_block_erase_c7,
5520 }
5521 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005522 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5523 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005524 .write = spi_chip_write_256,
5525 .read = spi_chip_read, /* also fast read 0x0B */
5526 .voltage = {2700, 3600},
5527 },
5528
5529 {
5530 .vendor = "Intel",
5531 .name = "25F320S33T8",
5532 .bustype = BUS_SPI,
5533 .manufacture_id = INTEL_ID,
5534 .model_id = INTEL_25F320S33T8,
5535 .total_size = 4096,
5536 .page_size = 256,
5537 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5539 .tested = TEST_UNTESTED,
5540 .probe = probe_spi_rdid,
5541 .probe_timing = TIMING_ZERO,
5542 .block_erasers =
5543 {
5544 {
5545 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5546 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5547 * have no effect on the memory contents, but sets a flag in the SR.
5548 .eraseblocks = {
5549 {64 * 1024, 63}, // inaccessible
5550 {8 * 1024, 8}
5551 },
5552 .block_erase = spi_block_erase_40,
5553 }, { */
5554 .eraseblocks = { {64 * 1024, 64} },
5555 .block_erase = spi_block_erase_d8,
5556 }, {
5557 .eraseblocks = { {4 * 1024 * 1024, 1} },
5558 .block_erase = spi_block_erase_c7,
5559 }
5560 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005561 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5562 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005563 .write = spi_chip_write_256,
5564 .read = spi_chip_read, /* also fast read 0x0B */
5565 .voltage = {2700, 3600},
5566 },
5567
5568 {
5569 .vendor = "Intel",
5570 .name = "25F640S33B8",
5571 .bustype = BUS_SPI,
5572 .manufacture_id = INTEL_ID,
5573 .model_id = INTEL_25F640S33B8,
5574 .total_size = 8192,
5575 .page_size = 256,
5576 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5578 .tested = TEST_UNTESTED,
5579 .probe = probe_spi_rdid,
5580 .probe_timing = TIMING_ZERO,
5581 .block_erasers =
5582 {
5583 {
5584 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5585 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5586 * have no effect on the memory contents, but sets a flag in the SR.
5587 .eraseblocks = {
5588 {8 * 1024, 8},
5589 {64 * 1024, 127} // inaccessible
5590 },
5591 .block_erase = spi_block_erase_40,
5592 }, { */
5593 .eraseblocks = { {64 * 1024, 128} },
5594 .block_erase = spi_block_erase_d8,
5595 }, {
5596 .eraseblocks = { {8 * 1024 * 1024, 1} },
5597 .block_erase = spi_block_erase_c7,
5598 }
5599 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005600 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5601 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005602 .write = spi_chip_write_256,
5603 .read = spi_chip_read, /* also fast read 0x0B */
5604 .voltage = {2700, 3600},
5605 },
5606
5607 {
5608 .vendor = "Intel",
5609 .name = "25F640S33T8",
5610 .bustype = BUS_SPI,
5611 .manufacture_id = INTEL_ID,
5612 .model_id = INTEL_25F640S33T8,
5613 .total_size = 8192,
5614 .page_size = 256,
5615 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5616 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5617 .tested = TEST_UNTESTED,
5618 .probe = probe_spi_rdid,
5619 .probe_timing = TIMING_ZERO,
5620 .block_erasers =
5621 {
5622 {
5623 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5624 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5625 * have no effect on the memory contents, but sets a flag in the SR.
5626 .eraseblocks = {
5627 {64 * 1024, 127}, // inaccessible
5628 {8 * 1024, 8}
5629 },
5630 .block_erase = spi_block_erase_40,
5631 }, { */
5632 .eraseblocks = { {64 * 1024, 128} },
5633 .block_erase = spi_block_erase_d8,
5634 }, {
5635 .eraseblocks = { {8 * 1024 * 1024, 1} },
5636 .block_erase = spi_block_erase_c7,
5637 }
5638 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005639 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5640 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005641 .write = spi_chip_write_256,
5642 .read = spi_chip_read, /* also fast read 0x0B */
5643 .voltage = {2700, 3600},
5644 },
5645
5646 {
5647 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005648 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005649 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005650 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005651 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005652 .total_size = 128,
5653 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005654 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005655 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005657 .block_erasers =
5658 {
5659 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005660 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005661 {8 * 1024, 1},
5662 {4 * 1024, 2},
5663 {112 * 1024, 1},
5664 },
Sean Nelson28accc22010-03-19 18:47:06 +00005665 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005666 },
5667 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005668 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005669 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005670 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005671 },
5672
5673 {
5674 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005675 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005676 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005677 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005678 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005679 .total_size = 128,
5680 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005681 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005682 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005683 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005684 .block_erasers =
5685 {
5686 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005687 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005688 {112 * 1024, 1},
5689 {4 * 1024, 2},
5690 {8 * 1024, 1},
5691 },
Sean Nelson28accc22010-03-19 18:47:06 +00005692 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005693 },
5694 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005695 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005697 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005698 },
5699
5700 {
5701 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005702 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005703 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005704 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005705 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005706 .total_size = 256,
5707 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005708 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005709 .probe = probe_82802ab,
5710 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5711 .block_erasers =
5712 {
5713 {
5714 .eraseblocks = {
5715 {128 * 1024, 1},
5716 {96 * 1024, 1},
5717 {8 * 1024, 2},
5718 {16 * 1024, 1},
5719 },
5720 .block_erase = erase_block_82802ab,
5721 },
5722 },
5723 .write = write_82802ab,
5724 .read = read_memmapped,
5725 },
5726
5727 {
5728 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005729 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005730 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005731 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005732 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005733 .total_size = 512,
5734 .page_size = 256,
5735 .tested = TEST_UNTESTED,
5736 .probe = probe_82802ab,
5737 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005738 .block_erasers =
5739 {
5740 {
5741 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005742 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005743 },
5744 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005745 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005746 .write = write_82802ab,
5747 .read = read_memmapped,
5748 },
5749
5750 {
5751 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005752 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005753 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005754 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005755 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005756 .total_size = 512,
5757 .page_size = 128 * 1024, /* maximal block size */
5758 .tested = TEST_UNTESTED,
5759 .probe = probe_82802ab,
5760 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5761 .block_erasers =
5762 {
5763 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005764 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005765 {16 * 1024, 1},
5766 {8 * 1024, 2},
5767 {96 * 1024, 1},
5768 {128 * 1024, 3},
5769 },
5770 .block_erase = erase_block_82802ab,
5771 },
5772 },
5773 .write = write_82802ab,
5774 .read = read_memmapped,
5775 },
5776
5777 {
5778 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005779 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005780 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005781 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005782 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005783 .total_size = 512,
5784 .page_size = 128 * 1024, /* maximal block size */
5785 .tested = TEST_UNTESTED,
5786 .probe = probe_82802ab,
5787 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5788 .block_erasers =
5789 {
5790 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005791 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005792 {128 * 1024, 3},
5793 {96 * 1024, 1},
5794 {8 * 1024, 2},
5795 {16 * 1024, 1},
5796 },
5797 .block_erase = erase_block_82802ab,
5798 },
5799 },
5800 .write = write_82802ab,
5801 .read = read_memmapped,
5802 },
5803
5804 {
5805 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005806 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005807 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005808 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005809 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005810 .total_size = 512,
5811 .page_size = 128 * 1024, /* maximal block size */
5812 .feature_bits = FEATURE_ADDR_SHIFTED,
5813 .tested = TEST_UNTESTED,
5814 .probe = probe_82802ab,
5815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5816 .block_erasers =
5817 {
5818 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005819 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005820 {16 * 1024, 1},
5821 {8 * 1024, 2},
5822 {96 * 1024, 1},
5823 {128 * 1024, 3},
5824 },
5825 .block_erase = erase_block_82802ab,
5826 },
5827 },
5828 .write = write_82802ab,
5829 .read = read_memmapped,
5830 },
5831
5832 {
5833 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005834 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005835 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005836 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005837 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005838 .total_size = 512,
5839 .page_size = 128 * 1024, /* maximal block size */
5840 .feature_bits = FEATURE_ADDR_SHIFTED,
5841 .tested = TEST_UNTESTED,
5842 .probe = probe_82802ab,
5843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5844 .block_erasers =
5845 {
5846 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005847 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005848 {128 * 1024, 3},
5849 {96 * 1024, 1},
5850 {8 * 1024, 2},
5851 {16 * 1024, 1},
5852 },
5853 .block_erase = erase_block_82802ab,
5854 },
5855 },
5856 .write = write_82802ab,
5857 .read = read_memmapped,
5858 },
5859
5860 {
5861 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005862 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005863 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005864 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005865 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005866 .total_size = 512,
5867 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005868 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005869 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005870 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005871 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005872 .block_erasers =
5873 {
5874 {
5875 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005876 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005877 },
5878 },
Sean Nelson28accc22010-03-19 18:47:06 +00005879 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005880 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005882 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005883 },
5884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005885 {
5886 .vendor = "Intel",
5887 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005888 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005889 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005890 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005891 .total_size = 1024,
5892 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005893 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005894 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005895 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005896 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005897 .block_erasers =
5898 {
5899 {
5900 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005901 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005902 },
5903 },
Sean Nelson28accc22010-03-19 18:47:06 +00005904 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005905 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005907 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005908 },
5909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005910 {
5911 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005912 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005913 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005914 .manufacture_id = MACRONIX_ID,
5915 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005916 .total_size = 64,
5917 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005918 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005919 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005920 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005921 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005922 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005923 .block_erasers =
5924 {
5925 {
5926 .eraseblocks = { {4 * 1024, 16} },
5927 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005928 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005929 .eraseblocks = { {64 * 1024, 1} },
5930 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005931 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005932 .eraseblocks = { {64 * 1024, 1} },
5933 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005934 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005935 .eraseblocks = { {64 * 1024, 1} },
5936 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005937 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005938 .eraseblocks = { {64 * 1024, 1} },
5939 .block_erase = spi_block_erase_c7,
5940 },
5941 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005942 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005943 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005944 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005945 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5946 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005947 },
5948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005949 {
5950 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005951 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005952 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005953 .manufacture_id = MACRONIX_ID,
5954 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005955 .total_size = 128,
5956 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005957 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005958 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005960 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005961 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005962 .block_erasers =
5963 {
5964 {
5965 .eraseblocks = { {4 * 1024, 32} },
5966 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005967 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005968 .eraseblocks = { {64 * 1024, 2} },
5969 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005970 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005971 .eraseblocks = { {128 * 1024, 1} },
5972 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005973 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005974 .eraseblocks = { {128 * 1024, 1} },
5975 .block_erase = spi_block_erase_c7,
5976 },
5977 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005978 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005979 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005980 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005981 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005982 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005983 },
5984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005985 {
5986 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005987 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005988 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005989 .manufacture_id = MACRONIX_ID,
5990 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005991 .total_size = 256,
5992 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005993 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005994 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005995 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005996 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005997 .block_erasers =
5998 {
5999 {
6000 .eraseblocks = { {4 * 1024, 64} },
6001 .block_erase = spi_block_erase_20,
6002 }, {
6003 .eraseblocks = { {64 * 1024, 4} },
6004 .block_erase = spi_block_erase_52,
6005 }, {
6006 .eraseblocks = { {64 * 1024, 4} },
6007 .block_erase = spi_block_erase_d8,
6008 }, {
6009 .eraseblocks = { {256 * 1024, 1} },
6010 .block_erase = spi_block_erase_60,
6011 }, {
6012 .eraseblocks = { {256 * 1024, 1} },
6013 .block_erase = spi_block_erase_c7,
6014 },
6015 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006016 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006017 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006018 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006019 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006020 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006021 },
6022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006023 {
6024 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006025 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006026 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006027 .manufacture_id = MACRONIX_ID,
6028 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006029 .total_size = 512,
6030 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006031 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006032 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006033 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006034 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006035 .block_erasers =
6036 {
6037 {
6038 .eraseblocks = { {4 * 1024, 128} },
6039 .block_erase = spi_block_erase_20,
6040 }, {
6041 .eraseblocks = { {64 * 1024, 8} },
6042 .block_erase = spi_block_erase_52,
6043 }, {
6044 .eraseblocks = { {64 * 1024, 8} },
6045 .block_erase = spi_block_erase_d8,
6046 }, {
6047 .eraseblocks = { {512 * 1024, 1} },
6048 .block_erase = spi_block_erase_60,
6049 }, {
6050 .eraseblocks = { {512 * 1024, 1} },
6051 .block_erase = spi_block_erase_c7,
6052 },
6053 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006054 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006055 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006056 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006057 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006058 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006059 },
6060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006061 {
6062 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006063 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006064 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006065 .manufacture_id = MACRONIX_ID,
6066 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006067 .total_size = 1024,
6068 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006069 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006070 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006071 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006072 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006073 .block_erasers =
6074 {
6075 {
6076 .eraseblocks = { {4 * 1024, 256} },
6077 .block_erase = spi_block_erase_20,
6078 }, {
6079 .eraseblocks = { {64 * 1024, 16} },
6080 .block_erase = spi_block_erase_52,
6081 }, {
6082 .eraseblocks = { {64 * 1024, 16} },
6083 .block_erase = spi_block_erase_d8,
6084 }, {
6085 .eraseblocks = { {1024 * 1024, 1} },
6086 .block_erase = spi_block_erase_60,
6087 }, {
6088 .eraseblocks = { {1024 * 1024, 1} },
6089 .block_erase = spi_block_erase_c7,
6090 },
6091 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006092 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006093 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006094 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006095 .read = spi_chip_read, /* Fast read (0x0B) supported */
6096 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006097 },
6098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006099 {
6100 .vendor = "Macronix",
6101 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006102 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006103 .manufacture_id = MACRONIX_ID,
6104 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006105 .total_size = 2048,
6106 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006107 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006108 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006109 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006110 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006111 .block_erasers =
6112 {
6113 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006114 .eraseblocks = { {64 * 1024, 32} },
6115 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006116 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006117 .eraseblocks = { {64 * 1024, 32} },
6118 .block_erase = spi_block_erase_d8,
6119 }, {
6120 .eraseblocks = { {2 * 1024 * 1024, 1} },
6121 .block_erase = spi_block_erase_60,
6122 }, {
6123 .eraseblocks = { {2 * 1024 * 1024, 1} },
6124 .block_erase = spi_block_erase_c7,
6125 },
6126 },
6127 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
6128 .unlock = spi_disable_blockprotect,
6129 .write = spi_chip_write_256,
6130 .read = spi_chip_read, /* Fast read (0x0B) supported */
6131 .voltage = {2700, 3600},
6132 },
6133
6134 {
6135 .vendor = "Macronix",
6136 .name = "MX25L1605A/MX25L1606E",
6137 .bustype = BUS_SPI,
6138 .manufacture_id = MACRONIX_ID,
6139 .model_id = MACRONIX_MX25L1605,
6140 .total_size = 2048,
6141 .page_size = 256,
6142 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6143 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6144 .tested = TEST_OK_PREW,
6145 .probe = probe_spi_rdid,
6146 .probe_timing = TIMING_ZERO,
6147 .block_erasers =
6148 {
6149 {
6150 .eraseblocks = { {4 * 1024, 512} },
6151 .block_erase = spi_block_erase_20,
6152 }, {
6153 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006154 .block_erase = spi_block_erase_52,
6155 }, {
6156 .eraseblocks = { {64 * 1024, 32} },
6157 .block_erase = spi_block_erase_d8,
6158 }, {
6159 .eraseblocks = { {2 * 1024 * 1024, 1} },
6160 .block_erase = spi_block_erase_60,
6161 }, {
6162 .eraseblocks = { {2 * 1024 * 1024, 1} },
6163 .block_erase = spi_block_erase_c7,
6164 },
6165 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006166 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006167 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006168 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006169 .read = spi_chip_read, /* Fast read (0x0B) supported */
6170 .voltage = {2700, 3600},
6171 },
6172
6173 {
6174 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006175 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006176 .bustype = BUS_SPI,
6177 .manufacture_id = MACRONIX_ID,
6178 .model_id = MACRONIX_MX25L1605,
6179 .total_size = 2048,
6180 .page_size = 256,
6181 .feature_bits = FEATURE_WRSR_WREN,
6182 .tested = TEST_OK_PREW,
6183 .probe = probe_spi_rdid,
6184 .probe_timing = TIMING_ZERO,
6185 .block_erasers =
6186 {
6187 {
6188 .eraseblocks = { {4 * 1024, 512} },
6189 .block_erase = spi_block_erase_20,
6190 }, {
6191 .eraseblocks = { {64 * 1024, 32} },
6192 .block_erase = spi_block_erase_d8,
6193 }, {
6194 .eraseblocks = { {2 * 1024 * 1024, 1} },
6195 .block_erase = spi_block_erase_60,
6196 }, {
6197 .eraseblocks = { {2 * 1024 * 1024, 1} },
6198 .block_erase = spi_block_erase_c7,
6199 },
6200 },
6201 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
6202 .unlock = spi_disable_blockprotect,
6203 .write = spi_chip_write_256,
6204 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006205 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006206 },
6207
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006208 {
6209 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006210 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006211 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006212 .manufacture_id = MACRONIX_ID,
6213 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006214 .total_size = 2048,
6215 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006216 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006218 .tested = TEST_UNTESTED,
6219 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006220 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006221 .block_erasers =
6222 {
6223 {
6224 .eraseblocks = { {4 * 1024, 512} },
6225 .block_erase = spi_block_erase_20,
6226 }, {
6227 .eraseblocks = { {64 * 1024, 32} },
6228 .block_erase = spi_block_erase_d8,
6229 }, {
6230 .eraseblocks = { {2 * 1024 * 1024, 1} },
6231 .block_erase = spi_block_erase_60,
6232 }, {
6233 .eraseblocks = { {2 * 1024 * 1024, 1} },
6234 .block_erase = spi_block_erase_c7,
6235 }
6236 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006237 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006238 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006239 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006240 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006241 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006242 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006243
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006244 {
6245 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006246 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006247 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006248 .manufacture_id = MACRONIX_ID,
6249 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006250 .total_size = 2048,
6251 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006252 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006254 .tested = TEST_UNTESTED,
6255 .probe = probe_spi_rdid,
6256 .probe_timing = TIMING_ZERO,
6257 .block_erasers =
6258 {
6259 {
6260 .eraseblocks = { {4 * 1024, 512} },
6261 .block_erase = spi_block_erase_20,
6262 }, {
6263 .eraseblocks = { {64 * 1024, 32} },
6264 .block_erase = spi_block_erase_d8,
6265 }, {
6266 .eraseblocks = { {2 * 1024 * 1024, 1} },
6267 .block_erase = spi_block_erase_60,
6268 }, {
6269 .eraseblocks = { {2 * 1024 * 1024, 1} },
6270 .block_erase = spi_block_erase_c7,
6271 }
6272 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006273 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006274 .unlock = spi_disable_blockprotect,
6275 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006276 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006277 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006278 },
6279
6280 {
6281 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006282 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006283 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006284 .manufacture_id = MACRONIX_ID,
6285 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006286 .total_size = 4096,
6287 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006288 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006289 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006290 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006291 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006292 .block_erasers =
6293 {
6294 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006295 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006296 .block_erase = spi_block_erase_20,
6297 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006299 .block_erase = spi_block_erase_d8,
6300 }, {
6301 .eraseblocks = { {4 * 1024 * 1024, 1} },
6302 .block_erase = spi_block_erase_60,
6303 }, {
6304 .eraseblocks = { {4 * 1024 * 1024, 1} },
6305 .block_erase = spi_block_erase_c7,
6306 },
6307 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006308 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006309 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006310 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006311 .read = spi_chip_read, /* Fast read (0x0B) supported */
6312 .voltage = {2700, 3600},
6313 },
6314
6315 {
6316 .vendor = "Macronix",
6317 .name = "MX25L3205D/MX25L3208D",
6318 .bustype = BUS_SPI,
6319 .manufacture_id = MACRONIX_ID,
6320 .model_id = MACRONIX_MX25L3205,
6321 .total_size = 4096,
6322 .page_size = 256,
6323 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6325 .tested = TEST_OK_PREW,
6326 .probe = probe_spi_rdid,
6327 .probe_timing = TIMING_ZERO,
6328 .block_erasers =
6329 {
6330 {
6331 .eraseblocks = { {4 * 1024, 1024} },
6332 .block_erase = spi_block_erase_20,
6333 }, {
6334 .eraseblocks = { {64 * 1024, 64} },
6335 .block_erase = spi_block_erase_d8,
6336 }, {
6337 .eraseblocks = { {4 * 1024 * 1024, 1} },
6338 .block_erase = spi_block_erase_60,
6339 }, {
6340 .eraseblocks = { {4 * 1024 * 1024, 1} },
6341 .block_erase = spi_block_erase_c7,
6342 },
6343 },
6344 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6345 .unlock = spi_disable_blockprotect,
6346 .write = spi_chip_write_256,
6347 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6348 .voltage = {2700, 3600},
6349 },
6350
6351 {
6352 .vendor = "Macronix",
6353 .name = "MX25L3206E",
6354 .bustype = BUS_SPI,
6355 .manufacture_id = MACRONIX_ID,
6356 .model_id = MACRONIX_MX25L3205,
6357 .total_size = 4096,
6358 .page_size = 256,
6359 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6361 .tested = TEST_OK_PREW,
6362 .probe = probe_spi_rdid,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 1024} },
6368 .block_erase = spi_block_erase_20,
6369 }, {
6370 .eraseblocks = { {64 * 1024, 64} },
6371 .block_erase = spi_block_erase_d8,
6372 }, {
6373 .eraseblocks = { {64 * 1024, 64} },
6374 .block_erase = spi_block_erase_52,
6375 }, {
6376 .eraseblocks = { {4 * 1024 * 1024, 1} },
6377 .block_erase = spi_block_erase_60,
6378 }, {
6379 .eraseblocks = { {4 * 1024 * 1024, 1} },
6380 .block_erase = spi_block_erase_c7,
6381 },
6382 },
6383 .printlock = spi_prettyprint_status_register_default_bp3,
6384 .unlock = spi_disable_blockprotect,
6385 .write = spi_chip_write_256,
6386 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006387 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006388 },
6389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006390 {
6391 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006392 .name = "MX25L3273E",
6393 .bustype = BUS_SPI,
6394 .manufacture_id = MACRONIX_ID,
6395 .model_id = MACRONIX_MX25L3205,
6396 .total_size = 4096,
6397 .page_size = 256,
6398 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6400 .tested = TEST_UNTESTED,
6401 .probe = probe_spi_rdid,
6402 .probe_timing = TIMING_ZERO,
6403 .block_erasers =
6404 {
6405 {
6406 .eraseblocks = { {4 * 1024, 1024} },
6407 .block_erase = spi_block_erase_20,
6408 }, {
6409 .eraseblocks = { {32 * 1024, 128} },
6410 .block_erase = spi_block_erase_52,
6411 }, {
6412 .eraseblocks = { {64 * 1024, 64} },
6413 .block_erase = spi_block_erase_d8,
6414 }, {
6415 .eraseblocks = { {4 * 1024 * 1024, 1} },
6416 .block_erase = spi_block_erase_60,
6417 }, {
6418 .eraseblocks = { {4 * 1024 * 1024, 1} },
6419 .block_erase = spi_block_erase_c7,
6420 },
6421 },
6422 .printlock = spi_prettyprint_status_register_default_bp3,
6423 .unlock = spi_disable_blockprotect,
6424 .write = spi_chip_write_256,
6425 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6426 .voltage = {2700, 3600},
6427 },
6428
6429 {
6430 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006431 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006432 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006433 .manufacture_id = MACRONIX_ID,
6434 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006435 .total_size = 4096,
6436 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006437 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6438 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006439 .tested = TEST_UNTESTED,
6440 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006441 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006442 .block_erasers =
6443 {
6444 {
6445 .eraseblocks = { {4 * 1024, 1024} },
6446 .block_erase = spi_block_erase_20,
6447 }, {
6448 .eraseblocks = { {64 * 1024, 64} },
6449 .block_erase = spi_block_erase_d8,
6450 }, {
6451 .eraseblocks = { {4 * 1024 * 1024, 1} },
6452 .block_erase = spi_block_erase_60,
6453 }, {
6454 .eraseblocks = { {4 * 1024 * 1024, 1} },
6455 .block_erase = spi_block_erase_c7,
6456 }
6457 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006458 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006459 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006460 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006461 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006462 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006463 },
6464
6465 {
6466 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006467 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006468 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006469 .manufacture_id = MACRONIX_ID,
6470 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006471 .total_size = 8192,
6472 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006473 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6474 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006475 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006476 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006478 .block_erasers =
6479 {
6480 {
6481 .eraseblocks = { {64 * 1024, 128} },
6482 .block_erase = spi_block_erase_20,
6483 }, {
6484 .eraseblocks = { {64 * 1024, 128} },
6485 .block_erase = spi_block_erase_d8,
6486 }, {
6487 .eraseblocks = { {8 * 1024 * 1024, 1} },
6488 .block_erase = spi_block_erase_60,
6489 }, {
6490 .eraseblocks = { {8 * 1024 * 1024, 1} },
6491 .block_erase = spi_block_erase_c7,
6492 }
6493 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006494 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006495 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006496 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006498 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006499 },
6500
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006501 {
6502 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006503 .name = "MX25L6406E/MX25L6436E",
6504 .bustype = BUS_SPI,
6505 .manufacture_id = MACRONIX_ID,
6506 .model_id = MACRONIX_MX25L6405,
6507 .total_size = 8192,
6508 .page_size = 256,
6509 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6510 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6511 .tested = TEST_OK_PREW,
6512 .probe = probe_spi_rdid,
6513 .probe_timing = TIMING_ZERO,
6514 .block_erasers =
6515 {
6516 {
6517 .eraseblocks = { {4 * 1024, 2048} },
6518 .block_erase = spi_block_erase_20,
6519 }, {
6520 .eraseblocks = { {64 * 1024, 128} },
6521 .block_erase = spi_block_erase_d8,
6522 }, {
6523 .eraseblocks = { {8 * 1024 * 1024, 1} },
6524 .block_erase = spi_block_erase_60,
6525 }, {
6526 .eraseblocks = { {8 * 1024 * 1024, 1} },
6527 .block_erase = spi_block_erase_c7,
6528 }
6529 },
6530 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6531 .unlock = spi_disable_blockprotect,
6532 .write = spi_chip_write_256,
6533 .read = spi_chip_read,
6534 .voltage = {2700, 3600},
6535 },
6536
6537 {
6538 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006539 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006540 .bustype = BUS_SPI,
6541 .manufacture_id = MACRONIX_ID,
6542 .model_id = MACRONIX_MX25L6405,
6543 .total_size = 8192,
6544 .page_size = 256,
6545 /* supports SFDP */
6546 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6547 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6548 .tested = TEST_OK_PREW,
6549 .probe = probe_spi_rdid,
6550 .probe_timing = TIMING_ZERO,
6551 .block_erasers =
6552 {
6553 {
6554 .eraseblocks = { {4 * 1024, 2048} },
6555 .block_erase = spi_block_erase_20,
6556 }, {
6557 .eraseblocks = { {32 * 1024, 256} },
6558 .block_erase = spi_block_erase_52,
6559 }, {
6560 .eraseblocks = { {64 * 1024, 128} },
6561 .block_erase = spi_block_erase_d8,
6562 }, {
6563 .eraseblocks = { {8 * 1024 * 1024, 1} },
6564 .block_erase = spi_block_erase_60,
6565 }, {
6566 .eraseblocks = { {8 * 1024 * 1024, 1} },
6567 .block_erase = spi_block_erase_c7,
6568 }
6569 },
6570 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6571 .unlock = spi_disable_blockprotect,
6572 .write = spi_chip_write_256,
6573 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6574 .voltage = {2700, 3600},
6575 },
6576
6577 {
6578 .vendor = "Macronix",
6579 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006580 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006581 .manufacture_id = MACRONIX_ID,
6582 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006583 .total_size = 16384,
6584 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006585 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6586 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006587 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006588 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006589 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006590 .block_erasers =
6591 {
6592 {
6593 .eraseblocks = { {4 * 1024, 4096} },
6594 .block_erase = spi_block_erase_20,
6595 }, {
6596 .eraseblocks = { {64 * 1024, 256} },
6597 .block_erase = spi_block_erase_d8,
6598 }, {
6599 .eraseblocks = { {16 * 1024 * 1024, 1} },
6600 .block_erase = spi_block_erase_60,
6601 }, {
6602 .eraseblocks = { {16 * 1024 * 1024, 1} },
6603 .block_erase = spi_block_erase_c7,
6604 }
6605 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006606 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006607 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006608 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006609 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006610 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006611 },
6612
6613 {
6614 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006615 .name = "MX25U1635E",
6616 .bustype = BUS_SPI,
6617 .manufacture_id = MACRONIX_ID,
6618 .model_id = MACRONIX_MX25U1635E,
6619 .total_size = 2048,
6620 .page_size = 256,
6621 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6622 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6623 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6624 .tested = TEST_UNTESTED,
6625 .probe = probe_spi_rdid,
6626 .probe_timing = TIMING_ZERO,
6627 .block_erasers =
6628 {
6629 {
6630 .eraseblocks = { {4 * 1024, 512} },
6631 .block_erase = spi_block_erase_20,
6632 }, {
6633 .eraseblocks = { {32 * 1024, 64} },
6634 .block_erase = spi_block_erase_52,
6635 }, {
6636 .eraseblocks = { {64 * 1024, 32} },
6637 .block_erase = spi_block_erase_d8,
6638 }, {
6639 .eraseblocks = { {2 * 1024 * 1024, 1} },
6640 .block_erase = spi_block_erase_60,
6641 }, {
6642 .eraseblocks = { {2 * 1024 * 1024, 1} },
6643 .block_erase = spi_block_erase_c7,
6644 }
6645 },
6646 /* TODO: security register */
6647 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6648 .unlock = spi_disable_blockprotect,
6649 .write = spi_chip_write_256,
6650 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6651 .voltage = {1650, 2000},
6652 },
6653
6654 {
6655 .vendor = "Macronix",
6656 .name = "MX25U3235E/F",
6657 .bustype = BUS_SPI,
6658 .manufacture_id = MACRONIX_ID,
6659 .model_id = MACRONIX_MX25U3235E,
6660 .total_size = 4096,
6661 .page_size = 256,
6662 /* F model supports SFDP */
6663 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6664 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6665 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6666 .tested = TEST_OK_PREW,
6667 .probe = probe_spi_rdid,
6668 .probe_timing = TIMING_ZERO,
6669 .block_erasers =
6670 {
6671 {
6672 .eraseblocks = { {4 * 1024, 1024} },
6673 .block_erase = spi_block_erase_20,
6674 }, {
6675 .eraseblocks = { {32 * 1024, 128} },
6676 .block_erase = spi_block_erase_52,
6677 }, {
6678 .eraseblocks = { {64 * 1024, 64} },
6679 .block_erase = spi_block_erase_d8,
6680 }, {
6681 .eraseblocks = { {4 * 1024 * 1024, 1} },
6682 .block_erase = spi_block_erase_60,
6683 }, {
6684 .eraseblocks = { {4 * 1024 * 1024, 1} },
6685 .block_erase = spi_block_erase_c7,
6686 }
6687 },
6688 /* TODO: security register */
6689 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6690 .unlock = spi_disable_blockprotect,
6691 .write = spi_chip_write_256,
6692 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6693 .voltage = {1650, 2000},
6694 },
6695
6696 {
6697 .vendor = "Macronix",
6698 .name = "MX25U6435E/F",
6699 .bustype = BUS_SPI,
6700 .manufacture_id = MACRONIX_ID,
6701 .model_id = MACRONIX_MX25U6435E,
6702 .total_size = 8192,
6703 .page_size = 256,
6704 /* F model supports SFDP */
6705 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6706 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6707 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6708 .tested = TEST_UNTESTED,
6709 .probe = probe_spi_rdid,
6710 .probe_timing = TIMING_ZERO,
6711 .block_erasers =
6712 {
6713 {
6714 .eraseblocks = { {4 * 1024, 2048} },
6715 .block_erase = spi_block_erase_20,
6716 }, {
6717 .eraseblocks = { {32 * 1024, 256} },
6718 .block_erase = spi_block_erase_52,
6719 }, {
6720 .eraseblocks = { {64 * 1024, 128} },
6721 .block_erase = spi_block_erase_d8,
6722 }, {
6723 .eraseblocks = { {8 * 1024 * 1024, 1} },
6724 .block_erase = spi_block_erase_60,
6725 }, {
6726 .eraseblocks = { {8 * 1024 * 1024, 1} },
6727 .block_erase = spi_block_erase_c7,
6728 }
6729 },
6730 /* TODO: security register */
6731 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6732 .unlock = spi_disable_blockprotect,
6733 .write = spi_chip_write_256,
6734 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6735 .voltage = {1650, 2000},
6736 },
6737
6738 {
6739 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006740 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006741 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006742 .manufacture_id = MACRONIX_ID,
6743 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006744 .total_size = 128,
6745 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006746 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6747 .tested = TEST_UNTESTED,
6748 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006749 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006750 .block_erasers =
6751 {
6752 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006753 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006754 {8 * 1024, 1},
6755 {4 * 1024, 2},
6756 {8 * 1024, 2},
6757 {32 * 1024, 1},
6758 {64 * 1024, 1},
6759 },
Sean Nelson35727f72010-01-28 23:55:12 +00006760 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006761 }, {
6762 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006763 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006764 }
6765 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006766 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006768 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006769 },
6770
6771 {
6772 .vendor = "Macronix",
6773 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006774 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006775 .manufacture_id = MACRONIX_ID,
6776 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006777 .total_size = 128,
6778 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006779 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006780 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006781 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006782 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006783 .block_erasers =
6784 {
6785 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006786 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006787 {64 * 1024, 1},
6788 {32 * 1024, 1},
6789 {8 * 1024, 2},
6790 {4 * 1024, 2},
6791 {8 * 1024, 1},
6792 },
Sean Nelson35727f72010-01-28 23:55:12 +00006793 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006794 }, {
6795 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006796 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006797 }
6798 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006799 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006801 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006802 },
6803
6804 {
6805 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006806 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006807 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006808 .manufacture_id = MACRONIX_ID,
6809 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006810 .total_size = 256,
6811 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006812 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006813 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006814 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006815 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006816 .block_erasers =
6817 {
6818 {
6819 .eraseblocks = {
6820 {16 * 1024, 1},
6821 {8 * 1024, 2},
6822 {32 * 1024, 1},
6823 {64 * 1024, 3},
6824 },
Sean Nelson35727f72010-01-28 23:55:12 +00006825 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006826 }, {
6827 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006828 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006829 },
6830 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006831 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006832 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006833 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006834 },
6835
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006836 {
6837 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006838 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006839 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006840 .manufacture_id = MACRONIX_ID,
6841 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006842 .total_size = 256,
6843 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006844 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006845 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006846 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006847 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006848 .block_erasers =
6849 {
6850 {
6851 .eraseblocks = {
6852 {64 * 1024, 3},
6853 {32 * 1024, 1},
6854 {8 * 1024, 2},
6855 {16 * 1024, 1},
6856 },
Sean Nelson35727f72010-01-28 23:55:12 +00006857 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006858 }, {
6859 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006860 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006861 },
6862 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006863 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006865 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006866 },
6867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006868 {
6869 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006870 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006871 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006872 .manufacture_id = MACRONIX_ID,
6873 .model_id = MACRONIX_MX29F040,
6874 .total_size = 512,
6875 .page_size = 64 * 1024,
6876 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6877 .tested = TEST_UNTESTED,
6878 .probe = probe_jedec,
6879 .probe_timing = TIMING_ZERO,
6880 .block_erasers =
6881 {
6882 {
6883 .eraseblocks = { {64 * 1024, 8} },
6884 .block_erase = erase_sector_jedec,
6885 }, {
6886 .eraseblocks = { {512 * 1024, 1} },
6887 .block_erase = erase_chip_block_jedec,
6888 },
6889 },
6890 .write = write_jedec_1,
6891 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006892 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006893 },
6894
6895 {
6896 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006897 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006898 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006899 .manufacture_id = MACRONIX_ID,
6900 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006901 .total_size = 512,
6902 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6904 .tested = TEST_UNTESTED,
6905 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006907 .block_erasers =
6908 {
6909 {
6910 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006911 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006912 }, {
6913 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006914 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006915 },
6916 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006917 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006919 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006920 },
6921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006922 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00006923 .vendor = "Micron/Numonyx/ST",
6924 .name = "M25P05-A",
6925 .bustype = BUS_SPI,
6926 .manufacture_id = ST_ID,
6927 .model_id = ST_M25P05A,
6928 .total_size = 64,
6929 .page_size = 256,
6930 .feature_bits = FEATURE_WRSR_WREN,
6931 .tested = TEST_OK_PREW,
6932 .probe = probe_spi_rdid,
6933 .probe_timing = TIMING_ZERO,
6934 .block_erasers =
6935 {
6936 {
6937 .eraseblocks = { {32 * 1024, 2} },
6938 .block_erase = spi_block_erase_d8,
6939 }, {
6940 .eraseblocks = { {64 * 1024, 1} },
6941 .block_erase = spi_block_erase_c7,
6942 }
6943 },
6944 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6945 .unlock = spi_disable_blockprotect,
6946 .write = spi_chip_write_256,
6947 .read = spi_chip_read,
6948 .voltage = {2700, 3600},
6949 },
6950
6951 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6952 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
6953 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
6954 * only is successful if RDID does not work.
6955 */
6956 {
6957 .vendor = "Micron/Numonyx/ST",
6958 .name = "M25P05",
6959 .bustype = BUS_SPI,
6960 .manufacture_id = 0, /* Not used. */
6961 .model_id = ST_M25P05_RES,
6962 .total_size = 64,
6963 .page_size = 256,
6964 .feature_bits = FEATURE_WRSR_WREN,
6965 .tested = TEST_UNTESTED,
6966 .probe = probe_spi_res1,
6967 .probe_timing = TIMING_ZERO,
6968 .block_erasers =
6969 {
6970 {
6971 .eraseblocks = { {32 * 1024, 2} },
6972 .block_erase = spi_block_erase_d8,
6973 }, {
6974 .eraseblocks = { {64 * 1024, 1} },
6975 .block_erase = spi_block_erase_c7,
6976 }
6977 },
6978 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6979 .unlock = spi_disable_blockprotect,
6980 .write = spi_chip_write_1, /* 128 */
6981 .read = spi_chip_read,
6982 .voltage = {2700, 3600},
6983 },
6984
6985 {
6986 .vendor = "Micron/Numonyx/ST",
6987 .name = "M25P10-A",
6988 .bustype = BUS_SPI,
6989 .manufacture_id = ST_ID,
6990 .model_id = ST_M25P10A,
6991 .total_size = 128,
6992 .page_size = 256,
6993 .feature_bits = FEATURE_WRSR_WREN,
6994 .tested = TEST_OK_PRE,
6995 .probe = probe_spi_rdid,
6996 .probe_timing = TIMING_ZERO,
6997 .block_erasers =
6998 {
6999 {
7000 .eraseblocks = { {32 * 1024, 4} },
7001 .block_erase = spi_block_erase_d8,
7002 }, {
7003 .eraseblocks = { {128 * 1024, 1} },
7004 .block_erase = spi_block_erase_c7,
7005 }
7006 },
7007 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7008 .unlock = spi_disable_blockprotect,
7009 .write = spi_chip_write_256,
7010 .read = spi_chip_read,
7011 .voltage = {2700, 3600},
7012 },
7013
7014 /* The ST M25P10 has the same problem as the M25P05. */
7015 {
7016 .vendor = "Micron/Numonyx/ST",
7017 .name = "M25P10",
7018 .bustype = BUS_SPI,
7019 .manufacture_id = 0, /* Not used. */
7020 .model_id = ST_M25P10_RES,
7021 .total_size = 128,
7022 .page_size = 256,
7023 .feature_bits = FEATURE_WRSR_WREN,
7024 .tested = TEST_UNTESTED,
7025 .probe = probe_spi_res1,
7026 .probe_timing = TIMING_ZERO,
7027 .block_erasers =
7028 {
7029 {
7030 .eraseblocks = { {32 * 1024, 4} },
7031 .block_erase = spi_block_erase_d8,
7032 }, {
7033 .eraseblocks = { {128 * 1024, 1} },
7034 .block_erase = spi_block_erase_c7,
7035 }
7036 },
7037 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7038 .unlock = spi_disable_blockprotect,
7039 .write = spi_chip_write_1, /* 128 */
7040 .read = spi_chip_read,
7041 .voltage = {2700, 3600},
7042 },
7043
7044 {
7045 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7046 .name = "M25P20",
7047 .bustype = BUS_SPI,
7048 .manufacture_id = ST_ID,
7049 .model_id = ST_M25P20,
7050 .total_size = 256,
7051 .page_size = 256,
7052 .feature_bits = FEATURE_WRSR_WREN,
7053 .tested = TEST_UNTESTED,
7054 .probe = probe_spi_rdid,
7055 .probe_timing = TIMING_ZERO,
7056 .block_erasers =
7057 {
7058 {
7059 .eraseblocks = { {64 * 1024, 4} },
7060 .block_erase = spi_block_erase_d8,
7061 }, {
7062 .eraseblocks = { {256 * 1024, 1} },
7063 .block_erase = spi_block_erase_c7,
7064 }
7065 },
7066 .printlock = spi_prettyprint_status_register_default_bp1,
7067 .unlock = spi_disable_blockprotect,
7068 .write = spi_chip_write_256,
7069 .read = spi_chip_read, /* Fast read (0x0B) supported */
7070 .voltage = {2700, 3600},
7071 },
7072
7073 {
7074 .vendor = "Micron/Numonyx/ST",
7075 .name = "M25P20-old",
7076 .bustype = BUS_SPI,
7077 .manufacture_id = 0, /* Not used. */
7078 .model_id = ST_M25P20_RES,
7079 .total_size = 256,
7080 .page_size = 256,
7081 .feature_bits = FEATURE_WRSR_WREN,
7082 .tested = TEST_OK_PREW,
7083 .probe = probe_spi_res1,
7084 .probe_timing = TIMING_ZERO,
7085 .block_erasers =
7086 {
7087 {
7088 .eraseblocks = { {64 * 1024, 4} },
7089 .block_erase = spi_block_erase_d8,
7090 }, {
7091 .eraseblocks = { {256 * 1024, 1} },
7092 .block_erase = spi_block_erase_c7,
7093 }
7094 },
7095 .printlock = spi_prettyprint_status_register_default_bp1,
7096 .unlock = spi_disable_blockprotect,
7097 .write = spi_chip_write_256,
7098 .read = spi_chip_read, /* Fast read (0x0B) supported */
7099 .voltage = {2700, 3600},
7100 },
7101
7102 {
7103 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7104 .name = "M25P40",
7105 .bustype = BUS_SPI,
7106 .manufacture_id = ST_ID,
7107 .model_id = ST_M25P40,
7108 .total_size = 512,
7109 .page_size = 256,
7110 .feature_bits = FEATURE_WRSR_WREN,
7111 .tested = TEST_OK_PREW,
7112 .probe = probe_spi_rdid,
7113 .probe_timing = TIMING_ZERO,
7114 .block_erasers =
7115 {
7116 {
7117 .eraseblocks = { {64 * 1024, 8} },
7118 .block_erase = spi_block_erase_d8,
7119 }, {
7120 .eraseblocks = { {512 * 1024, 1} },
7121 .block_erase = spi_block_erase_c7,
7122 }
7123 },
7124 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7125 .unlock = spi_disable_blockprotect,
7126 .write = spi_chip_write_256,
7127 .read = spi_chip_read,
7128 .voltage = {2700, 3600},
7129 },
7130
7131 {
7132 .vendor = "Micron/Numonyx/ST",
7133 .name = "M25P40-old",
7134 .bustype = BUS_SPI,
7135 .manufacture_id = 0, /* Not used. */
7136 .model_id = ST_M25P40_RES,
7137 .total_size = 512,
7138 .page_size = 256,
7139 .feature_bits = FEATURE_WRSR_WREN,
7140 .tested = TEST_UNTESTED,
7141 .probe = probe_spi_res1,
7142 .probe_timing = TIMING_ZERO,
7143 .block_erasers =
7144 {
7145 {
7146 .eraseblocks = { {64 * 1024, 8} },
7147 .block_erase = spi_block_erase_d8,
7148 }, {
7149 .eraseblocks = { {512 * 1024, 1} },
7150 .block_erase = spi_block_erase_c7,
7151 }
7152 },
7153 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7154 .unlock = spi_disable_blockprotect,
7155 .write = spi_chip_write_256,
7156 .read = spi_chip_read,
7157 },
7158
7159 {
7160 .vendor = "Micron/Numonyx/ST",
7161 .name = "M25P80",
7162 .bustype = BUS_SPI,
7163 .manufacture_id = ST_ID,
7164 .model_id = ST_M25P80,
7165 .total_size = 1024,
7166 .page_size = 256,
7167 .feature_bits = FEATURE_WRSR_WREN,
7168 .tested = TEST_OK_PREW,
7169 .probe = probe_spi_rdid,
7170 .probe_timing = TIMING_ZERO,
7171 .block_erasers =
7172 {
7173 {
7174 .eraseblocks = { {64 * 1024, 16} },
7175 .block_erase = spi_block_erase_d8,
7176 }, {
7177 .eraseblocks = { {1024 * 1024, 1} },
7178 .block_erase = spi_block_erase_c7,
7179 }
7180 },
7181 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7182 .unlock = spi_disable_blockprotect,
7183 .write = spi_chip_write_256,
7184 .read = spi_chip_read,
7185 .voltage = {2700, 3600},
7186 },
7187
7188 {
7189 .vendor = "Micron/Numonyx/ST",
7190 .name = "M25P16",
7191 .bustype = BUS_SPI,
7192 .manufacture_id = ST_ID,
7193 .model_id = ST_M25P16,
7194 .total_size = 2048,
7195 .page_size = 256,
7196 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007197 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007198 .probe = probe_spi_rdid,
7199 .probe_timing = TIMING_ZERO,
7200 .block_erasers =
7201 {
7202 {
7203 .eraseblocks = { {64 * 1024, 32} },
7204 .block_erase = spi_block_erase_d8,
7205 }, {
7206 .eraseblocks = { {2 * 1024 * 1024, 1} },
7207 .block_erase = spi_block_erase_c7,
7208 }
7209 },
7210 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7211 .unlock = spi_disable_blockprotect,
7212 .write = spi_chip_write_256,
7213 .read = spi_chip_read,
7214 .voltage = {2700, 3600},
7215 },
7216
7217 {
7218 .vendor = "Micron/Numonyx/ST",
7219 .name = "M25P32",
7220 .bustype = BUS_SPI,
7221 .manufacture_id = ST_ID,
7222 .model_id = ST_M25P32,
7223 .total_size = 4096,
7224 .page_size = 256,
7225 .feature_bits = FEATURE_WRSR_WREN,
7226 .tested = TEST_OK_PREW,
7227 .probe = probe_spi_rdid,
7228 .probe_timing = TIMING_ZERO,
7229 .block_erasers =
7230 {
7231 {
7232 .eraseblocks = { {64 * 1024, 64} },
7233 .block_erase = spi_block_erase_d8,
7234 }, {
7235 .eraseblocks = { {4 * 1024 * 1024, 1} },
7236 .block_erase = spi_block_erase_c7,
7237 }
7238 },
7239 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7240 .unlock = spi_disable_blockprotect,
7241 .write = spi_chip_write_256,
7242 .read = spi_chip_read,
7243 .voltage = {2700, 3600},
7244 },
7245
7246 {
7247 .vendor = "Micron/Numonyx/ST",
7248 .name = "M25P64",
7249 .bustype = BUS_SPI,
7250 .manufacture_id = ST_ID,
7251 .model_id = ST_M25P64,
7252 .total_size = 8192,
7253 .page_size = 256,
7254 .feature_bits = FEATURE_WRSR_WREN,
7255 .tested = TEST_OK_PREW,
7256 .probe = probe_spi_rdid,
7257 .probe_timing = TIMING_ZERO,
7258 .block_erasers =
7259 {
7260 {
7261 .eraseblocks = { {64 * 1024, 128} },
7262 .block_erase = spi_block_erase_d8,
7263 }, {
7264 .eraseblocks = { {8 * 1024 * 1024, 1} },
7265 .block_erase = spi_block_erase_c7,
7266 }
7267 },
7268 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7269 .unlock = spi_disable_blockprotect,
7270 .write = spi_chip_write_256,
7271 .read = spi_chip_read,
7272 .voltage = {2700, 3600},
7273 },
7274
7275 {
7276 .vendor = "Micron/Numonyx/ST",
7277 .name = "M25P128",
7278 .bustype = BUS_SPI,
7279 .manufacture_id = ST_ID,
7280 .model_id = ST_M25P128,
7281 .total_size = 16384,
7282 .page_size = 256,
7283 .feature_bits = FEATURE_WRSR_WREN,
7284 .tested = TEST_OK_PREW,
7285 .probe = probe_spi_rdid,
7286 .probe_timing = TIMING_ZERO,
7287 .block_erasers =
7288 {
7289 {
7290 .eraseblocks = { {256 * 1024, 64} },
7291 .block_erase = spi_block_erase_d8,
7292 }, {
7293 .eraseblocks = { {16 * 1024 * 1024, 1} },
7294 .block_erase = spi_block_erase_c7,
7295 }
7296 },
7297 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7298 .unlock = spi_disable_blockprotect,
7299 .write = spi_chip_write_256,
7300 .read = spi_chip_read,
7301 .voltage = {2700, 3600},
7302 },
7303
7304 {
7305 .vendor = "Micron/Numonyx/ST",
7306 .name = "M25PE10",
7307 .bustype = BUS_SPI,
7308 .manufacture_id = ST_ID,
7309 .model_id = ST_M25PE10,
7310 .total_size = 128,
7311 .page_size = 256,
7312 .feature_bits = FEATURE_WRSR_WREN,
7313 .tested = TEST_UNTESTED,
7314 .probe = probe_spi_rdid,
7315 .probe_timing = TIMING_ZERO,
7316 .block_erasers =
7317 {
7318 {
7319 .eraseblocks = { {4 * 1024, 32} },
7320 .block_erase = spi_block_erase_20,
7321 }, {
7322 .eraseblocks = { {64 * 1024, 2} },
7323 .block_erase = spi_block_erase_d8,
7324 }, {
7325 .eraseblocks = { {128 * 1024, 1} },
7326 .block_erase = spi_block_erase_c7,
7327 }
7328 },
7329 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7330 .unlock = spi_disable_blockprotect,
7331 .write = spi_chip_write_256,
7332 .read = spi_chip_read,
7333 .voltage = {2700, 3600},
7334 },
7335
7336 {
7337 .vendor = "Micron/Numonyx/ST",
7338 .name = "M25PE20",
7339 .bustype = BUS_SPI,
7340 .manufacture_id = ST_ID,
7341 .model_id = ST_M25PE20,
7342 .total_size = 256,
7343 .page_size = 256,
7344 .feature_bits = FEATURE_WRSR_WREN,
7345 .tested = TEST_UNTESTED,
7346 .probe = probe_spi_rdid,
7347 .probe_timing = TIMING_ZERO,
7348 .block_erasers =
7349 {
7350 {
7351 .eraseblocks = { {4 * 1024, 64} },
7352 .block_erase = spi_block_erase_20,
7353 }, {
7354 .eraseblocks = { {64 * 1024, 4} },
7355 .block_erase = spi_block_erase_d8,
7356 }, {
7357 .eraseblocks = { {256 * 1024, 1} },
7358 .block_erase = spi_block_erase_c7,
7359 }
7360 },
7361 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7362 .unlock = spi_disable_blockprotect,
7363 .write = spi_chip_write_256,
7364 .read = spi_chip_read,
7365 .voltage = {2700, 3600},
7366 },
7367
7368 {
7369 .vendor = "Micron/Numonyx/ST",
7370 .name = "M25PE40",
7371 .bustype = BUS_SPI,
7372 .manufacture_id = ST_ID,
7373 .model_id = ST_M25PE40,
7374 .total_size = 512,
7375 .page_size = 256,
7376 .feature_bits = FEATURE_WRSR_WREN,
7377 .tested = TEST_UNTESTED,
7378 .probe = probe_spi_rdid,
7379 .probe_timing = TIMING_ZERO,
7380 .block_erasers =
7381 {
7382 {
7383 .eraseblocks = { {4 * 1024, 128} },
7384 .block_erase = spi_block_erase_20,
7385 }, {
7386 .eraseblocks = { {64 * 1024, 8} },
7387 .block_erase = spi_block_erase_d8,
7388 }, {
7389 .eraseblocks = { {512 * 1024, 1} },
7390 .block_erase = spi_block_erase_c7,
7391 }
7392 },
7393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7394 .unlock = spi_disable_blockprotect,
7395 .write = spi_chip_write_256,
7396 .read = spi_chip_read,
7397 .voltage = {2700, 3600},
7398 },
7399
7400 {
7401 .vendor = "Micron/Numonyx/ST",
7402 .name = "M25PE80",
7403 .bustype = BUS_SPI,
7404 .manufacture_id = ST_ID,
7405 .model_id = ST_M25PE80,
7406 .total_size = 1024,
7407 .page_size = 256,
7408 .feature_bits = FEATURE_WRSR_WREN,
7409 .tested = TEST_OK_PREW,
7410 .probe = probe_spi_rdid,
7411 .probe_timing = TIMING_ZERO,
7412 .block_erasers =
7413 {
7414 {
7415 .eraseblocks = { {4 * 1024, 256} },
7416 .block_erase = spi_block_erase_20,
7417 }, {
7418 .eraseblocks = { {64 * 1024, 16} },
7419 .block_erase = spi_block_erase_d8,
7420 }, {
7421 .eraseblocks = { {1024 * 1024, 1} },
7422 .block_erase = spi_block_erase_c7,
7423 }
7424 },
7425 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7426 .unlock = spi_disable_blockprotect,
7427 .write = spi_chip_write_256,
7428 .read = spi_chip_read,
7429 .voltage = {2700, 3600},
7430 },
7431
7432 {
7433 .vendor = "Micron/Numonyx/ST",
7434 .name = "M25PE16",
7435 .bustype = BUS_SPI,
7436 .manufacture_id = ST_ID,
7437 .model_id = ST_M25PE16,
7438 .total_size = 2048,
7439 .page_size = 256,
7440 .feature_bits = FEATURE_WRSR_WREN,
7441 .tested = TEST_UNTESTED,
7442 .probe = probe_spi_rdid,
7443 .probe_timing = TIMING_ZERO,
7444 .block_erasers =
7445 {
7446 {
7447 .eraseblocks = { {4 * 1024, 512} },
7448 .block_erase = spi_block_erase_20,
7449 }, {
7450 .eraseblocks = { {64 * 1024, 32} },
7451 .block_erase = spi_block_erase_d8,
7452 }, {
7453 .eraseblocks = { {2 * 1024 * 1024, 1} },
7454 .block_erase = spi_block_erase_c7,
7455 }
7456 },
7457 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7458 .unlock = spi_disable_blockprotect,
7459 .write = spi_chip_write_256,
7460 .read = spi_chip_read,
7461 .voltage = {2700, 3600},
7462 },
7463
7464 {
7465 .vendor = "Micron/Numonyx/ST",
7466 .name = "M25PX80",
7467 .bustype = BUS_SPI,
7468 .manufacture_id = ST_ID,
7469 .model_id = ST_M25PX80,
7470 .total_size = 1024,
7471 .page_size = 256,
7472 /* OTP: 64B total; read 0x4B, write 0x42 */
7473 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7474 .tested = TEST_OK_PREW,
7475 .probe = probe_spi_rdid,
7476 .probe_timing = TIMING_ZERO,
7477 .block_erasers = {
7478 {
7479 .eraseblocks = { { 4 * 1024, 256 } },
7480 .block_erase = spi_block_erase_20,
7481 }, {
7482 .eraseblocks = { {64 * 1024, 16} },
7483 .block_erase = spi_block_erase_d8,
7484 }, {
7485 .eraseblocks = { {1024 * 1024, 1} },
7486 .block_erase = spi_block_erase_c7,
7487 }
7488 },
7489 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7490 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7491 .write = spi_chip_write_256,
7492 .read = spi_chip_read,
7493 .voltage = {2700, 3600},
7494 },
7495
7496 {
7497 .vendor = "Micron/Numonyx/ST",
7498 .name = "M25PX16",
7499 .bustype = BUS_SPI,
7500 .manufacture_id = ST_ID,
7501 .model_id = ST_M25PX16,
7502 .total_size = 2048,
7503 .page_size = 256,
7504 /* OTP: 64B total; read 0x4B; write 0x42 */
7505 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7506 .tested = TEST_OK_PREW,
7507 .probe = probe_spi_rdid,
7508 .probe_timing = TIMING_ZERO,
7509 .block_erasers =
7510 {
7511 {
7512 .eraseblocks = { { 4 * 1024, 512 } },
7513 .block_erase = spi_block_erase_20,
7514 }, {
7515 .eraseblocks = { {64 * 1024, 32} },
7516 .block_erase = spi_block_erase_d8,
7517 }, {
7518 .eraseblocks = { {2 * 1024 * 1024, 1} },
7519 .block_erase = spi_block_erase_c7,
7520 }
7521 },
7522 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7523 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7524 .write = spi_chip_write_256,
7525 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007526 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007527 },
7528
7529 {
7530 .vendor = "Micron/Numonyx/ST",
7531 .name = "M25PX32",
7532 .bustype = BUS_SPI,
7533 .manufacture_id = ST_ID,
7534 .model_id = ST_M25PX32,
7535 .total_size = 4096,
7536 .page_size = 256,
7537 /* OTP: 64B total; read 0x4B; write 0x42 */
7538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7539 .tested = TEST_OK_PRE,
7540 .probe = probe_spi_rdid,
7541 .probe_timing = TIMING_ZERO,
7542 .block_erasers =
7543 {
7544 {
7545 .eraseblocks = { { 4 * 1024, 1024 } },
7546 .block_erase = spi_block_erase_20,
7547 }, {
7548 .eraseblocks = { {64 * 1024, 64} },
7549 .block_erase = spi_block_erase_d8,
7550 }, {
7551 .eraseblocks = { {4 * 1024 * 1024, 1} },
7552 .block_erase = spi_block_erase_c7,
7553 }
7554 },
7555 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7556 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7557 .write = spi_chip_write_256,
7558 .read = spi_chip_read,
7559 .voltage = {2700, 3600},
7560 },
7561
7562 {
7563 .vendor = "Micron/Numonyx/ST",
7564 .name = "M25PX64",
7565 .bustype = BUS_SPI,
7566 .manufacture_id = ST_ID,
7567 .model_id = ST_M25PX64,
7568 .total_size = 8192,
7569 .page_size = 256,
7570 /* OTP: 64B total; read 0x4B; write 0x42 */
7571 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007572 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007573 .probe = probe_spi_rdid,
7574 .probe_timing = TIMING_ZERO,
7575 .block_erasers =
7576 {
7577 {
7578 .eraseblocks = { { 4 * 1024, 2048 } },
7579 .block_erase = spi_block_erase_20,
7580 }, {
7581 .eraseblocks = { {64 * 1024, 128} },
7582 .block_erase = spi_block_erase_d8,
7583 }, {
7584 .eraseblocks = { {8 * 1024 * 1024, 1} },
7585 .block_erase = spi_block_erase_c7,
7586 }
7587 },
7588 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7589 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7590 .write = spi_chip_write_256,
7591 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007592 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007593 },
7594
7595 {
7596 .vendor = "Micron/Numonyx/ST",
7597 .name = "M45PE10",
7598 .bustype = BUS_SPI,
7599 .manufacture_id = ST_ID,
7600 .model_id = ST_M45PE10,
7601 .total_size = 128,
7602 .page_size = 256,
7603 .tested = TEST_UNTESTED,
7604 .probe = probe_spi_rdid,
7605 .probe_timing = TIMING_ZERO,
7606 .block_erasers = {
7607 {
7608 .eraseblocks = { {256, 512} },
7609 .block_erase = spi_block_erase_db,
7610 }, {
7611 .eraseblocks = { {64 * 1024, 2} },
7612 .block_erase = spi_block_erase_d8,
7613 }
7614 },
7615 .printlock = spi_prettyprint_status_register_default_welwip,
7616 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7617 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7618 .read = spi_chip_read, /* Fast read (0x0B) supported */
7619 .voltage = {2700, 3600},
7620 },
7621
7622 {
7623 .vendor = "Micron/Numonyx/ST",
7624 .name = "M45PE20",
7625 .bustype = BUS_SPI,
7626 .manufacture_id = ST_ID,
7627 .model_id = ST_M45PE20,
7628 .total_size = 256,
7629 .page_size = 256,
7630 .tested = TEST_UNTESTED,
7631 .probe = probe_spi_rdid,
7632 .probe_timing = TIMING_ZERO,
7633 .block_erasers = {
7634 {
7635 .eraseblocks = { {256, 1024} },
7636 .block_erase = spi_block_erase_db,
7637 }, {
7638 .eraseblocks = { {64 * 1024, 4} },
7639 .block_erase = spi_block_erase_d8,
7640 }
7641 },
7642 .printlock = spi_prettyprint_status_register_default_welwip,
7643 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7644 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7645 .read = spi_chip_read, /* Fast read (0x0B) supported */
7646 .voltage = {2700, 3600},
7647 },
7648
7649 {
7650 .vendor = "Micron/Numonyx/ST",
7651 .name = "M45PE40",
7652 .bustype = BUS_SPI,
7653 .manufacture_id = ST_ID,
7654 .model_id = ST_M45PE40,
7655 .total_size = 512,
7656 .page_size = 256,
7657 .tested = TEST_UNTESTED,
7658 .probe = probe_spi_rdid,
7659 .probe_timing = TIMING_ZERO,
7660 .block_erasers = {
7661 {
7662 .eraseblocks = { {256, 2048} },
7663 .block_erase = spi_block_erase_db,
7664 }, {
7665 .eraseblocks = { {64 * 1024, 8} },
7666 .block_erase = spi_block_erase_d8,
7667 }
7668 },
7669 .printlock = spi_prettyprint_status_register_default_welwip,
7670 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7671 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7672 .read = spi_chip_read, /* Fast read (0x0B) supported */
7673 .voltage = {2700, 3600},
7674 },
7675
7676 {
7677 .vendor = "Micron/Numonyx/ST",
7678 .name = "M45PE80",
7679 .bustype = BUS_SPI,
7680 .manufacture_id = ST_ID,
7681 .model_id = ST_M45PE80,
7682 .total_size = 1024,
7683 .page_size = 256,
7684 .tested = TEST_UNTESTED,
7685 .probe = probe_spi_rdid,
7686 .probe_timing = TIMING_ZERO,
7687 .block_erasers = {
7688 {
7689 .eraseblocks = { {256, 4096} },
7690 .block_erase = spi_block_erase_db,
7691 }, {
7692 .eraseblocks = { {64 * 1024, 16} },
7693 .block_erase = spi_block_erase_d8,
7694 }
7695 },
7696 .printlock = spi_prettyprint_status_register_default_welwip,
7697 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7698 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7699 .read = spi_chip_read, /* Fast read (0x0B) supported */
7700 .voltage = {2700, 3600},
7701 },
7702
7703 {
7704 .vendor = "Micron/Numonyx/ST",
7705 .name = "M45PE16",
7706 .bustype = BUS_SPI,
7707 .manufacture_id = ST_ID,
7708 .model_id = ST_M45PE16,
7709 .total_size = 2048,
7710 .page_size = 256,
7711 .tested = TEST_UNTESTED,
7712 .probe = probe_spi_rdid,
7713 .probe_timing = TIMING_ZERO,
7714 .block_erasers = {
7715 {
7716 .eraseblocks = { {256, 8192} },
7717 .block_erase = spi_block_erase_db,
7718 }, {
7719 .eraseblocks = { {64 * 1024, 32} },
7720 .block_erase = spi_block_erase_d8,
7721 }
7722 },
7723 .printlock = spi_prettyprint_status_register_default_welwip,
7724 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7725 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7726 .read = spi_chip_read, /* Fast read (0x0B) supported */
7727 .voltage = {2700, 3600},
7728 },
7729
7730 {
7731 .vendor = "Micron/Numonyx/ST",
7732 .name = "N25Q016",
7733 .bustype = BUS_SPI,
7734 .manufacture_id = ST_ID,
7735 .model_id = ST_N25Q016__1E,
7736 .total_size = 2048,
7737 .page_size = 256,
7738 /* supports SFDP */
7739 /* OTP: 64B total; read 0x4B, write 0x42 */
7740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7741 .tested = TEST_UNTESTED,
7742 .probe = probe_spi_rdid,
7743 .probe_timing = TIMING_ZERO,
7744 .block_erasers =
7745 {
7746 {
7747 .eraseblocks = { {4 * 1024, 512} },
7748 .block_erase = spi_block_erase_20,
7749 }, {
7750 .eraseblocks = { {32 * 1024, 64} },
7751 .block_erase = spi_block_erase_52,
7752 }, {
7753 .eraseblocks = { {64 * 1024, 32} },
7754 .block_erase = spi_block_erase_d8,
7755 }, {
7756 .eraseblocks = { {2 * 1024 * 1024, 1} },
7757 .block_erase = spi_block_erase_c7,
7758 }
7759 },
7760 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7761 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7762 .write = spi_chip_write_256, /* Multi I/O supported */
7763 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7764 .voltage = {1700, 2000},
7765 },
7766
7767 {
7768 .vendor = "Micron/Numonyx/ST",
7769 .name = "N25Q032..1E",
7770 .bustype = BUS_SPI,
7771 .manufacture_id = ST_ID,
7772 .model_id = ST_N25Q032__1E,
7773 .total_size = 4096,
7774 .page_size = 256,
7775 /* supports SFDP */
7776 /* OTP: 64B total; read 0x4B, write 0x42 */
7777 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7778 .tested = TEST_UNTESTED,
7779 .probe = probe_spi_rdid,
7780 .probe_timing = TIMING_ZERO,
7781 .block_erasers =
7782 {
7783 {
7784 .eraseblocks = { {4 * 1024, 1024} },
7785 .block_erase = spi_block_erase_20,
7786 }, {
7787 .eraseblocks = { {64 * 1024, 64} },
7788 .block_erase = spi_block_erase_d8,
7789 }, {
7790 .eraseblocks = { {4 * 1024 * 1024, 1} },
7791 .block_erase = spi_block_erase_c7,
7792 }
7793 },
7794 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7795 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7796 .write = spi_chip_write_256, /* Multi I/O supported */
7797 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7798 .voltage = {1700, 2000},
7799 },
7800
7801 {
7802 .vendor = "Micron/Numonyx/ST",
7803 .name = "N25Q032..3E",
7804 .bustype = BUS_SPI,
7805 .manufacture_id = ST_ID,
7806 .model_id = ST_N25Q032__3E,
7807 .total_size = 4096,
7808 .page_size = 256,
7809 /* supports SFDP */
7810 /* OTP: 64B total; read 0x4B, write 0x42 */
7811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7812 .tested = TEST_OK_PREW,
7813 .probe = probe_spi_rdid,
7814 .probe_timing = TIMING_ZERO,
7815 .block_erasers =
7816 {
7817 {
7818 .eraseblocks = { {4 * 1024, 1024} },
7819 .block_erase = spi_block_erase_20,
7820 }, {
7821 .eraseblocks = { {64 * 1024, 64} },
7822 .block_erase = spi_block_erase_d8,
7823 }, {
7824 .eraseblocks = { {4 * 1024 * 1024, 1} },
7825 .block_erase = spi_block_erase_c7,
7826 }
7827 },
7828 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7829 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7830 .write = spi_chip_write_256, /* Multi I/O supported */
7831 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7832 .voltage = {2700, 3600},
7833 },
7834
7835 {
7836 .vendor = "Micron/Numonyx/ST",
7837 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7838 .bustype = BUS_SPI,
7839 .manufacture_id = ST_ID,
7840 .model_id = ST_N25Q064__1E,
7841 .total_size = 8192,
7842 .page_size = 256,
7843 /* supports SFDP */
7844 /* OTP: 64B total; read 0x4B, write 0x42 */
7845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007846 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007847 .probe = probe_spi_rdid,
7848 .probe_timing = TIMING_ZERO,
7849 .block_erasers =
7850 {
7851 {
7852 .eraseblocks = { {4 * 1024, 2048 } },
7853 .block_erase = spi_block_erase_20,
7854 }, {
7855 .eraseblocks = { {64 * 1024, 128} },
7856 .block_erase = spi_block_erase_d8,
7857 }, {
7858 .eraseblocks = { {8 * 1024 * 1024, 1} },
7859 .block_erase = spi_block_erase_c7,
7860 }
7861 },
7862 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7863 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7864 .write = spi_chip_write_256, /* Multi I/O supported */
7865 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7866 .voltage = {1700, 2000},
7867 },
7868
7869 {
7870 .vendor = "Micron/Numonyx/ST",
7871 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7872 .bustype = BUS_SPI,
7873 .manufacture_id = ST_ID,
7874 .model_id = ST_N25Q064__3E,
7875 .total_size = 8192,
7876 .page_size = 256,
7877 /* supports SFDP */
7878 /* OTP: 64B total; read 0x4B, write 0x42 */
7879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7880 .tested = TEST_OK_PREW,
7881 .probe = probe_spi_rdid,
7882 .probe_timing = TIMING_ZERO,
7883 .block_erasers =
7884 {
7885 {
7886 .eraseblocks = { {4 * 1024, 2048 } },
7887 .block_erase = spi_block_erase_20,
7888 }, {
7889 .eraseblocks = { {64 * 1024, 128} },
7890 .block_erase = spi_block_erase_d8,
7891 }, {
7892 .eraseblocks = { {8 * 1024 * 1024, 1} },
7893 .block_erase = spi_block_erase_c7,
7894 }
7895 },
7896 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7897 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7898 .write = spi_chip_write_256, /* Multi I/O supported */
7899 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7900 .voltage = {2700, 3600},
7901 },
7902
7903 {
7904 .vendor = "Micron/Numonyx/ST",
7905 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7906 .bustype = BUS_SPI,
7907 .manufacture_id = ST_ID,
7908 .model_id = ST_N25Q128__1E,
7909 .total_size = 16384,
7910 .page_size = 256,
7911 /* supports SFDP */
7912 /* OTP: 64B total; read 0x4B, write 0x42 */
7913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7914 .tested = TEST_UNTESTED,
7915 .probe = probe_spi_rdid,
7916 .probe_timing = TIMING_ZERO,
7917 .block_erasers = {
7918 {
7919 .eraseblocks = { {4 * 1024, 4096 } },
7920 .block_erase = spi_block_erase_20,
7921 }, {
7922 .eraseblocks = { {64 * 1024, 256} },
7923 .block_erase = spi_block_erase_d8,
7924 }, {
7925 .eraseblocks = { {16384 * 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 = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7939 .bustype = BUS_SPI,
7940 .manufacture_id = ST_ID,
7941 .model_id = ST_N25Q128__3E,
7942 .total_size = 16384,
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_OK_PREW,
7948 .probe = probe_spi_rdid,
7949 .probe_timing = TIMING_ZERO,
7950 .block_erasers = {
7951 {
7952 .eraseblocks = { {4 * 1024, 4096 } },
7953 .block_erase = spi_block_erase_20,
7954 }, {
7955 .eraseblocks = { {64 * 1024, 256} },
7956 .block_erase = spi_block_erase_d8,
7957 }, {
7958 .eraseblocks = { {16384 * 1024, 1} },
7959 .block_erase = spi_block_erase_c7,
7960 }
7961 },
7962 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7963 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7964 .write = spi_chip_write_256, /* Multi I/O supported */
7965 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7966 .voltage = {2700, 3600},
7967 },
7968
7969 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007970 .vendor = "MoselVitelic",
7971 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007972 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007973 .manufacture_id = SYNCMOS_MVC_ID,
7974 .model_id = MVC_V29C51000B,
7975 .total_size = 64,
7976 .page_size = 512,
7977 .feature_bits = FEATURE_EITHER_RESET,
7978 .tested = TEST_UNTESTED,
7979 .probe = probe_jedec,
7980 .probe_timing = TIMING_ZERO,
7981 .block_erasers =
7982 {
7983 {
7984 .eraseblocks = { {512, 128} },
7985 .block_erase = erase_sector_jedec,
7986 }, {
7987 .eraseblocks = { {64 * 1024, 1} },
7988 .block_erase = erase_chip_block_jedec,
7989 },
7990 },
7991 .write = write_jedec_1,
7992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007993 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007994 },
7995
7996 {
7997 .vendor = "MoselVitelic",
7998 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007999 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008000 .manufacture_id = SYNCMOS_MVC_ID,
8001 .model_id = MVC_V29C51000T,
8002 .total_size = 64,
8003 .page_size = 512,
8004 .feature_bits = FEATURE_EITHER_RESET,
8005 .tested = TEST_UNTESTED,
8006 .probe = probe_jedec,
8007 .probe_timing = TIMING_ZERO,
8008 .block_erasers =
8009 {
8010 {
8011 .eraseblocks = { {512, 128} },
8012 .block_erase = erase_sector_jedec,
8013 }, {
8014 .eraseblocks = { {64 * 1024, 1} },
8015 .block_erase = erase_chip_block_jedec,
8016 },
8017 },
8018 .write = write_jedec_1,
8019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008020 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008021 },
8022
8023 {
8024 .vendor = "MoselVitelic",
8025 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008026 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008027 .manufacture_id = SYNCMOS_MVC_ID,
8028 .model_id = MVC_V29C51400B,
8029 .total_size = 512,
8030 .page_size = 1024,
8031 .feature_bits = FEATURE_EITHER_RESET,
8032 .tested = TEST_UNTESTED,
8033 .probe = probe_jedec,
8034 .probe_timing = TIMING_ZERO,
8035 .block_erasers =
8036 {
8037 {
8038 .eraseblocks = { {1024, 512} },
8039 .block_erase = erase_sector_jedec,
8040 }, {
8041 .eraseblocks = { {512 * 1024, 1} },
8042 .block_erase = erase_chip_block_jedec,
8043 },
8044 },
8045 .write = write_jedec_1,
8046 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008047 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008048 },
8049
8050 {
8051 .vendor = "MoselVitelic",
8052 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008053 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008054 .manufacture_id = SYNCMOS_MVC_ID,
8055 .model_id = MVC_V29C51400T,
8056 .total_size = 512,
8057 .page_size = 1024,
8058 .feature_bits = FEATURE_EITHER_RESET,
8059 .tested = TEST_UNTESTED,
8060 .probe = probe_jedec,
8061 .probe_timing = TIMING_ZERO,
8062 .block_erasers =
8063 {
8064 {
8065 .eraseblocks = { {1024, 512} },
8066 .block_erase = erase_sector_jedec,
8067 }, {
8068 .eraseblocks = { {512 * 1024, 1} },
8069 .block_erase = erase_chip_block_jedec,
8070 },
8071 },
8072 .write = write_jedec_1,
8073 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008074 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008075 },
8076
8077 {
8078 .vendor = "MoselVitelic",
8079 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008080 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008081 .manufacture_id = SYNCMOS_MVC_ID,
8082 .model_id = MVC_V29LC51000,
8083 .total_size = 64,
8084 .page_size = 512,
8085 .feature_bits = FEATURE_EITHER_RESET,
8086 .tested = TEST_UNTESTED,
8087 .probe = probe_jedec,
8088 .probe_timing = TIMING_ZERO,
8089 .block_erasers =
8090 {
8091 {
8092 .eraseblocks = { {512, 128} },
8093 .block_erase = erase_sector_jedec,
8094 }, {
8095 .eraseblocks = { {64 * 1024, 1} },
8096 .block_erase = erase_chip_block_jedec,
8097 },
8098 },
8099 .write = write_jedec_1,
8100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008101 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008102 },
8103
8104 {
8105 .vendor = "MoselVitelic",
8106 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008107 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008108 .manufacture_id = SYNCMOS_MVC_ID,
8109 .model_id = MVC_V29LC51001,
8110 .total_size = 128,
8111 .page_size = 512,
8112 .feature_bits = FEATURE_EITHER_RESET,
8113 .tested = TEST_UNTESTED,
8114 .probe = probe_jedec,
8115 .probe_timing = TIMING_ZERO,
8116 .block_erasers =
8117 {
8118 {
8119 .eraseblocks = { {512, 256} },
8120 .block_erase = erase_sector_jedec,
8121 }, {
8122 .eraseblocks = { {128 * 1024, 1} },
8123 .block_erase = erase_chip_block_jedec,
8124 },
8125 },
8126 .write = write_jedec_1,
8127 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008128 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008129 },
8130
8131 {
8132 .vendor = "MoselVitelic",
8133 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008134 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008135 .manufacture_id = SYNCMOS_MVC_ID,
8136 .model_id = MVC_V29LC51002,
8137 .total_size = 256,
8138 .page_size = 512,
8139 .feature_bits = FEATURE_EITHER_RESET,
8140 .tested = TEST_UNTESTED,
8141 .probe = probe_jedec,
8142 .probe_timing = TIMING_ZERO,
8143 .block_erasers =
8144 {
8145 {
8146 .eraseblocks = { {512, 512} },
8147 .block_erase = erase_sector_jedec,
8148 }, {
8149 .eraseblocks = { {256 * 1024, 1} },
8150 .block_erase = erase_chip_block_jedec,
8151 },
8152 },
8153 .write = write_jedec_1,
8154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008155 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008156 },
8157
8158 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008159 .vendor = "Nantronics",
8160 .name = "N25S10",
8161 .bustype = BUS_SPI,
8162 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8163 .model_id = NANTRONICS_N25S10,
8164 .total_size = 128,
8165 .page_size = 256,
8166 .feature_bits = FEATURE_WRSR_WREN,
8167 .tested = TEST_UNTESTED,
8168 .probe = probe_spi_rdid,
8169 .probe_timing = TIMING_ZERO,
8170 .block_erasers =
8171 {
8172 {
8173 .eraseblocks = { {4 * 1024, 32} },
8174 .block_erase = spi_block_erase_20,
8175 }, {
8176 .eraseblocks = { {4 * 1024, 32} },
8177 .block_erase = spi_block_erase_d7,
8178 }, {
8179 .eraseblocks = { {32 * 1024, 4} },
8180 .block_erase = spi_block_erase_52,
8181 }, {
8182 .eraseblocks = { {64 * 1024, 2} },
8183 .block_erase = spi_block_erase_d8,
8184 }, {
8185 .eraseblocks = { {128 * 1024, 1} },
8186 .block_erase = spi_block_erase_60,
8187 }, {
8188 .eraseblocks = { {128 * 1024, 1} },
8189 .block_erase = spi_block_erase_c7,
8190 }
8191 },
8192 .printlock = spi_prettyprint_status_register_default_bp3,
8193 .unlock = spi_disable_blockprotect_bp3_srwd,
8194 .write = spi_chip_write_256,
8195 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8196 .voltage = {2700, 3600},
8197 },
8198
8199 {
8200 .vendor = "Nantronics",
8201 .name = "N25S20",
8202 .bustype = BUS_SPI,
8203 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8204 .model_id = NANTRONICS_N25S20,
8205 .total_size = 256,
8206 .page_size = 256,
8207 .feature_bits = FEATURE_WRSR_WREN,
8208 .tested = TEST_UNTESTED,
8209 .probe = probe_spi_rdid,
8210 .probe_timing = TIMING_ZERO,
8211 .block_erasers =
8212 {
8213 {
8214 .eraseblocks = { {4 * 1024, 64} },
8215 .block_erase = spi_block_erase_20,
8216 }, {
8217 .eraseblocks = { {4 * 1024, 64} },
8218 .block_erase = spi_block_erase_d7,
8219 }, {
8220 .eraseblocks = { {32 * 1024, 8} },
8221 .block_erase = spi_block_erase_52,
8222 }, {
8223 .eraseblocks = { {64 * 1024, 4} },
8224 .block_erase = spi_block_erase_d8,
8225 }, {
8226 .eraseblocks = { {256 * 1024, 1} },
8227 .block_erase = spi_block_erase_60,
8228 }, {
8229 .eraseblocks = { {256 * 1024, 1} },
8230 .block_erase = spi_block_erase_c7,
8231 }
8232 },
8233 .printlock = spi_prettyprint_status_register_default_bp3,
8234 .unlock = spi_disable_blockprotect_bp3_srwd,
8235 .write = spi_chip_write_256,
8236 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8237 .voltage = {2700, 3600},
8238 },
8239
8240 {
8241 .vendor = "Nantronics",
8242 .name = "N25S40",
8243 .bustype = BUS_SPI,
8244 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8245 .model_id = NANTRONICS_N25S40,
8246 .total_size = 512,
8247 .page_size = 256,
8248 .feature_bits = FEATURE_WRSR_WREN,
8249 .tested = TEST_UNTESTED,
8250 .probe = probe_spi_rdid,
8251 .probe_timing = TIMING_ZERO,
8252 .block_erasers =
8253 {
8254 {
8255 .eraseblocks = { {4 * 1024, 128} },
8256 .block_erase = spi_block_erase_20,
8257 }, {
8258 .eraseblocks = { {4 * 1024, 128} },
8259 .block_erase = spi_block_erase_d7,
8260 }, {
8261 .eraseblocks = { {32 * 1024, 16} },
8262 .block_erase = spi_block_erase_52,
8263 }, {
8264 .eraseblocks = { {64 * 1024, 8} },
8265 .block_erase = spi_block_erase_d8,
8266 }, {
8267 .eraseblocks = { {512 * 1024, 1} },
8268 .block_erase = spi_block_erase_60,
8269 }, {
8270 .eraseblocks = { {512 * 1024, 1} },
8271 .block_erase = spi_block_erase_c7,
8272 }
8273 },
8274 .printlock = spi_prettyprint_status_register_default_bp3,
8275 .unlock = spi_disable_blockprotect_bp3_srwd,
8276 .write = spi_chip_write_256,
8277 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8278 .voltage = {2700, 3600},
8279 },
8280
8281 {
8282 .vendor = "Nantronics",
8283 .name = "N25S80",
8284 .bustype = BUS_SPI,
8285 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8286 .model_id = NANTRONICS_N25S80,
8287 .total_size = 1024,
8288 .page_size = 256,
8289 .feature_bits = FEATURE_WRSR_WREN,
8290 .tested = TEST_UNTESTED,
8291 .probe = probe_spi_rdid,
8292 .probe_timing = TIMING_ZERO,
8293 .block_erasers =
8294 {
8295 {
8296 .eraseblocks = { {4 * 1024, 256} },
8297 .block_erase = spi_block_erase_20,
8298 }, {
8299 .eraseblocks = { {32 * 1024, 32} },
8300 .block_erase = spi_block_erase_52,
8301 }, {
8302 .eraseblocks = { {64 * 1024, 16} },
8303 .block_erase = spi_block_erase_d8,
8304 }, {
8305 .eraseblocks = { {1024 * 1024, 1} },
8306 .block_erase = spi_block_erase_60,
8307 }, {
8308 .eraseblocks = { {1024 * 1024, 1} },
8309 .block_erase = spi_block_erase_c7,
8310 }
8311 },
8312 .printlock = spi_prettyprint_status_register_default_bp3,
8313 .unlock = spi_disable_blockprotect_bp3_srwd,
8314 .write = spi_chip_write_256,
8315 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8316 .voltage = {2700, 3600},
8317 },
8318
8319 {
8320 .vendor = "Nantronics",
8321 .name = "N25S16",
8322 .bustype = BUS_SPI,
8323 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8324 .model_id = NANTRONICS_N25S16,
8325 .total_size = 2048,
8326 .page_size = 256,
8327 .feature_bits = FEATURE_WRSR_WREN,
8328 .tested = TEST_UNTESTED,
8329 .probe = probe_spi_rdid,
8330 .probe_timing = TIMING_ZERO,
8331 .block_erasers =
8332 {
8333 {
8334 .eraseblocks = { {4 * 1024, 512} },
8335 .block_erase = spi_block_erase_20,
8336 }, {
8337 .eraseblocks = { {64 * 1024, 32} },
8338 .block_erase = spi_block_erase_d8,
8339 }, {
8340 .eraseblocks = { {2048 * 1024, 1} },
8341 .block_erase = spi_block_erase_60,
8342 }, {
8343 .eraseblocks = { {2048 * 1024, 1} },
8344 .block_erase = spi_block_erase_c7,
8345 }
8346 },
8347 .printlock = spi_prettyprint_status_register_default_bp3,
8348 .unlock = spi_disable_blockprotect_bp3_srwd,
8349 .write = spi_chip_write_256,
8350 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8351 .voltage = {2700, 3600},
8352 },
8353
8354 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008355 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008356 .name = "Pm25LD256C",
8357 .bustype = BUS_SPI,
8358 .manufacture_id = PMC_ID,
8359 .model_id = PMC_PM25LD256C,
8360 .total_size = 32,
8361 .page_size = 256,
8362 .feature_bits = FEATURE_WRSR_WREN,
8363 .tested = TEST_UNTESTED,
8364 .probe = probe_spi_rdid,
8365 .probe_timing = TIMING_ZERO,
8366 .block_erasers =
8367 {
8368 {
8369 .eraseblocks = { {4 * 1024, 8} },
8370 .block_erase = spi_block_erase_20,
8371 }, {
8372 .eraseblocks = { {4 * 1024, 8} },
8373 .block_erase = spi_block_erase_d7,
8374 }, {
8375 .eraseblocks = { {32 * 1024, 1} },
8376 .block_erase = spi_block_erase_d8,
8377 }, {
8378 .eraseblocks = { {32 * 1024, 1} },
8379 .block_erase = spi_block_erase_60,
8380 }, {
8381 .eraseblocks = { {32 * 1024, 1} },
8382 .block_erase = spi_block_erase_c7,
8383 }
8384 },
8385 .printlock = spi_prettyprint_status_register_default_bp2,
8386 .unlock = spi_disable_blockprotect,
8387 .write = spi_chip_write_256,
8388 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8389 .voltage = {2700, 3600},
8390 },
8391 {
8392 .vendor = "PMC",
8393 .name = "Pm25LD512(C)",
8394 .bustype = BUS_SPI,
8395 .manufacture_id = PMC_ID,
8396 .model_id = PMC_PM25LD512,
8397 .total_size = 64,
8398 .page_size = 256,
8399 .feature_bits = FEATURE_WRSR_WREN,
8400 .tested = TEST_OK_PREW,
8401 .probe = probe_spi_rdid,
8402 .probe_timing = TIMING_ZERO,
8403 .block_erasers =
8404 {
8405 {
8406 .eraseblocks = { {4 * 1024, 16} },
8407 .block_erase = spi_block_erase_20,
8408 }, {
8409 .eraseblocks = { {4 * 1024, 16} },
8410 .block_erase = spi_block_erase_d7,
8411 }, {
8412 .eraseblocks = { {32 * 1024, 2} },
8413 .block_erase = spi_block_erase_d8,
8414 }, {
8415 .eraseblocks = { {64 * 1024, 1} },
8416 .block_erase = spi_block_erase_60,
8417 }, {
8418 .eraseblocks = { {64 * 1024, 1} },
8419 .block_erase = spi_block_erase_c7,
8420 }
8421 },
8422 .printlock = spi_prettyprint_status_register_default_bp2,
8423 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8424 .write = spi_chip_write_256,
8425 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8426 .voltage = {2300, 3600},
8427 },
8428
8429 {
8430 .vendor = "PMC",
8431 .name = "Pm25LD010(C)",
8432 .bustype = BUS_SPI,
8433 .manufacture_id = PMC_ID,
8434 .model_id = PMC_PM25LD010,
8435 .total_size = 128,
8436 .page_size = 256,
8437 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008438 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008439 .probe = probe_spi_rdid,
8440 .probe_timing = TIMING_ZERO,
8441 .block_erasers =
8442 {
8443 {
8444 .eraseblocks = { {4 * 1024, 32} },
8445 .block_erase = spi_block_erase_20,
8446 }, {
8447 .eraseblocks = { {4 * 1024, 32} },
8448 .block_erase = spi_block_erase_d7,
8449 }, {
8450 .eraseblocks = { {32 * 1024, 4} },
8451 .block_erase = spi_block_erase_d8,
8452 }, {
8453 .eraseblocks = { {128 * 1024, 1} },
8454 .block_erase = spi_block_erase_60,
8455 }, {
8456 .eraseblocks = { {128 * 1024, 1} },
8457 .block_erase = spi_block_erase_c7,
8458 }
8459 },
8460 .printlock = spi_prettyprint_status_register_default_bp2,
8461 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8462 .write = spi_chip_write_256,
8463 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8464 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8465 },
8466
8467 {
8468 .vendor = "PMC",
8469 .name = "Pm25LD020(C)",
8470 .bustype = BUS_SPI,
8471 .manufacture_id = PMC_ID,
8472 .model_id = PMC_PM25LD020,
8473 .total_size = 256,
8474 .page_size = 256,
8475 .feature_bits = FEATURE_WRSR_WREN,
8476 .tested = TEST_UNTESTED,
8477 .probe = probe_spi_rdid,
8478 .probe_timing = TIMING_ZERO,
8479 .block_erasers =
8480 {
8481 {
8482 .eraseblocks = { {4 * 1024, 64} },
8483 .block_erase = spi_block_erase_20,
8484 }, {
8485 .eraseblocks = { {4 * 1024, 64} },
8486 .block_erase = spi_block_erase_d7,
8487 }, {
8488 .eraseblocks = { {64 * 1024, 4} },
8489 .block_erase = spi_block_erase_d8,
8490 }, {
8491 .eraseblocks = { {256 * 1024, 1} },
8492 .block_erase = spi_block_erase_60,
8493 }, {
8494 .eraseblocks = { {256 * 1024, 1} },
8495 .block_erase = spi_block_erase_c7,
8496 }
8497 },
8498 .printlock = spi_prettyprint_status_register_default_bp2,
8499 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8500 .write = spi_chip_write_256,
8501 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8502 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8503 },
8504
8505 {
8506 .vendor = "PMC",
8507 .name = "Pm25LD040(C)",
8508 .bustype = BUS_SPI,
8509 .manufacture_id = PMC_ID,
8510 .model_id = PMC_PM25LV040,
8511 .total_size = 512,
8512 .page_size = 256,
8513 .feature_bits = FEATURE_WRSR_WREN,
8514 .tested = TEST_UNTESTED,
8515 .probe = probe_spi_rdid,
8516 .probe_timing = TIMING_ZERO,
8517 .block_erasers =
8518 {
8519 {
8520 .eraseblocks = { {4 * 1024, 128} },
8521 .block_erase = spi_block_erase_20,
8522 }, {
8523 .eraseblocks = { {4 * 1024, 128} },
8524 .block_erase = spi_block_erase_d7,
8525 }, {
8526 .eraseblocks = { {64 * 1024, 8} },
8527 .block_erase = spi_block_erase_d8,
8528 }, {
8529 .eraseblocks = { {512 * 1024, 1} },
8530 .block_erase = spi_block_erase_60,
8531 }, {
8532 .eraseblocks = { {512 * 1024, 1} },
8533 .block_erase = spi_block_erase_c7,
8534 }
8535 },
8536 .printlock = spi_prettyprint_status_register_default_bp2,
8537 .unlock = spi_disable_blockprotect,
8538 .write = spi_chip_write_256,
8539 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8540 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8541 },
8542
8543{
8544 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008545 .name = "Pm25LV512(A)",
8546 .bustype = BUS_SPI,
8547 .manufacture_id = PMC_ID,
8548 .model_id = PMC_PM25LV512,
8549 .total_size = 64,
8550 .page_size = 256,
8551 .feature_bits = FEATURE_WRSR_WREN,
8552 .tested = TEST_UNTESTED,
8553 .probe = probe_spi_res3,
8554 .probe_timing = TIMING_ZERO,
8555 .block_erasers =
8556 {
8557 {
8558 .eraseblocks = { {4 * 1024, 16} },
8559 .block_erase = spi_block_erase_d7,
8560 }, {
8561 .eraseblocks = { {32 * 1024, 2} },
8562 .block_erase = spi_block_erase_d8,
8563 }, {
8564 .eraseblocks = { {64 * 1024, 1} },
8565 .block_erase = spi_block_erase_c7,
8566 }
8567 },
8568 .printlock = spi_prettyprint_status_register_default_bp1,
8569 .unlock = spi_disable_blockprotect,
8570 .write = spi_chip_write_256,
8571 .read = spi_chip_read, /* Fast read (0x0B) supported */
8572 .voltage = {2700, 3600},
8573 },
8574
8575 {
8576 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008577 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008578 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008579 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008580 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008581 .total_size = 128,
8582 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008583 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008584 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008585 .probe = probe_spi_res3,
8586 .probe_timing = TIMING_ZERO,
8587 .block_erasers =
8588 {
8589 {
8590 .eraseblocks = { {4 * 1024, 32} },
8591 .block_erase = spi_block_erase_d7,
8592 }, {
8593 .eraseblocks = { {32 * 1024, 4} },
8594 .block_erase = spi_block_erase_d8,
8595 }, {
8596 .eraseblocks = { {128 * 1024, 1} },
8597 .block_erase = spi_block_erase_c7,
8598 }
8599 },
8600 .printlock = spi_prettyprint_status_register_default_bp1,
8601 .unlock = spi_disable_blockprotect,
8602 .write = spi_chip_write_256,
8603 .read = spi_chip_read, /* Fast read (0x0B) supported */
8604 .voltage = {2700, 3600},
8605 },
8606
8607 {
8608 .vendor = "PMC",
8609 .name = "Pm25LV010A",
8610 .bustype = BUS_SPI,
8611 .manufacture_id = PMC_ID,
8612 .model_id = PMC_PM25LV010,
8613 .total_size = 128,
8614 .page_size = 256,
8615 .feature_bits = FEATURE_WRSR_WREN,
8616 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008617 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008618 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008619 .block_erasers =
8620 {
8621 {
8622 .eraseblocks = { {4 * 1024, 32} },
8623 .block_erase = spi_block_erase_d7,
8624 }, {
8625 .eraseblocks = { {32 * 1024, 4} },
8626 .block_erase = spi_block_erase_d8,
8627 }, {
8628 .eraseblocks = { {128 * 1024, 1} },
8629 .block_erase = spi_block_erase_c7,
8630 }
8631 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008632 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008633 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008634 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008635 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008636 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008637 },
8638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008639 {
8640 .vendor = "PMC",
8641 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008642 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008643 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008644 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008645 .total_size = 256,
8646 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008647 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008648 .tested = TEST_UNTESTED,
8649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008650 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008651 .block_erasers =
8652 {
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_c7,
8662 }
8663 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008664 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008665 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008666 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008667 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008668 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008669 },
8670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008671 {
8672 .vendor = "PMC",
8673 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008674 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008675 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008676 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008677 .total_size = 512,
8678 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008679 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008680 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008681 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008682 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008683 .block_erasers =
8684 {
8685 {
8686 .eraseblocks = { {4 * 1024, 128} },
8687 .block_erase = spi_block_erase_d7,
8688 }, {
8689 .eraseblocks = { {64 * 1024, 8} },
8690 .block_erase = spi_block_erase_d8,
8691 }, {
8692 .eraseblocks = { {512 * 1024, 1} },
8693 .block_erase = spi_block_erase_c7,
8694 }
8695 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008696 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008697 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008698 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008699 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008700 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008701 },
8702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008703 {
8704 .vendor = "PMC",
8705 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008706 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008707 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008708 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008709 .total_size = 1024,
8710 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008711 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008712 .tested = TEST_UNTESTED,
8713 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008714 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008715 .block_erasers =
8716 {
8717 {
8718 .eraseblocks = { {4 * 1024, 256} },
8719 .block_erase = spi_block_erase_d7,
8720 }, {
8721 .eraseblocks = { {4 * 1024, 256} },
8722 .block_erase = spi_block_erase_20,
8723 }, {
8724 .eraseblocks = { {64 * 1024, 16} },
8725 .block_erase = spi_block_erase_d8,
8726 }, {
8727 .eraseblocks = { {1024 * 1024, 1} },
8728 .block_erase = spi_block_erase_60,
8729 }, {
8730 .eraseblocks = { {1024 * 1024, 1} },
8731 .block_erase = spi_block_erase_c7,
8732 }
8733 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008734 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008735 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008736 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008737 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008738 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008739 },
8740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008741 {
8742 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008743 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008744 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008745 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008746 .model_id = PMC_PM25LV016B,
8747 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008748 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008749 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008750 .tested = TEST_UNTESTED,
8751 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008752 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008753 .block_erasers =
8754 {
8755 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008756 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008757 .block_erase = spi_block_erase_d7,
8758 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008759 .eraseblocks = { {4 * 1024, 512} },
8760 .block_erase = spi_block_erase_20,
8761 }, {
8762 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008763 .block_erase = spi_block_erase_d8,
8764 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008765 .eraseblocks = { {2 * 1024 * 1024, 1} },
8766 .block_erase = spi_block_erase_60,
8767 }, {
8768 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008769 .block_erase = spi_block_erase_c7,
8770 }
8771 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008772 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008774 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008776 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008777 },
8778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008779 {
8780 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008781 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008782 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008783 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008784 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008785 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008786 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008788 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008789 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008790 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008791 .block_erasers =
8792 {
8793 {
8794 .eraseblocks = {
8795 {128 * 1024, 1},
8796 {96 * 1024, 1},
8797 {8 * 1024, 2},
8798 {16 * 1024, 1},
8799 },
Sean Nelson35727f72010-01-28 23:55:12 +00008800 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008801 }, {
8802 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008803 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008804 },
8805 },
Sean Nelson35727f72010-01-28 23:55:12 +00008806 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008808 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008809 },
8810
8811 {
8812 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008813 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008814 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008815 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008816 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008817 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008818 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008819 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008820 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008821 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008822 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008823 .block_erasers =
8824 {
8825 {
8826 .eraseblocks = {
8827 {16 * 1024, 1},
8828 {8 * 1024, 2},
8829 {96 * 1024, 1},
8830 {128 * 1024, 1},
8831 },
Sean Nelson35727f72010-01-28 23:55:12 +00008832 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008833 }, {
8834 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008835 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008836 },
8837 },
Sean Nelson35727f72010-01-28 23:55:12 +00008838 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008839 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008840 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008841 },
8842
8843 {
8844 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008845 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008846 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008847 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008848 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008849 .total_size = 128,
8850 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008851 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008852 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008853 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008854 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008855 .block_erasers =
8856 {
8857 {
8858 .eraseblocks = { {4 * 1024, 32} },
8859 .block_erase = erase_sector_jedec,
8860 }, {
8861 .eraseblocks = { {64 * 1024, 2} },
8862 .block_erase = erase_block_jedec,
8863 }, {
8864 .eraseblocks = { {128 * 1024, 1} },
8865 .block_erase = erase_chip_block_jedec,
8866 }
8867 },
Sean Nelson35727f72010-01-28 23:55:12 +00008868 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008869 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008870 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008871 },
8872
8873 {
8874 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008875 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008876 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008877 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008878 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008879 .total_size = 256,
8880 .page_size = 4096,
8881 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8882 .tested = TEST_UNTESTED,
8883 .probe = probe_jedec,
8884 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8885 .block_erasers =
8886 {
8887 {
8888 .eraseblocks = { {4 * 1024, 64} },
8889 .block_erase = erase_sector_jedec,
8890 }, {
8891 .eraseblocks = { {64 * 1024, 4} },
8892 .block_erase = erase_block_jedec,
8893 }, {
8894 .eraseblocks = { {256 * 1024, 1} },
8895 .block_erase = erase_chip_block_jedec,
8896 }
8897 },
8898 .write = write_jedec_1,
8899 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008900 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008901 },
8902
8903 {
8904 .vendor = "PMC",
8905 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008906 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008907 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008908 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008909 .total_size = 512,
8910 .page_size = 4096,
8911 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008912 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008913 .probe = probe_jedec,
8914 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8915 .block_erasers =
8916 {
8917 {
8918 .eraseblocks = { {4 * 1024, 128} },
8919 .block_erase = erase_sector_jedec,
8920 }, {
8921 .eraseblocks = { {64 * 1024, 8} },
8922 .block_erase = erase_block_jedec,
8923 }, {
8924 .eraseblocks = { {512 * 1024, 1} },
8925 .block_erase = erase_chip_block_jedec,
8926 }
8927 },
8928 .write = write_jedec_1,
8929 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008930 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008931 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008932
8933 {
8934 .vendor = "PMC",
8935 .name = "Pm39LV512",
8936 .bustype = BUS_PARALLEL,
8937 .manufacture_id = PMC_ID_NOPREFIX,
8938 .model_id = PMC_PM39LV512,
8939 .total_size = 64,
8940 .page_size = 4096,
8941 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8942 .tested = TEST_OK_PREW,
8943 .probe = probe_jedec,
8944 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8945 .block_erasers =
8946 {
8947 {
8948 .eraseblocks = { {4 * 1024, 16} },
8949 .block_erase = erase_sector_jedec,
8950 }, {
8951 .eraseblocks = { {64 * 1024, 1} },
8952 .block_erase = erase_block_jedec,
8953 }, {
8954 .eraseblocks = { {64 * 1024, 1} },
8955 .block_erase = erase_chip_block_jedec,
8956 }
8957 },
8958 .write = write_jedec_1,
8959 .read = read_memmapped,
8960 .voltage = {2700, 3600},
8961 },
8962
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008963 {
8964 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008965 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008966 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008968 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008969 .total_size = 256,
8970 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008971 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008972 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008973 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008974 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008975 .block_erasers =
8976 {
8977 {
8978 .eraseblocks = { {4 * 1024, 64} },
8979 .block_erase = erase_sector_jedec,
8980 }, {
8981 .eraseblocks = { {16 * 1024, 16} },
8982 .block_erase = erase_block_jedec,
8983 }, {
8984 .eraseblocks = { {256 * 1024, 1} },
8985 .block_erase = erase_chip_block_jedec,
8986 }
8987 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008988 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008989 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008990 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008991 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008992 },
8993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008994 {
8995 .vendor = "PMC",
8996 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008997 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008998 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008999 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009000 .total_size = 512,
9001 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009002 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009003 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009004 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009005 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009006 .block_erasers =
9007 {
9008 {
9009 .eraseblocks = { {4 * 1024, 128} },
9010 .block_erase = erase_sector_jedec,
9011 }, {
9012 .eraseblocks = { {64 * 1024, 8} },
9013 .block_erase = erase_block_jedec,
9014 }, {
9015 .eraseblocks = { {512 * 1024, 1} },
9016 .block_erase = erase_chip_block_jedec,
9017 }
9018 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009019 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009020 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009022 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009023 },
9024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009025 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009026 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009027 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009028 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009029 .manufacture_id = SANYO_ID,
9030 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009031 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009032 .page_size = 256,
9033 .tested = TEST_UNTESTED,
9034 .probe = probe_spi_rdid,
9035 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009036 .block_erasers =
9037 {
9038 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009039 .eraseblocks = { {256, 1024} },
9040 .block_erase = spi_block_erase_db,
9041 }, {
9042 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009043 .block_erase = spi_block_erase_d8,
9044 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009045 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009046 .block_erase = spi_block_erase_c7,
9047 }
9048 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009049 .printlock = spi_prettyprint_status_register_default_welwip,
9050 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009051 .write = spi_chip_write_256,
9052 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009053 .voltage = {2700, 3600},
9054 },
9055
9056 {
9057 .vendor = "Sanyo",
9058 .name = "LE25FW403A",
9059 .bustype = BUS_SPI,
9060 .manufacture_id = SANYO_ID,
9061 .model_id = SANYO_LE25FW403A,
9062 .total_size = 512,
9063 .page_size = 256,
9064 .tested = TEST_UNTESTED,
9065 .probe = probe_spi_rdid,
9066 .probe_timing = TIMING_ZERO,
9067 .block_erasers = {
9068 {
9069 .eraseblocks = { {256, 2 * 1024} },
9070 .block_erase = spi_block_erase_db,
9071 }, {
9072 .eraseblocks = { {64 * 1024, 8} },
9073 .block_erase = spi_block_erase_d8,
9074 }, {
9075 .eraseblocks = { {512 * 1024, 1} },
9076 .block_erase = spi_block_erase_c7,
9077 }
9078 },
9079 .printlock = spi_prettyprint_status_register_default_welwip,
9080 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9081 .write = spi_chip_write_256,
9082 .read = spi_chip_read,
9083 .voltage = {2700, 3600},
9084 },
9085
9086 {
9087 .vendor = "Sanyo",
9088 .name = "LE25FW418A",
9089 .bustype = BUS_SPI,
9090 .manufacture_id = SANYO_ID,
9091 .model_id = SANYO_LE25FW418A,
9092 .total_size = 512,
9093 .page_size = 256,
9094 .feature_bits = FEATURE_WRSR_WREN,
9095 .tested = TEST_UNTESTED,
9096 .probe = probe_spi_res2,
9097 .probe_timing = TIMING_ZERO,
9098 .block_erasers = {
9099 {
9100 .eraseblocks = { {4 * 1024, 128} },
9101 .block_erase = spi_block_erase_d7,
9102 }, {
9103 .eraseblocks = { {64 * 1024, 8} },
9104 .block_erase = spi_block_erase_d8,
9105 }, {
9106 .eraseblocks = { {512 * 1024, 1} },
9107 .block_erase = spi_block_erase_c7,
9108 }
9109 },
9110 .printlock = spi_prettyprint_status_register_default_bp2,
9111 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9112 .write = spi_chip_write_256,
9113 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9114 .voltage = {2700, 3600},
9115 },
9116
9117 {
9118 .vendor = "Sanyo",
9119 .name = "LE25FW806",
9120 .bustype = BUS_SPI,
9121 .manufacture_id = SANYO_ID,
9122 .model_id = SANYO_LE25FW806,
9123 .total_size = 1024,
9124 .page_size = 256,
9125 .feature_bits = FEATURE_WRSR_WREN,
9126 .tested = TEST_UNTESTED,
9127 .probe = probe_spi_res2,
9128 .probe_timing = TIMING_ZERO,
9129 .block_erasers = {
9130 {
9131 .eraseblocks = { {4 * 1024, 256} },
9132 .block_erase = spi_block_erase_20,
9133 }, {
9134 .eraseblocks = { {4 * 1024, 256} },
9135 .block_erase = spi_block_erase_d7,
9136 }, {
9137 .eraseblocks = { {64 * 1024, 16} },
9138 .block_erase = spi_block_erase_d8,
9139 }, {
9140 .eraseblocks = { {1024 * 1024, 1} },
9141 .block_erase = spi_block_erase_c7,
9142 }
9143 },
9144 .printlock = spi_prettyprint_status_register_default_bp2,
9145 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9146 .write = spi_chip_write_256,
9147 .read = spi_chip_read,
9148 .voltage = {2700, 3600},
9149 },
9150
9151 {
9152 .vendor = "Sanyo",
9153 .name = "LE25FW808",
9154 .bustype = BUS_SPI,
9155 .manufacture_id = SANYO_ID,
9156 .model_id = SANYO_LE25FW808,
9157 .total_size = 1024,
9158 .page_size = 256,
9159 .feature_bits = FEATURE_WRSR_WREN,
9160 .tested = TEST_UNTESTED,
9161 .probe = probe_spi_res2,
9162 .probe_timing = TIMING_ZERO,
9163 .block_erasers = {
9164 {
9165 .eraseblocks = { {8 * 1024, 128} },
9166 .block_erase = spi_block_erase_d7,
9167 }, {
9168 .eraseblocks = { {64 * 1024, 16} },
9169 .block_erase = spi_block_erase_d8,
9170 }, {
9171 .eraseblocks = { {1024 * 1024, 1} },
9172 .block_erase = spi_block_erase_c7,
9173 }
9174 },
9175 .printlock = spi_prettyprint_status_register_default_bp2,
9176 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9177 .write = spi_chip_write_256,
9178 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9179 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009180 },
9181
9182 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009183 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009184 .name = "LH28F008BJT-BTLZ1",
9185 .bustype = BUS_PARALLEL,
9186 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009187 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009188 .total_size = 1024,
9189 .page_size = 64 * 1024,
9190 .tested = TEST_OK_PREW,
9191 .probe = probe_82802ab,
9192 .probe_timing = TIMING_ZERO,
9193 .block_erasers =
9194 {
9195 {
9196 .eraseblocks = {
9197 {8 * 1024, 8},
9198 {64 * 1024, 15}
9199 },
9200 .block_erase = erase_block_82802ab,
9201 }, {
9202 .eraseblocks = { {1024 * 1024, 1} },
9203 .block_erase = erase_sector_49lfxxxc,
9204 }
9205 },
9206 .unlock = unlock_lh28f008bjt,
9207 .write = write_82802ab,
9208 .read = read_memmapped,
9209 .voltage = {2700, 3600},
9210 },
9211
9212 {
9213 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009214 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009215 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009216 .manufacture_id = SHARP_ID,
9217 .model_id = SHARP_LHF00L04,
9218 .total_size = 1024,
9219 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009220 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009221 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009222 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009223 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009224 .block_erasers =
9225 {
9226 {
9227 .eraseblocks = {
9228 {64 * 1024, 15},
9229 {8 * 1024, 8}
9230 },
Sean Nelson28accc22010-03-19 18:47:06 +00009231 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009232 }, {
9233 .eraseblocks = {
9234 {1024 * 1024, 1}
9235 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009236 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009237 },
9238 },
Sean Nelson28accc22010-03-19 18:47:06 +00009239 .unlock = unlock_82802ab,
9240 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009242 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009243 },
9244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009245 {
9246 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009247 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009248 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009249 .manufacture_id = SPANSION_ID,
9250 .model_id = SPANSION_S25FL004A,
9251 .total_size = 512,
9252 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009253 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009254 .tested = TEST_UNTESTED,
9255 .probe = probe_spi_rdid,
9256 .probe_timing = TIMING_ZERO,
9257 .block_erasers =
9258 {
9259 {
9260 .eraseblocks = { {64 * 1024, 8} },
9261 .block_erase = spi_block_erase_d8,
9262 }, {
9263 .eraseblocks = { {512 * 1024, 1} },
9264 .block_erase = spi_block_erase_c7,
9265 }
9266 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009267 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009268 .unlock = spi_disable_blockprotect,
9269 .write = spi_chip_write_256,
9270 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009271 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009272 },
9273
9274 {
9275 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009276 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009277 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009278 .manufacture_id = SPANSION_ID,
9279 .model_id = SPANSION_S25FL008A,
9280 .total_size = 1024,
9281 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009282 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009283 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009284 .probe = probe_spi_rdid,
9285 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009286 .block_erasers =
9287 {
9288 {
9289 .eraseblocks = { {64 * 1024, 16} },
9290 .block_erase = spi_block_erase_d8,
9291 }, {
9292 .eraseblocks = { {1024 * 1024, 1} },
9293 .block_erase = spi_block_erase_c7,
9294 }
9295 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009297 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009298 .write = spi_chip_write_256,
9299 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009300 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009301 },
9302
9303 {
9304 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009305 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009306 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009307 .manufacture_id = SPANSION_ID,
9308 .model_id = SPANSION_S25FL016A,
9309 .total_size = 2048,
9310 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009311 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009312 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009313 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009314 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009315 .block_erasers =
9316 {
9317 {
9318 .eraseblocks = { {64 * 1024, 32} },
9319 .block_erase = spi_block_erase_d8,
9320 }, {
9321 .eraseblocks = { {2 * 1024 * 1024, 1} },
9322 .block_erase = spi_block_erase_c7,
9323 }
9324 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009325 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009326 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009327 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009328 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009329 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009330 },
9331
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009332 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009333 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009334 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009335 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009336 .manufacture_id = SPANSION_ID,
9337 .model_id = SPANSION_S25FL032A,
9338 .total_size = 4096,
9339 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009340 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009341 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009342 .probe = probe_spi_rdid,
9343 .probe_timing = TIMING_ZERO,
9344 .block_erasers =
9345 {
9346 {
9347 .eraseblocks = { {64 * 1024, 64} },
9348 .block_erase = spi_block_erase_d8,
9349 }, {
9350 .eraseblocks = { {4 * 1024 * 1024, 1} },
9351 .block_erase = spi_block_erase_c7,
9352 }
9353 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009355 .unlock = spi_disable_blockprotect,
9356 .write = spi_chip_write_256,
9357 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009358 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009359 },
9360
9361 {
9362 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009363 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009364 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009365 .manufacture_id = SPANSION_ID,
9366 .model_id = SPANSION_S25FL064A,
9367 .total_size = 8192,
9368 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009369 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009370 .tested = TEST_OK_PREW,
9371 .probe = probe_spi_rdid,
9372 .probe_timing = TIMING_ZERO,
9373 .block_erasers =
9374 {
9375 {
9376 .eraseblocks = { {64 * 1024, 128} },
9377 .block_erase = spi_block_erase_d8,
9378 }, {
9379 .eraseblocks = { {8 * 1024 * 1024, 1} },
9380 .block_erase = spi_block_erase_c7,
9381 }
9382 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009383 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009384 .unlock = spi_disable_blockprotect,
9385 .write = spi_chip_write_256,
9386 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009387 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009388 },
9389
9390 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009391 .vendor = "Spansion",
9392 .name = "S25FL204K",
9393 .bustype = BUS_SPI,
9394 .manufacture_id = SPANSION_ID,
9395 .model_id = SPANSION_S25FL204,
9396 .total_size = 512,
9397 .page_size = 256,
9398 .feature_bits = FEATURE_WRSR_WREN,
9399 .tested = TEST_UNTESTED,
9400 .probe = probe_spi_rdid,
9401 .probe_timing = TIMING_ZERO,
9402 .block_erasers = {
9403 {
9404 .eraseblocks = { {4 * 1024, 128} },
9405 .block_erase = spi_block_erase_20,
9406 }, {
9407 .eraseblocks = { {64 * 1024, 8} },
9408 .block_erase = spi_block_erase_d8,
9409 }, {
9410 .eraseblocks = { { 512 * 1024, 1} },
9411 .block_erase = spi_block_erase_60,
9412 }, {
9413 .eraseblocks = { { 512 * 1024, 1} },
9414 .block_erase = spi_block_erase_c7,
9415 }
9416 },
9417 .printlock = spi_prettyprint_status_register_default_bp3,
9418 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9419 .write = spi_chip_write_256,
9420 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9421 .voltage = {2700, 3600},
9422 },
9423
9424 {
9425 .vendor = "Spansion",
9426 .name = "S25FL208K",
9427 .bustype = BUS_SPI,
9428 .manufacture_id = SPANSION_ID,
9429 .model_id = SPANSION_S25FL208,
9430 .total_size = 1024,
9431 .page_size = 256,
9432 .feature_bits = FEATURE_WRSR_WREN,
9433 .tested = TEST_UNTESTED,
9434 .probe = probe_spi_rdid,
9435 .probe_timing = TIMING_ZERO,
9436 .block_erasers = {
9437 {
9438 .eraseblocks = { {4 * 1024, 256} },
9439 .block_erase = spi_block_erase_20,
9440 }, {
9441 .eraseblocks = { {64 * 1024, 16} },
9442 .block_erase = spi_block_erase_d8,
9443 }, {
9444 .eraseblocks = { { 1024 * 1024, 1} },
9445 .block_erase = spi_block_erase_60,
9446 }, {
9447 .eraseblocks = { { 1024 * 1024, 1} },
9448 .block_erase = spi_block_erase_c7,
9449 }
9450 },
9451 .printlock = spi_prettyprint_status_register_default_bp3,
9452 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9453 .write = spi_chip_write_256,
9454 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9455 .voltage = {2700, 3600},
9456 },
9457
9458 {
9459 .vendor = "Spansion",
9460 .name = "S25FL116K/S25FL216K",
9461 .bustype = BUS_SPI,
9462 .manufacture_id = SPANSION_ID,
9463 .model_id = SPANSION_S25FL216,
9464 .total_size = 2048,
9465 .page_size = 256,
9466 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9468 .tested = TEST_UNTESTED,
9469 .probe = probe_spi_rdid,
9470 .probe_timing = TIMING_ZERO,
9471 .block_erasers = {
9472 {
9473 .eraseblocks = { {4 * 1024, 512} },
9474 .block_erase = spi_block_erase_20,
9475 }, {
9476 .eraseblocks = { {64 * 1024, 32} },
9477 .block_erase = spi_block_erase_d8,
9478 }, {
9479 .eraseblocks = { { 2048 * 1024, 1} },
9480 .block_erase = spi_block_erase_60,
9481 }, {
9482 .eraseblocks = { { 2048 * 1024, 1} },
9483 .block_erase = spi_block_erase_c7,
9484 }
9485 },
9486 .printlock = spi_prettyprint_status_register_default_bp3,
9487 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9488 .write = spi_chip_write_256,
9489 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9490 .voltage = {2700, 3600},
9491 },
9492
9493 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009494 .vendor = "Spansion",
9495 .name = "S25FL128S......0", /* uniform 256kB sectors */
9496 .bustype = BUS_SPI,
9497 .manufacture_id = SPANSION_ID,
9498 .model_id = SPANSION_S25FL128,
9499 .total_size = 16384,
9500 .page_size = 256,
9501 /* supports 4B addressing */
9502 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9503 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9504 .tested = TEST_UNTESTED,
9505 .probe = probe_spi_rdid,
9506 .probe_timing = TIMING_ZERO,
9507 .block_erasers = {
9508 {
9509 .eraseblocks = { {4 * 1024, 4096} },
9510 .block_erase = spi_block_erase_20,
9511 }, {
9512 .eraseblocks = { {256 * 1024, 64} },
9513 .block_erase = spi_block_erase_d8,
9514 }, {
9515 .eraseblocks = { { 16384 * 1024, 1} },
9516 .block_erase = spi_block_erase_60,
9517 }, {
9518 .eraseblocks = { { 16384 * 1024, 1} },
9519 .block_erase = spi_block_erase_c7,
9520 }
9521 },
9522 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9523 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9524 .write = spi_chip_write_256, /* Multi I/O supported */
9525 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9526 .voltage = {2700, 3600},
9527 },
9528
9529 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009530 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009531 .name = "SST25LF040A",
9532 .bustype = BUS_SPI,
9533 .manufacture_id = SST_ID,
9534 .model_id = SST_SST25VF040_REMS,
9535 .total_size = 512,
9536 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009537 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009538 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009539 .probe = probe_spi_res2,
9540 .probe_timing = TIMING_ZERO,
9541 .block_erasers =
9542 {
9543 {
9544 .eraseblocks = { {4 * 1024, 128} },
9545 .block_erase = spi_block_erase_20,
9546 }, {
9547 .eraseblocks = { {32 * 1024, 16} },
9548 .block_erase = spi_block_erase_52,
9549 }, {
9550 .eraseblocks = { {512 * 1024, 1} },
9551 .block_erase = spi_block_erase_60,
9552 },
9553 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009554 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009555 .unlock = spi_disable_blockprotect,
9556 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9557 .read = spi_chip_read,
9558 .voltage = {3000, 3600},
9559 },
9560
9561 {
9562 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009563 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009564 .bustype = BUS_SPI,
9565 .manufacture_id = SST_ID,
9566 .model_id = SST_SST25VF080_REMS,
9567 .total_size = 1024,
9568 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009569 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009570 .tested = TEST_UNTESTED,
9571 .probe = probe_spi_res2,
9572 .probe_timing = TIMING_ZERO,
9573 .block_erasers =
9574 {
9575 {
9576 .eraseblocks = { {4 * 1024, 256} },
9577 .block_erase = spi_block_erase_20,
9578 }, {
9579 .eraseblocks = { {32 * 1024, 32} },
9580 .block_erase = spi_block_erase_52,
9581 }, {
9582 .eraseblocks = { {1024 * 1024, 1} },
9583 .block_erase = spi_block_erase_60,
9584 },
9585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009586 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009587 .unlock = spi_disable_blockprotect,
9588 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9589 .read = spi_chip_read,
9590 .voltage = {3000, 3600},
9591 },
9592
9593 {
9594 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +00009595 .name = "SST25VF512A",
9596 .bustype = BUS_SPI,
9597 .manufacture_id = SST_ID,
9598 .model_id = SST_SST25VF512A_REMS,
9599 .total_size = 64,
9600 .page_size = 256,
9601 .feature_bits = FEATURE_WRSR_EWSR,
9602 .tested = TEST_OK_PREW,
9603 .probe = probe_spi_rems,
9604 .probe_timing = TIMING_ZERO,
9605 .block_erasers =
9606 {
9607 {
9608 .eraseblocks = { {4 * 1024, 16} },
9609 .block_erase = spi_block_erase_20,
9610 }, {
9611 .eraseblocks = { {32 * 1024, 2} },
9612 .block_erase = spi_block_erase_52,
9613 }, {
9614 .eraseblocks = { {32 * 1024, 2} },
9615 .block_erase = spi_block_erase_d8,
9616 }, {
9617 .eraseblocks = { {64 * 1024, 1} },
9618 .block_erase = spi_block_erase_60,
9619 }, {
9620 .eraseblocks = { {64 * 1024, 1} },
9621 .block_erase = spi_block_erase_c7,
9622 },
9623 },
9624 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9625 .unlock = spi_disable_blockprotect,
9626 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9627 .read = spi_chip_read, /* Fast read (0x0B) supported */
9628 .voltage = {2700, 3600},
9629 },
9630
9631 {
9632 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009633 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009634 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009635 .manufacture_id = SST_ID,
9636 .model_id = SST_SST25VF010_REMS,
9637 .total_size = 128,
9638 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009639 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009640 .tested = TEST_OK_PREW,
9641 .probe = probe_spi_rems,
9642 .probe_timing = TIMING_ZERO,
9643 .block_erasers =
9644 {
9645 {
9646 .eraseblocks = { {4 * 1024, 32} },
9647 .block_erase = spi_block_erase_20,
9648 }, {
9649 .eraseblocks = { {32 * 1024, 4} },
9650 .block_erase = spi_block_erase_52,
9651 }, {
Cory Henderson370f5822013-10-19 23:09:16 +00009652 .eraseblocks = { {32 * 1024, 4} },
9653 .block_erase = spi_block_erase_d8,
9654 }, {
Mark Marshall90021f22010-12-03 14:48:11 +00009655 .eraseblocks = { {128 * 1024, 1} },
9656 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +00009657 }, {
9658 .eraseblocks = { {128 * 1024, 1} },
9659 .block_erase = spi_block_erase_c7,
9660 },
9661 },
9662 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9663 .unlock = spi_disable_blockprotect,
9664 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9665 .read = spi_chip_read, /* Fast read (0x0B) supported */
9666 .voltage = {2700, 3600},
9667 },
9668
9669 {
9670 .vendor = "SST",
9671 .name = "SST25VF020",
9672 .bustype = BUS_SPI,
9673 .manufacture_id = SST_ID,
9674 .model_id = SST_SST25VF020_REMS,
9675 .total_size = 256,
9676 .page_size = 256,
9677 .feature_bits = FEATURE_WRSR_EWSR,
9678 .tested = TEST_UNTESTED,
9679 .probe = probe_spi_rems,
9680 .probe_timing = TIMING_ZERO,
9681 .block_erasers =
9682 {
9683 {
9684 .eraseblocks = { {4 * 1024, 64} },
9685 .block_erase = spi_block_erase_20,
9686 }, {
9687 .eraseblocks = { {32 * 1024, 8} },
9688 .block_erase = spi_block_erase_52,
9689 }, {
9690 .eraseblocks = { {256 * 1024, 1} },
9691 .block_erase = spi_block_erase_60,
9692 },
9693 },
9694 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9695 .unlock = spi_disable_blockprotect,
9696 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9697 .read = spi_chip_read, /* only */
9698 .voltage = {2700, 3600},
9699 },
9700
9701 {
9702 .vendor = "SST",
9703 .name = "SST25VF020B",
9704 .bustype = BUS_SPI,
9705 .manufacture_id = SST_ID,
9706 .model_id = SST_SST25VF020B,
9707 .total_size = 256,
9708 .page_size = 256,
9709 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009710 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +00009711 .probe = probe_spi_rdid,
9712 .probe_timing = TIMING_ZERO,
9713 .block_erasers =
9714 {
9715 {
9716 .eraseblocks = { {4 * 1024, 64} },
9717 .block_erase = spi_block_erase_20,
9718 }, {
9719 .eraseblocks = { {32 * 1024, 8} },
9720 .block_erase = spi_block_erase_52,
9721 }, {
9722 .eraseblocks = { {64 * 1024, 4} },
9723 .block_erase = spi_block_erase_d8,
9724 }, {
9725 .eraseblocks = { {256 * 1024, 1} },
9726 .block_erase = spi_block_erase_60,
9727 }, {
9728 .eraseblocks = { {256 * 1024, 1} },
9729 .block_erase = spi_block_erase_c7,
9730 },
9731 },
9732 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
9733 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
9734 .write = spi_aai_write, /* AAI supported (0xAD) */
9735 .read = spi_chip_read, /* Fast read (0x0B) supported */
9736 .voltage = {2700, 3600},
9737 },
9738
9739 {
9740 .vendor = "SST",
9741 .name = "SST25VF040",
9742 .bustype = BUS_SPI,
9743 .manufacture_id = SST_ID,
9744 .model_id = SST_SST25VF040_REMS,
9745 .total_size = 512,
9746 .page_size = 256,
9747 .feature_bits = FEATURE_WRSR_EWSR,
9748 .tested = TEST_OK_PR,
9749 .probe = probe_spi_rems,
9750 .probe_timing = TIMING_ZERO,
9751 .block_erasers =
9752 {
9753 {
9754 .eraseblocks = { {4 * 1024, 128} },
9755 .block_erase = spi_block_erase_20,
9756 }, {
9757 .eraseblocks = { {32 * 1024, 16} },
9758 .block_erase = spi_block_erase_52,
9759 }, {
9760 .eraseblocks = { {512 * 1024, 1} },
9761 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +00009762 },
9763 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009764 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009765 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +00009766 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9767 .read = spi_chip_read,
9768 .voltage = {2700, 3600},
9769 },
9770
9771 {
9772 .vendor = "SST",
9773 .name = "SST25VF040B",
9774 .bustype = BUS_SPI,
9775 .manufacture_id = SST_ID,
9776 .model_id = SST_SST25VF040B,
9777 .total_size = 512,
9778 .page_size = 256,
9779 .feature_bits = FEATURE_WRSR_EWSR,
9780 .tested = TEST_OK_PREW,
9781 .probe = probe_spi_rdid,
9782 .probe_timing = TIMING_ZERO,
9783 .block_erasers =
9784 {
9785 {
9786 .eraseblocks = { {4 * 1024, 128} },
9787 .block_erase = spi_block_erase_20,
9788 }, {
9789 .eraseblocks = { {32 * 1024, 16} },
9790 .block_erase = spi_block_erase_52,
9791 }, {
9792 .eraseblocks = { {64 * 1024, 8} },
9793 .block_erase = spi_block_erase_d8,
9794 }, {
9795 .eraseblocks = { {512 * 1024, 1} },
9796 .block_erase = spi_block_erase_60,
9797 }, {
9798 .eraseblocks = { {512 * 1024, 1} },
9799 .block_erase = spi_block_erase_c7,
9800 },
9801 },
9802 .printlock = spi_prettyprint_status_register_sst25vf040b,
9803 .unlock = spi_disable_blockprotect,
9804 .write = spi_aai_write, /* AAI supported (0xAD) */
9805 .read = spi_chip_read, /* Fast read (0x0B) supported */
9806 .voltage = {2700, 3600},
9807 },
9808
9809 {
9810 .vendor = "SST",
9811 .name = "SST25VF040B.REMS",
9812 .bustype = BUS_SPI,
9813 .manufacture_id = SST_ID,
9814 .model_id = SST_SST25VF040B_REMS,
9815 .total_size = 512,
9816 .page_size = 256,
9817 .feature_bits = FEATURE_WRSR_EWSR,
9818 .tested = TEST_OK_PREW,
9819 .probe = probe_spi_rems,
9820 .probe_timing = TIMING_ZERO,
9821 .block_erasers =
9822 {
9823 {
9824 .eraseblocks = { {4 * 1024, 128} },
9825 .block_erase = spi_block_erase_20,
9826 }, {
9827 .eraseblocks = { {32 * 1024, 16} },
9828 .block_erase = spi_block_erase_52,
9829 }, {
9830 .eraseblocks = { {64 * 1024, 8} },
9831 .block_erase = spi_block_erase_d8,
9832 }, {
9833 .eraseblocks = { {512 * 1024, 1} },
9834 .block_erase = spi_block_erase_60,
9835 }, {
9836 .eraseblocks = { {512 * 1024, 1} },
9837 .block_erase = spi_block_erase_c7,
9838 },
9839 },
9840 .printlock = spi_prettyprint_status_register_sst25vf040b,
9841 .unlock = spi_disable_blockprotect,
9842 .write = spi_aai_write,
9843 .read = spi_chip_read,
9844 .voltage = {2700, 3600},
9845 },
9846
9847 {
9848 .vendor = "SST",
9849 .name = "SST25VF080B",
9850 .bustype = BUS_SPI,
9851 .manufacture_id = SST_ID,
9852 .model_id = SST_SST25VF080B,
9853 .total_size = 1024,
9854 .page_size = 256,
9855 .feature_bits = FEATURE_WRSR_EWSR,
9856 .tested = TEST_OK_PREW,
9857 .probe = probe_spi_rdid,
9858 .probe_timing = TIMING_ZERO,
9859 .block_erasers =
9860 {
9861 {
9862 .eraseblocks = { {4 * 1024, 256} },
9863 .block_erase = spi_block_erase_20,
9864 }, {
9865 .eraseblocks = { {32 * 1024, 32} },
9866 .block_erase = spi_block_erase_52,
9867 }, {
9868 .eraseblocks = { {64 * 1024, 16} },
9869 .block_erase = spi_block_erase_d8,
9870 }, {
9871 .eraseblocks = { {1024 * 1024, 1} },
9872 .block_erase = spi_block_erase_60,
9873 }, {
9874 .eraseblocks = { {1024 * 1024, 1} },
9875 .block_erase = spi_block_erase_c7,
9876 },
9877 },
9878 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
9879 .unlock = spi_disable_blockprotect,
9880 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +00009881 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009882 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00009883 },
9884
9885 {
9886 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009887 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009888 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009889 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009890 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009891 .total_size = 2048,
9892 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009893 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00009894 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009895 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009896 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009897 .block_erasers =
9898 {
9899 {
9900 .eraseblocks = { {4 * 1024, 512} },
9901 .block_erase = spi_block_erase_20,
9902 }, {
9903 .eraseblocks = { {32 * 1024, 64} },
9904 .block_erase = spi_block_erase_52,
9905 }, {
9906 .eraseblocks = { {64 * 1024, 32} },
9907 .block_erase = spi_block_erase_d8,
9908 }, {
9909 .eraseblocks = { {2 * 1024 * 1024, 1} },
9910 .block_erase = spi_block_erase_60,
9911 }, {
9912 .eraseblocks = { {2 * 1024 * 1024, 1} },
9913 .block_erase = spi_block_erase_c7,
9914 },
9915 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009916 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009917 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009918 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009919 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009920 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009921 },
9922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009923 {
9924 .vendor = "SST",
9925 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009926 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009927 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009928 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009929 .total_size = 4096,
9930 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009931 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00009932 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009933 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009934 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009935 .block_erasers =
9936 {
9937 {
9938 .eraseblocks = { {4 * 1024, 1024} },
9939 .block_erase = spi_block_erase_20,
9940 }, {
9941 .eraseblocks = { {32 * 1024, 128} },
9942 .block_erase = spi_block_erase_52,
9943 }, {
9944 .eraseblocks = { {64 * 1024, 64} },
9945 .block_erase = spi_block_erase_d8,
9946 }, {
9947 .eraseblocks = { {4 * 1024 * 1024, 1} },
9948 .block_erase = spi_block_erase_60,
9949 }, {
9950 .eraseblocks = { {4 * 1024 * 1024, 1} },
9951 .block_erase = spi_block_erase_c7,
9952 },
9953 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009954 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009955 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009956 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009958 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009959 },
9960
9961 {
9962 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009963 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009964 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009965 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009966 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009967 .total_size = 8192,
9968 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009969 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00009970 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009971 .probe = probe_spi_rdid,
9972 .probe_timing = TIMING_ZERO,
9973 .block_erasers =
9974 {
9975 {
9976 .eraseblocks = { {4 * 1024, 2048} },
9977 .block_erase = spi_block_erase_20,
9978 }, {
9979 .eraseblocks = { {32 * 1024, 256} },
9980 .block_erase = spi_block_erase_52,
9981 }, {
9982 .eraseblocks = { {64 * 1024, 128} },
9983 .block_erase = spi_block_erase_d8,
9984 }, {
9985 .eraseblocks = { {8 * 1024 * 1024, 1} },
9986 .block_erase = spi_block_erase_60,
9987 }, {
9988 .eraseblocks = { {8 * 1024 * 1024, 1} },
9989 .block_erase = spi_block_erase_c7,
9990 },
9991 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009992 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009993 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009994 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009995 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009996 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009997 },
9998
9999 {
10000 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010001 .name = "SST25WF512",
10002 .bustype = BUS_SPI,
10003 .manufacture_id = SST_ID,
10004 .model_id = SST_SST25WF512,
10005 .total_size = 64,
10006 .page_size = 256,
10007 .feature_bits = FEATURE_WRSR_EITHER,
10008 .tested = TEST_UNTESTED,
10009 .probe = probe_spi_rdid,
10010 .probe_timing = TIMING_ZERO,
10011 .block_erasers =
10012 {
10013 {
10014 .eraseblocks = { {4 * 1024, 16} },
10015 .block_erase = spi_block_erase_20,
10016 }, {
10017 .eraseblocks = { {32 * 1024, 2} },
10018 .block_erase = spi_block_erase_52,
10019 }, {
10020 .eraseblocks = { {1024 * 64, 1} },
10021 .block_erase = spi_block_erase_60,
10022 }, {
10023 .eraseblocks = { {1024 * 64, 1} },
10024 .block_erase = spi_block_erase_c7,
10025 },
10026 },
10027 .unlock = spi_disable_blockprotect,
10028 .write = spi_aai_write,
10029 .read = spi_chip_read, /* Fast read (0x0B) supported */
10030 .voltage = {1650, 1950},
10031 },
10032
10033 {
10034 .vendor = "SST",
10035 .name = "SST25WF010",
10036 .bustype = BUS_SPI,
10037 .manufacture_id = SST_ID,
10038 .model_id = SST_SST25WF010,
10039 .total_size = 128,
10040 .page_size = 256,
10041 .feature_bits = FEATURE_WRSR_EITHER,
10042 .tested = TEST_UNTESTED,
10043 .probe = probe_spi_rdid,
10044 .probe_timing = TIMING_ZERO,
10045 .block_erasers =
10046 {
10047 {
10048 .eraseblocks = { {4 * 1024, 32} },
10049 .block_erase = spi_block_erase_20,
10050 }, {
10051 .eraseblocks = { {32 * 1024, 4} },
10052 .block_erase = spi_block_erase_52,
10053 }, {
10054 .eraseblocks = { {1024 * 128, 1} },
10055 .block_erase = spi_block_erase_60,
10056 }, {
10057 .eraseblocks = { {1024 * 128, 1} },
10058 .block_erase = spi_block_erase_c7,
10059 },
10060 },
10061 .unlock = spi_disable_blockprotect,
10062 .write = spi_aai_write,
10063 .read = spi_chip_read, /* Fast read (0x0B) supported */
10064 .voltage = {1650, 1950},
10065 },
10066
10067 {
10068 .vendor = "SST",
10069 .name = "SST25WF020",
10070 .bustype = BUS_SPI,
10071 .manufacture_id = SST_ID,
10072 .model_id = SST_SST25WF020,
10073 .total_size = 256,
10074 .page_size = 256,
10075 .feature_bits = FEATURE_WRSR_EITHER,
10076 .tested = TEST_UNTESTED,
10077 .probe = probe_spi_rdid,
10078 .probe_timing = TIMING_ZERO,
10079 .block_erasers =
10080 {
10081 {
10082 .eraseblocks = { {4 * 1024, 64} },
10083 .block_erase = spi_block_erase_20,
10084 }, {
10085 .eraseblocks = { {32 * 1024, 8} },
10086 .block_erase = spi_block_erase_52,
10087 }, {
10088 .eraseblocks = { {64 * 1024, 4} },
10089 .block_erase = spi_block_erase_d8,
10090 }, {
10091 .eraseblocks = { {1024 * 256, 1} },
10092 .block_erase = spi_block_erase_60,
10093 }, {
10094 .eraseblocks = { {1024 * 256, 1} },
10095 .block_erase = spi_block_erase_c7,
10096 },
10097 },
10098 .unlock = spi_disable_blockprotect,
10099 .write = spi_aai_write,
10100 .read = spi_chip_read, /* Fast read (0x0B) supported */
10101 .voltage = {1650, 1950},
10102 },
10103
10104 {
10105 .vendor = "SST",
10106 .name = "SST25WF040",
10107 .bustype = BUS_SPI,
10108 .manufacture_id = SST_ID,
10109 .model_id = SST_SST25WF040,
10110 .total_size = 512,
10111 .page_size = 256,
10112 .feature_bits = FEATURE_WRSR_EITHER,
10113 .tested = TEST_UNTESTED,
10114 .probe = probe_spi_rdid,
10115 .probe_timing = TIMING_ZERO,
10116 .block_erasers =
10117 {
10118 {
10119 .eraseblocks = { {4 * 1024, 128} },
10120 .block_erase = spi_block_erase_20,
10121 }, {
10122 .eraseblocks = { {32 * 1024, 16} },
10123 .block_erase = spi_block_erase_52,
10124 }, {
10125 .eraseblocks = { {64 * 1024, 8} },
10126 .block_erase = spi_block_erase_d8,
10127 }, {
10128 .eraseblocks = { {1024 * 512, 1} },
10129 .block_erase = spi_block_erase_60,
10130 }, {
10131 .eraseblocks = { {1024 * 512, 1} },
10132 .block_erase = spi_block_erase_c7,
10133 },
10134 },
10135 .unlock = spi_disable_blockprotect,
10136 .write = spi_aai_write,
10137 .read = spi_chip_read, /* Fast read (0x0B) supported */
10138 .voltage = {1650, 1950},
10139 },
10140
10141 {
10142 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010143 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010144 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010145 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010146 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010147 .total_size = 512,
10148 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010149 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010150 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010151 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010152 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010153 .block_erasers =
10154 {
10155 {
10156 .eraseblocks = { {128, 4096} },
10157 .block_erase = erase_sector_28sf040,
10158 }, {
10159 .eraseblocks = { {512 * 1024, 1} },
10160 .block_erase = erase_chip_28sf040,
10161 }
10162 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010163 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010164 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010165 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010166 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010167 },
10168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010169 {
10170 .vendor = "SST",
10171 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010172 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010173 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010174 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010175 .total_size = 128,
10176 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010177 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010178 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010179 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010180 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010181 .block_erasers =
10182 {
10183 {
10184 .eraseblocks = { {128 * 1024, 1} },
10185 .block_erase = erase_chip_block_jedec,
10186 }
10187 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010188 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010189 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010190 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010191 },
10192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010193 {
10194 .vendor = "SST",
10195 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010196 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010197 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010198 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010199 .total_size = 128,
10200 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010201 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010202 .tested = TEST_UNTESTED,
10203 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010204 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010205 .block_erasers =
10206 {
10207 {
10208 .eraseblocks = { {128 * 1024, 1} },
10209 .block_erase = erase_chip_block_jedec,
10210 }
10211 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010212 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010214 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010215 },
10216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010217 {
10218 .vendor = "SST",
10219 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010220 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010221 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010222 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010223 .total_size = 256,
10224 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010225 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010226 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010227 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010228 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010229 .block_erasers =
10230 {
10231 {
10232 .eraseblocks = { {256 * 1024, 1} },
10233 .block_erase = erase_chip_block_jedec,
10234 }
10235 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010236 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010237 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010238 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010239 },
10240
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010241 {
10242 .vendor = "SST",
10243 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010244 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010245 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010246 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010247 .total_size = 256,
10248 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010249 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010250 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010251 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010252 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010253 .block_erasers =
10254 {
10255 {
10256 .eraseblocks = { {256 * 1024, 1} },
10257 .block_erase = erase_chip_block_jedec,
10258 }
10259 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010260 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010261 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010262 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010263 },
10264
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010265 {
10266 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010267 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010268 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010269 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010270 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010271 .total_size = 64,
10272 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010273 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010274 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010275 .probe = probe_jedec,
10276 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010277 .block_erasers =
10278 {
10279 {
10280 .eraseblocks = { {4 * 1024, 16} },
10281 .block_erase = erase_sector_jedec,
10282 }, {
10283 .eraseblocks = { {64 * 1024, 1} },
10284 .block_erase = erase_chip_block_jedec,
10285 }
10286 },
Sean Nelson35727f72010-01-28 23:55:12 +000010287 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010289 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010290 },
10291
10292 {
10293 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010294 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010295 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010296 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010297 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010298 .total_size = 128,
10299 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010300 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010301 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010302 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010303 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010304 .block_erasers =
10305 {
10306 {
10307 .eraseblocks = { {4 * 1024, 32} },
10308 .block_erase = erase_sector_jedec,
10309 }, {
10310 .eraseblocks = { {128 * 1024, 1} },
10311 .block_erase = erase_chip_block_jedec,
10312 }
10313 },
Sean Nelson35727f72010-01-28 23:55:12 +000010314 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010315 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010316 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010317 },
10318
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010319 {
10320 .vendor = "SST",
10321 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010322 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010323 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010324 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010325 .total_size = 256,
10326 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010327 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010328 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010329 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010330 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010331 .block_erasers =
10332 {
10333 {
10334 .eraseblocks = { {4 * 1024, 64} },
10335 .block_erase = erase_sector_jedec,
10336 }, {
10337 .eraseblocks = { {256 * 1024, 1} },
10338 .block_erase = erase_chip_block_jedec,
10339 }
10340 },
Sean Nelson35727f72010-01-28 23:55:12 +000010341 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010342 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010343 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010344 },
10345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010346 {
10347 .vendor = "SST",
10348 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010349 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010350 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010351 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010352 .total_size = 512,
10353 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010354 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010355 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010356 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010357 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010358 .block_erasers =
10359 {
10360 {
10361 .eraseblocks = { {4 * 1024, 128} },
10362 .block_erase = erase_sector_jedec,
10363 }, {
10364 .eraseblocks = { {512 * 1024, 1} },
10365 .block_erase = erase_chip_block_jedec,
10366 }
10367 },
Sean Nelson35727f72010-01-28 23:55:12 +000010368 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010369 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010370 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010371 },
10372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010373 {
10374 .vendor = "SST",
10375 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010376 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010377 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010378 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010379 .total_size = 64,
10380 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010381 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010382 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010383 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010384 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010385 .block_erasers =
10386 {
10387 {
10388 .eraseblocks = { {4 * 1024, 16} },
10389 .block_erase = erase_sector_jedec,
10390 }, {
10391 .eraseblocks = { {64 * 1024, 1} },
10392 .block_erase = erase_chip_block_jedec,
10393 }
10394 },
Sean Nelson35727f72010-01-28 23:55:12 +000010395 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010396 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010397 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010398 },
10399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010400 {
10401 .vendor = "SST",
10402 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010403 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010404 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010405 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010406 .total_size = 128,
10407 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010408 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010409 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010410 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010411 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010412 .block_erasers =
10413 {
10414 {
10415 .eraseblocks = { {4 * 1024, 32} },
10416 .block_erase = erase_sector_jedec,
10417 }, {
10418 .eraseblocks = { {128 * 1024, 1} },
10419 .block_erase = erase_chip_block_jedec,
10420 }
10421 },
Sean Nelson35727f72010-01-28 23:55:12 +000010422 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010423 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010424 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010425 },
10426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010427 {
10428 .vendor = "SST",
10429 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010430 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010431 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010432 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010433 .total_size = 256,
10434 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010435 .feature_bits = FEATURE_EITHER_RESET,
10436 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010437 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010438 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010439 .block_erasers =
10440 {
10441 {
10442 .eraseblocks = { {4 * 1024, 64} },
10443 .block_erase = erase_sector_jedec,
10444 }, {
10445 .eraseblocks = { {256 * 1024, 1} },
10446 .block_erase = erase_chip_block_jedec,
10447 }
10448 },
Sean Nelson35727f72010-01-28 23:55:12 +000010449 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010450 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010451 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010452 },
10453
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010454 {
10455 .vendor = "SST",
10456 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010457 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010458 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010459 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010460 .total_size = 512,
10461 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010462 .feature_bits = FEATURE_EITHER_RESET,
10463 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010464 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010465 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010466 .block_erasers =
10467 {
10468 {
10469 .eraseblocks = { {4 * 1024, 128} },
10470 .block_erase = erase_sector_jedec,
10471 }, {
10472 .eraseblocks = { {512 * 1024, 1} },
10473 .block_erase = erase_chip_block_jedec,
10474 }
10475 },
Sean Nelson35727f72010-01-28 23:55:12 +000010476 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010477 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010478 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010479 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010481 {
10482 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010483 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010484 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010485 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010486 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010487 .total_size = 1024,
10488 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010489 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010490 .tested = TEST_UNTESTED,
10491 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010492 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010493 .block_erasers =
10494 {
10495 {
10496 .eraseblocks = { {4 * 1024, 256} },
10497 .block_erase = erase_sector_jedec,
10498 }, {
10499 .eraseblocks = { {64 * 1024, 16} },
10500 .block_erase = erase_block_jedec,
10501 }, {
10502 .eraseblocks = { {1024 * 1024, 1} },
10503 .block_erase = erase_chip_block_jedec,
10504 }
10505 },
Sean Nelson35727f72010-01-28 23:55:12 +000010506 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010507 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010508 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010509 },
10510
10511 {
10512 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010513 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010514 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010515 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010516 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010517 .total_size = 256,
10518 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010519 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010520 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010521 .probe = probe_jedec,
10522 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010523 .block_erasers =
10524 {
10525 {
10526 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010527 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010528 }, {
10529 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010530 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010531 }, {
10532 .eraseblocks = { {256 * 1024, 1} },
10533 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10534 }
10535 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010536 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010537 .unlock = unlock_sst_fwhub,
10538 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010539 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010540 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010541 },
10542
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010543 {
10544 .vendor = "SST",
10545 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010546 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010547 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010548 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010549 .total_size = 384,
10550 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010551 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010552 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010553 .probe = probe_jedec,
10554 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010555 .block_erasers =
10556 {
10557 {
10558 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010559 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010560 }, {
10561 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010562 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010563 }, {
10564 .eraseblocks = { {384 * 1024, 1} },
10565 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10566 }
10567 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010568 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010569 .unlock = unlock_sst_fwhub,
10570 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010572 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010573 },
10574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010575 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010576 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10577 * and is only honored for 64k block erase, but not 4k sector erase.
10578 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010579 .vendor = "SST",
10580 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010581 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010582 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010583 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010584 .total_size = 512,
10585 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010586 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010587 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010588 .probe = probe_jedec,
10589 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010590 .block_erasers =
10591 {
10592 {
10593 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010594 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010595 }, {
10596 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010597 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010598 }, {
10599 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010600 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010601 },
10602 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010603 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010604 .unlock = unlock_sst_fwhub,
10605 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010606 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010607 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010608 },
10609
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010610 {
10611 .vendor = "SST",
10612 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010613 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010614 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010615 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010616 .total_size = 512,
10617 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010618 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010619 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010620 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010621 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010622 .block_erasers =
10623 {
10624 {
10625 .eraseblocks = { {4 * 1024, 128} },
10626 .block_erase = erase_sector_49lfxxxc,
10627 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010628 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010629 {64 * 1024, 7},
10630 {32 * 1024, 1},
10631 {8 * 1024, 2},
10632 {16 * 1024, 1},
10633 },
Sean Nelson69e58112010-03-23 17:10:28 +000010634 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010635 }
10636 },
Sean Nelson69e58112010-03-23 17:10:28 +000010637 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010638 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010640 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010641 },
10642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010643 {
10644 .vendor = "SST",
10645 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010646 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010647 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010648 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010649 .total_size = 1024,
10650 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010651 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010652 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010653 .probe = probe_jedec,
10654 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010655 .block_erasers =
10656 {
10657 {
10658 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010659 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010660 }, {
10661 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010662 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010663 }, {
10664 .eraseblocks = { {1024 * 1024, 1} },
10665 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10666 }
10667 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010668 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010669 .unlock = unlock_sst_fwhub,
10670 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010672 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010673 },
10674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010675 {
10676 .vendor = "SST",
10677 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010678 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010679 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010680 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010681 .total_size = 1024,
10682 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010683 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010684 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010685 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010686 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010687 .block_erasers =
10688 {
10689 {
10690 .eraseblocks = { {4 * 1024, 256} },
10691 .block_erase = erase_sector_49lfxxxc,
10692 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010693 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010694 {64 * 1024, 15},
10695 {32 * 1024, 1},
10696 {8 * 1024, 2},
10697 {16 * 1024, 1},
10698 },
Sean Nelson69e58112010-03-23 17:10:28 +000010699 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010700 }
10701 },
Sean Nelson69e58112010-03-23 17:10:28 +000010702 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010703 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010704 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010705 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010706 },
10707
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010708 {
10709 .vendor = "SST",
10710 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010711 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010712 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010713 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010714 .total_size = 2048,
10715 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010716 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010717 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010718 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010719 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010720 .block_erasers =
10721 {
10722 {
10723 .eraseblocks = { {4 * 1024, 512} },
10724 .block_erase = erase_sector_49lfxxxc,
10725 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010726 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010727 {64 * 1024, 31},
10728 {32 * 1024, 1},
10729 {8 * 1024, 2},
10730 {16 * 1024, 1},
10731 },
Sean Nelson69e58112010-03-23 17:10:28 +000010732 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010733 }
10734 },
Sean Nelson69e58112010-03-23 17:10:28 +000010735 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010736 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010738 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010739 },
10740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010741 {
10742 .vendor = "SST",
10743 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010744 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010745 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010746 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010747 .total_size = 256,
10748 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010749 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000010750 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010751 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010752 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010753 .block_erasers =
10754 {
10755 {
10756 .eraseblocks = { {4 * 1024, 64} },
10757 .block_erase = erase_sector_jedec,
10758 }, {
10759 .eraseblocks = { {16 * 1024, 16} },
10760 .block_erase = erase_block_jedec,
10761 }, {
10762 .eraseblocks = { {256 * 1024, 1} },
10763 .block_erase = NULL,
10764 }
10765 },
Sean Nelson35727f72010-01-28 23:55:12 +000010766 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010768 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000010769 },
10770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010771 {
10772 .vendor = "SST",
10773 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010774 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010775 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010776 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010777 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000010778 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010779 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010780 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010781 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010782 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010783 .block_erasers =
10784 {
10785 {
10786 .eraseblocks = { {4 * 1024, 64} },
10787 .block_erase = erase_sector_jedec,
10788 }, {
10789 .eraseblocks = { {16 * 1024, 16} },
10790 .block_erase = erase_block_jedec,
10791 }, {
10792 .eraseblocks = { {256 * 1024, 1} },
10793 .block_erase = NULL,
10794 }
10795 },
Sean Nelson35727f72010-01-28 23:55:12 +000010796 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010797 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010798 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010799 },
10800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010801 {
10802 .vendor = "SST",
10803 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010804 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010805 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010806 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010807 .total_size = 512,
10808 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010809 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010810 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010811 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010812 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010813 .block_erasers =
10814 {
10815 {
10816 .eraseblocks = { {4 * 1024, 128} },
10817 .block_erase = erase_sector_jedec,
10818 }, {
10819 .eraseblocks = { {64 * 1024, 8} },
10820 .block_erase = erase_block_jedec,
10821 }, {
10822 .eraseblocks = { {512 * 1024, 1} },
10823 .block_erase = NULL,
10824 }
10825 },
Sean Nelson35727f72010-01-28 23:55:12 +000010826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010828 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010829 },
10830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010831 {
10832 .vendor = "SST",
10833 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010834 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010835 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010836 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010837 .total_size = 512,
10838 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010839 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010840 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010841 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010842 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010843 .block_erasers =
10844 {
10845 {
10846 .eraseblocks = { {4 * 1024, 128} },
10847 .block_erase = erase_sector_jedec,
10848 }, {
10849 .eraseblocks = { {64 * 1024, 8} },
10850 .block_erase = erase_block_jedec,
10851 }, {
10852 .eraseblocks = { {512 * 1024, 1} },
10853 .block_erase = NULL,
10854 }
10855 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010856 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000010857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010859 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010860 },
10861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010862 {
10863 .vendor = "SST",
10864 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010865 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010866 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010867 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010868 .total_size = 1024,
10869 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010870 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000010871 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010872 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010873 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010874 .block_erasers =
10875 {
10876 {
10877 .eraseblocks = { {4 * 1024, 256} },
10878 .block_erase = erase_sector_jedec,
10879 }, {
10880 .eraseblocks = { {64 * 1024, 16} },
10881 .block_erase = erase_block_jedec,
10882 }, {
10883 .eraseblocks = { {1024 * 1024, 1} },
10884 .block_erase = NULL,
10885 }
10886 },
Sean Nelson35727f72010-01-28 23:55:12 +000010887 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010889 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010890 },
10891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010892 {
10893 .vendor = "SST",
10894 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010895 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010896 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010897 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010898 .total_size = 2048,
10899 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010900 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010901 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010902 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010903 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010904 .block_erasers =
10905 {
10906 {
10907 .eraseblocks = { {4 * 1024, 512} },
10908 .block_erase = erase_sector_49lfxxxc,
10909 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010910 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010911 {64 * 1024, 31},
10912 {32 * 1024, 1},
10913 {8 * 1024, 2},
10914 {16 * 1024, 1},
10915 },
Sean Nelson69e58112010-03-23 17:10:28 +000010916 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010917 }
10918 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000010919 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010920 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010922 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010923 },
10924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010925 {
10926 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010927 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010928 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010929 .manufacture_id = ST_ID,
10930 .model_id = ST_M29F002B,
10931 .total_size = 256,
10932 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010933 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010934 .tested = TEST_UNTESTED,
10935 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010936 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010937 .block_erasers =
10938 {
10939 {
10940 .eraseblocks = {
10941 {16 * 1024, 1},
10942 {8 * 1024, 2},
10943 {32 * 1024, 1},
10944 {64 * 1024, 3},
10945 },
10946 .block_erase = erase_sector_jedec,
10947 }, {
10948 .eraseblocks = { {256 * 1024, 1} },
10949 .block_erase = erase_chip_block_jedec,
10950 }
10951 },
Sean Nelson35727f72010-01-28 23:55:12 +000010952 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010953 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010954 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010955 },
10956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010957 {
10958 .vendor = "ST",
10959 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010960 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010961 .manufacture_id = ST_ID,
10962 .model_id = ST_M29F002T,
10963 .total_size = 256,
10964 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010965 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010966 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010967 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010968 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010969 .block_erasers =
10970 {
10971 {
10972 .eraseblocks = {
10973 {64 * 1024, 3},
10974 {32 * 1024, 1},
10975 {8 * 1024, 2},
10976 {16 * 1024, 1},
10977 },
10978 .block_erase = erase_sector_jedec,
10979 }, {
10980 .eraseblocks = { {256 * 1024, 1} },
10981 .block_erase = erase_chip_block_jedec,
10982 }
10983 },
Sean Nelson35727f72010-01-28 23:55:12 +000010984 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010985 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010986 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010987 },
10988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010989 {
10990 .vendor = "ST",
10991 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010992 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010993 .manufacture_id = ST_ID,
10994 .model_id = ST_M29F040B,
10995 .total_size = 512,
10996 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010997 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10998 .tested = TEST_UNTESTED,
10999 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011000 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011001 .block_erasers =
11002 {
11003 {
11004 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011005 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011006 }, {
11007 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011008 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011009 }
11010 },
Sean Nelson35727f72010-01-28 23:55:12 +000011011 .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 = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011014 },
11015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011016 {
Sean Nelson35727f72010-01-28 23:55:12 +000011017 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011018 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011019 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011020 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011021 .manufacture_id = ST_ID,
11022 .model_id = ST_M29F400BB,
11023 .total_size = 512,
11024 .page_size = 64 * 1024,
11025 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011026 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011027 .probe = probe_m29f400bt,
11028 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11029 .block_erasers =
11030 {
11031 {
11032 .eraseblocks = {
11033 {16 * 1024, 1},
11034 {8 * 1024, 2},
11035 {32 * 1024, 1},
11036 {64 * 1024, 7},
11037 },
11038 .block_erase = block_erase_m29f400bt,
11039 }, {
11040 .eraseblocks = { {512 * 1024, 1} },
11041 .block_erase = block_erase_chip_m29f400bt,
11042 }
11043 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011044 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011045 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011046 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011047 },
11048 {
11049 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11050 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011051 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011052 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011053 .manufacture_id = ST_ID,
11054 .model_id = ST_M29F400BT,
11055 .total_size = 512,
11056 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011057 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011058 .tested = TEST_UNTESTED,
11059 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011060 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011061 .block_erasers =
11062 {
11063 {
11064 .eraseblocks = {
11065 {64 * 1024, 7},
11066 {32 * 1024, 1},
11067 {8 * 1024, 2},
11068 {16 * 1024, 1},
11069 },
11070 .block_erase = block_erase_m29f400bt,
11071 }, {
11072 .eraseblocks = { {512 * 1024, 1} },
11073 .block_erase = block_erase_chip_m29f400bt,
11074 }
11075 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011076 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011077 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011078 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011079 },
11080
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011081 {
11082 .vendor = "ST",
11083 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011084 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011085 .manufacture_id = ST_ID,
11086 .model_id = ST_M29W010B,
11087 .total_size = 128,
11088 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011089 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011090 .tested = TEST_UNTESTED,
11091 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011092 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011093 .block_erasers =
11094 {
11095 {
11096 .eraseblocks = { {16 * 1024, 8}, },
11097 .block_erase = erase_sector_jedec,
11098 }, {
11099 .eraseblocks = { {128 * 1024, 1} },
11100 .block_erase = erase_chip_block_jedec,
11101 }
11102 },
Sean Nelson35727f72010-01-28 23:55:12 +000011103 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011106 },
11107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011108 {
11109 .vendor = "ST",
11110 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011111 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011112 .manufacture_id = ST_ID,
11113 .model_id = ST_M29W040B,
11114 .total_size = 512,
11115 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011116 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011117 .tested = TEST_UNTESTED,
11118 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011119 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011120 .block_erasers =
11121 {
11122 {
11123 .eraseblocks = { {64 * 1024, 8}, },
11124 .block_erase = erase_sector_jedec,
11125 }, {
11126 .eraseblocks = { {512 * 1024, 1} },
11127 .block_erase = erase_chip_block_jedec,
11128 }
11129 },
Sean Nelson35727f72010-01-28 23:55:12 +000011130 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011132 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011133 },
11134
Stefan Taunereb582572012-09-21 12:52:50 +000011135 {
11136 .vendor = "ST",
11137 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011138 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011139 .manufacture_id = ST_ID,
11140 .model_id = ST_M29W512B,
11141 .total_size = 64,
11142 .page_size = 64 * 1024,
11143 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011144 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011145 .probe = probe_jedec,
11146 .probe_timing = TIMING_ZERO,
11147 .block_erasers =
11148 {
11149 {
11150 .eraseblocks = { {64 * 1024, 1} },
11151 .block_erase = erase_chip_block_jedec,
11152 }
11153 },
11154 .write = write_jedec_1,
11155 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011156 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011157 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011159 {
11160 .vendor = "ST",
11161 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011162 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011163 .manufacture_id = ST_ID,
11164 .model_id = ST_M50FLW040A,
11165 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011166 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011167 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011168 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011169 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011170 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011171 .block_erasers =
11172 {
11173 {
Sean Nelson329bde72010-01-19 16:39:19 +000011174 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011175 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011176 {64 * 1024, 5}, /* block */
11177 {4 * 1024, 16}, /* sector */
11178 {4 * 1024, 16}, /* sector */
11179 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011180 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011181 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011182 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011183 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011184 }
11185 },
Sean Nelson28accc22010-03-19 18:47:06 +000011186 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011187 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011189 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011190 },
11191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011192 {
11193 .vendor = "ST",
11194 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011195 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011196 .manufacture_id = ST_ID,
11197 .model_id = ST_M50FLW040B,
11198 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011199 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011200 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011201 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011202 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011203 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011204 .block_erasers =
11205 {
11206 {
Sean Nelson329bde72010-01-19 16:39:19 +000011207 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011208 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011209 {4 * 1024, 16}, /* sector */
11210 {64 * 1024, 5}, /* block */
11211 {4 * 1024, 16}, /* sector */
11212 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011213 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011214 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011215 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011216 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011217 }
11218 },
Sean Nelson28accc22010-03-19 18:47:06 +000011219 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011220 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011221 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011222 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011223 },
11224
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011225 {
11226 .vendor = "ST",
11227 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011228 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011229 .manufacture_id = ST_ID,
11230 .model_id = ST_M50FLW080A,
11231 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011232 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011233 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011234 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011235 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011236 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011237 .block_erasers =
11238 {
11239 {
Sean Nelson329bde72010-01-19 16:39:19 +000011240 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011241 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011242 {64 * 1024, 13}, /* block */
11243 {4 * 1024, 16}, /* sector */
11244 {4 * 1024, 16}, /* sector */
11245 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011246 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011247 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011248 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011249 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011250 }
11251 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011252 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011253 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011255 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011256 },
11257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011258 {
11259 .vendor = "ST",
11260 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011261 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011262 .manufacture_id = ST_ID,
11263 .model_id = ST_M50FLW080B,
11264 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011265 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011266 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011267 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011268 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011269 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011270 .block_erasers =
11271 {
11272 {
Sean Nelson329bde72010-01-19 16:39:19 +000011273 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011274 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011275 {4 * 1024, 16}, /* sector */
11276 {64 * 1024, 13}, /* block */
11277 {4 * 1024, 16}, /* sector */
11278 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011279 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011280 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011281 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011282 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011283 }
11284 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011285 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011286 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011287 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011288 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011289 },
11290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011291 {
11292 .vendor = "ST",
11293 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011294 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011295 .manufacture_id = ST_ID,
11296 .model_id = ST_M50FW002,
11297 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011298 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011299 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011300 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011301 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011302 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011303 .block_erasers =
11304 {
11305 {
11306 .eraseblocks = {
11307 {64 * 1024, 3},
11308 {32 * 1024, 1},
11309 {8 * 1024, 2},
11310 {16 * 1024, 1},
11311 },
Sean Nelson28accc22010-03-19 18:47:06 +000011312 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011313 }
11314 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011315 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011316 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011317 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011318 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011319 },
11320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011321 {
11322 .vendor = "ST",
11323 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011324 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011325 .manufacture_id = ST_ID,
11326 .model_id = ST_M50FW016,
11327 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011328 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011329 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011330 .tested = TEST_UNTESTED,
11331 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011332 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011333 .block_erasers =
11334 {
11335 {
11336 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011337 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011338 }
11339 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011340 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011341 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011342 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011343 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011344 },
11345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011346 {
11347 .vendor = "ST",
11348 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011349 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011350 .manufacture_id = ST_ID,
11351 .model_id = ST_M50FW040,
11352 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011353 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011354 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011355 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011356 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011357 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011358 .block_erasers =
11359 {
11360 {
11361 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011362 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011363 }
11364 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011365 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011366 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011368 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011369 },
11370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011371 {
11372 .vendor = "ST",
11373 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011374 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011375 .manufacture_id = ST_ID,
11376 .model_id = ST_M50FW080,
11377 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011378 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011379 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011380 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011381 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011382 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011383 .block_erasers =
11384 {
11385 {
11386 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011387 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011388 }
11389 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011390 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011391 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011392 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011393 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011394 },
11395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011396 {
11397 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011398 .name = "M50LPW080",
11399 .bustype = BUS_LPC, /* A/A Mux */
11400 .manufacture_id = ST_ID,
11401 .model_id = ST_M50LPW080,
11402 .total_size = 1024,
11403 .page_size = 0,
11404 .feature_bits = FEATURE_REGISTERMAP,
11405 .tested = TEST_UNTESTED,
11406 .probe = probe_82802ab,
11407 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11408 .block_erasers =
11409 {
11410 {
11411 .eraseblocks = { {64 * 1024, 16}, },
11412 .block_erase = erase_block_82802ab,
11413 }
11414 },
11415 .unlock = unlock_stm50_uniform,
11416 .write = write_82802ab,
11417 .read = read_memmapped,
11418 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11419 },
11420
11421 {
11422 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011423 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011424 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011425 .manufacture_id = ST_ID,
11426 .model_id = ST_M50LPW116,
11427 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011428 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011429 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011430 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011431 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011432 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011433 .block_erasers =
11434 {
11435 {
11436 .eraseblocks = {
11437 {4 * 1024, 16},
11438 {64 * 1024, 30},
11439 {32 * 1024, 1},
11440 {8 * 1024, 2},
11441 {16 * 1024, 1},
11442 },
Sean Nelson28accc22010-03-19 18:47:06 +000011443 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011444 }
11445 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011446 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011447 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011449 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011450 },
11451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011452 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011453 .vendor = "SyncMOS/MoselVitelic",
11454 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011455 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011456 .manufacture_id = SYNCMOS_MVC_ID,
11457 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011458 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011459 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011460 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011461 .tested = TEST_UNTESTED,
11462 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011463 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011464 .block_erasers =
11465 {
11466 {
11467 .eraseblocks = { {512, 256} },
11468 .block_erase = erase_sector_jedec,
11469 }, {
11470 .eraseblocks = { {128 * 1024, 1} },
11471 .block_erase = erase_chip_block_jedec,
11472 },
11473 },
Sean Nelson35727f72010-01-28 23:55:12 +000011474 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011476 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011477 },
11478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011479 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011480 .vendor = "SyncMOS/MoselVitelic",
11481 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011482 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011483 .manufacture_id = SYNCMOS_MVC_ID,
11484 .model_id = SM_MVC_29C51001T,
11485 .total_size = 128,
11486 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011487 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011488 .tested = TEST_UNTESTED,
11489 .probe = probe_jedec,
11490 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11491 .block_erasers =
11492 {
11493 {
11494 .eraseblocks = { {512, 256} },
11495 .block_erase = erase_sector_jedec,
11496 }, {
11497 .eraseblocks = { {128 * 1024, 1} },
11498 .block_erase = erase_chip_block_jedec,
11499 },
11500 },
11501 .write = write_jedec_1,
11502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011503 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011504 },
11505
11506 {
11507 .vendor = "SyncMOS/MoselVitelic",
11508 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011509 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011510 .manufacture_id = SYNCMOS_MVC_ID,
11511 .model_id = SM_MVC_29C51002B,
11512 .total_size = 256,
11513 .page_size = 512,
11514 .feature_bits = FEATURE_EITHER_RESET,
11515 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011516 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011518 .block_erasers =
11519 {
11520 {
11521 .eraseblocks = { {512, 512} },
11522 .block_erase = erase_sector_jedec,
11523 }, {
11524 .eraseblocks = { {256 * 1024, 1} },
11525 .block_erase = erase_chip_block_jedec,
11526 },
11527 },
Sean Nelson35727f72010-01-28 23:55:12 +000011528 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011529 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011530 },
11531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011532 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011533 .vendor = "SyncMOS/MoselVitelic",
11534 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011535 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011536 .manufacture_id = SYNCMOS_MVC_ID,
11537 .model_id = SM_MVC_29C51002T,
11538 .total_size = 256,
11539 .page_size = 512,
11540 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011541 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011542 .probe = probe_jedec,
11543 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11544 .block_erasers =
11545 {
11546 {
11547 .eraseblocks = { {512, 512} },
11548 .block_erase = erase_sector_jedec,
11549 }, {
11550 .eraseblocks = { {256 * 1024, 1} },
11551 .block_erase = erase_chip_block_jedec,
11552 },
11553 },
11554 .write = write_jedec_1,
11555 .read = read_memmapped,
11556 },
11557
11558 {
11559 .vendor = "SyncMOS/MoselVitelic",
11560 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011561 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011562 .manufacture_id = SYNCMOS_MVC_ID,
11563 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011564 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011565 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011566 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011567 .tested = TEST_UNTESTED,
11568 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011569 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011570 .block_erasers =
11571 {
11572 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011573 .eraseblocks = { {1024, 512} },
11574 .block_erase = erase_sector_jedec,
11575 }, {
11576 .eraseblocks = { {512 * 1024, 1} },
11577 .block_erase = erase_chip_block_jedec,
11578 },
11579 },
11580 .write = write_jedec_1,
11581 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011582 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011583 },
11584
11585 {
11586 .vendor = "SyncMOS/MoselVitelic",
11587 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011588 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011589 .manufacture_id = SYNCMOS_MVC_ID,
11590 .model_id = SM_MVC_29C51004T,
11591 .total_size = 512,
11592 .page_size = 1024,
11593 .feature_bits = FEATURE_EITHER_RESET,
11594 .tested = TEST_UNTESTED,
11595 .probe = probe_jedec,
11596 .probe_timing = TIMING_ZERO,
11597 .block_erasers =
11598 {
11599 {
11600 .eraseblocks = { {1024, 512} },
11601 .block_erase = erase_sector_jedec,
11602 }, {
11603 .eraseblocks = { {512 * 1024, 1} },
11604 .block_erase = erase_chip_block_jedec,
11605 },
11606 },
11607 .write = write_jedec_1,
11608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011609 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011610 },
11611
11612 {
11613 .vendor = "SyncMOS/MoselVitelic",
11614 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011615 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011616 .manufacture_id = SYNCMOS_MVC_ID,
11617 .model_id = SM_MVC_29C31004B,
11618 .total_size = 512,
11619 .page_size = 1024,
11620 .feature_bits = FEATURE_EITHER_RESET,
11621 .tested = TEST_UNTESTED,
11622 .probe = probe_jedec,
11623 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11624 .block_erasers =
11625 {
11626 {
11627 .eraseblocks = { {1024, 512} },
11628 .block_erase = erase_sector_jedec,
11629 }, {
11630 .eraseblocks = { {512 * 1024, 1} },
11631 .block_erase = erase_chip_block_jedec,
11632 },
11633 },
11634 .write = write_jedec_1,
11635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011636 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011637 },
11638
11639 {
11640 .vendor = "SyncMOS/MoselVitelic",
11641 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011642 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011643 .manufacture_id = SYNCMOS_MVC_ID,
11644 .model_id = SM_MVC_29C31004T,
11645 .total_size = 512,
11646 .page_size = 1024,
11647 .feature_bits = FEATURE_EITHER_RESET,
11648 .tested = TEST_UNTESTED,
11649 .probe = probe_jedec,
11650 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11651 .block_erasers =
11652 {
11653 {
11654 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011655 .block_erase = erase_sector_jedec,
11656 }, {
11657 .eraseblocks = { {512 * 1024, 1} },
11658 .block_erase = erase_chip_block_jedec,
11659 },
11660 },
Sean Nelson35727f72010-01-28 23:55:12 +000011661 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011663 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011664 },
11665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011666 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011667 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011668 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011669 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011670 .manufacture_id = TI_OLD_ID,
11671 .model_id = TI_TMS29F002RB,
11672 .total_size = 256,
11673 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011674 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011675 .tested = TEST_UNTESTED,
11676 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011677 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011678 .block_erasers =
11679 {
11680 {
11681 .eraseblocks = {
11682 {16 * 1024, 1},
11683 {8 * 1024, 2},
11684 {32 * 1024, 1},
11685 {64 * 1024, 3},
11686 },
11687 .block_erase = erase_sector_jedec,
11688 }, {
11689 .eraseblocks = { {256 * 1024, 1} },
11690 .block_erase = erase_chip_block_jedec,
11691 },
11692 },
Sean Nelson35727f72010-01-28 23:55:12 +000011693 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011695 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011696 },
11697
11698 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011699 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011700 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011701 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011702 .manufacture_id = TI_OLD_ID,
11703 .model_id = TI_TMS29F002RT,
11704 .total_size = 256,
11705 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011706 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011707 .tested = TEST_UNTESTED,
11708 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011709 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011710 .block_erasers =
11711 {
11712 {
11713 .eraseblocks = {
11714 {64 * 1024, 3},
11715 {32 * 1024, 1},
11716 {8 * 1024, 2},
11717 {16 * 1024, 1},
11718 },
11719 .block_erase = erase_sector_jedec,
11720 }, {
11721 .eraseblocks = { {256 * 1024, 1} },
11722 .block_erase = erase_chip_block_jedec,
11723 },
11724 },
Sean Nelson35727f72010-01-28 23:55:12 +000011725 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011727 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011728 },
11729
11730 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011731 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011732 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011733 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011734 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011735 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011736 .total_size = 1024,
11737 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011738 /* supports SFDP */
11739 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011741 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011742 .probe = probe_spi_rdid,
11743 .probe_timing = TIMING_ZERO,
11744 .block_erasers =
11745 {
11746 {
11747 .eraseblocks = { {4 * 1024, 256} },
11748 .block_erase = spi_block_erase_20,
11749 }, {
11750 .eraseblocks = { {32 * 1024, 32} },
11751 .block_erase = spi_block_erase_52,
11752 }, {
11753 .eraseblocks = { {64 * 1024, 16} },
11754 .block_erase = spi_block_erase_d8,
11755 }, {
11756 .eraseblocks = { {1024 * 1024, 1} },
11757 .block_erase = spi_block_erase_60,
11758 }, {
11759 .eraseblocks = { {1024 * 1024, 1} },
11760 .block_erase = spi_block_erase_c7,
11761 }
11762 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011764 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011765 .write = spi_chip_write_256,
11766 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011767 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011768 },
11769
11770 {
11771 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011772 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011773 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011774 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011775 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011776 .total_size = 2048,
11777 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011778 /* supports SFDP */
11779 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011780 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000011781 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011782 .probe = probe_spi_rdid,
11783 .probe_timing = TIMING_ZERO,
11784 .block_erasers =
11785 {
11786 {
11787 .eraseblocks = { {4 * 1024, 512} },
11788 .block_erase = spi_block_erase_20,
11789 }, {
11790 .eraseblocks = { {32 * 1024, 64} },
11791 .block_erase = spi_block_erase_52,
11792 }, {
11793 .eraseblocks = { {64 * 1024, 32} },
11794 .block_erase = spi_block_erase_d8,
11795 }, {
11796 .eraseblocks = { {2 * 1024 * 1024, 1} },
11797 .block_erase = spi_block_erase_60,
11798 }, {
11799 .eraseblocks = { {2 * 1024 * 1024, 1} },
11800 .block_erase = spi_block_erase_c7,
11801 }
11802 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011803 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011804 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011805 .write = spi_chip_write_256,
11806 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011807 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011808 },
11809
11810 {
11811 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011812 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011813 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011814 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011815 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011816 .total_size = 4096,
11817 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011818 /* supports SFDP */
11819 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011820 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011821 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011822 .probe = probe_spi_rdid,
11823 .probe_timing = TIMING_ZERO,
11824 .block_erasers =
11825 {
11826 {
11827 .eraseblocks = { {4 * 1024, 1024} },
11828 .block_erase = spi_block_erase_20,
11829 }, {
11830 .eraseblocks = { {32 * 1024, 128} },
11831 .block_erase = spi_block_erase_52,
11832 }, {
11833 .eraseblocks = { {64 * 1024, 64} },
11834 .block_erase = spi_block_erase_d8,
11835 }, {
11836 .eraseblocks = { {4 * 1024 * 1024, 1} },
11837 .block_erase = spi_block_erase_60,
11838 }, {
11839 .eraseblocks = { {4 * 1024 * 1024, 1} },
11840 .block_erase = spi_block_erase_c7,
11841 }
11842 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011843 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011844 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011845 .write = spi_chip_write_256,
11846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011847 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011848 },
11849
11850 {
11851 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011852 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011853 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000011854 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011855 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000011856 .total_size = 8192,
11857 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011858 /* supports SFDP */
11859 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011860 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011861 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000011862 .probe = probe_spi_rdid,
11863 .probe_timing = TIMING_ZERO,
11864 .block_erasers =
11865 {
11866 {
11867 .eraseblocks = { {4 * 1024, 2048} },
11868 .block_erase = spi_block_erase_20,
11869 }, {
11870 .eraseblocks = { {32 * 1024, 256} },
11871 .block_erase = spi_block_erase_52,
11872 }, {
11873 .eraseblocks = { {64 * 1024, 128} },
11874 .block_erase = spi_block_erase_d8,
11875 }, {
11876 .eraseblocks = { {8 * 1024 * 1024, 1} },
11877 .block_erase = spi_block_erase_60,
11878 }, {
11879 .eraseblocks = { {8 * 1024 * 1024, 1} },
11880 .block_erase = spi_block_erase_c7,
11881 }
11882 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011883 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011884 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000011885 .write = spi_chip_write_256,
11886 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011887 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000011888 },
11889
11890 {
11891 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011892 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011893 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011894 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011895 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011896 .total_size = 16384,
11897 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011898 /* supports SFDP */
11899 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011900 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011901 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011902 .probe = probe_spi_rdid,
11903 .probe_timing = TIMING_ZERO,
11904 .block_erasers =
11905 {
11906 {
11907 .eraseblocks = { {4 * 1024, 4096} },
11908 .block_erase = spi_block_erase_20,
11909 }, {
11910 .eraseblocks = { {32 * 1024, 512} },
11911 .block_erase = spi_block_erase_52,
11912 }, {
11913 .eraseblocks = { {64 * 1024, 256} },
11914 .block_erase = spi_block_erase_d8,
11915 }, {
11916 .eraseblocks = { {16 * 1024 * 1024, 1} },
11917 .block_erase = spi_block_erase_60,
11918 }, {
11919 .eraseblocks = { {16 * 1024 * 1024, 1} },
11920 .block_erase = spi_block_erase_c7,
11921 }
11922 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011923 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011924 .unlock = spi_disable_blockprotect,
11925 .write = spi_chip_write_256,
11926 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011927 .voltage = {2700, 3600},
11928 },
11929
11930 {
11931 .vendor = "Winbond",
11932 .name = "W25Q20.W",
11933 .bustype = BUS_SPI,
11934 .manufacture_id = WINBOND_NEX_ID,
11935 .model_id = WINBOND_NEX_W25Q20_W,
11936 .total_size = 256,
11937 .page_size = 256,
11938 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11939 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11940 .tested = TEST_UNTESTED,
11941 .probe = probe_spi_rdid,
11942 .probe_timing = TIMING_ZERO,
11943 .block_erasers =
11944 {
11945 {
11946 .eraseblocks = { {4 * 1024, 64} },
11947 .block_erase = spi_block_erase_20,
11948 }, {
11949 .eraseblocks = { {32 * 1024, 8} },
11950 .block_erase = spi_block_erase_52,
11951 }, {
11952 .eraseblocks = { {64 * 1024, 4} },
11953 .block_erase = spi_block_erase_d8,
11954 }, {
11955 .eraseblocks = { {256 * 1024, 1} },
11956 .block_erase = spi_block_erase_60,
11957 }, {
11958 .eraseblocks = { {256 * 1024, 1} },
11959 .block_erase = spi_block_erase_c7,
11960 }
11961 },
11962 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11963 .unlock = spi_disable_blockprotect,
11964 .write = spi_chip_write_256,
11965 .read = spi_chip_read,
11966 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11967 },
11968
11969 {
11970 .vendor = "Winbond",
11971 .name = "W25Q40.W",
11972 .bustype = BUS_SPI,
11973 .manufacture_id = WINBOND_NEX_ID,
11974 .model_id = WINBOND_NEX_W25Q40_W,
11975 .total_size = 512,
11976 .page_size = 256,
11977 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11978 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11979 .tested = TEST_UNTESTED,
11980 .probe = probe_spi_rdid,
11981 .probe_timing = TIMING_ZERO,
11982 .block_erasers =
11983 {
11984 {
11985 .eraseblocks = { {4 * 1024, 128} },
11986 .block_erase = spi_block_erase_20,
11987 }, {
11988 .eraseblocks = { {32 * 1024, 16} },
11989 .block_erase = spi_block_erase_52,
11990 }, {
11991 .eraseblocks = { {64 * 1024, 8} },
11992 .block_erase = spi_block_erase_d8,
11993 }, {
11994 .eraseblocks = { {512 * 1024, 1} },
11995 .block_erase = spi_block_erase_60,
11996 }, {
11997 .eraseblocks = { {512 * 1024, 1} },
11998 .block_erase = spi_block_erase_c7,
11999 }
12000 },
12001 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12002 .unlock = spi_disable_blockprotect,
12003 .write = spi_chip_write_256,
12004 .read = spi_chip_read,
12005 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12006 },
12007
12008 {
12009 .vendor = "Winbond",
12010 .name = "W25Q80.W",
12011 .bustype = BUS_SPI,
12012 .manufacture_id = WINBOND_NEX_ID,
12013 .model_id = WINBOND_NEX_W25Q80_W,
12014 .total_size = 1024,
12015 .page_size = 256,
12016 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12018 .tested = TEST_UNTESTED,
12019 .probe = probe_spi_rdid,
12020 .probe_timing = TIMING_ZERO,
12021 .block_erasers =
12022 {
12023 {
12024 .eraseblocks = { {4 * 1024, 256} },
12025 .block_erase = spi_block_erase_20,
12026 }, {
12027 .eraseblocks = { {32 * 1024, 32} },
12028 .block_erase = spi_block_erase_52,
12029 }, {
12030 .eraseblocks = { {64 * 1024, 16} },
12031 .block_erase = spi_block_erase_d8,
12032 }, {
12033 .eraseblocks = { {1 * 1024 * 1024, 1} },
12034 .block_erase = spi_block_erase_60,
12035 }, {
12036 .eraseblocks = { {1 * 1024 * 1024, 1} },
12037 .block_erase = spi_block_erase_c7,
12038 }
12039 },
12040 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12041 .unlock = spi_disable_blockprotect,
12042 .write = spi_chip_write_256,
12043 .read = spi_chip_read,
12044 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12045 },
12046
12047 {
12048 .vendor = "Winbond",
12049 .name = "W25Q16.W",
12050 .bustype = BUS_SPI,
12051 .manufacture_id = WINBOND_NEX_ID,
12052 .model_id = WINBOND_NEX_W25Q16_W,
12053 .total_size = 2048,
12054 .page_size = 256,
12055 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12056 /* QPI enable 0x38, disable 0xFF */
12057 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12058 .tested = TEST_UNTESTED,
12059 .probe = probe_spi_rdid,
12060 .probe_timing = TIMING_ZERO,
12061 .block_erasers =
12062 {
12063 {
12064 .eraseblocks = { {4 * 1024, 512} },
12065 .block_erase = spi_block_erase_20,
12066 }, {
12067 .eraseblocks = { {32 * 1024, 64} },
12068 .block_erase = spi_block_erase_52,
12069 }, {
12070 .eraseblocks = { {64 * 1024, 32} },
12071 .block_erase = spi_block_erase_d8,
12072 }, {
12073 .eraseblocks = { {2 * 1024 * 1024, 1} },
12074 .block_erase = spi_block_erase_60,
12075 }, {
12076 .eraseblocks = { {2 * 1024 * 1024, 1} },
12077 .block_erase = spi_block_erase_c7,
12078 }
12079 },
12080 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12081 .unlock = spi_disable_blockprotect,
12082 .write = spi_chip_write_256,
12083 .read = spi_chip_read,
12084 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12085 },
12086
12087 {
12088 .vendor = "Winbond",
12089 .name = "W25Q32.W",
12090 .bustype = BUS_SPI,
12091 .manufacture_id = WINBOND_NEX_ID,
12092 .model_id = WINBOND_NEX_W25Q32_W,
12093 .total_size = 4096,
12094 .page_size = 256,
12095 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12096 /* QPI enable 0x38, disable 0xFF */
12097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12098 .tested = TEST_OK_PREW,
12099 .probe = probe_spi_rdid,
12100 .probe_timing = TIMING_ZERO,
12101 .block_erasers =
12102 {
12103 {
12104 .eraseblocks = { {4 * 1024, 1024} },
12105 .block_erase = spi_block_erase_20,
12106 }, {
12107 .eraseblocks = { {32 * 1024, 128} },
12108 .block_erase = spi_block_erase_52,
12109 }, {
12110 .eraseblocks = { {64 * 1024, 64} },
12111 .block_erase = spi_block_erase_d8,
12112 }, {
12113 .eraseblocks = { {4 * 1024 * 1024, 1} },
12114 .block_erase = spi_block_erase_60,
12115 }, {
12116 .eraseblocks = { {4 * 1024 * 1024, 1} },
12117 .block_erase = spi_block_erase_c7,
12118 }
12119 },
12120 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12121 .unlock = spi_disable_blockprotect,
12122 .write = spi_chip_write_256,
12123 .read = spi_chip_read,
12124 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12125 },
12126
12127 {
12128 .vendor = "Winbond",
12129 .name = "W25Q64.W",
12130 .bustype = BUS_SPI,
12131 .manufacture_id = WINBOND_NEX_ID,
12132 .model_id = WINBOND_NEX_W25Q64_W,
12133 .total_size = 8192,
12134 .page_size = 256,
12135 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12136 /* QPI enable 0x38, disable 0xFF */
12137 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012138 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012139 .probe = probe_spi_rdid,
12140 .probe_timing = TIMING_ZERO,
12141 .block_erasers =
12142 {
12143 {
12144 .eraseblocks = { {4 * 1024, 2048} },
12145 .block_erase = spi_block_erase_20,
12146 }, {
12147 .eraseblocks = { {32 * 1024, 256} },
12148 .block_erase = spi_block_erase_52,
12149 }, {
12150 .eraseblocks = { {64 * 1024, 128} },
12151 .block_erase = spi_block_erase_d8,
12152 }, {
12153 .eraseblocks = { {8 * 1024 * 1024, 1} },
12154 .block_erase = spi_block_erase_60,
12155 }, {
12156 .eraseblocks = { {8 * 1024 * 1024, 1} },
12157 .block_erase = spi_block_erase_c7,
12158 }
12159 },
12160 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12161 .unlock = spi_disable_blockprotect,
12162 .write = spi_chip_write_256,
12163 .read = spi_chip_read,
12164 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012165 },
12166
12167 {
12168 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012169 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012171 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012172 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012173 .total_size = 128,
12174 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012176 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012178 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012179 .block_erasers =
12180 {
12181 {
12182 .eraseblocks = { {4 * 1024, 32} },
12183 .block_erase = spi_block_erase_20,
12184 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012185 .eraseblocks = { {64 * 1024, 2} },
12186 .block_erase = spi_block_erase_d8,
12187 }, {
12188 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012189 .block_erase = spi_block_erase_c7,
12190 }
12191 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012192 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012193 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012194 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012195 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012196 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012197 },
12198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012199 {
12200 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012201 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012202 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012203 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012204 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012205 .total_size = 256,
12206 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012207 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012208 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012209 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012210 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012211 .block_erasers =
12212 {
12213 {
12214 .eraseblocks = { {4 * 1024, 64} },
12215 .block_erase = spi_block_erase_20,
12216 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012217 .eraseblocks = { {64 * 1024, 4} },
12218 .block_erase = spi_block_erase_d8,
12219 }, {
12220 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012221 .block_erase = spi_block_erase_c7,
12222 }
12223 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012224 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012225 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012226 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012227 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012228 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012229 },
12230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012231 {
12232 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012233 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012234 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012235 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012236 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012237 .total_size = 512,
12238 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012239 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012240 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012241 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012242 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012243 .block_erasers =
12244 {
12245 {
12246 .eraseblocks = { {4 * 1024, 128} },
12247 .block_erase = spi_block_erase_20,
12248 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012249 .eraseblocks = { {64 * 1024, 8} },
12250 .block_erase = spi_block_erase_d8,
12251 }, {
12252 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012253 .block_erase = spi_block_erase_c7,
12254 }
12255 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012256 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012258 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012259 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012260 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012261 },
12262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012263 {
12264 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012265 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012266 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012267 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012268 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012269 .total_size = 1024,
12270 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012271 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012272 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012273 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012274 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012275 .block_erasers =
12276 {
12277 {
12278 .eraseblocks = { {4 * 1024, 256} },
12279 .block_erase = spi_block_erase_20,
12280 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012281 .eraseblocks = { {64 * 1024, 16} },
12282 .block_erase = spi_block_erase_d8,
12283 }, {
12284 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012285 .block_erase = spi_block_erase_c7,
12286 }
12287 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012288 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012289 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012290 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012291 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012292 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012293 },
12294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012295 {
12296 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012297 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012298 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012299 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012300 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012301 .total_size = 2048,
12302 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012303 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012304 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012305 .probe = probe_spi_rdid,
12306 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012307 .block_erasers =
12308 {
12309 {
12310 .eraseblocks = { {4 * 1024, 512} },
12311 .block_erase = spi_block_erase_20,
12312 }, {
12313 .eraseblocks = { {32 * 1024, 64} },
12314 .block_erase = spi_block_erase_52,
12315 }, {
12316 .eraseblocks = { {64 * 1024, 32} },
12317 .block_erase = spi_block_erase_d8,
12318 }, {
12319 .eraseblocks = { {2 * 1024 * 1024, 1} },
12320 .block_erase = spi_block_erase_60,
12321 }, {
12322 .eraseblocks = { {2 * 1024 * 1024, 1} },
12323 .block_erase = spi_block_erase_c7,
12324 }
12325 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012326 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012327 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012328 .write = spi_chip_write_256,
12329 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012330 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012331 },
12332
12333 {
12334 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012335 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012336 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012337 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012338 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012339 .total_size = 4096,
12340 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012341 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012342 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012343 .probe = probe_spi_rdid,
12344 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012345 .block_erasers =
12346 {
12347 {
12348 .eraseblocks = { {4 * 1024, 1024} },
12349 .block_erase = spi_block_erase_20,
12350 }, {
12351 .eraseblocks = { {32 * 1024, 128} },
12352 .block_erase = spi_block_erase_52,
12353 }, {
12354 .eraseblocks = { {64 * 1024, 64} },
12355 .block_erase = spi_block_erase_d8,
12356 }, {
12357 .eraseblocks = { {4 * 1024 * 1024, 1} },
12358 .block_erase = spi_block_erase_60,
12359 }, {
12360 .eraseblocks = { {4 * 1024 * 1024, 1} },
12361 .block_erase = spi_block_erase_c7,
12362 }
12363 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012364 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012365 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012366 .write = spi_chip_write_256,
12367 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012368 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012369 },
12370
12371 {
12372 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012373 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012374 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012375 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012376 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012377 .total_size = 8192,
12378 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012379 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012380 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012381 .probe = probe_spi_rdid,
12382 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012383 .block_erasers =
12384 {
12385 {
12386 .eraseblocks = { {4 * 1024, 2048} },
12387 .block_erase = spi_block_erase_20,
12388 }, {
12389 .eraseblocks = { {32 * 1024, 256} },
12390 .block_erase = spi_block_erase_52,
12391 }, {
12392 .eraseblocks = { {64 * 1024, 128} },
12393 .block_erase = spi_block_erase_d8,
12394 }, {
12395 .eraseblocks = { {8 * 1024 * 1024, 1} },
12396 .block_erase = spi_block_erase_60,
12397 }, {
12398 .eraseblocks = { {8 * 1024 * 1024, 1} },
12399 .block_erase = spi_block_erase_c7,
12400 }
12401 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012403 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012404 .write = spi_chip_write_256,
12405 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012406 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012407 },
12408
12409 {
12410 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012411 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012412 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012413 .manufacture_id = WINBOND_ID,
12414 .model_id = WINBOND_W29C010,
12415 .total_size = 128,
12416 .page_size = 128,
12417 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012418 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012419 .probe = probe_w29ee011,
12420 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12421 .block_erasers =
12422 {
12423 {
12424 .eraseblocks = { {128 * 1024, 1} },
12425 .block_erase = erase_chip_block_jedec,
12426 }
12427 },
12428 .write = write_jedec,
12429 .read = read_memmapped,
12430 },
12431
12432 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12433 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012434 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012435 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012436 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012437 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012438 .total_size = 128,
12439 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012440 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012441 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012442 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012443 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012444 .block_erasers =
12445 {
12446 {
12447 .eraseblocks = { {128 * 1024, 1} },
12448 .block_erase = erase_chip_block_jedec,
12449 }
12450 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012451 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012452 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012453 },
12454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012455 {
12456 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012457 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012458 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012459 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012460 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012461 .total_size = 256,
12462 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012463 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012464 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012465 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012466 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012467 .block_erasers =
12468 {
12469 {
12470 .eraseblocks = { {256 * 1024, 1} },
12471 .block_erase = erase_chip_block_jedec,
12472 }
12473 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012474 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012476 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012477 },
12478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012479 {
12480 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012481 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012482 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012483 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012484 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012485 .total_size = 512,
12486 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012487 .feature_bits = FEATURE_LONG_RESET,
12488 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012489 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012490 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012491 .block_erasers =
12492 {
12493 {
12494 .eraseblocks = { {512 * 1024, 1} },
12495 .block_erase = erase_chip_block_jedec,
12496 }
12497 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012498 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012500 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012501 },
12502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012503 {
12504 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012505 .name = "W39F010",
12506 .bustype = BUS_PARALLEL,
12507 .manufacture_id = WINBOND_ID,
12508 .model_id = WINBOND_W39F010,
12509 .total_size = 128,
12510 .page_size = 4 * 1024,
12511 .feature_bits = FEATURE_EITHER_RESET,
12512 .tested = TEST_OK_PREW,
12513 .probe = probe_jedec,
12514 .probe_timing = 10,
12515 .block_erasers =
12516 {
12517 {
12518 .eraseblocks = { {4 * 1024, 32} },
12519 .block_erase = erase_block_jedec,
12520 }, {
12521 .eraseblocks = { {128 * 1024, 1} },
12522 .block_erase = erase_chip_block_jedec,
12523 }
12524 },
12525 .printlock = printlock_w39f010,
12526 .write = write_jedec_1,
12527 .read = read_memmapped,
12528 .voltage = {4500, 5500},
12529 },
12530
12531 {
12532 .vendor = "Winbond",
12533 .name = "W39L010",
12534 .bustype = BUS_PARALLEL,
12535 .manufacture_id = WINBOND_ID,
12536 .model_id = WINBOND_W39L010,
12537 .total_size = 128,
12538 .page_size = 4 * 1024,
12539 .feature_bits = FEATURE_EITHER_RESET,
12540 .tested = TEST_UNTESTED,
12541 .probe = probe_jedec,
12542 .probe_timing = 10,
12543 .block_erasers =
12544 {
12545 {
12546 .eraseblocks = { {4 * 1024, 32} },
12547 .block_erase = erase_block_jedec,
12548 }, {
12549 .eraseblocks = { {128 * 1024, 1} },
12550 .block_erase = erase_chip_block_jedec,
12551 }
12552 },
12553 .printlock = printlock_w39l010,
12554 .write = write_jedec_1,
12555 .read = read_memmapped,
12556 .voltage = {3000, 3600},
12557 },
12558
12559 {
12560 .vendor = "Winbond",
12561 .name = "W39L020",
12562 .bustype = BUS_PARALLEL,
12563 .manufacture_id = WINBOND_ID,
12564 .model_id = WINBOND_W39L020,
12565 .total_size = 256,
12566 .page_size = 4 * 1024,
12567 .feature_bits = FEATURE_EITHER_RESET,
12568 .tested = TEST_UNTESTED,
12569 .probe = probe_jedec,
12570 .probe_timing = 10,
12571 .block_erasers =
12572 {
12573 {
12574 .eraseblocks = { {4 * 1024, 64} },
12575 .block_erase = erase_block_jedec,
12576 }, {
12577 .eraseblocks = { {64 * 1024, 4} },
12578 .block_erase = erase_sector_jedec,
12579 }, {
12580 .eraseblocks = { {256 * 1024, 1} },
12581 .block_erase = erase_chip_block_jedec,
12582 }
12583 },
12584 .printlock = printlock_w39l020,
12585 .write = write_jedec_1,
12586 .read = read_memmapped,
12587 .voltage = {3000, 3600},
12588 },
12589
12590 {
12591 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012592 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012593 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012594 .manufacture_id = WINBOND_ID,
12595 .model_id = WINBOND_W39L040,
12596 .total_size = 512,
12597 .page_size = 64 * 1024,
12598 .feature_bits = FEATURE_EITHER_RESET,
12599 .tested = TEST_OK_PR,
12600 .probe = probe_jedec,
12601 .probe_timing = 10,
12602 .block_erasers =
12603 {
12604 {
12605 .eraseblocks = { {4 * 1024, 128} },
12606 .block_erase = erase_block_jedec,
12607 }, {
12608 .eraseblocks = { {64 * 1024, 8} },
12609 .block_erase = erase_sector_jedec,
12610 }, {
12611 .eraseblocks = { {512 * 1024, 1} },
12612 .block_erase = erase_chip_block_jedec,
12613 }
12614 },
12615 .printlock = printlock_w39l040,
12616 .write = write_jedec_1,
12617 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012618 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012619 },
12620
12621 {
12622 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012623 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012624 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012625 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012626 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012627 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012628 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012629 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012630 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012631 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012632 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012633 .block_erasers =
12634 {
12635 {
12636 .eraseblocks = { {64 * 1024, 8} },
12637 .block_erase = erase_sector_jedec,
12638 }, {
12639 .eraseblocks = { {512 * 1024, 1} },
12640 .block_erase = erase_chip_block_jedec,
12641 }
12642 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012643 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012644 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012646 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012647 },
12648
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012649 {
12650 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012651 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012652 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012653 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012654 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012655 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012656 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012657 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012658 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012659 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012660 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012661 .block_erasers =
12662 {
12663 {
12664 .eraseblocks = { {64 * 1024, 8} },
12665 .block_erase = erase_sector_jedec,
12666 }, {
12667 .eraseblocks = { {512 * 1024, 1} },
12668 .block_erase = erase_chip_block_jedec,
12669 }
12670 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012671 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012672 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012673 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012674 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012675 },
12676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012677 {
12678 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012679 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012680 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012681 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012682 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012683 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012684 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012685 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012686 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012687 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012688 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012689 .block_erasers =
12690 {
12691 {
12692 .eraseblocks = { {64 * 1024, 8} },
12693 .block_erase = erase_sector_jedec,
12694 }, {
12695 .eraseblocks = { {512 * 1024, 1} },
12696 .block_erase = erase_chip_block_jedec,
12697 }
12698 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012699 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012700 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012701 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012702 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012703 },
12704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012705 {
12706 .vendor = "Winbond",
12707 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012708 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012709 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012710 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012711 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012712 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012713 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012714 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012715 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012716 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012717 .block_erasers =
12718 {
12719 {
12720 .eraseblocks = { {4 * 1024, 128} },
12721 .block_erase = erase_block_jedec,
12722 }, {
12723 .eraseblocks = { {64 * 1024, 8} },
12724 .block_erase = erase_sector_jedec,
12725 }, {
12726 .eraseblocks = { {512 * 1024, 1} },
12727 .block_erase = erase_chip_block_jedec,
12728 }
12729 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012730 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012731 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012732 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012733 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012734 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012735 },
12736
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012737 {
12738 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012739 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012740 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012741 .manufacture_id = WINBOND_ID,
12742 .model_id = WINBOND_W39V040B,
12743 .total_size = 512,
12744 .page_size = 64 * 1024,
12745 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012746 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012747 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012748 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012749 .block_erasers =
12750 {
12751 {
12752 .eraseblocks = { {64 * 1024, 8} },
12753 .block_erase = erase_sector_jedec,
12754 }, {
12755 .eraseblocks = { {512 * 1024, 1} },
12756 .block_erase = erase_chip_block_jedec,
12757 }
12758 },
12759 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012760 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012761 .write = write_jedec_1,
12762 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012763 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012764 },
12765
12766 {
12767 .vendor = "Winbond",
12768 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012769 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012770 .manufacture_id = WINBOND_ID,
12771 .model_id = WINBOND_W39V040C,
12772 .total_size = 512,
12773 .page_size = 64 * 1024,
12774 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012775 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012776 .probe = probe_jedec,
12777 .probe_timing = 10,
12778 .block_erasers =
12779 {
12780 {
12781 .eraseblocks = { {64 * 1024, 8} },
12782 .block_erase = erase_sector_jedec,
12783 }, {
12784 .eraseblocks = { {512 * 1024, 1} },
12785 .block_erase = erase_chip_block_jedec,
12786 }
12787 },
12788 .printlock = printlock_w39v040fc,
12789 .write = write_jedec_1,
12790 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012791 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012792 },
12793
12794 {
12795 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012796 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012797 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012798 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012799 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012800 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012801 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012802 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012803 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012804 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012805 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012806 .block_erasers =
12807 {
12808 {
12809 .eraseblocks = { {64 * 1024, 16} },
12810 .block_erase = erase_sector_jedec,
12811 }, {
12812 .eraseblocks = { {1024 * 1024, 1} },
12813 .block_erase = erase_chip_block_jedec,
12814 }
12815 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012816 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000012817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012818 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012819 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012820 },
12821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012822 {
12823 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012824 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012825 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012826 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012827 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012828 .total_size = 256,
12829 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012830 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012831 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012832 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012833 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012834 .block_erasers =
12835 {
12836 {
12837 .eraseblocks = {
12838 {128 * 1024, 1},
12839 {96 * 1024, 1},
12840 {8 * 1024, 2},
12841 {16 * 1024, 1},
12842 },
12843 .block_erase = erase_sector_jedec,
12844 }, {
12845 .eraseblocks = { {256 * 1024, 1} },
12846 .block_erase = erase_chip_block_jedec,
12847 }
12848 },
Sean Nelson35727f72010-01-28 23:55:12 +000012849 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012851 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012852 },
12853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012854 {
12855 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012856 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012857 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012858 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012859 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012860 .total_size = 256,
12861 .page_size = 128,
12862 .feature_bits = FEATURE_EITHER_RESET,
12863 .tested = TEST_OK_PROBE,
12864 .probe = probe_jedec,
12865 .probe_timing = 10,
12866 .block_erasers =
12867 {
12868 {
12869 .eraseblocks = { {256 * 1024, 1} },
12870 .block_erase = erase_chip_block_jedec,
12871 }
12872 },
12873 .write = write_jedec_1,
12874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012875 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012876 },
12877
12878 {
12879 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012880 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012881 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012882 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012883 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012884 .total_size = 256,
12885 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012886 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012887 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012888 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012889 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012890 .block_erasers =
12891 {
12892 {
12893 .eraseblocks = {
12894 {64 * 1024, 3},
12895 {32 * 1024, 1},
12896 {8 * 1024, 2},
12897 {16 * 1024, 1},
12898 },
12899 .block_erase = erase_sector_jedec,
12900 }, {
12901 .eraseblocks = { {256 * 1024, 1} },
12902 .block_erase = erase_chip_block_jedec,
12903 }
12904 },
Sean Nelson35727f72010-01-28 23:55:12 +000012905 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012907 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012908 },
12909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012910 {
12911 .vendor = "Winbond",
12912 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012913 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012914 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012915 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012916 .total_size = 256,
12917 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012918 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012919 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012920 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012921 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012922 .block_erasers =
12923 {
12924 {
12925 .eraseblocks = {
12926 {64 * 1024, 3},
12927 {32 * 1024, 1},
12928 {8 * 1024, 2},
12929 {16 * 1024, 1},
12930 },
12931 .block_erase = erase_sector_jedec,
12932 }, {
12933 .eraseblocks = { {256 * 1024, 1} },
12934 .block_erase = erase_chip_block_jedec,
12935 }
12936 },
Sean Nelson35727f72010-01-28 23:55:12 +000012937 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012938 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012939 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012940 },
12941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012942 {
12943 .vendor = "Winbond",
12944 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012945 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012946 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012947 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012948 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012949 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012950 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012951 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012952 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012953 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012954 .block_erasers =
12955 {
12956 {
12957 .eraseblocks = { {64 * 1024, 16}, },
12958 .block_erase = erase_sector_jedec,
12959 }, {
12960 .eraseblocks = { {1024 * 1024, 1} },
12961 .block_erase = erase_chip_block_jedec,
12962 }
12963 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012964 .printlock = printlock_w39v080fa,
12965 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000012966 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012967 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012968 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012969 },
12970
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012971 {
12972 .vendor = "Winbond",
12973 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012974 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012975 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012976 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012977 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012978 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012979 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012980 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012981 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012982 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012983 .block_erasers =
12984 {
12985 {
12986 .eraseblocks = { {64 * 1024, 8}, },
12987 .block_erase = erase_sector_jedec,
12988 }, {
12989 .eraseblocks = { {512 * 1024, 1} },
12990 .block_erase = erase_chip_block_jedec,
12991 }
12992 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012993 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000012994 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012995 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012996 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012997 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012998
12999 {
13000 .vendor = "Unknown",
13001 .name = "SFDP-capable chip",
13002 .bustype = BUS_SPI,
13003 .manufacture_id = GENERIC_MANUF_ID,
13004 .model_id = SFDP_DEVICE_ID,
13005 /* We present our own "report this" text hence we do not
13006 * want the default "This flash part has status UNTESTED..."
13007 * text to be printed. */
13008 .tested = TEST_OK_PREW,
13009 .probe = probe_spi_sfdp,
13010 .unlock = spi_disable_blockprotect, /* is this safe? */
13011 .read = spi_chip_read,
13012 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013013 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013014 /* Everything below will be set by the probing function. */
13015 .write = NULL,
13016 .total_size = 0,
13017 .page_size = 0,
13018 .feature_bits = 0,
13019 .block_erasers = {},
13020 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013022 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013023 .vendor = "Programmer",
13024 .name = "Opaque flash chip",
13025 .bustype = BUS_PROG,
13026 .manufacture_id = PROGMANUF_ID,
13027 .model_id = PROGDEV_ID,
13028 .total_size = 0,
13029 .page_size = 256,
13030 /* probe is assumed to work, rest will be filled in by probe */
13031 .tested = TEST_OK_PROBE,
13032 .probe = probe_opaque,
13033 /* eraseblock sizes will be set by the probing function */
13034 .block_erasers =
13035 {
13036 {
13037 .block_erase = erase_opaque,
13038 }
13039 },
13040 .write = write_opaque,
13041 .read = read_opaque,
13042 },
13043
13044 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013045 .vendor = "AMIC",
13046 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013047 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013048 .manufacture_id = AMIC_ID,
13049 .model_id = GENERIC_DEVICE_ID,
13050 .total_size = 0,
13051 .page_size = 256,
13052 .tested = TEST_BAD_PREW,
13053 .probe = probe_spi_rdid4,
13054 .probe_timing = TIMING_ZERO,
13055 .write = NULL,
13056 .read = NULL,
13057 },
13058
13059 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013060 .vendor = "Atmel",
13061 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013062 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013063 .manufacture_id = ATMEL_ID,
13064 .model_id = GENERIC_DEVICE_ID,
13065 .total_size = 0,
13066 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013067 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013068 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013069 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013070 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013071 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013072 },
13073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013074 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013075 .vendor = "Eon",
13076 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013077 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013078 .manufacture_id = EON_ID_NOPREFIX,
13079 .model_id = GENERIC_DEVICE_ID,
13080 .total_size = 0,
13081 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013082 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013083 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013084 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013085 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013086 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013087 },
13088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013089 {
13090 .vendor = "Macronix",
13091 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013092 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013093 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013094 .model_id = GENERIC_DEVICE_ID,
13095 .total_size = 0,
13096 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013097 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013098 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013099 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013100 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013101 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013102 },
13103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013104 {
13105 .vendor = "PMC",
13106 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013107 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013108 .manufacture_id = PMC_ID,
13109 .model_id = GENERIC_DEVICE_ID,
13110 .total_size = 0,
13111 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013112 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013114 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013115 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013116 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013117 },
13118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013119 {
13120 .vendor = "SST",
13121 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013122 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013123 .manufacture_id = SST_ID,
13124 .model_id = GENERIC_DEVICE_ID,
13125 .total_size = 0,
13126 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013127 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013128 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013129 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013130 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013131 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013132 },
13133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013134 {
13135 .vendor = "ST",
13136 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013137 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013138 .manufacture_id = ST_ID,
13139 .model_id = GENERIC_DEVICE_ID,
13140 .total_size = 0,
13141 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013142 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013143 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013144 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013145 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013146 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013147 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013148
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013149 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013150 .vendor = "Sanyo",
13151 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013152 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013153 .manufacture_id = SANYO_ID,
13154 .model_id = GENERIC_DEVICE_ID,
13155 .total_size = 0,
13156 .page_size = 256,
13157 .tested = TEST_BAD_PREW,
13158 .probe = probe_spi_rdid,
13159 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013160 .write = NULL,
13161 .read = NULL,
13162 },
13163
13164 {
Stefan Taunereb582572012-09-21 12:52:50 +000013165 .vendor = "Winbond",
13166 .name = "unknown Winbond (ex Nexcom) SPI chip",
13167 .bustype = BUS_SPI,
13168 .manufacture_id = WINBOND_NEX_ID,
13169 .model_id = GENERIC_DEVICE_ID,
13170 .total_size = 0,
13171 .page_size = 256,
13172 .tested = TEST_BAD_PREW,
13173 .probe = probe_spi_rdid,
13174 .probe_timing = TIMING_ZERO,
13175 .write = NULL,
13176 .read = NULL,
13177 },
13178
13179 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013180 .vendor = "Generic",
13181 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013182 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013183 .manufacture_id = GENERIC_MANUF_ID,
13184 .model_id = GENERIC_DEVICE_ID,
13185 .total_size = 0,
13186 .page_size = 256,
13187 .tested = TEST_BAD_PREW,
13188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013189 .write = NULL,
13190 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013191
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013192 {
13193 .vendor = "Generic",
13194 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013195 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013196 .manufacture_id = GENERIC_MANUF_ID,
13197 .model_id = GENERIC_DEVICE_ID,
13198 .total_size = 0,
13199 .page_size = 256,
13200 .tested = TEST_BAD_PREW,
13201 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013202 .write = NULL,
13203 },
13204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013205 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013206};