blob: a21e21ab6af70842beed9fd46da066dbcf975b02 [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 Tauner6455dff2014-05-26 00:36:24 +00002192 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
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 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003121 .vendor = "ESMT",
3122 .name = "F25L32PA",
3123 .bustype = BUS_SPI,
3124 .manufacture_id = ESMT_ID,
3125 .model_id = ESMT_F25L32PA,
3126 .total_size = 4096,
3127 .page_size = 256,
3128 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3129 .tested = TEST_UNTESTED,
3130 .probe = probe_spi_rdid,
3131 .probe_timing = TIMING_ZERO,
3132 .block_erasers =
3133 {
3134 {
3135 .eraseblocks = { {4 * 1024, 1024} },
3136 .block_erase = spi_block_erase_20,
3137 }, {
3138 .eraseblocks = { {64 * 1024, 64} },
3139 .block_erase = spi_block_erase_d8,
3140 }, {
3141 .eraseblocks = { {4 * 1024 * 1024, 1} },
3142 .block_erase = spi_block_erase_60,
3143 }, {
3144 .eraseblocks = { {4 * 1024 * 1024, 1} },
3145 .block_erase = spi_block_erase_c7,
3146 }
3147 },
3148 .printlock = spi_prettyprint_status_register_bp2_bpl,
3149 .unlock = spi_disable_blockprotect,
3150 .write = spi_chip_write_256,
3151 .read = spi_chip_read,
3152 .voltage = {2700, 3600},
3153 },
3154
3155 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003156 .vendor = "Eon",
3157 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003158 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003159 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003160 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003161 .total_size = 64,
3162 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003163 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003164 .tested = TEST_UNTESTED,
3165 .probe = probe_spi_rdid,
3166 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003167 .block_erasers =
3168 {
3169 {
3170 .eraseblocks = {
3171 {4 * 1024, 2},
3172 {8 * 1024, 1},
3173 {16 * 1024, 1},
3174 {32 * 1024, 1},
3175 },
3176 .block_erase = spi_block_erase_d8,
3177 }, {
3178 .eraseblocks = { {64 * 1024, 1} },
3179 .block_erase = spi_block_erase_c7,
3180 }
3181 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003182 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003183 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003184 .write = spi_chip_write_256,
3185 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003186 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003187 },
3188
3189 {
3190 .vendor = "Eon",
3191 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003192 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003193 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003194 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003195 .total_size = 64,
3196 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003197 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003198 .tested = TEST_UNTESTED,
3199 .probe = probe_spi_rdid,
3200 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003201 .block_erasers =
3202 {
3203 {
3204 .eraseblocks = {
3205 {32 * 1024, 1},
3206 {16 * 1024, 1},
3207 {8 * 1024, 1},
3208 {4 * 1024, 2},
3209 },
3210 .block_erase = spi_block_erase_d8,
3211 }, {
3212 .eraseblocks = { {64 * 1024, 1} },
3213 .block_erase = spi_block_erase_c7,
3214 }
3215 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003216 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003217 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003218 .write = spi_chip_write_256,
3219 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003220 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003221 },
3222
3223 {
3224 .vendor = "Eon",
3225 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003226 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003227 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003228 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003229 .total_size = 128,
3230 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003231 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003232 .tested = TEST_UNTESTED,
3233 .probe = probe_spi_rdid,
3234 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003235 .block_erasers =
3236 {
3237 {
3238 .eraseblocks = {
3239 {4 * 1024, 2},
3240 {8 * 1024, 1},
3241 {16 * 1024, 1},
3242 {32 * 1024, 3},
3243 },
3244 .block_erase = spi_block_erase_d8,
3245 }, {
3246 .eraseblocks = { {128 * 1024, 1} },
3247 .block_erase = spi_block_erase_c7,
3248 }
3249 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003250 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003251 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003252 .write = spi_chip_write_256,
3253 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003254 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003255 },
3256
3257 {
3258 .vendor = "Eon",
3259 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003260 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003261 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003262 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003263 .total_size = 128,
3264 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003265 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003266 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003267 .probe = probe_spi_rdid,
3268 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003269 .block_erasers =
3270 {
3271 {
3272 .eraseblocks = {
3273 {32 * 1024, 3},
3274 {16 * 1024, 1},
3275 {8 * 1024, 1},
3276 {4 * 1024, 2},
3277 },
3278 .block_erase = spi_block_erase_d8,
3279 }, {
3280 .eraseblocks = { {128 * 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,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003286 .write = spi_chip_write_256,
3287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003288 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003289 },
3290
3291 {
3292 .vendor = "Eon",
3293 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003294 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003295 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003296 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003297 .total_size = 256,
3298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003299 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +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 {4 * 1024, 2},
3308 {8 * 1024, 1},
3309 {16 * 1024, 1},
3310 {32 * 1024, 1},
3311 {64 * 1024, 3}
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,
Sean Nelson54596372010-01-09 05:30:14 +00003321 .write = spi_chip_write_256,
3322 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003323 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003324 },
3325
3326 {
3327 .vendor = "Eon",
3328 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003329 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003330 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003331 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003332 .total_size = 256,
3333 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003334 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +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 {64 * 1024, 3},
3343 {32 * 1024, 1},
3344 {16 * 1024, 1},
3345 {8 * 1024, 1},
3346 {4 * 1024, 2},
3347 },
3348 .block_erase = spi_block_erase_d8,
3349 }, {
3350 .eraseblocks = { {256 * 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,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003356 .write = spi_chip_write_256,
3357 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003358 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003359 },
3360
3361 {
3362 .vendor = "Eon",
3363 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003364 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003366 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003367 .total_size = 512,
3368 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003369 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +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 {4 * 1024, 2},
3378 {8 * 1024, 1},
3379 {16 * 1024, 1},
3380 {32 * 1024, 1},
3381 {64 * 1024, 7}
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,
Sean Nelson54596372010-01-09 05:30:14 +00003391 .write = spi_chip_write_256,
3392 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003393 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003394 },
3395
3396 {
3397 .vendor = "Eon",
3398 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003399 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003400 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003401 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003402 .total_size = 512,
3403 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003404 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +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 {64 * 1024, 7},
3413 {32 * 1024, 1},
3414 {16 * 1024, 1},
3415 {8 * 1024, 1},
3416 {4 * 1024, 2},
3417 },
3418 .block_erase = spi_block_erase_d8,
3419 }, {
3420 .eraseblocks = { {512 * 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,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003426 .write = spi_chip_write_256,
3427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003428 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003429 },
3430
3431 {
3432 .vendor = "Eon",
3433 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003434 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003436 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003437 .total_size = 1024,
3438 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003439 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +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 {4 * 1024, 2},
3448 {8 * 1024, 1},
3449 {16 * 1024, 1},
3450 {32 * 1024, 1},
3451 {64 * 1024, 15}
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,
Sean Nelson54596372010-01-09 05:30:14 +00003461 .write = spi_chip_write_256,
3462 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003463 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003464 },
3465
3466 {
3467 .vendor = "Eon",
3468 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003469 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003470 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003471 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003472 .total_size = 1024,
3473 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003474 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +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 {64 * 1024, 15},
3483 {32 * 1024, 1},
3484 {16 * 1024, 1},
3485 {8 * 1024, 1},
3486 {4 * 1024, 2},
3487 },
3488 .block_erase = spi_block_erase_d8,
3489 }, {
3490 .eraseblocks = { {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,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003496 .write = spi_chip_write_256,
3497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003498 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003499 },
3500
3501 {
3502 .vendor = "Eon",
3503 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003504 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003505 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003506 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003507 .total_size = 2048,
3508 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003509 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +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 {4 * 1024, 2},
3518 {8 * 1024, 1},
3519 {16 * 1024, 1},
3520 {32 * 1024, 1},
3521 {64 * 1024, 31},
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,
Sean Nelson54596372010-01-09 05:30:14 +00003531 .write = spi_chip_write_256,
3532 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003533 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003534 },
3535
3536 {
3537 .vendor = "Eon",
3538 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003539 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003540 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003541 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003542 .total_size = 2048,
3543 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003544 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +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 {64 * 1024, 31},
3553 {32 * 1024, 1},
3554 {16 * 1024, 1},
3555 {8 * 1024, 1},
3556 {4 * 1024, 2},
3557 },
3558 .block_erase = spi_block_erase_d8,
3559 }, {
3560 .eraseblocks = { {2 * 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,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003566 .write = spi_chip_write_256,
3567 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003568 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003569 },
3570
3571 {
3572 .vendor = "Eon",
3573 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003574 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003575 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003576 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003577 .total_size = 4096,
3578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003579 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +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 {4 * 1024, 2},
3588 {8 * 1024, 1},
3589 {16 * 1024, 1},
3590 {32 * 1024, 1},
3591 {64 * 1024, 63},
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,
Sean Nelson54596372010-01-09 05:30:14 +00003601 .write = spi_chip_write_256,
3602 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003603 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003604 },
3605
3606 {
3607 .vendor = "Eon",
3608 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003609 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003610 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003611 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003612 .total_size = 4096,
3613 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003614 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +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 {64 * 1024, 63},
3623 {32 * 1024, 1},
3624 {16 * 1024, 1},
3625 {8 * 1024, 1},
3626 {4 * 1024, 2},
3627 },
3628 .block_erase = spi_block_erase_d8,
3629 }, {
3630 .eraseblocks = { {4 * 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,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003636 .write = spi_chip_write_256,
3637 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003638 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003639 },
3640
3641 {
3642 .vendor = "Eon",
3643 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003644 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003645 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003646 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003647 .total_size = 8192,
3648 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003649 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +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 {4 * 1024, 2},
3658 {8 * 1024, 1},
3659 {16 * 1024, 1},
3660 {32 * 1024, 1},
3661 {64 * 1024, 127},
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,
Sean Nelson54596372010-01-09 05:30:14 +00003671 .write = spi_chip_write_256,
3672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003673 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003674 },
3675
3676 {
3677 .vendor = "Eon",
3678 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003679 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003680 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003681 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003682 .total_size = 8192,
3683 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003684 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003685 .tested = TEST_UNTESTED,
3686 .probe = probe_spi_rdid,
3687 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .block_erasers =
3689 {
3690 {
3691 .eraseblocks = {
3692 {64 * 1024, 127},
3693 {32 * 1024, 1},
3694 {16 * 1024, 1},
3695 {8 * 1024, 1},
3696 {4 * 1024, 2},
3697 },
3698 .block_erase = spi_block_erase_d8,
3699 }, {
3700 .eraseblocks = { {8 * 1024 * 1024, 1} },
3701 .block_erase = spi_block_erase_c7,
3702 }
3703 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003705 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003706 .write = spi_chip_write_256,
3707 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003708 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003709 },
3710
3711 {
3712 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003713 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003714 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003715 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003716 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003717 .total_size = 64,
3718 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003719 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003720 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003721 .probe = probe_spi_rdid,
3722 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003723 .block_erasers =
3724 {
3725 {
3726 .eraseblocks = { {4 * 1024, 16} },
3727 .block_erase = spi_block_erase_20,
3728 }, {
3729 .eraseblocks = { {32 * 1024, 2} },
3730 .block_erase = spi_block_erase_d8,
3731 }, {
3732 .eraseblocks = { {32 * 1024, 2} },
3733 .block_erase = spi_block_erase_52,
3734 }, {
3735 .eraseblocks = { {64 * 1024, 1} },
3736 .block_erase = spi_block_erase_60,
3737 }, {
3738 .eraseblocks = { {64 * 1024, 1} },
3739 .block_erase = spi_block_erase_c7,
3740 }
3741 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003742 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003743 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003744 .write = spi_chip_write_256,
3745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003746 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003747 },
3748
3749 {
3750 .vendor = "Eon",
3751 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003752 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003753 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003754 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003755 .total_size = 128,
3756 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003757 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003758 .tested = TEST_UNTESTED,
3759 .probe = probe_spi_rdid,
3760 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003761 .block_erasers =
3762 {
3763 {
3764 .eraseblocks = { {4 * 1024, 32} },
3765 .block_erase = spi_block_erase_20,
3766 }, {
3767 .eraseblocks = { {32 * 1024, 4} },
3768 .block_erase = spi_block_erase_d8,
3769 }, {
3770 .eraseblocks = { {32 * 1024, 4} },
3771 .block_erase = spi_block_erase_52,
3772 }, {
3773 .eraseblocks = { {128 * 1024, 1} },
3774 .block_erase = spi_block_erase_60,
3775 }, {
3776 .eraseblocks = { {128 * 1024, 1} },
3777 .block_erase = spi_block_erase_c7,
3778 }
3779 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003781 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003782 .write = spi_chip_write_256,
3783 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003784 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003785 },
3786
3787 {
3788 .vendor = "Eon",
3789 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003790 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003791 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003792 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003793 .total_size = 256,
3794 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003796 .tested = TEST_UNTESTED,
3797 .probe = probe_spi_rdid,
3798 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003799 .block_erasers =
3800 {
3801 {
3802 .eraseblocks = { {4 * 1024, 64} },
3803 .block_erase = spi_block_erase_20,
3804 }, {
3805 .eraseblocks = { {64 * 1024, 4} },
3806 .block_erase = spi_block_erase_d8,
3807 }, {
3808 .eraseblocks = { {64 * 1024, 4} },
3809 .block_erase = spi_block_erase_52,
3810 }, {
3811 .eraseblocks = { {256 * 1024, 1} },
3812 .block_erase = spi_block_erase_60,
3813 }, {
3814 .eraseblocks = { {256 * 1024, 1} },
3815 .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 Hailfingera0a6ae92009-06-15 12:10:57 +00003820 .write = spi_chip_write_256,
3821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003827 .name = "EN25F40",
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_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003831 .total_size = 512,
3832 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003834 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003837 .block_erasers =
3838 {
3839 {
Sean Nelson54596372010-01-09 05:30:14 +00003840 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003841 .block_erase = spi_block_erase_20,
3842 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003843 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003844 .block_erase = spi_block_erase_d8,
3845 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003846 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003847 .block_erase = spi_block_erase_60,
3848 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003849 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003850 .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 = "EN25F80",
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_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003866 .total_size = 1024,
3867 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003868 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +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, 256} },
3876 .block_erase = spi_block_erase_20,
3877 }, {
3878 .eraseblocks = { {64 * 1024, 16} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_60,
3883 }, {
3884 .eraseblocks = { {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 {
3896 .vendor = "Eon",
3897 .name = "EN25F16",
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_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003901 .total_size = 2048,
3902 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003903 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003904 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003905 .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, 512} },
3911 .block_erase = spi_block_erase_20,
3912 }, {
3913 .eraseblocks = { {64 * 1024, 32} },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {2 * 1024 * 1024, 1} },
3917 .block_erase = spi_block_erase_60,
3918 }, {
3919 .eraseblocks = { {2 * 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 Hailfinger80243c92009-06-05 20:53:07 +00003925 .write = spi_chip_write_256,
3926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003927 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003928 },
3929
3930 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003931 .vendor = "Eon",
3932 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003933 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003934 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003935 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003936 .total_size = 4096,
3937 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003938 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003939 .tested = TEST_UNTESTED,
3940 .probe = probe_spi_rdid,
3941 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003942 .block_erasers =
3943 {
3944 {
3945 .eraseblocks = { {4 * 1024, 1024} },
3946 .block_erase = spi_block_erase_20,
3947 }, {
3948 .eraseblocks = { {64 * 1024, 64} },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {4 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_60,
3953 }, {
3954 .eraseblocks = { {4 * 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 */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003959 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003960 .write = spi_chip_write_256,
3961 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003962 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003963 },
3964
3965 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003966 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003967 .name = "EN25F64",
3968 .bustype = BUS_SPI,
3969 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003970 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003971 .total_size = 8192,
3972 .page_size = 256,
3973 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003974 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003975 .probe = probe_spi_rdid,
3976 .probe_timing = TIMING_ZERO,
3977 .block_erasers =
3978 {
3979 {
3980 .eraseblocks = { {4 * 1024, 2048} },
3981 .block_erase = spi_block_erase_20,
3982 }, {
3983 .eraseblocks = { {64 * 1024, 128} },
3984 .block_erase = spi_block_erase_d8,
3985 }, {
3986 .eraseblocks = { {8 * 1024 * 1024, 1} },
3987 .block_erase = spi_block_erase_60,
3988 }, {
3989 .eraseblocks = { {8 * 1024 * 1024, 1} },
3990 .block_erase = spi_block_erase_c7,
3991 }
3992 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003993 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003994 .unlock = spi_disable_blockprotect,
3995 .write = spi_chip_write_256,
3996 .read = spi_chip_read,
3997 .voltage = {2700, 3600},
3998 },
3999
4000 {
4001 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004002 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004003 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004004 .manufacture_id = EON_ID_NOPREFIX,
4005 .model_id = EON_EN25Q40,
4006 .total_size = 512,
4007 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004008 /* OTP: 256B total; enter 0x3A */
4009 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004010 .tested = TEST_UNTESTED,
4011 .probe = probe_spi_rdid,
4012 .probe_timing = TIMING_ZERO,
4013 .block_erasers =
4014 {
4015 {
4016 .eraseblocks = { {4 * 1024, 128} },
4017 .block_erase = spi_block_erase_20,
4018 }, {
4019 .eraseblocks = { {64 * 1024, 8} },
4020 .block_erase = spi_block_erase_d8,
4021 }, {
4022 .eraseblocks = { {512 * 1024, 1} },
4023 .block_erase = spi_block_erase_60,
4024 }, {
4025 .eraseblocks = { {512 * 1024, 1} },
4026 .block_erase = spi_block_erase_c7,
4027 }
4028 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004029 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004030 .unlock = spi_disable_blockprotect,
4031 .write = spi_chip_write_256,
4032 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004033 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004034 },
4035
4036 {
4037 .vendor = "Eon",
4038 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004039 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004040 .manufacture_id = EON_ID_NOPREFIX,
4041 .model_id = EON_EN25Q80,
4042 .total_size = 1024,
4043 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004044 /* OTP: 256B total; enter 0x3A */
4045 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004046 .tested = TEST_UNTESTED,
4047 .probe = probe_spi_rdid,
4048 .probe_timing = TIMING_ZERO,
4049 .block_erasers =
4050 {
4051 {
4052 .eraseblocks = { {4 * 1024, 256} },
4053 .block_erase = spi_block_erase_20,
4054 }, {
4055 .eraseblocks = { {64 * 1024, 16} },
4056 .block_erase = spi_block_erase_d8,
4057 }, {
4058 .eraseblocks = { {1024 * 1024, 1} },
4059 .block_erase = spi_block_erase_60,
4060 }, {
4061 .eraseblocks = { {1024 * 1024, 1} },
4062 .block_erase = spi_block_erase_c7,
4063 }
4064 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004065 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004066 .unlock = spi_disable_blockprotect,
4067 .write = spi_chip_write_256,
4068 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004069 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004070 },
4071
4072 {
4073 /* Note: EN25D16 is an evil twin which shares the model ID
4074 but has different write protection capabilities */
4075 .vendor = "Eon",
4076 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004077 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004078 .manufacture_id = EON_ID_NOPREFIX,
4079 .model_id = EON_EN25Q16,
4080 .total_size = 2048,
4081 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004082 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4083 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004084 .tested = TEST_UNTESTED,
4085 .probe = probe_spi_rdid,
4086 .probe_timing = TIMING_ZERO,
4087 .block_erasers =
4088 {
4089 {
4090 .eraseblocks = { {4 * 1024, 512} },
4091 .block_erase = spi_block_erase_20,
4092 }, {
4093 .eraseblocks = { {64 * 1024, 32} },
4094 .block_erase = spi_block_erase_d8,
4095 }, {
4096 /* not supported by Q16 version */
4097 .eraseblocks = { {64 * 1024, 32} },
4098 .block_erase = spi_block_erase_52,
4099 }, {
4100 .eraseblocks = { {2 * 1024 * 1024, 1} },
4101 .block_erase = spi_block_erase_60,
4102 }, {
4103 .eraseblocks = { {2 * 1024 * 1024, 1} },
4104 .block_erase = spi_block_erase_c7,
4105 }
4106 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004107 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004108 .unlock = spi_disable_blockprotect,
4109 .write = spi_chip_write_256,
4110 .read = spi_chip_read,
4111 .voltage = {2700, 3600},
4112 },
4113
4114 {
4115 .vendor = "Eon",
4116 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004117 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004118 .manufacture_id = EON_ID_NOPREFIX,
4119 .model_id = EON_EN25Q32,
4120 .total_size = 4096,
4121 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004122 /* OTP: 512B total; enter 0x3A */
4123 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004124 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 1024} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 64} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {4 * 1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {4 * 1024 * 1024, 1} },
4140 .block_erase = spi_block_erase_c7,
4141 }
4142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004147 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004148 },
4149
4150 {
4151 .vendor = "Eon",
4152 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004153 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004154 .manufacture_id = EON_ID_NOPREFIX,
4155 .model_id = EON_EN25Q64,
4156 .total_size = 8192,
4157 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004158 /* OTP: 512B total; enter 0x3A */
4159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004160 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004161 .probe = probe_spi_rdid,
4162 .probe_timing = TIMING_ZERO,
4163 .block_erasers =
4164 {
4165 {
4166 .eraseblocks = { {4 * 1024, 2048} },
4167 .block_erase = spi_block_erase_20,
4168 }, {
4169 .eraseblocks = { {64 * 1024, 128} },
4170 .block_erase = spi_block_erase_d8,
4171 }, {
4172 .eraseblocks = { {8 * 1024 * 1024, 1} },
4173 .block_erase = spi_block_erase_60,
4174 }, {
4175 .eraseblocks = { {8 * 1024 * 1024, 1} },
4176 .block_erase = spi_block_erase_c7,
4177 }
4178 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004180 .unlock = spi_disable_blockprotect,
4181 .write = spi_chip_write_256,
4182 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004183 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25Q128",
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_EN25Q128,
4192 .total_size = 16384,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* OTP: 512B total; enter 0x3A */
4195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .tested = TEST_UNTESTED,
4197 .probe = probe_spi_rdid,
4198 .probe_timing = TIMING_ZERO,
4199 .block_erasers =
4200 {
4201 {
4202 .eraseblocks = { {4 * 1024, 4096} },
4203 .block_erase = spi_block_erase_20,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 256} },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {16 * 1024 * 1024, 1} },
4209 .block_erase = spi_block_erase_60,
4210 }, {
4211 .eraseblocks = { {16 * 1024 * 1024, 1} },
4212 .block_erase = spi_block_erase_c7,
4213 }
4214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004216 .unlock = spi_disable_blockprotect,
4217 .write = spi_chip_write_256,
4218 .read = spi_chip_read,
4219 },
4220
4221 {
4222 .vendor = "Eon",
4223 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004224 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004225 .manufacture_id = EON_ID_NOPREFIX,
4226 .model_id = EON_EN25QH16,
4227 .total_size = 2048,
4228 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004229 /* supports SFDP */
4230 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004231 /* QPI enable 0x38, disable 0xFF */
4232 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004233 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004234 .probe = probe_spi_rdid,
4235 .probe_timing = TIMING_ZERO,
4236 .block_erasers =
4237 {
4238 {
4239 .eraseblocks = { {4 * 1024, 512} },
4240 .block_erase = spi_block_erase_20,
4241 }, {
4242 .eraseblocks = { {64 * 1024, 32} },
4243 .block_erase = spi_block_erase_d8,
4244 }, {
4245 .eraseblocks = { {1024 * 2048, 1} },
4246 .block_erase = spi_block_erase_60,
4247 }, {
4248 .eraseblocks = { {1024 * 2048, 1} },
4249 .block_erase = spi_block_erase_c7,
4250 }
4251 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004252 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4253 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004254 .write = spi_chip_write_256,
4255 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004256 .voltage = {2700, 3600},
4257 },
4258
4259 {
4260 .vendor = "Eon",
4261 .name = "EN25QH32",
4262 .bustype = BUS_SPI,
4263 .manufacture_id = EON_ID_NOPREFIX,
4264 .model_id = EON_EN25QH32,
4265 .total_size = 4096,
4266 .page_size = 256,
4267 /* supports SFDP */
4268 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004269 /* QPI enable 0x38, disable 0xFF */
4270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004271 .tested = TEST_UNTESTED,
4272 .probe = probe_spi_rdid,
4273 .probe_timing = TIMING_ZERO,
4274 .block_erasers =
4275 {
4276 {
4277 .eraseblocks = { {4 * 1024, 1024} },
4278 .block_erase = spi_block_erase_20,
4279 }, {
4280 .eraseblocks = { {64 * 1024, 64} },
4281 .block_erase = spi_block_erase_d8,
4282 }, {
4283 .eraseblocks = { {1024 * 4096, 1} },
4284 .block_erase = spi_block_erase_60,
4285 }, {
4286 .eraseblocks = { {1024 * 4096, 1} },
4287 .block_erase = spi_block_erase_c7,
4288 }
4289 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004290 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4291 .unlock = spi_disable_blockprotect_bp3_srwd,
4292 .write = spi_chip_write_256,
4293 .read = spi_chip_read,
4294 .voltage = {2700, 3600},
4295 },
4296
4297 {
4298 .vendor = "Eon",
4299 .name = "EN25QH64",
4300 .bustype = BUS_SPI,
4301 .manufacture_id = EON_ID_NOPREFIX,
4302 .model_id = EON_EN25QH64,
4303 .total_size = 8192,
4304 .page_size = 256,
4305 /* supports SFDP */
4306 /* OTP: 512B total; enter 0x3A */
4307 /* QPI enable 0x38, disable 0xFF */
4308 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004309 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004310 .probe = probe_spi_rdid,
4311 .probe_timing = TIMING_ZERO,
4312 .block_erasers = {
4313 {
4314 .eraseblocks = { {4 * 1024, 2048} },
4315 .block_erase = spi_block_erase_20,
4316 }, {
4317 .eraseblocks = { {64 * 1024, 128} },
4318 .block_erase = spi_block_erase_d8,
4319 }, {
4320 .eraseblocks = { { 8192 * 1024, 1} },
4321 .block_erase = spi_block_erase_60,
4322 }, {
4323 .eraseblocks = { { 8192 * 1024, 1} },
4324 .block_erase = spi_block_erase_c7,
4325 }
4326 },
4327 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4328 .unlock = spi_disable_blockprotect_bp3_srwd,
4329 .write = spi_chip_write_256,
4330 .read = spi_chip_read,
4331 .voltage = {2700, 3600},
4332 },
4333
4334 {
4335 .vendor = "Eon",
4336 .name = "EN25QH128",
4337 .bustype = BUS_SPI,
4338 .manufacture_id = EON_ID_NOPREFIX,
4339 .model_id = EON_EN25QH128,
4340 .total_size = 16384,
4341 .page_size = 256,
4342 /* supports SFDP */
4343 /* OTP: 512B total; enter 0x3A */
4344 /* QPI enable 0x38, disable 0xFF */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers = {
4350 {
4351 .eraseblocks = { {4 * 1024, 4096} },
4352 .block_erase = spi_block_erase_20,
4353 }, {
4354 .eraseblocks = { {64 * 1024, 256} },
4355 .block_erase = spi_block_erase_d8,
4356 }, {
4357 .eraseblocks = { { 16384 * 1024, 1} },
4358 .block_erase = spi_block_erase_60,
4359 }, {
4360 .eraseblocks = { { 16384 * 1024, 1} },
4361 .block_erase = spi_block_erase_c7,
4362 }
4363 },
4364 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4365 .unlock = spi_disable_blockprotect_bp3_srwd,
4366 .write = spi_chip_write_256,
4367 .read = spi_chip_read,
4368 .voltage = {2700, 3600},
4369 },
4370
4371 {
4372 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004373 .name = "EN25S10",
4374 .bustype = BUS_SPI,
4375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25S10,
4377 .total_size = 128,
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, 32} },
4387 .block_erase = spi_block_erase_20,
4388 }, {
4389 .eraseblocks = { {32 * 1024, 4} },
4390 .block_erase = spi_block_erase_52,
4391 }, {
4392 .eraseblocks = { {128 * 1024, 1} },
4393 .block_erase = spi_block_erase_60,
4394 }, {
4395 .eraseblocks = { {128 * 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 = "EN25S20",
4409 .bustype = BUS_SPI,
4410 .manufacture_id = EON_ID_NOPREFIX,
4411 .model_id = EON_EN25S20,
4412 .total_size = 256,
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, 64} },
4422 .block_erase = spi_block_erase_20,
4423 }, {
4424 .eraseblocks = { {64 * 1024, 4} },
4425 .block_erase = spi_block_erase_d8,
4426 }, {
4427 .eraseblocks = { {256 * 1024, 1} },
4428 .block_erase = spi_block_erase_60,
4429 }, {
4430 .eraseblocks = { {256 * 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 = "EN25S40",
4444 .bustype = BUS_SPI,
4445 .manufacture_id = EON_ID_NOPREFIX,
4446 .model_id = EON_EN25S40,
4447 .total_size = 512,
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, 128} },
4457 .block_erase = spi_block_erase_20,
4458 }, {
4459 .eraseblocks = { {64 * 1024, 8} },
4460 .block_erase = spi_block_erase_d8,
4461 }, {
4462 .eraseblocks = { {512 * 1024, 1} },
4463 .block_erase = spi_block_erase_60,
4464 }, {
4465 .eraseblocks = { {512 * 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 = "EN25S80",
4479 .bustype = BUS_SPI,
4480 .manufacture_id = EON_ID_NOPREFIX,
4481 .model_id = EON_EN25S80,
4482 .total_size = 1024,
4483 .page_size = 256,
4484 /* OTP: 256B total; enter 0x3A */
4485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4486 .tested = TEST_UNTESTED,
4487 .probe = probe_spi_rdid,
4488 .probe_timing = TIMING_ZERO,
4489 .block_erasers = {
4490 {
4491 .eraseblocks = { {4 * 1024, 256} },
4492 .block_erase = spi_block_erase_20,
4493 }, {
4494 .eraseblocks = { {64 * 1024, 16} },
4495 .block_erase = spi_block_erase_d8,
4496 }, {
4497 .eraseblocks = { {1024 * 1024, 1} },
4498 .block_erase = spi_block_erase_60,
4499 }, {
4500 .eraseblocks = { {1024 * 1024, 1} },
4501 .block_erase = spi_block_erase_c7,
4502 }
4503 },
4504 .printlock = spi_prettyprint_status_register_default_bp2,
4505 .unlock = spi_disable_blockprotect,
4506 .write = spi_chip_write_256,
4507 .read = spi_chip_read,
4508 .voltage = {1650, 1950},
4509 },
4510
4511 {
4512 .vendor = "Eon",
4513 .name = "EN25S16",
4514 .bustype = BUS_SPI,
4515 .manufacture_id = EON_ID_NOPREFIX,
4516 .model_id = EON_EN25S16,
4517 .total_size = 2048,
4518 .page_size = 256,
4519 /* OTP: 512B total; enter 0x3A */
4520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4521 .tested = TEST_UNTESTED,
4522 .probe = probe_spi_rdid,
4523 .probe_timing = TIMING_ZERO,
4524 .block_erasers = {
4525 {
4526 .eraseblocks = { {4 * 1024, 512} },
4527 .block_erase = spi_block_erase_20,
4528 }, {
4529 .eraseblocks = { {64 * 1024, 32} },
4530 .block_erase = spi_block_erase_52,
4531 }, {
4532 .eraseblocks = { {32 * 1024, 64} },
4533 .block_erase = spi_block_erase_d8,
4534 }, {
4535 .eraseblocks = { {2048 * 1024, 1} },
4536 .block_erase = spi_block_erase_60,
4537 }, {
4538 .eraseblocks = { {2048 * 1024, 1} },
4539 .block_erase = spi_block_erase_c7,
4540 }
4541 },
4542 .printlock = spi_prettyprint_status_register_en25s_wp,
4543 .unlock = spi_disable_blockprotect_bp3_srwd,
4544 .write = spi_chip_write_256,
4545 .read = spi_chip_read,
4546 .voltage = {1650, 1950},
4547 },
4548
4549 {
4550 .vendor = "Eon",
4551 .name = "EN25S32",
4552 .bustype = BUS_SPI,
4553 .manufacture_id = EON_ID_NOPREFIX,
4554 .model_id = EON_EN25S32,
4555 .total_size = 4096,
4556 .page_size = 256,
4557 /* OTP: 512B total; enter 0x3A */
4558 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4559 .tested = TEST_UNTESTED,
4560 .probe = probe_spi_rdid,
4561 .probe_timing = TIMING_ZERO,
4562 .block_erasers = {
4563 {
4564 .eraseblocks = { {4 * 1024, 1024} },
4565 .block_erase = spi_block_erase_20,
4566 }, {
4567 .eraseblocks = { {32 * 1024, 128} },
4568 .block_erase = spi_block_erase_52,
4569 }, {
4570 .eraseblocks = { {64 * 1024, 64} },
4571 .block_erase = spi_block_erase_d8,
4572 }, {
4573 .eraseblocks = { {4096 * 1024, 1} },
4574 .block_erase = spi_block_erase_60,
4575 }, {
4576 .eraseblocks = { {4096 * 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",
4589 .name = "EN25S64",
4590 .bustype = BUS_SPI,
4591 .manufacture_id = EON_ID_NOPREFIX,
4592 .model_id = EON_EN25S64,
4593 .total_size = 8192,
4594 .page_size = 256,
4595 /* OTP: 512B total; enter 0x3A */
4596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4597 .tested = TEST_UNTESTED,
4598 .probe = probe_spi_rdid,
4599 .probe_timing = TIMING_ZERO,
4600 .block_erasers = {
4601 {
4602 .eraseblocks = { {4 * 1024, 2048} },
4603 .block_erase = spi_block_erase_20,
4604 }, {
4605 .eraseblocks = { {64 * 1024, 128} },
4606 .block_erase = spi_block_erase_d8,
4607 }, {
4608 .eraseblocks = { {8192 * 1024, 1} },
4609 .block_erase = spi_block_erase_60,
4610 }, {
4611 .eraseblocks = { {8192 * 1024, 1} },
4612 .block_erase = spi_block_erase_c7,
4613 }
4614 },
4615 .printlock = spi_prettyprint_status_register_en25s_wp,
4616 .unlock = spi_disable_blockprotect_bp3_srwd,
4617 .write = spi_chip_write_256,
4618 .read = spi_chip_read,
4619 .voltage = {1650, 1950},
4620 },
4621
4622 {
4623 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004624 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004625 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004626 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004627 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004628 .total_size = 128,
4629 .page_size = 128,
4630 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004631 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004632 .probe = probe_jedec,
4633 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4634 .block_erasers =
4635 {
4636 {
4637 .eraseblocks = { {16 * 1024, 8} },
4638 .block_erase = erase_sector_jedec,
4639 },
4640 {
4641 .eraseblocks = { {128 * 1024, 1} },
4642 .block_erase = erase_chip_block_jedec,
4643 },
4644 },
4645 .write = write_jedec_1,
4646 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004647 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004648 },
4649
4650 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004651 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004652 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004653 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004654 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004655 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004656 .total_size = 256,
4657 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004658 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004659 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004660 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004661 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004662 .block_erasers =
4663 {
4664 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004665 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004666 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004667 {8 * 1024, 2},
4668 {32 * 1024, 1},
4669 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004670 },
4671 .block_erase = erase_sector_jedec,
4672 }, {
4673 .eraseblocks = { {256 * 1024, 1} },
4674 .block_erase = erase_chip_block_jedec,
4675 },
4676 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004677 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004678 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004679 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004680 },
4681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004682 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004683 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004684 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004685 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004686 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004687 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004688 .total_size = 256,
4689 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004690 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004691 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004692 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004693 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004694 .block_erasers =
4695 {
4696 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004697 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004698 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004699 {32 * 1024, 1},
4700 {8 * 1024, 2},
4701 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004702 },
4703 .block_erase = erase_sector_jedec,
4704 }, {
4705 .eraseblocks = { {256 * 1024, 1} },
4706 .block_erase = erase_chip_block_jedec,
4707 },
4708 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004709 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004710 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004711 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004712 },
4713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004714 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004715 .vendor = "Eon",
4716 .name = "EN29LV640B",
4717 .bustype = BUS_PARALLEL,
4718 .manufacture_id = EON_ID,
4719 .model_id = EON_EN29LV640B,
4720 .total_size = 8192,
4721 .page_size = 8192,
4722 .feature_bits = 0,
4723 .tested = TEST_OK_PREW,
4724 .probe = probe_en29lv640b,
4725 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4726 .block_erasers =
4727 {
4728 {
4729 .eraseblocks = {
4730 {8 * 1024, 8},
4731 {64 * 1024, 127},
4732 },
4733 .block_erase = block_erase_en29lv640b,
4734 }, {
4735 .eraseblocks = { {8 * 1024 * 1024, 1} },
4736 .block_erase = block_erase_chip_en29lv640b,
4737 },
4738 },
4739 .write = write_en29lv640b,
4740 .read = read_memmapped,
4741 .voltage = {2700, 3600},
4742 },
4743
4744 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004745 .vendor = "Fujitsu",
4746 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004747 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004748 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004749 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004750 .total_size = 512,
4751 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004752 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004753 .tested = TEST_UNTESTED,
4754 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004755 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004756 .block_erasers =
4757 {
4758 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004759 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004760 {16 * 1024, 1},
4761 {8 * 1024, 2},
4762 {32 * 1024, 1},
4763 {64 * 1024, 7},
4764 },
Sean Nelson35727f72010-01-28 23:55:12 +00004765 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004766 }, {
4767 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004768 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004769 },
4770 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004771 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004772 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004773 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004774 },
4775
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004776 {
4777 .vendor = "Fujitsu",
4778 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004779 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004780 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004781 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004782 .total_size = 512,
4783 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004784 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004785 .tested = TEST_UNTESTED,
4786 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004787 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004788 .block_erasers =
4789 {
4790 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004791 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004792 {64 * 1024, 7},
4793 {32 * 1024, 1},
4794 {8 * 1024, 2},
4795 {16 * 1024, 1},
4796 },
Sean Nelson35727f72010-01-28 23:55:12 +00004797 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004798 }, {
4799 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004800 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004801 },
4802 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004803 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004805 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004806 },
4807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004808 {
Sean Nelson35727f72010-01-28 23:55:12 +00004809 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .vendor = "Fujitsu",
4811 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004812 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004813 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004814 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004815 .total_size = 512,
4816 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004817 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004818 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004819 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004820 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004821 .block_erasers =
4822 {
4823 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004824 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004825 {16 * 1024, 1},
4826 {8 * 1024, 2},
4827 {32 * 1024, 1},
4828 {64 * 1024, 7},
4829 },
4830 .block_erase = block_erase_m29f400bt,
4831 }, {
4832 .eraseblocks = { {512 * 1024, 1} },
4833 .block_erase = block_erase_chip_m29f400bt,
4834 },
4835 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004836 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004837 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004838 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004839 },
4840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004841 {
4842 .vendor = "Fujitsu",
4843 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004844 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004845 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004846 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004847 .total_size = 512,
4848 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004849 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004850 .tested = TEST_UNTESTED,
4851 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004852 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004853 .block_erasers =
4854 {
4855 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004856 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004857 {64 * 1024, 7},
4858 {32 * 1024, 1},
4859 {8 * 1024, 2},
4860 {16 * 1024, 1},
4861 },
4862 .block_erase = block_erase_m29f400bt,
4863 }, {
4864 .eraseblocks = { {512 * 1024, 1} },
4865 .block_erase = block_erase_chip_m29f400bt,
4866 },
4867 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004868 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004869 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004870 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004871 },
4872
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004873 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004874 .vendor = "Fujitsu",
4875 .name = "MBM29LV160BE",
4876 .bustype = BUS_PARALLEL,
4877 .manufacture_id = FUJITSU_ID,
4878 .model_id = FUJITSU_MBM29LV160BE,
4879 .total_size = 2 * 1024,
4880 .page_size = 0,
4881 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4882 .tested = TEST_UNTESTED,
4883 .probe = probe_m29f400bt,
4884 .probe_timing = TIMING_IGNORED,
4885 .block_erasers =
4886 {
4887 {
4888 .eraseblocks = {
4889 {16 * 1024, 1},
4890 {8 * 1024, 2},
4891 {32 * 1024, 1},
4892 {64 * 1024, 31},
4893 },
4894 .block_erase = block_erase_m29f400bt,
4895 }, {
4896 .eraseblocks = { {2048 * 1024, 1} },
4897 .block_erase = block_erase_chip_m29f400bt,
4898 },
4899 },
4900 .write = write_m29f400bt, /* Supports a fast mode too */
4901 .read = read_memmapped,
4902 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4903 },
4904
4905 {
4906 .vendor = "Fujitsu",
4907 .name = "MBM29LV160TE",
4908 .bustype = BUS_PARALLEL,
4909 .manufacture_id = FUJITSU_ID,
4910 .model_id = FUJITSU_MBM29LV160TE,
4911 .total_size = 2 * 1024,
4912 .page_size = 0,
4913 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4914 .tested = TEST_UNTESTED,
4915 .probe = probe_m29f400bt,
4916 .probe_timing = TIMING_IGNORED,
4917 .block_erasers =
4918 {
4919 {
4920 .eraseblocks = {
4921 {64 * 1024, 31},
4922 {32 * 1024, 1},
4923 {8 * 1024, 2},
4924 {16 * 1024, 1},
4925 },
4926 .block_erase = block_erase_m29f400bt,
4927 }, {
4928 .eraseblocks = { {2048 * 1024, 1} },
4929 .block_erase = block_erase_chip_m29f400bt,
4930 },
4931 },
4932 .write = write_m29f400bt, /* Supports a fast mode too */
4933 .read = read_memmapped,
4934 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4935 },
4936
4937 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004938 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004939 .name = "GD25LQ32",
4940 .bustype = BUS_SPI,
4941 .manufacture_id = GIGADEVICE_ID,
4942 .model_id = GIGADEVICE_GD25LQ32,
4943 .total_size = 4096,
4944 .page_size = 256,
4945 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4946 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4947 .tested = TEST_OK_PREW,
4948 .probe = probe_spi_rdid,
4949 .probe_timing = TIMING_ZERO,
4950 .block_erasers =
4951 {
4952 {
4953 .eraseblocks = { {4 * 1024, 1024} },
4954 .block_erase = spi_block_erase_20,
4955 }, {
4956 .eraseblocks = { {32 * 1024, 128} },
4957 .block_erase = spi_block_erase_52,
4958 }, {
4959 .eraseblocks = { {64 * 1024, 64} },
4960 .block_erase = spi_block_erase_d8,
4961 }, {
4962 .eraseblocks = { {4 * 1024 * 1024, 1} },
4963 .block_erase = spi_block_erase_60,
4964 }, {
4965 .eraseblocks = { {4 * 1024 * 1024, 1} },
4966 .block_erase = spi_block_erase_c7,
4967 }
4968 },
4969 .printlock = spi_prettyprint_status_register_default_bp4,
4970 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4971 .write = spi_chip_write_256,
4972 .read = spi_chip_read,
4973 .voltage = {1700, 1950},
4974 },
4975
4976 {
4977 .vendor = "GigaDevice",
4978 .name = "GD25Q512",
4979 .bustype = BUS_SPI,
4980 .manufacture_id = GIGADEVICE_ID,
4981 .model_id = GIGADEVICE_GD25Q512,
4982 .total_size = 64,
4983 .page_size = 256,
4984 .feature_bits = FEATURE_WRSR_WREN,
4985 .tested = TEST_UNTESTED,
4986 .probe = probe_spi_rdid,
4987 .probe_timing = TIMING_ZERO,
4988 .block_erasers = {
4989 {
4990 .eraseblocks = { {4 * 1024, 16} },
4991 .block_erase = spi_block_erase_20,
4992 }, {
4993 .eraseblocks = { {32 * 1024, 2} },
4994 .block_erase = spi_block_erase_52,
4995 }, {
4996 .eraseblocks = { {64 * 1024, 1} },
4997 .block_erase = spi_block_erase_60,
4998 }, {
4999 .eraseblocks = { {64 * 1024, 1} },
5000 .block_erase = spi_block_erase_c7,
5001 }
5002 },
5003 .printlock = spi_prettyprint_status_register_default_bp4,
5004 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5005 .write = spi_chip_write_256,
5006 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5007 .voltage = {2700, 3600},
5008 },
5009
5010 {
5011 .vendor = "GigaDevice",
5012 .name = "GD25Q10",
5013 .bustype = BUS_SPI,
5014 .manufacture_id = GIGADEVICE_ID,
5015 .model_id = GIGADEVICE_GD25Q10,
5016 .total_size = 128,
5017 .page_size = 256,
5018 .feature_bits = FEATURE_WRSR_WREN,
5019 .tested = TEST_UNTESTED,
5020 .probe = probe_spi_rdid,
5021 .probe_timing = TIMING_ZERO,
5022 .block_erasers = {
5023 {
5024 .eraseblocks = { {4 * 1024, 32} },
5025 .block_erase = spi_block_erase_20,
5026 }, {
5027 .eraseblocks = { {32 * 1024, 4} },
5028 .block_erase = spi_block_erase_52,
5029 }, {
5030 .eraseblocks = { {64 * 1024, 2} },
5031 .block_erase = spi_block_erase_d8,
5032 }, {
5033 .eraseblocks = { {128 * 1024, 1} },
5034 .block_erase = spi_block_erase_60,
5035 }, {
5036 .eraseblocks = { {128 * 1024, 1} },
5037 .block_erase = spi_block_erase_c7,
5038 }
5039 },
5040 .printlock = spi_prettyprint_status_register_default_bp4,
5041 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5042 .write = spi_chip_write_256,
5043 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5044 .voltage = {2700, 3600},
5045 },
5046
5047 {
5048 .vendor = "GigaDevice",
5049 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005050 .bustype = BUS_SPI,
5051 .manufacture_id = GIGADEVICE_ID,
5052 .model_id = GIGADEVICE_GD25Q20,
5053 .total_size = 256,
5054 .page_size = 256,
5055 .feature_bits = FEATURE_WRSR_WREN,
5056 .tested = TEST_UNTESTED,
5057 .probe = probe_spi_rdid,
5058 .probe_timing = TIMING_ZERO,
5059 .block_erasers =
5060 {
5061 {
5062 .eraseblocks = { {4 * 1024, 64} },
5063 .block_erase = spi_block_erase_20,
5064 }, {
5065 .eraseblocks = { {32 * 1024, 8} },
5066 .block_erase = spi_block_erase_52,
5067 }, {
5068 .eraseblocks = { {64 * 1024, 4} },
5069 .block_erase = spi_block_erase_d8,
5070 }, {
5071 .eraseblocks = { {256 * 1024, 1} },
5072 .block_erase = spi_block_erase_60,
5073 }, {
5074 .eraseblocks = { {256 * 1024, 1} },
5075 .block_erase = spi_block_erase_c7,
5076 }
5077 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005078 .printlock = spi_prettyprint_status_register_default_bp4,
5079 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005080 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005081 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005082 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005083 },
5084
5085 {
5086 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005087 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005088 .bustype = BUS_SPI,
5089 .manufacture_id = GIGADEVICE_ID,
5090 .model_id = GIGADEVICE_GD25Q40,
5091 .total_size = 512,
5092 .page_size = 256,
5093 .feature_bits = FEATURE_WRSR_WREN,
5094 .tested = TEST_UNTESTED,
5095 .probe = probe_spi_rdid,
5096 .probe_timing = TIMING_ZERO,
5097 .block_erasers =
5098 {
5099 {
5100 .eraseblocks = { {4 * 1024, 128} },
5101 .block_erase = spi_block_erase_20,
5102 }, {
5103 .eraseblocks = { {32 * 1024, 16} },
5104 .block_erase = spi_block_erase_52,
5105 }, {
5106 .eraseblocks = { {64 * 1024, 8} },
5107 .block_erase = spi_block_erase_d8,
5108 }, {
5109 .eraseblocks = { {512 * 1024, 1} },
5110 .block_erase = spi_block_erase_60,
5111 }, {
5112 .eraseblocks = { {512 * 1024, 1} },
5113 .block_erase = spi_block_erase_c7,
5114 }
5115 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005116 .printlock = spi_prettyprint_status_register_default_bp4,
5117 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005118 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005119 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005120 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005121 },
5122
5123 {
5124 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005125 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005126 .bustype = BUS_SPI,
5127 .manufacture_id = GIGADEVICE_ID,
5128 .model_id = GIGADEVICE_GD25Q80,
5129 .total_size = 1024,
5130 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005131 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005132 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5133 .tested = TEST_OK_PREW,
5134 .probe = probe_spi_rdid,
5135 .probe_timing = TIMING_ZERO,
5136 .block_erasers =
5137 {
5138 {
5139 .eraseblocks = { {4 * 1024, 256} },
5140 .block_erase = spi_block_erase_20,
5141 }, {
5142 .eraseblocks = { {32 * 1024, 32} },
5143 .block_erase = spi_block_erase_52,
5144 }, {
5145 .eraseblocks = { {64 * 1024, 16} },
5146 .block_erase = spi_block_erase_d8,
5147 }, {
5148 .eraseblocks = { {1024 * 1024, 1} },
5149 .block_erase = spi_block_erase_60,
5150 }, {
5151 .eraseblocks = { {1024 * 1024, 1} },
5152 .block_erase = spi_block_erase_c7,
5153 }
5154 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005155 .printlock = spi_prettyprint_status_register_default_bp4,
5156 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005157 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005158 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005159 .voltage = {2700, 3600},
5160 },
5161
5162 {
5163 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005164 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005165 .bustype = BUS_SPI,
5166 .manufacture_id = GIGADEVICE_ID,
5167 .model_id = GIGADEVICE_GD25Q16,
5168 .total_size = 2048,
5169 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005170 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5172 .tested = TEST_UNTESTED,
5173 .probe = probe_spi_rdid,
5174 .probe_timing = TIMING_ZERO,
5175 .block_erasers =
5176 {
5177 {
5178 .eraseblocks = { {4 * 1024, 512} },
5179 .block_erase = spi_block_erase_20,
5180 }, {
5181 .eraseblocks = { {32 * 1024, 64} },
5182 .block_erase = spi_block_erase_52,
5183 }, {
5184 .eraseblocks = { {64 * 1024, 32} },
5185 .block_erase = spi_block_erase_d8,
5186 }, {
5187 .eraseblocks = { {2 * 1024 * 1024, 1} },
5188 .block_erase = spi_block_erase_60,
5189 }, {
5190 .eraseblocks = { {2 * 1024 * 1024, 1} },
5191 .block_erase = spi_block_erase_c7,
5192 }
5193 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005194 .printlock = spi_prettyprint_status_register_default_bp4,
5195 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005196 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005198 .voltage = {2700, 3600},
5199 },
5200
5201 {
5202 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005203 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005204 .bustype = BUS_SPI,
5205 .manufacture_id = GIGADEVICE_ID,
5206 .model_id = GIGADEVICE_GD25Q32,
5207 .total_size = 4096,
5208 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005209 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005211 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005212 .probe = probe_spi_rdid,
5213 .probe_timing = TIMING_ZERO,
5214 .block_erasers =
5215 {
5216 {
5217 .eraseblocks = { {4 * 1024, 1024} },
5218 .block_erase = spi_block_erase_20,
5219 }, {
5220 .eraseblocks = { {32 * 1024, 128} },
5221 .block_erase = spi_block_erase_52,
5222 }, {
5223 .eraseblocks = { {64 * 1024, 64} },
5224 .block_erase = spi_block_erase_d8,
5225 }, {
5226 .eraseblocks = { {4 * 1024 * 1024, 1} },
5227 .block_erase = spi_block_erase_60,
5228 }, {
5229 .eraseblocks = { {4 * 1024 * 1024, 1} },
5230 .block_erase = spi_block_erase_c7,
5231 }
5232 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005233 .printlock = spi_prettyprint_status_register_default_bp4,
5234 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005235 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005236 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005237 .voltage = {2700, 3600},
5238 },
5239
5240 {
5241 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005242 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005243 .bustype = BUS_SPI,
5244 .manufacture_id = GIGADEVICE_ID,
5245 .model_id = GIGADEVICE_GD25Q64,
5246 .total_size = 8192,
5247 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005248 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005250 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005251 .probe = probe_spi_rdid,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = { {4 * 1024, 2048} },
5257 .block_erase = spi_block_erase_20,
5258 }, {
5259 .eraseblocks = { {32 * 1024, 256} },
5260 .block_erase = spi_block_erase_52,
5261 }, {
5262 .eraseblocks = { {64 * 1024, 128} },
5263 .block_erase = spi_block_erase_d8,
5264 }, {
5265 .eraseblocks = { {8 * 1024 * 1024, 1} },
5266 .block_erase = spi_block_erase_60,
5267 }, {
5268 .eraseblocks = { {8 * 1024 * 1024, 1} },
5269 .block_erase = spi_block_erase_c7,
5270 }
5271 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005272 .printlock = spi_prettyprint_status_register_default_bp4,
5273 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005274 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005276 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005277 },
5278
5279 {
5280 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005281 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005282 .bustype = BUS_SPI,
5283 .manufacture_id = GIGADEVICE_ID,
5284 .model_id = GIGADEVICE_GD25Q128,
5285 .total_size = 16384,
5286 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005287 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5289 .tested = TEST_UNTESTED,
5290 .probe = probe_spi_rdid,
5291 .probe_timing = TIMING_ZERO,
5292 .block_erasers =
5293 {
5294 {
5295 .eraseblocks = { {4 * 1024, 4096} },
5296 .block_erase = spi_block_erase_20,
5297 }, {
5298 .eraseblocks = { {32 * 1024, 512} },
5299 .block_erase = spi_block_erase_52,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 256} },
5302 .block_erase = spi_block_erase_d8,
5303 }, {
5304 .eraseblocks = { {16 * 1024 * 1024, 1} },
5305 .block_erase = spi_block_erase_60,
5306 }, {
5307 .eraseblocks = { {16 * 1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_c7,
5309 }
5310 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005311 .printlock = spi_prettyprint_status_register_default_bp4,
5312 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5313 .write = spi_chip_write_256,
5314 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5315 .voltage = {2700, 3600},
5316 },
5317
5318 {
5319 .vendor = "GigaDevice",
5320 .name = "GD25T80",
5321 .bustype = BUS_SPI,
5322 .manufacture_id = GIGADEVICE_ID,
5323 .model_id = GIGADEVICE_GD25T80,
5324 .total_size = 1024,
5325 .page_size = 256,
5326 /* OTP: 256B total; enter 0x3A */
5327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5328 .tested = TEST_UNTESTED,
5329 .probe = probe_spi_rdid,
5330 .probe_timing = TIMING_ZERO,
5331 .block_erasers = {
5332 {
5333 .eraseblocks = { {4 * 1024, 256} },
5334 .block_erase = spi_block_erase_20,
5335 }, {
5336 .eraseblocks = { {64 * 1024, 16} },
5337 .block_erase = spi_block_erase_52,
5338 }, {
5339 .eraseblocks = { {64 * 1024, 16} },
5340 .block_erase = spi_block_erase_d8,
5341 }, {
5342 .eraseblocks = { {1024 * 1024, 1} },
5343 .block_erase = spi_block_erase_60,
5344 }, {
5345 .eraseblocks = { {1024 * 1024, 1} },
5346 .block_erase = spi_block_erase_c7,
5347 }
5348 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005349 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005350 .unlock = spi_disable_blockprotect,
5351 .write = spi_chip_write_256,
5352 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005353 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005354 },
5355
5356 {
David Borgc96a8bd2010-06-21 16:12:22 +00005357 .vendor = "Hyundai",
5358 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005359 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005360 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005361 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005362 .total_size = 256,
5363 .page_size = 256 * 1024,
5364 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005365 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005366 .probe = probe_jedec,
5367 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5368 .block_erasers =
5369 {
5370 {
5371 .eraseblocks = {
5372 {64 * 1024, 3},
5373 {32 * 1024, 1},
5374 {8 * 1024, 2},
5375 {16 * 1024, 1},
5376 },
5377 .block_erase = erase_sector_jedec,
5378 }, {
5379 .eraseblocks = { {256 * 1024, 1} },
5380 .block_erase = erase_chip_block_jedec,
5381 },
5382 },
5383 .write = write_jedec_1,
5384 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005385 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005386 },
5387
5388 {
5389 .vendor = "Hyundai",
5390 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005391 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005392 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005393 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005394 .total_size = 256,
5395 .page_size = 256 * 1024,
5396 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5397 .tested = TEST_UNTESTED,
5398 .probe = probe_jedec,
5399 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5400 .block_erasers =
5401 {
5402 {
5403 .eraseblocks = {
5404 {16 * 1024, 1},
5405 {8 * 1024, 2},
5406 {32 * 1024, 1},
5407 {64 * 1024, 3},
5408 },
5409 .block_erase = erase_sector_jedec,
5410 }, {
5411 .eraseblocks = { {256 * 1024, 1} },
5412 .block_erase = erase_chip_block_jedec,
5413 },
5414 },
5415 .write = write_jedec_1,
5416 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005417 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005418 },
5419
5420 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005421 .vendor = "Hyundai",
5422 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005423 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005424 .manufacture_id = HYUNDAI_ID,
5425 .model_id = HYUNDAI_HY29F040A,
5426 .total_size = 512,
5427 .page_size = 64 * 1024,
5428 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5429 .tested = TEST_UNTESTED,
5430 .probe = probe_jedec,
5431 .probe_timing = TIMING_ZERO,
5432 .block_erasers =
5433 {
5434 {
5435 .eraseblocks = { {64 * 1024, 8} },
5436 .block_erase = erase_sector_jedec,
5437 }, {
5438 .eraseblocks = { {512 * 1024, 1} },
5439 .block_erase = erase_chip_block_jedec,
5440 },
5441 },
5442 .write = write_jedec_1,
5443 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005444 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005445 },
5446
5447 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005448 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005449 .name = "25F160S33B8",
5450 .bustype = BUS_SPI,
5451 .manufacture_id = INTEL_ID,
5452 .model_id = INTEL_25F160S33B8,
5453 .total_size = 2048,
5454 .page_size = 256,
5455 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5456 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5457 .tested = TEST_UNTESTED,
5458 .probe = probe_spi_rdid,
5459 .probe_timing = TIMING_ZERO,
5460 .block_erasers =
5461 {
5462 {
5463 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5464 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5465 * have no effect on the memory contents, but sets a flag in the SR.
5466 .eraseblocks = {
5467 {8 * 1024, 8},
5468 {64 * 1024, 31} // inaccessible
5469 },
5470 .block_erase = spi_block_erase_40,
5471 }, { */
5472 .eraseblocks = { {64 * 1024, 32} },
5473 .block_erase = spi_block_erase_d8,
5474 }, {
5475 .eraseblocks = { {2 * 1024 * 1024, 1} },
5476 .block_erase = spi_block_erase_c7,
5477 }
5478 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005479 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5480 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005481 .write = spi_chip_write_256,
5482 .read = spi_chip_read, /* also fast read 0x0B */
5483 .voltage = {2700, 3600},
5484 },
5485
5486 {
5487 .vendor = "Intel",
5488 .name = "25F160S33T8",
5489 .bustype = BUS_SPI,
5490 .manufacture_id = INTEL_ID,
5491 .model_id = INTEL_25F160S33T8,
5492 .total_size = 2048,
5493 .page_size = 256,
5494 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5496 .tested = TEST_UNTESTED,
5497 .probe = probe_spi_rdid,
5498 .probe_timing = TIMING_ZERO,
5499 .block_erasers =
5500 {
5501 {
5502 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5503 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5504 * have no effect on the memory contents, but sets a flag in the SR.
5505 .eraseblocks = {
5506 {64 * 1024, 31}, // inaccessible
5507 {8 * 1024, 8}
5508 },
5509 .block_erase = spi_block_erase_40,
5510 }, { */
5511 .eraseblocks = { {64 * 1024, 32} },
5512 .block_erase = spi_block_erase_d8,
5513 }, {
5514 .eraseblocks = { {2 * 1024 * 1024, 1} },
5515 .block_erase = spi_block_erase_c7,
5516 }
5517 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005518 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5519 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005520 .write = spi_chip_write_256,
5521 .read = spi_chip_read, /* also fast read 0x0B */
5522 .voltage = {2700, 3600},
5523 },
5524
5525 {
5526 .vendor = "Intel",
5527 .name = "25F320S33B8",
5528 .bustype = BUS_SPI,
5529 .manufacture_id = INTEL_ID,
5530 .model_id = INTEL_25F320S33B8,
5531 .total_size = 4096,
5532 .page_size = 256,
5533 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5534 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5535 .tested = TEST_UNTESTED,
5536 .probe = probe_spi_rdid,
5537 .probe_timing = TIMING_ZERO,
5538 .block_erasers =
5539 {
5540 {
5541 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5542 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5543 * have no effect on the memory contents, but sets a flag in the SR.
5544 .eraseblocks = {
5545 {8 * 1024, 8},
5546 {64 * 1024, 63} // inaccessible
5547 },
5548 .block_erase = spi_block_erase_40,
5549 }, { */
5550 .eraseblocks = { {64 * 1024, 64} },
5551 .block_erase = spi_block_erase_d8,
5552 }, {
5553 .eraseblocks = { {4 * 1024 * 1024, 1} },
5554 .block_erase = spi_block_erase_c7,
5555 }
5556 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005557 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5558 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005559 .write = spi_chip_write_256,
5560 .read = spi_chip_read, /* also fast read 0x0B */
5561 .voltage = {2700, 3600},
5562 },
5563
5564 {
5565 .vendor = "Intel",
5566 .name = "25F320S33T8",
5567 .bustype = BUS_SPI,
5568 .manufacture_id = INTEL_ID,
5569 .model_id = INTEL_25F320S33T8,
5570 .total_size = 4096,
5571 .page_size = 256,
5572 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5574 .tested = TEST_UNTESTED,
5575 .probe = probe_spi_rdid,
5576 .probe_timing = TIMING_ZERO,
5577 .block_erasers =
5578 {
5579 {
5580 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5581 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5582 * have no effect on the memory contents, but sets a flag in the SR.
5583 .eraseblocks = {
5584 {64 * 1024, 63}, // inaccessible
5585 {8 * 1024, 8}
5586 },
5587 .block_erase = spi_block_erase_40,
5588 }, { */
5589 .eraseblocks = { {64 * 1024, 64} },
5590 .block_erase = spi_block_erase_d8,
5591 }, {
5592 .eraseblocks = { {4 * 1024 * 1024, 1} },
5593 .block_erase = spi_block_erase_c7,
5594 }
5595 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005596 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5597 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005598 .write = spi_chip_write_256,
5599 .read = spi_chip_read, /* also fast read 0x0B */
5600 .voltage = {2700, 3600},
5601 },
5602
5603 {
5604 .vendor = "Intel",
5605 .name = "25F640S33B8",
5606 .bustype = BUS_SPI,
5607 .manufacture_id = INTEL_ID,
5608 .model_id = INTEL_25F640S33B8,
5609 .total_size = 8192,
5610 .page_size = 256,
5611 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5612 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5613 .tested = TEST_UNTESTED,
5614 .probe = probe_spi_rdid,
5615 .probe_timing = TIMING_ZERO,
5616 .block_erasers =
5617 {
5618 {
5619 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5620 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5621 * have no effect on the memory contents, but sets a flag in the SR.
5622 .eraseblocks = {
5623 {8 * 1024, 8},
5624 {64 * 1024, 127} // inaccessible
5625 },
5626 .block_erase = spi_block_erase_40,
5627 }, { */
5628 .eraseblocks = { {64 * 1024, 128} },
5629 .block_erase = spi_block_erase_d8,
5630 }, {
5631 .eraseblocks = { {8 * 1024 * 1024, 1} },
5632 .block_erase = spi_block_erase_c7,
5633 }
5634 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005635 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5636 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005637 .write = spi_chip_write_256,
5638 .read = spi_chip_read, /* also fast read 0x0B */
5639 .voltage = {2700, 3600},
5640 },
5641
5642 {
5643 .vendor = "Intel",
5644 .name = "25F640S33T8",
5645 .bustype = BUS_SPI,
5646 .manufacture_id = INTEL_ID,
5647 .model_id = INTEL_25F640S33T8,
5648 .total_size = 8192,
5649 .page_size = 256,
5650 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5652 .tested = TEST_UNTESTED,
5653 .probe = probe_spi_rdid,
5654 .probe_timing = TIMING_ZERO,
5655 .block_erasers =
5656 {
5657 {
5658 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5659 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5660 * have no effect on the memory contents, but sets a flag in the SR.
5661 .eraseblocks = {
5662 {64 * 1024, 127}, // inaccessible
5663 {8 * 1024, 8}
5664 },
5665 .block_erase = spi_block_erase_40,
5666 }, { */
5667 .eraseblocks = { {64 * 1024, 128} },
5668 .block_erase = spi_block_erase_d8,
5669 }, {
5670 .eraseblocks = { {8 * 1024 * 1024, 1} },
5671 .block_erase = spi_block_erase_c7,
5672 }
5673 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005674 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5675 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005676 .write = spi_chip_write_256,
5677 .read = spi_chip_read, /* also fast read 0x0B */
5678 .voltage = {2700, 3600},
5679 },
5680
5681 {
5682 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005683 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005684 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005685 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005686 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005687 .total_size = 128,
5688 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005689 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005690 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005691 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005692 .block_erasers =
5693 {
5694 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005695 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005696 {8 * 1024, 1},
5697 {4 * 1024, 2},
5698 {112 * 1024, 1},
5699 },
Sean Nelson28accc22010-03-19 18:47:06 +00005700 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005701 },
5702 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005703 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005704 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005705 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005706 },
5707
5708 {
5709 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005710 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005711 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005712 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005713 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005714 .total_size = 128,
5715 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005716 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005717 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005718 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005719 .block_erasers =
5720 {
5721 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005722 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005723 {112 * 1024, 1},
5724 {4 * 1024, 2},
5725 {8 * 1024, 1},
5726 },
Sean Nelson28accc22010-03-19 18:47:06 +00005727 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005728 },
5729 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005730 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005731 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005732 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005733 },
5734
5735 {
5736 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005737 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005738 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005739 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005740 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005741 .total_size = 256,
5742 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005743 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005744 .probe = probe_82802ab,
5745 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5746 .block_erasers =
5747 {
5748 {
5749 .eraseblocks = {
5750 {128 * 1024, 1},
5751 {96 * 1024, 1},
5752 {8 * 1024, 2},
5753 {16 * 1024, 1},
5754 },
5755 .block_erase = erase_block_82802ab,
5756 },
5757 },
5758 .write = write_82802ab,
5759 .read = read_memmapped,
5760 },
5761
5762 {
5763 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005764 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005765 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005766 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005767 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005768 .total_size = 512,
5769 .page_size = 256,
5770 .tested = TEST_UNTESTED,
5771 .probe = probe_82802ab,
5772 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005773 .block_erasers =
5774 {
5775 {
5776 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005777 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005778 },
5779 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005780 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005781 .write = write_82802ab,
5782 .read = read_memmapped,
5783 },
5784
5785 {
5786 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005787 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005788 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005789 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005790 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005791 .total_size = 512,
5792 .page_size = 128 * 1024, /* maximal block size */
5793 .tested = TEST_UNTESTED,
5794 .probe = probe_82802ab,
5795 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5796 .block_erasers =
5797 {
5798 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005799 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005800 {16 * 1024, 1},
5801 {8 * 1024, 2},
5802 {96 * 1024, 1},
5803 {128 * 1024, 3},
5804 },
5805 .block_erase = erase_block_82802ab,
5806 },
5807 },
5808 .write = write_82802ab,
5809 .read = read_memmapped,
5810 },
5811
5812 {
5813 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005814 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005815 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005816 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005817 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005818 .total_size = 512,
5819 .page_size = 128 * 1024, /* maximal block size */
5820 .tested = TEST_UNTESTED,
5821 .probe = probe_82802ab,
5822 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5823 .block_erasers =
5824 {
5825 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005826 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005827 {128 * 1024, 3},
5828 {96 * 1024, 1},
5829 {8 * 1024, 2},
5830 {16 * 1024, 1},
5831 },
5832 .block_erase = erase_block_82802ab,
5833 },
5834 },
5835 .write = write_82802ab,
5836 .read = read_memmapped,
5837 },
5838
5839 {
5840 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005841 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005842 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005843 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005844 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005845 .total_size = 512,
5846 .page_size = 128 * 1024, /* maximal block size */
5847 .feature_bits = FEATURE_ADDR_SHIFTED,
5848 .tested = TEST_UNTESTED,
5849 .probe = probe_82802ab,
5850 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5851 .block_erasers =
5852 {
5853 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005854 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005855 {16 * 1024, 1},
5856 {8 * 1024, 2},
5857 {96 * 1024, 1},
5858 {128 * 1024, 3},
5859 },
5860 .block_erase = erase_block_82802ab,
5861 },
5862 },
5863 .write = write_82802ab,
5864 .read = read_memmapped,
5865 },
5866
5867 {
5868 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005869 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005870 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005871 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005872 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005873 .total_size = 512,
5874 .page_size = 128 * 1024, /* maximal block size */
5875 .feature_bits = FEATURE_ADDR_SHIFTED,
5876 .tested = TEST_UNTESTED,
5877 .probe = probe_82802ab,
5878 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5879 .block_erasers =
5880 {
5881 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005882 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005883 {128 * 1024, 3},
5884 {96 * 1024, 1},
5885 {8 * 1024, 2},
5886 {16 * 1024, 1},
5887 },
5888 .block_erase = erase_block_82802ab,
5889 },
5890 },
5891 .write = write_82802ab,
5892 .read = read_memmapped,
5893 },
5894
5895 {
5896 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005897 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005898 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005899 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005900 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005901 .total_size = 512,
5902 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005903 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005904 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005905 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005906 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005907 .block_erasers =
5908 {
5909 {
5910 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005911 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005912 },
5913 },
Sean Nelson28accc22010-03-19 18:47:06 +00005914 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005915 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005916 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005917 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005918 },
5919
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005920 {
5921 .vendor = "Intel",
5922 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005923 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005924 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005925 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005926 .total_size = 1024,
5927 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005928 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005929 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005930 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005931 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005932 .block_erasers =
5933 {
5934 {
5935 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005936 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005937 },
5938 },
Sean Nelson28accc22010-03-19 18:47:06 +00005939 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005940 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005941 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005942 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005943 },
5944
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005945 {
5946 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00005947 .name = "MX23L3254",
5948 .bustype = BUS_SPI,
5949 .manufacture_id = MACRONIX_ID,
5950 .model_id = MACRONIX_MX23L3254,
5951 .total_size = 4096,
5952 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00005953 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00005954 .probe = probe_spi_rdid,
5955 .probe_timing = TIMING_ZERO,
5956 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
5957 .read = spi_chip_read, /* Fast read (0x0B) supported */
5958 .voltage = {3000, 3600},
5959 },
5960
5961 {
5962 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005963 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005964 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005965 .manufacture_id = MACRONIX_ID,
5966 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005967 .total_size = 64,
5968 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005969 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005970 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005971 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005972 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005973 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005974 .block_erasers =
5975 {
5976 {
5977 .eraseblocks = { {4 * 1024, 16} },
5978 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005979 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005980 .eraseblocks = { {64 * 1024, 1} },
5981 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005982 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005983 .eraseblocks = { {64 * 1024, 1} },
5984 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005985 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005986 .eraseblocks = { {64 * 1024, 1} },
5987 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005988 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005989 .eraseblocks = { {64 * 1024, 1} },
5990 .block_erase = spi_block_erase_c7,
5991 },
5992 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005993 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005994 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005995 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005996 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5997 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005998 },
5999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006000 {
6001 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006002 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006003 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006004 .manufacture_id = MACRONIX_ID,
6005 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006006 .total_size = 128,
6007 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006008 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006009 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006012 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006013 .block_erasers =
6014 {
6015 {
6016 .eraseblocks = { {4 * 1024, 32} },
6017 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006018 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006019 .eraseblocks = { {64 * 1024, 2} },
6020 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006021 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006022 .eraseblocks = { {128 * 1024, 1} },
6023 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006024 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006025 .eraseblocks = { {128 * 1024, 1} },
6026 .block_erase = spi_block_erase_c7,
6027 },
6028 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006029 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006030 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006031 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006032 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006033 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006034 },
6035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006036 {
6037 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006038 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006039 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006040 .manufacture_id = MACRONIX_ID,
6041 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 .total_size = 256,
6043 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006044 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006045 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006046 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006047 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006048 .block_erasers =
6049 {
6050 {
6051 .eraseblocks = { {4 * 1024, 64} },
6052 .block_erase = spi_block_erase_20,
6053 }, {
6054 .eraseblocks = { {64 * 1024, 4} },
6055 .block_erase = spi_block_erase_52,
6056 }, {
6057 .eraseblocks = { {64 * 1024, 4} },
6058 .block_erase = spi_block_erase_d8,
6059 }, {
6060 .eraseblocks = { {256 * 1024, 1} },
6061 .block_erase = spi_block_erase_60,
6062 }, {
6063 .eraseblocks = { {256 * 1024, 1} },
6064 .block_erase = spi_block_erase_c7,
6065 },
6066 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006067 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006068 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006069 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006070 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006071 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006072 },
6073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006074 {
6075 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006076 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006077 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006078 .manufacture_id = MACRONIX_ID,
6079 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006080 .total_size = 512,
6081 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006082 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006083 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006084 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006085 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006086 .block_erasers =
6087 {
6088 {
6089 .eraseblocks = { {4 * 1024, 128} },
6090 .block_erase = spi_block_erase_20,
6091 }, {
6092 .eraseblocks = { {64 * 1024, 8} },
6093 .block_erase = spi_block_erase_52,
6094 }, {
6095 .eraseblocks = { {64 * 1024, 8} },
6096 .block_erase = spi_block_erase_d8,
6097 }, {
6098 .eraseblocks = { {512 * 1024, 1} },
6099 .block_erase = spi_block_erase_60,
6100 }, {
6101 .eraseblocks = { {512 * 1024, 1} },
6102 .block_erase = spi_block_erase_c7,
6103 },
6104 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006105 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006106 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006107 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006108 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006109 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006110 },
6111
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 {
6113 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006114 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006115 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006116 .manufacture_id = MACRONIX_ID,
6117 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006118 .total_size = 1024,
6119 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006120 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006121 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006122 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006123 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006124 .block_erasers =
6125 {
6126 {
6127 .eraseblocks = { {4 * 1024, 256} },
6128 .block_erase = spi_block_erase_20,
6129 }, {
6130 .eraseblocks = { {64 * 1024, 16} },
6131 .block_erase = spi_block_erase_52,
6132 }, {
6133 .eraseblocks = { {64 * 1024, 16} },
6134 .block_erase = spi_block_erase_d8,
6135 }, {
6136 .eraseblocks = { {1024 * 1024, 1} },
6137 .block_erase = spi_block_erase_60,
6138 }, {
6139 .eraseblocks = { {1024 * 1024, 1} },
6140 .block_erase = spi_block_erase_c7,
6141 },
6142 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006143 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006144 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006145 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006146 .read = spi_chip_read, /* Fast read (0x0B) supported */
6147 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006148 },
6149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 {
6151 .vendor = "Macronix",
6152 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006153 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006154 .manufacture_id = MACRONIX_ID,
6155 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006156 .total_size = 2048,
6157 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006158 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006159 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006160 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006161 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006162 .block_erasers =
6163 {
6164 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006165 .eraseblocks = { {64 * 1024, 32} },
6166 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006167 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006168 .eraseblocks = { {64 * 1024, 32} },
6169 .block_erase = spi_block_erase_d8,
6170 }, {
6171 .eraseblocks = { {2 * 1024 * 1024, 1} },
6172 .block_erase = spi_block_erase_60,
6173 }, {
6174 .eraseblocks = { {2 * 1024 * 1024, 1} },
6175 .block_erase = spi_block_erase_c7,
6176 },
6177 },
6178 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
6179 .unlock = spi_disable_blockprotect,
6180 .write = spi_chip_write_256,
6181 .read = spi_chip_read, /* Fast read (0x0B) supported */
6182 .voltage = {2700, 3600},
6183 },
6184
6185 {
6186 .vendor = "Macronix",
6187 .name = "MX25L1605A/MX25L1606E",
6188 .bustype = BUS_SPI,
6189 .manufacture_id = MACRONIX_ID,
6190 .model_id = MACRONIX_MX25L1605,
6191 .total_size = 2048,
6192 .page_size = 256,
6193 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6195 .tested = TEST_OK_PREW,
6196 .probe = probe_spi_rdid,
6197 .probe_timing = TIMING_ZERO,
6198 .block_erasers =
6199 {
6200 {
6201 .eraseblocks = { {4 * 1024, 512} },
6202 .block_erase = spi_block_erase_20,
6203 }, {
6204 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006205 .block_erase = spi_block_erase_52,
6206 }, {
6207 .eraseblocks = { {64 * 1024, 32} },
6208 .block_erase = spi_block_erase_d8,
6209 }, {
6210 .eraseblocks = { {2 * 1024 * 1024, 1} },
6211 .block_erase = spi_block_erase_60,
6212 }, {
6213 .eraseblocks = { {2 * 1024 * 1024, 1} },
6214 .block_erase = spi_block_erase_c7,
6215 },
6216 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006217 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006218 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006219 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006220 .read = spi_chip_read, /* Fast read (0x0B) supported */
6221 .voltage = {2700, 3600},
6222 },
6223
6224 {
6225 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006226 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006227 .bustype = BUS_SPI,
6228 .manufacture_id = MACRONIX_ID,
6229 .model_id = MACRONIX_MX25L1605,
6230 .total_size = 2048,
6231 .page_size = 256,
6232 .feature_bits = FEATURE_WRSR_WREN,
6233 .tested = TEST_OK_PREW,
6234 .probe = probe_spi_rdid,
6235 .probe_timing = TIMING_ZERO,
6236 .block_erasers =
6237 {
6238 {
6239 .eraseblocks = { {4 * 1024, 512} },
6240 .block_erase = spi_block_erase_20,
6241 }, {
6242 .eraseblocks = { {64 * 1024, 32} },
6243 .block_erase = spi_block_erase_d8,
6244 }, {
6245 .eraseblocks = { {2 * 1024 * 1024, 1} },
6246 .block_erase = spi_block_erase_60,
6247 }, {
6248 .eraseblocks = { {2 * 1024 * 1024, 1} },
6249 .block_erase = spi_block_erase_c7,
6250 },
6251 },
6252 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
6253 .unlock = spi_disable_blockprotect,
6254 .write = spi_chip_write_256,
6255 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006256 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006257 },
6258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006259 {
6260 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006261 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006262 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006263 .manufacture_id = MACRONIX_ID,
6264 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006265 .total_size = 2048,
6266 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006267 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6268 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006269 .tested = TEST_UNTESTED,
6270 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006271 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006272 .block_erasers =
6273 {
6274 {
6275 .eraseblocks = { {4 * 1024, 512} },
6276 .block_erase = spi_block_erase_20,
6277 }, {
6278 .eraseblocks = { {64 * 1024, 32} },
6279 .block_erase = spi_block_erase_d8,
6280 }, {
6281 .eraseblocks = { {2 * 1024 * 1024, 1} },
6282 .block_erase = spi_block_erase_60,
6283 }, {
6284 .eraseblocks = { {2 * 1024 * 1024, 1} },
6285 .block_erase = spi_block_erase_c7,
6286 }
6287 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006288 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006289 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006290 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006291 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006292 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006293 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006294
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006295 {
6296 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006297 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006298 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006299 .manufacture_id = MACRONIX_ID,
6300 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006301 .total_size = 2048,
6302 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006303 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006305 .tested = TEST_UNTESTED,
6306 .probe = probe_spi_rdid,
6307 .probe_timing = TIMING_ZERO,
6308 .block_erasers =
6309 {
6310 {
6311 .eraseblocks = { {4 * 1024, 512} },
6312 .block_erase = spi_block_erase_20,
6313 }, {
6314 .eraseblocks = { {64 * 1024, 32} },
6315 .block_erase = spi_block_erase_d8,
6316 }, {
6317 .eraseblocks = { {2 * 1024 * 1024, 1} },
6318 .block_erase = spi_block_erase_60,
6319 }, {
6320 .eraseblocks = { {2 * 1024 * 1024, 1} },
6321 .block_erase = spi_block_erase_c7,
6322 }
6323 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006324 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006325 .unlock = spi_disable_blockprotect,
6326 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006327 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006328 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006329 },
6330
6331 {
6332 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006333 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006334 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006335 .manufacture_id = MACRONIX_ID,
6336 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006337 .total_size = 4096,
6338 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006339 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006340 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006341 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006342 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006343 .block_erasers =
6344 {
6345 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006346 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006347 .block_erase = spi_block_erase_20,
6348 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006349 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006350 .block_erase = spi_block_erase_d8,
6351 }, {
6352 .eraseblocks = { {4 * 1024 * 1024, 1} },
6353 .block_erase = spi_block_erase_60,
6354 }, {
6355 .eraseblocks = { {4 * 1024 * 1024, 1} },
6356 .block_erase = spi_block_erase_c7,
6357 },
6358 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006359 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006360 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006361 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006362 .read = spi_chip_read, /* Fast read (0x0B) supported */
6363 .voltage = {2700, 3600},
6364 },
6365
6366 {
6367 .vendor = "Macronix",
6368 .name = "MX25L3205D/MX25L3208D",
6369 .bustype = BUS_SPI,
6370 .manufacture_id = MACRONIX_ID,
6371 .model_id = MACRONIX_MX25L3205,
6372 .total_size = 4096,
6373 .page_size = 256,
6374 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6375 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6376 .tested = TEST_OK_PREW,
6377 .probe = probe_spi_rdid,
6378 .probe_timing = TIMING_ZERO,
6379 .block_erasers =
6380 {
6381 {
6382 .eraseblocks = { {4 * 1024, 1024} },
6383 .block_erase = spi_block_erase_20,
6384 }, {
6385 .eraseblocks = { {64 * 1024, 64} },
6386 .block_erase = spi_block_erase_d8,
6387 }, {
6388 .eraseblocks = { {4 * 1024 * 1024, 1} },
6389 .block_erase = spi_block_erase_60,
6390 }, {
6391 .eraseblocks = { {4 * 1024 * 1024, 1} },
6392 .block_erase = spi_block_erase_c7,
6393 },
6394 },
6395 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6396 .unlock = spi_disable_blockprotect,
6397 .write = spi_chip_write_256,
6398 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6399 .voltage = {2700, 3600},
6400 },
6401
6402 {
6403 .vendor = "Macronix",
6404 .name = "MX25L3206E",
6405 .bustype = BUS_SPI,
6406 .manufacture_id = MACRONIX_ID,
6407 .model_id = MACRONIX_MX25L3205,
6408 .total_size = 4096,
6409 .page_size = 256,
6410 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6411 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6412 .tested = TEST_OK_PREW,
6413 .probe = probe_spi_rdid,
6414 .probe_timing = TIMING_ZERO,
6415 .block_erasers =
6416 {
6417 {
6418 .eraseblocks = { {4 * 1024, 1024} },
6419 .block_erase = spi_block_erase_20,
6420 }, {
6421 .eraseblocks = { {64 * 1024, 64} },
6422 .block_erase = spi_block_erase_d8,
6423 }, {
6424 .eraseblocks = { {64 * 1024, 64} },
6425 .block_erase = spi_block_erase_52,
6426 }, {
6427 .eraseblocks = { {4 * 1024 * 1024, 1} },
6428 .block_erase = spi_block_erase_60,
6429 }, {
6430 .eraseblocks = { {4 * 1024 * 1024, 1} },
6431 .block_erase = spi_block_erase_c7,
6432 },
6433 },
6434 .printlock = spi_prettyprint_status_register_default_bp3,
6435 .unlock = spi_disable_blockprotect,
6436 .write = spi_chip_write_256,
6437 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006438 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006439 },
6440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006441 {
6442 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006443 .name = "MX25L3273E",
6444 .bustype = BUS_SPI,
6445 .manufacture_id = MACRONIX_ID,
6446 .model_id = MACRONIX_MX25L3205,
6447 .total_size = 4096,
6448 .page_size = 256,
6449 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6451 .tested = TEST_UNTESTED,
6452 .probe = probe_spi_rdid,
6453 .probe_timing = TIMING_ZERO,
6454 .block_erasers =
6455 {
6456 {
6457 .eraseblocks = { {4 * 1024, 1024} },
6458 .block_erase = spi_block_erase_20,
6459 }, {
6460 .eraseblocks = { {32 * 1024, 128} },
6461 .block_erase = spi_block_erase_52,
6462 }, {
6463 .eraseblocks = { {64 * 1024, 64} },
6464 .block_erase = spi_block_erase_d8,
6465 }, {
6466 .eraseblocks = { {4 * 1024 * 1024, 1} },
6467 .block_erase = spi_block_erase_60,
6468 }, {
6469 .eraseblocks = { {4 * 1024 * 1024, 1} },
6470 .block_erase = spi_block_erase_c7,
6471 },
6472 },
6473 .printlock = spi_prettyprint_status_register_default_bp3,
6474 .unlock = spi_disable_blockprotect,
6475 .write = spi_chip_write_256,
6476 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6477 .voltage = {2700, 3600},
6478 },
6479
6480 {
6481 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006482 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006483 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006484 .manufacture_id = MACRONIX_ID,
6485 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006486 .total_size = 4096,
6487 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006488 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006490 .tested = TEST_UNTESTED,
6491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006492 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006493 .block_erasers =
6494 {
6495 {
6496 .eraseblocks = { {4 * 1024, 1024} },
6497 .block_erase = spi_block_erase_20,
6498 }, {
6499 .eraseblocks = { {64 * 1024, 64} },
6500 .block_erase = spi_block_erase_d8,
6501 }, {
6502 .eraseblocks = { {4 * 1024 * 1024, 1} },
6503 .block_erase = spi_block_erase_60,
6504 }, {
6505 .eraseblocks = { {4 * 1024 * 1024, 1} },
6506 .block_erase = spi_block_erase_c7,
6507 }
6508 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006509 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006510 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006511 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006512 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006513 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006514 },
6515
6516 {
6517 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006518 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006519 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006520 .manufacture_id = MACRONIX_ID,
6521 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006522 .total_size = 8192,
6523 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006524 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006528 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006529 .block_erasers =
6530 {
6531 {
6532 .eraseblocks = { {64 * 1024, 128} },
6533 .block_erase = spi_block_erase_20,
6534 }, {
6535 .eraseblocks = { {64 * 1024, 128} },
6536 .block_erase = spi_block_erase_d8,
6537 }, {
6538 .eraseblocks = { {8 * 1024 * 1024, 1} },
6539 .block_erase = spi_block_erase_60,
6540 }, {
6541 .eraseblocks = { {8 * 1024 * 1024, 1} },
6542 .block_erase = spi_block_erase_c7,
6543 }
6544 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006545 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006546 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006547 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006548 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006550 },
6551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006552 {
6553 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006554 .name = "MX25L6406E/MX25L6436E",
6555 .bustype = BUS_SPI,
6556 .manufacture_id = MACRONIX_ID,
6557 .model_id = MACRONIX_MX25L6405,
6558 .total_size = 8192,
6559 .page_size = 256,
6560 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6562 .tested = TEST_OK_PREW,
6563 .probe = probe_spi_rdid,
6564 .probe_timing = TIMING_ZERO,
6565 .block_erasers =
6566 {
6567 {
6568 .eraseblocks = { {4 * 1024, 2048} },
6569 .block_erase = spi_block_erase_20,
6570 }, {
6571 .eraseblocks = { {64 * 1024, 128} },
6572 .block_erase = spi_block_erase_d8,
6573 }, {
6574 .eraseblocks = { {8 * 1024 * 1024, 1} },
6575 .block_erase = spi_block_erase_60,
6576 }, {
6577 .eraseblocks = { {8 * 1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_c7,
6579 }
6580 },
6581 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6582 .unlock = spi_disable_blockprotect,
6583 .write = spi_chip_write_256,
6584 .read = spi_chip_read,
6585 .voltage = {2700, 3600},
6586 },
6587
6588 {
6589 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006590 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006591 .bustype = BUS_SPI,
6592 .manufacture_id = MACRONIX_ID,
6593 .model_id = MACRONIX_MX25L6405,
6594 .total_size = 8192,
6595 .page_size = 256,
6596 /* supports SFDP */
6597 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6599 .tested = TEST_OK_PREW,
6600 .probe = probe_spi_rdid,
6601 .probe_timing = TIMING_ZERO,
6602 .block_erasers =
6603 {
6604 {
6605 .eraseblocks = { {4 * 1024, 2048} },
6606 .block_erase = spi_block_erase_20,
6607 }, {
6608 .eraseblocks = { {32 * 1024, 256} },
6609 .block_erase = spi_block_erase_52,
6610 }, {
6611 .eraseblocks = { {64 * 1024, 128} },
6612 .block_erase = spi_block_erase_d8,
6613 }, {
6614 .eraseblocks = { {8 * 1024 * 1024, 1} },
6615 .block_erase = spi_block_erase_60,
6616 }, {
6617 .eraseblocks = { {8 * 1024 * 1024, 1} },
6618 .block_erase = spi_block_erase_c7,
6619 }
6620 },
6621 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6622 .unlock = spi_disable_blockprotect,
6623 .write = spi_chip_write_256,
6624 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6625 .voltage = {2700, 3600},
6626 },
6627
6628 {
6629 .vendor = "Macronix",
6630 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006631 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006632 .manufacture_id = MACRONIX_ID,
6633 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006634 .total_size = 16384,
6635 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006636 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6637 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006638 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006640 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006641 .block_erasers =
6642 {
6643 {
6644 .eraseblocks = { {4 * 1024, 4096} },
6645 .block_erase = spi_block_erase_20,
6646 }, {
6647 .eraseblocks = { {64 * 1024, 256} },
6648 .block_erase = spi_block_erase_d8,
6649 }, {
6650 .eraseblocks = { {16 * 1024 * 1024, 1} },
6651 .block_erase = spi_block_erase_60,
6652 }, {
6653 .eraseblocks = { {16 * 1024 * 1024, 1} },
6654 .block_erase = spi_block_erase_c7,
6655 }
6656 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006657 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006658 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006659 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006660 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006661 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006662 },
6663
6664 {
6665 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006666 .name = "MX25U1635E",
6667 .bustype = BUS_SPI,
6668 .manufacture_id = MACRONIX_ID,
6669 .model_id = MACRONIX_MX25U1635E,
6670 .total_size = 2048,
6671 .page_size = 256,
6672 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6673 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6675 .tested = TEST_UNTESTED,
6676 .probe = probe_spi_rdid,
6677 .probe_timing = TIMING_ZERO,
6678 .block_erasers =
6679 {
6680 {
6681 .eraseblocks = { {4 * 1024, 512} },
6682 .block_erase = spi_block_erase_20,
6683 }, {
6684 .eraseblocks = { {32 * 1024, 64} },
6685 .block_erase = spi_block_erase_52,
6686 }, {
6687 .eraseblocks = { {64 * 1024, 32} },
6688 .block_erase = spi_block_erase_d8,
6689 }, {
6690 .eraseblocks = { {2 * 1024 * 1024, 1} },
6691 .block_erase = spi_block_erase_60,
6692 }, {
6693 .eraseblocks = { {2 * 1024 * 1024, 1} },
6694 .block_erase = spi_block_erase_c7,
6695 }
6696 },
6697 /* TODO: security register */
6698 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6699 .unlock = spi_disable_blockprotect,
6700 .write = spi_chip_write_256,
6701 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6702 .voltage = {1650, 2000},
6703 },
6704
6705 {
6706 .vendor = "Macronix",
6707 .name = "MX25U3235E/F",
6708 .bustype = BUS_SPI,
6709 .manufacture_id = MACRONIX_ID,
6710 .model_id = MACRONIX_MX25U3235E,
6711 .total_size = 4096,
6712 .page_size = 256,
6713 /* F model supports SFDP */
6714 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6715 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6716 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6717 .tested = TEST_OK_PREW,
6718 .probe = probe_spi_rdid,
6719 .probe_timing = TIMING_ZERO,
6720 .block_erasers =
6721 {
6722 {
6723 .eraseblocks = { {4 * 1024, 1024} },
6724 .block_erase = spi_block_erase_20,
6725 }, {
6726 .eraseblocks = { {32 * 1024, 128} },
6727 .block_erase = spi_block_erase_52,
6728 }, {
6729 .eraseblocks = { {64 * 1024, 64} },
6730 .block_erase = spi_block_erase_d8,
6731 }, {
6732 .eraseblocks = { {4 * 1024 * 1024, 1} },
6733 .block_erase = spi_block_erase_60,
6734 }, {
6735 .eraseblocks = { {4 * 1024 * 1024, 1} },
6736 .block_erase = spi_block_erase_c7,
6737 }
6738 },
6739 /* TODO: security register */
6740 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6741 .unlock = spi_disable_blockprotect,
6742 .write = spi_chip_write_256,
6743 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6744 .voltage = {1650, 2000},
6745 },
6746
6747 {
6748 .vendor = "Macronix",
6749 .name = "MX25U6435E/F",
6750 .bustype = BUS_SPI,
6751 .manufacture_id = MACRONIX_ID,
6752 .model_id = MACRONIX_MX25U6435E,
6753 .total_size = 8192,
6754 .page_size = 256,
6755 /* F model supports SFDP */
6756 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6757 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6759 .tested = TEST_UNTESTED,
6760 .probe = probe_spi_rdid,
6761 .probe_timing = TIMING_ZERO,
6762 .block_erasers =
6763 {
6764 {
6765 .eraseblocks = { {4 * 1024, 2048} },
6766 .block_erase = spi_block_erase_20,
6767 }, {
6768 .eraseblocks = { {32 * 1024, 256} },
6769 .block_erase = spi_block_erase_52,
6770 }, {
6771 .eraseblocks = { {64 * 1024, 128} },
6772 .block_erase = spi_block_erase_d8,
6773 }, {
6774 .eraseblocks = { {8 * 1024 * 1024, 1} },
6775 .block_erase = spi_block_erase_60,
6776 }, {
6777 .eraseblocks = { {8 * 1024 * 1024, 1} },
6778 .block_erase = spi_block_erase_c7,
6779 }
6780 },
6781 /* TODO: security register */
6782 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6783 .unlock = spi_disable_blockprotect,
6784 .write = spi_chip_write_256,
6785 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6786 .voltage = {1650, 2000},
6787 },
6788
6789 {
6790 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006791 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006792 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006793 .manufacture_id = MACRONIX_ID,
6794 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006795 .total_size = 128,
6796 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006797 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6798 .tested = TEST_UNTESTED,
6799 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006800 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006801 .block_erasers =
6802 {
6803 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006804 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006805 {8 * 1024, 1},
6806 {4 * 1024, 2},
6807 {8 * 1024, 2},
6808 {32 * 1024, 1},
6809 {64 * 1024, 1},
6810 },
Sean Nelson35727f72010-01-28 23:55:12 +00006811 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006812 }, {
6813 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006814 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006815 }
6816 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006817 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006818 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006819 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006820 },
6821
6822 {
6823 .vendor = "Macronix",
6824 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006825 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006826 .manufacture_id = MACRONIX_ID,
6827 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006828 .total_size = 128,
6829 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006830 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006831 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006832 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006833 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006834 .block_erasers =
6835 {
6836 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006837 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006838 {64 * 1024, 1},
6839 {32 * 1024, 1},
6840 {8 * 1024, 2},
6841 {4 * 1024, 2},
6842 {8 * 1024, 1},
6843 },
Sean Nelson35727f72010-01-28 23:55:12 +00006844 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006845 }, {
6846 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006847 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006848 }
6849 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006850 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006851 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006852 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006853 },
6854
6855 {
6856 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006857 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006858 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006859 .manufacture_id = MACRONIX_ID,
6860 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006861 .total_size = 256,
6862 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006863 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006864 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006865 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006866 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006867 .block_erasers =
6868 {
6869 {
6870 .eraseblocks = {
6871 {16 * 1024, 1},
6872 {8 * 1024, 2},
6873 {32 * 1024, 1},
6874 {64 * 1024, 3},
6875 },
Sean Nelson35727f72010-01-28 23:55:12 +00006876 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006877 }, {
6878 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006879 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006880 },
6881 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006882 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006883 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006884 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006885 },
6886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006887 {
6888 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006889 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006890 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006891 .manufacture_id = MACRONIX_ID,
6892 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006893 .total_size = 256,
6894 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006895 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006896 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006897 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006898 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006899 .block_erasers =
6900 {
6901 {
6902 .eraseblocks = {
6903 {64 * 1024, 3},
6904 {32 * 1024, 1},
6905 {8 * 1024, 2},
6906 {16 * 1024, 1},
6907 },
Sean Nelson35727f72010-01-28 23:55:12 +00006908 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006909 }, {
6910 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006911 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006912 },
6913 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006914 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006916 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006917 },
6918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006919 {
6920 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006921 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006922 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006923 .manufacture_id = MACRONIX_ID,
6924 .model_id = MACRONIX_MX29F040,
6925 .total_size = 512,
6926 .page_size = 64 * 1024,
6927 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6928 .tested = TEST_UNTESTED,
6929 .probe = probe_jedec,
6930 .probe_timing = TIMING_ZERO,
6931 .block_erasers =
6932 {
6933 {
6934 .eraseblocks = { {64 * 1024, 8} },
6935 .block_erase = erase_sector_jedec,
6936 }, {
6937 .eraseblocks = { {512 * 1024, 1} },
6938 .block_erase = erase_chip_block_jedec,
6939 },
6940 },
6941 .write = write_jedec_1,
6942 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006943 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006944 },
6945
6946 {
6947 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006948 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006949 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006950 .manufacture_id = MACRONIX_ID,
6951 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006952 .total_size = 512,
6953 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006954 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6955 .tested = TEST_UNTESTED,
6956 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006957 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006958 .block_erasers =
6959 {
6960 {
6961 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006962 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006963 }, {
6964 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006965 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006966 },
6967 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006968 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006970 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006971 },
6972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006973 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00006974 .vendor = "Micron/Numonyx/ST",
6975 .name = "M25P05-A",
6976 .bustype = BUS_SPI,
6977 .manufacture_id = ST_ID,
6978 .model_id = ST_M25P05A,
6979 .total_size = 64,
6980 .page_size = 256,
6981 .feature_bits = FEATURE_WRSR_WREN,
6982 .tested = TEST_OK_PREW,
6983 .probe = probe_spi_rdid,
6984 .probe_timing = TIMING_ZERO,
6985 .block_erasers =
6986 {
6987 {
6988 .eraseblocks = { {32 * 1024, 2} },
6989 .block_erase = spi_block_erase_d8,
6990 }, {
6991 .eraseblocks = { {64 * 1024, 1} },
6992 .block_erase = spi_block_erase_c7,
6993 }
6994 },
6995 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6996 .unlock = spi_disable_blockprotect,
6997 .write = spi_chip_write_256,
6998 .read = spi_chip_read,
6999 .voltage = {2700, 3600},
7000 },
7001
7002 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7003 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7004 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7005 * only is successful if RDID does not work.
7006 */
7007 {
7008 .vendor = "Micron/Numonyx/ST",
7009 .name = "M25P05",
7010 .bustype = BUS_SPI,
7011 .manufacture_id = 0, /* Not used. */
7012 .model_id = ST_M25P05_RES,
7013 .total_size = 64,
7014 .page_size = 256,
7015 .feature_bits = FEATURE_WRSR_WREN,
7016 .tested = TEST_UNTESTED,
7017 .probe = probe_spi_res1,
7018 .probe_timing = TIMING_ZERO,
7019 .block_erasers =
7020 {
7021 {
7022 .eraseblocks = { {32 * 1024, 2} },
7023 .block_erase = spi_block_erase_d8,
7024 }, {
7025 .eraseblocks = { {64 * 1024, 1} },
7026 .block_erase = spi_block_erase_c7,
7027 }
7028 },
7029 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7030 .unlock = spi_disable_blockprotect,
7031 .write = spi_chip_write_1, /* 128 */
7032 .read = spi_chip_read,
7033 .voltage = {2700, 3600},
7034 },
7035
7036 {
7037 .vendor = "Micron/Numonyx/ST",
7038 .name = "M25P10-A",
7039 .bustype = BUS_SPI,
7040 .manufacture_id = ST_ID,
7041 .model_id = ST_M25P10A,
7042 .total_size = 128,
7043 .page_size = 256,
7044 .feature_bits = FEATURE_WRSR_WREN,
7045 .tested = TEST_OK_PRE,
7046 .probe = probe_spi_rdid,
7047 .probe_timing = TIMING_ZERO,
7048 .block_erasers =
7049 {
7050 {
7051 .eraseblocks = { {32 * 1024, 4} },
7052 .block_erase = spi_block_erase_d8,
7053 }, {
7054 .eraseblocks = { {128 * 1024, 1} },
7055 .block_erase = spi_block_erase_c7,
7056 }
7057 },
7058 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7059 .unlock = spi_disable_blockprotect,
7060 .write = spi_chip_write_256,
7061 .read = spi_chip_read,
7062 .voltage = {2700, 3600},
7063 },
7064
7065 /* The ST M25P10 has the same problem as the M25P05. */
7066 {
7067 .vendor = "Micron/Numonyx/ST",
7068 .name = "M25P10",
7069 .bustype = BUS_SPI,
7070 .manufacture_id = 0, /* Not used. */
7071 .model_id = ST_M25P10_RES,
7072 .total_size = 128,
7073 .page_size = 256,
7074 .feature_bits = FEATURE_WRSR_WREN,
7075 .tested = TEST_UNTESTED,
7076 .probe = probe_spi_res1,
7077 .probe_timing = TIMING_ZERO,
7078 .block_erasers =
7079 {
7080 {
7081 .eraseblocks = { {32 * 1024, 4} },
7082 .block_erase = spi_block_erase_d8,
7083 }, {
7084 .eraseblocks = { {128 * 1024, 1} },
7085 .block_erase = spi_block_erase_c7,
7086 }
7087 },
7088 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7089 .unlock = spi_disable_blockprotect,
7090 .write = spi_chip_write_1, /* 128 */
7091 .read = spi_chip_read,
7092 .voltage = {2700, 3600},
7093 },
7094
7095 {
7096 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7097 .name = "M25P20",
7098 .bustype = BUS_SPI,
7099 .manufacture_id = ST_ID,
7100 .model_id = ST_M25P20,
7101 .total_size = 256,
7102 .page_size = 256,
7103 .feature_bits = FEATURE_WRSR_WREN,
7104 .tested = TEST_UNTESTED,
7105 .probe = probe_spi_rdid,
7106 .probe_timing = TIMING_ZERO,
7107 .block_erasers =
7108 {
7109 {
7110 .eraseblocks = { {64 * 1024, 4} },
7111 .block_erase = spi_block_erase_d8,
7112 }, {
7113 .eraseblocks = { {256 * 1024, 1} },
7114 .block_erase = spi_block_erase_c7,
7115 }
7116 },
7117 .printlock = spi_prettyprint_status_register_default_bp1,
7118 .unlock = spi_disable_blockprotect,
7119 .write = spi_chip_write_256,
7120 .read = spi_chip_read, /* Fast read (0x0B) supported */
7121 .voltage = {2700, 3600},
7122 },
7123
7124 {
7125 .vendor = "Micron/Numonyx/ST",
7126 .name = "M25P20-old",
7127 .bustype = BUS_SPI,
7128 .manufacture_id = 0, /* Not used. */
7129 .model_id = ST_M25P20_RES,
7130 .total_size = 256,
7131 .page_size = 256,
7132 .feature_bits = FEATURE_WRSR_WREN,
7133 .tested = TEST_OK_PREW,
7134 .probe = probe_spi_res1,
7135 .probe_timing = TIMING_ZERO,
7136 .block_erasers =
7137 {
7138 {
7139 .eraseblocks = { {64 * 1024, 4} },
7140 .block_erase = spi_block_erase_d8,
7141 }, {
7142 .eraseblocks = { {256 * 1024, 1} },
7143 .block_erase = spi_block_erase_c7,
7144 }
7145 },
7146 .printlock = spi_prettyprint_status_register_default_bp1,
7147 .unlock = spi_disable_blockprotect,
7148 .write = spi_chip_write_256,
7149 .read = spi_chip_read, /* Fast read (0x0B) supported */
7150 .voltage = {2700, 3600},
7151 },
7152
7153 {
7154 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7155 .name = "M25P40",
7156 .bustype = BUS_SPI,
7157 .manufacture_id = ST_ID,
7158 .model_id = ST_M25P40,
7159 .total_size = 512,
7160 .page_size = 256,
7161 .feature_bits = FEATURE_WRSR_WREN,
7162 .tested = TEST_OK_PREW,
7163 .probe = probe_spi_rdid,
7164 .probe_timing = TIMING_ZERO,
7165 .block_erasers =
7166 {
7167 {
7168 .eraseblocks = { {64 * 1024, 8} },
7169 .block_erase = spi_block_erase_d8,
7170 }, {
7171 .eraseblocks = { {512 * 1024, 1} },
7172 .block_erase = spi_block_erase_c7,
7173 }
7174 },
7175 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7176 .unlock = spi_disable_blockprotect,
7177 .write = spi_chip_write_256,
7178 .read = spi_chip_read,
7179 .voltage = {2700, 3600},
7180 },
7181
7182 {
7183 .vendor = "Micron/Numonyx/ST",
7184 .name = "M25P40-old",
7185 .bustype = BUS_SPI,
7186 .manufacture_id = 0, /* Not used. */
7187 .model_id = ST_M25P40_RES,
7188 .total_size = 512,
7189 .page_size = 256,
7190 .feature_bits = FEATURE_WRSR_WREN,
7191 .tested = TEST_UNTESTED,
7192 .probe = probe_spi_res1,
7193 .probe_timing = TIMING_ZERO,
7194 .block_erasers =
7195 {
7196 {
7197 .eraseblocks = { {64 * 1024, 8} },
7198 .block_erase = spi_block_erase_d8,
7199 }, {
7200 .eraseblocks = { {512 * 1024, 1} },
7201 .block_erase = spi_block_erase_c7,
7202 }
7203 },
7204 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7205 .unlock = spi_disable_blockprotect,
7206 .write = spi_chip_write_256,
7207 .read = spi_chip_read,
7208 },
7209
7210 {
7211 .vendor = "Micron/Numonyx/ST",
7212 .name = "M25P80",
7213 .bustype = BUS_SPI,
7214 .manufacture_id = ST_ID,
7215 .model_id = ST_M25P80,
7216 .total_size = 1024,
7217 .page_size = 256,
7218 .feature_bits = FEATURE_WRSR_WREN,
7219 .tested = TEST_OK_PREW,
7220 .probe = probe_spi_rdid,
7221 .probe_timing = TIMING_ZERO,
7222 .block_erasers =
7223 {
7224 {
7225 .eraseblocks = { {64 * 1024, 16} },
7226 .block_erase = spi_block_erase_d8,
7227 }, {
7228 .eraseblocks = { {1024 * 1024, 1} },
7229 .block_erase = spi_block_erase_c7,
7230 }
7231 },
7232 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7233 .unlock = spi_disable_blockprotect,
7234 .write = spi_chip_write_256,
7235 .read = spi_chip_read,
7236 .voltage = {2700, 3600},
7237 },
7238
7239 {
7240 .vendor = "Micron/Numonyx/ST",
7241 .name = "M25P16",
7242 .bustype = BUS_SPI,
7243 .manufacture_id = ST_ID,
7244 .model_id = ST_M25P16,
7245 .total_size = 2048,
7246 .page_size = 256,
7247 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007248 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007249 .probe = probe_spi_rdid,
7250 .probe_timing = TIMING_ZERO,
7251 .block_erasers =
7252 {
7253 {
7254 .eraseblocks = { {64 * 1024, 32} },
7255 .block_erase = spi_block_erase_d8,
7256 }, {
7257 .eraseblocks = { {2 * 1024 * 1024, 1} },
7258 .block_erase = spi_block_erase_c7,
7259 }
7260 },
7261 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7262 .unlock = spi_disable_blockprotect,
7263 .write = spi_chip_write_256,
7264 .read = spi_chip_read,
7265 .voltage = {2700, 3600},
7266 },
7267
7268 {
7269 .vendor = "Micron/Numonyx/ST",
7270 .name = "M25P32",
7271 .bustype = BUS_SPI,
7272 .manufacture_id = ST_ID,
7273 .model_id = ST_M25P32,
7274 .total_size = 4096,
7275 .page_size = 256,
7276 .feature_bits = FEATURE_WRSR_WREN,
7277 .tested = TEST_OK_PREW,
7278 .probe = probe_spi_rdid,
7279 .probe_timing = TIMING_ZERO,
7280 .block_erasers =
7281 {
7282 {
7283 .eraseblocks = { {64 * 1024, 64} },
7284 .block_erase = spi_block_erase_d8,
7285 }, {
7286 .eraseblocks = { {4 * 1024 * 1024, 1} },
7287 .block_erase = spi_block_erase_c7,
7288 }
7289 },
7290 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7291 .unlock = spi_disable_blockprotect,
7292 .write = spi_chip_write_256,
7293 .read = spi_chip_read,
7294 .voltage = {2700, 3600},
7295 },
7296
7297 {
7298 .vendor = "Micron/Numonyx/ST",
7299 .name = "M25P64",
7300 .bustype = BUS_SPI,
7301 .manufacture_id = ST_ID,
7302 .model_id = ST_M25P64,
7303 .total_size = 8192,
7304 .page_size = 256,
7305 .feature_bits = FEATURE_WRSR_WREN,
7306 .tested = TEST_OK_PREW,
7307 .probe = probe_spi_rdid,
7308 .probe_timing = TIMING_ZERO,
7309 .block_erasers =
7310 {
7311 {
7312 .eraseblocks = { {64 * 1024, 128} },
7313 .block_erase = spi_block_erase_d8,
7314 }, {
7315 .eraseblocks = { {8 * 1024 * 1024, 1} },
7316 .block_erase = spi_block_erase_c7,
7317 }
7318 },
7319 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7320 .unlock = spi_disable_blockprotect,
7321 .write = spi_chip_write_256,
7322 .read = spi_chip_read,
7323 .voltage = {2700, 3600},
7324 },
7325
7326 {
7327 .vendor = "Micron/Numonyx/ST",
7328 .name = "M25P128",
7329 .bustype = BUS_SPI,
7330 .manufacture_id = ST_ID,
7331 .model_id = ST_M25P128,
7332 .total_size = 16384,
7333 .page_size = 256,
7334 .feature_bits = FEATURE_WRSR_WREN,
7335 .tested = TEST_OK_PREW,
7336 .probe = probe_spi_rdid,
7337 .probe_timing = TIMING_ZERO,
7338 .block_erasers =
7339 {
7340 {
7341 .eraseblocks = { {256 * 1024, 64} },
7342 .block_erase = spi_block_erase_d8,
7343 }, {
7344 .eraseblocks = { {16 * 1024 * 1024, 1} },
7345 .block_erase = spi_block_erase_c7,
7346 }
7347 },
7348 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7349 .unlock = spi_disable_blockprotect,
7350 .write = spi_chip_write_256,
7351 .read = spi_chip_read,
7352 .voltage = {2700, 3600},
7353 },
7354
7355 {
7356 .vendor = "Micron/Numonyx/ST",
7357 .name = "M25PE10",
7358 .bustype = BUS_SPI,
7359 .manufacture_id = ST_ID,
7360 .model_id = ST_M25PE10,
7361 .total_size = 128,
7362 .page_size = 256,
7363 .feature_bits = FEATURE_WRSR_WREN,
7364 .tested = TEST_UNTESTED,
7365 .probe = probe_spi_rdid,
7366 .probe_timing = TIMING_ZERO,
7367 .block_erasers =
7368 {
7369 {
7370 .eraseblocks = { {4 * 1024, 32} },
7371 .block_erase = spi_block_erase_20,
7372 }, {
7373 .eraseblocks = { {64 * 1024, 2} },
7374 .block_erase = spi_block_erase_d8,
7375 }, {
7376 .eraseblocks = { {128 * 1024, 1} },
7377 .block_erase = spi_block_erase_c7,
7378 }
7379 },
7380 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7381 .unlock = spi_disable_blockprotect,
7382 .write = spi_chip_write_256,
7383 .read = spi_chip_read,
7384 .voltage = {2700, 3600},
7385 },
7386
7387 {
7388 .vendor = "Micron/Numonyx/ST",
7389 .name = "M25PE20",
7390 .bustype = BUS_SPI,
7391 .manufacture_id = ST_ID,
7392 .model_id = ST_M25PE20,
7393 .total_size = 256,
7394 .page_size = 256,
7395 .feature_bits = FEATURE_WRSR_WREN,
7396 .tested = TEST_UNTESTED,
7397 .probe = probe_spi_rdid,
7398 .probe_timing = TIMING_ZERO,
7399 .block_erasers =
7400 {
7401 {
7402 .eraseblocks = { {4 * 1024, 64} },
7403 .block_erase = spi_block_erase_20,
7404 }, {
7405 .eraseblocks = { {64 * 1024, 4} },
7406 .block_erase = spi_block_erase_d8,
7407 }, {
7408 .eraseblocks = { {256 * 1024, 1} },
7409 .block_erase = spi_block_erase_c7,
7410 }
7411 },
7412 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7413 .unlock = spi_disable_blockprotect,
7414 .write = spi_chip_write_256,
7415 .read = spi_chip_read,
7416 .voltage = {2700, 3600},
7417 },
7418
7419 {
7420 .vendor = "Micron/Numonyx/ST",
7421 .name = "M25PE40",
7422 .bustype = BUS_SPI,
7423 .manufacture_id = ST_ID,
7424 .model_id = ST_M25PE40,
7425 .total_size = 512,
7426 .page_size = 256,
7427 .feature_bits = FEATURE_WRSR_WREN,
7428 .tested = TEST_UNTESTED,
7429 .probe = probe_spi_rdid,
7430 .probe_timing = TIMING_ZERO,
7431 .block_erasers =
7432 {
7433 {
7434 .eraseblocks = { {4 * 1024, 128} },
7435 .block_erase = spi_block_erase_20,
7436 }, {
7437 .eraseblocks = { {64 * 1024, 8} },
7438 .block_erase = spi_block_erase_d8,
7439 }, {
7440 .eraseblocks = { {512 * 1024, 1} },
7441 .block_erase = spi_block_erase_c7,
7442 }
7443 },
7444 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7445 .unlock = spi_disable_blockprotect,
7446 .write = spi_chip_write_256,
7447 .read = spi_chip_read,
7448 .voltage = {2700, 3600},
7449 },
7450
7451 {
7452 .vendor = "Micron/Numonyx/ST",
7453 .name = "M25PE80",
7454 .bustype = BUS_SPI,
7455 .manufacture_id = ST_ID,
7456 .model_id = ST_M25PE80,
7457 .total_size = 1024,
7458 .page_size = 256,
7459 .feature_bits = FEATURE_WRSR_WREN,
7460 .tested = TEST_OK_PREW,
7461 .probe = probe_spi_rdid,
7462 .probe_timing = TIMING_ZERO,
7463 .block_erasers =
7464 {
7465 {
7466 .eraseblocks = { {4 * 1024, 256} },
7467 .block_erase = spi_block_erase_20,
7468 }, {
7469 .eraseblocks = { {64 * 1024, 16} },
7470 .block_erase = spi_block_erase_d8,
7471 }, {
7472 .eraseblocks = { {1024 * 1024, 1} },
7473 .block_erase = spi_block_erase_c7,
7474 }
7475 },
7476 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7477 .unlock = spi_disable_blockprotect,
7478 .write = spi_chip_write_256,
7479 .read = spi_chip_read,
7480 .voltage = {2700, 3600},
7481 },
7482
7483 {
7484 .vendor = "Micron/Numonyx/ST",
7485 .name = "M25PE16",
7486 .bustype = BUS_SPI,
7487 .manufacture_id = ST_ID,
7488 .model_id = ST_M25PE16,
7489 .total_size = 2048,
7490 .page_size = 256,
7491 .feature_bits = FEATURE_WRSR_WREN,
7492 .tested = TEST_UNTESTED,
7493 .probe = probe_spi_rdid,
7494 .probe_timing = TIMING_ZERO,
7495 .block_erasers =
7496 {
7497 {
7498 .eraseblocks = { {4 * 1024, 512} },
7499 .block_erase = spi_block_erase_20,
7500 }, {
7501 .eraseblocks = { {64 * 1024, 32} },
7502 .block_erase = spi_block_erase_d8,
7503 }, {
7504 .eraseblocks = { {2 * 1024 * 1024, 1} },
7505 .block_erase = spi_block_erase_c7,
7506 }
7507 },
7508 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7509 .unlock = spi_disable_blockprotect,
7510 .write = spi_chip_write_256,
7511 .read = spi_chip_read,
7512 .voltage = {2700, 3600},
7513 },
7514
7515 {
7516 .vendor = "Micron/Numonyx/ST",
7517 .name = "M25PX80",
7518 .bustype = BUS_SPI,
7519 .manufacture_id = ST_ID,
7520 .model_id = ST_M25PX80,
7521 .total_size = 1024,
7522 .page_size = 256,
7523 /* OTP: 64B total; read 0x4B, write 0x42 */
7524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7525 .tested = TEST_OK_PREW,
7526 .probe = probe_spi_rdid,
7527 .probe_timing = TIMING_ZERO,
7528 .block_erasers = {
7529 {
7530 .eraseblocks = { { 4 * 1024, 256 } },
7531 .block_erase = spi_block_erase_20,
7532 }, {
7533 .eraseblocks = { {64 * 1024, 16} },
7534 .block_erase = spi_block_erase_d8,
7535 }, {
7536 .eraseblocks = { {1024 * 1024, 1} },
7537 .block_erase = spi_block_erase_c7,
7538 }
7539 },
7540 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7541 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7542 .write = spi_chip_write_256,
7543 .read = spi_chip_read,
7544 .voltage = {2700, 3600},
7545 },
7546
7547 {
7548 .vendor = "Micron/Numonyx/ST",
7549 .name = "M25PX16",
7550 .bustype = BUS_SPI,
7551 .manufacture_id = ST_ID,
7552 .model_id = ST_M25PX16,
7553 .total_size = 2048,
7554 .page_size = 256,
7555 /* OTP: 64B total; read 0x4B; write 0x42 */
7556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7557 .tested = TEST_OK_PREW,
7558 .probe = probe_spi_rdid,
7559 .probe_timing = TIMING_ZERO,
7560 .block_erasers =
7561 {
7562 {
7563 .eraseblocks = { { 4 * 1024, 512 } },
7564 .block_erase = spi_block_erase_20,
7565 }, {
7566 .eraseblocks = { {64 * 1024, 32} },
7567 .block_erase = spi_block_erase_d8,
7568 }, {
7569 .eraseblocks = { {2 * 1024 * 1024, 1} },
7570 .block_erase = spi_block_erase_c7,
7571 }
7572 },
7573 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7574 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7575 .write = spi_chip_write_256,
7576 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007577 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007578 },
7579
7580 {
7581 .vendor = "Micron/Numonyx/ST",
7582 .name = "M25PX32",
7583 .bustype = BUS_SPI,
7584 .manufacture_id = ST_ID,
7585 .model_id = ST_M25PX32,
7586 .total_size = 4096,
7587 .page_size = 256,
7588 /* OTP: 64B total; read 0x4B; write 0x42 */
7589 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7590 .tested = TEST_OK_PRE,
7591 .probe = probe_spi_rdid,
7592 .probe_timing = TIMING_ZERO,
7593 .block_erasers =
7594 {
7595 {
7596 .eraseblocks = { { 4 * 1024, 1024 } },
7597 .block_erase = spi_block_erase_20,
7598 }, {
7599 .eraseblocks = { {64 * 1024, 64} },
7600 .block_erase = spi_block_erase_d8,
7601 }, {
7602 .eraseblocks = { {4 * 1024 * 1024, 1} },
7603 .block_erase = spi_block_erase_c7,
7604 }
7605 },
7606 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7607 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7608 .write = spi_chip_write_256,
7609 .read = spi_chip_read,
7610 .voltage = {2700, 3600},
7611 },
7612
7613 {
7614 .vendor = "Micron/Numonyx/ST",
7615 .name = "M25PX64",
7616 .bustype = BUS_SPI,
7617 .manufacture_id = ST_ID,
7618 .model_id = ST_M25PX64,
7619 .total_size = 8192,
7620 .page_size = 256,
7621 /* OTP: 64B total; read 0x4B; write 0x42 */
7622 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007623 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007624 .probe = probe_spi_rdid,
7625 .probe_timing = TIMING_ZERO,
7626 .block_erasers =
7627 {
7628 {
7629 .eraseblocks = { { 4 * 1024, 2048 } },
7630 .block_erase = spi_block_erase_20,
7631 }, {
7632 .eraseblocks = { {64 * 1024, 128} },
7633 .block_erase = spi_block_erase_d8,
7634 }, {
7635 .eraseblocks = { {8 * 1024 * 1024, 1} },
7636 .block_erase = spi_block_erase_c7,
7637 }
7638 },
7639 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7640 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7641 .write = spi_chip_write_256,
7642 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007643 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007644 },
7645
7646 {
7647 .vendor = "Micron/Numonyx/ST",
7648 .name = "M45PE10",
7649 .bustype = BUS_SPI,
7650 .manufacture_id = ST_ID,
7651 .model_id = ST_M45PE10,
7652 .total_size = 128,
7653 .page_size = 256,
7654 .tested = TEST_UNTESTED,
7655 .probe = probe_spi_rdid,
7656 .probe_timing = TIMING_ZERO,
7657 .block_erasers = {
7658 {
7659 .eraseblocks = { {256, 512} },
7660 .block_erase = spi_block_erase_db,
7661 }, {
7662 .eraseblocks = { {64 * 1024, 2} },
7663 .block_erase = spi_block_erase_d8,
7664 }
7665 },
7666 .printlock = spi_prettyprint_status_register_default_welwip,
7667 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7668 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7669 .read = spi_chip_read, /* Fast read (0x0B) supported */
7670 .voltage = {2700, 3600},
7671 },
7672
7673 {
7674 .vendor = "Micron/Numonyx/ST",
7675 .name = "M45PE20",
7676 .bustype = BUS_SPI,
7677 .manufacture_id = ST_ID,
7678 .model_id = ST_M45PE20,
7679 .total_size = 256,
7680 .page_size = 256,
7681 .tested = TEST_UNTESTED,
7682 .probe = probe_spi_rdid,
7683 .probe_timing = TIMING_ZERO,
7684 .block_erasers = {
7685 {
7686 .eraseblocks = { {256, 1024} },
7687 .block_erase = spi_block_erase_db,
7688 }, {
7689 .eraseblocks = { {64 * 1024, 4} },
7690 .block_erase = spi_block_erase_d8,
7691 }
7692 },
7693 .printlock = spi_prettyprint_status_register_default_welwip,
7694 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7695 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7696 .read = spi_chip_read, /* Fast read (0x0B) supported */
7697 .voltage = {2700, 3600},
7698 },
7699
7700 {
7701 .vendor = "Micron/Numonyx/ST",
7702 .name = "M45PE40",
7703 .bustype = BUS_SPI,
7704 .manufacture_id = ST_ID,
7705 .model_id = ST_M45PE40,
7706 .total_size = 512,
7707 .page_size = 256,
7708 .tested = TEST_UNTESTED,
7709 .probe = probe_spi_rdid,
7710 .probe_timing = TIMING_ZERO,
7711 .block_erasers = {
7712 {
7713 .eraseblocks = { {256, 2048} },
7714 .block_erase = spi_block_erase_db,
7715 }, {
7716 .eraseblocks = { {64 * 1024, 8} },
7717 .block_erase = spi_block_erase_d8,
7718 }
7719 },
7720 .printlock = spi_prettyprint_status_register_default_welwip,
7721 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7722 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7723 .read = spi_chip_read, /* Fast read (0x0B) supported */
7724 .voltage = {2700, 3600},
7725 },
7726
7727 {
7728 .vendor = "Micron/Numonyx/ST",
7729 .name = "M45PE80",
7730 .bustype = BUS_SPI,
7731 .manufacture_id = ST_ID,
7732 .model_id = ST_M45PE80,
7733 .total_size = 1024,
7734 .page_size = 256,
7735 .tested = TEST_UNTESTED,
7736 .probe = probe_spi_rdid,
7737 .probe_timing = TIMING_ZERO,
7738 .block_erasers = {
7739 {
7740 .eraseblocks = { {256, 4096} },
7741 .block_erase = spi_block_erase_db,
7742 }, {
7743 .eraseblocks = { {64 * 1024, 16} },
7744 .block_erase = spi_block_erase_d8,
7745 }
7746 },
7747 .printlock = spi_prettyprint_status_register_default_welwip,
7748 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7749 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7750 .read = spi_chip_read, /* Fast read (0x0B) supported */
7751 .voltage = {2700, 3600},
7752 },
7753
7754 {
7755 .vendor = "Micron/Numonyx/ST",
7756 .name = "M45PE16",
7757 .bustype = BUS_SPI,
7758 .manufacture_id = ST_ID,
7759 .model_id = ST_M45PE16,
7760 .total_size = 2048,
7761 .page_size = 256,
7762 .tested = TEST_UNTESTED,
7763 .probe = probe_spi_rdid,
7764 .probe_timing = TIMING_ZERO,
7765 .block_erasers = {
7766 {
7767 .eraseblocks = { {256, 8192} },
7768 .block_erase = spi_block_erase_db,
7769 }, {
7770 .eraseblocks = { {64 * 1024, 32} },
7771 .block_erase = spi_block_erase_d8,
7772 }
7773 },
7774 .printlock = spi_prettyprint_status_register_default_welwip,
7775 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7776 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7777 .read = spi_chip_read, /* Fast read (0x0B) supported */
7778 .voltage = {2700, 3600},
7779 },
7780
7781 {
7782 .vendor = "Micron/Numonyx/ST",
7783 .name = "N25Q016",
7784 .bustype = BUS_SPI,
7785 .manufacture_id = ST_ID,
7786 .model_id = ST_N25Q016__1E,
7787 .total_size = 2048,
7788 .page_size = 256,
7789 /* supports SFDP */
7790 /* OTP: 64B total; read 0x4B, write 0x42 */
7791 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7792 .tested = TEST_UNTESTED,
7793 .probe = probe_spi_rdid,
7794 .probe_timing = TIMING_ZERO,
7795 .block_erasers =
7796 {
7797 {
7798 .eraseblocks = { {4 * 1024, 512} },
7799 .block_erase = spi_block_erase_20,
7800 }, {
7801 .eraseblocks = { {32 * 1024, 64} },
7802 .block_erase = spi_block_erase_52,
7803 }, {
7804 .eraseblocks = { {64 * 1024, 32} },
7805 .block_erase = spi_block_erase_d8,
7806 }, {
7807 .eraseblocks = { {2 * 1024 * 1024, 1} },
7808 .block_erase = spi_block_erase_c7,
7809 }
7810 },
7811 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7812 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7813 .write = spi_chip_write_256, /* Multi I/O supported */
7814 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7815 .voltage = {1700, 2000},
7816 },
7817
7818 {
7819 .vendor = "Micron/Numonyx/ST",
7820 .name = "N25Q032..1E",
7821 .bustype = BUS_SPI,
7822 .manufacture_id = ST_ID,
7823 .model_id = ST_N25Q032__1E,
7824 .total_size = 4096,
7825 .page_size = 256,
7826 /* supports SFDP */
7827 /* OTP: 64B total; read 0x4B, write 0x42 */
7828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7829 .tested = TEST_UNTESTED,
7830 .probe = probe_spi_rdid,
7831 .probe_timing = TIMING_ZERO,
7832 .block_erasers =
7833 {
7834 {
7835 .eraseblocks = { {4 * 1024, 1024} },
7836 .block_erase = spi_block_erase_20,
7837 }, {
7838 .eraseblocks = { {64 * 1024, 64} },
7839 .block_erase = spi_block_erase_d8,
7840 }, {
7841 .eraseblocks = { {4 * 1024 * 1024, 1} },
7842 .block_erase = spi_block_erase_c7,
7843 }
7844 },
7845 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7846 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7847 .write = spi_chip_write_256, /* Multi I/O supported */
7848 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7849 .voltage = {1700, 2000},
7850 },
7851
7852 {
7853 .vendor = "Micron/Numonyx/ST",
7854 .name = "N25Q032..3E",
7855 .bustype = BUS_SPI,
7856 .manufacture_id = ST_ID,
7857 .model_id = ST_N25Q032__3E,
7858 .total_size = 4096,
7859 .page_size = 256,
7860 /* supports SFDP */
7861 /* OTP: 64B total; read 0x4B, write 0x42 */
7862 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7863 .tested = TEST_OK_PREW,
7864 .probe = probe_spi_rdid,
7865 .probe_timing = TIMING_ZERO,
7866 .block_erasers =
7867 {
7868 {
7869 .eraseblocks = { {4 * 1024, 1024} },
7870 .block_erase = spi_block_erase_20,
7871 }, {
7872 .eraseblocks = { {64 * 1024, 64} },
7873 .block_erase = spi_block_erase_d8,
7874 }, {
7875 .eraseblocks = { {4 * 1024 * 1024, 1} },
7876 .block_erase = spi_block_erase_c7,
7877 }
7878 },
7879 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7880 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7881 .write = spi_chip_write_256, /* Multi I/O supported */
7882 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7883 .voltage = {2700, 3600},
7884 },
7885
7886 {
7887 .vendor = "Micron/Numonyx/ST",
7888 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7889 .bustype = BUS_SPI,
7890 .manufacture_id = ST_ID,
7891 .model_id = ST_N25Q064__1E,
7892 .total_size = 8192,
7893 .page_size = 256,
7894 /* supports SFDP */
7895 /* OTP: 64B total; read 0x4B, write 0x42 */
7896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007897 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007898 .probe = probe_spi_rdid,
7899 .probe_timing = TIMING_ZERO,
7900 .block_erasers =
7901 {
7902 {
7903 .eraseblocks = { {4 * 1024, 2048 } },
7904 .block_erase = spi_block_erase_20,
7905 }, {
7906 .eraseblocks = { {64 * 1024, 128} },
7907 .block_erase = spi_block_erase_d8,
7908 }, {
7909 .eraseblocks = { {8 * 1024 * 1024, 1} },
7910 .block_erase = spi_block_erase_c7,
7911 }
7912 },
7913 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7914 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7915 .write = spi_chip_write_256, /* Multi I/O supported */
7916 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7917 .voltage = {1700, 2000},
7918 },
7919
7920 {
7921 .vendor = "Micron/Numonyx/ST",
7922 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7923 .bustype = BUS_SPI,
7924 .manufacture_id = ST_ID,
7925 .model_id = ST_N25Q064__3E,
7926 .total_size = 8192,
7927 .page_size = 256,
7928 /* supports SFDP */
7929 /* OTP: 64B total; read 0x4B, write 0x42 */
7930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7931 .tested = TEST_OK_PREW,
7932 .probe = probe_spi_rdid,
7933 .probe_timing = TIMING_ZERO,
7934 .block_erasers =
7935 {
7936 {
7937 .eraseblocks = { {4 * 1024, 2048 } },
7938 .block_erase = spi_block_erase_20,
7939 }, {
7940 .eraseblocks = { {64 * 1024, 128} },
7941 .block_erase = spi_block_erase_d8,
7942 }, {
7943 .eraseblocks = { {8 * 1024 * 1024, 1} },
7944 .block_erase = spi_block_erase_c7,
7945 }
7946 },
7947 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7948 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7949 .write = spi_chip_write_256, /* Multi I/O supported */
7950 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7951 .voltage = {2700, 3600},
7952 },
7953
7954 {
7955 .vendor = "Micron/Numonyx/ST",
7956 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7957 .bustype = BUS_SPI,
7958 .manufacture_id = ST_ID,
7959 .model_id = ST_N25Q128__1E,
7960 .total_size = 16384,
7961 .page_size = 256,
7962 /* supports SFDP */
7963 /* OTP: 64B total; read 0x4B, write 0x42 */
7964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7965 .tested = TEST_UNTESTED,
7966 .probe = probe_spi_rdid,
7967 .probe_timing = TIMING_ZERO,
7968 .block_erasers = {
7969 {
7970 .eraseblocks = { {4 * 1024, 4096 } },
7971 .block_erase = spi_block_erase_20,
7972 }, {
7973 .eraseblocks = { {64 * 1024, 256} },
7974 .block_erase = spi_block_erase_d8,
7975 }, {
7976 .eraseblocks = { {16384 * 1024, 1} },
7977 .block_erase = spi_block_erase_c7,
7978 }
7979 },
7980 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7981 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7982 .write = spi_chip_write_256, /* Multi I/O supported */
7983 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7984 .voltage = {1700, 2000},
7985 },
7986
7987 {
7988 .vendor = "Micron/Numonyx/ST",
7989 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7990 .bustype = BUS_SPI,
7991 .manufacture_id = ST_ID,
7992 .model_id = ST_N25Q128__3E,
7993 .total_size = 16384,
7994 .page_size = 256,
7995 /* supports SFDP */
7996 /* OTP: 64B total; read 0x4B, write 0x42 */
7997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7998 .tested = TEST_OK_PREW,
7999 .probe = probe_spi_rdid,
8000 .probe_timing = TIMING_ZERO,
8001 .block_erasers = {
8002 {
8003 .eraseblocks = { {4 * 1024, 4096 } },
8004 .block_erase = spi_block_erase_20,
8005 }, {
8006 .eraseblocks = { {64 * 1024, 256} },
8007 .block_erase = spi_block_erase_d8,
8008 }, {
8009 .eraseblocks = { {16384 * 1024, 1} },
8010 .block_erase = spi_block_erase_c7,
8011 }
8012 },
8013 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8014 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8015 .write = spi_chip_write_256, /* Multi I/O supported */
8016 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8017 .voltage = {2700, 3600},
8018 },
8019
8020 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008021 .vendor = "MoselVitelic",
8022 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008023 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008024 .manufacture_id = SYNCMOS_MVC_ID,
8025 .model_id = MVC_V29C51000B,
8026 .total_size = 64,
8027 .page_size = 512,
8028 .feature_bits = FEATURE_EITHER_RESET,
8029 .tested = TEST_UNTESTED,
8030 .probe = probe_jedec,
8031 .probe_timing = TIMING_ZERO,
8032 .block_erasers =
8033 {
8034 {
8035 .eraseblocks = { {512, 128} },
8036 .block_erase = erase_sector_jedec,
8037 }, {
8038 .eraseblocks = { {64 * 1024, 1} },
8039 .block_erase = erase_chip_block_jedec,
8040 },
8041 },
8042 .write = write_jedec_1,
8043 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008044 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008045 },
8046
8047 {
8048 .vendor = "MoselVitelic",
8049 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008050 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008051 .manufacture_id = SYNCMOS_MVC_ID,
8052 .model_id = MVC_V29C51000T,
8053 .total_size = 64,
8054 .page_size = 512,
8055 .feature_bits = FEATURE_EITHER_RESET,
8056 .tested = TEST_UNTESTED,
8057 .probe = probe_jedec,
8058 .probe_timing = TIMING_ZERO,
8059 .block_erasers =
8060 {
8061 {
8062 .eraseblocks = { {512, 128} },
8063 .block_erase = erase_sector_jedec,
8064 }, {
8065 .eraseblocks = { {64 * 1024, 1} },
8066 .block_erase = erase_chip_block_jedec,
8067 },
8068 },
8069 .write = write_jedec_1,
8070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008071 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008072 },
8073
8074 {
8075 .vendor = "MoselVitelic",
8076 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008077 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008078 .manufacture_id = SYNCMOS_MVC_ID,
8079 .model_id = MVC_V29C51400B,
8080 .total_size = 512,
8081 .page_size = 1024,
8082 .feature_bits = FEATURE_EITHER_RESET,
8083 .tested = TEST_UNTESTED,
8084 .probe = probe_jedec,
8085 .probe_timing = TIMING_ZERO,
8086 .block_erasers =
8087 {
8088 {
8089 .eraseblocks = { {1024, 512} },
8090 .block_erase = erase_sector_jedec,
8091 }, {
8092 .eraseblocks = { {512 * 1024, 1} },
8093 .block_erase = erase_chip_block_jedec,
8094 },
8095 },
8096 .write = write_jedec_1,
8097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008098 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008099 },
8100
8101 {
8102 .vendor = "MoselVitelic",
8103 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008104 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008105 .manufacture_id = SYNCMOS_MVC_ID,
8106 .model_id = MVC_V29C51400T,
8107 .total_size = 512,
8108 .page_size = 1024,
8109 .feature_bits = FEATURE_EITHER_RESET,
8110 .tested = TEST_UNTESTED,
8111 .probe = probe_jedec,
8112 .probe_timing = TIMING_ZERO,
8113 .block_erasers =
8114 {
8115 {
8116 .eraseblocks = { {1024, 512} },
8117 .block_erase = erase_sector_jedec,
8118 }, {
8119 .eraseblocks = { {512 * 1024, 1} },
8120 .block_erase = erase_chip_block_jedec,
8121 },
8122 },
8123 .write = write_jedec_1,
8124 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008125 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008126 },
8127
8128 {
8129 .vendor = "MoselVitelic",
8130 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008131 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008132 .manufacture_id = SYNCMOS_MVC_ID,
8133 .model_id = MVC_V29LC51000,
8134 .total_size = 64,
8135 .page_size = 512,
8136 .feature_bits = FEATURE_EITHER_RESET,
8137 .tested = TEST_UNTESTED,
8138 .probe = probe_jedec,
8139 .probe_timing = TIMING_ZERO,
8140 .block_erasers =
8141 {
8142 {
8143 .eraseblocks = { {512, 128} },
8144 .block_erase = erase_sector_jedec,
8145 }, {
8146 .eraseblocks = { {64 * 1024, 1} },
8147 .block_erase = erase_chip_block_jedec,
8148 },
8149 },
8150 .write = write_jedec_1,
8151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008152 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008153 },
8154
8155 {
8156 .vendor = "MoselVitelic",
8157 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008158 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008159 .manufacture_id = SYNCMOS_MVC_ID,
8160 .model_id = MVC_V29LC51001,
8161 .total_size = 128,
8162 .page_size = 512,
8163 .feature_bits = FEATURE_EITHER_RESET,
8164 .tested = TEST_UNTESTED,
8165 .probe = probe_jedec,
8166 .probe_timing = TIMING_ZERO,
8167 .block_erasers =
8168 {
8169 {
8170 .eraseblocks = { {512, 256} },
8171 .block_erase = erase_sector_jedec,
8172 }, {
8173 .eraseblocks = { {128 * 1024, 1} },
8174 .block_erase = erase_chip_block_jedec,
8175 },
8176 },
8177 .write = write_jedec_1,
8178 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008179 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008180 },
8181
8182 {
8183 .vendor = "MoselVitelic",
8184 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008185 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008186 .manufacture_id = SYNCMOS_MVC_ID,
8187 .model_id = MVC_V29LC51002,
8188 .total_size = 256,
8189 .page_size = 512,
8190 .feature_bits = FEATURE_EITHER_RESET,
8191 .tested = TEST_UNTESTED,
8192 .probe = probe_jedec,
8193 .probe_timing = TIMING_ZERO,
8194 .block_erasers =
8195 {
8196 {
8197 .eraseblocks = { {512, 512} },
8198 .block_erase = erase_sector_jedec,
8199 }, {
8200 .eraseblocks = { {256 * 1024, 1} },
8201 .block_erase = erase_chip_block_jedec,
8202 },
8203 },
8204 .write = write_jedec_1,
8205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008206 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008207 },
8208
8209 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008210 .vendor = "Nantronics",
8211 .name = "N25S10",
8212 .bustype = BUS_SPI,
8213 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8214 .model_id = NANTRONICS_N25S10,
8215 .total_size = 128,
8216 .page_size = 256,
8217 .feature_bits = FEATURE_WRSR_WREN,
8218 .tested = TEST_UNTESTED,
8219 .probe = probe_spi_rdid,
8220 .probe_timing = TIMING_ZERO,
8221 .block_erasers =
8222 {
8223 {
8224 .eraseblocks = { {4 * 1024, 32} },
8225 .block_erase = spi_block_erase_20,
8226 }, {
8227 .eraseblocks = { {4 * 1024, 32} },
8228 .block_erase = spi_block_erase_d7,
8229 }, {
8230 .eraseblocks = { {32 * 1024, 4} },
8231 .block_erase = spi_block_erase_52,
8232 }, {
8233 .eraseblocks = { {64 * 1024, 2} },
8234 .block_erase = spi_block_erase_d8,
8235 }, {
8236 .eraseblocks = { {128 * 1024, 1} },
8237 .block_erase = spi_block_erase_60,
8238 }, {
8239 .eraseblocks = { {128 * 1024, 1} },
8240 .block_erase = spi_block_erase_c7,
8241 }
8242 },
8243 .printlock = spi_prettyprint_status_register_default_bp3,
8244 .unlock = spi_disable_blockprotect_bp3_srwd,
8245 .write = spi_chip_write_256,
8246 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8247 .voltage = {2700, 3600},
8248 },
8249
8250 {
8251 .vendor = "Nantronics",
8252 .name = "N25S20",
8253 .bustype = BUS_SPI,
8254 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8255 .model_id = NANTRONICS_N25S20,
8256 .total_size = 256,
8257 .page_size = 256,
8258 .feature_bits = FEATURE_WRSR_WREN,
8259 .tested = TEST_UNTESTED,
8260 .probe = probe_spi_rdid,
8261 .probe_timing = TIMING_ZERO,
8262 .block_erasers =
8263 {
8264 {
8265 .eraseblocks = { {4 * 1024, 64} },
8266 .block_erase = spi_block_erase_20,
8267 }, {
8268 .eraseblocks = { {4 * 1024, 64} },
8269 .block_erase = spi_block_erase_d7,
8270 }, {
8271 .eraseblocks = { {32 * 1024, 8} },
8272 .block_erase = spi_block_erase_52,
8273 }, {
8274 .eraseblocks = { {64 * 1024, 4} },
8275 .block_erase = spi_block_erase_d8,
8276 }, {
8277 .eraseblocks = { {256 * 1024, 1} },
8278 .block_erase = spi_block_erase_60,
8279 }, {
8280 .eraseblocks = { {256 * 1024, 1} },
8281 .block_erase = spi_block_erase_c7,
8282 }
8283 },
8284 .printlock = spi_prettyprint_status_register_default_bp3,
8285 .unlock = spi_disable_blockprotect_bp3_srwd,
8286 .write = spi_chip_write_256,
8287 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8288 .voltage = {2700, 3600},
8289 },
8290
8291 {
8292 .vendor = "Nantronics",
8293 .name = "N25S40",
8294 .bustype = BUS_SPI,
8295 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8296 .model_id = NANTRONICS_N25S40,
8297 .total_size = 512,
8298 .page_size = 256,
8299 .feature_bits = FEATURE_WRSR_WREN,
8300 .tested = TEST_UNTESTED,
8301 .probe = probe_spi_rdid,
8302 .probe_timing = TIMING_ZERO,
8303 .block_erasers =
8304 {
8305 {
8306 .eraseblocks = { {4 * 1024, 128} },
8307 .block_erase = spi_block_erase_20,
8308 }, {
8309 .eraseblocks = { {4 * 1024, 128} },
8310 .block_erase = spi_block_erase_d7,
8311 }, {
8312 .eraseblocks = { {32 * 1024, 16} },
8313 .block_erase = spi_block_erase_52,
8314 }, {
8315 .eraseblocks = { {64 * 1024, 8} },
8316 .block_erase = spi_block_erase_d8,
8317 }, {
8318 .eraseblocks = { {512 * 1024, 1} },
8319 .block_erase = spi_block_erase_60,
8320 }, {
8321 .eraseblocks = { {512 * 1024, 1} },
8322 .block_erase = spi_block_erase_c7,
8323 }
8324 },
8325 .printlock = spi_prettyprint_status_register_default_bp3,
8326 .unlock = spi_disable_blockprotect_bp3_srwd,
8327 .write = spi_chip_write_256,
8328 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8329 .voltage = {2700, 3600},
8330 },
8331
8332 {
8333 .vendor = "Nantronics",
8334 .name = "N25S80",
8335 .bustype = BUS_SPI,
8336 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8337 .model_id = NANTRONICS_N25S80,
8338 .total_size = 1024,
8339 .page_size = 256,
8340 .feature_bits = FEATURE_WRSR_WREN,
8341 .tested = TEST_UNTESTED,
8342 .probe = probe_spi_rdid,
8343 .probe_timing = TIMING_ZERO,
8344 .block_erasers =
8345 {
8346 {
8347 .eraseblocks = { {4 * 1024, 256} },
8348 .block_erase = spi_block_erase_20,
8349 }, {
8350 .eraseblocks = { {32 * 1024, 32} },
8351 .block_erase = spi_block_erase_52,
8352 }, {
8353 .eraseblocks = { {64 * 1024, 16} },
8354 .block_erase = spi_block_erase_d8,
8355 }, {
8356 .eraseblocks = { {1024 * 1024, 1} },
8357 .block_erase = spi_block_erase_60,
8358 }, {
8359 .eraseblocks = { {1024 * 1024, 1} },
8360 .block_erase = spi_block_erase_c7,
8361 }
8362 },
8363 .printlock = spi_prettyprint_status_register_default_bp3,
8364 .unlock = spi_disable_blockprotect_bp3_srwd,
8365 .write = spi_chip_write_256,
8366 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8367 .voltage = {2700, 3600},
8368 },
8369
8370 {
8371 .vendor = "Nantronics",
8372 .name = "N25S16",
8373 .bustype = BUS_SPI,
8374 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8375 .model_id = NANTRONICS_N25S16,
8376 .total_size = 2048,
8377 .page_size = 256,
8378 .feature_bits = FEATURE_WRSR_WREN,
8379 .tested = TEST_UNTESTED,
8380 .probe = probe_spi_rdid,
8381 .probe_timing = TIMING_ZERO,
8382 .block_erasers =
8383 {
8384 {
8385 .eraseblocks = { {4 * 1024, 512} },
8386 .block_erase = spi_block_erase_20,
8387 }, {
8388 .eraseblocks = { {64 * 1024, 32} },
8389 .block_erase = spi_block_erase_d8,
8390 }, {
8391 .eraseblocks = { {2048 * 1024, 1} },
8392 .block_erase = spi_block_erase_60,
8393 }, {
8394 .eraseblocks = { {2048 * 1024, 1} },
8395 .block_erase = spi_block_erase_c7,
8396 }
8397 },
8398 .printlock = spi_prettyprint_status_register_default_bp3,
8399 .unlock = spi_disable_blockprotect_bp3_srwd,
8400 .write = spi_chip_write_256,
8401 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8402 .voltage = {2700, 3600},
8403 },
8404
8405 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008406 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008407 .name = "Pm25LD256C",
8408 .bustype = BUS_SPI,
8409 .manufacture_id = PMC_ID,
8410 .model_id = PMC_PM25LD256C,
8411 .total_size = 32,
8412 .page_size = 256,
8413 .feature_bits = FEATURE_WRSR_WREN,
8414 .tested = TEST_UNTESTED,
8415 .probe = probe_spi_rdid,
8416 .probe_timing = TIMING_ZERO,
8417 .block_erasers =
8418 {
8419 {
8420 .eraseblocks = { {4 * 1024, 8} },
8421 .block_erase = spi_block_erase_20,
8422 }, {
8423 .eraseblocks = { {4 * 1024, 8} },
8424 .block_erase = spi_block_erase_d7,
8425 }, {
8426 .eraseblocks = { {32 * 1024, 1} },
8427 .block_erase = spi_block_erase_d8,
8428 }, {
8429 .eraseblocks = { {32 * 1024, 1} },
8430 .block_erase = spi_block_erase_60,
8431 }, {
8432 .eraseblocks = { {32 * 1024, 1} },
8433 .block_erase = spi_block_erase_c7,
8434 }
8435 },
8436 .printlock = spi_prettyprint_status_register_default_bp2,
8437 .unlock = spi_disable_blockprotect,
8438 .write = spi_chip_write_256,
8439 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8440 .voltage = {2700, 3600},
8441 },
8442 {
8443 .vendor = "PMC",
8444 .name = "Pm25LD512(C)",
8445 .bustype = BUS_SPI,
8446 .manufacture_id = PMC_ID,
8447 .model_id = PMC_PM25LD512,
8448 .total_size = 64,
8449 .page_size = 256,
8450 .feature_bits = FEATURE_WRSR_WREN,
8451 .tested = TEST_OK_PREW,
8452 .probe = probe_spi_rdid,
8453 .probe_timing = TIMING_ZERO,
8454 .block_erasers =
8455 {
8456 {
8457 .eraseblocks = { {4 * 1024, 16} },
8458 .block_erase = spi_block_erase_20,
8459 }, {
8460 .eraseblocks = { {4 * 1024, 16} },
8461 .block_erase = spi_block_erase_d7,
8462 }, {
8463 .eraseblocks = { {32 * 1024, 2} },
8464 .block_erase = spi_block_erase_d8,
8465 }, {
8466 .eraseblocks = { {64 * 1024, 1} },
8467 .block_erase = spi_block_erase_60,
8468 }, {
8469 .eraseblocks = { {64 * 1024, 1} },
8470 .block_erase = spi_block_erase_c7,
8471 }
8472 },
8473 .printlock = spi_prettyprint_status_register_default_bp2,
8474 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8475 .write = spi_chip_write_256,
8476 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8477 .voltage = {2300, 3600},
8478 },
8479
8480 {
8481 .vendor = "PMC",
8482 .name = "Pm25LD010(C)",
8483 .bustype = BUS_SPI,
8484 .manufacture_id = PMC_ID,
8485 .model_id = PMC_PM25LD010,
8486 .total_size = 128,
8487 .page_size = 256,
8488 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008489 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008490 .probe = probe_spi_rdid,
8491 .probe_timing = TIMING_ZERO,
8492 .block_erasers =
8493 {
8494 {
8495 .eraseblocks = { {4 * 1024, 32} },
8496 .block_erase = spi_block_erase_20,
8497 }, {
8498 .eraseblocks = { {4 * 1024, 32} },
8499 .block_erase = spi_block_erase_d7,
8500 }, {
8501 .eraseblocks = { {32 * 1024, 4} },
8502 .block_erase = spi_block_erase_d8,
8503 }, {
8504 .eraseblocks = { {128 * 1024, 1} },
8505 .block_erase = spi_block_erase_60,
8506 }, {
8507 .eraseblocks = { {128 * 1024, 1} },
8508 .block_erase = spi_block_erase_c7,
8509 }
8510 },
8511 .printlock = spi_prettyprint_status_register_default_bp2,
8512 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8513 .write = spi_chip_write_256,
8514 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8515 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8516 },
8517
8518 {
8519 .vendor = "PMC",
8520 .name = "Pm25LD020(C)",
8521 .bustype = BUS_SPI,
8522 .manufacture_id = PMC_ID,
8523 .model_id = PMC_PM25LD020,
8524 .total_size = 256,
8525 .page_size = 256,
8526 .feature_bits = FEATURE_WRSR_WREN,
8527 .tested = TEST_UNTESTED,
8528 .probe = probe_spi_rdid,
8529 .probe_timing = TIMING_ZERO,
8530 .block_erasers =
8531 {
8532 {
8533 .eraseblocks = { {4 * 1024, 64} },
8534 .block_erase = spi_block_erase_20,
8535 }, {
8536 .eraseblocks = { {4 * 1024, 64} },
8537 .block_erase = spi_block_erase_d7,
8538 }, {
8539 .eraseblocks = { {64 * 1024, 4} },
8540 .block_erase = spi_block_erase_d8,
8541 }, {
8542 .eraseblocks = { {256 * 1024, 1} },
8543 .block_erase = spi_block_erase_60,
8544 }, {
8545 .eraseblocks = { {256 * 1024, 1} },
8546 .block_erase = spi_block_erase_c7,
8547 }
8548 },
8549 .printlock = spi_prettyprint_status_register_default_bp2,
8550 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8551 .write = spi_chip_write_256,
8552 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8553 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8554 },
8555
8556 {
8557 .vendor = "PMC",
8558 .name = "Pm25LD040(C)",
8559 .bustype = BUS_SPI,
8560 .manufacture_id = PMC_ID,
8561 .model_id = PMC_PM25LV040,
8562 .total_size = 512,
8563 .page_size = 256,
8564 .feature_bits = FEATURE_WRSR_WREN,
8565 .tested = TEST_UNTESTED,
8566 .probe = probe_spi_rdid,
8567 .probe_timing = TIMING_ZERO,
8568 .block_erasers =
8569 {
8570 {
8571 .eraseblocks = { {4 * 1024, 128} },
8572 .block_erase = spi_block_erase_20,
8573 }, {
8574 .eraseblocks = { {4 * 1024, 128} },
8575 .block_erase = spi_block_erase_d7,
8576 }, {
8577 .eraseblocks = { {64 * 1024, 8} },
8578 .block_erase = spi_block_erase_d8,
8579 }, {
8580 .eraseblocks = { {512 * 1024, 1} },
8581 .block_erase = spi_block_erase_60,
8582 }, {
8583 .eraseblocks = { {512 * 1024, 1} },
8584 .block_erase = spi_block_erase_c7,
8585 }
8586 },
8587 .printlock = spi_prettyprint_status_register_default_bp2,
8588 .unlock = spi_disable_blockprotect,
8589 .write = spi_chip_write_256,
8590 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8591 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8592 },
8593
8594{
8595 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008596 .name = "Pm25LV512(A)",
8597 .bustype = BUS_SPI,
8598 .manufacture_id = PMC_ID,
8599 .model_id = PMC_PM25LV512,
8600 .total_size = 64,
8601 .page_size = 256,
8602 .feature_bits = FEATURE_WRSR_WREN,
8603 .tested = TEST_UNTESTED,
8604 .probe = probe_spi_res3,
8605 .probe_timing = TIMING_ZERO,
8606 .block_erasers =
8607 {
8608 {
8609 .eraseblocks = { {4 * 1024, 16} },
8610 .block_erase = spi_block_erase_d7,
8611 }, {
8612 .eraseblocks = { {32 * 1024, 2} },
8613 .block_erase = spi_block_erase_d8,
8614 }, {
8615 .eraseblocks = { {64 * 1024, 1} },
8616 .block_erase = spi_block_erase_c7,
8617 }
8618 },
8619 .printlock = spi_prettyprint_status_register_default_bp1,
8620 .unlock = spi_disable_blockprotect,
8621 .write = spi_chip_write_256,
8622 .read = spi_chip_read, /* Fast read (0x0B) supported */
8623 .voltage = {2700, 3600},
8624 },
8625
8626 {
8627 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008628 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008629 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008630 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008631 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008632 .total_size = 128,
8633 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008634 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008635 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008636 .probe = probe_spi_res3,
8637 .probe_timing = TIMING_ZERO,
8638 .block_erasers =
8639 {
8640 {
8641 .eraseblocks = { {4 * 1024, 32} },
8642 .block_erase = spi_block_erase_d7,
8643 }, {
8644 .eraseblocks = { {32 * 1024, 4} },
8645 .block_erase = spi_block_erase_d8,
8646 }, {
8647 .eraseblocks = { {128 * 1024, 1} },
8648 .block_erase = spi_block_erase_c7,
8649 }
8650 },
8651 .printlock = spi_prettyprint_status_register_default_bp1,
8652 .unlock = spi_disable_blockprotect,
8653 .write = spi_chip_write_256,
8654 .read = spi_chip_read, /* Fast read (0x0B) supported */
8655 .voltage = {2700, 3600},
8656 },
8657
8658 {
8659 .vendor = "PMC",
8660 .name = "Pm25LV010A",
8661 .bustype = BUS_SPI,
8662 .manufacture_id = PMC_ID,
8663 .model_id = PMC_PM25LV010,
8664 .total_size = 128,
8665 .page_size = 256,
8666 .feature_bits = FEATURE_WRSR_WREN,
8667 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008668 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008669 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008670 .block_erasers =
8671 {
8672 {
8673 .eraseblocks = { {4 * 1024, 32} },
8674 .block_erase = spi_block_erase_d7,
8675 }, {
8676 .eraseblocks = { {32 * 1024, 4} },
8677 .block_erase = spi_block_erase_d8,
8678 }, {
8679 .eraseblocks = { {128 * 1024, 1} },
8680 .block_erase = spi_block_erase_c7,
8681 }
8682 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008683 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008684 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008685 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008686 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008687 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008688 },
8689
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008690 {
8691 .vendor = "PMC",
8692 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008693 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008694 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008695 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008696 .total_size = 256,
8697 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008698 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008699 .tested = TEST_UNTESTED,
8700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008701 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008702 .block_erasers =
8703 {
8704 {
8705 .eraseblocks = { {4 * 1024, 64} },
8706 .block_erase = spi_block_erase_d7,
8707 }, {
8708 .eraseblocks = { {64 * 1024, 4} },
8709 .block_erase = spi_block_erase_d8,
8710 }, {
8711 .eraseblocks = { {256 * 1024, 1} },
8712 .block_erase = spi_block_erase_c7,
8713 }
8714 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008715 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008716 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008717 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008718 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008719 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008720 },
8721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008722 {
8723 .vendor = "PMC",
8724 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008725 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008726 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008727 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008728 .total_size = 512,
8729 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008730 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008731 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008732 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008733 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008734 .block_erasers =
8735 {
8736 {
8737 .eraseblocks = { {4 * 1024, 128} },
8738 .block_erase = spi_block_erase_d7,
8739 }, {
8740 .eraseblocks = { {64 * 1024, 8} },
8741 .block_erase = spi_block_erase_d8,
8742 }, {
8743 .eraseblocks = { {512 * 1024, 1} },
8744 .block_erase = spi_block_erase_c7,
8745 }
8746 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008747 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008748 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008749 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008750 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008752 },
8753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008754 {
8755 .vendor = "PMC",
8756 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008758 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008759 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008760 .total_size = 1024,
8761 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008762 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008763 .tested = TEST_UNTESTED,
8764 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008765 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008766 .block_erasers =
8767 {
8768 {
8769 .eraseblocks = { {4 * 1024, 256} },
8770 .block_erase = spi_block_erase_d7,
8771 }, {
8772 .eraseblocks = { {4 * 1024, 256} },
8773 .block_erase = spi_block_erase_20,
8774 }, {
8775 .eraseblocks = { {64 * 1024, 16} },
8776 .block_erase = spi_block_erase_d8,
8777 }, {
8778 .eraseblocks = { {1024 * 1024, 1} },
8779 .block_erase = spi_block_erase_60,
8780 }, {
8781 .eraseblocks = { {1024 * 1024, 1} },
8782 .block_erase = spi_block_erase_c7,
8783 }
8784 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008785 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008786 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008787 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008788 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008789 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008790 },
8791
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008792 {
8793 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008794 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008795 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008796 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008797 .model_id = PMC_PM25LV016B,
8798 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008799 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008800 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008801 .tested = TEST_UNTESTED,
8802 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008803 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008804 .block_erasers =
8805 {
8806 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008807 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008808 .block_erase = spi_block_erase_d7,
8809 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008810 .eraseblocks = { {4 * 1024, 512} },
8811 .block_erase = spi_block_erase_20,
8812 }, {
8813 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008814 .block_erase = spi_block_erase_d8,
8815 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008816 .eraseblocks = { {2 * 1024 * 1024, 1} },
8817 .block_erase = spi_block_erase_60,
8818 }, {
8819 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008820 .block_erase = spi_block_erase_c7,
8821 }
8822 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008823 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008824 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008825 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008826 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008827 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008828 },
8829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008830 {
8831 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008832 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008833 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008834 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008835 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008836 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008837 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008838 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008839 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008840 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008841 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008842 .block_erasers =
8843 {
8844 {
8845 .eraseblocks = {
8846 {128 * 1024, 1},
8847 {96 * 1024, 1},
8848 {8 * 1024, 2},
8849 {16 * 1024, 1},
8850 },
Sean Nelson35727f72010-01-28 23:55:12 +00008851 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008852 }, {
8853 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008854 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008855 },
8856 },
Sean Nelson35727f72010-01-28 23:55:12 +00008857 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008859 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008860 },
8861
8862 {
8863 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008864 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008865 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008866 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008867 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008868 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008869 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008870 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008871 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008872 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008873 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008874 .block_erasers =
8875 {
8876 {
8877 .eraseblocks = {
8878 {16 * 1024, 1},
8879 {8 * 1024, 2},
8880 {96 * 1024, 1},
8881 {128 * 1024, 1},
8882 },
Sean Nelson35727f72010-01-28 23:55:12 +00008883 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008884 }, {
8885 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008886 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008887 },
8888 },
Sean Nelson35727f72010-01-28 23:55:12 +00008889 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008891 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008892 },
8893
8894 {
8895 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008896 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008897 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008898 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008899 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008900 .total_size = 128,
8901 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008902 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008903 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008904 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008906 .block_erasers =
8907 {
8908 {
8909 .eraseblocks = { {4 * 1024, 32} },
8910 .block_erase = erase_sector_jedec,
8911 }, {
8912 .eraseblocks = { {64 * 1024, 2} },
8913 .block_erase = erase_block_jedec,
8914 }, {
8915 .eraseblocks = { {128 * 1024, 1} },
8916 .block_erase = erase_chip_block_jedec,
8917 }
8918 },
Sean Nelson35727f72010-01-28 23:55:12 +00008919 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008921 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008922 },
8923
8924 {
8925 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008926 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008927 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008928 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008929 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008930 .total_size = 256,
8931 .page_size = 4096,
8932 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8933 .tested = TEST_UNTESTED,
8934 .probe = probe_jedec,
8935 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8936 .block_erasers =
8937 {
8938 {
8939 .eraseblocks = { {4 * 1024, 64} },
8940 .block_erase = erase_sector_jedec,
8941 }, {
8942 .eraseblocks = { {64 * 1024, 4} },
8943 .block_erase = erase_block_jedec,
8944 }, {
8945 .eraseblocks = { {256 * 1024, 1} },
8946 .block_erase = erase_chip_block_jedec,
8947 }
8948 },
8949 .write = write_jedec_1,
8950 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008951 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008952 },
8953
8954 {
8955 .vendor = "PMC",
8956 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008957 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008958 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008959 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008960 .total_size = 512,
8961 .page_size = 4096,
8962 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008963 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008964 .probe = probe_jedec,
8965 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8966 .block_erasers =
8967 {
8968 {
8969 .eraseblocks = { {4 * 1024, 128} },
8970 .block_erase = erase_sector_jedec,
8971 }, {
8972 .eraseblocks = { {64 * 1024, 8} },
8973 .block_erase = erase_block_jedec,
8974 }, {
8975 .eraseblocks = { {512 * 1024, 1} },
8976 .block_erase = erase_chip_block_jedec,
8977 }
8978 },
8979 .write = write_jedec_1,
8980 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008981 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008982 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008983
8984 {
8985 .vendor = "PMC",
8986 .name = "Pm39LV512",
8987 .bustype = BUS_PARALLEL,
8988 .manufacture_id = PMC_ID_NOPREFIX,
8989 .model_id = PMC_PM39LV512,
8990 .total_size = 64,
8991 .page_size = 4096,
8992 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8993 .tested = TEST_OK_PREW,
8994 .probe = probe_jedec,
8995 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8996 .block_erasers =
8997 {
8998 {
8999 .eraseblocks = { {4 * 1024, 16} },
9000 .block_erase = erase_sector_jedec,
9001 }, {
9002 .eraseblocks = { {64 * 1024, 1} },
9003 .block_erase = erase_block_jedec,
9004 }, {
9005 .eraseblocks = { {64 * 1024, 1} },
9006 .block_erase = erase_chip_block_jedec,
9007 }
9008 },
9009 .write = write_jedec_1,
9010 .read = read_memmapped,
9011 .voltage = {2700, 3600},
9012 },
9013
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009014 {
9015 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009016 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009017 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009018 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009019 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009020 .total_size = 256,
9021 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009022 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00009023 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009024 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009025 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009026 .block_erasers =
9027 {
9028 {
9029 .eraseblocks = { {4 * 1024, 64} },
9030 .block_erase = erase_sector_jedec,
9031 }, {
9032 .eraseblocks = { {16 * 1024, 16} },
9033 .block_erase = erase_block_jedec,
9034 }, {
9035 .eraseblocks = { {256 * 1024, 1} },
9036 .block_erase = erase_chip_block_jedec,
9037 }
9038 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009039 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009042 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009043 },
9044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009045 {
9046 .vendor = "PMC",
9047 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009048 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009049 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009050 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009051 .total_size = 512,
9052 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009053 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009054 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009055 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009056 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009057 .block_erasers =
9058 {
9059 {
9060 .eraseblocks = { {4 * 1024, 128} },
9061 .block_erase = erase_sector_jedec,
9062 }, {
9063 .eraseblocks = { {64 * 1024, 8} },
9064 .block_erase = erase_block_jedec,
9065 }, {
9066 .eraseblocks = { {512 * 1024, 1} },
9067 .block_erase = erase_chip_block_jedec,
9068 }
9069 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009070 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009071 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009073 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009074 },
9075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009076 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009077 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009078 .name = "LE25FW406A",
9079 .bustype = BUS_SPI,
9080 .manufacture_id = SANYO_ID,
9081 .model_id = SANYO_LE25FW406A,
9082 .total_size = 512,
9083 .page_size = 256,
9084 .feature_bits = FEATURE_WRSR_WREN,
9085 .tested = TEST_OK_PREW,
9086 .probe = probe_spi_res2,
9087 .probe_timing = TIMING_ZERO,
9088 .block_erasers = {
9089 {
9090 .eraseblocks = { {4 * 1024, 128} },
9091 .block_erase = spi_block_erase_d7,
9092 }, {
9093 .eraseblocks = { {64 * 1024, 8} },
9094 .block_erase = spi_block_erase_d8,
9095 }, {
9096 .eraseblocks = { {512 * 1024, 1} },
9097 .block_erase = spi_block_erase_c7,
9098 }
9099 },
9100 .printlock = spi_prettyprint_status_register_plain,
9101 .unlock = spi_disable_blockprotect,
9102 .write = spi_chip_write_256,
9103 .read = spi_chip_read,
9104 .voltage = {2700, 3600},
9105 },
9106
9107 {
9108 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009109 .name = "LE25FU406B",
9110 .bustype = BUS_SPI,
9111 .manufacture_id = SANYO_ID,
9112 .model_id = SANYO_LE25FU406B,
9113 .total_size = 512,
9114 .page_size = 256,
9115 .feature_bits = FEATURE_WRSR_WREN,
9116 .tested = TEST_OK_PREW,
9117 .probe = probe_spi_res2,
9118 .probe_timing = TIMING_ZERO,
9119 .block_erasers = {
9120 {
9121 .eraseblocks = { {4 * 1024, 128} },
9122 .block_erase = spi_block_erase_d7,
9123 }, {
9124 .eraseblocks = { {64 * 1024, 8} },
9125 .block_erase = spi_block_erase_d8,
9126 }, {
9127 .eraseblocks = { {512 * 1024, 1} },
9128 .block_erase = spi_block_erase_c7,
9129 }
9130 },
9131 .printlock = spi_prettyprint_status_register_default_bp2,
9132 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9133 .write = spi_chip_write_256,
9134 .read = spi_chip_read,
9135 .voltage = {2300, 3600},
9136 },
9137
9138 {
9139 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009140 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009141 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009142 .manufacture_id = SANYO_ID,
9143 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009144 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009145 .page_size = 256,
9146 .tested = TEST_UNTESTED,
9147 .probe = probe_spi_rdid,
9148 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009149 .block_erasers =
9150 {
9151 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009152 .eraseblocks = { {256, 1024} },
9153 .block_erase = spi_block_erase_db,
9154 }, {
9155 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009156 .block_erase = spi_block_erase_d8,
9157 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009158 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009159 .block_erase = spi_block_erase_c7,
9160 }
9161 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009162 .printlock = spi_prettyprint_status_register_default_welwip,
9163 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009164 .write = spi_chip_write_256,
9165 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009166 .voltage = {2700, 3600},
9167 },
9168
9169 {
9170 .vendor = "Sanyo",
9171 .name = "LE25FW403A",
9172 .bustype = BUS_SPI,
9173 .manufacture_id = SANYO_ID,
9174 .model_id = SANYO_LE25FW403A,
9175 .total_size = 512,
9176 .page_size = 256,
9177 .tested = TEST_UNTESTED,
9178 .probe = probe_spi_rdid,
9179 .probe_timing = TIMING_ZERO,
9180 .block_erasers = {
9181 {
9182 .eraseblocks = { {256, 2 * 1024} },
9183 .block_erase = spi_block_erase_db,
9184 }, {
9185 .eraseblocks = { {64 * 1024, 8} },
9186 .block_erase = spi_block_erase_d8,
9187 }, {
9188 .eraseblocks = { {512 * 1024, 1} },
9189 .block_erase = spi_block_erase_c7,
9190 }
9191 },
9192 .printlock = spi_prettyprint_status_register_default_welwip,
9193 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9194 .write = spi_chip_write_256,
9195 .read = spi_chip_read,
9196 .voltage = {2700, 3600},
9197 },
9198
9199 {
9200 .vendor = "Sanyo",
9201 .name = "LE25FW418A",
9202 .bustype = BUS_SPI,
9203 .manufacture_id = SANYO_ID,
9204 .model_id = SANYO_LE25FW418A,
9205 .total_size = 512,
9206 .page_size = 256,
9207 .feature_bits = FEATURE_WRSR_WREN,
9208 .tested = TEST_UNTESTED,
9209 .probe = probe_spi_res2,
9210 .probe_timing = TIMING_ZERO,
9211 .block_erasers = {
9212 {
9213 .eraseblocks = { {4 * 1024, 128} },
9214 .block_erase = spi_block_erase_d7,
9215 }, {
9216 .eraseblocks = { {64 * 1024, 8} },
9217 .block_erase = spi_block_erase_d8,
9218 }, {
9219 .eraseblocks = { {512 * 1024, 1} },
9220 .block_erase = spi_block_erase_c7,
9221 }
9222 },
9223 .printlock = spi_prettyprint_status_register_default_bp2,
9224 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9225 .write = spi_chip_write_256,
9226 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9227 .voltage = {2700, 3600},
9228 },
9229
9230 {
9231 .vendor = "Sanyo",
9232 .name = "LE25FW806",
9233 .bustype = BUS_SPI,
9234 .manufacture_id = SANYO_ID,
9235 .model_id = SANYO_LE25FW806,
9236 .total_size = 1024,
9237 .page_size = 256,
9238 .feature_bits = FEATURE_WRSR_WREN,
9239 .tested = TEST_UNTESTED,
9240 .probe = probe_spi_res2,
9241 .probe_timing = TIMING_ZERO,
9242 .block_erasers = {
9243 {
9244 .eraseblocks = { {4 * 1024, 256} },
9245 .block_erase = spi_block_erase_20,
9246 }, {
9247 .eraseblocks = { {4 * 1024, 256} },
9248 .block_erase = spi_block_erase_d7,
9249 }, {
9250 .eraseblocks = { {64 * 1024, 16} },
9251 .block_erase = spi_block_erase_d8,
9252 }, {
9253 .eraseblocks = { {1024 * 1024, 1} },
9254 .block_erase = spi_block_erase_c7,
9255 }
9256 },
9257 .printlock = spi_prettyprint_status_register_default_bp2,
9258 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9259 .write = spi_chip_write_256,
9260 .read = spi_chip_read,
9261 .voltage = {2700, 3600},
9262 },
9263
9264 {
9265 .vendor = "Sanyo",
9266 .name = "LE25FW808",
9267 .bustype = BUS_SPI,
9268 .manufacture_id = SANYO_ID,
9269 .model_id = SANYO_LE25FW808,
9270 .total_size = 1024,
9271 .page_size = 256,
9272 .feature_bits = FEATURE_WRSR_WREN,
9273 .tested = TEST_UNTESTED,
9274 .probe = probe_spi_res2,
9275 .probe_timing = TIMING_ZERO,
9276 .block_erasers = {
9277 {
9278 .eraseblocks = { {8 * 1024, 128} },
9279 .block_erase = spi_block_erase_d7,
9280 }, {
9281 .eraseblocks = { {64 * 1024, 16} },
9282 .block_erase = spi_block_erase_d8,
9283 }, {
9284 .eraseblocks = { {1024 * 1024, 1} },
9285 .block_erase = spi_block_erase_c7,
9286 }
9287 },
9288 .printlock = spi_prettyprint_status_register_default_bp2,
9289 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9290 .write = spi_chip_write_256,
9291 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9292 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009293 },
9294
9295 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009296 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009297 .name = "LH28F008BJT-BTLZ1",
9298 .bustype = BUS_PARALLEL,
9299 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009300 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009301 .total_size = 1024,
9302 .page_size = 64 * 1024,
9303 .tested = TEST_OK_PREW,
9304 .probe = probe_82802ab,
9305 .probe_timing = TIMING_ZERO,
9306 .block_erasers =
9307 {
9308 {
9309 .eraseblocks = {
9310 {8 * 1024, 8},
9311 {64 * 1024, 15}
9312 },
9313 .block_erase = erase_block_82802ab,
9314 }, {
9315 .eraseblocks = { {1024 * 1024, 1} },
9316 .block_erase = erase_sector_49lfxxxc,
9317 }
9318 },
9319 .unlock = unlock_lh28f008bjt,
9320 .write = write_82802ab,
9321 .read = read_memmapped,
9322 .voltage = {2700, 3600},
9323 },
9324
9325 {
9326 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009327 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009328 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009329 .manufacture_id = SHARP_ID,
9330 .model_id = SHARP_LHF00L04,
9331 .total_size = 1024,
9332 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009333 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009334 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009335 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009336 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009337 .block_erasers =
9338 {
9339 {
9340 .eraseblocks = {
9341 {64 * 1024, 15},
9342 {8 * 1024, 8}
9343 },
Sean Nelson28accc22010-03-19 18:47:06 +00009344 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009345 }, {
9346 .eraseblocks = {
9347 {1024 * 1024, 1}
9348 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009349 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009350 },
9351 },
Sean Nelson28accc22010-03-19 18:47:06 +00009352 .unlock = unlock_82802ab,
9353 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009355 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009356 },
9357
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009358 {
9359 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009360 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009361 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009362 .manufacture_id = SPANSION_ID,
9363 .model_id = SPANSION_S25FL004A,
9364 .total_size = 512,
9365 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009366 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009367 .tested = TEST_UNTESTED,
9368 .probe = probe_spi_rdid,
9369 .probe_timing = TIMING_ZERO,
9370 .block_erasers =
9371 {
9372 {
9373 .eraseblocks = { {64 * 1024, 8} },
9374 .block_erase = spi_block_erase_d8,
9375 }, {
9376 .eraseblocks = { {512 * 1024, 1} },
9377 .block_erase = spi_block_erase_c7,
9378 }
9379 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009380 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009381 .unlock = spi_disable_blockprotect,
9382 .write = spi_chip_write_256,
9383 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009384 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009385 },
9386
9387 {
9388 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009389 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009390 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009391 .manufacture_id = SPANSION_ID,
9392 .model_id = SPANSION_S25FL008A,
9393 .total_size = 1024,
9394 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009395 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009396 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009397 .probe = probe_spi_rdid,
9398 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009399 .block_erasers =
9400 {
9401 {
9402 .eraseblocks = { {64 * 1024, 16} },
9403 .block_erase = spi_block_erase_d8,
9404 }, {
9405 .eraseblocks = { {1024 * 1024, 1} },
9406 .block_erase = spi_block_erase_c7,
9407 }
9408 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009409 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009410 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009411 .write = spi_chip_write_256,
9412 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009413 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009414 },
9415
9416 {
9417 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009418 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009419 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009420 .manufacture_id = SPANSION_ID,
9421 .model_id = SPANSION_S25FL016A,
9422 .total_size = 2048,
9423 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009424 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009425 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009426 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009427 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009428 .block_erasers =
9429 {
9430 {
9431 .eraseblocks = { {64 * 1024, 32} },
9432 .block_erase = spi_block_erase_d8,
9433 }, {
9434 .eraseblocks = { {2 * 1024 * 1024, 1} },
9435 .block_erase = spi_block_erase_c7,
9436 }
9437 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009438 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009439 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009440 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009441 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009442 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009443 },
9444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009445 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009446 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009447 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009448 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009449 .manufacture_id = SPANSION_ID,
9450 .model_id = SPANSION_S25FL032A,
9451 .total_size = 4096,
9452 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009453 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009454 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009455 .probe = probe_spi_rdid,
9456 .probe_timing = TIMING_ZERO,
9457 .block_erasers =
9458 {
9459 {
9460 .eraseblocks = { {64 * 1024, 64} },
9461 .block_erase = spi_block_erase_d8,
9462 }, {
9463 .eraseblocks = { {4 * 1024 * 1024, 1} },
9464 .block_erase = spi_block_erase_c7,
9465 }
9466 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009467 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009468 .unlock = spi_disable_blockprotect,
9469 .write = spi_chip_write_256,
9470 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009471 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009472 },
9473
9474 {
9475 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009476 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009477 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009478 .manufacture_id = SPANSION_ID,
9479 .model_id = SPANSION_S25FL064A,
9480 .total_size = 8192,
9481 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009482 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009483 .tested = TEST_OK_PREW,
9484 .probe = probe_spi_rdid,
9485 .probe_timing = TIMING_ZERO,
9486 .block_erasers =
9487 {
9488 {
9489 .eraseblocks = { {64 * 1024, 128} },
9490 .block_erase = spi_block_erase_d8,
9491 }, {
9492 .eraseblocks = { {8 * 1024 * 1024, 1} },
9493 .block_erase = spi_block_erase_c7,
9494 }
9495 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009496 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009497 .unlock = spi_disable_blockprotect,
9498 .write = spi_chip_write_256,
9499 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009500 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009501 },
9502
9503 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009504 .vendor = "Spansion",
9505 .name = "S25FL204K",
9506 .bustype = BUS_SPI,
9507 .manufacture_id = SPANSION_ID,
9508 .model_id = SPANSION_S25FL204,
9509 .total_size = 512,
9510 .page_size = 256,
9511 .feature_bits = FEATURE_WRSR_WREN,
9512 .tested = TEST_UNTESTED,
9513 .probe = probe_spi_rdid,
9514 .probe_timing = TIMING_ZERO,
9515 .block_erasers = {
9516 {
9517 .eraseblocks = { {4 * 1024, 128} },
9518 .block_erase = spi_block_erase_20,
9519 }, {
9520 .eraseblocks = { {64 * 1024, 8} },
9521 .block_erase = spi_block_erase_d8,
9522 }, {
9523 .eraseblocks = { { 512 * 1024, 1} },
9524 .block_erase = spi_block_erase_60,
9525 }, {
9526 .eraseblocks = { { 512 * 1024, 1} },
9527 .block_erase = spi_block_erase_c7,
9528 }
9529 },
9530 .printlock = spi_prettyprint_status_register_default_bp3,
9531 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9532 .write = spi_chip_write_256,
9533 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9534 .voltage = {2700, 3600},
9535 },
9536
9537 {
9538 .vendor = "Spansion",
9539 .name = "S25FL208K",
9540 .bustype = BUS_SPI,
9541 .manufacture_id = SPANSION_ID,
9542 .model_id = SPANSION_S25FL208,
9543 .total_size = 1024,
9544 .page_size = 256,
9545 .feature_bits = FEATURE_WRSR_WREN,
9546 .tested = TEST_UNTESTED,
9547 .probe = probe_spi_rdid,
9548 .probe_timing = TIMING_ZERO,
9549 .block_erasers = {
9550 {
9551 .eraseblocks = { {4 * 1024, 256} },
9552 .block_erase = spi_block_erase_20,
9553 }, {
9554 .eraseblocks = { {64 * 1024, 16} },
9555 .block_erase = spi_block_erase_d8,
9556 }, {
9557 .eraseblocks = { { 1024 * 1024, 1} },
9558 .block_erase = spi_block_erase_60,
9559 }, {
9560 .eraseblocks = { { 1024 * 1024, 1} },
9561 .block_erase = spi_block_erase_c7,
9562 }
9563 },
9564 .printlock = spi_prettyprint_status_register_default_bp3,
9565 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9566 .write = spi_chip_write_256,
9567 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9568 .voltage = {2700, 3600},
9569 },
9570
9571 {
9572 .vendor = "Spansion",
9573 .name = "S25FL116K/S25FL216K",
9574 .bustype = BUS_SPI,
9575 .manufacture_id = SPANSION_ID,
9576 .model_id = SPANSION_S25FL216,
9577 .total_size = 2048,
9578 .page_size = 256,
9579 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9580 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9581 .tested = TEST_UNTESTED,
9582 .probe = probe_spi_rdid,
9583 .probe_timing = TIMING_ZERO,
9584 .block_erasers = {
9585 {
9586 .eraseblocks = { {4 * 1024, 512} },
9587 .block_erase = spi_block_erase_20,
9588 }, {
9589 .eraseblocks = { {64 * 1024, 32} },
9590 .block_erase = spi_block_erase_d8,
9591 }, {
9592 .eraseblocks = { { 2048 * 1024, 1} },
9593 .block_erase = spi_block_erase_60,
9594 }, {
9595 .eraseblocks = { { 2048 * 1024, 1} },
9596 .block_erase = spi_block_erase_c7,
9597 }
9598 },
9599 .printlock = spi_prettyprint_status_register_default_bp3,
9600 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9601 .write = spi_chip_write_256,
9602 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9603 .voltage = {2700, 3600},
9604 },
9605
9606 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009607 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009608 .name = "S25FL132K",
9609 .bustype = BUS_SPI,
9610 .manufacture_id = SPANSION_ID,
9611 .model_id = SPANSION_S25FL132K,
9612 .total_size = 4096,
9613 .page_size = 256,
9614 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9615 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9616 .tested = TEST_UNTESTED,
9617 .probe = probe_spi_rdid,
9618 .probe_timing = TIMING_ZERO,
9619 .block_erasers = {
9620 {
9621 .eraseblocks = { {4 * 1024, 1024} },
9622 .block_erase = spi_block_erase_20,
9623 }, {
9624 .eraseblocks = { {64 * 1024, 64} },
9625 .block_erase = spi_block_erase_d8,
9626 }, {
9627 .eraseblocks = { { 4096 * 1024, 1} },
9628 .block_erase = spi_block_erase_60,
9629 }, {
9630 .eraseblocks = { { 4096 * 1024, 1} },
9631 .block_erase = spi_block_erase_c7,
9632 }
9633 },
9634 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9635 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9636 .write = spi_chip_write_256,
9637 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9638 .voltage = {2700, 3600},
9639 },
9640
9641 {
9642 .vendor = "Spansion",
9643 .name = "S25FL164K",
9644 .bustype = BUS_SPI,
9645 .manufacture_id = SPANSION_ID,
9646 .model_id = SPANSION_S25FL164K,
9647 .total_size = 8192,
9648 .page_size = 256,
9649 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9650 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9651 .tested = TEST_OK_PREW,
9652 .probe = probe_spi_rdid,
9653 .probe_timing = TIMING_ZERO,
9654 .block_erasers = {
9655 {
9656 .eraseblocks = { {4 * 1024, 2048} },
9657 .block_erase = spi_block_erase_20,
9658 }, {
9659 .eraseblocks = { {64 * 1024, 128} },
9660 .block_erase = spi_block_erase_d8,
9661 }, {
9662 .eraseblocks = { { 8192 * 1024, 1} },
9663 .block_erase = spi_block_erase_60,
9664 }, {
9665 .eraseblocks = { { 8192 * 1024, 1} },
9666 .block_erase = spi_block_erase_c7,
9667 }
9668 },
9669 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9670 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9671 .write = spi_chip_write_256,
9672 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9673 .voltage = {2700, 3600},
9674 },
9675
9676 {
9677 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009678 .name = "S25FL128S......0", /* uniform 256kB sectors */
9679 .bustype = BUS_SPI,
9680 .manufacture_id = SPANSION_ID,
9681 .model_id = SPANSION_S25FL128,
9682 .total_size = 16384,
9683 .page_size = 256,
9684 /* supports 4B addressing */
9685 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9686 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9687 .tested = TEST_UNTESTED,
9688 .probe = probe_spi_rdid,
9689 .probe_timing = TIMING_ZERO,
9690 .block_erasers = {
9691 {
9692 .eraseblocks = { {4 * 1024, 4096} },
9693 .block_erase = spi_block_erase_20,
9694 }, {
9695 .eraseblocks = { {256 * 1024, 64} },
9696 .block_erase = spi_block_erase_d8,
9697 }, {
9698 .eraseblocks = { { 16384 * 1024, 1} },
9699 .block_erase = spi_block_erase_60,
9700 }, {
9701 .eraseblocks = { { 16384 * 1024, 1} },
9702 .block_erase = spi_block_erase_c7,
9703 }
9704 },
9705 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9706 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9707 .write = spi_chip_write_256, /* Multi I/O supported */
9708 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9709 .voltage = {2700, 3600},
9710 },
9711
9712 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009713 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009714 .name = "SST25LF020A",
9715 .bustype = BUS_SPI,
9716 .manufacture_id = SST_ID,
9717 .model_id = SST_SST25VF020_REMS,
9718 .total_size = 256,
9719 .page_size = 256,
9720 .feature_bits = FEATURE_WRSR_EWSR,
9721 .tested = TEST_OK_PREW,
9722 .probe = probe_spi_rems,
9723 .probe_timing = TIMING_ZERO,
9724 .block_erasers =
9725 {
9726 {
9727 .eraseblocks = { {4 * 1024, 64} },
9728 .block_erase = spi_block_erase_20,
9729 }, {
9730 .eraseblocks = { {32 * 1024, 8} },
9731 .block_erase = spi_block_erase_52,
9732 }, {
9733 .eraseblocks = { {256 * 1024, 1} },
9734 .block_erase = spi_block_erase_60,
9735 },
9736 },
9737 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9738 .unlock = spi_disable_blockprotect,
9739 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9740 .read = spi_chip_read, /* Fast read (0x0B) supported */
9741 .voltage = {2700, 3600},
9742 },
9743
9744 {
9745 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009746 .name = "SST25LF040A",
9747 .bustype = BUS_SPI,
9748 .manufacture_id = SST_ID,
9749 .model_id = SST_SST25VF040_REMS,
9750 .total_size = 512,
9751 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009752 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009753 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009754 .probe = probe_spi_res2,
9755 .probe_timing = TIMING_ZERO,
9756 .block_erasers =
9757 {
9758 {
9759 .eraseblocks = { {4 * 1024, 128} },
9760 .block_erase = spi_block_erase_20,
9761 }, {
9762 .eraseblocks = { {32 * 1024, 16} },
9763 .block_erase = spi_block_erase_52,
9764 }, {
9765 .eraseblocks = { {512 * 1024, 1} },
9766 .block_erase = spi_block_erase_60,
9767 },
9768 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009769 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009770 .unlock = spi_disable_blockprotect,
9771 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9772 .read = spi_chip_read,
9773 .voltage = {3000, 3600},
9774 },
9775
9776 {
9777 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009778 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009779 .bustype = BUS_SPI,
9780 .manufacture_id = SST_ID,
9781 .model_id = SST_SST25VF080_REMS,
9782 .total_size = 1024,
9783 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009784 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009785 .tested = TEST_UNTESTED,
9786 .probe = probe_spi_res2,
9787 .probe_timing = TIMING_ZERO,
9788 .block_erasers =
9789 {
9790 {
9791 .eraseblocks = { {4 * 1024, 256} },
9792 .block_erase = spi_block_erase_20,
9793 }, {
9794 .eraseblocks = { {32 * 1024, 32} },
9795 .block_erase = spi_block_erase_52,
9796 }, {
9797 .eraseblocks = { {1024 * 1024, 1} },
9798 .block_erase = spi_block_erase_60,
9799 },
9800 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009801 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009802 .unlock = spi_disable_blockprotect,
9803 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9804 .read = spi_chip_read,
9805 .voltage = {3000, 3600},
9806 },
9807
9808 {
9809 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +00009810 .name = "SST25VF512A",
9811 .bustype = BUS_SPI,
9812 .manufacture_id = SST_ID,
9813 .model_id = SST_SST25VF512A_REMS,
9814 .total_size = 64,
9815 .page_size = 256,
9816 .feature_bits = FEATURE_WRSR_EWSR,
9817 .tested = TEST_OK_PREW,
9818 .probe = probe_spi_rems,
9819 .probe_timing = TIMING_ZERO,
9820 .block_erasers =
9821 {
9822 {
9823 .eraseblocks = { {4 * 1024, 16} },
9824 .block_erase = spi_block_erase_20,
9825 }, {
9826 .eraseblocks = { {32 * 1024, 2} },
9827 .block_erase = spi_block_erase_52,
9828 }, {
9829 .eraseblocks = { {32 * 1024, 2} },
9830 .block_erase = spi_block_erase_d8,
9831 }, {
9832 .eraseblocks = { {64 * 1024, 1} },
9833 .block_erase = spi_block_erase_60,
9834 }, {
9835 .eraseblocks = { {64 * 1024, 1} },
9836 .block_erase = spi_block_erase_c7,
9837 },
9838 },
9839 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9840 .unlock = spi_disable_blockprotect,
9841 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9842 .read = spi_chip_read, /* Fast read (0x0B) supported */
9843 .voltage = {2700, 3600},
9844 },
9845
9846 {
9847 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009848 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009849 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009850 .manufacture_id = SST_ID,
9851 .model_id = SST_SST25VF010_REMS,
9852 .total_size = 128,
9853 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009854 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009855 .tested = TEST_OK_PREW,
9856 .probe = probe_spi_rems,
9857 .probe_timing = TIMING_ZERO,
9858 .block_erasers =
9859 {
9860 {
9861 .eraseblocks = { {4 * 1024, 32} },
9862 .block_erase = spi_block_erase_20,
9863 }, {
9864 .eraseblocks = { {32 * 1024, 4} },
9865 .block_erase = spi_block_erase_52,
9866 }, {
Cory Henderson370f5822013-10-19 23:09:16 +00009867 .eraseblocks = { {32 * 1024, 4} },
9868 .block_erase = spi_block_erase_d8,
9869 }, {
Mark Marshall90021f22010-12-03 14:48:11 +00009870 .eraseblocks = { {128 * 1024, 1} },
9871 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +00009872 }, {
9873 .eraseblocks = { {128 * 1024, 1} },
9874 .block_erase = spi_block_erase_c7,
9875 },
9876 },
9877 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9878 .unlock = spi_disable_blockprotect,
9879 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9880 .read = spi_chip_read, /* Fast read (0x0B) supported */
9881 .voltage = {2700, 3600},
9882 },
9883
9884 {
9885 .vendor = "SST",
9886 .name = "SST25VF020",
9887 .bustype = BUS_SPI,
9888 .manufacture_id = SST_ID,
9889 .model_id = SST_SST25VF020_REMS,
9890 .total_size = 256,
9891 .page_size = 256,
9892 .feature_bits = FEATURE_WRSR_EWSR,
9893 .tested = TEST_UNTESTED,
9894 .probe = probe_spi_rems,
9895 .probe_timing = TIMING_ZERO,
9896 .block_erasers =
9897 {
9898 {
9899 .eraseblocks = { {4 * 1024, 64} },
9900 .block_erase = spi_block_erase_20,
9901 }, {
9902 .eraseblocks = { {32 * 1024, 8} },
9903 .block_erase = spi_block_erase_52,
9904 }, {
9905 .eraseblocks = { {256 * 1024, 1} },
9906 .block_erase = spi_block_erase_60,
9907 },
9908 },
9909 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9910 .unlock = spi_disable_blockprotect,
9911 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9912 .read = spi_chip_read, /* only */
9913 .voltage = {2700, 3600},
9914 },
9915
9916 {
9917 .vendor = "SST",
9918 .name = "SST25VF020B",
9919 .bustype = BUS_SPI,
9920 .manufacture_id = SST_ID,
9921 .model_id = SST_SST25VF020B,
9922 .total_size = 256,
9923 .page_size = 256,
9924 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009925 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +00009926 .probe = probe_spi_rdid,
9927 .probe_timing = TIMING_ZERO,
9928 .block_erasers =
9929 {
9930 {
9931 .eraseblocks = { {4 * 1024, 64} },
9932 .block_erase = spi_block_erase_20,
9933 }, {
9934 .eraseblocks = { {32 * 1024, 8} },
9935 .block_erase = spi_block_erase_52,
9936 }, {
9937 .eraseblocks = { {64 * 1024, 4} },
9938 .block_erase = spi_block_erase_d8,
9939 }, {
9940 .eraseblocks = { {256 * 1024, 1} },
9941 .block_erase = spi_block_erase_60,
9942 }, {
9943 .eraseblocks = { {256 * 1024, 1} },
9944 .block_erase = spi_block_erase_c7,
9945 },
9946 },
9947 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
9948 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
9949 .write = spi_aai_write, /* AAI supported (0xAD) */
9950 .read = spi_chip_read, /* Fast read (0x0B) supported */
9951 .voltage = {2700, 3600},
9952 },
9953
9954 {
9955 .vendor = "SST",
9956 .name = "SST25VF040",
9957 .bustype = BUS_SPI,
9958 .manufacture_id = SST_ID,
9959 .model_id = SST_SST25VF040_REMS,
9960 .total_size = 512,
9961 .page_size = 256,
9962 .feature_bits = FEATURE_WRSR_EWSR,
9963 .tested = TEST_OK_PR,
9964 .probe = probe_spi_rems,
9965 .probe_timing = TIMING_ZERO,
9966 .block_erasers =
9967 {
9968 {
9969 .eraseblocks = { {4 * 1024, 128} },
9970 .block_erase = spi_block_erase_20,
9971 }, {
9972 .eraseblocks = { {32 * 1024, 16} },
9973 .block_erase = spi_block_erase_52,
9974 }, {
9975 .eraseblocks = { {512 * 1024, 1} },
9976 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +00009977 },
9978 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009979 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009980 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +00009981 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9982 .read = spi_chip_read,
9983 .voltage = {2700, 3600},
9984 },
9985
9986 {
9987 .vendor = "SST",
9988 .name = "SST25VF040B",
9989 .bustype = BUS_SPI,
9990 .manufacture_id = SST_ID,
9991 .model_id = SST_SST25VF040B,
9992 .total_size = 512,
9993 .page_size = 256,
9994 .feature_bits = FEATURE_WRSR_EWSR,
9995 .tested = TEST_OK_PREW,
9996 .probe = probe_spi_rdid,
9997 .probe_timing = TIMING_ZERO,
9998 .block_erasers =
9999 {
10000 {
10001 .eraseblocks = { {4 * 1024, 128} },
10002 .block_erase = spi_block_erase_20,
10003 }, {
10004 .eraseblocks = { {32 * 1024, 16} },
10005 .block_erase = spi_block_erase_52,
10006 }, {
10007 .eraseblocks = { {64 * 1024, 8} },
10008 .block_erase = spi_block_erase_d8,
10009 }, {
10010 .eraseblocks = { {512 * 1024, 1} },
10011 .block_erase = spi_block_erase_60,
10012 }, {
10013 .eraseblocks = { {512 * 1024, 1} },
10014 .block_erase = spi_block_erase_c7,
10015 },
10016 },
10017 .printlock = spi_prettyprint_status_register_sst25vf040b,
10018 .unlock = spi_disable_blockprotect,
10019 .write = spi_aai_write, /* AAI supported (0xAD) */
10020 .read = spi_chip_read, /* Fast read (0x0B) supported */
10021 .voltage = {2700, 3600},
10022 },
10023
10024 {
10025 .vendor = "SST",
10026 .name = "SST25VF040B.REMS",
10027 .bustype = BUS_SPI,
10028 .manufacture_id = SST_ID,
10029 .model_id = SST_SST25VF040B_REMS,
10030 .total_size = 512,
10031 .page_size = 256,
10032 .feature_bits = FEATURE_WRSR_EWSR,
10033 .tested = TEST_OK_PREW,
10034 .probe = probe_spi_rems,
10035 .probe_timing = TIMING_ZERO,
10036 .block_erasers =
10037 {
10038 {
10039 .eraseblocks = { {4 * 1024, 128} },
10040 .block_erase = spi_block_erase_20,
10041 }, {
10042 .eraseblocks = { {32 * 1024, 16} },
10043 .block_erase = spi_block_erase_52,
10044 }, {
10045 .eraseblocks = { {64 * 1024, 8} },
10046 .block_erase = spi_block_erase_d8,
10047 }, {
10048 .eraseblocks = { {512 * 1024, 1} },
10049 .block_erase = spi_block_erase_60,
10050 }, {
10051 .eraseblocks = { {512 * 1024, 1} },
10052 .block_erase = spi_block_erase_c7,
10053 },
10054 },
10055 .printlock = spi_prettyprint_status_register_sst25vf040b,
10056 .unlock = spi_disable_blockprotect,
10057 .write = spi_aai_write,
10058 .read = spi_chip_read,
10059 .voltage = {2700, 3600},
10060 },
10061
10062 {
10063 .vendor = "SST",
10064 .name = "SST25VF080B",
10065 .bustype = BUS_SPI,
10066 .manufacture_id = SST_ID,
10067 .model_id = SST_SST25VF080B,
10068 .total_size = 1024,
10069 .page_size = 256,
10070 .feature_bits = FEATURE_WRSR_EWSR,
10071 .tested = TEST_OK_PREW,
10072 .probe = probe_spi_rdid,
10073 .probe_timing = TIMING_ZERO,
10074 .block_erasers =
10075 {
10076 {
10077 .eraseblocks = { {4 * 1024, 256} },
10078 .block_erase = spi_block_erase_20,
10079 }, {
10080 .eraseblocks = { {32 * 1024, 32} },
10081 .block_erase = spi_block_erase_52,
10082 }, {
10083 .eraseblocks = { {64 * 1024, 16} },
10084 .block_erase = spi_block_erase_d8,
10085 }, {
10086 .eraseblocks = { {1024 * 1024, 1} },
10087 .block_erase = spi_block_erase_60,
10088 }, {
10089 .eraseblocks = { {1024 * 1024, 1} },
10090 .block_erase = spi_block_erase_c7,
10091 },
10092 },
10093 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10094 .unlock = spi_disable_blockprotect,
10095 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010096 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010097 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010098 },
10099
10100 {
10101 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010102 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010103 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010104 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010105 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010106 .total_size = 2048,
10107 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010108 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010109 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010110 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010111 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010112 .block_erasers =
10113 {
10114 {
10115 .eraseblocks = { {4 * 1024, 512} },
10116 .block_erase = spi_block_erase_20,
10117 }, {
10118 .eraseblocks = { {32 * 1024, 64} },
10119 .block_erase = spi_block_erase_52,
10120 }, {
10121 .eraseblocks = { {64 * 1024, 32} },
10122 .block_erase = spi_block_erase_d8,
10123 }, {
10124 .eraseblocks = { {2 * 1024 * 1024, 1} },
10125 .block_erase = spi_block_erase_60,
10126 }, {
10127 .eraseblocks = { {2 * 1024 * 1024, 1} },
10128 .block_erase = spi_block_erase_c7,
10129 },
10130 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010131 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010132 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010133 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010134 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010135 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010136 },
10137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010138 {
10139 .vendor = "SST",
10140 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010141 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010142 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010143 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010144 .total_size = 4096,
10145 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010146 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010147 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010148 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010149 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010150 .block_erasers =
10151 {
10152 {
10153 .eraseblocks = { {4 * 1024, 1024} },
10154 .block_erase = spi_block_erase_20,
10155 }, {
10156 .eraseblocks = { {32 * 1024, 128} },
10157 .block_erase = spi_block_erase_52,
10158 }, {
10159 .eraseblocks = { {64 * 1024, 64} },
10160 .block_erase = spi_block_erase_d8,
10161 }, {
10162 .eraseblocks = { {4 * 1024 * 1024, 1} },
10163 .block_erase = spi_block_erase_60,
10164 }, {
10165 .eraseblocks = { {4 * 1024 * 1024, 1} },
10166 .block_erase = spi_block_erase_c7,
10167 },
10168 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010169 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010170 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010171 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010172 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010173 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010174 },
10175
10176 {
10177 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010178 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010179 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010180 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010181 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010182 .total_size = 8192,
10183 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010184 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010185 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010186 .probe = probe_spi_rdid,
10187 .probe_timing = TIMING_ZERO,
10188 .block_erasers =
10189 {
10190 {
10191 .eraseblocks = { {4 * 1024, 2048} },
10192 .block_erase = spi_block_erase_20,
10193 }, {
10194 .eraseblocks = { {32 * 1024, 256} },
10195 .block_erase = spi_block_erase_52,
10196 }, {
10197 .eraseblocks = { {64 * 1024, 128} },
10198 .block_erase = spi_block_erase_d8,
10199 }, {
10200 .eraseblocks = { {8 * 1024 * 1024, 1} },
10201 .block_erase = spi_block_erase_60,
10202 }, {
10203 .eraseblocks = { {8 * 1024 * 1024, 1} },
10204 .block_erase = spi_block_erase_c7,
10205 },
10206 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010207 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010208 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010209 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010210 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010211 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010212 },
10213
10214 {
10215 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010216 .name = "SST25WF512",
10217 .bustype = BUS_SPI,
10218 .manufacture_id = SST_ID,
10219 .model_id = SST_SST25WF512,
10220 .total_size = 64,
10221 .page_size = 256,
10222 .feature_bits = FEATURE_WRSR_EITHER,
10223 .tested = TEST_UNTESTED,
10224 .probe = probe_spi_rdid,
10225 .probe_timing = TIMING_ZERO,
10226 .block_erasers =
10227 {
10228 {
10229 .eraseblocks = { {4 * 1024, 16} },
10230 .block_erase = spi_block_erase_20,
10231 }, {
10232 .eraseblocks = { {32 * 1024, 2} },
10233 .block_erase = spi_block_erase_52,
10234 }, {
10235 .eraseblocks = { {1024 * 64, 1} },
10236 .block_erase = spi_block_erase_60,
10237 }, {
10238 .eraseblocks = { {1024 * 64, 1} },
10239 .block_erase = spi_block_erase_c7,
10240 },
10241 },
Jason Harper43ddef02014-05-04 00:55:24 +000010242 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10243 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010244 .write = spi_aai_write,
10245 .read = spi_chip_read, /* Fast read (0x0B) supported */
10246 .voltage = {1650, 1950},
10247 },
10248
10249 {
10250 .vendor = "SST",
10251 .name = "SST25WF010",
10252 .bustype = BUS_SPI,
10253 .manufacture_id = SST_ID,
10254 .model_id = SST_SST25WF010,
10255 .total_size = 128,
10256 .page_size = 256,
10257 .feature_bits = FEATURE_WRSR_EITHER,
10258 .tested = TEST_UNTESTED,
10259 .probe = probe_spi_rdid,
10260 .probe_timing = TIMING_ZERO,
10261 .block_erasers =
10262 {
10263 {
10264 .eraseblocks = { {4 * 1024, 32} },
10265 .block_erase = spi_block_erase_20,
10266 }, {
10267 .eraseblocks = { {32 * 1024, 4} },
10268 .block_erase = spi_block_erase_52,
10269 }, {
10270 .eraseblocks = { {1024 * 128, 1} },
10271 .block_erase = spi_block_erase_60,
10272 }, {
10273 .eraseblocks = { {1024 * 128, 1} },
10274 .block_erase = spi_block_erase_c7,
10275 },
10276 },
Jason Harper43ddef02014-05-04 00:55:24 +000010277 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10278 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010279 .write = spi_aai_write,
10280 .read = spi_chip_read, /* Fast read (0x0B) supported */
10281 .voltage = {1650, 1950},
10282 },
10283
10284 {
10285 .vendor = "SST",
10286 .name = "SST25WF020",
10287 .bustype = BUS_SPI,
10288 .manufacture_id = SST_ID,
10289 .model_id = SST_SST25WF020,
10290 .total_size = 256,
10291 .page_size = 256,
10292 .feature_bits = FEATURE_WRSR_EITHER,
10293 .tested = TEST_UNTESTED,
10294 .probe = probe_spi_rdid,
10295 .probe_timing = TIMING_ZERO,
10296 .block_erasers =
10297 {
10298 {
10299 .eraseblocks = { {4 * 1024, 64} },
10300 .block_erase = spi_block_erase_20,
10301 }, {
10302 .eraseblocks = { {32 * 1024, 8} },
10303 .block_erase = spi_block_erase_52,
10304 }, {
10305 .eraseblocks = { {64 * 1024, 4} },
10306 .block_erase = spi_block_erase_d8,
10307 }, {
10308 .eraseblocks = { {1024 * 256, 1} },
10309 .block_erase = spi_block_erase_60,
10310 }, {
10311 .eraseblocks = { {1024 * 256, 1} },
10312 .block_erase = spi_block_erase_c7,
10313 },
10314 },
Jason Harper43ddef02014-05-04 00:55:24 +000010315 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10316 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010317 .write = spi_aai_write,
10318 .read = spi_chip_read, /* Fast read (0x0B) supported */
10319 .voltage = {1650, 1950},
10320 },
10321
10322 {
10323 .vendor = "SST",
10324 .name = "SST25WF040",
10325 .bustype = BUS_SPI,
10326 .manufacture_id = SST_ID,
10327 .model_id = SST_SST25WF040,
10328 .total_size = 512,
10329 .page_size = 256,
10330 .feature_bits = FEATURE_WRSR_EITHER,
10331 .tested = TEST_UNTESTED,
10332 .probe = probe_spi_rdid,
10333 .probe_timing = TIMING_ZERO,
10334 .block_erasers =
10335 {
10336 {
10337 .eraseblocks = { {4 * 1024, 128} },
10338 .block_erase = spi_block_erase_20,
10339 }, {
10340 .eraseblocks = { {32 * 1024, 16} },
10341 .block_erase = spi_block_erase_52,
10342 }, {
10343 .eraseblocks = { {64 * 1024, 8} },
10344 .block_erase = spi_block_erase_d8,
10345 }, {
10346 .eraseblocks = { {1024 * 512, 1} },
10347 .block_erase = spi_block_erase_60,
10348 }, {
10349 .eraseblocks = { {1024 * 512, 1} },
10350 .block_erase = spi_block_erase_c7,
10351 },
10352 },
Jason Harper43ddef02014-05-04 00:55:24 +000010353 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10354 .unlock = spi_disable_blockprotect_bp2_srwd,
10355 .write = spi_aai_write,
10356 .read = spi_chip_read, /* Fast read (0x0B) supported */
10357 .voltage = {1650, 1950},
10358 },
10359
10360 {
10361 .vendor = "SST",
10362 .name = "SST25WF080",
10363 .bustype = BUS_SPI,
10364 .manufacture_id = SST_ID,
10365 .model_id = SST_SST25WF080,
10366 .total_size = 1024,
10367 .page_size = 256,
10368 .feature_bits = FEATURE_WRSR_EITHER,
10369 .tested = TEST_OK_PREW,
10370 .probe = probe_spi_rdid,
10371 .probe_timing = TIMING_ZERO,
10372 .block_erasers =
10373 {
10374 {
10375 .eraseblocks = { {4 * 1024, 256} },
10376 .block_erase = spi_block_erase_20,
10377 }, {
10378 .eraseblocks = { {32 * 1024, 32} },
10379 .block_erase = spi_block_erase_52,
10380 }, {
10381 .eraseblocks = { {64 * 1024, 16} },
10382 .block_erase = spi_block_erase_d8,
10383 }, {
10384 .eraseblocks = { {1024 * 1024, 1} },
10385 .block_erase = spi_block_erase_60,
10386 }, {
10387 .eraseblocks = { {1024 * 1024, 1} },
10388 .block_erase = spi_block_erase_c7,
10389 },
10390 },
10391 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10392 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010393 .write = spi_aai_write,
10394 .read = spi_chip_read, /* Fast read (0x0B) supported */
10395 .voltage = {1650, 1950},
10396 },
10397
10398 {
10399 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010400 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010401 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010402 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010403 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010404 .total_size = 512,
10405 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010406 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010407 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010408 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010409 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010410 .block_erasers =
10411 {
10412 {
10413 .eraseblocks = { {128, 4096} },
10414 .block_erase = erase_sector_28sf040,
10415 }, {
10416 .eraseblocks = { {512 * 1024, 1} },
10417 .block_erase = erase_chip_28sf040,
10418 }
10419 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010420 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010421 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010422 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010423 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010424 },
10425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010426 {
10427 .vendor = "SST",
10428 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010429 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010430 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010431 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010432 .total_size = 128,
10433 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010434 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010435 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010436 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010437 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010438 .block_erasers =
10439 {
10440 {
10441 .eraseblocks = { {128 * 1024, 1} },
10442 .block_erase = erase_chip_block_jedec,
10443 }
10444 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010445 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010447 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010448 },
10449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010450 {
10451 .vendor = "SST",
10452 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010453 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010454 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010455 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010456 .total_size = 128,
10457 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010458 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010459 .tested = TEST_UNTESTED,
10460 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010461 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010462 .block_erasers =
10463 {
10464 {
10465 .eraseblocks = { {128 * 1024, 1} },
10466 .block_erase = erase_chip_block_jedec,
10467 }
10468 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010469 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010470 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010471 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010472 },
10473
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010474 {
10475 .vendor = "SST",
10476 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010477 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010478 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010479 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010480 .total_size = 256,
10481 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010482 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010483 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010484 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010485 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010486 .block_erasers =
10487 {
10488 {
10489 .eraseblocks = { {256 * 1024, 1} },
10490 .block_erase = erase_chip_block_jedec,
10491 }
10492 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010493 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010495 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010496 },
10497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010498 {
10499 .vendor = "SST",
10500 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010501 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010502 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010503 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010504 .total_size = 256,
10505 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010506 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010507 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010508 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010509 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010510 .block_erasers =
10511 {
10512 {
10513 .eraseblocks = { {256 * 1024, 1} },
10514 .block_erase = erase_chip_block_jedec,
10515 }
10516 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010517 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010518 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010519 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010520 },
10521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010522 {
10523 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010524 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010525 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010526 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010527 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010528 .total_size = 64,
10529 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010530 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010531 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010532 .probe = probe_jedec,
10533 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010534 .block_erasers =
10535 {
10536 {
10537 .eraseblocks = { {4 * 1024, 16} },
10538 .block_erase = erase_sector_jedec,
10539 }, {
10540 .eraseblocks = { {64 * 1024, 1} },
10541 .block_erase = erase_chip_block_jedec,
10542 }
10543 },
Sean Nelson35727f72010-01-28 23:55:12 +000010544 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010545 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010546 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010547 },
10548
10549 {
10550 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010551 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010552 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010553 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010554 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010555 .total_size = 128,
10556 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010557 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010558 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010559 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010560 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010561 .block_erasers =
10562 {
10563 {
10564 .eraseblocks = { {4 * 1024, 32} },
10565 .block_erase = erase_sector_jedec,
10566 }, {
10567 .eraseblocks = { {128 * 1024, 1} },
10568 .block_erase = erase_chip_block_jedec,
10569 }
10570 },
Sean Nelson35727f72010-01-28 23:55:12 +000010571 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010573 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010574 },
10575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010576 {
10577 .vendor = "SST",
10578 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010579 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010580 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010581 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010582 .total_size = 256,
10583 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010584 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010585 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010586 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010587 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010588 .block_erasers =
10589 {
10590 {
10591 .eraseblocks = { {4 * 1024, 64} },
10592 .block_erase = erase_sector_jedec,
10593 }, {
10594 .eraseblocks = { {256 * 1024, 1} },
10595 .block_erase = erase_chip_block_jedec,
10596 }
10597 },
Sean Nelson35727f72010-01-28 23:55:12 +000010598 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010600 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010601 },
10602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010603 {
10604 .vendor = "SST",
10605 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010606 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010607 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010608 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010609 .total_size = 512,
10610 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010611 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010613 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010614 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010615 .block_erasers =
10616 {
10617 {
10618 .eraseblocks = { {4 * 1024, 128} },
10619 .block_erase = erase_sector_jedec,
10620 }, {
10621 .eraseblocks = { {512 * 1024, 1} },
10622 .block_erase = erase_chip_block_jedec,
10623 }
10624 },
Sean Nelson35727f72010-01-28 23:55:12 +000010625 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010626 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010627 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010628 },
10629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010630 {
10631 .vendor = "SST",
10632 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010633 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010634 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010635 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010636 .total_size = 64,
10637 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010638 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010639 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010640 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010641 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010642 .block_erasers =
10643 {
10644 {
10645 .eraseblocks = { {4 * 1024, 16} },
10646 .block_erase = erase_sector_jedec,
10647 }, {
10648 .eraseblocks = { {64 * 1024, 1} },
10649 .block_erase = erase_chip_block_jedec,
10650 }
10651 },
Sean Nelson35727f72010-01-28 23:55:12 +000010652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010654 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010655 },
10656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010657 {
10658 .vendor = "SST",
10659 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010660 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010661 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010662 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010663 .total_size = 128,
10664 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010665 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010666 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010667 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010668 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010669 .block_erasers =
10670 {
10671 {
10672 .eraseblocks = { {4 * 1024, 32} },
10673 .block_erase = erase_sector_jedec,
10674 }, {
10675 .eraseblocks = { {128 * 1024, 1} },
10676 .block_erase = erase_chip_block_jedec,
10677 }
10678 },
Sean Nelson35727f72010-01-28 23:55:12 +000010679 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010681 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010682 },
10683
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010684 {
10685 .vendor = "SST",
10686 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010687 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010688 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010689 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010690 .total_size = 256,
10691 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010692 .feature_bits = FEATURE_EITHER_RESET,
10693 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010694 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010695 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010696 .block_erasers =
10697 {
10698 {
10699 .eraseblocks = { {4 * 1024, 64} },
10700 .block_erase = erase_sector_jedec,
10701 }, {
10702 .eraseblocks = { {256 * 1024, 1} },
10703 .block_erase = erase_chip_block_jedec,
10704 }
10705 },
Sean Nelson35727f72010-01-28 23:55:12 +000010706 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010708 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010709 },
10710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010711 {
10712 .vendor = "SST",
10713 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010714 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010715 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010716 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010717 .total_size = 512,
10718 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010719 .feature_bits = FEATURE_EITHER_RESET,
10720 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010721 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010722 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010723 .block_erasers =
10724 {
10725 {
10726 .eraseblocks = { {4 * 1024, 128} },
10727 .block_erase = erase_sector_jedec,
10728 }, {
10729 .eraseblocks = { {512 * 1024, 1} },
10730 .block_erase = erase_chip_block_jedec,
10731 }
10732 },
Sean Nelson35727f72010-01-28 23:55:12 +000010733 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010734 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010735 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010736 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010738 {
10739 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010740 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010741 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010742 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010743 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010744 .total_size = 1024,
10745 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010746 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010747 .tested = TEST_UNTESTED,
10748 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010749 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010750 .block_erasers =
10751 {
10752 {
10753 .eraseblocks = { {4 * 1024, 256} },
10754 .block_erase = erase_sector_jedec,
10755 }, {
10756 .eraseblocks = { {64 * 1024, 16} },
10757 .block_erase = erase_block_jedec,
10758 }, {
10759 .eraseblocks = { {1024 * 1024, 1} },
10760 .block_erase = erase_chip_block_jedec,
10761 }
10762 },
Sean Nelson35727f72010-01-28 23:55:12 +000010763 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010765 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010766 },
10767
10768 {
10769 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010770 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010771 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010772 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010773 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010774 .total_size = 256,
10775 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010776 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010777 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010778 .probe = probe_jedec,
10779 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010780 .block_erasers =
10781 {
10782 {
10783 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010784 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010785 }, {
10786 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010787 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010788 }, {
10789 .eraseblocks = { {256 * 1024, 1} },
10790 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10791 }
10792 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010793 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010794 .unlock = unlock_sst_fwhub,
10795 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010797 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010798 },
10799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010800 {
10801 .vendor = "SST",
10802 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010803 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010804 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010805 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010806 .total_size = 384,
10807 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010808 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010809 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010810 .probe = probe_jedec,
10811 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010812 .block_erasers =
10813 {
10814 {
10815 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010816 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010817 }, {
10818 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010819 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010820 }, {
10821 .eraseblocks = { {384 * 1024, 1} },
10822 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10823 }
10824 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010825 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010826 .unlock = unlock_sst_fwhub,
10827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010829 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010830 },
10831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010832 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010833 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10834 * and is only honored for 64k block erase, but not 4k sector erase.
10835 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010836 .vendor = "SST",
10837 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010838 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010839 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010840 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010841 .total_size = 512,
10842 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010843 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010844 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010845 .probe = probe_jedec,
10846 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010847 .block_erasers =
10848 {
10849 {
10850 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010851 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010852 }, {
10853 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010854 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010855 }, {
10856 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010857 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010858 },
10859 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010860 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010861 .unlock = unlock_sst_fwhub,
10862 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010863 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010864 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010865 },
10866
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010867 {
10868 .vendor = "SST",
10869 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010870 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010871 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010872 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010873 .total_size = 512,
10874 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010875 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010876 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010877 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010878 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010879 .block_erasers =
10880 {
10881 {
10882 .eraseblocks = { {4 * 1024, 128} },
10883 .block_erase = erase_sector_49lfxxxc,
10884 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010885 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010886 {64 * 1024, 7},
10887 {32 * 1024, 1},
10888 {8 * 1024, 2},
10889 {16 * 1024, 1},
10890 },
Sean Nelson69e58112010-03-23 17:10:28 +000010891 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010892 }
10893 },
Sean Nelson69e58112010-03-23 17:10:28 +000010894 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010895 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010897 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010898 },
10899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010900 {
10901 .vendor = "SST",
10902 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010903 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010904 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010905 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010906 .total_size = 1024,
10907 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010908 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010909 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010910 .probe = probe_jedec,
10911 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010912 .block_erasers =
10913 {
10914 {
10915 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010916 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010917 }, {
10918 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010919 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010920 }, {
10921 .eraseblocks = { {1024 * 1024, 1} },
10922 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10923 }
10924 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010925 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010926 .unlock = unlock_sst_fwhub,
10927 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010928 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010929 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010930 },
10931
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010932 {
10933 .vendor = "SST",
10934 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010935 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010936 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010937 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010938 .total_size = 1024,
10939 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010940 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010941 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010942 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010943 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010944 .block_erasers =
10945 {
10946 {
10947 .eraseblocks = { {4 * 1024, 256} },
10948 .block_erase = erase_sector_49lfxxxc,
10949 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010950 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010951 {64 * 1024, 15},
10952 {32 * 1024, 1},
10953 {8 * 1024, 2},
10954 {16 * 1024, 1},
10955 },
Sean Nelson69e58112010-03-23 17:10:28 +000010956 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010957 }
10958 },
Sean Nelson69e58112010-03-23 17:10:28 +000010959 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010960 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010961 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010962 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010963 },
10964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010965 {
10966 .vendor = "SST",
10967 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010968 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010969 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010970 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010971 .total_size = 2048,
10972 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010973 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010974 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010975 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010976 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010977 .block_erasers =
10978 {
10979 {
10980 .eraseblocks = { {4 * 1024, 512} },
10981 .block_erase = erase_sector_49lfxxxc,
10982 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010983 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010984 {64 * 1024, 31},
10985 {32 * 1024, 1},
10986 {8 * 1024, 2},
10987 {16 * 1024, 1},
10988 },
Sean Nelson69e58112010-03-23 17:10:28 +000010989 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010990 }
10991 },
Sean Nelson69e58112010-03-23 17:10:28 +000010992 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010993 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010995 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010996 },
10997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010998 {
10999 .vendor = "SST",
11000 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011001 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011002 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011003 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011004 .total_size = 256,
11005 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011006 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000011007 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011008 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011009 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011010 .block_erasers =
11011 {
11012 {
11013 .eraseblocks = { {4 * 1024, 64} },
11014 .block_erase = erase_sector_jedec,
11015 }, {
11016 .eraseblocks = { {16 * 1024, 16} },
11017 .block_erase = erase_block_jedec,
11018 }, {
11019 .eraseblocks = { {256 * 1024, 1} },
11020 .block_erase = NULL,
11021 }
11022 },
Sean Nelson35727f72010-01-28 23:55:12 +000011023 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011024 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011025 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000011026 },
11027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011028 {
11029 .vendor = "SST",
11030 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011031 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011032 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011033 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011034 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011035 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011036 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011037 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011038 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011039 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011040 .block_erasers =
11041 {
11042 {
11043 .eraseblocks = { {4 * 1024, 64} },
11044 .block_erase = erase_sector_jedec,
11045 }, {
11046 .eraseblocks = { {16 * 1024, 16} },
11047 .block_erase = erase_block_jedec,
11048 }, {
11049 .eraseblocks = { {256 * 1024, 1} },
11050 .block_erase = NULL,
11051 }
11052 },
Sean Nelson35727f72010-01-28 23:55:12 +000011053 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011055 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011056 },
11057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011058 {
11059 .vendor = "SST",
11060 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011061 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011062 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011063 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011064 .total_size = 512,
11065 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011066 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011067 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011068 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011069 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011070 .block_erasers =
11071 {
11072 {
11073 .eraseblocks = { {4 * 1024, 128} },
11074 .block_erase = erase_sector_jedec,
11075 }, {
11076 .eraseblocks = { {64 * 1024, 8} },
11077 .block_erase = erase_block_jedec,
11078 }, {
11079 .eraseblocks = { {512 * 1024, 1} },
11080 .block_erase = NULL,
11081 }
11082 },
Sean Nelson35727f72010-01-28 23:55:12 +000011083 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011084 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011085 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011086 },
11087
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011088 {
11089 .vendor = "SST",
11090 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011091 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011092 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011093 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011094 .total_size = 512,
11095 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011096 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011097 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011098 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011099 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011100 .block_erasers =
11101 {
11102 {
11103 .eraseblocks = { {4 * 1024, 128} },
11104 .block_erase = erase_sector_jedec,
11105 }, {
11106 .eraseblocks = { {64 * 1024, 8} },
11107 .block_erase = erase_block_jedec,
11108 }, {
11109 .eraseblocks = { {512 * 1024, 1} },
11110 .block_erase = NULL,
11111 }
11112 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011113 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000011114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011115 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011116 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011117 },
11118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011119 {
11120 .vendor = "SST",
11121 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011122 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011123 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011124 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011125 .total_size = 1024,
11126 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011127 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011128 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011129 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011130 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011131 .block_erasers =
11132 {
11133 {
11134 .eraseblocks = { {4 * 1024, 256} },
11135 .block_erase = erase_sector_jedec,
11136 }, {
11137 .eraseblocks = { {64 * 1024, 16} },
11138 .block_erase = erase_block_jedec,
11139 }, {
11140 .eraseblocks = { {1024 * 1024, 1} },
11141 .block_erase = NULL,
11142 }
11143 },
Sean Nelson35727f72010-01-28 23:55:12 +000011144 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011145 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011146 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011147 },
11148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011149 {
11150 .vendor = "SST",
11151 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011152 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011153 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011154 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011155 .total_size = 2048,
11156 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011157 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011158 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011159 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011160 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011161 .block_erasers =
11162 {
11163 {
11164 .eraseblocks = { {4 * 1024, 512} },
11165 .block_erase = erase_sector_49lfxxxc,
11166 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011167 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011168 {64 * 1024, 31},
11169 {32 * 1024, 1},
11170 {8 * 1024, 2},
11171 {16 * 1024, 1},
11172 },
Sean Nelson69e58112010-03-23 17:10:28 +000011173 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011174 }
11175 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011176 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011177 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011178 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011179 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011180 },
11181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011182 {
11183 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011184 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011185 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011186 .manufacture_id = ST_ID,
11187 .model_id = ST_M29F002B,
11188 .total_size = 256,
11189 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011190 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011191 .tested = TEST_UNTESTED,
11192 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011193 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011194 .block_erasers =
11195 {
11196 {
11197 .eraseblocks = {
11198 {16 * 1024, 1},
11199 {8 * 1024, 2},
11200 {32 * 1024, 1},
11201 {64 * 1024, 3},
11202 },
11203 .block_erase = erase_sector_jedec,
11204 }, {
11205 .eraseblocks = { {256 * 1024, 1} },
11206 .block_erase = erase_chip_block_jedec,
11207 }
11208 },
Sean Nelson35727f72010-01-28 23:55:12 +000011209 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011210 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011211 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011212 },
11213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011214 {
11215 .vendor = "ST",
11216 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011217 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011218 .manufacture_id = ST_ID,
11219 .model_id = ST_M29F002T,
11220 .total_size = 256,
11221 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011222 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011223 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011224 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011225 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011226 .block_erasers =
11227 {
11228 {
11229 .eraseblocks = {
11230 {64 * 1024, 3},
11231 {32 * 1024, 1},
11232 {8 * 1024, 2},
11233 {16 * 1024, 1},
11234 },
11235 .block_erase = erase_sector_jedec,
11236 }, {
11237 .eraseblocks = { {256 * 1024, 1} },
11238 .block_erase = erase_chip_block_jedec,
11239 }
11240 },
Sean Nelson35727f72010-01-28 23:55:12 +000011241 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011242 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011243 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011244 },
11245
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011246 {
11247 .vendor = "ST",
11248 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011249 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011250 .manufacture_id = ST_ID,
11251 .model_id = ST_M29F040B,
11252 .total_size = 512,
11253 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011254 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11255 .tested = TEST_UNTESTED,
11256 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011257 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011258 .block_erasers =
11259 {
11260 {
11261 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011262 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011263 }, {
11264 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011265 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011266 }
11267 },
Sean Nelson35727f72010-01-28 23:55:12 +000011268 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011269 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011270 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011271 },
11272
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011273 {
Sean Nelson35727f72010-01-28 23:55:12 +000011274 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011275 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011276 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011277 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011278 .manufacture_id = ST_ID,
11279 .model_id = ST_M29F400BB,
11280 .total_size = 512,
11281 .page_size = 64 * 1024,
11282 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011283 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011284 .probe = probe_m29f400bt,
11285 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11286 .block_erasers =
11287 {
11288 {
11289 .eraseblocks = {
11290 {16 * 1024, 1},
11291 {8 * 1024, 2},
11292 {32 * 1024, 1},
11293 {64 * 1024, 7},
11294 },
11295 .block_erase = block_erase_m29f400bt,
11296 }, {
11297 .eraseblocks = { {512 * 1024, 1} },
11298 .block_erase = block_erase_chip_m29f400bt,
11299 }
11300 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011301 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011302 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011303 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011304 },
11305 {
11306 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11307 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011308 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011309 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011310 .manufacture_id = ST_ID,
11311 .model_id = ST_M29F400BT,
11312 .total_size = 512,
11313 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011314 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011315 .tested = TEST_UNTESTED,
11316 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011317 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011318 .block_erasers =
11319 {
11320 {
11321 .eraseblocks = {
11322 {64 * 1024, 7},
11323 {32 * 1024, 1},
11324 {8 * 1024, 2},
11325 {16 * 1024, 1},
11326 },
11327 .block_erase = block_erase_m29f400bt,
11328 }, {
11329 .eraseblocks = { {512 * 1024, 1} },
11330 .block_erase = block_erase_chip_m29f400bt,
11331 }
11332 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011333 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011334 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011335 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011336 },
11337
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011338 {
11339 .vendor = "ST",
11340 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011341 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011342 .manufacture_id = ST_ID,
11343 .model_id = ST_M29W010B,
11344 .total_size = 128,
11345 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011346 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011347 .tested = TEST_UNTESTED,
11348 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011349 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011350 .block_erasers =
11351 {
11352 {
11353 .eraseblocks = { {16 * 1024, 8}, },
11354 .block_erase = erase_sector_jedec,
11355 }, {
11356 .eraseblocks = { {128 * 1024, 1} },
11357 .block_erase = erase_chip_block_jedec,
11358 }
11359 },
Sean Nelson35727f72010-01-28 23:55:12 +000011360 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011361 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011362 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011363 },
11364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011365 {
11366 .vendor = "ST",
11367 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011368 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011369 .manufacture_id = ST_ID,
11370 .model_id = ST_M29W040B,
11371 .total_size = 512,
11372 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011373 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011374 .tested = TEST_UNTESTED,
11375 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011376 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011377 .block_erasers =
11378 {
11379 {
11380 .eraseblocks = { {64 * 1024, 8}, },
11381 .block_erase = erase_sector_jedec,
11382 }, {
11383 .eraseblocks = { {512 * 1024, 1} },
11384 .block_erase = erase_chip_block_jedec,
11385 }
11386 },
Sean Nelson35727f72010-01-28 23:55:12 +000011387 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011388 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011389 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011390 },
11391
Stefan Taunereb582572012-09-21 12:52:50 +000011392 {
11393 .vendor = "ST",
11394 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011395 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011396 .manufacture_id = ST_ID,
11397 .model_id = ST_M29W512B,
11398 .total_size = 64,
11399 .page_size = 64 * 1024,
11400 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011401 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011402 .probe = probe_jedec,
11403 .probe_timing = TIMING_ZERO,
11404 .block_erasers =
11405 {
11406 {
11407 .eraseblocks = { {64 * 1024, 1} },
11408 .block_erase = erase_chip_block_jedec,
11409 }
11410 },
11411 .write = write_jedec_1,
11412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011413 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011414 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011416 {
11417 .vendor = "ST",
11418 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011419 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011420 .manufacture_id = ST_ID,
11421 .model_id = ST_M50FLW040A,
11422 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011423 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011424 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011425 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011426 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011427 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011428 .block_erasers =
11429 {
11430 {
Sean Nelson329bde72010-01-19 16:39:19 +000011431 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011432 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011433 {64 * 1024, 5}, /* block */
11434 {4 * 1024, 16}, /* sector */
11435 {4 * 1024, 16}, /* sector */
11436 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011437 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011438 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011439 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011440 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011441 }
11442 },
Sean Nelson28accc22010-03-19 18:47:06 +000011443 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011444 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011446 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011447 },
11448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011449 {
11450 .vendor = "ST",
11451 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011452 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011453 .manufacture_id = ST_ID,
11454 .model_id = ST_M50FLW040B,
11455 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011456 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011457 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011458 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011459 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011460 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011461 .block_erasers =
11462 {
11463 {
Sean Nelson329bde72010-01-19 16:39:19 +000011464 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011465 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011466 {4 * 1024, 16}, /* sector */
11467 {64 * 1024, 5}, /* block */
11468 {4 * 1024, 16}, /* sector */
11469 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011470 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011471 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011472 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011473 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011474 }
11475 },
Sean Nelson28accc22010-03-19 18:47:06 +000011476 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011477 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011479 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011480 },
11481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011482 {
11483 .vendor = "ST",
11484 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011485 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011486 .manufacture_id = ST_ID,
11487 .model_id = ST_M50FLW080A,
11488 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011489 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011490 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011491 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011492 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011493 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011494 .block_erasers =
11495 {
11496 {
Sean Nelson329bde72010-01-19 16:39:19 +000011497 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011498 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011499 {64 * 1024, 13}, /* block */
11500 {4 * 1024, 16}, /* sector */
11501 {4 * 1024, 16}, /* sector */
11502 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011503 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011504 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011505 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011506 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011507 }
11508 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011509 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011510 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011512 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011513 },
11514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011515 {
11516 .vendor = "ST",
11517 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011518 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011519 .manufacture_id = ST_ID,
11520 .model_id = ST_M50FLW080B,
11521 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011522 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011523 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011524 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011525 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011526 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011527 .block_erasers =
11528 {
11529 {
Sean Nelson329bde72010-01-19 16:39:19 +000011530 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011531 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011532 {4 * 1024, 16}, /* sector */
11533 {64 * 1024, 13}, /* block */
11534 {4 * 1024, 16}, /* sector */
11535 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011536 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011537 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011538 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011539 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011540 }
11541 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011542 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011543 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011545 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011546 },
11547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011548 {
11549 .vendor = "ST",
11550 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011551 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011552 .manufacture_id = ST_ID,
11553 .model_id = ST_M50FW002,
11554 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011555 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011556 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011557 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011558 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011559 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011560 .block_erasers =
11561 {
11562 {
11563 .eraseblocks = {
11564 {64 * 1024, 3},
11565 {32 * 1024, 1},
11566 {8 * 1024, 2},
11567 {16 * 1024, 1},
11568 },
Sean Nelson28accc22010-03-19 18:47:06 +000011569 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011570 }
11571 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011572 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011573 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011574 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011575 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011576 },
11577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011578 {
11579 .vendor = "ST",
11580 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011581 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011582 .manufacture_id = ST_ID,
11583 .model_id = ST_M50FW016,
11584 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011585 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011586 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011587 .tested = TEST_UNTESTED,
11588 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011589 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011590 .block_erasers =
11591 {
11592 {
11593 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011594 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011595 }
11596 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011597 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011598 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011600 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011601 },
11602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011603 {
11604 .vendor = "ST",
11605 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011606 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011607 .manufacture_id = ST_ID,
11608 .model_id = ST_M50FW040,
11609 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011610 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011611 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011612 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011613 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011614 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011615 .block_erasers =
11616 {
11617 {
11618 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011619 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011620 }
11621 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011622 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011623 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011625 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011626 },
11627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011628 {
11629 .vendor = "ST",
11630 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011631 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011632 .manufacture_id = ST_ID,
11633 .model_id = ST_M50FW080,
11634 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011635 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011636 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011637 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011638 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011639 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011640 .block_erasers =
11641 {
11642 {
11643 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011644 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011645 }
11646 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011647 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011648 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011649 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011650 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011651 },
11652
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011653 {
11654 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011655 .name = "M50LPW080",
11656 .bustype = BUS_LPC, /* A/A Mux */
11657 .manufacture_id = ST_ID,
11658 .model_id = ST_M50LPW080,
11659 .total_size = 1024,
11660 .page_size = 0,
11661 .feature_bits = FEATURE_REGISTERMAP,
11662 .tested = TEST_UNTESTED,
11663 .probe = probe_82802ab,
11664 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11665 .block_erasers =
11666 {
11667 {
11668 .eraseblocks = { {64 * 1024, 16}, },
11669 .block_erase = erase_block_82802ab,
11670 }
11671 },
11672 .unlock = unlock_stm50_uniform,
11673 .write = write_82802ab,
11674 .read = read_memmapped,
11675 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11676 },
11677
11678 {
11679 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011680 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011681 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011682 .manufacture_id = ST_ID,
11683 .model_id = ST_M50LPW116,
11684 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011685 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011686 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011687 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011688 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011689 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011690 .block_erasers =
11691 {
11692 {
11693 .eraseblocks = {
11694 {4 * 1024, 16},
11695 {64 * 1024, 30},
11696 {32 * 1024, 1},
11697 {8 * 1024, 2},
11698 {16 * 1024, 1},
11699 },
Sean Nelson28accc22010-03-19 18:47:06 +000011700 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011701 }
11702 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011703 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011704 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011705 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011706 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011707 },
11708
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011709 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011710 .vendor = "SyncMOS/MoselVitelic",
11711 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011712 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011713 .manufacture_id = SYNCMOS_MVC_ID,
11714 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011715 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011716 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011717 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011718 .tested = TEST_UNTESTED,
11719 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011720 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011721 .block_erasers =
11722 {
11723 {
11724 .eraseblocks = { {512, 256} },
11725 .block_erase = erase_sector_jedec,
11726 }, {
11727 .eraseblocks = { {128 * 1024, 1} },
11728 .block_erase = erase_chip_block_jedec,
11729 },
11730 },
Sean Nelson35727f72010-01-28 23:55:12 +000011731 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011732 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011733 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011734 },
11735
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011736 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011737 .vendor = "SyncMOS/MoselVitelic",
11738 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011739 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011740 .manufacture_id = SYNCMOS_MVC_ID,
11741 .model_id = SM_MVC_29C51001T,
11742 .total_size = 128,
11743 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011744 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011745 .tested = TEST_UNTESTED,
11746 .probe = probe_jedec,
11747 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11748 .block_erasers =
11749 {
11750 {
11751 .eraseblocks = { {512, 256} },
11752 .block_erase = erase_sector_jedec,
11753 }, {
11754 .eraseblocks = { {128 * 1024, 1} },
11755 .block_erase = erase_chip_block_jedec,
11756 },
11757 },
11758 .write = write_jedec_1,
11759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011760 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011761 },
11762
11763 {
11764 .vendor = "SyncMOS/MoselVitelic",
11765 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011766 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011767 .manufacture_id = SYNCMOS_MVC_ID,
11768 .model_id = SM_MVC_29C51002B,
11769 .total_size = 256,
11770 .page_size = 512,
11771 .feature_bits = FEATURE_EITHER_RESET,
11772 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011773 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011774 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011775 .block_erasers =
11776 {
11777 {
11778 .eraseblocks = { {512, 512} },
11779 .block_erase = erase_sector_jedec,
11780 }, {
11781 .eraseblocks = { {256 * 1024, 1} },
11782 .block_erase = erase_chip_block_jedec,
11783 },
11784 },
Sean Nelson35727f72010-01-28 23:55:12 +000011785 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011786 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011787 },
11788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011789 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011790 .vendor = "SyncMOS/MoselVitelic",
11791 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011792 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011793 .manufacture_id = SYNCMOS_MVC_ID,
11794 .model_id = SM_MVC_29C51002T,
11795 .total_size = 256,
11796 .page_size = 512,
11797 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011798 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011799 .probe = probe_jedec,
11800 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11801 .block_erasers =
11802 {
11803 {
11804 .eraseblocks = { {512, 512} },
11805 .block_erase = erase_sector_jedec,
11806 }, {
11807 .eraseblocks = { {256 * 1024, 1} },
11808 .block_erase = erase_chip_block_jedec,
11809 },
11810 },
11811 .write = write_jedec_1,
11812 .read = read_memmapped,
11813 },
11814
11815 {
11816 .vendor = "SyncMOS/MoselVitelic",
11817 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011818 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011819 .manufacture_id = SYNCMOS_MVC_ID,
11820 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011821 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011822 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011823 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011824 .tested = TEST_UNTESTED,
11825 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011826 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011827 .block_erasers =
11828 {
11829 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011830 .eraseblocks = { {1024, 512} },
11831 .block_erase = erase_sector_jedec,
11832 }, {
11833 .eraseblocks = { {512 * 1024, 1} },
11834 .block_erase = erase_chip_block_jedec,
11835 },
11836 },
11837 .write = write_jedec_1,
11838 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011839 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011840 },
11841
11842 {
11843 .vendor = "SyncMOS/MoselVitelic",
11844 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011845 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011846 .manufacture_id = SYNCMOS_MVC_ID,
11847 .model_id = SM_MVC_29C51004T,
11848 .total_size = 512,
11849 .page_size = 1024,
11850 .feature_bits = FEATURE_EITHER_RESET,
11851 .tested = TEST_UNTESTED,
11852 .probe = probe_jedec,
11853 .probe_timing = TIMING_ZERO,
11854 .block_erasers =
11855 {
11856 {
11857 .eraseblocks = { {1024, 512} },
11858 .block_erase = erase_sector_jedec,
11859 }, {
11860 .eraseblocks = { {512 * 1024, 1} },
11861 .block_erase = erase_chip_block_jedec,
11862 },
11863 },
11864 .write = write_jedec_1,
11865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011866 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011867 },
11868
11869 {
11870 .vendor = "SyncMOS/MoselVitelic",
11871 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011872 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011873 .manufacture_id = SYNCMOS_MVC_ID,
11874 .model_id = SM_MVC_29C31004B,
11875 .total_size = 512,
11876 .page_size = 1024,
11877 .feature_bits = FEATURE_EITHER_RESET,
11878 .tested = TEST_UNTESTED,
11879 .probe = probe_jedec,
11880 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11881 .block_erasers =
11882 {
11883 {
11884 .eraseblocks = { {1024, 512} },
11885 .block_erase = erase_sector_jedec,
11886 }, {
11887 .eraseblocks = { {512 * 1024, 1} },
11888 .block_erase = erase_chip_block_jedec,
11889 },
11890 },
11891 .write = write_jedec_1,
11892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011893 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011894 },
11895
11896 {
11897 .vendor = "SyncMOS/MoselVitelic",
11898 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011899 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011900 .manufacture_id = SYNCMOS_MVC_ID,
11901 .model_id = SM_MVC_29C31004T,
11902 .total_size = 512,
11903 .page_size = 1024,
11904 .feature_bits = FEATURE_EITHER_RESET,
11905 .tested = TEST_UNTESTED,
11906 .probe = probe_jedec,
11907 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11908 .block_erasers =
11909 {
11910 {
11911 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011912 .block_erase = erase_sector_jedec,
11913 }, {
11914 .eraseblocks = { {512 * 1024, 1} },
11915 .block_erase = erase_chip_block_jedec,
11916 },
11917 },
Sean Nelson35727f72010-01-28 23:55:12 +000011918 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011920 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011921 },
11922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011923 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011924 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011925 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011926 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011927 .manufacture_id = TI_OLD_ID,
11928 .model_id = TI_TMS29F002RB,
11929 .total_size = 256,
11930 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011931 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011932 .tested = TEST_UNTESTED,
11933 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011934 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011935 .block_erasers =
11936 {
11937 {
11938 .eraseblocks = {
11939 {16 * 1024, 1},
11940 {8 * 1024, 2},
11941 {32 * 1024, 1},
11942 {64 * 1024, 3},
11943 },
11944 .block_erase = erase_sector_jedec,
11945 }, {
11946 .eraseblocks = { {256 * 1024, 1} },
11947 .block_erase = erase_chip_block_jedec,
11948 },
11949 },
Sean Nelson35727f72010-01-28 23:55:12 +000011950 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011951 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011952 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011953 },
11954
11955 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011956 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011957 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011958 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011959 .manufacture_id = TI_OLD_ID,
11960 .model_id = TI_TMS29F002RT,
11961 .total_size = 256,
11962 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011963 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011964 .tested = TEST_UNTESTED,
11965 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011966 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011967 .block_erasers =
11968 {
11969 {
11970 .eraseblocks = {
11971 {64 * 1024, 3},
11972 {32 * 1024, 1},
11973 {8 * 1024, 2},
11974 {16 * 1024, 1},
11975 },
11976 .block_erase = erase_sector_jedec,
11977 }, {
11978 .eraseblocks = { {256 * 1024, 1} },
11979 .block_erase = erase_chip_block_jedec,
11980 },
11981 },
Sean Nelson35727f72010-01-28 23:55:12 +000011982 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011983 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011984 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011985 },
11986
11987 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011988 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011989 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011990 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011991 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011992 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011993 .total_size = 1024,
11994 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011995 /* supports SFDP */
11996 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011998 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011999 .probe = probe_spi_rdid,
12000 .probe_timing = TIMING_ZERO,
12001 .block_erasers =
12002 {
12003 {
12004 .eraseblocks = { {4 * 1024, 256} },
12005 .block_erase = spi_block_erase_20,
12006 }, {
12007 .eraseblocks = { {32 * 1024, 32} },
12008 .block_erase = spi_block_erase_52,
12009 }, {
12010 .eraseblocks = { {64 * 1024, 16} },
12011 .block_erase = spi_block_erase_d8,
12012 }, {
12013 .eraseblocks = { {1024 * 1024, 1} },
12014 .block_erase = spi_block_erase_60,
12015 }, {
12016 .eraseblocks = { {1024 * 1024, 1} },
12017 .block_erase = spi_block_erase_c7,
12018 }
12019 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012021 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012022 .write = spi_chip_write_256,
12023 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012024 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012025 },
12026
12027 {
12028 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012029 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012030 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012031 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012032 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012033 .total_size = 2048,
12034 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012035 /* supports SFDP */
12036 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012037 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000012038 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012039 .probe = probe_spi_rdid,
12040 .probe_timing = TIMING_ZERO,
12041 .block_erasers =
12042 {
12043 {
12044 .eraseblocks = { {4 * 1024, 512} },
12045 .block_erase = spi_block_erase_20,
12046 }, {
12047 .eraseblocks = { {32 * 1024, 64} },
12048 .block_erase = spi_block_erase_52,
12049 }, {
12050 .eraseblocks = { {64 * 1024, 32} },
12051 .block_erase = spi_block_erase_d8,
12052 }, {
12053 .eraseblocks = { {2 * 1024 * 1024, 1} },
12054 .block_erase = spi_block_erase_60,
12055 }, {
12056 .eraseblocks = { {2 * 1024 * 1024, 1} },
12057 .block_erase = spi_block_erase_c7,
12058 }
12059 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012061 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012062 .write = spi_chip_write_256,
12063 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012064 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012065 },
12066
12067 {
12068 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012069 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012070 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012071 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012072 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012073 .total_size = 4096,
12074 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012075 /* supports SFDP */
12076 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012077 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012078 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012079 .probe = probe_spi_rdid,
12080 .probe_timing = TIMING_ZERO,
12081 .block_erasers =
12082 {
12083 {
12084 .eraseblocks = { {4 * 1024, 1024} },
12085 .block_erase = spi_block_erase_20,
12086 }, {
12087 .eraseblocks = { {32 * 1024, 128} },
12088 .block_erase = spi_block_erase_52,
12089 }, {
12090 .eraseblocks = { {64 * 1024, 64} },
12091 .block_erase = spi_block_erase_d8,
12092 }, {
12093 .eraseblocks = { {4 * 1024 * 1024, 1} },
12094 .block_erase = spi_block_erase_60,
12095 }, {
12096 .eraseblocks = { {4 * 1024 * 1024, 1} },
12097 .block_erase = spi_block_erase_c7,
12098 }
12099 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012100 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012101 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012102 .write = spi_chip_write_256,
12103 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012104 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012105 },
12106
12107 {
12108 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012109 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012110 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012111 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012112 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012113 .total_size = 8192,
12114 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012115 /* supports SFDP */
12116 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012118 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012119 .probe = probe_spi_rdid,
12120 .probe_timing = TIMING_ZERO,
12121 .block_erasers =
12122 {
12123 {
12124 .eraseblocks = { {4 * 1024, 2048} },
12125 .block_erase = spi_block_erase_20,
12126 }, {
12127 .eraseblocks = { {32 * 1024, 256} },
12128 .block_erase = spi_block_erase_52,
12129 }, {
12130 .eraseblocks = { {64 * 1024, 128} },
12131 .block_erase = spi_block_erase_d8,
12132 }, {
12133 .eraseblocks = { {8 * 1024 * 1024, 1} },
12134 .block_erase = spi_block_erase_60,
12135 }, {
12136 .eraseblocks = { {8 * 1024 * 1024, 1} },
12137 .block_erase = spi_block_erase_c7,
12138 }
12139 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012140 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012141 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012142 .write = spi_chip_write_256,
12143 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012144 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012145 },
12146
12147 {
12148 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012149 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012150 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012151 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012152 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012153 .total_size = 16384,
12154 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012155 /* supports SFDP */
12156 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012157 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012158 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012159 .probe = probe_spi_rdid,
12160 .probe_timing = TIMING_ZERO,
12161 .block_erasers =
12162 {
12163 {
12164 .eraseblocks = { {4 * 1024, 4096} },
12165 .block_erase = spi_block_erase_20,
12166 }, {
12167 .eraseblocks = { {32 * 1024, 512} },
12168 .block_erase = spi_block_erase_52,
12169 }, {
12170 .eraseblocks = { {64 * 1024, 256} },
12171 .block_erase = spi_block_erase_d8,
12172 }, {
12173 .eraseblocks = { {16 * 1024 * 1024, 1} },
12174 .block_erase = spi_block_erase_60,
12175 }, {
12176 .eraseblocks = { {16 * 1024 * 1024, 1} },
12177 .block_erase = spi_block_erase_c7,
12178 }
12179 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012180 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012181 .unlock = spi_disable_blockprotect,
12182 .write = spi_chip_write_256,
12183 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012184 .voltage = {2700, 3600},
12185 },
12186
12187 {
12188 .vendor = "Winbond",
12189 .name = "W25Q20.W",
12190 .bustype = BUS_SPI,
12191 .manufacture_id = WINBOND_NEX_ID,
12192 .model_id = WINBOND_NEX_W25Q20_W,
12193 .total_size = 256,
12194 .page_size = 256,
12195 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12196 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12197 .tested = TEST_UNTESTED,
12198 .probe = probe_spi_rdid,
12199 .probe_timing = TIMING_ZERO,
12200 .block_erasers =
12201 {
12202 {
12203 .eraseblocks = { {4 * 1024, 64} },
12204 .block_erase = spi_block_erase_20,
12205 }, {
12206 .eraseblocks = { {32 * 1024, 8} },
12207 .block_erase = spi_block_erase_52,
12208 }, {
12209 .eraseblocks = { {64 * 1024, 4} },
12210 .block_erase = spi_block_erase_d8,
12211 }, {
12212 .eraseblocks = { {256 * 1024, 1} },
12213 .block_erase = spi_block_erase_60,
12214 }, {
12215 .eraseblocks = { {256 * 1024, 1} },
12216 .block_erase = spi_block_erase_c7,
12217 }
12218 },
12219 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12220 .unlock = spi_disable_blockprotect,
12221 .write = spi_chip_write_256,
12222 .read = spi_chip_read,
12223 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12224 },
12225
12226 {
12227 .vendor = "Winbond",
12228 .name = "W25Q40.W",
12229 .bustype = BUS_SPI,
12230 .manufacture_id = WINBOND_NEX_ID,
12231 .model_id = WINBOND_NEX_W25Q40_W,
12232 .total_size = 512,
12233 .page_size = 256,
12234 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12236 .tested = TEST_UNTESTED,
12237 .probe = probe_spi_rdid,
12238 .probe_timing = TIMING_ZERO,
12239 .block_erasers =
12240 {
12241 {
12242 .eraseblocks = { {4 * 1024, 128} },
12243 .block_erase = spi_block_erase_20,
12244 }, {
12245 .eraseblocks = { {32 * 1024, 16} },
12246 .block_erase = spi_block_erase_52,
12247 }, {
12248 .eraseblocks = { {64 * 1024, 8} },
12249 .block_erase = spi_block_erase_d8,
12250 }, {
12251 .eraseblocks = { {512 * 1024, 1} },
12252 .block_erase = spi_block_erase_60,
12253 }, {
12254 .eraseblocks = { {512 * 1024, 1} },
12255 .block_erase = spi_block_erase_c7,
12256 }
12257 },
12258 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12259 .unlock = spi_disable_blockprotect,
12260 .write = spi_chip_write_256,
12261 .read = spi_chip_read,
12262 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12263 },
12264
12265 {
12266 .vendor = "Winbond",
12267 .name = "W25Q80.W",
12268 .bustype = BUS_SPI,
12269 .manufacture_id = WINBOND_NEX_ID,
12270 .model_id = WINBOND_NEX_W25Q80_W,
12271 .total_size = 1024,
12272 .page_size = 256,
12273 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12274 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12275 .tested = TEST_UNTESTED,
12276 .probe = probe_spi_rdid,
12277 .probe_timing = TIMING_ZERO,
12278 .block_erasers =
12279 {
12280 {
12281 .eraseblocks = { {4 * 1024, 256} },
12282 .block_erase = spi_block_erase_20,
12283 }, {
12284 .eraseblocks = { {32 * 1024, 32} },
12285 .block_erase = spi_block_erase_52,
12286 }, {
12287 .eraseblocks = { {64 * 1024, 16} },
12288 .block_erase = spi_block_erase_d8,
12289 }, {
12290 .eraseblocks = { {1 * 1024 * 1024, 1} },
12291 .block_erase = spi_block_erase_60,
12292 }, {
12293 .eraseblocks = { {1 * 1024 * 1024, 1} },
12294 .block_erase = spi_block_erase_c7,
12295 }
12296 },
12297 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12298 .unlock = spi_disable_blockprotect,
12299 .write = spi_chip_write_256,
12300 .read = spi_chip_read,
12301 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12302 },
12303
12304 {
12305 .vendor = "Winbond",
12306 .name = "W25Q16.W",
12307 .bustype = BUS_SPI,
12308 .manufacture_id = WINBOND_NEX_ID,
12309 .model_id = WINBOND_NEX_W25Q16_W,
12310 .total_size = 2048,
12311 .page_size = 256,
12312 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12313 /* QPI enable 0x38, disable 0xFF */
12314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12315 .tested = TEST_UNTESTED,
12316 .probe = probe_spi_rdid,
12317 .probe_timing = TIMING_ZERO,
12318 .block_erasers =
12319 {
12320 {
12321 .eraseblocks = { {4 * 1024, 512} },
12322 .block_erase = spi_block_erase_20,
12323 }, {
12324 .eraseblocks = { {32 * 1024, 64} },
12325 .block_erase = spi_block_erase_52,
12326 }, {
12327 .eraseblocks = { {64 * 1024, 32} },
12328 .block_erase = spi_block_erase_d8,
12329 }, {
12330 .eraseblocks = { {2 * 1024 * 1024, 1} },
12331 .block_erase = spi_block_erase_60,
12332 }, {
12333 .eraseblocks = { {2 * 1024 * 1024, 1} },
12334 .block_erase = spi_block_erase_c7,
12335 }
12336 },
12337 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12338 .unlock = spi_disable_blockprotect,
12339 .write = spi_chip_write_256,
12340 .read = spi_chip_read,
12341 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12342 },
12343
12344 {
12345 .vendor = "Winbond",
12346 .name = "W25Q32.W",
12347 .bustype = BUS_SPI,
12348 .manufacture_id = WINBOND_NEX_ID,
12349 .model_id = WINBOND_NEX_W25Q32_W,
12350 .total_size = 4096,
12351 .page_size = 256,
12352 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12353 /* QPI enable 0x38, disable 0xFF */
12354 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12355 .tested = TEST_OK_PREW,
12356 .probe = probe_spi_rdid,
12357 .probe_timing = TIMING_ZERO,
12358 .block_erasers =
12359 {
12360 {
12361 .eraseblocks = { {4 * 1024, 1024} },
12362 .block_erase = spi_block_erase_20,
12363 }, {
12364 .eraseblocks = { {32 * 1024, 128} },
12365 .block_erase = spi_block_erase_52,
12366 }, {
12367 .eraseblocks = { {64 * 1024, 64} },
12368 .block_erase = spi_block_erase_d8,
12369 }, {
12370 .eraseblocks = { {4 * 1024 * 1024, 1} },
12371 .block_erase = spi_block_erase_60,
12372 }, {
12373 .eraseblocks = { {4 * 1024 * 1024, 1} },
12374 .block_erase = spi_block_erase_c7,
12375 }
12376 },
12377 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12378 .unlock = spi_disable_blockprotect,
12379 .write = spi_chip_write_256,
12380 .read = spi_chip_read,
12381 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12382 },
12383
12384 {
12385 .vendor = "Winbond",
12386 .name = "W25Q64.W",
12387 .bustype = BUS_SPI,
12388 .manufacture_id = WINBOND_NEX_ID,
12389 .model_id = WINBOND_NEX_W25Q64_W,
12390 .total_size = 8192,
12391 .page_size = 256,
12392 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12393 /* QPI enable 0x38, disable 0xFF */
12394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012395 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012396 .probe = probe_spi_rdid,
12397 .probe_timing = TIMING_ZERO,
12398 .block_erasers =
12399 {
12400 {
12401 .eraseblocks = { {4 * 1024, 2048} },
12402 .block_erase = spi_block_erase_20,
12403 }, {
12404 .eraseblocks = { {32 * 1024, 256} },
12405 .block_erase = spi_block_erase_52,
12406 }, {
12407 .eraseblocks = { {64 * 1024, 128} },
12408 .block_erase = spi_block_erase_d8,
12409 }, {
12410 .eraseblocks = { {8 * 1024 * 1024, 1} },
12411 .block_erase = spi_block_erase_60,
12412 }, {
12413 .eraseblocks = { {8 * 1024 * 1024, 1} },
12414 .block_erase = spi_block_erase_c7,
12415 }
12416 },
12417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12418 .unlock = spi_disable_blockprotect,
12419 .write = spi_chip_write_256,
12420 .read = spi_chip_read,
12421 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012422 },
12423
12424 {
12425 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012426 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012427 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012428 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012429 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012430 .total_size = 128,
12431 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012432 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012433 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012434 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012435 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012436 .block_erasers =
12437 {
12438 {
12439 .eraseblocks = { {4 * 1024, 32} },
12440 .block_erase = spi_block_erase_20,
12441 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012442 .eraseblocks = { {64 * 1024, 2} },
12443 .block_erase = spi_block_erase_d8,
12444 }, {
12445 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012446 .block_erase = spi_block_erase_c7,
12447 }
12448 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012449 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012450 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012451 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012452 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012453 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012454 },
12455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012456 {
12457 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012458 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012459 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012460 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012461 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012462 .total_size = 256,
12463 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012464 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012465 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012466 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012467 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012468 .block_erasers =
12469 {
12470 {
12471 .eraseblocks = { {4 * 1024, 64} },
12472 .block_erase = spi_block_erase_20,
12473 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012474 .eraseblocks = { {64 * 1024, 4} },
12475 .block_erase = spi_block_erase_d8,
12476 }, {
12477 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012478 .block_erase = spi_block_erase_c7,
12479 }
12480 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012481 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012482 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012483 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012484 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012485 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012486 },
12487
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012488 {
12489 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012490 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012491 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012492 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012493 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012494 .total_size = 512,
12495 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012496 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012497 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012498 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012499 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012500 .block_erasers =
12501 {
12502 {
12503 .eraseblocks = { {4 * 1024, 128} },
12504 .block_erase = spi_block_erase_20,
12505 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012506 .eraseblocks = { {64 * 1024, 8} },
12507 .block_erase = spi_block_erase_d8,
12508 }, {
12509 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012510 .block_erase = spi_block_erase_c7,
12511 }
12512 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012513 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012514 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012515 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012516 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012517 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012518 },
12519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012520 {
12521 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012522 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012523 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012524 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012525 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012526 .total_size = 1024,
12527 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012528 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012529 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012530 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012531 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012532 .block_erasers =
12533 {
12534 {
12535 .eraseblocks = { {4 * 1024, 256} },
12536 .block_erase = spi_block_erase_20,
12537 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012538 .eraseblocks = { {64 * 1024, 16} },
12539 .block_erase = spi_block_erase_d8,
12540 }, {
12541 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012542 .block_erase = spi_block_erase_c7,
12543 }
12544 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012545 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012546 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012547 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012548 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012550 },
12551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012552 {
12553 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012554 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012555 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012556 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012557 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012558 .total_size = 2048,
12559 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012560 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012561 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012562 .probe = probe_spi_rdid,
12563 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012564 .block_erasers =
12565 {
12566 {
12567 .eraseblocks = { {4 * 1024, 512} },
12568 .block_erase = spi_block_erase_20,
12569 }, {
12570 .eraseblocks = { {32 * 1024, 64} },
12571 .block_erase = spi_block_erase_52,
12572 }, {
12573 .eraseblocks = { {64 * 1024, 32} },
12574 .block_erase = spi_block_erase_d8,
12575 }, {
12576 .eraseblocks = { {2 * 1024 * 1024, 1} },
12577 .block_erase = spi_block_erase_60,
12578 }, {
12579 .eraseblocks = { {2 * 1024 * 1024, 1} },
12580 .block_erase = spi_block_erase_c7,
12581 }
12582 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012583 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012584 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012585 .write = spi_chip_write_256,
12586 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012587 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012588 },
12589
12590 {
12591 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012592 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012593 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012594 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012595 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012596 .total_size = 4096,
12597 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012598 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012599 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012600 .probe = probe_spi_rdid,
12601 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012602 .block_erasers =
12603 {
12604 {
12605 .eraseblocks = { {4 * 1024, 1024} },
12606 .block_erase = spi_block_erase_20,
12607 }, {
12608 .eraseblocks = { {32 * 1024, 128} },
12609 .block_erase = spi_block_erase_52,
12610 }, {
12611 .eraseblocks = { {64 * 1024, 64} },
12612 .block_erase = spi_block_erase_d8,
12613 }, {
12614 .eraseblocks = { {4 * 1024 * 1024, 1} },
12615 .block_erase = spi_block_erase_60,
12616 }, {
12617 .eraseblocks = { {4 * 1024 * 1024, 1} },
12618 .block_erase = spi_block_erase_c7,
12619 }
12620 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012621 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012622 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012623 .write = spi_chip_write_256,
12624 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012625 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012626 },
12627
12628 {
12629 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012630 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012631 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012632 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012633 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012634 .total_size = 8192,
12635 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012636 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012637 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012638 .probe = probe_spi_rdid,
12639 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012640 .block_erasers =
12641 {
12642 {
12643 .eraseblocks = { {4 * 1024, 2048} },
12644 .block_erase = spi_block_erase_20,
12645 }, {
12646 .eraseblocks = { {32 * 1024, 256} },
12647 .block_erase = spi_block_erase_52,
12648 }, {
12649 .eraseblocks = { {64 * 1024, 128} },
12650 .block_erase = spi_block_erase_d8,
12651 }, {
12652 .eraseblocks = { {8 * 1024 * 1024, 1} },
12653 .block_erase = spi_block_erase_60,
12654 }, {
12655 .eraseblocks = { {8 * 1024 * 1024, 1} },
12656 .block_erase = spi_block_erase_c7,
12657 }
12658 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012659 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012660 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012661 .write = spi_chip_write_256,
12662 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012663 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012664 },
12665
12666 {
12667 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012668 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012669 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012670 .manufacture_id = WINBOND_ID,
12671 .model_id = WINBOND_W29C010,
12672 .total_size = 128,
12673 .page_size = 128,
12674 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012675 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012676 .probe = probe_w29ee011,
12677 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12678 .block_erasers =
12679 {
12680 {
12681 .eraseblocks = { {128 * 1024, 1} },
12682 .block_erase = erase_chip_block_jedec,
12683 }
12684 },
12685 .write = write_jedec,
12686 .read = read_memmapped,
12687 },
12688
12689 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12690 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012691 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012692 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012693 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012694 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012695 .total_size = 128,
12696 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012697 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012698 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012699 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012700 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012701 .block_erasers =
12702 {
12703 {
12704 .eraseblocks = { {128 * 1024, 1} },
12705 .block_erase = erase_chip_block_jedec,
12706 }
12707 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012708 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012709 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012710 },
12711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012712 {
12713 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012714 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012715 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012716 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012717 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012718 .total_size = 256,
12719 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012720 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012721 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012722 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012723 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012724 .block_erasers =
12725 {
12726 {
12727 .eraseblocks = { {256 * 1024, 1} },
12728 .block_erase = erase_chip_block_jedec,
12729 }
12730 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012731 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012732 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012733 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012734 },
12735
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012736 {
12737 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012738 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012739 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012740 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012741 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012742 .total_size = 512,
12743 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012744 .feature_bits = FEATURE_LONG_RESET,
12745 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012746 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012747 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012748 .block_erasers =
12749 {
12750 {
12751 .eraseblocks = { {512 * 1024, 1} },
12752 .block_erase = erase_chip_block_jedec,
12753 }
12754 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012755 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012757 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012758 },
12759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012760 {
12761 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012762 .name = "W39F010",
12763 .bustype = BUS_PARALLEL,
12764 .manufacture_id = WINBOND_ID,
12765 .model_id = WINBOND_W39F010,
12766 .total_size = 128,
12767 .page_size = 4 * 1024,
12768 .feature_bits = FEATURE_EITHER_RESET,
12769 .tested = TEST_OK_PREW,
12770 .probe = probe_jedec,
12771 .probe_timing = 10,
12772 .block_erasers =
12773 {
12774 {
12775 .eraseblocks = { {4 * 1024, 32} },
12776 .block_erase = erase_block_jedec,
12777 }, {
12778 .eraseblocks = { {128 * 1024, 1} },
12779 .block_erase = erase_chip_block_jedec,
12780 }
12781 },
12782 .printlock = printlock_w39f010,
12783 .write = write_jedec_1,
12784 .read = read_memmapped,
12785 .voltage = {4500, 5500},
12786 },
12787
12788 {
12789 .vendor = "Winbond",
12790 .name = "W39L010",
12791 .bustype = BUS_PARALLEL,
12792 .manufacture_id = WINBOND_ID,
12793 .model_id = WINBOND_W39L010,
12794 .total_size = 128,
12795 .page_size = 4 * 1024,
12796 .feature_bits = FEATURE_EITHER_RESET,
12797 .tested = TEST_UNTESTED,
12798 .probe = probe_jedec,
12799 .probe_timing = 10,
12800 .block_erasers =
12801 {
12802 {
12803 .eraseblocks = { {4 * 1024, 32} },
12804 .block_erase = erase_block_jedec,
12805 }, {
12806 .eraseblocks = { {128 * 1024, 1} },
12807 .block_erase = erase_chip_block_jedec,
12808 }
12809 },
12810 .printlock = printlock_w39l010,
12811 .write = write_jedec_1,
12812 .read = read_memmapped,
12813 .voltage = {3000, 3600},
12814 },
12815
12816 {
12817 .vendor = "Winbond",
12818 .name = "W39L020",
12819 .bustype = BUS_PARALLEL,
12820 .manufacture_id = WINBOND_ID,
12821 .model_id = WINBOND_W39L020,
12822 .total_size = 256,
12823 .page_size = 4 * 1024,
12824 .feature_bits = FEATURE_EITHER_RESET,
12825 .tested = TEST_UNTESTED,
12826 .probe = probe_jedec,
12827 .probe_timing = 10,
12828 .block_erasers =
12829 {
12830 {
12831 .eraseblocks = { {4 * 1024, 64} },
12832 .block_erase = erase_block_jedec,
12833 }, {
12834 .eraseblocks = { {64 * 1024, 4} },
12835 .block_erase = erase_sector_jedec,
12836 }, {
12837 .eraseblocks = { {256 * 1024, 1} },
12838 .block_erase = erase_chip_block_jedec,
12839 }
12840 },
12841 .printlock = printlock_w39l020,
12842 .write = write_jedec_1,
12843 .read = read_memmapped,
12844 .voltage = {3000, 3600},
12845 },
12846
12847 {
12848 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012849 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012850 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012851 .manufacture_id = WINBOND_ID,
12852 .model_id = WINBOND_W39L040,
12853 .total_size = 512,
12854 .page_size = 64 * 1024,
12855 .feature_bits = FEATURE_EITHER_RESET,
12856 .tested = TEST_OK_PR,
12857 .probe = probe_jedec,
12858 .probe_timing = 10,
12859 .block_erasers =
12860 {
12861 {
12862 .eraseblocks = { {4 * 1024, 128} },
12863 .block_erase = erase_block_jedec,
12864 }, {
12865 .eraseblocks = { {64 * 1024, 8} },
12866 .block_erase = erase_sector_jedec,
12867 }, {
12868 .eraseblocks = { {512 * 1024, 1} },
12869 .block_erase = erase_chip_block_jedec,
12870 }
12871 },
12872 .printlock = printlock_w39l040,
12873 .write = write_jedec_1,
12874 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012875 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012876 },
12877
12878 {
12879 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012880 .name = "W39V040A",
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_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012884 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012885 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012886 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012887 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012888 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012889 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012890 .block_erasers =
12891 {
12892 {
12893 .eraseblocks = { {64 * 1024, 8} },
12894 .block_erase = erase_sector_jedec,
12895 }, {
12896 .eraseblocks = { {512 * 1024, 1} },
12897 .block_erase = erase_chip_block_jedec,
12898 }
12899 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012900 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012901 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012902 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012903 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012904 },
12905
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012906 {
12907 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012908 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012909 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012910 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012911 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012912 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012913 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012914 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012915 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012916 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012917 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012918 .block_erasers =
12919 {
12920 {
12921 .eraseblocks = { {64 * 1024, 8} },
12922 .block_erase = erase_sector_jedec,
12923 }, {
12924 .eraseblocks = { {512 * 1024, 1} },
12925 .block_erase = erase_chip_block_jedec,
12926 }
12927 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012928 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012929 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012930 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012931 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012932 },
12933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012934 {
12935 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012936 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012937 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012938 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012939 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012940 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012941 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012942 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012943 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012944 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012945 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012946 .block_erasers =
12947 {
12948 {
12949 .eraseblocks = { {64 * 1024, 8} },
12950 .block_erase = erase_sector_jedec,
12951 }, {
12952 .eraseblocks = { {512 * 1024, 1} },
12953 .block_erase = erase_chip_block_jedec,
12954 }
12955 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012956 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012957 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012959 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012960 },
12961
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012962 {
12963 .vendor = "Winbond",
12964 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012965 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012966 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012967 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012968 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012969 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012970 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012971 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012972 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012973 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012974 .block_erasers =
12975 {
12976 {
12977 .eraseblocks = { {4 * 1024, 128} },
12978 .block_erase = erase_block_jedec,
12979 }, {
12980 .eraseblocks = { {64 * 1024, 8} },
12981 .block_erase = erase_sector_jedec,
12982 }, {
12983 .eraseblocks = { {512 * 1024, 1} },
12984 .block_erase = erase_chip_block_jedec,
12985 }
12986 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012987 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012988 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012989 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012990 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012991 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012992 },
12993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012994 {
12995 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012996 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012997 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012998 .manufacture_id = WINBOND_ID,
12999 .model_id = WINBOND_W39V040B,
13000 .total_size = 512,
13001 .page_size = 64 * 1024,
13002 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013003 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013004 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013005 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013006 .block_erasers =
13007 {
13008 {
13009 .eraseblocks = { {64 * 1024, 8} },
13010 .block_erase = erase_sector_jedec,
13011 }, {
13012 .eraseblocks = { {512 * 1024, 1} },
13013 .block_erase = erase_chip_block_jedec,
13014 }
13015 },
13016 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000013017 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013018 .write = write_jedec_1,
13019 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013020 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013021 },
13022
13023 {
13024 .vendor = "Winbond",
13025 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013026 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013027 .manufacture_id = WINBOND_ID,
13028 .model_id = WINBOND_W39V040C,
13029 .total_size = 512,
13030 .page_size = 64 * 1024,
13031 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000013032 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013033 .probe = probe_jedec,
13034 .probe_timing = 10,
13035 .block_erasers =
13036 {
13037 {
13038 .eraseblocks = { {64 * 1024, 8} },
13039 .block_erase = erase_sector_jedec,
13040 }, {
13041 .eraseblocks = { {512 * 1024, 1} },
13042 .block_erase = erase_chip_block_jedec,
13043 }
13044 },
13045 .printlock = printlock_w39v040fc,
13046 .write = write_jedec_1,
13047 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013048 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013049 },
13050
13051 {
13052 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013053 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013054 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013055 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013056 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013057 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013058 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013059 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000013060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013061 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000013062 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013063 .block_erasers =
13064 {
13065 {
13066 .eraseblocks = { {64 * 1024, 16} },
13067 .block_erase = erase_sector_jedec,
13068 }, {
13069 .eraseblocks = { {1024 * 1024, 1} },
13070 .block_erase = erase_chip_block_jedec,
13071 }
13072 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013073 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000013074 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013075 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013076 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013077 },
13078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013079 {
13080 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013081 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013082 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013083 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013084 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013085 .total_size = 256,
13086 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013087 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013088 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013089 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013090 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013091 .block_erasers =
13092 {
13093 {
13094 .eraseblocks = {
13095 {128 * 1024, 1},
13096 {96 * 1024, 1},
13097 {8 * 1024, 2},
13098 {16 * 1024, 1},
13099 },
13100 .block_erase = erase_sector_jedec,
13101 }, {
13102 .eraseblocks = { {256 * 1024, 1} },
13103 .block_erase = erase_chip_block_jedec,
13104 }
13105 },
Sean Nelson35727f72010-01-28 23:55:12 +000013106 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013107 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013108 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013109 },
13110
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013111 {
13112 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013113 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013114 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013115 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013116 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013117 .total_size = 256,
13118 .page_size = 128,
13119 .feature_bits = FEATURE_EITHER_RESET,
13120 .tested = TEST_OK_PROBE,
13121 .probe = probe_jedec,
13122 .probe_timing = 10,
13123 .block_erasers =
13124 {
13125 {
13126 .eraseblocks = { {256 * 1024, 1} },
13127 .block_erase = erase_chip_block_jedec,
13128 }
13129 },
13130 .write = write_jedec_1,
13131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013132 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013133 },
13134
13135 {
13136 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013137 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013138 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013139 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013140 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013141 .total_size = 256,
13142 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013143 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013144 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013145 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013146 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013147 .block_erasers =
13148 {
13149 {
13150 .eraseblocks = {
13151 {64 * 1024, 3},
13152 {32 * 1024, 1},
13153 {8 * 1024, 2},
13154 {16 * 1024, 1},
13155 },
13156 .block_erase = erase_sector_jedec,
13157 }, {
13158 .eraseblocks = { {256 * 1024, 1} },
13159 .block_erase = erase_chip_block_jedec,
13160 }
13161 },
Sean Nelson35727f72010-01-28 23:55:12 +000013162 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013164 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013165 },
13166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013167 {
13168 .vendor = "Winbond",
13169 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013170 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013171 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013172 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013173 .total_size = 256,
13174 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013175 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013176 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013177 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013178 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013179 .block_erasers =
13180 {
13181 {
13182 .eraseblocks = {
13183 {64 * 1024, 3},
13184 {32 * 1024, 1},
13185 {8 * 1024, 2},
13186 {16 * 1024, 1},
13187 },
13188 .block_erase = erase_sector_jedec,
13189 }, {
13190 .eraseblocks = { {256 * 1024, 1} },
13191 .block_erase = erase_chip_block_jedec,
13192 }
13193 },
Sean Nelson35727f72010-01-28 23:55:12 +000013194 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013195 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013196 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013197 },
13198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013199 {
13200 .vendor = "Winbond",
13201 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013202 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013203 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013204 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013205 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013206 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013207 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013208 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013209 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013210 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013211 .block_erasers =
13212 {
13213 {
13214 .eraseblocks = { {64 * 1024, 16}, },
13215 .block_erase = erase_sector_jedec,
13216 }, {
13217 .eraseblocks = { {1024 * 1024, 1} },
13218 .block_erase = erase_chip_block_jedec,
13219 }
13220 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013221 .printlock = printlock_w39v080fa,
13222 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000013223 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013224 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013225 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013226 },
13227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013228 {
13229 .vendor = "Winbond",
13230 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013231 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013232 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013233 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013234 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013235 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013236 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013237 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013238 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013239 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013240 .block_erasers =
13241 {
13242 {
13243 .eraseblocks = { {64 * 1024, 8}, },
13244 .block_erase = erase_sector_jedec,
13245 }, {
13246 .eraseblocks = { {512 * 1024, 1} },
13247 .block_erase = erase_chip_block_jedec,
13248 }
13249 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013250 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013251 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013252 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013253 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013254 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013255
13256 {
13257 .vendor = "Unknown",
13258 .name = "SFDP-capable chip",
13259 .bustype = BUS_SPI,
13260 .manufacture_id = GENERIC_MANUF_ID,
13261 .model_id = SFDP_DEVICE_ID,
13262 /* We present our own "report this" text hence we do not
13263 * want the default "This flash part has status UNTESTED..."
13264 * text to be printed. */
13265 .tested = TEST_OK_PREW,
13266 .probe = probe_spi_sfdp,
13267 .unlock = spi_disable_blockprotect, /* is this safe? */
13268 .read = spi_chip_read,
13269 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013270 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013271 /* Everything below will be set by the probing function. */
13272 .write = NULL,
13273 .total_size = 0,
13274 .page_size = 0,
13275 .feature_bits = 0,
13276 .block_erasers = {},
13277 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013278
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013279 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013280 .vendor = "Programmer",
13281 .name = "Opaque flash chip",
13282 .bustype = BUS_PROG,
13283 .manufacture_id = PROGMANUF_ID,
13284 .model_id = PROGDEV_ID,
13285 .total_size = 0,
13286 .page_size = 256,
13287 /* probe is assumed to work, rest will be filled in by probe */
13288 .tested = TEST_OK_PROBE,
13289 .probe = probe_opaque,
13290 /* eraseblock sizes will be set by the probing function */
13291 .block_erasers =
13292 {
13293 {
13294 .block_erase = erase_opaque,
13295 }
13296 },
13297 .write = write_opaque,
13298 .read = read_opaque,
13299 },
13300
13301 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013302 .vendor = "AMIC",
13303 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013304 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013305 .manufacture_id = AMIC_ID,
13306 .model_id = GENERIC_DEVICE_ID,
13307 .total_size = 0,
13308 .page_size = 256,
13309 .tested = TEST_BAD_PREW,
13310 .probe = probe_spi_rdid4,
13311 .probe_timing = TIMING_ZERO,
13312 .write = NULL,
13313 .read = NULL,
13314 },
13315
13316 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013317 .vendor = "Atmel",
13318 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013319 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013320 .manufacture_id = ATMEL_ID,
13321 .model_id = GENERIC_DEVICE_ID,
13322 .total_size = 0,
13323 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013324 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013325 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013326 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013327 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013328 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013329 },
13330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013331 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013332 .vendor = "Eon",
13333 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013334 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013335 .manufacture_id = EON_ID_NOPREFIX,
13336 .model_id = GENERIC_DEVICE_ID,
13337 .total_size = 0,
13338 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013339 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013340 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013341 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013342 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013343 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013344 },
13345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013346 {
13347 .vendor = "Macronix",
13348 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013349 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013350 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013351 .model_id = GENERIC_DEVICE_ID,
13352 .total_size = 0,
13353 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013354 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013355 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013356 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013357 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013358 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013359 },
13360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013361 {
13362 .vendor = "PMC",
13363 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013364 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013365 .manufacture_id = PMC_ID,
13366 .model_id = GENERIC_DEVICE_ID,
13367 .total_size = 0,
13368 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013369 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013370 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013371 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013372 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013373 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013374 },
13375
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013376 {
13377 .vendor = "SST",
13378 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013379 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013380 .manufacture_id = SST_ID,
13381 .model_id = GENERIC_DEVICE_ID,
13382 .total_size = 0,
13383 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013384 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013385 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013386 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013387 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013388 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013389 },
13390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013391 {
13392 .vendor = "ST",
13393 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013395 .manufacture_id = ST_ID,
13396 .model_id = GENERIC_DEVICE_ID,
13397 .total_size = 0,
13398 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013399 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013400 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013401 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013402 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013403 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013404 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013405
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013406 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013407 .vendor = "Sanyo",
13408 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013409 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013410 .manufacture_id = SANYO_ID,
13411 .model_id = GENERIC_DEVICE_ID,
13412 .total_size = 0,
13413 .page_size = 256,
13414 .tested = TEST_BAD_PREW,
13415 .probe = probe_spi_rdid,
13416 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013417 .write = NULL,
13418 .read = NULL,
13419 },
13420
13421 {
Stefan Taunereb582572012-09-21 12:52:50 +000013422 .vendor = "Winbond",
13423 .name = "unknown Winbond (ex Nexcom) SPI chip",
13424 .bustype = BUS_SPI,
13425 .manufacture_id = WINBOND_NEX_ID,
13426 .model_id = GENERIC_DEVICE_ID,
13427 .total_size = 0,
13428 .page_size = 256,
13429 .tested = TEST_BAD_PREW,
13430 .probe = probe_spi_rdid,
13431 .probe_timing = TIMING_ZERO,
13432 .write = NULL,
13433 .read = NULL,
13434 },
13435
13436 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013437 .vendor = "Generic",
13438 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013439 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013440 .manufacture_id = GENERIC_MANUF_ID,
13441 .model_id = GENERIC_DEVICE_ID,
13442 .total_size = 0,
13443 .page_size = 256,
13444 .tested = TEST_BAD_PREW,
13445 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013446 .write = NULL,
13447 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013448
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013449 {
13450 .vendor = "Generic",
13451 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013452 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013453 .manufacture_id = GENERIC_MANUF_ID,
13454 .model_id = GENERIC_DEVICE_ID,
13455 .total_size = 0,
13456 .page_size = 256,
13457 .tested = TEST_BAD_PREW,
13458 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013459 .write = NULL,
13460 },
13461
Stefan Tauner96658be2014-05-26 22:05:31 +000013462 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013463};
Stefan Tauner96658be2014-05-26 22:05:31 +000013464
13465const unsigned int flashchips_size = ARRAY_SIZE(flashchips);