blob: 3689de537f62e3dd9a3e3f02edd2dd0e182ab697 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000567 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000601 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000636 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000671 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000706 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000741 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000781 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000816 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000851 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000889 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000927 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000959 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000991 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001023 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001055 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001087 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001119 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001278 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
1398 .unlock = unlock_49fl00x,
1399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001712 .name = "AT25DL081",
1713 .bustype = BUS_SPI,
1714 .manufacture_id = ATMEL_ID,
1715 .model_id = ATMEL_AT25DF081,
1716 .total_size = 1024,
1717 .page_size = 256,
1718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 256} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 32} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 16} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {1 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {1 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
1743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1744 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1745 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1746 .voltage = {1650, 1950},
1747 },
1748
1749 {
1750 .vendor = "Atmel",
1751 .name = "AT25DL161",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25DL161,
1755 .total_size = 2048,
1756 .page_size = 256,
1757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1759 .tested = TEST_UNTESTED,
1760 .probe = probe_spi_rdid,
1761 .probe_timing = TIMING_ZERO,
1762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 512} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 64} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 32} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {2 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {2 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
1781 .printlock = spi_prettyprint_status_register_at25df_sec,
1782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1783 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1784 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1785 .voltage = {1650, 1950},
1786 },
1787
1788 {
1789 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001790 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001794 .total_size = 2048,
1795 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001796 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001798 .tested = TEST_UNTESTED,
1799 .probe = probe_spi_rdid,
1800 .probe_timing = TIMING_ZERO,
1801 .block_erasers =
1802 {
1803 {
1804 .eraseblocks = { {4 * 1024, 512} },
1805 .block_erase = spi_block_erase_20,
1806 }, {
1807 .eraseblocks = { {32 * 1024, 64} },
1808 .block_erase = spi_block_erase_52,
1809 }, {
1810 .eraseblocks = { {64 * 1024, 32} },
1811 .block_erase = spi_block_erase_d8,
1812 }, {
1813 .eraseblocks = { {2 * 1024 * 1024, 1} },
1814 .block_erase = spi_block_erase_60,
1815 }, {
1816 .eraseblocks = { {2 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_c7,
1818 }
1819 },
1820 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001821 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001822 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001824 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001825 },
1826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 {
1828 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001829 .name = "AT25F512",
1830 .bustype = BUS_SPI,
1831 .manufacture_id = ATMEL_ID,
1832 .model_id = ATMEL_AT25F512,
1833 .total_size = 64,
1834 .page_size = 256,
1835 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001836 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001837 .probe = probe_spi_at25f,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {32 * 1024, 2} },
1843 .block_erase = spi_block_erase_52,
1844 }, {
1845 .eraseblocks = { {64 * 1024, 1} },
1846 .block_erase = spi_block_erase_62,
1847 }
1848 },
1849 .printlock = spi_prettyprint_status_register_at25f,
1850 .unlock = spi_disable_blockprotect_at25f,
1851 .write = spi_chip_write_256,
1852 .read = spi_chip_read,
1853 .voltage = {2700, 3600},
1854 },
1855
1856 {
1857 .vendor = "Atmel",
1858 .name = "AT25F512A",
1859 .bustype = BUS_SPI,
1860 .manufacture_id = ATMEL_ID,
1861 .model_id = ATMEL_AT25F512A,
1862 .total_size = 64,
1863 .page_size = 128,
1864 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001865 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001866 .probe = probe_spi_at25f,
1867 .probe_timing = TIMING_ZERO,
1868 .block_erasers =
1869 {
1870 {
1871 .eraseblocks = { {32 * 1024, 2} },
1872 .block_erase = spi_block_erase_52,
1873 }, {
1874 .eraseblocks = { {64 * 1024, 1} },
1875 .block_erase = spi_block_erase_62,
1876 }
1877 },
1878 .printlock = spi_prettyprint_status_register_at25f512a,
1879 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1880 .unlock = spi_disable_blockprotect_at25f512a,
1881 .write = spi_chip_write_256,
1882 .read = spi_chip_read,
1883 .voltage = {2700, 3600},
1884 },
1885
1886 {
1887 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001888 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 64,
1893 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001894 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .tested = TEST_UNTESTED,
1897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001898 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001899 .block_erasers =
1900 {
1901 {
1902 .eraseblocks = { {4 * 1024, 16} },
1903 .block_erase = spi_block_erase_20,
1904 }, {
1905 .eraseblocks = { {32 * 1024, 2} },
1906 .block_erase = spi_block_erase_52,
1907 }, {
1908 .eraseblocks = { {32 * 1024, 2} },
1909 .block_erase = spi_block_erase_d8,
1910 }, {
1911 .eraseblocks = { {64 * 1024, 1} },
1912 .block_erase = spi_block_erase_60,
1913 }, {
1914 .eraseblocks = { {64 * 1024, 1} },
1915 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001916 }, {
1917 .eraseblocks = { {64 * 1024, 1} },
1918 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001919 }
1920 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001921 .printlock = spi_prettyprint_status_register_at25f512b,
1922 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001923 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001926 },
1927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 {
1929 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001930 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1931 * All other properties seem to be the same.*/
1932 .name = "AT25F1024(A)",
1933 .bustype = BUS_SPI,
1934 .manufacture_id = ATMEL_ID,
1935 .model_id = ATMEL_AT25F1024,
1936 .total_size = 128,
1937 .page_size = 256,
1938 .feature_bits = FEATURE_WRSR_WREN,
1939 .tested = TEST_OK_PREW,
1940 .probe = probe_spi_at25f,
1941 .probe_timing = TIMING_ZERO,
1942 .block_erasers =
1943 {
1944 {
1945 .eraseblocks = { {32 * 1024, 4} },
1946 .block_erase = spi_block_erase_52,
1947 }, {
1948 .eraseblocks = { {128 * 1024, 1} },
1949 .block_erase = spi_block_erase_62,
1950 }
1951 },
1952 .printlock = spi_prettyprint_status_register_at25f,
1953 .unlock = spi_disable_blockprotect_at25f,
1954 .write = spi_chip_write_256,
1955 .read = spi_chip_read,
1956 .voltage = {2700, 3600},
1957 },
1958
1959 {
1960 .vendor = "Atmel",
1961 .name = "AT25F2048",
1962 .bustype = BUS_SPI,
1963 .manufacture_id = ATMEL_ID,
1964 .model_id = ATMEL_AT25F2048,
1965 .total_size = 256,
1966 .page_size = 256,
1967 .feature_bits = FEATURE_WRSR_WREN,
1968 .tested = TEST_UNTESTED,
1969 .probe = probe_spi_at25f,
1970 .probe_timing = TIMING_ZERO,
1971 .block_erasers =
1972 {
1973 {
1974 .eraseblocks = { {64 * 1024, 4} },
1975 .block_erase = spi_block_erase_52,
1976 }, {
1977 .eraseblocks = { {256 * 1024, 1} },
1978 .block_erase = spi_block_erase_62,
1979 }
1980 },
1981 .printlock = spi_prettyprint_status_register_at25f,
1982 .unlock = spi_disable_blockprotect_at25f,
1983 .write = spi_chip_write_256,
1984 .read = spi_chip_read,
1985 .voltage = {2700, 3600},
1986 },
1987
1988 {
1989 .vendor = "Atmel",
1990 .name = "AT25F4096",
1991 .bustype = BUS_SPI,
1992 .manufacture_id = ATMEL_ID,
1993 .model_id = ATMEL_AT25F4096,
1994 .total_size = 512,
1995 .page_size = 256,
1996 .feature_bits = FEATURE_WRSR_WREN,
1997 .tested = TEST_UNTESTED,
1998 .probe = probe_spi_at25f,
1999 .probe_timing = TIMING_ZERO,
2000 .block_erasers =
2001 {
2002 {
2003 .eraseblocks = { {64 * 1024, 8} },
2004 .block_erase = spi_block_erase_52,
2005 }, {
2006 .eraseblocks = { {512 * 1024, 1} },
2007 .block_erase = spi_block_erase_62,
2008 }
2009 },
2010 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002011 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2012 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002013 .write = spi_chip_write_256,
2014 .read = spi_chip_read,
2015 .voltage = {2700, 3600},
2016 },
2017
2018 {
2019 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002020 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002023 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002024 .total_size = 128,
2025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002026 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002027 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002029 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002030 .block_erasers =
2031 {
2032 {
2033 .eraseblocks = { {4 * 1024, 32} },
2034 .block_erase = spi_block_erase_20,
2035 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002036 .eraseblocks = { {4 * 1024, 32} },
2037 .block_erase = spi_block_erase_d7,
2038 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002039 .eraseblocks = { {32 * 1024, 4} },
2040 .block_erase = spi_block_erase_52,
2041 }, {
2042 .eraseblocks = { {32 * 1024, 4} },
2043 .block_erase = spi_block_erase_d8,
2044 }, {
2045 .eraseblocks = { {128 * 1024, 1} },
2046 .block_erase = spi_block_erase_60,
2047 }, {
2048 .eraseblocks = { {128 * 1024, 1} },
2049 .block_erase = spi_block_erase_c7,
2050 }
2051 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002052 .printlock = spi_prettyprint_status_register_at25fs010,
2053 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002054 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002056 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002057 },
2058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 {
2060 .vendor = "Atmel",
2061 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002062 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002064 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .total_size = 512,
2066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002067 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .tested = TEST_UNTESTED,
2069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002070 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002071 .block_erasers =
2072 {
2073 {
2074 .eraseblocks = { {4 * 1024, 128} },
2075 .block_erase = spi_block_erase_20,
2076 }, {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {64 * 1024, 8} },
2081 .block_erase = spi_block_erase_d8,
2082 }, {
2083 .eraseblocks = { {512 * 1024, 1} },
2084 .block_erase = spi_block_erase_60,
2085 }, {
2086 .eraseblocks = { {512 * 1024, 1} },
2087 .block_erase = spi_block_erase_c7,
2088 }
2089 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002090 .printlock = spi_prettyprint_status_register_at25fs040,
2091 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002092 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002094 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002095 },
2096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 {
2098 .vendor = "Atmel",
2099 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 512,
2104 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002105 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002106 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002108 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002109 .block_erasers =
2110 {
2111 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002112 .eraseblocks = { {256, 2048} },
2113 .block_erase = spi_block_erase_81,
2114 }, {
2115 .eraseblocks = { {2 * 1024, 256} },
2116 .block_erase = spi_block_erase_50,
2117 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002121 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002122 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002123 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002124 .write = spi_chip_write_1,
2125 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002126 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002127 },
2128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 {
2130 .vendor = "Atmel",
2131 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002132 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002134 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .total_size = 1024,
2136 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002137 .feature_bits = FEATURE_WRSR_WREN,
2138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002140 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002141 .block_erasers =
2142 {
2143 {
2144 .eraseblocks = { {4 * 1024, 256} },
2145 .block_erase = spi_block_erase_20,
2146 }, {
2147 .eraseblocks = { {32 * 1024, 32} },
2148 .block_erase = spi_block_erase_52,
2149 }, {
2150 .eraseblocks = { {64 * 1024, 16} },
2151 .block_erase = spi_block_erase_d8,
2152 }, {
2153 .eraseblocks = { {1024 * 1024, 1} },
2154 .block_erase = spi_block_erase_60,
2155 }, {
2156 .eraseblocks = { {1024 * 1024, 1} },
2157 .block_erase = spi_block_erase_c7,
2158 }
2159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002160 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002161 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002162 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002165 },
2166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 {
2168 .vendor = "Atmel",
2169 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002172 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .total_size = 2048,
2174 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002178 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002179 .block_erasers =
2180 {
2181 {
2182 .eraseblocks = { {4 * 1024, 512} },
2183 .block_erase = spi_block_erase_20,
2184 }, {
2185 .eraseblocks = { {32 * 1024, 64} },
2186 .block_erase = spi_block_erase_52,
2187 }, {
2188 .eraseblocks = { {64 * 1024, 32} },
2189 .block_erase = spi_block_erase_d8,
2190 }, {
2191 .eraseblocks = { {2 * 1024 * 1024, 1} },
2192 .block_erase = spi_block_erase_60,
2193 }, {
2194 .eraseblocks = { {2 * 1024 * 1024, 1} },
2195 .block_erase = spi_block_erase_c7,
2196 }
2197 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002198 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002199 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002203 },
2204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 {
2206 .vendor = "Atmel",
2207 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002208 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002210 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 .total_size = 2048,
2212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002216 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002217 .block_erasers =
2218 {
2219 {
2220 .eraseblocks = { {4 * 1024, 512} },
2221 .block_erase = spi_block_erase_20,
2222 }, {
2223 .eraseblocks = { {32 * 1024, 64} },
2224 .block_erase = spi_block_erase_52,
2225 }, {
2226 .eraseblocks = { {64 * 1024, 32} },
2227 .block_erase = spi_block_erase_d8,
2228 }, {
2229 .eraseblocks = { {2 * 1024 * 1024, 1} },
2230 .block_erase = spi_block_erase_60,
2231 }, {
2232 .eraseblocks = { {2 * 1024 * 1024, 1} },
2233 .block_erase = spi_block_erase_c7,
2234 }
2235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002236 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002237 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002238 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002241 },
2242
2243 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 /*{
2245 .vendor = "Atmel",
2246 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002249 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002250 .total_size = 4096,
2251 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002252 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .tested = TEST_UNTESTED,
2254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002255 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002256 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002258 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002259 .read = spi_chip_read,
2260 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 {
2263 .vendor = "Atmel",
2264 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002267 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .total_size = 512,
2269 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002270 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002271 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002273 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002274 .block_erasers =
2275 {
2276 {
2277 .eraseblocks = { {4 * 1024, 128} },
2278 .block_erase = spi_block_erase_20,
2279 }, {
2280 .eraseblocks = { {32 * 1024, 16} },
2281 .block_erase = spi_block_erase_52,
2282 }, {
2283 .eraseblocks = { {64 * 1024, 8} },
2284 .block_erase = spi_block_erase_d8,
2285 }, {
2286 .eraseblocks = { {512 * 1024, 1} },
2287 .block_erase = spi_block_erase_60,
2288 }, {
2289 .eraseblocks = { {512 * 1024, 1} },
2290 .block_erase = spi_block_erase_c7,
2291 }
2292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 .write = NULL /* Incompatible Page write */,
2295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002297 },
2298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 {
2300 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002301 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002302 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002303 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002304 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002305 .total_size = 64,
2306 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002307 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002308 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002309 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002310 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002311 .block_erasers =
2312 {
2313 {
2314 .eraseblocks = { {64 * 1024, 1} },
2315 .block_erase = erase_chip_block_jedec,
2316 }
2317 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002318 .write = write_jedec,
2319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002320 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002321 },
2322
2323 {
2324 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002325 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002326 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002328 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002329 .total_size = 128,
2330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002332 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002333 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002334 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002335 .block_erasers =
2336 {
2337 {
2338 .eraseblocks = { {128 * 1024, 1} },
2339 .block_erase = erase_chip_block_jedec,
2340 }
2341 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002342 .write = write_jedec, /* FIXME */
2343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002344 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002345 },
2346
2347 {
2348 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002352 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .total_size = 256,
2354 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002355 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002357 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002358 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002359 .block_erasers =
2360 {
2361 {
2362 .eraseblocks = { {256 * 1024, 1} },
2363 .block_erase = erase_chip_block_jedec,
2364 }
2365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002369 },
2370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 {
2372 .vendor = "Atmel",
2373 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002379 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .tested = TEST_UNTESTED,
2381 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002382 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {512 * 1024, 1} },
2387 .block_erase = erase_chip_block_jedec,
2388 }
2389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002393 },
2394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 {
2396 .vendor = "Atmel",
2397 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002398 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002399 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002400 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002401 .total_size = 16896 /* No power of two sizes */,
2402 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002403 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002404 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2405 .feature_bits = FEATURE_OTP,
2406 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002408 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002409 .block_erasers =
2410 {
2411 {
2412 .eraseblocks = {
2413 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2414 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2415 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2416 },
2417 .block_erase = spi_erase_at45cs_sector,
2418 }
2419 },
2420 .printlock = spi_prettyprint_status_register_plain,
2421 .gran = write_gran_1056bytes,
2422 .write = spi_write_at45db,
2423 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002424 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002427 {
2428 .vendor = "Atmel",
2429 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002430 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002432 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002433 .total_size = 128 /* or 132, determined from status register */,
2434 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002435 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002436 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2437 .feature_bits = FEATURE_OTP,
2438 .tested = TEST_UNTESTED,
2439 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002440 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002441 .block_erasers =
2442 {
2443 {
2444 .eraseblocks = { {256, 512} },
2445 .block_erase = spi_erase_at45db_page,
2446 }, {
2447 .eraseblocks = { {8 * 256, 512/8} },
2448 .block_erase = spi_erase_at45db_block,
2449 }, {
2450 .eraseblocks = {
2451 {8 * 256, 1},
2452 {120 * 256, 1},
2453 {128 * 256, 3},
2454 },
2455 .block_erase = spi_erase_at45db_sector
2456 }, {
2457 .eraseblocks = { {128 * 1024, 1} },
2458 .block_erase = spi_erase_at45db_chip,
2459 }
2460 },
2461 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2462 .printlock = spi_prettyprint_status_register_at45db,
2463 /* granularity will be set by the probing function. */
2464 .write = spi_write_at45db,
2465 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002466 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002467 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 {
2470 .vendor = "Atmel",
2471 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002472 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002473 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002474 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002475 .total_size = 256 /* or 264, determined from status register */,
2476 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002477 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002478 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2479 .feature_bits = FEATURE_OTP,
2480 .tested = TEST_UNTESTED,
2481 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002482 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002483 .block_erasers =
2484 {
2485 {
2486 .eraseblocks = { {256, 1024} },
2487 .block_erase = spi_erase_at45db_page,
2488 }, {
2489 .eraseblocks = { {8 * 256, 1024/8} },
2490 .block_erase = spi_erase_at45db_block,
2491 }, {
2492 .eraseblocks = {
2493 {8 * 256, 1},
2494 {120 * 256, 1},
2495 {128 * 256, 7},
2496 },
2497 .block_erase = spi_erase_at45db_sector
2498 }, {
2499 .eraseblocks = { {256 * 1024, 1} },
2500 .block_erase = spi_erase_at45db_chip,
2501 }
2502 },
2503 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2504 .printlock = spi_prettyprint_status_register_at45db,
2505 /* granularity will be set by the probing function. */
2506 .write = spi_write_at45db,
2507 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002509 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002511 {
2512 .vendor = "Atmel",
2513 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002514 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002516 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 .total_size = 512 /* or 528, determined from status register */,
2518 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002519 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2521 .feature_bits = FEATURE_OTP,
2522 .tested = TEST_OK_PREW,
2523 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002524 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002525 .block_erasers =
2526 {
2527 {
2528 .eraseblocks = { {256, 2048} },
2529 .block_erase = spi_erase_at45db_page,
2530 }, {
2531 .eraseblocks = { {8 * 256, 2048/8} },
2532 .block_erase = spi_erase_at45db_block,
2533 }, {
2534 .eraseblocks = {
2535 {8 * 256, 1},
2536 {248 * 256, 1},
2537 {256 * 256, 7},
2538 },
2539 .block_erase = spi_erase_at45db_sector
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_erase_at45db_chip,
2543 }
2544 },
2545 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2546 .printlock = spi_prettyprint_status_register_at45db,
2547 /* granularity will be set by the probing function. */
2548 .write = spi_write_at45db,
2549 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2550 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002551 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 {
2554 .vendor = "Atmel",
2555 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002556 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002558 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 .total_size = 1024 /* or 1056, determined from status register */,
2560 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002561 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2563 .feature_bits = FEATURE_OTP,
2564 .tested = TEST_UNTESTED,
2565 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {256, 4096} },
2571 .block_erase = spi_erase_at45db_page,
2572 }, {
2573 .eraseblocks = { {8 * 256, 4096/8} },
2574 .block_erase = spi_erase_at45db_block,
2575 }, {
2576 .eraseblocks = {
2577 {8 * 256, 1},
2578 {248 * 256, 1},
2579 {256 * 256, 15},
2580 },
2581 .block_erase = spi_erase_at45db_sector
2582 }, {
2583 .eraseblocks = { {1024 * 1024, 1} },
2584 .block_erase = spi_erase_at45db_chip,
2585 }
2586 },
2587 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2588 .printlock = spi_prettyprint_status_register_at45db,
2589 /* granularity will be set by the probing function. */
2590 .write = spi_write_at45db,
2591 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002592 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002593 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 {
2596 .vendor = "Atmel",
2597 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 .total_size = 2048 /* or 2112, determined from status register */,
2602 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002603 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002604 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2605 .feature_bits = FEATURE_OTP,
2606 .tested = TEST_OK_PREW,
2607 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002608 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {512, 4096} },
2613 .block_erase = spi_erase_at45db_page,
2614 }, {
2615 .eraseblocks = { {8 * 512, 4096/8} },
2616 .block_erase = spi_erase_at45db_block,
2617 }, {
2618 .eraseblocks = {
2619 {8 * 512, 1},
2620 {248 * 512, 1},
2621 {256 * 512, 15},
2622 },
2623 .block_erase = spi_erase_at45db_sector
2624 }, {
2625 .eraseblocks = { {2048 * 1024, 1} },
2626 .block_erase = spi_erase_at45db_chip,
2627 }
2628 },
2629 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2630 .printlock = spi_prettyprint_status_register_at45db,
2631 /* granularity will be set by the probing function. */
2632 .write = spi_write_at45db,
2633 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002634 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002635 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002637 {
2638 .vendor = "Atmel",
2639 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002641 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002642 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002643 .total_size = 4224 /* No power of two sizes */,
2644 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002645 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002646 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2647 .feature_bits = FEATURE_OTP,
2648 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002650 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002651 .block_erasers =
2652 {
2653 {
2654 .eraseblocks = { {528, 8192} },
2655 .block_erase = spi_erase_at45db_page,
2656 }, {
2657 .eraseblocks = { {8 * 528, 8192/8} },
2658 .block_erase = spi_erase_at45db_block,
2659 }, /* Although the datasheets describes sectors (which can be write protected)
2660 * there seems to be no erase functions for them.
2661 {
2662 .eraseblocks = {
2663 {8 * 528, 1},
2664 {120 * 528, 1},
2665 {128 * 528, 63},
2666 },
2667 .block_erase = spi_erase_at45db_sector
2668 }, */ {
2669 .eraseblocks = { {4224 * 1024, 1} },
2670 .block_erase = spi_erase_at45db_chip,
2671 }
2672 },
2673 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2674 .gran = write_gran_528bytes,
2675 .write = spi_write_at45db,
2676 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002678 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 {
2681 .vendor = "Atmel",
2682 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002684 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002685 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002686 .total_size = 4096 /* or 4224, determined from status register */,
2687 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002688 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002689 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002690 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 .tested = TEST_UNTESTED,
2692 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002693 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .block_erasers =
2695 {
2696 {
2697 .eraseblocks = { {512, 8192} },
2698 .block_erase = spi_erase_at45db_page,
2699 }, {
2700 .eraseblocks = { {8 * 512, 8192/8} },
2701 .block_erase = spi_erase_at45db_block,
2702 }, {
2703 .eraseblocks = {
2704 {8 * 512, 1},
2705 {120 * 512, 1},
2706 {128 * 512, 63},
2707 },
2708 .block_erase = spi_erase_at45db_sector
2709 }, {
2710 .eraseblocks = { {4096 * 1024, 1} },
2711 .block_erase = spi_erase_at45db_chip,
2712 }
2713 },
2714 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2715 .printlock = spi_prettyprint_status_register_at45db,
2716 /* granularity will be set by the probing function. */
2717 .write = spi_write_at45db,
2718 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2719 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2720 },
2721
2722 {
2723 .vendor = "Atmel",
2724 .name = "AT45DB321E",
2725 .bustype = BUS_SPI,
2726 .manufacture_id = ATMEL_ID,
2727 .model_id = ATMEL_AT45DB321C,
2728 .total_size = 4096 /* or 4224, determined from status register */,
2729 .page_size = 512 /* or 528, determined from status register */,
2730 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2731 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2732 .feature_bits = FEATURE_OTP,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_at45db,
2735 .probe_timing = TIMING_ZERO,
2736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = { {512, 8192} },
2740 .block_erase = spi_erase_at45db_page,
2741 }, {
2742 .eraseblocks = { {8 * 512, 8192/8} },
2743 .block_erase = spi_erase_at45db_block,
2744 }, {
2745 .eraseblocks = {
2746 {8 * 512, 1},
2747 {120 * 512, 1},
2748 {128 * 512, 63},
2749 },
2750 .block_erase = spi_erase_at45db_sector
2751 }, {
2752 .eraseblocks = { {4096 * 1024, 1} },
2753 .block_erase = spi_erase_at45db_chip,
2754 }
2755 },
2756 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2757 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2758 /* granularity will be set by the probing function. */
2759 .write = spi_write_at45db,
2760 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2761 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002762 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 {
2765 .vendor = "Atmel",
2766 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 .total_size = 8192 /* or 8448, determined from status register */,
2771 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
2776 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = { {1024, 8192} },
2782 .block_erase = spi_erase_at45db_page,
2783 }, {
2784 .eraseblocks = { {8 * 1024, 8192/8} },
2785 .block_erase = spi_erase_at45db_block,
2786 }, {
2787 .eraseblocks = {
2788 {8 * 1024, 1},
2789 {248 * 1024, 1},
2790 {256 * 1024, 31},
2791 },
2792 .block_erase = spi_erase_at45db_sector
2793 }, {
2794 .eraseblocks = { {8192 * 1024, 1} },
2795 .block_erase = spi_erase_at45db_chip,
2796 }
2797 },
2798 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2799 .printlock = spi_prettyprint_status_register_at45db,
2800 /* granularity will be set by the probing function. */
2801 .write = spi_write_at45db,
2802 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002803 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002804 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 {
2807 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002808 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002809 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002810 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002811 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002812 .total_size = 64,
2813 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002814 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002815 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002816 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {64 * 1024, 1} },
2822 .block_erase = erase_chip_block_jedec,
2823 }
2824 },
Sean Nelson35727f72010-01-28 23:55:12 +00002825 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002827 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002828 },
2829
2830 {
2831 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002832 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002834 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002835 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002836 .total_size = 256,
2837 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002838 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002839 .tested = TEST_UNTESTED,
2840 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = {
2846 {16 * 1024, 1},
2847 {8 * 1024, 2},
2848 {96 * 1024, 1},
2849 {128 * 1024, 1},
2850 },
2851 .block_erase = erase_sector_jedec,
2852 }, {
2853 .eraseblocks = { {256 * 1024, 1} },
2854 .block_erase = erase_chip_block_jedec,
2855 }
2856 },
Sean Nelson35727f72010-01-28 23:55:12 +00002857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002859 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002860 },
2861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002862 {
2863 .vendor = "Atmel",
2864 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002865 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002866 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002867 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 .total_size = 256,
2869 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002870 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002871 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002872 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002874 .block_erasers =
2875 {
2876 {
2877 .eraseblocks = {
2878 {128 * 1024, 1},
2879 {96 * 1024, 1},
2880 {8 * 1024, 2},
2881 {16 * 1024, 1},
2882 },
2883 .block_erase = erase_sector_jedec,
2884 }, {
2885 .eraseblocks = { {256 * 1024, 1} },
2886 .block_erase = erase_chip_block_jedec,
2887 }
2888 },
Sean Nelson35727f72010-01-28 23:55:12 +00002889 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002891 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002892 },
2893
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002894 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002895 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002896 .name = "AT49(H)F010",
2897 .bustype = BUS_PARALLEL,
2898 .manufacture_id = ATMEL_ID,
2899 .model_id = ATMEL_AT49F010,
2900 .total_size = 128,
2901 .page_size = 0, /* unused */
2902 .feature_bits = FEATURE_EITHER_RESET,
2903 .tested = TEST_OK_PREW,
2904 .probe = probe_jedec,
2905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {128 * 1024, 1} },
2910 .block_erase = erase_chip_block_jedec,
2911 }
2912 },
2913 .printlock = printlock_at49f,
2914 .write = write_jedec_1,
2915 .read = read_memmapped,
2916 .voltage = {4500, 5500},
2917 },
2918
2919 {
2920 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002921 .name = "AT49F020",
2922 .bustype = BUS_PARALLEL,
2923 .manufacture_id = ATMEL_ID,
2924 .model_id = ATMEL_AT49F020,
2925 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002926 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002927 .feature_bits = FEATURE_EITHER_RESET,
2928 .tested = TEST_OK_PRE,
2929 .probe = probe_jedec,
2930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 /* Chip features an optional permanent write protection
2938 * of the first 8 kB. The erase function is the same as
2939 * above, but 00000H to 01FFFH will not be erased.
2940 * FIXME: add another eraser when partial erasers are
2941 * supported.
2942 */
2943 },
2944 .printlock = printlock_at49f,
2945 .write = write_jedec_1,
2946 .read = read_memmapped,
2947 .voltage = {4500, 5500},
2948 },
2949
2950 {
2951 .vendor = "Atmel",
2952 .name = "AT49F040",
2953 .bustype = BUS_PARALLEL,
2954 .manufacture_id = ATMEL_ID,
2955 .model_id = ATMEL_AT49F040,
2956 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002957 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002958 .feature_bits = FEATURE_EITHER_RESET,
2959 .tested = TEST_UNTESTED,
2960 .probe = probe_jedec,
2961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2962 .block_erasers =
2963 {
2964 {
2965 .eraseblocks = { {512 * 1024, 1} },
2966 .block_erase = erase_chip_block_jedec,
2967 }
2968 /* Chip features an optional permanent write protection
2969 * of the first 16 kB. The erase function is the same as
2970 * above, but 00000H to 03FFFH will not be erased.
2971 * FIXME: add another eraser when partial erasers are
2972 * supported.
2973 */
2974 },
2975 .printlock = printlock_at49f,
2976 .write = write_jedec_1,
2977 .read = read_memmapped,
2978 .voltage = {4500, 5500},
2979 },
2980
2981 {
2982 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002983 .name = "AT49F080",
2984 .bustype = BUS_PARALLEL,
2985 .manufacture_id = ATMEL_ID,
2986 .model_id = ATMEL_AT49F080,
2987 .total_size = 1024,
2988 .page_size = 0, /* unused */
2989 .feature_bits = FEATURE_EITHER_RESET,
2990 .tested = TEST_UNTESTED,
2991 .probe = probe_jedec,
2992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2993 .block_erasers =
2994 {
2995 {
2996 .eraseblocks = { {1024 * 1024, 1} },
2997 .block_erase = erase_chip_block_jedec,
2998 }
2999 /* Chip features an optional permanent write protection
3000 * of the first 16 kB. The erase function is the same as
3001 * above, but 00000H to 03FFFH will not be erased.
3002 * FIXME: add another eraser when partial erasers are
3003 * supported.
3004 */
3005 },
3006 .printlock = printlock_at49f,
3007 .write = write_jedec_1,
3008 .read = read_memmapped,
3009 .voltage = {4500, 5500},
3010 },
3011
3012 {
3013 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3014 .vendor = "Atmel",
3015 .name = "AT49F080T",
3016 .bustype = BUS_PARALLEL,
3017 .manufacture_id = ATMEL_ID,
3018 .model_id = ATMEL_AT49F080T,
3019 .total_size = 1024,
3020 .page_size = 0, /* unused */
3021 .feature_bits = FEATURE_EITHER_RESET,
3022 .tested = TEST_UNTESTED,
3023 .probe = probe_jedec,
3024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3025 .block_erasers =
3026 {
3027 {
3028 .eraseblocks = { {1024 * 1024, 1} },
3029 .block_erase = erase_chip_block_jedec,
3030 }
3031 /* Chip features an optional permanent write protection
3032 * of the first 16 kB. The erase function is the same as
3033 * above, but FC000H to FFFFFH will not be erased.
3034 * FIXME: add another eraser when partial erasers are
3035 * supported.
3036 */
3037 },
3038 .printlock = printlock_at49f,
3039 .write = write_jedec_1,
3040 .read = read_memmapped,
3041 .voltage = {4500, 5500},
3042 },
3043
3044 {
3045 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003046 .name = "AT49LH002",
3047 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3048 .manufacture_id = ATMEL_ID,
3049 .model_id = ATMEL_AT49LH002,
3050 .total_size = 256,
3051 .page_size = 0, /* unused */
3052 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
3053 .tested = TEST_UNTESTED,
3054 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
3055 .probe_timing = TIMING_FIXME,
3056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
3065 .block_erase = erase_block_82802ab,
3066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
3070 .block_erase = NULL, /* TODO: Implement. */
3071 },
3072 },
3073 .printlock = NULL, /* TODO */
3074 .unlock = NULL, /* unlock_82802ab() not correct(?) */
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
Andrew Morganca081462011-09-13 22:05:44 +00003081 .vendor = "Catalyst",
3082 .name = "CAT28F512",
3083 .bustype = BUS_PARALLEL,
3084 .manufacture_id = CATALYST_ID,
3085 .model_id = CATALYST_CAT28F512,
3086 .total_size = 64,
3087 .page_size = 0, /* unused */
3088 .feature_bits = 0,
3089 .tested = TEST_OK_PR,
3090 .probe = probe_jedec, /* FIXME! */
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = { {64 * 1024, 1} },
3096 .block_erase = NULL, /* TODO */
3097 },
3098 },
3099 .write = NULL, /* TODO */
3100 .read = read_memmapped,
3101 .voltage = {4500, 5500},
3102 },
3103
3104 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003105 .vendor = "Bright",
3106 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003107 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003108 .manufacture_id = BRIGHT_ID,
3109 .model_id = BRIGHT_BM29F040,
3110 .total_size = 512,
3111 .page_size = 64 * 1024,
3112 .feature_bits = FEATURE_EITHER_RESET,
3113 .tested = TEST_OK_PR,
3114 .probe = probe_jedec,
3115 .probe_timing = TIMING_ZERO,
3116 .block_erasers =
3117 {
3118 {
3119 .eraseblocks = { {64 * 1024, 8} },
3120 .block_erase = erase_sector_jedec,
3121 }, {
3122 .eraseblocks = { {512 * 1024, 1} },
3123 .block_erase = erase_chip_block_jedec,
3124 },
3125 },
3126 .write = write_jedec_1,
3127 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003128 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003129 },
3130
3131 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003132 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003133 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003134 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003135 .manufacture_id = ESMT_ID,
3136 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003137 .total_size = 256,
3138 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003139 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003140 .tested = TEST_UNTESTED,
3141 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003143 .block_erasers =
3144 {
3145 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003146 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003147 {128 * 1024, 1},
3148 {96 * 1024, 1},
3149 {8 * 1024, 2},
3150 {16 * 1024, 1},
3151 },
3152 .block_erase = erase_sector_jedec,
3153 }, {
3154 .eraseblocks = { {256 * 1024, 1} },
3155 .block_erase = erase_chip_block_jedec,
3156 }
3157 },
Sean Nelson35727f72010-01-28 23:55:12 +00003158 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003161 },
3162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003163 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003164 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003165 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003166 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003167 .manufacture_id = ESMT_ID,
3168 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003169 .total_size = 1024,
3170 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003171 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003172 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003173 .probe = probe_spi_rdid,
3174 .probe_timing = TIMING_ZERO,
3175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = { {4 * 1024, 256} },
3179 .block_erase = spi_block_erase_20,
3180 }, {
3181 .eraseblocks = { {64 * 1024, 16} },
3182 .block_erase = spi_block_erase_d8,
3183 }, {
3184 .eraseblocks = { {1024 * 1024, 1} },
3185 .block_erase = spi_block_erase_60,
3186 }, {
3187 .eraseblocks = { {1024 * 1024, 1} },
3188 .block_erase = spi_block_erase_c7,
3189 }
3190 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003192 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003193 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003194 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003195 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003196 },
3197
3198 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003199 .vendor = "ESMT",
3200 .name = "F25L32PA",
3201 .bustype = BUS_SPI,
3202 .manufacture_id = ESMT_ID,
3203 .model_id = ESMT_F25L32PA,
3204 .total_size = 4096,
3205 .page_size = 256,
3206 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3207 .tested = TEST_UNTESTED,
3208 .probe = probe_spi_rdid,
3209 .probe_timing = TIMING_ZERO,
3210 .block_erasers =
3211 {
3212 {
3213 .eraseblocks = { {4 * 1024, 1024} },
3214 .block_erase = spi_block_erase_20,
3215 }, {
3216 .eraseblocks = { {64 * 1024, 64} },
3217 .block_erase = spi_block_erase_d8,
3218 }, {
3219 .eraseblocks = { {4 * 1024 * 1024, 1} },
3220 .block_erase = spi_block_erase_60,
3221 }, {
3222 .eraseblocks = { {4 * 1024 * 1024, 1} },
3223 .block_erase = spi_block_erase_c7,
3224 }
3225 },
3226 .printlock = spi_prettyprint_status_register_bp2_bpl,
3227 .unlock = spi_disable_blockprotect,
3228 .write = spi_chip_write_256,
3229 .read = spi_chip_read,
3230 .voltage = {2700, 3600},
3231 },
3232
3233 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003234 .vendor = "Eon",
3235 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003236 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003237 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003238 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003239 .total_size = 64,
3240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003241 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003242 .tested = TEST_UNTESTED,
3243 .probe = probe_spi_rdid,
3244 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = {
3249 {4 * 1024, 2},
3250 {8 * 1024, 1},
3251 {16 * 1024, 1},
3252 {32 * 1024, 1},
3253 },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {64 * 1024, 1} },
3257 .block_erase = spi_block_erase_c7,
3258 }
3259 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003260 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003261 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003262 .write = spi_chip_write_256,
3263 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003264 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003265 },
3266
3267 {
3268 .vendor = "Eon",
3269 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003270 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003271 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003272 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003273 .total_size = 64,
3274 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003275 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003276 .tested = TEST_UNTESTED,
3277 .probe = probe_spi_rdid,
3278 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003279 .block_erasers =
3280 {
3281 {
3282 .eraseblocks = {
3283 {32 * 1024, 1},
3284 {16 * 1024, 1},
3285 {8 * 1024, 1},
3286 {4 * 1024, 2},
3287 },
3288 .block_erase = spi_block_erase_d8,
3289 }, {
3290 .eraseblocks = { {64 * 1024, 1} },
3291 .block_erase = spi_block_erase_c7,
3292 }
3293 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003294 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003295 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003296 .write = spi_chip_write_256,
3297 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003298 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003299 },
3300
3301 {
3302 .vendor = "Eon",
3303 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003304 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003305 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003306 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003307 .total_size = 128,
3308 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003309 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003310 .tested = TEST_UNTESTED,
3311 .probe = probe_spi_rdid,
3312 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003313 .block_erasers =
3314 {
3315 {
3316 .eraseblocks = {
3317 {4 * 1024, 2},
3318 {8 * 1024, 1},
3319 {16 * 1024, 1},
3320 {32 * 1024, 3},
3321 },
3322 .block_erase = spi_block_erase_d8,
3323 }, {
3324 .eraseblocks = { {128 * 1024, 1} },
3325 .block_erase = spi_block_erase_c7,
3326 }
3327 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003328 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003329 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003330 .write = spi_chip_write_256,
3331 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003332 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003333 },
3334
3335 {
3336 .vendor = "Eon",
3337 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003338 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003339 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003340 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003341 .total_size = 128,
3342 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003343 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003344 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .probe = probe_spi_rdid,
3346 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003347 .block_erasers =
3348 {
3349 {
3350 .eraseblocks = {
3351 {32 * 1024, 3},
3352 {16 * 1024, 1},
3353 {8 * 1024, 1},
3354 {4 * 1024, 2},
3355 },
3356 .block_erase = spi_block_erase_d8,
3357 }, {
3358 .eraseblocks = { {128 * 1024, 1} },
3359 .block_erase = spi_block_erase_c7,
3360 }
3361 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003362 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003363 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003364 .write = spi_chip_write_256,
3365 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003366 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003367 },
3368
3369 {
3370 .vendor = "Eon",
3371 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003372 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003373 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003374 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003375 .total_size = 256,
3376 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003377 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003378 .tested = TEST_UNTESTED,
3379 .probe = probe_spi_rdid,
3380 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003381 .block_erasers =
3382 {
3383 {
3384 .eraseblocks = {
3385 {4 * 1024, 2},
3386 {8 * 1024, 1},
3387 {16 * 1024, 1},
3388 {32 * 1024, 1},
3389 {64 * 1024, 3}
3390 },
3391 .block_erase = spi_block_erase_d8,
3392 }, {
3393 .eraseblocks = { {256 * 1024, 1} },
3394 .block_erase = spi_block_erase_c7,
3395 }
3396 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003397 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003398 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003399 .write = spi_chip_write_256,
3400 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003401 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003402 },
3403
3404 {
3405 .vendor = "Eon",
3406 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003407 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003408 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003409 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003410 .total_size = 256,
3411 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003412 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003413 .tested = TEST_UNTESTED,
3414 .probe = probe_spi_rdid,
3415 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003416 .block_erasers =
3417 {
3418 {
3419 .eraseblocks = {
3420 {64 * 1024, 3},
3421 {32 * 1024, 1},
3422 {16 * 1024, 1},
3423 {8 * 1024, 1},
3424 {4 * 1024, 2},
3425 },
3426 .block_erase = spi_block_erase_d8,
3427 }, {
3428 .eraseblocks = { {256 * 1024, 1} },
3429 .block_erase = spi_block_erase_c7,
3430 }
3431 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003432 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003433 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003434 .write = spi_chip_write_256,
3435 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003436 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003437 },
3438
3439 {
3440 .vendor = "Eon",
3441 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003442 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003443 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003444 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003445 .total_size = 512,
3446 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003447 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003448 .tested = TEST_UNTESTED,
3449 .probe = probe_spi_rdid,
3450 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003451 .block_erasers =
3452 {
3453 {
3454 .eraseblocks = {
3455 {4 * 1024, 2},
3456 {8 * 1024, 1},
3457 {16 * 1024, 1},
3458 {32 * 1024, 1},
3459 {64 * 1024, 7}
3460 },
3461 .block_erase = spi_block_erase_d8,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = spi_block_erase_c7,
3465 }
3466 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003467 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003468 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003469 .write = spi_chip_write_256,
3470 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003471 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003472 },
3473
3474 {
3475 .vendor = "Eon",
3476 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003477 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003478 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003479 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003480 .total_size = 512,
3481 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003482 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003483 .tested = TEST_UNTESTED,
3484 .probe = probe_spi_rdid,
3485 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003486 .block_erasers =
3487 {
3488 {
3489 .eraseblocks = {
3490 {64 * 1024, 7},
3491 {32 * 1024, 1},
3492 {16 * 1024, 1},
3493 {8 * 1024, 1},
3494 {4 * 1024, 2},
3495 },
3496 .block_erase = spi_block_erase_d8,
3497 }, {
3498 .eraseblocks = { {512 * 1024, 1} },
3499 .block_erase = spi_block_erase_c7,
3500 }
3501 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003502 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003503 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003504 .write = spi_chip_write_256,
3505 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003506 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003507 },
3508
3509 {
3510 .vendor = "Eon",
3511 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003512 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003513 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003514 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003515 .total_size = 1024,
3516 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003517 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003518 .tested = TEST_UNTESTED,
3519 .probe = probe_spi_rdid,
3520 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003521 .block_erasers =
3522 {
3523 {
3524 .eraseblocks = {
3525 {4 * 1024, 2},
3526 {8 * 1024, 1},
3527 {16 * 1024, 1},
3528 {32 * 1024, 1},
3529 {64 * 1024, 15}
3530 },
3531 .block_erase = spi_block_erase_d8,
3532 }, {
3533 .eraseblocks = { {1024 * 1024, 1} },
3534 .block_erase = spi_block_erase_c7,
3535 }
3536 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003537 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003538 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003539 .write = spi_chip_write_256,
3540 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003541 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003542 },
3543
3544 {
3545 .vendor = "Eon",
3546 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003547 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003548 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003549 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003550 .total_size = 1024,
3551 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003552 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003553 .tested = TEST_UNTESTED,
3554 .probe = probe_spi_rdid,
3555 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003556 .block_erasers =
3557 {
3558 {
3559 .eraseblocks = {
3560 {64 * 1024, 15},
3561 {32 * 1024, 1},
3562 {16 * 1024, 1},
3563 {8 * 1024, 1},
3564 {4 * 1024, 2},
3565 },
3566 .block_erase = spi_block_erase_d8,
3567 }, {
3568 .eraseblocks = { {1024 * 1024, 1} },
3569 .block_erase = spi_block_erase_c7,
3570 }
3571 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003572 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003573 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003574 .write = spi_chip_write_256,
3575 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003576 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003577 },
3578
3579 {
3580 .vendor = "Eon",
3581 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003582 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003583 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003584 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003585 .total_size = 2048,
3586 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003587 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003588 .tested = TEST_UNTESTED,
3589 .probe = probe_spi_rdid,
3590 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003591 .block_erasers =
3592 {
3593 {
3594 .eraseblocks = {
3595 {4 * 1024, 2},
3596 {8 * 1024, 1},
3597 {16 * 1024, 1},
3598 {32 * 1024, 1},
3599 {64 * 1024, 31},
3600 },
3601 .block_erase = spi_block_erase_d8,
3602 }, {
3603 .eraseblocks = { {2 * 1024 * 1024, 1} },
3604 .block_erase = spi_block_erase_c7,
3605 }
3606 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003608 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003609 .write = spi_chip_write_256,
3610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003611 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003612 },
3613
3614 {
3615 .vendor = "Eon",
3616 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003617 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003619 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .total_size = 2048,
3621 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003622 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003623 .tested = TEST_UNTESTED,
3624 .probe = probe_spi_rdid,
3625 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003626 .block_erasers =
3627 {
3628 {
3629 .eraseblocks = {
3630 {64 * 1024, 31},
3631 {32 * 1024, 1},
3632 {16 * 1024, 1},
3633 {8 * 1024, 1},
3634 {4 * 1024, 2},
3635 },
3636 .block_erase = spi_block_erase_d8,
3637 }, {
3638 .eraseblocks = { {2 * 1024 * 1024, 1} },
3639 .block_erase = spi_block_erase_c7,
3640 }
3641 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003642 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003643 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003644 .write = spi_chip_write_256,
3645 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003646 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003647 },
3648
3649 {
3650 .vendor = "Eon",
3651 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003652 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003653 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003654 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003655 .total_size = 4096,
3656 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003657 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003658 .tested = TEST_UNTESTED,
3659 .probe = probe_spi_rdid,
3660 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003661 .block_erasers =
3662 {
3663 {
3664 .eraseblocks = {
3665 {4 * 1024, 2},
3666 {8 * 1024, 1},
3667 {16 * 1024, 1},
3668 {32 * 1024, 1},
3669 {64 * 1024, 63},
3670 },
3671 .block_erase = spi_block_erase_d8,
3672 }, {
3673 .eraseblocks = { {4 * 1024 * 1024, 1} },
3674 .block_erase = spi_block_erase_c7,
3675 }
3676 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003677 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003678 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003679 .write = spi_chip_write_256,
3680 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003681 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003682 },
3683
3684 {
3685 .vendor = "Eon",
3686 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003687 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003689 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003690 .total_size = 4096,
3691 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003692 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003693 .tested = TEST_UNTESTED,
3694 .probe = probe_spi_rdid,
3695 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003696 .block_erasers =
3697 {
3698 {
3699 .eraseblocks = {
3700 {64 * 1024, 63},
3701 {32 * 1024, 1},
3702 {16 * 1024, 1},
3703 {8 * 1024, 1},
3704 {4 * 1024, 2},
3705 },
3706 .block_erase = spi_block_erase_d8,
3707 }, {
3708 .eraseblocks = { {4 * 1024 * 1024, 1} },
3709 .block_erase = spi_block_erase_c7,
3710 }
3711 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003712 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003713 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003714 .write = spi_chip_write_256,
3715 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003716 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003717 },
3718
3719 {
3720 .vendor = "Eon",
3721 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003722 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003723 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003724 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003725 .total_size = 8192,
3726 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003727 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003728 .tested = TEST_UNTESTED,
3729 .probe = probe_spi_rdid,
3730 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003731 .block_erasers =
3732 {
3733 {
3734 .eraseblocks = {
3735 {4 * 1024, 2},
3736 {8 * 1024, 1},
3737 {16 * 1024, 1},
3738 {32 * 1024, 1},
3739 {64 * 1024, 127},
3740 },
3741 .block_erase = spi_block_erase_d8,
3742 }, {
3743 .eraseblocks = { {8 * 1024 * 1024, 1} },
3744 .block_erase = spi_block_erase_c7,
3745 }
3746 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003748 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003749 .write = spi_chip_write_256,
3750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003751 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003752 },
3753
3754 {
3755 .vendor = "Eon",
3756 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003757 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003758 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003759 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003760 .total_size = 8192,
3761 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003762 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003763 .tested = TEST_UNTESTED,
3764 .probe = probe_spi_rdid,
3765 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003766 .block_erasers =
3767 {
3768 {
3769 .eraseblocks = {
3770 {64 * 1024, 127},
3771 {32 * 1024, 1},
3772 {16 * 1024, 1},
3773 {8 * 1024, 1},
3774 {4 * 1024, 2},
3775 },
3776 .block_erase = spi_block_erase_d8,
3777 }, {
3778 .eraseblocks = { {8 * 1024 * 1024, 1} },
3779 .block_erase = spi_block_erase_c7,
3780 }
3781 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003782 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003783 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003784 .write = spi_chip_write_256,
3785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003786 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003787 },
3788
3789 {
3790 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003791 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003792 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003793 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003794 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .total_size = 64,
3796 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003797 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003798 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003799 .probe = probe_spi_rdid,
3800 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003801 .block_erasers =
3802 {
3803 {
3804 .eraseblocks = { {4 * 1024, 16} },
3805 .block_erase = spi_block_erase_20,
3806 }, {
3807 .eraseblocks = { {32 * 1024, 2} },
3808 .block_erase = spi_block_erase_d8,
3809 }, {
3810 .eraseblocks = { {32 * 1024, 2} },
3811 .block_erase = spi_block_erase_52,
3812 }, {
3813 .eraseblocks = { {64 * 1024, 1} },
3814 .block_erase = spi_block_erase_60,
3815 }, {
3816 .eraseblocks = { {64 * 1024, 1} },
3817 .block_erase = spi_block_erase_c7,
3818 }
3819 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003820 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003821 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003822 .write = spi_chip_write_256,
3823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003824 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003825 },
3826
3827 {
3828 .vendor = "Eon",
3829 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003830 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003831 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003832 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003833 .total_size = 128,
3834 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003835 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003836 .tested = TEST_UNTESTED,
3837 .probe = probe_spi_rdid,
3838 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003839 .block_erasers =
3840 {
3841 {
3842 .eraseblocks = { {4 * 1024, 32} },
3843 .block_erase = spi_block_erase_20,
3844 }, {
3845 .eraseblocks = { {32 * 1024, 4} },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {32 * 1024, 4} },
3849 .block_erase = spi_block_erase_52,
3850 }, {
3851 .eraseblocks = { {128 * 1024, 1} },
3852 .block_erase = spi_block_erase_60,
3853 }, {
3854 .eraseblocks = { {128 * 1024, 1} },
3855 .block_erase = spi_block_erase_c7,
3856 }
3857 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003858 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003859 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003860 .write = spi_chip_write_256,
3861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003862 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 },
3864
3865 {
3866 .vendor = "Eon",
3867 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003868 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003869 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003870 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003871 .total_size = 256,
3872 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003873 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003874 .tested = TEST_UNTESTED,
3875 .probe = probe_spi_rdid,
3876 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003877 .block_erasers =
3878 {
3879 {
3880 .eraseblocks = { {4 * 1024, 64} },
3881 .block_erase = spi_block_erase_20,
3882 }, {
3883 .eraseblocks = { {64 * 1024, 4} },
3884 .block_erase = spi_block_erase_d8,
3885 }, {
3886 .eraseblocks = { {64 * 1024, 4} },
3887 .block_erase = spi_block_erase_52,
3888 }, {
3889 .eraseblocks = { {256 * 1024, 1} },
3890 .block_erase = spi_block_erase_60,
3891 }, {
3892 .eraseblocks = { {256 * 1024, 1} },
3893 .block_erase = spi_block_erase_c7,
3894 }
3895 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003896 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003897 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003898 .write = spi_chip_write_256,
3899 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003900 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003901 },
3902
3903 {
3904 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003905 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003906 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003908 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003909 .total_size = 512,
3910 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003911 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003912 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003913 .probe = probe_spi_rdid,
3914 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003915 .block_erasers =
3916 {
3917 {
Sean Nelson54596372010-01-09 05:30:14 +00003918 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003919 .block_erase = spi_block_erase_20,
3920 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003921 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003922 .block_erase = spi_block_erase_d8,
3923 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003924 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003925 .block_erase = spi_block_erase_60,
3926 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003927 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003928 .block_erase = spi_block_erase_c7,
3929 },
3930 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003931 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003932 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003933 .write = spi_chip_write_256,
3934 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003935 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003936 },
3937
3938 {
3939 .vendor = "Eon",
3940 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003941 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003942 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003943 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003944 .total_size = 1024,
3945 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003946 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003947 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003948 .probe = probe_spi_rdid,
3949 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003950 .block_erasers =
3951 {
3952 {
3953 .eraseblocks = { {4 * 1024, 256} },
3954 .block_erase = spi_block_erase_20,
3955 }, {
3956 .eraseblocks = { {64 * 1024, 16} },
3957 .block_erase = spi_block_erase_d8,
3958 }, {
3959 .eraseblocks = { {1024 * 1024, 1} },
3960 .block_erase = spi_block_erase_60,
3961 }, {
3962 .eraseblocks = { {1024 * 1024, 1} },
3963 .block_erase = spi_block_erase_c7,
3964 }
3965 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003966 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003967 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003968 .write = spi_chip_write_256,
3969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003970 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003971 },
3972
3973 {
3974 .vendor = "Eon",
3975 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003976 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003977 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003978 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003979 .total_size = 2048,
3980 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003981 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003982 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003983 .probe = probe_spi_rdid,
3984 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003985 .block_erasers =
3986 {
3987 {
3988 .eraseblocks = { {4 * 1024, 512} },
3989 .block_erase = spi_block_erase_20,
3990 }, {
3991 .eraseblocks = { {64 * 1024, 32} },
3992 .block_erase = spi_block_erase_d8,
3993 }, {
3994 .eraseblocks = { {2 * 1024 * 1024, 1} },
3995 .block_erase = spi_block_erase_60,
3996 }, {
3997 .eraseblocks = { {2 * 1024 * 1024, 1} },
3998 .block_erase = spi_block_erase_c7,
3999 }
4000 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004001 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004002 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004003 .write = spi_chip_write_256,
4004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004005 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004006 },
4007
4008 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004009 .vendor = "Eon",
4010 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004011 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004012 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004013 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004014 .total_size = 4096,
4015 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004016 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004017 .tested = TEST_UNTESTED,
4018 .probe = probe_spi_rdid,
4019 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004020 .block_erasers =
4021 {
4022 {
4023 .eraseblocks = { {4 * 1024, 1024} },
4024 .block_erase = spi_block_erase_20,
4025 }, {
4026 .eraseblocks = { {64 * 1024, 64} },
4027 .block_erase = spi_block_erase_d8,
4028 }, {
4029 .eraseblocks = { {4 * 1024 * 1024, 1} },
4030 .block_erase = spi_block_erase_60,
4031 }, {
4032 .eraseblocks = { {4 * 1024 * 1024, 1} },
4033 .block_erase = spi_block_erase_c7,
4034 }
4035 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004036 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004037 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004038 .write = spi_chip_write_256,
4039 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004040 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004041 },
4042
4043 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004044 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004045 .name = "EN25F64",
4046 .bustype = BUS_SPI,
4047 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004048 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004049 .total_size = 8192,
4050 .page_size = 256,
4051 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004052 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004053 .probe = probe_spi_rdid,
4054 .probe_timing = TIMING_ZERO,
4055 .block_erasers =
4056 {
4057 {
4058 .eraseblocks = { {4 * 1024, 2048} },
4059 .block_erase = spi_block_erase_20,
4060 }, {
4061 .eraseblocks = { {64 * 1024, 128} },
4062 .block_erase = spi_block_erase_d8,
4063 }, {
4064 .eraseblocks = { {8 * 1024 * 1024, 1} },
4065 .block_erase = spi_block_erase_60,
4066 }, {
4067 .eraseblocks = { {8 * 1024 * 1024, 1} },
4068 .block_erase = spi_block_erase_c7,
4069 }
4070 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004071 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004072 .unlock = spi_disable_blockprotect,
4073 .write = spi_chip_write_256,
4074 .read = spi_chip_read,
4075 .voltage = {2700, 3600},
4076 },
4077
4078 {
4079 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004080 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004081 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004082 .manufacture_id = EON_ID_NOPREFIX,
4083 .model_id = EON_EN25Q40,
4084 .total_size = 512,
4085 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004086 /* OTP: 256B total; enter 0x3A */
4087 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004088 .tested = TEST_UNTESTED,
4089 .probe = probe_spi_rdid,
4090 .probe_timing = TIMING_ZERO,
4091 .block_erasers =
4092 {
4093 {
4094 .eraseblocks = { {4 * 1024, 128} },
4095 .block_erase = spi_block_erase_20,
4096 }, {
4097 .eraseblocks = { {64 * 1024, 8} },
4098 .block_erase = spi_block_erase_d8,
4099 }, {
4100 .eraseblocks = { {512 * 1024, 1} },
4101 .block_erase = spi_block_erase_60,
4102 }, {
4103 .eraseblocks = { {512 * 1024, 1} },
4104 .block_erase = spi_block_erase_c7,
4105 }
4106 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004107 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004108 .unlock = spi_disable_blockprotect,
4109 .write = spi_chip_write_256,
4110 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004111 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004112 },
4113
4114 {
4115 .vendor = "Eon",
4116 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004117 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004118 .manufacture_id = EON_ID_NOPREFIX,
4119 .model_id = EON_EN25Q80,
4120 .total_size = 1024,
4121 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004122 /* OTP: 256B total; enter 0x3A */
4123 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004124 .tested = TEST_UNTESTED,
4125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 256} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 16} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {1024 * 1024, 1} },
4140 .block_erase = spi_block_erase_c7,
4141 }
4142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004147 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004148 },
4149
4150 {
4151 /* Note: EN25D16 is an evil twin which shares the model ID
4152 but has different write protection capabilities */
4153 .vendor = "Eon",
4154 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004155 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004156 .manufacture_id = EON_ID_NOPREFIX,
4157 .model_id = EON_EN25Q16,
4158 .total_size = 2048,
4159 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004160 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4161 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004162 .tested = TEST_UNTESTED,
4163 .probe = probe_spi_rdid,
4164 .probe_timing = TIMING_ZERO,
4165 .block_erasers =
4166 {
4167 {
4168 .eraseblocks = { {4 * 1024, 512} },
4169 .block_erase = spi_block_erase_20,
4170 }, {
4171 .eraseblocks = { {64 * 1024, 32} },
4172 .block_erase = spi_block_erase_d8,
4173 }, {
4174 /* not supported by Q16 version */
4175 .eraseblocks = { {64 * 1024, 32} },
4176 .block_erase = spi_block_erase_52,
4177 }, {
4178 .eraseblocks = { {2 * 1024 * 1024, 1} },
4179 .block_erase = spi_block_erase_60,
4180 }, {
4181 .eraseblocks = { {2 * 1024 * 1024, 1} },
4182 .block_erase = spi_block_erase_c7,
4183 }
4184 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004185 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004186 .unlock = spi_disable_blockprotect,
4187 .write = spi_chip_write_256,
4188 .read = spi_chip_read,
4189 .voltage = {2700, 3600},
4190 },
4191
4192 {
4193 .vendor = "Eon",
4194 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004195 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .manufacture_id = EON_ID_NOPREFIX,
4197 .model_id = EON_EN25Q32,
4198 .total_size = 4096,
4199 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004200 /* OTP: 512B total; enter 0x3A */
4201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004202 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004203 .probe = probe_spi_rdid,
4204 .probe_timing = TIMING_ZERO,
4205 .block_erasers =
4206 {
4207 {
4208 .eraseblocks = { {4 * 1024, 1024} },
4209 .block_erase = spi_block_erase_20,
4210 }, {
4211 .eraseblocks = { {64 * 1024, 64} },
4212 .block_erase = spi_block_erase_d8,
4213 }, {
4214 .eraseblocks = { {4 * 1024 * 1024, 1} },
4215 .block_erase = spi_block_erase_60,
4216 }, {
4217 .eraseblocks = { {4 * 1024 * 1024, 1} },
4218 .block_erase = spi_block_erase_c7,
4219 }
4220 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004221 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004222 .unlock = spi_disable_blockprotect,
4223 .write = spi_chip_write_256,
4224 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004225 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004226 },
4227
4228 {
4229 .vendor = "Eon",
4230 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004231 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004232 .manufacture_id = EON_ID_NOPREFIX,
4233 .model_id = EON_EN25Q64,
4234 .total_size = 8192,
4235 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004236 /* OTP: 512B total; enter 0x3A */
4237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004238 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004239 .probe = probe_spi_rdid,
4240 .probe_timing = TIMING_ZERO,
4241 .block_erasers =
4242 {
4243 {
4244 .eraseblocks = { {4 * 1024, 2048} },
4245 .block_erase = spi_block_erase_20,
4246 }, {
4247 .eraseblocks = { {64 * 1024, 128} },
4248 .block_erase = spi_block_erase_d8,
4249 }, {
4250 .eraseblocks = { {8 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_60,
4252 }, {
4253 .eraseblocks = { {8 * 1024 * 1024, 1} },
4254 .block_erase = spi_block_erase_c7,
4255 }
4256 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004258 .unlock = spi_disable_blockprotect,
4259 .write = spi_chip_write_256,
4260 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004261 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004262 },
4263
4264 {
4265 .vendor = "Eon",
4266 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004267 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004268 .manufacture_id = EON_ID_NOPREFIX,
4269 .model_id = EON_EN25Q128,
4270 .total_size = 16384,
4271 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004272 /* OTP: 512B total; enter 0x3A */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004274 .tested = TEST_UNTESTED,
4275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers =
4278 {
4279 {
4280 .eraseblocks = { {4 * 1024, 4096} },
4281 .block_erase = spi_block_erase_20,
4282 }, {
4283 .eraseblocks = { {64 * 1024, 256} },
4284 .block_erase = spi_block_erase_d8,
4285 }, {
4286 .eraseblocks = { {16 * 1024 * 1024, 1} },
4287 .block_erase = spi_block_erase_60,
4288 }, {
4289 .eraseblocks = { {16 * 1024 * 1024, 1} },
4290 .block_erase = spi_block_erase_c7,
4291 }
4292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004294 .unlock = spi_disable_blockprotect,
4295 .write = spi_chip_write_256,
4296 .read = spi_chip_read,
4297 },
4298
4299 {
4300 .vendor = "Eon",
4301 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004302 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004303 .manufacture_id = EON_ID_NOPREFIX,
4304 .model_id = EON_EN25QH16,
4305 .total_size = 2048,
4306 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004307 /* supports SFDP */
4308 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004309 /* QPI enable 0x38, disable 0xFF */
4310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004311 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004312 .probe = probe_spi_rdid,
4313 .probe_timing = TIMING_ZERO,
4314 .block_erasers =
4315 {
4316 {
4317 .eraseblocks = { {4 * 1024, 512} },
4318 .block_erase = spi_block_erase_20,
4319 }, {
4320 .eraseblocks = { {64 * 1024, 32} },
4321 .block_erase = spi_block_erase_d8,
4322 }, {
4323 .eraseblocks = { {1024 * 2048, 1} },
4324 .block_erase = spi_block_erase_60,
4325 }, {
4326 .eraseblocks = { {1024 * 2048, 1} },
4327 .block_erase = spi_block_erase_c7,
4328 }
4329 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004330 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004331 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004332 .write = spi_chip_write_256,
4333 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004334 .voltage = {2700, 3600},
4335 },
4336
4337 {
4338 .vendor = "Eon",
4339 .name = "EN25QH32",
4340 .bustype = BUS_SPI,
4341 .manufacture_id = EON_ID_NOPREFIX,
4342 .model_id = EON_EN25QH32,
4343 .total_size = 4096,
4344 .page_size = 256,
4345 /* supports SFDP */
4346 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004347 /* QPI enable 0x38, disable 0xFF */
4348 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004349 .tested = TEST_UNTESTED,
4350 .probe = probe_spi_rdid,
4351 .probe_timing = TIMING_ZERO,
4352 .block_erasers =
4353 {
4354 {
4355 .eraseblocks = { {4 * 1024, 1024} },
4356 .block_erase = spi_block_erase_20,
4357 }, {
4358 .eraseblocks = { {64 * 1024, 64} },
4359 .block_erase = spi_block_erase_d8,
4360 }, {
4361 .eraseblocks = { {1024 * 4096, 1} },
4362 .block_erase = spi_block_erase_60,
4363 }, {
4364 .eraseblocks = { {1024 * 4096, 1} },
4365 .block_erase = spi_block_erase_c7,
4366 }
4367 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004368 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004369 .unlock = spi_disable_blockprotect_bp3_srwd,
4370 .write = spi_chip_write_256,
4371 .read = spi_chip_read,
4372 .voltage = {2700, 3600},
4373 },
4374
4375 {
4376 .vendor = "Eon",
4377 .name = "EN25QH64",
4378 .bustype = BUS_SPI,
4379 .manufacture_id = EON_ID_NOPREFIX,
4380 .model_id = EON_EN25QH64,
4381 .total_size = 8192,
4382 .page_size = 256,
4383 /* supports SFDP */
4384 /* OTP: 512B total; enter 0x3A */
4385 /* QPI enable 0x38, disable 0xFF */
4386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004387 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004388 .probe = probe_spi_rdid,
4389 .probe_timing = TIMING_ZERO,
4390 .block_erasers = {
4391 {
4392 .eraseblocks = { {4 * 1024, 2048} },
4393 .block_erase = spi_block_erase_20,
4394 }, {
4395 .eraseblocks = { {64 * 1024, 128} },
4396 .block_erase = spi_block_erase_d8,
4397 }, {
4398 .eraseblocks = { { 8192 * 1024, 1} },
4399 .block_erase = spi_block_erase_60,
4400 }, {
4401 .eraseblocks = { { 8192 * 1024, 1} },
4402 .block_erase = spi_block_erase_c7,
4403 }
4404 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004405 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004406 .unlock = spi_disable_blockprotect_bp3_srwd,
4407 .write = spi_chip_write_256,
4408 .read = spi_chip_read,
4409 .voltage = {2700, 3600},
4410 },
4411
4412 {
4413 .vendor = "Eon",
4414 .name = "EN25QH128",
4415 .bustype = BUS_SPI,
4416 .manufacture_id = EON_ID_NOPREFIX,
4417 .model_id = EON_EN25QH128,
4418 .total_size = 16384,
4419 .page_size = 256,
4420 /* supports SFDP */
4421 /* OTP: 512B total; enter 0x3A */
4422 /* QPI enable 0x38, disable 0xFF */
4423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4424 .tested = TEST_UNTESTED,
4425 .probe = probe_spi_rdid,
4426 .probe_timing = TIMING_ZERO,
4427 .block_erasers = {
4428 {
4429 .eraseblocks = { {4 * 1024, 4096} },
4430 .block_erase = spi_block_erase_20,
4431 }, {
4432 .eraseblocks = { {64 * 1024, 256} },
4433 .block_erase = spi_block_erase_d8,
4434 }, {
4435 .eraseblocks = { { 16384 * 1024, 1} },
4436 .block_erase = spi_block_erase_60,
4437 }, {
4438 .eraseblocks = { { 16384 * 1024, 1} },
4439 .block_erase = spi_block_erase_c7,
4440 }
4441 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004442 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004443 .unlock = spi_disable_blockprotect_bp3_srwd,
4444 .write = spi_chip_write_256,
4445 .read = spi_chip_read,
4446 .voltage = {2700, 3600},
4447 },
4448
4449 {
4450 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004451 .name = "EN25S10",
4452 .bustype = BUS_SPI,
4453 .manufacture_id = EON_ID_NOPREFIX,
4454 .model_id = EON_EN25S10,
4455 .total_size = 128,
4456 .page_size = 256,
4457 /* OTP: 256B total; enter 0x3A */
4458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4459 .tested = TEST_UNTESTED,
4460 .probe = probe_spi_rdid,
4461 .probe_timing = TIMING_ZERO,
4462 .block_erasers = {
4463 {
4464 .eraseblocks = { {4 * 1024, 32} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {32 * 1024, 4} },
4468 .block_erase = spi_block_erase_52,
4469 }, {
4470 .eraseblocks = { {128 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { {128 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004477 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004478 .unlock = spi_disable_blockprotect,
4479 .write = spi_chip_write_256,
4480 .read = spi_chip_read,
4481 .voltage = {1650, 1950},
4482 },
4483
4484 {
4485 .vendor = "Eon",
4486 .name = "EN25S20",
4487 .bustype = BUS_SPI,
4488 .manufacture_id = EON_ID_NOPREFIX,
4489 .model_id = EON_EN25S20,
4490 .total_size = 256,
4491 .page_size = 256,
4492 /* OTP: 256B total; enter 0x3A */
4493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4494 .tested = TEST_UNTESTED,
4495 .probe = probe_spi_rdid,
4496 .probe_timing = TIMING_ZERO,
4497 .block_erasers = {
4498 {
4499 .eraseblocks = { {4 * 1024, 64} },
4500 .block_erase = spi_block_erase_20,
4501 }, {
4502 .eraseblocks = { {64 * 1024, 4} },
4503 .block_erase = spi_block_erase_d8,
4504 }, {
4505 .eraseblocks = { {256 * 1024, 1} },
4506 .block_erase = spi_block_erase_60,
4507 }, {
4508 .eraseblocks = { {256 * 1024, 1} },
4509 .block_erase = spi_block_erase_c7,
4510 }
4511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004512 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004513 .unlock = spi_disable_blockprotect,
4514 .write = spi_chip_write_256,
4515 .read = spi_chip_read,
4516 .voltage = {1650, 1950},
4517 },
4518
4519 {
4520 .vendor = "Eon",
4521 .name = "EN25S40",
4522 .bustype = BUS_SPI,
4523 .manufacture_id = EON_ID_NOPREFIX,
4524 .model_id = EON_EN25S40,
4525 .total_size = 512,
4526 .page_size = 256,
4527 /* OTP: 256B total; enter 0x3A */
4528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4529 .tested = TEST_UNTESTED,
4530 .probe = probe_spi_rdid,
4531 .probe_timing = TIMING_ZERO,
4532 .block_erasers = {
4533 {
4534 .eraseblocks = { {4 * 1024, 128} },
4535 .block_erase = spi_block_erase_20,
4536 }, {
4537 .eraseblocks = { {64 * 1024, 8} },
4538 .block_erase = spi_block_erase_d8,
4539 }, {
4540 .eraseblocks = { {512 * 1024, 1} },
4541 .block_erase = spi_block_erase_60,
4542 }, {
4543 .eraseblocks = { {512 * 1024, 1} },
4544 .block_erase = spi_block_erase_c7,
4545 }
4546 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004547 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004548 .unlock = spi_disable_blockprotect,
4549 .write = spi_chip_write_256,
4550 .read = spi_chip_read,
4551 .voltage = {1650, 1950},
4552 },
4553
4554 {
4555 .vendor = "Eon",
4556 .name = "EN25S80",
4557 .bustype = BUS_SPI,
4558 .manufacture_id = EON_ID_NOPREFIX,
4559 .model_id = EON_EN25S80,
4560 .total_size = 1024,
4561 .page_size = 256,
4562 /* OTP: 256B total; enter 0x3A */
4563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4564 .tested = TEST_UNTESTED,
4565 .probe = probe_spi_rdid,
4566 .probe_timing = TIMING_ZERO,
4567 .block_erasers = {
4568 {
4569 .eraseblocks = { {4 * 1024, 256} },
4570 .block_erase = spi_block_erase_20,
4571 }, {
4572 .eraseblocks = { {64 * 1024, 16} },
4573 .block_erase = spi_block_erase_d8,
4574 }, {
4575 .eraseblocks = { {1024 * 1024, 1} },
4576 .block_erase = spi_block_erase_60,
4577 }, {
4578 .eraseblocks = { {1024 * 1024, 1} },
4579 .block_erase = spi_block_erase_c7,
4580 }
4581 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004582 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004583 .unlock = spi_disable_blockprotect,
4584 .write = spi_chip_write_256,
4585 .read = spi_chip_read,
4586 .voltage = {1650, 1950},
4587 },
4588
4589 {
4590 .vendor = "Eon",
4591 .name = "EN25S16",
4592 .bustype = BUS_SPI,
4593 .manufacture_id = EON_ID_NOPREFIX,
4594 .model_id = EON_EN25S16,
4595 .total_size = 2048,
4596 .page_size = 256,
4597 /* OTP: 512B total; enter 0x3A */
4598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4599 .tested = TEST_UNTESTED,
4600 .probe = probe_spi_rdid,
4601 .probe_timing = TIMING_ZERO,
4602 .block_erasers = {
4603 {
4604 .eraseblocks = { {4 * 1024, 512} },
4605 .block_erase = spi_block_erase_20,
4606 }, {
4607 .eraseblocks = { {64 * 1024, 32} },
4608 .block_erase = spi_block_erase_52,
4609 }, {
4610 .eraseblocks = { {32 * 1024, 64} },
4611 .block_erase = spi_block_erase_d8,
4612 }, {
4613 .eraseblocks = { {2048 * 1024, 1} },
4614 .block_erase = spi_block_erase_60,
4615 }, {
4616 .eraseblocks = { {2048 * 1024, 1} },
4617 .block_erase = spi_block_erase_c7,
4618 }
4619 },
4620 .printlock = spi_prettyprint_status_register_en25s_wp,
4621 .unlock = spi_disable_blockprotect_bp3_srwd,
4622 .write = spi_chip_write_256,
4623 .read = spi_chip_read,
4624 .voltage = {1650, 1950},
4625 },
4626
4627 {
4628 .vendor = "Eon",
4629 .name = "EN25S32",
4630 .bustype = BUS_SPI,
4631 .manufacture_id = EON_ID_NOPREFIX,
4632 .model_id = EON_EN25S32,
4633 .total_size = 4096,
4634 .page_size = 256,
4635 /* OTP: 512B total; enter 0x3A */
4636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4637 .tested = TEST_UNTESTED,
4638 .probe = probe_spi_rdid,
4639 .probe_timing = TIMING_ZERO,
4640 .block_erasers = {
4641 {
4642 .eraseblocks = { {4 * 1024, 1024} },
4643 .block_erase = spi_block_erase_20,
4644 }, {
4645 .eraseblocks = { {32 * 1024, 128} },
4646 .block_erase = spi_block_erase_52,
4647 }, {
4648 .eraseblocks = { {64 * 1024, 64} },
4649 .block_erase = spi_block_erase_d8,
4650 }, {
4651 .eraseblocks = { {4096 * 1024, 1} },
4652 .block_erase = spi_block_erase_60,
4653 }, {
4654 .eraseblocks = { {4096 * 1024, 1} },
4655 .block_erase = spi_block_erase_c7,
4656 }
4657 },
4658 .printlock = spi_prettyprint_status_register_en25s_wp,
4659 .unlock = spi_disable_blockprotect_bp3_srwd,
4660 .write = spi_chip_write_256,
4661 .read = spi_chip_read,
4662 .voltage = {1650, 1950},
4663 },
4664
4665 {
4666 .vendor = "Eon",
4667 .name = "EN25S64",
4668 .bustype = BUS_SPI,
4669 .manufacture_id = EON_ID_NOPREFIX,
4670 .model_id = EON_EN25S64,
4671 .total_size = 8192,
4672 .page_size = 256,
4673 /* OTP: 512B total; enter 0x3A */
4674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4675 .tested = TEST_UNTESTED,
4676 .probe = probe_spi_rdid,
4677 .probe_timing = TIMING_ZERO,
4678 .block_erasers = {
4679 {
4680 .eraseblocks = { {4 * 1024, 2048} },
4681 .block_erase = spi_block_erase_20,
4682 }, {
4683 .eraseblocks = { {64 * 1024, 128} },
4684 .block_erase = spi_block_erase_d8,
4685 }, {
4686 .eraseblocks = { {8192 * 1024, 1} },
4687 .block_erase = spi_block_erase_60,
4688 }, {
4689 .eraseblocks = { {8192 * 1024, 1} },
4690 .block_erase = spi_block_erase_c7,
4691 }
4692 },
4693 .printlock = spi_prettyprint_status_register_en25s_wp,
4694 .unlock = spi_disable_blockprotect_bp3_srwd,
4695 .write = spi_chip_write_256,
4696 .read = spi_chip_read,
4697 .voltage = {1650, 1950},
4698 },
4699
4700 {
4701 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004702 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004703 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004704 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004705 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004706 .total_size = 128,
4707 .page_size = 128,
4708 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004709 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004710 .probe = probe_jedec,
4711 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4712 .block_erasers =
4713 {
4714 {
4715 .eraseblocks = { {16 * 1024, 8} },
4716 .block_erase = erase_sector_jedec,
4717 },
4718 {
4719 .eraseblocks = { {128 * 1024, 1} },
4720 .block_erase = erase_chip_block_jedec,
4721 },
4722 },
4723 .write = write_jedec_1,
4724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004725 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004726 },
4727
4728 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004729 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004730 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004731 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004732 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004733 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004734 .total_size = 256,
4735 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004736 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004737 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004740 .block_erasers =
4741 {
4742 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004743 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004744 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004745 {8 * 1024, 2},
4746 {32 * 1024, 1},
4747 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004748 },
4749 .block_erase = erase_sector_jedec,
4750 }, {
4751 .eraseblocks = { {256 * 1024, 1} },
4752 .block_erase = erase_chip_block_jedec,
4753 },
4754 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004755 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004757 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004758 },
4759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004760 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004761 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004762 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004763 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004764 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004765 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004766 .total_size = 256,
4767 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004768 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004769 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004770 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004771 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004772 .block_erasers =
4773 {
4774 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004775 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004776 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004777 {32 * 1024, 1},
4778 {8 * 1024, 2},
4779 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004780 },
4781 .block_erase = erase_sector_jedec,
4782 }, {
4783 .eraseblocks = { {256 * 1024, 1} },
4784 .block_erase = erase_chip_block_jedec,
4785 },
4786 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004787 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004788 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004789 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004790 },
4791
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004792 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004793 .vendor = "Eon",
4794 .name = "EN29LV640B",
4795 .bustype = BUS_PARALLEL,
4796 .manufacture_id = EON_ID,
4797 .model_id = EON_EN29LV640B,
4798 .total_size = 8192,
4799 .page_size = 8192,
4800 .feature_bits = 0,
4801 .tested = TEST_OK_PREW,
4802 .probe = probe_en29lv640b,
4803 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4804 .block_erasers =
4805 {
4806 {
4807 .eraseblocks = {
4808 {8 * 1024, 8},
4809 {64 * 1024, 127},
4810 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004811 .block_erase = erase_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004812 }, {
4813 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004814 .block_erase = erase_chip_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004815 },
4816 },
4817 .write = write_en29lv640b,
4818 .read = read_memmapped,
4819 .voltage = {2700, 3600},
4820 },
4821
4822 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004823 .vendor = "Fujitsu",
4824 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004825 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004826 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004827 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004828 .total_size = 512,
4829 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004830 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004831 .tested = TEST_UNTESTED,
4832 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004833 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004834 .block_erasers =
4835 {
4836 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004837 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004838 {16 * 1024, 1},
4839 {8 * 1024, 2},
4840 {32 * 1024, 1},
4841 {64 * 1024, 7},
4842 },
Sean Nelson35727f72010-01-28 23:55:12 +00004843 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004844 }, {
4845 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004846 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004847 },
4848 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004849 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004851 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004852 },
4853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004854 {
4855 .vendor = "Fujitsu",
4856 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004857 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004858 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004859 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .total_size = 512,
4861 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004863 .tested = TEST_UNTESTED,
4864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004865 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004866 .block_erasers =
4867 {
4868 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004869 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004870 {64 * 1024, 7},
4871 {32 * 1024, 1},
4872 {8 * 1024, 2},
4873 {16 * 1024, 1},
4874 },
Sean Nelson35727f72010-01-28 23:55:12 +00004875 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004876 }, {
4877 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004878 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004879 },
4880 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004881 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004883 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004884 },
4885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004886 {
Sean Nelson35727f72010-01-28 23:55:12 +00004887 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004888 .vendor = "Fujitsu",
4889 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004890 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004891 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004892 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004893 .total_size = 512,
4894 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004895 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004896 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004897 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004898 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004899 .block_erasers =
4900 {
4901 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004902 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004903 {16 * 1024, 1},
4904 {8 * 1024, 2},
4905 {32 * 1024, 1},
4906 {64 * 1024, 7},
4907 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004908 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004909 }, {
4910 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004911 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004912 },
4913 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004914 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004915 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004916 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004917 },
4918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004919 {
4920 .vendor = "Fujitsu",
4921 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004922 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004923 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004924 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004925 .total_size = 512,
4926 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004927 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004928 .tested = TEST_UNTESTED,
4929 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004930 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004931 .block_erasers =
4932 {
4933 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004934 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004935 {64 * 1024, 7},
4936 {32 * 1024, 1},
4937 {8 * 1024, 2},
4938 {16 * 1024, 1},
4939 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004940 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004941 }, {
4942 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004943 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004944 },
4945 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004946 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004947 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004948 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004949 },
4950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004951 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004952 .vendor = "Fujitsu",
4953 .name = "MBM29LV160BE",
4954 .bustype = BUS_PARALLEL,
4955 .manufacture_id = FUJITSU_ID,
4956 .model_id = FUJITSU_MBM29LV160BE,
4957 .total_size = 2 * 1024,
4958 .page_size = 0,
4959 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_m29f400bt,
4962 .probe_timing = TIMING_IGNORED,
4963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = {
4967 {16 * 1024, 1},
4968 {8 * 1024, 2},
4969 {32 * 1024, 1},
4970 {64 * 1024, 31},
4971 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004972 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004973 }, {
4974 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004975 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004976 },
4977 },
4978 .write = write_m29f400bt, /* Supports a fast mode too */
4979 .read = read_memmapped,
4980 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4981 },
4982
4983 {
4984 .vendor = "Fujitsu",
4985 .name = "MBM29LV160TE",
4986 .bustype = BUS_PARALLEL,
4987 .manufacture_id = FUJITSU_ID,
4988 .model_id = FUJITSU_MBM29LV160TE,
4989 .total_size = 2 * 1024,
4990 .page_size = 0,
4991 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4992 .tested = TEST_UNTESTED,
4993 .probe = probe_m29f400bt,
4994 .probe_timing = TIMING_IGNORED,
4995 .block_erasers =
4996 {
4997 {
4998 .eraseblocks = {
4999 {64 * 1024, 31},
5000 {32 * 1024, 1},
5001 {8 * 1024, 2},
5002 {16 * 1024, 1},
5003 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005004 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005005 }, {
5006 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005007 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005008 },
5009 },
5010 .write = write_m29f400bt, /* Supports a fast mode too */
5011 .read = read_memmapped,
5012 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5013 },
5014
5015 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005016 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005017 .name = "GD25LQ32",
5018 .bustype = BUS_SPI,
5019 .manufacture_id = GIGADEVICE_ID,
5020 .model_id = GIGADEVICE_GD25LQ32,
5021 .total_size = 4096,
5022 .page_size = 256,
5023 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5024 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5025 .tested = TEST_OK_PREW,
5026 .probe = probe_spi_rdid,
5027 .probe_timing = TIMING_ZERO,
5028 .block_erasers =
5029 {
5030 {
5031 .eraseblocks = { {4 * 1024, 1024} },
5032 .block_erase = spi_block_erase_20,
5033 }, {
5034 .eraseblocks = { {32 * 1024, 128} },
5035 .block_erase = spi_block_erase_52,
5036 }, {
5037 .eraseblocks = { {64 * 1024, 64} },
5038 .block_erase = spi_block_erase_d8,
5039 }, {
5040 .eraseblocks = { {4 * 1024 * 1024, 1} },
5041 .block_erase = spi_block_erase_60,
5042 }, {
5043 .eraseblocks = { {4 * 1024 * 1024, 1} },
5044 .block_erase = spi_block_erase_c7,
5045 }
5046 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005047 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005048 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5049 .write = spi_chip_write_256,
5050 .read = spi_chip_read,
5051 .voltage = {1700, 1950},
5052 },
5053
5054 {
5055 .vendor = "GigaDevice",
5056 .name = "GD25Q512",
5057 .bustype = BUS_SPI,
5058 .manufacture_id = GIGADEVICE_ID,
5059 .model_id = GIGADEVICE_GD25Q512,
5060 .total_size = 64,
5061 .page_size = 256,
5062 .feature_bits = FEATURE_WRSR_WREN,
5063 .tested = TEST_UNTESTED,
5064 .probe = probe_spi_rdid,
5065 .probe_timing = TIMING_ZERO,
5066 .block_erasers = {
5067 {
5068 .eraseblocks = { {4 * 1024, 16} },
5069 .block_erase = spi_block_erase_20,
5070 }, {
5071 .eraseblocks = { {32 * 1024, 2} },
5072 .block_erase = spi_block_erase_52,
5073 }, {
5074 .eraseblocks = { {64 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {64 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005081 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005082 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5083 .write = spi_chip_write_256,
5084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5085 .voltage = {2700, 3600},
5086 },
5087
5088 {
5089 .vendor = "GigaDevice",
5090 .name = "GD25Q10",
5091 .bustype = BUS_SPI,
5092 .manufacture_id = GIGADEVICE_ID,
5093 .model_id = GIGADEVICE_GD25Q10,
5094 .total_size = 128,
5095 .page_size = 256,
5096 .feature_bits = FEATURE_WRSR_WREN,
5097 .tested = TEST_UNTESTED,
5098 .probe = probe_spi_rdid,
5099 .probe_timing = TIMING_ZERO,
5100 .block_erasers = {
5101 {
5102 .eraseblocks = { {4 * 1024, 32} },
5103 .block_erase = spi_block_erase_20,
5104 }, {
5105 .eraseblocks = { {32 * 1024, 4} },
5106 .block_erase = spi_block_erase_52,
5107 }, {
5108 .eraseblocks = { {64 * 1024, 2} },
5109 .block_erase = spi_block_erase_d8,
5110 }, {
5111 .eraseblocks = { {128 * 1024, 1} },
5112 .block_erase = spi_block_erase_60,
5113 }, {
5114 .eraseblocks = { {128 * 1024, 1} },
5115 .block_erase = spi_block_erase_c7,
5116 }
5117 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005118 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005119 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5120 .write = spi_chip_write_256,
5121 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5122 .voltage = {2700, 3600},
5123 },
5124
5125 {
5126 .vendor = "GigaDevice",
5127 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005128 .bustype = BUS_SPI,
5129 .manufacture_id = GIGADEVICE_ID,
5130 .model_id = GIGADEVICE_GD25Q20,
5131 .total_size = 256,
5132 .page_size = 256,
5133 .feature_bits = FEATURE_WRSR_WREN,
5134 .tested = TEST_UNTESTED,
5135 .probe = probe_spi_rdid,
5136 .probe_timing = TIMING_ZERO,
5137 .block_erasers =
5138 {
5139 {
5140 .eraseblocks = { {4 * 1024, 64} },
5141 .block_erase = spi_block_erase_20,
5142 }, {
5143 .eraseblocks = { {32 * 1024, 8} },
5144 .block_erase = spi_block_erase_52,
5145 }, {
5146 .eraseblocks = { {64 * 1024, 4} },
5147 .block_erase = spi_block_erase_d8,
5148 }, {
5149 .eraseblocks = { {256 * 1024, 1} },
5150 .block_erase = spi_block_erase_60,
5151 }, {
5152 .eraseblocks = { {256 * 1024, 1} },
5153 .block_erase = spi_block_erase_c7,
5154 }
5155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005156 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005157 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005158 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005159 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005160 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 },
5162
5163 {
5164 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005165 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005166 .bustype = BUS_SPI,
5167 .manufacture_id = GIGADEVICE_ID,
5168 .model_id = GIGADEVICE_GD25Q40,
5169 .total_size = 512,
5170 .page_size = 256,
5171 .feature_bits = FEATURE_WRSR_WREN,
5172 .tested = TEST_UNTESTED,
5173 .probe = probe_spi_rdid,
5174 .probe_timing = TIMING_ZERO,
5175 .block_erasers =
5176 {
5177 {
5178 .eraseblocks = { {4 * 1024, 128} },
5179 .block_erase = spi_block_erase_20,
5180 }, {
5181 .eraseblocks = { {32 * 1024, 16} },
5182 .block_erase = spi_block_erase_52,
5183 }, {
5184 .eraseblocks = { {64 * 1024, 8} },
5185 .block_erase = spi_block_erase_d8,
5186 }, {
5187 .eraseblocks = { {512 * 1024, 1} },
5188 .block_erase = spi_block_erase_60,
5189 }, {
5190 .eraseblocks = { {512 * 1024, 1} },
5191 .block_erase = spi_block_erase_c7,
5192 }
5193 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005194 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005195 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005196 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005198 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005199 },
5200
5201 {
5202 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005203 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005204 .bustype = BUS_SPI,
5205 .manufacture_id = GIGADEVICE_ID,
5206 .model_id = GIGADEVICE_GD25Q80,
5207 .total_size = 1024,
5208 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005209 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5211 .tested = TEST_OK_PREW,
5212 .probe = probe_spi_rdid,
5213 .probe_timing = TIMING_ZERO,
5214 .block_erasers =
5215 {
5216 {
5217 .eraseblocks = { {4 * 1024, 256} },
5218 .block_erase = spi_block_erase_20,
5219 }, {
5220 .eraseblocks = { {32 * 1024, 32} },
5221 .block_erase = spi_block_erase_52,
5222 }, {
5223 .eraseblocks = { {64 * 1024, 16} },
5224 .block_erase = spi_block_erase_d8,
5225 }, {
5226 .eraseblocks = { {1024 * 1024, 1} },
5227 .block_erase = spi_block_erase_60,
5228 }, {
5229 .eraseblocks = { {1024 * 1024, 1} },
5230 .block_erase = spi_block_erase_c7,
5231 }
5232 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005233 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005234 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005235 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005236 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005237 .voltage = {2700, 3600},
5238 },
5239
5240 {
5241 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005242 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005243 .bustype = BUS_SPI,
5244 .manufacture_id = GIGADEVICE_ID,
5245 .model_id = GIGADEVICE_GD25Q16,
5246 .total_size = 2048,
5247 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005248 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5250 .tested = TEST_UNTESTED,
5251 .probe = probe_spi_rdid,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = { {4 * 1024, 512} },
5257 .block_erase = spi_block_erase_20,
5258 }, {
5259 .eraseblocks = { {32 * 1024, 64} },
5260 .block_erase = spi_block_erase_52,
5261 }, {
5262 .eraseblocks = { {64 * 1024, 32} },
5263 .block_erase = spi_block_erase_d8,
5264 }, {
5265 .eraseblocks = { {2 * 1024 * 1024, 1} },
5266 .block_erase = spi_block_erase_60,
5267 }, {
5268 .eraseblocks = { {2 * 1024 * 1024, 1} },
5269 .block_erase = spi_block_erase_c7,
5270 }
5271 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005272 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005273 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005274 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005276 .voltage = {2700, 3600},
5277 },
5278
5279 {
5280 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005281 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005282 .bustype = BUS_SPI,
5283 .manufacture_id = GIGADEVICE_ID,
5284 .model_id = GIGADEVICE_GD25Q32,
5285 .total_size = 4096,
5286 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005287 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005289 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005290 .probe = probe_spi_rdid,
5291 .probe_timing = TIMING_ZERO,
5292 .block_erasers =
5293 {
5294 {
5295 .eraseblocks = { {4 * 1024, 1024} },
5296 .block_erase = spi_block_erase_20,
5297 }, {
5298 .eraseblocks = { {32 * 1024, 128} },
5299 .block_erase = spi_block_erase_52,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 64} },
5302 .block_erase = spi_block_erase_d8,
5303 }, {
5304 .eraseblocks = { {4 * 1024 * 1024, 1} },
5305 .block_erase = spi_block_erase_60,
5306 }, {
5307 .eraseblocks = { {4 * 1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_c7,
5309 }
5310 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005311 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005312 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005313 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005314 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005315 .voltage = {2700, 3600},
5316 },
5317
5318 {
5319 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005320 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005321 .bustype = BUS_SPI,
5322 .manufacture_id = GIGADEVICE_ID,
5323 .model_id = GIGADEVICE_GD25Q64,
5324 .total_size = 8192,
5325 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005326 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005328 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005329 .probe = probe_spi_rdid,
5330 .probe_timing = TIMING_ZERO,
5331 .block_erasers =
5332 {
5333 {
5334 .eraseblocks = { {4 * 1024, 2048} },
5335 .block_erase = spi_block_erase_20,
5336 }, {
5337 .eraseblocks = { {32 * 1024, 256} },
5338 .block_erase = spi_block_erase_52,
5339 }, {
5340 .eraseblocks = { {64 * 1024, 128} },
5341 .block_erase = spi_block_erase_d8,
5342 }, {
5343 .eraseblocks = { {8 * 1024 * 1024, 1} },
5344 .block_erase = spi_block_erase_60,
5345 }, {
5346 .eraseblocks = { {8 * 1024 * 1024, 1} },
5347 .block_erase = spi_block_erase_c7,
5348 }
5349 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005350 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005351 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005352 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005353 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005354 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005355 },
5356
5357 {
5358 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005359 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005360 .bustype = BUS_SPI,
5361 .manufacture_id = GIGADEVICE_ID,
5362 .model_id = GIGADEVICE_GD25Q128,
5363 .total_size = 16384,
5364 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005365 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005366 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5367 .tested = TEST_UNTESTED,
5368 .probe = probe_spi_rdid,
5369 .probe_timing = TIMING_ZERO,
5370 .block_erasers =
5371 {
5372 {
5373 .eraseblocks = { {4 * 1024, 4096} },
5374 .block_erase = spi_block_erase_20,
5375 }, {
5376 .eraseblocks = { {32 * 1024, 512} },
5377 .block_erase = spi_block_erase_52,
5378 }, {
5379 .eraseblocks = { {64 * 1024, 256} },
5380 .block_erase = spi_block_erase_d8,
5381 }, {
5382 .eraseblocks = { {16 * 1024 * 1024, 1} },
5383 .block_erase = spi_block_erase_60,
5384 }, {
5385 .eraseblocks = { {16 * 1024 * 1024, 1} },
5386 .block_erase = spi_block_erase_c7,
5387 }
5388 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005389 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005390 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5391 .write = spi_chip_write_256,
5392 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5393 .voltage = {2700, 3600},
5394 },
5395
5396 {
5397 .vendor = "GigaDevice",
5398 .name = "GD25T80",
5399 .bustype = BUS_SPI,
5400 .manufacture_id = GIGADEVICE_ID,
5401 .model_id = GIGADEVICE_GD25T80,
5402 .total_size = 1024,
5403 .page_size = 256,
5404 /* OTP: 256B total; enter 0x3A */
5405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5406 .tested = TEST_UNTESTED,
5407 .probe = probe_spi_rdid,
5408 .probe_timing = TIMING_ZERO,
5409 .block_erasers = {
5410 {
5411 .eraseblocks = { {4 * 1024, 256} },
5412 .block_erase = spi_block_erase_20,
5413 }, {
5414 .eraseblocks = { {64 * 1024, 16} },
5415 .block_erase = spi_block_erase_52,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 16} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {1024 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {1024 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 }
5426 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005427 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005428 .unlock = spi_disable_blockprotect,
5429 .write = spi_chip_write_256,
5430 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005431 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005432 },
5433
5434 {
David Borgc96a8bd2010-06-21 16:12:22 +00005435 .vendor = "Hyundai",
5436 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005437 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005438 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005439 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005440 .total_size = 256,
5441 .page_size = 256 * 1024,
5442 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005443 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005444 .probe = probe_jedec,
5445 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5446 .block_erasers =
5447 {
5448 {
5449 .eraseblocks = {
5450 {64 * 1024, 3},
5451 {32 * 1024, 1},
5452 {8 * 1024, 2},
5453 {16 * 1024, 1},
5454 },
5455 .block_erase = erase_sector_jedec,
5456 }, {
5457 .eraseblocks = { {256 * 1024, 1} },
5458 .block_erase = erase_chip_block_jedec,
5459 },
5460 },
5461 .write = write_jedec_1,
5462 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005463 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005464 },
5465
5466 {
5467 .vendor = "Hyundai",
5468 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005469 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005470 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005471 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005472 .total_size = 256,
5473 .page_size = 256 * 1024,
5474 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5475 .tested = TEST_UNTESTED,
5476 .probe = probe_jedec,
5477 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5478 .block_erasers =
5479 {
5480 {
5481 .eraseblocks = {
5482 {16 * 1024, 1},
5483 {8 * 1024, 2},
5484 {32 * 1024, 1},
5485 {64 * 1024, 3},
5486 },
5487 .block_erase = erase_sector_jedec,
5488 }, {
5489 .eraseblocks = { {256 * 1024, 1} },
5490 .block_erase = erase_chip_block_jedec,
5491 },
5492 },
5493 .write = write_jedec_1,
5494 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005495 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005496 },
5497
5498 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005499 .vendor = "Hyundai",
5500 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005501 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005502 .manufacture_id = HYUNDAI_ID,
5503 .model_id = HYUNDAI_HY29F040A,
5504 .total_size = 512,
5505 .page_size = 64 * 1024,
5506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5507 .tested = TEST_UNTESTED,
5508 .probe = probe_jedec,
5509 .probe_timing = TIMING_ZERO,
5510 .block_erasers =
5511 {
5512 {
5513 .eraseblocks = { {64 * 1024, 8} },
5514 .block_erase = erase_sector_jedec,
5515 }, {
5516 .eraseblocks = { {512 * 1024, 1} },
5517 .block_erase = erase_chip_block_jedec,
5518 },
5519 },
5520 .write = write_jedec_1,
5521 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005522 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005523 },
5524
5525 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005526 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005527 .name = "25F160S33B8",
5528 .bustype = BUS_SPI,
5529 .manufacture_id = INTEL_ID,
5530 .model_id = INTEL_25F160S33B8,
5531 .total_size = 2048,
5532 .page_size = 256,
5533 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5534 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5535 .tested = TEST_UNTESTED,
5536 .probe = probe_spi_rdid,
5537 .probe_timing = TIMING_ZERO,
5538 .block_erasers =
5539 {
5540 {
5541 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5542 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5543 * have no effect on the memory contents, but sets a flag in the SR.
5544 .eraseblocks = {
5545 {8 * 1024, 8},
5546 {64 * 1024, 31} // inaccessible
5547 },
5548 .block_erase = spi_block_erase_40,
5549 }, { */
5550 .eraseblocks = { {64 * 1024, 32} },
5551 .block_erase = spi_block_erase_d8,
5552 }, {
5553 .eraseblocks = { {2 * 1024 * 1024, 1} },
5554 .block_erase = spi_block_erase_c7,
5555 }
5556 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005557 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5558 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005559 .write = spi_chip_write_256,
5560 .read = spi_chip_read, /* also fast read 0x0B */
5561 .voltage = {2700, 3600},
5562 },
5563
5564 {
5565 .vendor = "Intel",
5566 .name = "25F160S33T8",
5567 .bustype = BUS_SPI,
5568 .manufacture_id = INTEL_ID,
5569 .model_id = INTEL_25F160S33T8,
5570 .total_size = 2048,
5571 .page_size = 256,
5572 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5574 .tested = TEST_UNTESTED,
5575 .probe = probe_spi_rdid,
5576 .probe_timing = TIMING_ZERO,
5577 .block_erasers =
5578 {
5579 {
5580 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5581 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5582 * have no effect on the memory contents, but sets a flag in the SR.
5583 .eraseblocks = {
5584 {64 * 1024, 31}, // inaccessible
5585 {8 * 1024, 8}
5586 },
5587 .block_erase = spi_block_erase_40,
5588 }, { */
5589 .eraseblocks = { {64 * 1024, 32} },
5590 .block_erase = spi_block_erase_d8,
5591 }, {
5592 .eraseblocks = { {2 * 1024 * 1024, 1} },
5593 .block_erase = spi_block_erase_c7,
5594 }
5595 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005596 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5597 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005598 .write = spi_chip_write_256,
5599 .read = spi_chip_read, /* also fast read 0x0B */
5600 .voltage = {2700, 3600},
5601 },
5602
5603 {
5604 .vendor = "Intel",
5605 .name = "25F320S33B8",
5606 .bustype = BUS_SPI,
5607 .manufacture_id = INTEL_ID,
5608 .model_id = INTEL_25F320S33B8,
5609 .total_size = 4096,
5610 .page_size = 256,
5611 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5612 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5613 .tested = TEST_UNTESTED,
5614 .probe = probe_spi_rdid,
5615 .probe_timing = TIMING_ZERO,
5616 .block_erasers =
5617 {
5618 {
5619 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5620 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5621 * have no effect on the memory contents, but sets a flag in the SR.
5622 .eraseblocks = {
5623 {8 * 1024, 8},
5624 {64 * 1024, 63} // inaccessible
5625 },
5626 .block_erase = spi_block_erase_40,
5627 }, { */
5628 .eraseblocks = { {64 * 1024, 64} },
5629 .block_erase = spi_block_erase_d8,
5630 }, {
5631 .eraseblocks = { {4 * 1024 * 1024, 1} },
5632 .block_erase = spi_block_erase_c7,
5633 }
5634 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005635 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5636 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005637 .write = spi_chip_write_256,
5638 .read = spi_chip_read, /* also fast read 0x0B */
5639 .voltage = {2700, 3600},
5640 },
5641
5642 {
5643 .vendor = "Intel",
5644 .name = "25F320S33T8",
5645 .bustype = BUS_SPI,
5646 .manufacture_id = INTEL_ID,
5647 .model_id = INTEL_25F320S33T8,
5648 .total_size = 4096,
5649 .page_size = 256,
5650 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5652 .tested = TEST_UNTESTED,
5653 .probe = probe_spi_rdid,
5654 .probe_timing = TIMING_ZERO,
5655 .block_erasers =
5656 {
5657 {
5658 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5659 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5660 * have no effect on the memory contents, but sets a flag in the SR.
5661 .eraseblocks = {
5662 {64 * 1024, 63}, // inaccessible
5663 {8 * 1024, 8}
5664 },
5665 .block_erase = spi_block_erase_40,
5666 }, { */
5667 .eraseblocks = { {64 * 1024, 64} },
5668 .block_erase = spi_block_erase_d8,
5669 }, {
5670 .eraseblocks = { {4 * 1024 * 1024, 1} },
5671 .block_erase = spi_block_erase_c7,
5672 }
5673 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005674 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5675 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005676 .write = spi_chip_write_256,
5677 .read = spi_chip_read, /* also fast read 0x0B */
5678 .voltage = {2700, 3600},
5679 },
5680
5681 {
5682 .vendor = "Intel",
5683 .name = "25F640S33B8",
5684 .bustype = BUS_SPI,
5685 .manufacture_id = INTEL_ID,
5686 .model_id = INTEL_25F640S33B8,
5687 .total_size = 8192,
5688 .page_size = 256,
5689 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5691 .tested = TEST_UNTESTED,
5692 .probe = probe_spi_rdid,
5693 .probe_timing = TIMING_ZERO,
5694 .block_erasers =
5695 {
5696 {
5697 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5698 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5699 * have no effect on the memory contents, but sets a flag in the SR.
5700 .eraseblocks = {
5701 {8 * 1024, 8},
5702 {64 * 1024, 127} // inaccessible
5703 },
5704 .block_erase = spi_block_erase_40,
5705 }, { */
5706 .eraseblocks = { {64 * 1024, 128} },
5707 .block_erase = spi_block_erase_d8,
5708 }, {
5709 .eraseblocks = { {8 * 1024 * 1024, 1} },
5710 .block_erase = spi_block_erase_c7,
5711 }
5712 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005713 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5714 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005715 .write = spi_chip_write_256,
5716 .read = spi_chip_read, /* also fast read 0x0B */
5717 .voltage = {2700, 3600},
5718 },
5719
5720 {
5721 .vendor = "Intel",
5722 .name = "25F640S33T8",
5723 .bustype = BUS_SPI,
5724 .manufacture_id = INTEL_ID,
5725 .model_id = INTEL_25F640S33T8,
5726 .total_size = 8192,
5727 .page_size = 256,
5728 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5730 .tested = TEST_UNTESTED,
5731 .probe = probe_spi_rdid,
5732 .probe_timing = TIMING_ZERO,
5733 .block_erasers =
5734 {
5735 {
5736 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5737 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5738 * have no effect on the memory contents, but sets a flag in the SR.
5739 .eraseblocks = {
5740 {64 * 1024, 127}, // inaccessible
5741 {8 * 1024, 8}
5742 },
5743 .block_erase = spi_block_erase_40,
5744 }, { */
5745 .eraseblocks = { {64 * 1024, 128} },
5746 .block_erase = spi_block_erase_d8,
5747 }, {
5748 .eraseblocks = { {8 * 1024 * 1024, 1} },
5749 .block_erase = spi_block_erase_c7,
5750 }
5751 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005752 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5753 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005754 .write = spi_chip_write_256,
5755 .read = spi_chip_read, /* also fast read 0x0B */
5756 .voltage = {2700, 3600},
5757 },
5758
5759 {
5760 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005761 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005762 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005763 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005764 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005765 .total_size = 128,
5766 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005767 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005768 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005769 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005770 .block_erasers =
5771 {
5772 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005773 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005774 {8 * 1024, 1},
5775 {4 * 1024, 2},
5776 {112 * 1024, 1},
5777 },
Sean Nelson28accc22010-03-19 18:47:06 +00005778 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005779 },
5780 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005781 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005783 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005784 },
5785
5786 {
5787 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005788 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005789 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005790 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005791 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005792 .total_size = 128,
5793 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005794 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005795 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005796 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005797 .block_erasers =
5798 {
5799 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005800 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005801 {112 * 1024, 1},
5802 {4 * 1024, 2},
5803 {8 * 1024, 1},
5804 },
Sean Nelson28accc22010-03-19 18:47:06 +00005805 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005806 },
5807 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005808 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005809 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005810 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005811 },
5812
5813 {
5814 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005815 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005816 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005817 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005818 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005819 .total_size = 256,
5820 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005821 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005822 .probe = probe_82802ab,
5823 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5824 .block_erasers =
5825 {
5826 {
5827 .eraseblocks = {
5828 {128 * 1024, 1},
5829 {96 * 1024, 1},
5830 {8 * 1024, 2},
5831 {16 * 1024, 1},
5832 },
5833 .block_erase = erase_block_82802ab,
5834 },
5835 },
5836 .write = write_82802ab,
5837 .read = read_memmapped,
5838 },
5839
5840 {
5841 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005842 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005843 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005844 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005845 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005846 .total_size = 512,
5847 .page_size = 256,
5848 .tested = TEST_UNTESTED,
5849 .probe = probe_82802ab,
5850 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005851 .block_erasers =
5852 {
5853 {
5854 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005855 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005856 },
5857 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005858 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005859 .write = write_82802ab,
5860 .read = read_memmapped,
5861 },
5862
5863 {
5864 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005865 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005866 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005867 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005868 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005869 .total_size = 512,
5870 .page_size = 128 * 1024, /* maximal block size */
5871 .tested = TEST_UNTESTED,
5872 .probe = probe_82802ab,
5873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5874 .block_erasers =
5875 {
5876 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005877 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005878 {16 * 1024, 1},
5879 {8 * 1024, 2},
5880 {96 * 1024, 1},
5881 {128 * 1024, 3},
5882 },
5883 .block_erase = erase_block_82802ab,
5884 },
5885 },
5886 .write = write_82802ab,
5887 .read = read_memmapped,
5888 },
5889
5890 {
5891 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005892 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005893 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005894 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005895 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005896 .total_size = 512,
5897 .page_size = 128 * 1024, /* maximal block size */
5898 .tested = TEST_UNTESTED,
5899 .probe = probe_82802ab,
5900 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5901 .block_erasers =
5902 {
5903 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005904 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005905 {128 * 1024, 3},
5906 {96 * 1024, 1},
5907 {8 * 1024, 2},
5908 {16 * 1024, 1},
5909 },
5910 .block_erase = erase_block_82802ab,
5911 },
5912 },
5913 .write = write_82802ab,
5914 .read = read_memmapped,
5915 },
5916
5917 {
5918 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005919 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005920 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005921 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005922 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005923 .total_size = 512,
5924 .page_size = 128 * 1024, /* maximal block size */
5925 .feature_bits = FEATURE_ADDR_SHIFTED,
5926 .tested = TEST_UNTESTED,
5927 .probe = probe_82802ab,
5928 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5929 .block_erasers =
5930 {
5931 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005932 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005933 {16 * 1024, 1},
5934 {8 * 1024, 2},
5935 {96 * 1024, 1},
5936 {128 * 1024, 3},
5937 },
5938 .block_erase = erase_block_82802ab,
5939 },
5940 },
5941 .write = write_82802ab,
5942 .read = read_memmapped,
5943 },
5944
5945 {
5946 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005947 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005948 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005949 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005950 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005951 .total_size = 512,
5952 .page_size = 128 * 1024, /* maximal block size */
5953 .feature_bits = FEATURE_ADDR_SHIFTED,
5954 .tested = TEST_UNTESTED,
5955 .probe = probe_82802ab,
5956 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5957 .block_erasers =
5958 {
5959 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005960 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005961 {128 * 1024, 3},
5962 {96 * 1024, 1},
5963 {8 * 1024, 2},
5964 {16 * 1024, 1},
5965 },
5966 .block_erase = erase_block_82802ab,
5967 },
5968 },
5969 .write = write_82802ab,
5970 .read = read_memmapped,
5971 },
5972
5973 {
5974 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005975 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005976 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005977 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005978 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005979 .total_size = 512,
5980 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005981 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005982 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005983 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005984 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005985 .block_erasers =
5986 {
5987 {
5988 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005989 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005990 },
5991 },
Sean Nelson28accc22010-03-19 18:47:06 +00005992 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005993 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005995 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005996 },
5997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005998 {
5999 .vendor = "Intel",
6000 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006001 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006003 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006004 .total_size = 1024,
6005 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006006 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006007 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006009 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006010 .block_erasers =
6011 {
6012 {
6013 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006014 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006015 },
6016 },
Sean Nelson28accc22010-03-19 18:47:06 +00006017 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006018 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006020 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006021 },
6022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006023 {
6024 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006025 .name = "MX23L3254",
6026 .bustype = BUS_SPI,
6027 .manufacture_id = MACRONIX_ID,
6028 .model_id = MACRONIX_MX23L3254,
6029 .total_size = 4096,
6030 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006031 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006032 .probe = probe_spi_rdid,
6033 .probe_timing = TIMING_ZERO,
6034 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6035 .read = spi_chip_read, /* Fast read (0x0B) supported */
6036 .voltage = {3000, 3600},
6037 },
6038
6039 {
6040 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006041 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006042 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006043 .manufacture_id = MACRONIX_ID,
6044 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .total_size = 64,
6046 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006047 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006048 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006049 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006051 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006052 .block_erasers =
6053 {
6054 {
6055 .eraseblocks = { {4 * 1024, 16} },
6056 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006057 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006058 .eraseblocks = { {64 * 1024, 1} },
6059 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006060 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006061 .eraseblocks = { {64 * 1024, 1} },
6062 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006063 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006064 .eraseblocks = { {64 * 1024, 1} },
6065 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006066 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006067 .eraseblocks = { {64 * 1024, 1} },
6068 .block_erase = spi_block_erase_c7,
6069 },
6070 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006071 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006072 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006073 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006074 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6075 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006076 },
6077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006078 {
6079 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006080 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006081 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006082 .manufacture_id = MACRONIX_ID,
6083 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006084 .total_size = 128,
6085 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006086 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006087 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006088 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006089 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006090 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006091 .block_erasers =
6092 {
6093 {
6094 .eraseblocks = { {4 * 1024, 32} },
6095 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006096 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006097 .eraseblocks = { {64 * 1024, 2} },
6098 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006099 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006100 .eraseblocks = { {128 * 1024, 1} },
6101 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006102 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006103 .eraseblocks = { {128 * 1024, 1} },
6104 .block_erase = spi_block_erase_c7,
6105 },
6106 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006107 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006108 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006109 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006110 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006111 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006112 },
6113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006114 {
6115 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006116 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006117 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006118 .manufacture_id = MACRONIX_ID,
6119 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006120 .total_size = 256,
6121 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006122 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006123 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006125 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006126 .block_erasers =
6127 {
6128 {
6129 .eraseblocks = { {4 * 1024, 64} },
6130 .block_erase = spi_block_erase_20,
6131 }, {
6132 .eraseblocks = { {64 * 1024, 4} },
6133 .block_erase = spi_block_erase_52,
6134 }, {
6135 .eraseblocks = { {64 * 1024, 4} },
6136 .block_erase = spi_block_erase_d8,
6137 }, {
6138 .eraseblocks = { {256 * 1024, 1} },
6139 .block_erase = spi_block_erase_60,
6140 }, {
6141 .eraseblocks = { {256 * 1024, 1} },
6142 .block_erase = spi_block_erase_c7,
6143 },
6144 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006145 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006146 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006147 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006148 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006149 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006150 },
6151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006152 {
6153 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006154 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006155 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006156 .manufacture_id = MACRONIX_ID,
6157 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 .total_size = 512,
6159 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006160 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006163 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006164 .block_erasers =
6165 {
6166 {
6167 .eraseblocks = { {4 * 1024, 128} },
6168 .block_erase = spi_block_erase_20,
6169 }, {
6170 .eraseblocks = { {64 * 1024, 8} },
6171 .block_erase = spi_block_erase_52,
6172 }, {
6173 .eraseblocks = { {64 * 1024, 8} },
6174 .block_erase = spi_block_erase_d8,
6175 }, {
6176 .eraseblocks = { {512 * 1024, 1} },
6177 .block_erase = spi_block_erase_60,
6178 }, {
6179 .eraseblocks = { {512 * 1024, 1} },
6180 .block_erase = spi_block_erase_c7,
6181 },
6182 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006183 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006184 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006185 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006186 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006187 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006188 },
6189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 {
6191 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006192 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006193 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006194 .manufacture_id = MACRONIX_ID,
6195 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .total_size = 1024,
6197 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006198 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006199 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006200 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006201 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006202 .block_erasers =
6203 {
6204 {
6205 .eraseblocks = { {4 * 1024, 256} },
6206 .block_erase = spi_block_erase_20,
6207 }, {
6208 .eraseblocks = { {64 * 1024, 16} },
6209 .block_erase = spi_block_erase_52,
6210 }, {
6211 .eraseblocks = { {64 * 1024, 16} },
6212 .block_erase = spi_block_erase_d8,
6213 }, {
6214 .eraseblocks = { {1024 * 1024, 1} },
6215 .block_erase = spi_block_erase_60,
6216 }, {
6217 .eraseblocks = { {1024 * 1024, 1} },
6218 .block_erase = spi_block_erase_c7,
6219 },
6220 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006221 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006222 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006223 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006224 .read = spi_chip_read, /* Fast read (0x0B) supported */
6225 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006226 },
6227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006228 {
6229 .vendor = "Macronix",
6230 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006231 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006232 .manufacture_id = MACRONIX_ID,
6233 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006234 .total_size = 2048,
6235 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006236 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006238 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006239 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006240 .block_erasers =
6241 {
6242 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006243 .eraseblocks = { {64 * 1024, 32} },
6244 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006245 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006246 .eraseblocks = { {64 * 1024, 32} },
6247 .block_erase = spi_block_erase_d8,
6248 }, {
6249 .eraseblocks = { {2 * 1024 * 1024, 1} },
6250 .block_erase = spi_block_erase_60,
6251 }, {
6252 .eraseblocks = { {2 * 1024 * 1024, 1} },
6253 .block_erase = spi_block_erase_c7,
6254 },
6255 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006256 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006257 .unlock = spi_disable_blockprotect,
6258 .write = spi_chip_write_256,
6259 .read = spi_chip_read, /* Fast read (0x0B) supported */
6260 .voltage = {2700, 3600},
6261 },
6262
6263 {
6264 .vendor = "Macronix",
6265 .name = "MX25L1605A/MX25L1606E",
6266 .bustype = BUS_SPI,
6267 .manufacture_id = MACRONIX_ID,
6268 .model_id = MACRONIX_MX25L1605,
6269 .total_size = 2048,
6270 .page_size = 256,
6271 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6272 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6273 .tested = TEST_OK_PREW,
6274 .probe = probe_spi_rdid,
6275 .probe_timing = TIMING_ZERO,
6276 .block_erasers =
6277 {
6278 {
6279 .eraseblocks = { {4 * 1024, 512} },
6280 .block_erase = spi_block_erase_20,
6281 }, {
6282 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006283 .block_erase = spi_block_erase_52,
6284 }, {
6285 .eraseblocks = { {64 * 1024, 32} },
6286 .block_erase = spi_block_erase_d8,
6287 }, {
6288 .eraseblocks = { {2 * 1024 * 1024, 1} },
6289 .block_erase = spi_block_erase_60,
6290 }, {
6291 .eraseblocks = { {2 * 1024 * 1024, 1} },
6292 .block_erase = spi_block_erase_c7,
6293 },
6294 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006295 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006296 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006297 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .read = spi_chip_read, /* Fast read (0x0B) supported */
6299 .voltage = {2700, 3600},
6300 },
6301
6302 {
6303 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006304 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006305 .bustype = BUS_SPI,
6306 .manufacture_id = MACRONIX_ID,
6307 .model_id = MACRONIX_MX25L1605,
6308 .total_size = 2048,
6309 .page_size = 256,
6310 .feature_bits = FEATURE_WRSR_WREN,
6311 .tested = TEST_OK_PREW,
6312 .probe = probe_spi_rdid,
6313 .probe_timing = TIMING_ZERO,
6314 .block_erasers =
6315 {
6316 {
6317 .eraseblocks = { {4 * 1024, 512} },
6318 .block_erase = spi_block_erase_20,
6319 }, {
6320 .eraseblocks = { {64 * 1024, 32} },
6321 .block_erase = spi_block_erase_d8,
6322 }, {
6323 .eraseblocks = { {2 * 1024 * 1024, 1} },
6324 .block_erase = spi_block_erase_60,
6325 }, {
6326 .eraseblocks = { {2 * 1024 * 1024, 1} },
6327 .block_erase = spi_block_erase_c7,
6328 },
6329 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006330 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006331 .unlock = spi_disable_blockprotect,
6332 .write = spi_chip_write_256,
6333 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006334 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006335 },
6336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006337 {
6338 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006339 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006340 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006341 .manufacture_id = MACRONIX_ID,
6342 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006343 .total_size = 2048,
6344 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006345 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6346 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006347 .tested = TEST_UNTESTED,
6348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006349 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006350 .block_erasers =
6351 {
6352 {
6353 .eraseblocks = { {4 * 1024, 512} },
6354 .block_erase = spi_block_erase_20,
6355 }, {
6356 .eraseblocks = { {64 * 1024, 32} },
6357 .block_erase = spi_block_erase_d8,
6358 }, {
6359 .eraseblocks = { {2 * 1024 * 1024, 1} },
6360 .block_erase = spi_block_erase_60,
6361 }, {
6362 .eraseblocks = { {2 * 1024 * 1024, 1} },
6363 .block_erase = spi_block_erase_c7,
6364 }
6365 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006366 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006368 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006369 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006370 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006371 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006372
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006373 {
6374 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006375 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006376 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006377 .manufacture_id = MACRONIX_ID,
6378 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006379 .total_size = 2048,
6380 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006381 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006383 .tested = TEST_UNTESTED,
6384 .probe = probe_spi_rdid,
6385 .probe_timing = TIMING_ZERO,
6386 .block_erasers =
6387 {
6388 {
6389 .eraseblocks = { {4 * 1024, 512} },
6390 .block_erase = spi_block_erase_20,
6391 }, {
6392 .eraseblocks = { {64 * 1024, 32} },
6393 .block_erase = spi_block_erase_d8,
6394 }, {
6395 .eraseblocks = { {2 * 1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_60,
6397 }, {
6398 .eraseblocks = { {2 * 1024 * 1024, 1} },
6399 .block_erase = spi_block_erase_c7,
6400 }
6401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006403 .unlock = spi_disable_blockprotect,
6404 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006406 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006407 },
6408
6409 {
6410 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006411 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006412 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006413 .manufacture_id = MACRONIX_ID,
6414 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006415 .total_size = 4096,
6416 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006417 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006420 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006421 .block_erasers =
6422 {
6423 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006424 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006425 .block_erase = spi_block_erase_20,
6426 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006427 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006428 .block_erase = spi_block_erase_d8,
6429 }, {
6430 .eraseblocks = { {4 * 1024 * 1024, 1} },
6431 .block_erase = spi_block_erase_60,
6432 }, {
6433 .eraseblocks = { {4 * 1024 * 1024, 1} },
6434 .block_erase = spi_block_erase_c7,
6435 },
6436 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006437 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006438 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006439 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006440 .read = spi_chip_read, /* Fast read (0x0B) supported */
6441 .voltage = {2700, 3600},
6442 },
6443
6444 {
6445 .vendor = "Macronix",
6446 .name = "MX25L3205D/MX25L3208D",
6447 .bustype = BUS_SPI,
6448 .manufacture_id = MACRONIX_ID,
6449 .model_id = MACRONIX_MX25L3205,
6450 .total_size = 4096,
6451 .page_size = 256,
6452 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6454 .tested = TEST_OK_PREW,
6455 .probe = probe_spi_rdid,
6456 .probe_timing = TIMING_ZERO,
6457 .block_erasers =
6458 {
6459 {
6460 .eraseblocks = { {4 * 1024, 1024} },
6461 .block_erase = spi_block_erase_20,
6462 }, {
6463 .eraseblocks = { {64 * 1024, 64} },
6464 .block_erase = spi_block_erase_d8,
6465 }, {
6466 .eraseblocks = { {4 * 1024 * 1024, 1} },
6467 .block_erase = spi_block_erase_60,
6468 }, {
6469 .eraseblocks = { {4 * 1024 * 1024, 1} },
6470 .block_erase = spi_block_erase_c7,
6471 },
6472 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006473 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006474 .unlock = spi_disable_blockprotect,
6475 .write = spi_chip_write_256,
6476 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6477 .voltage = {2700, 3600},
6478 },
6479
6480 {
6481 .vendor = "Macronix",
6482 .name = "MX25L3206E",
6483 .bustype = BUS_SPI,
6484 .manufacture_id = MACRONIX_ID,
6485 .model_id = MACRONIX_MX25L3205,
6486 .total_size = 4096,
6487 .page_size = 256,
6488 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6490 .tested = TEST_OK_PREW,
6491 .probe = probe_spi_rdid,
6492 .probe_timing = TIMING_ZERO,
6493 .block_erasers =
6494 {
6495 {
6496 .eraseblocks = { {4 * 1024, 1024} },
6497 .block_erase = spi_block_erase_20,
6498 }, {
6499 .eraseblocks = { {64 * 1024, 64} },
6500 .block_erase = spi_block_erase_d8,
6501 }, {
6502 .eraseblocks = { {64 * 1024, 64} },
6503 .block_erase = spi_block_erase_52,
6504 }, {
6505 .eraseblocks = { {4 * 1024 * 1024, 1} },
6506 .block_erase = spi_block_erase_60,
6507 }, {
6508 .eraseblocks = { {4 * 1024 * 1024, 1} },
6509 .block_erase = spi_block_erase_c7,
6510 },
6511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006512 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00006513 .unlock = spi_disable_blockprotect,
6514 .write = spi_chip_write_256,
6515 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006516 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006517 },
6518
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006519 {
6520 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006521 .name = "MX25L3273E",
6522 .bustype = BUS_SPI,
6523 .manufacture_id = MACRONIX_ID,
6524 .model_id = MACRONIX_MX25L3205,
6525 .total_size = 4096,
6526 .page_size = 256,
6527 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6529 .tested = TEST_UNTESTED,
6530 .probe = probe_spi_rdid,
6531 .probe_timing = TIMING_ZERO,
6532 .block_erasers =
6533 {
6534 {
6535 .eraseblocks = { {4 * 1024, 1024} },
6536 .block_erase = spi_block_erase_20,
6537 }, {
6538 .eraseblocks = { {32 * 1024, 128} },
6539 .block_erase = spi_block_erase_52,
6540 }, {
6541 .eraseblocks = { {64 * 1024, 64} },
6542 .block_erase = spi_block_erase_d8,
6543 }, {
6544 .eraseblocks = { {4 * 1024 * 1024, 1} },
6545 .block_erase = spi_block_erase_60,
6546 }, {
6547 .eraseblocks = { {4 * 1024 * 1024, 1} },
6548 .block_erase = spi_block_erase_c7,
6549 },
6550 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006551 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006552 .unlock = spi_disable_blockprotect,
6553 .write = spi_chip_write_256,
6554 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6555 .voltage = {2700, 3600},
6556 },
6557
6558 {
6559 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006560 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006561 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006562 .manufacture_id = MACRONIX_ID,
6563 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006564 .total_size = 4096,
6565 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006566 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006568 .tested = TEST_UNTESTED,
6569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006570 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006571 .block_erasers =
6572 {
6573 {
6574 .eraseblocks = { {4 * 1024, 1024} },
6575 .block_erase = spi_block_erase_20,
6576 }, {
6577 .eraseblocks = { {64 * 1024, 64} },
6578 .block_erase = spi_block_erase_d8,
6579 }, {
6580 .eraseblocks = { {4 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_60,
6582 }, {
6583 .eraseblocks = { {4 * 1024 * 1024, 1} },
6584 .block_erase = spi_block_erase_c7,
6585 }
6586 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006587 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006588 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006589 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006590 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006591 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006592 },
6593
6594 {
6595 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006596 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006597 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006598 .manufacture_id = MACRONIX_ID,
6599 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006600 .total_size = 8192,
6601 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006602 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6603 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006606 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006607 .block_erasers =
6608 {
6609 {
6610 .eraseblocks = { {64 * 1024, 128} },
6611 .block_erase = spi_block_erase_20,
6612 }, {
6613 .eraseblocks = { {64 * 1024, 128} },
6614 .block_erase = spi_block_erase_d8,
6615 }, {
6616 .eraseblocks = { {8 * 1024 * 1024, 1} },
6617 .block_erase = spi_block_erase_60,
6618 }, {
6619 .eraseblocks = { {8 * 1024 * 1024, 1} },
6620 .block_erase = spi_block_erase_c7,
6621 }
6622 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006623 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006624 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006625 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006626 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006627 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006628 },
6629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006630 {
6631 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006632 .name = "MX25L6406E/MX25L6436E",
6633 .bustype = BUS_SPI,
6634 .manufacture_id = MACRONIX_ID,
6635 .model_id = MACRONIX_MX25L6405,
6636 .total_size = 8192,
6637 .page_size = 256,
6638 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6640 .tested = TEST_OK_PREW,
6641 .probe = probe_spi_rdid,
6642 .probe_timing = TIMING_ZERO,
6643 .block_erasers =
6644 {
6645 {
6646 .eraseblocks = { {4 * 1024, 2048} },
6647 .block_erase = spi_block_erase_20,
6648 }, {
6649 .eraseblocks = { {64 * 1024, 128} },
6650 .block_erase = spi_block_erase_d8,
6651 }, {
6652 .eraseblocks = { {8 * 1024 * 1024, 1} },
6653 .block_erase = spi_block_erase_60,
6654 }, {
6655 .eraseblocks = { {8 * 1024 * 1024, 1} },
6656 .block_erase = spi_block_erase_c7,
6657 }
6658 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006659 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006660 .unlock = spi_disable_blockprotect,
6661 .write = spi_chip_write_256,
6662 .read = spi_chip_read,
6663 .voltage = {2700, 3600},
6664 },
6665
6666 {
6667 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006668 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006669 .bustype = BUS_SPI,
6670 .manufacture_id = MACRONIX_ID,
6671 .model_id = MACRONIX_MX25L6405,
6672 .total_size = 8192,
6673 .page_size = 256,
6674 /* supports SFDP */
6675 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6677 .tested = TEST_OK_PREW,
6678 .probe = probe_spi_rdid,
6679 .probe_timing = TIMING_ZERO,
6680 .block_erasers =
6681 {
6682 {
6683 .eraseblocks = { {4 * 1024, 2048} },
6684 .block_erase = spi_block_erase_20,
6685 }, {
6686 .eraseblocks = { {32 * 1024, 256} },
6687 .block_erase = spi_block_erase_52,
6688 }, {
6689 .eraseblocks = { {64 * 1024, 128} },
6690 .block_erase = spi_block_erase_d8,
6691 }, {
6692 .eraseblocks = { {8 * 1024 * 1024, 1} },
6693 .block_erase = spi_block_erase_60,
6694 }, {
6695 .eraseblocks = { {8 * 1024 * 1024, 1} },
6696 .block_erase = spi_block_erase_c7,
6697 }
6698 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006699 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006700 .unlock = spi_disable_blockprotect,
6701 .write = spi_chip_write_256,
6702 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6703 .voltage = {2700, 3600},
6704 },
6705
6706 {
6707 .vendor = "Macronix",
6708 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006709 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006710 .manufacture_id = MACRONIX_ID,
6711 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006712 .total_size = 16384,
6713 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006714 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006716 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006718 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006719 .block_erasers =
6720 {
6721 {
6722 .eraseblocks = { {4 * 1024, 4096} },
6723 .block_erase = spi_block_erase_20,
6724 }, {
6725 .eraseblocks = { {64 * 1024, 256} },
6726 .block_erase = spi_block_erase_d8,
6727 }, {
6728 .eraseblocks = { {16 * 1024 * 1024, 1} },
6729 .block_erase = spi_block_erase_60,
6730 }, {
6731 .eraseblocks = { {16 * 1024 * 1024, 1} },
6732 .block_erase = spi_block_erase_c7,
6733 }
6734 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006735 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006736 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006737 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006738 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006739 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006740 },
6741
6742 {
6743 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006744 .name = "MX25U1635E",
6745 .bustype = BUS_SPI,
6746 .manufacture_id = MACRONIX_ID,
6747 .model_id = MACRONIX_MX25U1635E,
6748 .total_size = 2048,
6749 .page_size = 256,
6750 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6751 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6753 .tested = TEST_UNTESTED,
6754 .probe = probe_spi_rdid,
6755 .probe_timing = TIMING_ZERO,
6756 .block_erasers =
6757 {
6758 {
6759 .eraseblocks = { {4 * 1024, 512} },
6760 .block_erase = spi_block_erase_20,
6761 }, {
6762 .eraseblocks = { {32 * 1024, 64} },
6763 .block_erase = spi_block_erase_52,
6764 }, {
6765 .eraseblocks = { {64 * 1024, 32} },
6766 .block_erase = spi_block_erase_d8,
6767 }, {
6768 .eraseblocks = { {2 * 1024 * 1024, 1} },
6769 .block_erase = spi_block_erase_60,
6770 }, {
6771 .eraseblocks = { {2 * 1024 * 1024, 1} },
6772 .block_erase = spi_block_erase_c7,
6773 }
6774 },
6775 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006776 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006777 .unlock = spi_disable_blockprotect,
6778 .write = spi_chip_write_256,
6779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6780 .voltage = {1650, 2000},
6781 },
6782
6783 {
6784 .vendor = "Macronix",
6785 .name = "MX25U3235E/F",
6786 .bustype = BUS_SPI,
6787 .manufacture_id = MACRONIX_ID,
6788 .model_id = MACRONIX_MX25U3235E,
6789 .total_size = 4096,
6790 .page_size = 256,
6791 /* F model supports SFDP */
6792 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6793 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6794 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6795 .tested = TEST_OK_PREW,
6796 .probe = probe_spi_rdid,
6797 .probe_timing = TIMING_ZERO,
6798 .block_erasers =
6799 {
6800 {
6801 .eraseblocks = { {4 * 1024, 1024} },
6802 .block_erase = spi_block_erase_20,
6803 }, {
6804 .eraseblocks = { {32 * 1024, 128} },
6805 .block_erase = spi_block_erase_52,
6806 }, {
6807 .eraseblocks = { {64 * 1024, 64} },
6808 .block_erase = spi_block_erase_d8,
6809 }, {
6810 .eraseblocks = { {4 * 1024 * 1024, 1} },
6811 .block_erase = spi_block_erase_60,
6812 }, {
6813 .eraseblocks = { {4 * 1024 * 1024, 1} },
6814 .block_erase = spi_block_erase_c7,
6815 }
6816 },
6817 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006818 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006819 .unlock = spi_disable_blockprotect,
6820 .write = spi_chip_write_256,
6821 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6822 .voltage = {1650, 2000},
6823 },
6824
6825 {
6826 .vendor = "Macronix",
6827 .name = "MX25U6435E/F",
6828 .bustype = BUS_SPI,
6829 .manufacture_id = MACRONIX_ID,
6830 .model_id = MACRONIX_MX25U6435E,
6831 .total_size = 8192,
6832 .page_size = 256,
6833 /* F model supports SFDP */
6834 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6835 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6837 .tested = TEST_UNTESTED,
6838 .probe = probe_spi_rdid,
6839 .probe_timing = TIMING_ZERO,
6840 .block_erasers =
6841 {
6842 {
6843 .eraseblocks = { {4 * 1024, 2048} },
6844 .block_erase = spi_block_erase_20,
6845 }, {
6846 .eraseblocks = { {32 * 1024, 256} },
6847 .block_erase = spi_block_erase_52,
6848 }, {
6849 .eraseblocks = { {64 * 1024, 128} },
6850 .block_erase = spi_block_erase_d8,
6851 }, {
6852 .eraseblocks = { {8 * 1024 * 1024, 1} },
6853 .block_erase = spi_block_erase_60,
6854 }, {
6855 .eraseblocks = { {8 * 1024 * 1024, 1} },
6856 .block_erase = spi_block_erase_c7,
6857 }
6858 },
6859 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006860 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006861 .unlock = spi_disable_blockprotect,
6862 .write = spi_chip_write_256,
6863 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6864 .voltage = {1650, 2000},
6865 },
6866
6867 {
6868 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00006869 .name = "MX25U12835F",
6870 .bustype = BUS_SPI,
6871 .manufacture_id = MACRONIX_ID,
6872 .model_id = MACRONIX_MX25U12835E,
6873 .total_size = 16384,
6874 .page_size = 256,
6875 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6877 .tested = TEST_UNTESTED,
6878 .probe = probe_spi_rdid,
6879 .probe_timing = TIMING_ZERO,
6880 .block_erasers =
6881 {
6882 {
6883 .eraseblocks = { {4 * 1024, 4096} },
6884 .block_erase = spi_block_erase_20,
6885 }, {
6886 .eraseblocks = { {32 * 1024, 512} },
6887 .block_erase = spi_block_erase_52,
6888 }, {
6889 .eraseblocks = { {64 * 1024, 256} },
6890 .block_erase = spi_block_erase_d8,
6891 }, {
6892 .eraseblocks = { {16 * 1024 * 1024, 1} },
6893 .block_erase = spi_block_erase_60,
6894 }, {
6895 .eraseblocks = { {16 * 1024 * 1024, 1} },
6896 .block_erase = spi_block_erase_c7,
6897 }
6898 },
6899 /* TODO: security register */
6900 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
6901 .unlock = spi_disable_blockprotect_bp3_srwd,
6902 .write = spi_chip_write_256, /* Multi I/O supported */
6903 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6904 .voltage = {1650, 2000},
6905 },
6906
6907 {
6908 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006909 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006910 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006911 .manufacture_id = MACRONIX_ID,
6912 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006913 .total_size = 128,
6914 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6916 .tested = TEST_UNTESTED,
6917 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006918 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006919 .block_erasers =
6920 {
6921 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006922 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006923 {8 * 1024, 1},
6924 {4 * 1024, 2},
6925 {8 * 1024, 2},
6926 {32 * 1024, 1},
6927 {64 * 1024, 1},
6928 },
Sean Nelson35727f72010-01-28 23:55:12 +00006929 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006930 }, {
6931 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006932 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006933 }
6934 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006935 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006937 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006938 },
6939
6940 {
6941 .vendor = "Macronix",
6942 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006943 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006944 .manufacture_id = MACRONIX_ID,
6945 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006946 .total_size = 128,
6947 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006948 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006949 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006950 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006951 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006952 .block_erasers =
6953 {
6954 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006955 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006956 {64 * 1024, 1},
6957 {32 * 1024, 1},
6958 {8 * 1024, 2},
6959 {4 * 1024, 2},
6960 {8 * 1024, 1},
6961 },
Sean Nelson35727f72010-01-28 23:55:12 +00006962 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006963 }, {
6964 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006965 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006966 }
6967 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006968 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006970 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006971 },
6972
6973 {
6974 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006975 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006976 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006977 .manufacture_id = MACRONIX_ID,
6978 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 .total_size = 256,
6980 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006981 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006982 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006983 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006984 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006985 .block_erasers =
6986 {
6987 {
6988 .eraseblocks = {
6989 {16 * 1024, 1},
6990 {8 * 1024, 2},
6991 {32 * 1024, 1},
6992 {64 * 1024, 3},
6993 },
Sean Nelson35727f72010-01-28 23:55:12 +00006994 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006995 }, {
6996 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006997 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006998 },
6999 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007000 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007002 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007003 },
7004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 {
7006 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007007 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007008 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007009 .manufacture_id = MACRONIX_ID,
7010 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 .total_size = 256,
7012 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007013 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007014 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007015 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007016 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007017 .block_erasers =
7018 {
7019 {
7020 .eraseblocks = {
7021 {64 * 1024, 3},
7022 {32 * 1024, 1},
7023 {8 * 1024, 2},
7024 {16 * 1024, 1},
7025 },
Sean Nelson35727f72010-01-28 23:55:12 +00007026 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007027 }, {
7028 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007029 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007030 },
7031 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007034 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007035 },
7036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 {
7038 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007039 .name = "MX29F022(N)B",
7040 .bustype = BUS_PARALLEL,
7041 .manufacture_id = MACRONIX_ID,
7042 .model_id = MACRONIX_MX29F022B,
7043 .total_size = 256,
7044 .page_size = 0, /* unused */
7045 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7046 .tested = TEST_UNTESTED,
7047 .probe = probe_jedec,
7048 .probe_timing = TIMING_ZERO,
7049 .block_erasers =
7050 {
7051 {
7052 .eraseblocks = {
7053 {16 * 1024, 1},
7054 {8 * 1024, 2},
7055 {32 * 1024, 1},
7056 {64 * 1024, 3},
7057 },
7058 .block_erase = erase_sector_jedec,
7059 }, {
7060 .eraseblocks = { {256 * 1024, 1} },
7061 .block_erase = erase_chip_block_jedec,
7062 }
7063 },
7064 .write = write_jedec_1,
7065 .read = read_memmapped,
7066 .voltage = {4500, 5500},
7067 },
7068
7069 {
7070 .vendor = "Macronix",
7071 .name = "MX29F022(N)T",
7072 .bustype = BUS_PARALLEL,
7073 .manufacture_id = MACRONIX_ID,
7074 .model_id = MACRONIX_MX29F022T,
7075 .total_size = 256,
7076 .page_size = 0, /* unused */
7077 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7078 .tested = TEST_OK_PREW,
7079 .probe = probe_jedec,
7080 .probe_timing = TIMING_ZERO,
7081 .block_erasers =
7082 {
7083 {
7084 .eraseblocks = {
7085 {64 * 1024, 3},
7086 {32 * 1024, 1},
7087 {8 * 1024, 2},
7088 {16 * 1024, 1},
7089 },
7090 .block_erase = erase_sector_jedec,
7091 }, {
7092 .eraseblocks = { {256 * 1024, 1} },
7093 .block_erase = erase_chip_block_jedec,
7094 }
7095 },
7096 .write = write_jedec_1,
7097 .read = read_memmapped,
7098 .voltage = {4500, 5500},
7099 },
7100
7101 {
7102 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007103 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007104 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007105 .manufacture_id = MACRONIX_ID,
7106 .model_id = MACRONIX_MX29F040,
7107 .total_size = 512,
7108 .page_size = 64 * 1024,
7109 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7110 .tested = TEST_UNTESTED,
7111 .probe = probe_jedec,
7112 .probe_timing = TIMING_ZERO,
7113 .block_erasers =
7114 {
7115 {
7116 .eraseblocks = { {64 * 1024, 8} },
7117 .block_erase = erase_sector_jedec,
7118 }, {
7119 .eraseblocks = { {512 * 1024, 1} },
7120 .block_erase = erase_chip_block_jedec,
7121 },
7122 },
7123 .write = write_jedec_1,
7124 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007125 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007126 },
7127
7128 {
7129 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007130 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007131 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007132 .manufacture_id = MACRONIX_ID,
7133 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007134 .total_size = 512,
7135 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007136 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7137 .tested = TEST_UNTESTED,
7138 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007139 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007140 .block_erasers =
7141 {
7142 {
7143 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007144 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007145 }, {
7146 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007147 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007148 },
7149 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007152 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007153 },
7154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007155 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007156 .vendor = "Micron/Numonyx/ST",
7157 .name = "M25P05-A",
7158 .bustype = BUS_SPI,
7159 .manufacture_id = ST_ID,
7160 .model_id = ST_M25P05A,
7161 .total_size = 64,
7162 .page_size = 256,
7163 .feature_bits = FEATURE_WRSR_WREN,
7164 .tested = TEST_OK_PREW,
7165 .probe = probe_spi_rdid,
7166 .probe_timing = TIMING_ZERO,
7167 .block_erasers =
7168 {
7169 {
7170 .eraseblocks = { {32 * 1024, 2} },
7171 .block_erase = spi_block_erase_d8,
7172 }, {
7173 .eraseblocks = { {64 * 1024, 1} },
7174 .block_erase = spi_block_erase_c7,
7175 }
7176 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007177 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007178 .unlock = spi_disable_blockprotect,
7179 .write = spi_chip_write_256,
7180 .read = spi_chip_read,
7181 .voltage = {2700, 3600},
7182 },
7183
7184 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7185 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7186 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7187 * only is successful if RDID does not work.
7188 */
7189 {
7190 .vendor = "Micron/Numonyx/ST",
7191 .name = "M25P05",
7192 .bustype = BUS_SPI,
7193 .manufacture_id = 0, /* Not used. */
7194 .model_id = ST_M25P05_RES,
7195 .total_size = 64,
7196 .page_size = 256,
7197 .feature_bits = FEATURE_WRSR_WREN,
7198 .tested = TEST_UNTESTED,
7199 .probe = probe_spi_res1,
7200 .probe_timing = TIMING_ZERO,
7201 .block_erasers =
7202 {
7203 {
7204 .eraseblocks = { {32 * 1024, 2} },
7205 .block_erase = spi_block_erase_d8,
7206 }, {
7207 .eraseblocks = { {64 * 1024, 1} },
7208 .block_erase = spi_block_erase_c7,
7209 }
7210 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007211 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007212 .unlock = spi_disable_blockprotect,
7213 .write = spi_chip_write_1, /* 128 */
7214 .read = spi_chip_read,
7215 .voltage = {2700, 3600},
7216 },
7217
7218 {
7219 .vendor = "Micron/Numonyx/ST",
7220 .name = "M25P10-A",
7221 .bustype = BUS_SPI,
7222 .manufacture_id = ST_ID,
7223 .model_id = ST_M25P10A,
7224 .total_size = 128,
7225 .page_size = 256,
7226 .feature_bits = FEATURE_WRSR_WREN,
7227 .tested = TEST_OK_PRE,
7228 .probe = probe_spi_rdid,
7229 .probe_timing = TIMING_ZERO,
7230 .block_erasers =
7231 {
7232 {
7233 .eraseblocks = { {32 * 1024, 4} },
7234 .block_erase = spi_block_erase_d8,
7235 }, {
7236 .eraseblocks = { {128 * 1024, 1} },
7237 .block_erase = spi_block_erase_c7,
7238 }
7239 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007240 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007241 .unlock = spi_disable_blockprotect,
7242 .write = spi_chip_write_256,
7243 .read = spi_chip_read,
7244 .voltage = {2700, 3600},
7245 },
7246
7247 /* The ST M25P10 has the same problem as the M25P05. */
7248 {
7249 .vendor = "Micron/Numonyx/ST",
7250 .name = "M25P10",
7251 .bustype = BUS_SPI,
7252 .manufacture_id = 0, /* Not used. */
7253 .model_id = ST_M25P10_RES,
7254 .total_size = 128,
7255 .page_size = 256,
7256 .feature_bits = FEATURE_WRSR_WREN,
7257 .tested = TEST_UNTESTED,
7258 .probe = probe_spi_res1,
7259 .probe_timing = TIMING_ZERO,
7260 .block_erasers =
7261 {
7262 {
7263 .eraseblocks = { {32 * 1024, 4} },
7264 .block_erase = spi_block_erase_d8,
7265 }, {
7266 .eraseblocks = { {128 * 1024, 1} },
7267 .block_erase = spi_block_erase_c7,
7268 }
7269 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007270 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007271 .unlock = spi_disable_blockprotect,
7272 .write = spi_chip_write_1, /* 128 */
7273 .read = spi_chip_read,
7274 .voltage = {2700, 3600},
7275 },
7276
7277 {
7278 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7279 .name = "M25P20",
7280 .bustype = BUS_SPI,
7281 .manufacture_id = ST_ID,
7282 .model_id = ST_M25P20,
7283 .total_size = 256,
7284 .page_size = 256,
7285 .feature_bits = FEATURE_WRSR_WREN,
7286 .tested = TEST_UNTESTED,
7287 .probe = probe_spi_rdid,
7288 .probe_timing = TIMING_ZERO,
7289 .block_erasers =
7290 {
7291 {
7292 .eraseblocks = { {64 * 1024, 4} },
7293 .block_erase = spi_block_erase_d8,
7294 }, {
7295 .eraseblocks = { {256 * 1024, 1} },
7296 .block_erase = spi_block_erase_c7,
7297 }
7298 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007299 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007300 .unlock = spi_disable_blockprotect,
7301 .write = spi_chip_write_256,
7302 .read = spi_chip_read, /* Fast read (0x0B) supported */
7303 .voltage = {2700, 3600},
7304 },
7305
7306 {
7307 .vendor = "Micron/Numonyx/ST",
7308 .name = "M25P20-old",
7309 .bustype = BUS_SPI,
7310 .manufacture_id = 0, /* Not used. */
7311 .model_id = ST_M25P20_RES,
7312 .total_size = 256,
7313 .page_size = 256,
7314 .feature_bits = FEATURE_WRSR_WREN,
7315 .tested = TEST_OK_PREW,
7316 .probe = probe_spi_res1,
7317 .probe_timing = TIMING_ZERO,
7318 .block_erasers =
7319 {
7320 {
7321 .eraseblocks = { {64 * 1024, 4} },
7322 .block_erase = spi_block_erase_d8,
7323 }, {
7324 .eraseblocks = { {256 * 1024, 1} },
7325 .block_erase = spi_block_erase_c7,
7326 }
7327 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007328 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007329 .unlock = spi_disable_blockprotect,
7330 .write = spi_chip_write_256,
7331 .read = spi_chip_read, /* Fast read (0x0B) supported */
7332 .voltage = {2700, 3600},
7333 },
7334
7335 {
7336 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7337 .name = "M25P40",
7338 .bustype = BUS_SPI,
7339 .manufacture_id = ST_ID,
7340 .model_id = ST_M25P40,
7341 .total_size = 512,
7342 .page_size = 256,
7343 .feature_bits = FEATURE_WRSR_WREN,
7344 .tested = TEST_OK_PREW,
7345 .probe = probe_spi_rdid,
7346 .probe_timing = TIMING_ZERO,
7347 .block_erasers =
7348 {
7349 {
7350 .eraseblocks = { {64 * 1024, 8} },
7351 .block_erase = spi_block_erase_d8,
7352 }, {
7353 .eraseblocks = { {512 * 1024, 1} },
7354 .block_erase = spi_block_erase_c7,
7355 }
7356 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007357 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007358 .unlock = spi_disable_blockprotect,
7359 .write = spi_chip_write_256,
7360 .read = spi_chip_read,
7361 .voltage = {2700, 3600},
7362 },
7363
7364 {
7365 .vendor = "Micron/Numonyx/ST",
7366 .name = "M25P40-old",
7367 .bustype = BUS_SPI,
7368 .manufacture_id = 0, /* Not used. */
7369 .model_id = ST_M25P40_RES,
7370 .total_size = 512,
7371 .page_size = 256,
7372 .feature_bits = FEATURE_WRSR_WREN,
7373 .tested = TEST_UNTESTED,
7374 .probe = probe_spi_res1,
7375 .probe_timing = TIMING_ZERO,
7376 .block_erasers =
7377 {
7378 {
7379 .eraseblocks = { {64 * 1024, 8} },
7380 .block_erase = spi_block_erase_d8,
7381 }, {
7382 .eraseblocks = { {512 * 1024, 1} },
7383 .block_erase = spi_block_erase_c7,
7384 }
7385 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007386 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007387 .unlock = spi_disable_blockprotect,
7388 .write = spi_chip_write_256,
7389 .read = spi_chip_read,
7390 },
7391
7392 {
7393 .vendor = "Micron/Numonyx/ST",
7394 .name = "M25P80",
7395 .bustype = BUS_SPI,
7396 .manufacture_id = ST_ID,
7397 .model_id = ST_M25P80,
7398 .total_size = 1024,
7399 .page_size = 256,
7400 .feature_bits = FEATURE_WRSR_WREN,
7401 .tested = TEST_OK_PREW,
7402 .probe = probe_spi_rdid,
7403 .probe_timing = TIMING_ZERO,
7404 .block_erasers =
7405 {
7406 {
7407 .eraseblocks = { {64 * 1024, 16} },
7408 .block_erase = spi_block_erase_d8,
7409 }, {
7410 .eraseblocks = { {1024 * 1024, 1} },
7411 .block_erase = spi_block_erase_c7,
7412 }
7413 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007414 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007415 .unlock = spi_disable_blockprotect,
7416 .write = spi_chip_write_256,
7417 .read = spi_chip_read,
7418 .voltage = {2700, 3600},
7419 },
7420
7421 {
7422 .vendor = "Micron/Numonyx/ST",
7423 .name = "M25P16",
7424 .bustype = BUS_SPI,
7425 .manufacture_id = ST_ID,
7426 .model_id = ST_M25P16,
7427 .total_size = 2048,
7428 .page_size = 256,
7429 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007430 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007431 .probe = probe_spi_rdid,
7432 .probe_timing = TIMING_ZERO,
7433 .block_erasers =
7434 {
7435 {
7436 .eraseblocks = { {64 * 1024, 32} },
7437 .block_erase = spi_block_erase_d8,
7438 }, {
7439 .eraseblocks = { {2 * 1024 * 1024, 1} },
7440 .block_erase = spi_block_erase_c7,
7441 }
7442 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007443 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007444 .unlock = spi_disable_blockprotect,
7445 .write = spi_chip_write_256,
7446 .read = spi_chip_read,
7447 .voltage = {2700, 3600},
7448 },
7449
7450 {
7451 .vendor = "Micron/Numonyx/ST",
7452 .name = "M25P32",
7453 .bustype = BUS_SPI,
7454 .manufacture_id = ST_ID,
7455 .model_id = ST_M25P32,
7456 .total_size = 4096,
7457 .page_size = 256,
7458 .feature_bits = FEATURE_WRSR_WREN,
7459 .tested = TEST_OK_PREW,
7460 .probe = probe_spi_rdid,
7461 .probe_timing = TIMING_ZERO,
7462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = { {64 * 1024, 64} },
7466 .block_erase = spi_block_erase_d8,
7467 }, {
7468 .eraseblocks = { {4 * 1024 * 1024, 1} },
7469 .block_erase = spi_block_erase_c7,
7470 }
7471 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007472 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007473 .unlock = spi_disable_blockprotect,
7474 .write = spi_chip_write_256,
7475 .read = spi_chip_read,
7476 .voltage = {2700, 3600},
7477 },
7478
7479 {
7480 .vendor = "Micron/Numonyx/ST",
7481 .name = "M25P64",
7482 .bustype = BUS_SPI,
7483 .manufacture_id = ST_ID,
7484 .model_id = ST_M25P64,
7485 .total_size = 8192,
7486 .page_size = 256,
7487 .feature_bits = FEATURE_WRSR_WREN,
7488 .tested = TEST_OK_PREW,
7489 .probe = probe_spi_rdid,
7490 .probe_timing = TIMING_ZERO,
7491 .block_erasers =
7492 {
7493 {
7494 .eraseblocks = { {64 * 1024, 128} },
7495 .block_erase = spi_block_erase_d8,
7496 }, {
7497 .eraseblocks = { {8 * 1024 * 1024, 1} },
7498 .block_erase = spi_block_erase_c7,
7499 }
7500 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007501 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007502 .unlock = spi_disable_blockprotect,
7503 .write = spi_chip_write_256,
7504 .read = spi_chip_read,
7505 .voltage = {2700, 3600},
7506 },
7507
7508 {
7509 .vendor = "Micron/Numonyx/ST",
7510 .name = "M25P128",
7511 .bustype = BUS_SPI,
7512 .manufacture_id = ST_ID,
7513 .model_id = ST_M25P128,
7514 .total_size = 16384,
7515 .page_size = 256,
7516 .feature_bits = FEATURE_WRSR_WREN,
7517 .tested = TEST_OK_PREW,
7518 .probe = probe_spi_rdid,
7519 .probe_timing = TIMING_ZERO,
7520 .block_erasers =
7521 {
7522 {
7523 .eraseblocks = { {256 * 1024, 64} },
7524 .block_erase = spi_block_erase_d8,
7525 }, {
7526 .eraseblocks = { {16 * 1024 * 1024, 1} },
7527 .block_erase = spi_block_erase_c7,
7528 }
7529 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007530 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007531 .unlock = spi_disable_blockprotect,
7532 .write = spi_chip_write_256,
7533 .read = spi_chip_read,
7534 .voltage = {2700, 3600},
7535 },
7536
7537 {
7538 .vendor = "Micron/Numonyx/ST",
7539 .name = "M25PE10",
7540 .bustype = BUS_SPI,
7541 .manufacture_id = ST_ID,
7542 .model_id = ST_M25PE10,
7543 .total_size = 128,
7544 .page_size = 256,
7545 .feature_bits = FEATURE_WRSR_WREN,
7546 .tested = TEST_UNTESTED,
7547 .probe = probe_spi_rdid,
7548 .probe_timing = TIMING_ZERO,
7549 .block_erasers =
7550 {
7551 {
7552 .eraseblocks = { {4 * 1024, 32} },
7553 .block_erase = spi_block_erase_20,
7554 }, {
7555 .eraseblocks = { {64 * 1024, 2} },
7556 .block_erase = spi_block_erase_d8,
7557 }, {
7558 .eraseblocks = { {128 * 1024, 1} },
7559 .block_erase = spi_block_erase_c7,
7560 }
7561 },
7562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7563 .unlock = spi_disable_blockprotect,
7564 .write = spi_chip_write_256,
7565 .read = spi_chip_read,
7566 .voltage = {2700, 3600},
7567 },
7568
7569 {
7570 .vendor = "Micron/Numonyx/ST",
7571 .name = "M25PE20",
7572 .bustype = BUS_SPI,
7573 .manufacture_id = ST_ID,
7574 .model_id = ST_M25PE20,
7575 .total_size = 256,
7576 .page_size = 256,
7577 .feature_bits = FEATURE_WRSR_WREN,
7578 .tested = TEST_UNTESTED,
7579 .probe = probe_spi_rdid,
7580 .probe_timing = TIMING_ZERO,
7581 .block_erasers =
7582 {
7583 {
7584 .eraseblocks = { {4 * 1024, 64} },
7585 .block_erase = spi_block_erase_20,
7586 }, {
7587 .eraseblocks = { {64 * 1024, 4} },
7588 .block_erase = spi_block_erase_d8,
7589 }, {
7590 .eraseblocks = { {256 * 1024, 1} },
7591 .block_erase = spi_block_erase_c7,
7592 }
7593 },
7594 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7595 .unlock = spi_disable_blockprotect,
7596 .write = spi_chip_write_256,
7597 .read = spi_chip_read,
7598 .voltage = {2700, 3600},
7599 },
7600
7601 {
7602 .vendor = "Micron/Numonyx/ST",
7603 .name = "M25PE40",
7604 .bustype = BUS_SPI,
7605 .manufacture_id = ST_ID,
7606 .model_id = ST_M25PE40,
7607 .total_size = 512,
7608 .page_size = 256,
7609 .feature_bits = FEATURE_WRSR_WREN,
7610 .tested = TEST_UNTESTED,
7611 .probe = probe_spi_rdid,
7612 .probe_timing = TIMING_ZERO,
7613 .block_erasers =
7614 {
7615 {
7616 .eraseblocks = { {4 * 1024, 128} },
7617 .block_erase = spi_block_erase_20,
7618 }, {
7619 .eraseblocks = { {64 * 1024, 8} },
7620 .block_erase = spi_block_erase_d8,
7621 }, {
7622 .eraseblocks = { {512 * 1024, 1} },
7623 .block_erase = spi_block_erase_c7,
7624 }
7625 },
7626 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7627 .unlock = spi_disable_blockprotect,
7628 .write = spi_chip_write_256,
7629 .read = spi_chip_read,
7630 .voltage = {2700, 3600},
7631 },
7632
7633 {
7634 .vendor = "Micron/Numonyx/ST",
7635 .name = "M25PE80",
7636 .bustype = BUS_SPI,
7637 .manufacture_id = ST_ID,
7638 .model_id = ST_M25PE80,
7639 .total_size = 1024,
7640 .page_size = 256,
7641 .feature_bits = FEATURE_WRSR_WREN,
7642 .tested = TEST_OK_PREW,
7643 .probe = probe_spi_rdid,
7644 .probe_timing = TIMING_ZERO,
7645 .block_erasers =
7646 {
7647 {
7648 .eraseblocks = { {4 * 1024, 256} },
7649 .block_erase = spi_block_erase_20,
7650 }, {
7651 .eraseblocks = { {64 * 1024, 16} },
7652 .block_erase = spi_block_erase_d8,
7653 }, {
7654 .eraseblocks = { {1024 * 1024, 1} },
7655 .block_erase = spi_block_erase_c7,
7656 }
7657 },
7658 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7659 .unlock = spi_disable_blockprotect,
7660 .write = spi_chip_write_256,
7661 .read = spi_chip_read,
7662 .voltage = {2700, 3600},
7663 },
7664
7665 {
7666 .vendor = "Micron/Numonyx/ST",
7667 .name = "M25PE16",
7668 .bustype = BUS_SPI,
7669 .manufacture_id = ST_ID,
7670 .model_id = ST_M25PE16,
7671 .total_size = 2048,
7672 .page_size = 256,
7673 .feature_bits = FEATURE_WRSR_WREN,
7674 .tested = TEST_UNTESTED,
7675 .probe = probe_spi_rdid,
7676 .probe_timing = TIMING_ZERO,
7677 .block_erasers =
7678 {
7679 {
7680 .eraseblocks = { {4 * 1024, 512} },
7681 .block_erase = spi_block_erase_20,
7682 }, {
7683 .eraseblocks = { {64 * 1024, 32} },
7684 .block_erase = spi_block_erase_d8,
7685 }, {
7686 .eraseblocks = { {2 * 1024 * 1024, 1} },
7687 .block_erase = spi_block_erase_c7,
7688 }
7689 },
7690 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7691 .unlock = spi_disable_blockprotect,
7692 .write = spi_chip_write_256,
7693 .read = spi_chip_read,
7694 .voltage = {2700, 3600},
7695 },
7696
7697 {
7698 .vendor = "Micron/Numonyx/ST",
7699 .name = "M25PX80",
7700 .bustype = BUS_SPI,
7701 .manufacture_id = ST_ID,
7702 .model_id = ST_M25PX80,
7703 .total_size = 1024,
7704 .page_size = 256,
7705 /* OTP: 64B total; read 0x4B, write 0x42 */
7706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7707 .tested = TEST_OK_PREW,
7708 .probe = probe_spi_rdid,
7709 .probe_timing = TIMING_ZERO,
7710 .block_erasers = {
7711 {
7712 .eraseblocks = { { 4 * 1024, 256 } },
7713 .block_erase = spi_block_erase_20,
7714 }, {
7715 .eraseblocks = { {64 * 1024, 16} },
7716 .block_erase = spi_block_erase_d8,
7717 }, {
7718 .eraseblocks = { {1024 * 1024, 1} },
7719 .block_erase = spi_block_erase_c7,
7720 }
7721 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007722 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007723 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7724 .write = spi_chip_write_256,
7725 .read = spi_chip_read,
7726 .voltage = {2700, 3600},
7727 },
7728
7729 {
7730 .vendor = "Micron/Numonyx/ST",
7731 .name = "M25PX16",
7732 .bustype = BUS_SPI,
7733 .manufacture_id = ST_ID,
7734 .model_id = ST_M25PX16,
7735 .total_size = 2048,
7736 .page_size = 256,
7737 /* OTP: 64B total; read 0x4B; write 0x42 */
7738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7739 .tested = TEST_OK_PREW,
7740 .probe = probe_spi_rdid,
7741 .probe_timing = TIMING_ZERO,
7742 .block_erasers =
7743 {
7744 {
7745 .eraseblocks = { { 4 * 1024, 512 } },
7746 .block_erase = spi_block_erase_20,
7747 }, {
7748 .eraseblocks = { {64 * 1024, 32} },
7749 .block_erase = spi_block_erase_d8,
7750 }, {
7751 .eraseblocks = { {2 * 1024 * 1024, 1} },
7752 .block_erase = spi_block_erase_c7,
7753 }
7754 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007755 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007756 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7757 .write = spi_chip_write_256,
7758 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007759 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007760 },
7761
7762 {
7763 .vendor = "Micron/Numonyx/ST",
7764 .name = "M25PX32",
7765 .bustype = BUS_SPI,
7766 .manufacture_id = ST_ID,
7767 .model_id = ST_M25PX32,
7768 .total_size = 4096,
7769 .page_size = 256,
7770 /* OTP: 64B total; read 0x4B; write 0x42 */
7771 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7772 .tested = TEST_OK_PRE,
7773 .probe = probe_spi_rdid,
7774 .probe_timing = TIMING_ZERO,
7775 .block_erasers =
7776 {
7777 {
7778 .eraseblocks = { { 4 * 1024, 1024 } },
7779 .block_erase = spi_block_erase_20,
7780 }, {
7781 .eraseblocks = { {64 * 1024, 64} },
7782 .block_erase = spi_block_erase_d8,
7783 }, {
7784 .eraseblocks = { {4 * 1024 * 1024, 1} },
7785 .block_erase = spi_block_erase_c7,
7786 }
7787 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007788 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007789 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7790 .write = spi_chip_write_256,
7791 .read = spi_chip_read,
7792 .voltage = {2700, 3600},
7793 },
7794
7795 {
7796 .vendor = "Micron/Numonyx/ST",
7797 .name = "M25PX64",
7798 .bustype = BUS_SPI,
7799 .manufacture_id = ST_ID,
7800 .model_id = ST_M25PX64,
7801 .total_size = 8192,
7802 .page_size = 256,
7803 /* OTP: 64B total; read 0x4B; write 0x42 */
7804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007805 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007806 .probe = probe_spi_rdid,
7807 .probe_timing = TIMING_ZERO,
7808 .block_erasers =
7809 {
7810 {
7811 .eraseblocks = { { 4 * 1024, 2048 } },
7812 .block_erase = spi_block_erase_20,
7813 }, {
7814 .eraseblocks = { {64 * 1024, 128} },
7815 .block_erase = spi_block_erase_d8,
7816 }, {
7817 .eraseblocks = { {8 * 1024 * 1024, 1} },
7818 .block_erase = spi_block_erase_c7,
7819 }
7820 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007821 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007822 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7823 .write = spi_chip_write_256,
7824 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007825 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007826 },
7827
7828 {
7829 .vendor = "Micron/Numonyx/ST",
7830 .name = "M45PE10",
7831 .bustype = BUS_SPI,
7832 .manufacture_id = ST_ID,
7833 .model_id = ST_M45PE10,
7834 .total_size = 128,
7835 .page_size = 256,
7836 .tested = TEST_UNTESTED,
7837 .probe = probe_spi_rdid,
7838 .probe_timing = TIMING_ZERO,
7839 .block_erasers = {
7840 {
7841 .eraseblocks = { {256, 512} },
7842 .block_erase = spi_block_erase_db,
7843 }, {
7844 .eraseblocks = { {64 * 1024, 2} },
7845 .block_erase = spi_block_erase_d8,
7846 }
7847 },
7848 .printlock = spi_prettyprint_status_register_default_welwip,
7849 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7850 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7851 .read = spi_chip_read, /* Fast read (0x0B) supported */
7852 .voltage = {2700, 3600},
7853 },
7854
7855 {
7856 .vendor = "Micron/Numonyx/ST",
7857 .name = "M45PE20",
7858 .bustype = BUS_SPI,
7859 .manufacture_id = ST_ID,
7860 .model_id = ST_M45PE20,
7861 .total_size = 256,
7862 .page_size = 256,
7863 .tested = TEST_UNTESTED,
7864 .probe = probe_spi_rdid,
7865 .probe_timing = TIMING_ZERO,
7866 .block_erasers = {
7867 {
7868 .eraseblocks = { {256, 1024} },
7869 .block_erase = spi_block_erase_db,
7870 }, {
7871 .eraseblocks = { {64 * 1024, 4} },
7872 .block_erase = spi_block_erase_d8,
7873 }
7874 },
7875 .printlock = spi_prettyprint_status_register_default_welwip,
7876 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7877 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7878 .read = spi_chip_read, /* Fast read (0x0B) supported */
7879 .voltage = {2700, 3600},
7880 },
7881
7882 {
7883 .vendor = "Micron/Numonyx/ST",
7884 .name = "M45PE40",
7885 .bustype = BUS_SPI,
7886 .manufacture_id = ST_ID,
7887 .model_id = ST_M45PE40,
7888 .total_size = 512,
7889 .page_size = 256,
7890 .tested = TEST_UNTESTED,
7891 .probe = probe_spi_rdid,
7892 .probe_timing = TIMING_ZERO,
7893 .block_erasers = {
7894 {
7895 .eraseblocks = { {256, 2048} },
7896 .block_erase = spi_block_erase_db,
7897 }, {
7898 .eraseblocks = { {64 * 1024, 8} },
7899 .block_erase = spi_block_erase_d8,
7900 }
7901 },
7902 .printlock = spi_prettyprint_status_register_default_welwip,
7903 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7904 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7905 .read = spi_chip_read, /* Fast read (0x0B) supported */
7906 .voltage = {2700, 3600},
7907 },
7908
7909 {
7910 .vendor = "Micron/Numonyx/ST",
7911 .name = "M45PE80",
7912 .bustype = BUS_SPI,
7913 .manufacture_id = ST_ID,
7914 .model_id = ST_M45PE80,
7915 .total_size = 1024,
7916 .page_size = 256,
7917 .tested = TEST_UNTESTED,
7918 .probe = probe_spi_rdid,
7919 .probe_timing = TIMING_ZERO,
7920 .block_erasers = {
7921 {
7922 .eraseblocks = { {256, 4096} },
7923 .block_erase = spi_block_erase_db,
7924 }, {
7925 .eraseblocks = { {64 * 1024, 16} },
7926 .block_erase = spi_block_erase_d8,
7927 }
7928 },
7929 .printlock = spi_prettyprint_status_register_default_welwip,
7930 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7931 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7932 .read = spi_chip_read, /* Fast read (0x0B) supported */
7933 .voltage = {2700, 3600},
7934 },
7935
7936 {
7937 .vendor = "Micron/Numonyx/ST",
7938 .name = "M45PE16",
7939 .bustype = BUS_SPI,
7940 .manufacture_id = ST_ID,
7941 .model_id = ST_M45PE16,
7942 .total_size = 2048,
7943 .page_size = 256,
7944 .tested = TEST_UNTESTED,
7945 .probe = probe_spi_rdid,
7946 .probe_timing = TIMING_ZERO,
7947 .block_erasers = {
7948 {
7949 .eraseblocks = { {256, 8192} },
7950 .block_erase = spi_block_erase_db,
7951 }, {
7952 .eraseblocks = { {64 * 1024, 32} },
7953 .block_erase = spi_block_erase_d8,
7954 }
7955 },
7956 .printlock = spi_prettyprint_status_register_default_welwip,
7957 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7958 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7959 .read = spi_chip_read, /* Fast read (0x0B) supported */
7960 .voltage = {2700, 3600},
7961 },
7962
7963 {
7964 .vendor = "Micron/Numonyx/ST",
7965 .name = "N25Q016",
7966 .bustype = BUS_SPI,
7967 .manufacture_id = ST_ID,
7968 .model_id = ST_N25Q016__1E,
7969 .total_size = 2048,
7970 .page_size = 256,
7971 /* supports SFDP */
7972 /* OTP: 64B total; read 0x4B, write 0x42 */
7973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7974 .tested = TEST_UNTESTED,
7975 .probe = probe_spi_rdid,
7976 .probe_timing = TIMING_ZERO,
7977 .block_erasers =
7978 {
7979 {
7980 .eraseblocks = { {4 * 1024, 512} },
7981 .block_erase = spi_block_erase_20,
7982 }, {
7983 .eraseblocks = { {32 * 1024, 64} },
7984 .block_erase = spi_block_erase_52,
7985 }, {
7986 .eraseblocks = { {64 * 1024, 32} },
7987 .block_erase = spi_block_erase_d8,
7988 }, {
7989 .eraseblocks = { {2 * 1024 * 1024, 1} },
7990 .block_erase = spi_block_erase_c7,
7991 }
7992 },
7993 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7994 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7995 .write = spi_chip_write_256, /* Multi I/O supported */
7996 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7997 .voltage = {1700, 2000},
7998 },
7999
8000 {
8001 .vendor = "Micron/Numonyx/ST",
8002 .name = "N25Q032..1E",
8003 .bustype = BUS_SPI,
8004 .manufacture_id = ST_ID,
8005 .model_id = ST_N25Q032__1E,
8006 .total_size = 4096,
8007 .page_size = 256,
8008 /* supports SFDP */
8009 /* OTP: 64B total; read 0x4B, write 0x42 */
8010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8011 .tested = TEST_UNTESTED,
8012 .probe = probe_spi_rdid,
8013 .probe_timing = TIMING_ZERO,
8014 .block_erasers =
8015 {
8016 {
8017 .eraseblocks = { {4 * 1024, 1024} },
8018 .block_erase = spi_block_erase_20,
8019 }, {
8020 .eraseblocks = { {64 * 1024, 64} },
8021 .block_erase = spi_block_erase_d8,
8022 }, {
8023 .eraseblocks = { {4 * 1024 * 1024, 1} },
8024 .block_erase = spi_block_erase_c7,
8025 }
8026 },
8027 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8028 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8029 .write = spi_chip_write_256, /* Multi I/O supported */
8030 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8031 .voltage = {1700, 2000},
8032 },
8033
8034 {
8035 .vendor = "Micron/Numonyx/ST",
8036 .name = "N25Q032..3E",
8037 .bustype = BUS_SPI,
8038 .manufacture_id = ST_ID,
8039 .model_id = ST_N25Q032__3E,
8040 .total_size = 4096,
8041 .page_size = 256,
8042 /* supports SFDP */
8043 /* OTP: 64B total; read 0x4B, write 0x42 */
8044 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8045 .tested = TEST_OK_PREW,
8046 .probe = probe_spi_rdid,
8047 .probe_timing = TIMING_ZERO,
8048 .block_erasers =
8049 {
8050 {
8051 .eraseblocks = { {4 * 1024, 1024} },
8052 .block_erase = spi_block_erase_20,
8053 }, {
8054 .eraseblocks = { {64 * 1024, 64} },
8055 .block_erase = spi_block_erase_d8,
8056 }, {
8057 .eraseblocks = { {4 * 1024 * 1024, 1} },
8058 .block_erase = spi_block_erase_c7,
8059 }
8060 },
8061 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8062 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8063 .write = spi_chip_write_256, /* Multi I/O supported */
8064 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8065 .voltage = {2700, 3600},
8066 },
8067
8068 {
8069 .vendor = "Micron/Numonyx/ST",
8070 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8071 .bustype = BUS_SPI,
8072 .manufacture_id = ST_ID,
8073 .model_id = ST_N25Q064__1E,
8074 .total_size = 8192,
8075 .page_size = 256,
8076 /* supports SFDP */
8077 /* OTP: 64B total; read 0x4B, write 0x42 */
8078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008079 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008080 .probe = probe_spi_rdid,
8081 .probe_timing = TIMING_ZERO,
8082 .block_erasers =
8083 {
8084 {
8085 .eraseblocks = { {4 * 1024, 2048 } },
8086 .block_erase = spi_block_erase_20,
8087 }, {
8088 .eraseblocks = { {64 * 1024, 128} },
8089 .block_erase = spi_block_erase_d8,
8090 }, {
8091 .eraseblocks = { {8 * 1024 * 1024, 1} },
8092 .block_erase = spi_block_erase_c7,
8093 }
8094 },
8095 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8096 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8097 .write = spi_chip_write_256, /* Multi I/O supported */
8098 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8099 .voltage = {1700, 2000},
8100 },
8101
8102 {
8103 .vendor = "Micron/Numonyx/ST",
8104 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8105 .bustype = BUS_SPI,
8106 .manufacture_id = ST_ID,
8107 .model_id = ST_N25Q064__3E,
8108 .total_size = 8192,
8109 .page_size = 256,
8110 /* supports SFDP */
8111 /* OTP: 64B total; read 0x4B, write 0x42 */
8112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8113 .tested = TEST_OK_PREW,
8114 .probe = probe_spi_rdid,
8115 .probe_timing = TIMING_ZERO,
8116 .block_erasers =
8117 {
8118 {
8119 .eraseblocks = { {4 * 1024, 2048 } },
8120 .block_erase = spi_block_erase_20,
8121 }, {
8122 .eraseblocks = { {64 * 1024, 128} },
8123 .block_erase = spi_block_erase_d8,
8124 }, {
8125 .eraseblocks = { {8 * 1024 * 1024, 1} },
8126 .block_erase = spi_block_erase_c7,
8127 }
8128 },
8129 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8130 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8131 .write = spi_chip_write_256, /* Multi I/O supported */
8132 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8133 .voltage = {2700, 3600},
8134 },
8135
8136 {
8137 .vendor = "Micron/Numonyx/ST",
8138 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8139 .bustype = BUS_SPI,
8140 .manufacture_id = ST_ID,
8141 .model_id = ST_N25Q128__1E,
8142 .total_size = 16384,
8143 .page_size = 256,
8144 /* supports SFDP */
8145 /* OTP: 64B total; read 0x4B, write 0x42 */
8146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8147 .tested = TEST_UNTESTED,
8148 .probe = probe_spi_rdid,
8149 .probe_timing = TIMING_ZERO,
8150 .block_erasers = {
8151 {
8152 .eraseblocks = { {4 * 1024, 4096 } },
8153 .block_erase = spi_block_erase_20,
8154 }, {
8155 .eraseblocks = { {64 * 1024, 256} },
8156 .block_erase = spi_block_erase_d8,
8157 }, {
8158 .eraseblocks = { {16384 * 1024, 1} },
8159 .block_erase = spi_block_erase_c7,
8160 }
8161 },
8162 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8163 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8164 .write = spi_chip_write_256, /* Multi I/O supported */
8165 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8166 .voltage = {1700, 2000},
8167 },
8168
8169 {
8170 .vendor = "Micron/Numonyx/ST",
8171 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8172 .bustype = BUS_SPI,
8173 .manufacture_id = ST_ID,
8174 .model_id = ST_N25Q128__3E,
8175 .total_size = 16384,
8176 .page_size = 256,
8177 /* supports SFDP */
8178 /* OTP: 64B total; read 0x4B, write 0x42 */
8179 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8180 .tested = TEST_OK_PREW,
8181 .probe = probe_spi_rdid,
8182 .probe_timing = TIMING_ZERO,
8183 .block_erasers = {
8184 {
8185 .eraseblocks = { {4 * 1024, 4096 } },
8186 .block_erase = spi_block_erase_20,
8187 }, {
8188 .eraseblocks = { {64 * 1024, 256} },
8189 .block_erase = spi_block_erase_d8,
8190 }, {
8191 .eraseblocks = { {16384 * 1024, 1} },
8192 .block_erase = spi_block_erase_c7,
8193 }
8194 },
8195 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8196 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8197 .write = spi_chip_write_256, /* Multi I/O supported */
8198 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8199 .voltage = {2700, 3600},
8200 },
8201
8202 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008203 .vendor = "MoselVitelic",
8204 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008205 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008206 .manufacture_id = SYNCMOS_MVC_ID,
8207 .model_id = MVC_V29C51000B,
8208 .total_size = 64,
8209 .page_size = 512,
8210 .feature_bits = FEATURE_EITHER_RESET,
8211 .tested = TEST_UNTESTED,
8212 .probe = probe_jedec,
8213 .probe_timing = TIMING_ZERO,
8214 .block_erasers =
8215 {
8216 {
8217 .eraseblocks = { {512, 128} },
8218 .block_erase = erase_sector_jedec,
8219 }, {
8220 .eraseblocks = { {64 * 1024, 1} },
8221 .block_erase = erase_chip_block_jedec,
8222 },
8223 },
8224 .write = write_jedec_1,
8225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008226 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008227 },
8228
8229 {
8230 .vendor = "MoselVitelic",
8231 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008232 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008233 .manufacture_id = SYNCMOS_MVC_ID,
8234 .model_id = MVC_V29C51000T,
8235 .total_size = 64,
8236 .page_size = 512,
8237 .feature_bits = FEATURE_EITHER_RESET,
8238 .tested = TEST_UNTESTED,
8239 .probe = probe_jedec,
8240 .probe_timing = TIMING_ZERO,
8241 .block_erasers =
8242 {
8243 {
8244 .eraseblocks = { {512, 128} },
8245 .block_erase = erase_sector_jedec,
8246 }, {
8247 .eraseblocks = { {64 * 1024, 1} },
8248 .block_erase = erase_chip_block_jedec,
8249 },
8250 },
8251 .write = write_jedec_1,
8252 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008253 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008254 },
8255
8256 {
8257 .vendor = "MoselVitelic",
8258 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008259 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008260 .manufacture_id = SYNCMOS_MVC_ID,
8261 .model_id = MVC_V29C51400B,
8262 .total_size = 512,
8263 .page_size = 1024,
8264 .feature_bits = FEATURE_EITHER_RESET,
8265 .tested = TEST_UNTESTED,
8266 .probe = probe_jedec,
8267 .probe_timing = TIMING_ZERO,
8268 .block_erasers =
8269 {
8270 {
8271 .eraseblocks = { {1024, 512} },
8272 .block_erase = erase_sector_jedec,
8273 }, {
8274 .eraseblocks = { {512 * 1024, 1} },
8275 .block_erase = erase_chip_block_jedec,
8276 },
8277 },
8278 .write = write_jedec_1,
8279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008280 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008281 },
8282
8283 {
8284 .vendor = "MoselVitelic",
8285 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008286 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008287 .manufacture_id = SYNCMOS_MVC_ID,
8288 .model_id = MVC_V29C51400T,
8289 .total_size = 512,
8290 .page_size = 1024,
8291 .feature_bits = FEATURE_EITHER_RESET,
8292 .tested = TEST_UNTESTED,
8293 .probe = probe_jedec,
8294 .probe_timing = TIMING_ZERO,
8295 .block_erasers =
8296 {
8297 {
8298 .eraseblocks = { {1024, 512} },
8299 .block_erase = erase_sector_jedec,
8300 }, {
8301 .eraseblocks = { {512 * 1024, 1} },
8302 .block_erase = erase_chip_block_jedec,
8303 },
8304 },
8305 .write = write_jedec_1,
8306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008307 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008308 },
8309
8310 {
8311 .vendor = "MoselVitelic",
8312 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008313 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008314 .manufacture_id = SYNCMOS_MVC_ID,
8315 .model_id = MVC_V29LC51000,
8316 .total_size = 64,
8317 .page_size = 512,
8318 .feature_bits = FEATURE_EITHER_RESET,
8319 .tested = TEST_UNTESTED,
8320 .probe = probe_jedec,
8321 .probe_timing = TIMING_ZERO,
8322 .block_erasers =
8323 {
8324 {
8325 .eraseblocks = { {512, 128} },
8326 .block_erase = erase_sector_jedec,
8327 }, {
8328 .eraseblocks = { {64 * 1024, 1} },
8329 .block_erase = erase_chip_block_jedec,
8330 },
8331 },
8332 .write = write_jedec_1,
8333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008334 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008335 },
8336
8337 {
8338 .vendor = "MoselVitelic",
8339 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008340 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008341 .manufacture_id = SYNCMOS_MVC_ID,
8342 .model_id = MVC_V29LC51001,
8343 .total_size = 128,
8344 .page_size = 512,
8345 .feature_bits = FEATURE_EITHER_RESET,
8346 .tested = TEST_UNTESTED,
8347 .probe = probe_jedec,
8348 .probe_timing = TIMING_ZERO,
8349 .block_erasers =
8350 {
8351 {
8352 .eraseblocks = { {512, 256} },
8353 .block_erase = erase_sector_jedec,
8354 }, {
8355 .eraseblocks = { {128 * 1024, 1} },
8356 .block_erase = erase_chip_block_jedec,
8357 },
8358 },
8359 .write = write_jedec_1,
8360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008361 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008362 },
8363
8364 {
8365 .vendor = "MoselVitelic",
8366 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008367 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008368 .manufacture_id = SYNCMOS_MVC_ID,
8369 .model_id = MVC_V29LC51002,
8370 .total_size = 256,
8371 .page_size = 512,
8372 .feature_bits = FEATURE_EITHER_RESET,
8373 .tested = TEST_UNTESTED,
8374 .probe = probe_jedec,
8375 .probe_timing = TIMING_ZERO,
8376 .block_erasers =
8377 {
8378 {
8379 .eraseblocks = { {512, 512} },
8380 .block_erase = erase_sector_jedec,
8381 }, {
8382 .eraseblocks = { {256 * 1024, 1} },
8383 .block_erase = erase_chip_block_jedec,
8384 },
8385 },
8386 .write = write_jedec_1,
8387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008388 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008389 },
8390
8391 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008392 .vendor = "Nantronics",
8393 .name = "N25S10",
8394 .bustype = BUS_SPI,
8395 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8396 .model_id = NANTRONICS_N25S10,
8397 .total_size = 128,
8398 .page_size = 256,
8399 .feature_bits = FEATURE_WRSR_WREN,
8400 .tested = TEST_UNTESTED,
8401 .probe = probe_spi_rdid,
8402 .probe_timing = TIMING_ZERO,
8403 .block_erasers =
8404 {
8405 {
8406 .eraseblocks = { {4 * 1024, 32} },
8407 .block_erase = spi_block_erase_20,
8408 }, {
8409 .eraseblocks = { {4 * 1024, 32} },
8410 .block_erase = spi_block_erase_d7,
8411 }, {
8412 .eraseblocks = { {32 * 1024, 4} },
8413 .block_erase = spi_block_erase_52,
8414 }, {
8415 .eraseblocks = { {64 * 1024, 2} },
8416 .block_erase = spi_block_erase_d8,
8417 }, {
8418 .eraseblocks = { {128 * 1024, 1} },
8419 .block_erase = spi_block_erase_60,
8420 }, {
8421 .eraseblocks = { {128 * 1024, 1} },
8422 .block_erase = spi_block_erase_c7,
8423 }
8424 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008425 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008426 .unlock = spi_disable_blockprotect_bp3_srwd,
8427 .write = spi_chip_write_256,
8428 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8429 .voltage = {2700, 3600},
8430 },
8431
8432 {
8433 .vendor = "Nantronics",
8434 .name = "N25S20",
8435 .bustype = BUS_SPI,
8436 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8437 .model_id = NANTRONICS_N25S20,
8438 .total_size = 256,
8439 .page_size = 256,
8440 .feature_bits = FEATURE_WRSR_WREN,
8441 .tested = TEST_UNTESTED,
8442 .probe = probe_spi_rdid,
8443 .probe_timing = TIMING_ZERO,
8444 .block_erasers =
8445 {
8446 {
8447 .eraseblocks = { {4 * 1024, 64} },
8448 .block_erase = spi_block_erase_20,
8449 }, {
8450 .eraseblocks = { {4 * 1024, 64} },
8451 .block_erase = spi_block_erase_d7,
8452 }, {
8453 .eraseblocks = { {32 * 1024, 8} },
8454 .block_erase = spi_block_erase_52,
8455 }, {
8456 .eraseblocks = { {64 * 1024, 4} },
8457 .block_erase = spi_block_erase_d8,
8458 }, {
8459 .eraseblocks = { {256 * 1024, 1} },
8460 .block_erase = spi_block_erase_60,
8461 }, {
8462 .eraseblocks = { {256 * 1024, 1} },
8463 .block_erase = spi_block_erase_c7,
8464 }
8465 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008466 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008467 .unlock = spi_disable_blockprotect_bp3_srwd,
8468 .write = spi_chip_write_256,
8469 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8470 .voltage = {2700, 3600},
8471 },
8472
8473 {
8474 .vendor = "Nantronics",
8475 .name = "N25S40",
8476 .bustype = BUS_SPI,
8477 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8478 .model_id = NANTRONICS_N25S40,
8479 .total_size = 512,
8480 .page_size = 256,
8481 .feature_bits = FEATURE_WRSR_WREN,
8482 .tested = TEST_UNTESTED,
8483 .probe = probe_spi_rdid,
8484 .probe_timing = TIMING_ZERO,
8485 .block_erasers =
8486 {
8487 {
8488 .eraseblocks = { {4 * 1024, 128} },
8489 .block_erase = spi_block_erase_20,
8490 }, {
8491 .eraseblocks = { {4 * 1024, 128} },
8492 .block_erase = spi_block_erase_d7,
8493 }, {
8494 .eraseblocks = { {32 * 1024, 16} },
8495 .block_erase = spi_block_erase_52,
8496 }, {
8497 .eraseblocks = { {64 * 1024, 8} },
8498 .block_erase = spi_block_erase_d8,
8499 }, {
8500 .eraseblocks = { {512 * 1024, 1} },
8501 .block_erase = spi_block_erase_60,
8502 }, {
8503 .eraseblocks = { {512 * 1024, 1} },
8504 .block_erase = spi_block_erase_c7,
8505 }
8506 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008507 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008508 .unlock = spi_disable_blockprotect_bp3_srwd,
8509 .write = spi_chip_write_256,
8510 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8511 .voltage = {2700, 3600},
8512 },
8513
8514 {
8515 .vendor = "Nantronics",
8516 .name = "N25S80",
8517 .bustype = BUS_SPI,
8518 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8519 .model_id = NANTRONICS_N25S80,
8520 .total_size = 1024,
8521 .page_size = 256,
8522 .feature_bits = FEATURE_WRSR_WREN,
8523 .tested = TEST_UNTESTED,
8524 .probe = probe_spi_rdid,
8525 .probe_timing = TIMING_ZERO,
8526 .block_erasers =
8527 {
8528 {
8529 .eraseblocks = { {4 * 1024, 256} },
8530 .block_erase = spi_block_erase_20,
8531 }, {
8532 .eraseblocks = { {32 * 1024, 32} },
8533 .block_erase = spi_block_erase_52,
8534 }, {
8535 .eraseblocks = { {64 * 1024, 16} },
8536 .block_erase = spi_block_erase_d8,
8537 }, {
8538 .eraseblocks = { {1024 * 1024, 1} },
8539 .block_erase = spi_block_erase_60,
8540 }, {
8541 .eraseblocks = { {1024 * 1024, 1} },
8542 .block_erase = spi_block_erase_c7,
8543 }
8544 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008545 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008546 .unlock = spi_disable_blockprotect_bp3_srwd,
8547 .write = spi_chip_write_256,
8548 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8549 .voltage = {2700, 3600},
8550 },
8551
8552 {
8553 .vendor = "Nantronics",
8554 .name = "N25S16",
8555 .bustype = BUS_SPI,
8556 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8557 .model_id = NANTRONICS_N25S16,
8558 .total_size = 2048,
8559 .page_size = 256,
8560 .feature_bits = FEATURE_WRSR_WREN,
8561 .tested = TEST_UNTESTED,
8562 .probe = probe_spi_rdid,
8563 .probe_timing = TIMING_ZERO,
8564 .block_erasers =
8565 {
8566 {
8567 .eraseblocks = { {4 * 1024, 512} },
8568 .block_erase = spi_block_erase_20,
8569 }, {
8570 .eraseblocks = { {64 * 1024, 32} },
8571 .block_erase = spi_block_erase_d8,
8572 }, {
8573 .eraseblocks = { {2048 * 1024, 1} },
8574 .block_erase = spi_block_erase_60,
8575 }, {
8576 .eraseblocks = { {2048 * 1024, 1} },
8577 .block_erase = spi_block_erase_c7,
8578 }
8579 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008580 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008581 .unlock = spi_disable_blockprotect_bp3_srwd,
8582 .write = spi_chip_write_256,
8583 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8584 .voltage = {2700, 3600},
8585 },
8586
8587 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008588 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008589 .name = "Pm25LD256C",
8590 .bustype = BUS_SPI,
8591 .manufacture_id = PMC_ID,
8592 .model_id = PMC_PM25LD256C,
8593 .total_size = 32,
8594 .page_size = 256,
8595 .feature_bits = FEATURE_WRSR_WREN,
8596 .tested = TEST_UNTESTED,
8597 .probe = probe_spi_rdid,
8598 .probe_timing = TIMING_ZERO,
8599 .block_erasers =
8600 {
8601 {
8602 .eraseblocks = { {4 * 1024, 8} },
8603 .block_erase = spi_block_erase_20,
8604 }, {
8605 .eraseblocks = { {4 * 1024, 8} },
8606 .block_erase = spi_block_erase_d7,
8607 }, {
8608 .eraseblocks = { {32 * 1024, 1} },
8609 .block_erase = spi_block_erase_d8,
8610 }, {
8611 .eraseblocks = { {32 * 1024, 1} },
8612 .block_erase = spi_block_erase_60,
8613 }, {
8614 .eraseblocks = { {32 * 1024, 1} },
8615 .block_erase = spi_block_erase_c7,
8616 }
8617 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008618 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008619 .unlock = spi_disable_blockprotect,
8620 .write = spi_chip_write_256,
8621 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8622 .voltage = {2700, 3600},
8623 },
8624 {
8625 .vendor = "PMC",
8626 .name = "Pm25LD512(C)",
8627 .bustype = BUS_SPI,
8628 .manufacture_id = PMC_ID,
8629 .model_id = PMC_PM25LD512,
8630 .total_size = 64,
8631 .page_size = 256,
8632 .feature_bits = FEATURE_WRSR_WREN,
8633 .tested = TEST_OK_PREW,
8634 .probe = probe_spi_rdid,
8635 .probe_timing = TIMING_ZERO,
8636 .block_erasers =
8637 {
8638 {
8639 .eraseblocks = { {4 * 1024, 16} },
8640 .block_erase = spi_block_erase_20,
8641 }, {
8642 .eraseblocks = { {4 * 1024, 16} },
8643 .block_erase = spi_block_erase_d7,
8644 }, {
8645 .eraseblocks = { {32 * 1024, 2} },
8646 .block_erase = spi_block_erase_d8,
8647 }, {
8648 .eraseblocks = { {64 * 1024, 1} },
8649 .block_erase = spi_block_erase_60,
8650 }, {
8651 .eraseblocks = { {64 * 1024, 1} },
8652 .block_erase = spi_block_erase_c7,
8653 }
8654 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008655 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008656 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8657 .write = spi_chip_write_256,
8658 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8659 .voltage = {2300, 3600},
8660 },
8661
8662 {
8663 .vendor = "PMC",
8664 .name = "Pm25LD010(C)",
8665 .bustype = BUS_SPI,
8666 .manufacture_id = PMC_ID,
8667 .model_id = PMC_PM25LD010,
8668 .total_size = 128,
8669 .page_size = 256,
8670 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008671 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008672 .probe = probe_spi_rdid,
8673 .probe_timing = TIMING_ZERO,
8674 .block_erasers =
8675 {
8676 {
8677 .eraseblocks = { {4 * 1024, 32} },
8678 .block_erase = spi_block_erase_20,
8679 }, {
8680 .eraseblocks = { {4 * 1024, 32} },
8681 .block_erase = spi_block_erase_d7,
8682 }, {
8683 .eraseblocks = { {32 * 1024, 4} },
8684 .block_erase = spi_block_erase_d8,
8685 }, {
8686 .eraseblocks = { {128 * 1024, 1} },
8687 .block_erase = spi_block_erase_60,
8688 }, {
8689 .eraseblocks = { {128 * 1024, 1} },
8690 .block_erase = spi_block_erase_c7,
8691 }
8692 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008693 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008694 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8695 .write = spi_chip_write_256,
8696 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8697 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8698 },
8699
8700 {
8701 .vendor = "PMC",
8702 .name = "Pm25LD020(C)",
8703 .bustype = BUS_SPI,
8704 .manufacture_id = PMC_ID,
8705 .model_id = PMC_PM25LD020,
8706 .total_size = 256,
8707 .page_size = 256,
8708 .feature_bits = FEATURE_WRSR_WREN,
8709 .tested = TEST_UNTESTED,
8710 .probe = probe_spi_rdid,
8711 .probe_timing = TIMING_ZERO,
8712 .block_erasers =
8713 {
8714 {
8715 .eraseblocks = { {4 * 1024, 64} },
8716 .block_erase = spi_block_erase_20,
8717 }, {
8718 .eraseblocks = { {4 * 1024, 64} },
8719 .block_erase = spi_block_erase_d7,
8720 }, {
8721 .eraseblocks = { {64 * 1024, 4} },
8722 .block_erase = spi_block_erase_d8,
8723 }, {
8724 .eraseblocks = { {256 * 1024, 1} },
8725 .block_erase = spi_block_erase_60,
8726 }, {
8727 .eraseblocks = { {256 * 1024, 1} },
8728 .block_erase = spi_block_erase_c7,
8729 }
8730 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008731 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008732 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8733 .write = spi_chip_write_256,
8734 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8735 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8736 },
8737
8738 {
8739 .vendor = "PMC",
8740 .name = "Pm25LD040(C)",
8741 .bustype = BUS_SPI,
8742 .manufacture_id = PMC_ID,
8743 .model_id = PMC_PM25LV040,
8744 .total_size = 512,
8745 .page_size = 256,
8746 .feature_bits = FEATURE_WRSR_WREN,
8747 .tested = TEST_UNTESTED,
8748 .probe = probe_spi_rdid,
8749 .probe_timing = TIMING_ZERO,
8750 .block_erasers =
8751 {
8752 {
8753 .eraseblocks = { {4 * 1024, 128} },
8754 .block_erase = spi_block_erase_20,
8755 }, {
8756 .eraseblocks = { {4 * 1024, 128} },
8757 .block_erase = spi_block_erase_d7,
8758 }, {
8759 .eraseblocks = { {64 * 1024, 8} },
8760 .block_erase = spi_block_erase_d8,
8761 }, {
8762 .eraseblocks = { {512 * 1024, 1} },
8763 .block_erase = spi_block_erase_60,
8764 }, {
8765 .eraseblocks = { {512 * 1024, 1} },
8766 .block_erase = spi_block_erase_c7,
8767 }
8768 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008769 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008770 .unlock = spi_disable_blockprotect,
8771 .write = spi_chip_write_256,
8772 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8773 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8774 },
8775
8776{
8777 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008778 .name = "Pm25LV512(A)",
8779 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008780 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008781 .model_id = PMC_PM25LV512,
8782 .total_size = 64,
8783 .page_size = 256,
8784 .feature_bits = FEATURE_WRSR_WREN,
8785 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00008786 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008787 .probe_timing = TIMING_ZERO,
8788 .block_erasers =
8789 {
8790 {
8791 .eraseblocks = { {4 * 1024, 16} },
8792 .block_erase = spi_block_erase_d7,
8793 }, {
8794 .eraseblocks = { {32 * 1024, 2} },
8795 .block_erase = spi_block_erase_d8,
8796 }, {
8797 .eraseblocks = { {64 * 1024, 1} },
8798 .block_erase = spi_block_erase_c7,
8799 }
8800 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008801 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008802 .unlock = spi_disable_blockprotect,
8803 .write = spi_chip_write_256,
8804 .read = spi_chip_read, /* Fast read (0x0B) supported */
8805 .voltage = {2700, 3600},
8806 },
8807
8808 {
8809 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008811 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008812 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008813 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008814 .total_size = 128,
8815 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008816 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00008817 .tested = TEST_OK_PREW,
8818 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008819 .probe_timing = TIMING_ZERO,
8820 .block_erasers =
8821 {
8822 {
8823 .eraseblocks = { {4 * 1024, 32} },
8824 .block_erase = spi_block_erase_d7,
8825 }, {
8826 .eraseblocks = { {32 * 1024, 4} },
8827 .block_erase = spi_block_erase_d8,
8828 }, {
8829 .eraseblocks = { {128 * 1024, 1} },
8830 .block_erase = spi_block_erase_c7,
8831 }
8832 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008833 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008834 .unlock = spi_disable_blockprotect,
8835 .write = spi_chip_write_256,
8836 .read = spi_chip_read, /* Fast read (0x0B) supported */
8837 .voltage = {2700, 3600},
8838 },
8839
8840 {
8841 .vendor = "PMC",
8842 .name = "Pm25LV010A",
8843 .bustype = BUS_SPI,
8844 .manufacture_id = PMC_ID,
8845 .model_id = PMC_PM25LV010,
8846 .total_size = 128,
8847 .page_size = 256,
8848 .feature_bits = FEATURE_WRSR_WREN,
8849 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008851 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008852 .block_erasers =
8853 {
8854 {
8855 .eraseblocks = { {4 * 1024, 32} },
8856 .block_erase = spi_block_erase_d7,
8857 }, {
8858 .eraseblocks = { {32 * 1024, 4} },
8859 .block_erase = spi_block_erase_d8,
8860 }, {
8861 .eraseblocks = { {128 * 1024, 1} },
8862 .block_erase = spi_block_erase_c7,
8863 }
8864 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008865 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008866 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008867 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008868 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008869 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008870 },
8871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008872 {
8873 .vendor = "PMC",
8874 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008875 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008876 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008877 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008878 .total_size = 256,
8879 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008880 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008881 .tested = TEST_UNTESTED,
8882 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008883 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008884 .block_erasers =
8885 {
8886 {
8887 .eraseblocks = { {4 * 1024, 64} },
8888 .block_erase = spi_block_erase_d7,
8889 }, {
8890 .eraseblocks = { {64 * 1024, 4} },
8891 .block_erase = spi_block_erase_d8,
8892 }, {
8893 .eraseblocks = { {256 * 1024, 1} },
8894 .block_erase = spi_block_erase_c7,
8895 }
8896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008897 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008898 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008899 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008900 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008901 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008902 },
8903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008904 {
8905 .vendor = "PMC",
8906 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008907 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008908 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008909 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008910 .total_size = 512,
8911 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008912 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008913 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008914 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008915 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008916 .block_erasers =
8917 {
8918 {
8919 .eraseblocks = { {4 * 1024, 128} },
8920 .block_erase = spi_block_erase_d7,
8921 }, {
8922 .eraseblocks = { {64 * 1024, 8} },
8923 .block_erase = spi_block_erase_d8,
8924 }, {
8925 .eraseblocks = { {512 * 1024, 1} },
8926 .block_erase = spi_block_erase_c7,
8927 }
8928 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008929 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008930 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008931 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008932 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008933 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008934 },
8935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008936 {
8937 .vendor = "PMC",
8938 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008939 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008940 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008941 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008942 .total_size = 1024,
8943 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008944 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008945 .tested = TEST_UNTESTED,
8946 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008947 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008948 .block_erasers =
8949 {
8950 {
8951 .eraseblocks = { {4 * 1024, 256} },
8952 .block_erase = spi_block_erase_d7,
8953 }, {
8954 .eraseblocks = { {4 * 1024, 256} },
8955 .block_erase = spi_block_erase_20,
8956 }, {
8957 .eraseblocks = { {64 * 1024, 16} },
8958 .block_erase = spi_block_erase_d8,
8959 }, {
8960 .eraseblocks = { {1024 * 1024, 1} },
8961 .block_erase = spi_block_erase_60,
8962 }, {
8963 .eraseblocks = { {1024 * 1024, 1} },
8964 .block_erase = spi_block_erase_c7,
8965 }
8966 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008967 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008968 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008969 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008970 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008971 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008972 },
8973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008974 {
8975 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008976 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008977 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008978 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008979 .model_id = PMC_PM25LV016B,
8980 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008982 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008983 .tested = TEST_UNTESTED,
8984 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008985 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008986 .block_erasers =
8987 {
8988 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008989 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008990 .block_erase = spi_block_erase_d7,
8991 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008992 .eraseblocks = { {4 * 1024, 512} },
8993 .block_erase = spi_block_erase_20,
8994 }, {
8995 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008996 .block_erase = spi_block_erase_d8,
8997 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008998 .eraseblocks = { {2 * 1024 * 1024, 1} },
8999 .block_erase = spi_block_erase_60,
9000 }, {
9001 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009002 .block_erase = spi_block_erase_c7,
9003 }
9004 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009005 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009006 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009007 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009008 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009009 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009010 },
9011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009012 {
9013 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009014 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009015 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009016 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009017 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009018 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009019 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009020 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009021 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009022 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009023 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009024 .block_erasers =
9025 {
9026 {
9027 .eraseblocks = {
9028 {128 * 1024, 1},
9029 {96 * 1024, 1},
9030 {8 * 1024, 2},
9031 {16 * 1024, 1},
9032 },
Sean Nelson35727f72010-01-28 23:55:12 +00009033 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009034 }, {
9035 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009036 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009037 },
9038 },
Sean Nelson35727f72010-01-28 23:55:12 +00009039 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009041 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009042 },
9043
9044 {
9045 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009046 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009047 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009048 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009049 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009050 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009051 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009052 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009053 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009054 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009055 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009056 .block_erasers =
9057 {
9058 {
9059 .eraseblocks = {
9060 {16 * 1024, 1},
9061 {8 * 1024, 2},
9062 {96 * 1024, 1},
9063 {128 * 1024, 1},
9064 },
Sean Nelson35727f72010-01-28 23:55:12 +00009065 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009066 }, {
9067 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009068 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009069 },
9070 },
Sean Nelson35727f72010-01-28 23:55:12 +00009071 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009073 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009074 },
9075
9076 {
9077 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009078 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009079 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009080 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009081 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009082 .total_size = 128,
9083 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009084 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009085 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009086 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009087 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009088 .block_erasers =
9089 {
9090 {
9091 .eraseblocks = { {4 * 1024, 32} },
9092 .block_erase = erase_sector_jedec,
9093 }, {
9094 .eraseblocks = { {64 * 1024, 2} },
9095 .block_erase = erase_block_jedec,
9096 }, {
9097 .eraseblocks = { {128 * 1024, 1} },
9098 .block_erase = erase_chip_block_jedec,
9099 }
9100 },
Sean Nelson35727f72010-01-28 23:55:12 +00009101 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009103 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009104 },
9105
9106 {
9107 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009108 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009109 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009110 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009111 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009112 .total_size = 256,
9113 .page_size = 4096,
9114 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9115 .tested = TEST_UNTESTED,
9116 .probe = probe_jedec,
9117 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9118 .block_erasers =
9119 {
9120 {
9121 .eraseblocks = { {4 * 1024, 64} },
9122 .block_erase = erase_sector_jedec,
9123 }, {
9124 .eraseblocks = { {64 * 1024, 4} },
9125 .block_erase = erase_block_jedec,
9126 }, {
9127 .eraseblocks = { {256 * 1024, 1} },
9128 .block_erase = erase_chip_block_jedec,
9129 }
9130 },
9131 .write = write_jedec_1,
9132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009133 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009134 },
9135
9136 {
9137 .vendor = "PMC",
9138 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009139 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009140 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009141 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009142 .total_size = 512,
9143 .page_size = 4096,
9144 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009145 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009146 .probe = probe_jedec,
9147 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9148 .block_erasers =
9149 {
9150 {
9151 .eraseblocks = { {4 * 1024, 128} },
9152 .block_erase = erase_sector_jedec,
9153 }, {
9154 .eraseblocks = { {64 * 1024, 8} },
9155 .block_erase = erase_block_jedec,
9156 }, {
9157 .eraseblocks = { {512 * 1024, 1} },
9158 .block_erase = erase_chip_block_jedec,
9159 }
9160 },
9161 .write = write_jedec_1,
9162 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009163 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009164 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009165
9166 {
9167 .vendor = "PMC",
9168 .name = "Pm39LV512",
9169 .bustype = BUS_PARALLEL,
9170 .manufacture_id = PMC_ID_NOPREFIX,
9171 .model_id = PMC_PM39LV512,
9172 .total_size = 64,
9173 .page_size = 4096,
9174 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9175 .tested = TEST_OK_PREW,
9176 .probe = probe_jedec,
9177 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9178 .block_erasers =
9179 {
9180 {
9181 .eraseblocks = { {4 * 1024, 16} },
9182 .block_erase = erase_sector_jedec,
9183 }, {
9184 .eraseblocks = { {64 * 1024, 1} },
9185 .block_erase = erase_block_jedec,
9186 }, {
9187 .eraseblocks = { {64 * 1024, 1} },
9188 .block_erase = erase_chip_block_jedec,
9189 }
9190 },
9191 .write = write_jedec_1,
9192 .read = read_memmapped,
9193 .voltage = {2700, 3600},
9194 },
9195
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009196 {
9197 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009198 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009199 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009200 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009201 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009202 .total_size = 256,
9203 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009204 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00009205 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009206 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009207 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009208 .block_erasers =
9209 {
9210 {
9211 .eraseblocks = { {4 * 1024, 64} },
9212 .block_erase = erase_sector_jedec,
9213 }, {
9214 .eraseblocks = { {16 * 1024, 16} },
9215 .block_erase = erase_block_jedec,
9216 }, {
9217 .eraseblocks = { {256 * 1024, 1} },
9218 .block_erase = erase_chip_block_jedec,
9219 }
9220 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009221 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009222 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009224 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009225 },
9226
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009227 {
9228 .vendor = "PMC",
9229 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009230 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009231 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009232 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009233 .total_size = 512,
9234 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009235 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009236 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009237 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009238 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009239 .block_erasers =
9240 {
9241 {
9242 .eraseblocks = { {4 * 1024, 128} },
9243 .block_erase = erase_sector_jedec,
9244 }, {
9245 .eraseblocks = { {64 * 1024, 8} },
9246 .block_erase = erase_block_jedec,
9247 }, {
9248 .eraseblocks = { {512 * 1024, 1} },
9249 .block_erase = erase_chip_block_jedec,
9250 }
9251 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009252 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009255 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009256 },
9257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009258 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009259 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009260 .name = "LE25FW106",
9261 .bustype = BUS_SPI,
9262 .manufacture_id = SANYO_ID,
9263 .model_id = SANYO_LE25FW106,
9264 .total_size = 128,
9265 .page_size = 256,
9266 .feature_bits = FEATURE_WRSR_WREN,
9267 .tested = TEST_OK_PREW,
9268 .probe = probe_spi_res2,
9269 .probe_timing = TIMING_ZERO,
9270 .block_erasers = {
9271 {
9272 .eraseblocks = { {2 * 1024, 64} },
9273 .block_erase = spi_block_erase_d7,
9274 }, {
9275 .eraseblocks = { {32 * 1024, 4} },
9276 .block_erase = spi_block_erase_d8,
9277 }, {
9278 .eraseblocks = { {128 * 1024, 1} },
9279 .block_erase = spi_block_erase_c7,
9280 }
9281 },
9282 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9283 .unlock = spi_disable_blockprotect_bp1_srwd,
9284 .write = spi_chip_write_256,
9285 .read = spi_chip_read,
9286 .voltage = {2700, 3600},
9287 },
9288
9289 {
9290 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009291 .name = "LE25FW406A",
9292 .bustype = BUS_SPI,
9293 .manufacture_id = SANYO_ID,
9294 .model_id = SANYO_LE25FW406A,
9295 .total_size = 512,
9296 .page_size = 256,
9297 .feature_bits = FEATURE_WRSR_WREN,
9298 .tested = TEST_OK_PREW,
9299 .probe = probe_spi_res2,
9300 .probe_timing = TIMING_ZERO,
9301 .block_erasers = {
9302 {
9303 .eraseblocks = { {4 * 1024, 128} },
9304 .block_erase = spi_block_erase_d7,
9305 }, {
9306 .eraseblocks = { {64 * 1024, 8} },
9307 .block_erase = spi_block_erase_d8,
9308 }, {
9309 .eraseblocks = { {512 * 1024, 1} },
9310 .block_erase = spi_block_erase_c7,
9311 }
9312 },
9313 .printlock = spi_prettyprint_status_register_plain,
9314 .unlock = spi_disable_blockprotect,
9315 .write = spi_chip_write_256,
9316 .read = spi_chip_read,
9317 .voltage = {2700, 3600},
9318 },
9319
9320 {
9321 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009322 .name = "LE25FU406B",
9323 .bustype = BUS_SPI,
9324 .manufacture_id = SANYO_ID,
9325 .model_id = SANYO_LE25FU406B,
9326 .total_size = 512,
9327 .page_size = 256,
9328 .feature_bits = FEATURE_WRSR_WREN,
9329 .tested = TEST_OK_PREW,
9330 .probe = probe_spi_res2,
9331 .probe_timing = TIMING_ZERO,
9332 .block_erasers = {
9333 {
9334 .eraseblocks = { {4 * 1024, 128} },
9335 .block_erase = spi_block_erase_d7,
9336 }, {
9337 .eraseblocks = { {64 * 1024, 8} },
9338 .block_erase = spi_block_erase_d8,
9339 }, {
9340 .eraseblocks = { {512 * 1024, 1} },
9341 .block_erase = spi_block_erase_c7,
9342 }
9343 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009344 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009345 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9346 .write = spi_chip_write_256,
9347 .read = spi_chip_read,
9348 .voltage = {2300, 3600},
9349 },
9350
9351 {
9352 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009353 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009354 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009355 .manufacture_id = SANYO_ID,
9356 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009357 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009358 .page_size = 256,
9359 .tested = TEST_UNTESTED,
9360 .probe = probe_spi_rdid,
9361 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009362 .block_erasers =
9363 {
9364 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009365 .eraseblocks = { {256, 1024} },
9366 .block_erase = spi_block_erase_db,
9367 }, {
9368 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009369 .block_erase = spi_block_erase_d8,
9370 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009371 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009372 .block_erase = spi_block_erase_c7,
9373 }
9374 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009375 .printlock = spi_prettyprint_status_register_default_welwip,
9376 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009377 .write = spi_chip_write_256,
9378 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009379 .voltage = {2700, 3600},
9380 },
9381
9382 {
9383 .vendor = "Sanyo",
9384 .name = "LE25FW403A",
9385 .bustype = BUS_SPI,
9386 .manufacture_id = SANYO_ID,
9387 .model_id = SANYO_LE25FW403A,
9388 .total_size = 512,
9389 .page_size = 256,
9390 .tested = TEST_UNTESTED,
9391 .probe = probe_spi_rdid,
9392 .probe_timing = TIMING_ZERO,
9393 .block_erasers = {
9394 {
9395 .eraseblocks = { {256, 2 * 1024} },
9396 .block_erase = spi_block_erase_db,
9397 }, {
9398 .eraseblocks = { {64 * 1024, 8} },
9399 .block_erase = spi_block_erase_d8,
9400 }, {
9401 .eraseblocks = { {512 * 1024, 1} },
9402 .block_erase = spi_block_erase_c7,
9403 }
9404 },
9405 .printlock = spi_prettyprint_status_register_default_welwip,
9406 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9407 .write = spi_chip_write_256,
9408 .read = spi_chip_read,
9409 .voltage = {2700, 3600},
9410 },
9411
9412 {
9413 .vendor = "Sanyo",
9414 .name = "LE25FW418A",
9415 .bustype = BUS_SPI,
9416 .manufacture_id = SANYO_ID,
9417 .model_id = SANYO_LE25FW418A,
9418 .total_size = 512,
9419 .page_size = 256,
9420 .feature_bits = FEATURE_WRSR_WREN,
9421 .tested = TEST_UNTESTED,
9422 .probe = probe_spi_res2,
9423 .probe_timing = TIMING_ZERO,
9424 .block_erasers = {
9425 {
9426 .eraseblocks = { {4 * 1024, 128} },
9427 .block_erase = spi_block_erase_d7,
9428 }, {
9429 .eraseblocks = { {64 * 1024, 8} },
9430 .block_erase = spi_block_erase_d8,
9431 }, {
9432 .eraseblocks = { {512 * 1024, 1} },
9433 .block_erase = spi_block_erase_c7,
9434 }
9435 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009436 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009437 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9438 .write = spi_chip_write_256,
9439 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9440 .voltage = {2700, 3600},
9441 },
9442
9443 {
9444 .vendor = "Sanyo",
9445 .name = "LE25FW806",
9446 .bustype = BUS_SPI,
9447 .manufacture_id = SANYO_ID,
9448 .model_id = SANYO_LE25FW806,
9449 .total_size = 1024,
9450 .page_size = 256,
9451 .feature_bits = FEATURE_WRSR_WREN,
9452 .tested = TEST_UNTESTED,
9453 .probe = probe_spi_res2,
9454 .probe_timing = TIMING_ZERO,
9455 .block_erasers = {
9456 {
9457 .eraseblocks = { {4 * 1024, 256} },
9458 .block_erase = spi_block_erase_20,
9459 }, {
9460 .eraseblocks = { {4 * 1024, 256} },
9461 .block_erase = spi_block_erase_d7,
9462 }, {
9463 .eraseblocks = { {64 * 1024, 16} },
9464 .block_erase = spi_block_erase_d8,
9465 }, {
9466 .eraseblocks = { {1024 * 1024, 1} },
9467 .block_erase = spi_block_erase_c7,
9468 }
9469 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009470 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009471 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9472 .write = spi_chip_write_256,
9473 .read = spi_chip_read,
9474 .voltage = {2700, 3600},
9475 },
9476
9477 {
9478 .vendor = "Sanyo",
9479 .name = "LE25FW808",
9480 .bustype = BUS_SPI,
9481 .manufacture_id = SANYO_ID,
9482 .model_id = SANYO_LE25FW808,
9483 .total_size = 1024,
9484 .page_size = 256,
9485 .feature_bits = FEATURE_WRSR_WREN,
9486 .tested = TEST_UNTESTED,
9487 .probe = probe_spi_res2,
9488 .probe_timing = TIMING_ZERO,
9489 .block_erasers = {
9490 {
9491 .eraseblocks = { {8 * 1024, 128} },
9492 .block_erase = spi_block_erase_d7,
9493 }, {
9494 .eraseblocks = { {64 * 1024, 16} },
9495 .block_erase = spi_block_erase_d8,
9496 }, {
9497 .eraseblocks = { {1024 * 1024, 1} },
9498 .block_erase = spi_block_erase_c7,
9499 }
9500 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009501 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009502 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9503 .write = spi_chip_write_256,
9504 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9505 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009506 },
9507
9508 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009509 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009510 .name = "LH28F008BJT-BTLZ1",
9511 .bustype = BUS_PARALLEL,
9512 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009513 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009514 .total_size = 1024,
9515 .page_size = 64 * 1024,
9516 .tested = TEST_OK_PREW,
9517 .probe = probe_82802ab,
9518 .probe_timing = TIMING_ZERO,
9519 .block_erasers =
9520 {
9521 {
9522 .eraseblocks = {
9523 {8 * 1024, 8},
9524 {64 * 1024, 15}
9525 },
9526 .block_erase = erase_block_82802ab,
9527 }, {
9528 .eraseblocks = { {1024 * 1024, 1} },
9529 .block_erase = erase_sector_49lfxxxc,
9530 }
9531 },
9532 .unlock = unlock_lh28f008bjt,
9533 .write = write_82802ab,
9534 .read = read_memmapped,
9535 .voltage = {2700, 3600},
9536 },
9537
9538 {
9539 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009540 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009541 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009542 .manufacture_id = SHARP_ID,
9543 .model_id = SHARP_LHF00L04,
9544 .total_size = 1024,
9545 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009546 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009547 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009548 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009549 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009550 .block_erasers =
9551 {
9552 {
9553 .eraseblocks = {
9554 {64 * 1024, 15},
9555 {8 * 1024, 8}
9556 },
Sean Nelson28accc22010-03-19 18:47:06 +00009557 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009558 }, {
9559 .eraseblocks = {
9560 {1024 * 1024, 1}
9561 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009562 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009563 },
9564 },
Sean Nelson28accc22010-03-19 18:47:06 +00009565 .unlock = unlock_82802ab,
9566 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009567 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009568 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009569 },
9570
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009571 {
9572 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009573 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009574 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009575 .manufacture_id = SPANSION_ID,
9576 .model_id = SPANSION_S25FL004A,
9577 .total_size = 512,
9578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009579 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009580 .tested = TEST_UNTESTED,
9581 .probe = probe_spi_rdid,
9582 .probe_timing = TIMING_ZERO,
9583 .block_erasers =
9584 {
9585 {
9586 .eraseblocks = { {64 * 1024, 8} },
9587 .block_erase = spi_block_erase_d8,
9588 }, {
9589 .eraseblocks = { {512 * 1024, 1} },
9590 .block_erase = spi_block_erase_c7,
9591 }
9592 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009593 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009594 .unlock = spi_disable_blockprotect,
9595 .write = spi_chip_write_256,
9596 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009597 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009598 },
9599
9600 {
9601 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009602 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009603 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009604 .manufacture_id = SPANSION_ID,
9605 .model_id = SPANSION_S25FL008A,
9606 .total_size = 1024,
9607 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009608 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009609 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009610 .probe = probe_spi_rdid,
9611 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009612 .block_erasers =
9613 {
9614 {
9615 .eraseblocks = { {64 * 1024, 16} },
9616 .block_erase = spi_block_erase_d8,
9617 }, {
9618 .eraseblocks = { {1024 * 1024, 1} },
9619 .block_erase = spi_block_erase_c7,
9620 }
9621 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009622 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009623 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009624 .write = spi_chip_write_256,
9625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009626 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009627 },
9628
9629 {
9630 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009631 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009632 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009633 .manufacture_id = SPANSION_ID,
9634 .model_id = SPANSION_S25FL016A,
9635 .total_size = 2048,
9636 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009637 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009638 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009640 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009641 .block_erasers =
9642 {
9643 {
9644 .eraseblocks = { {64 * 1024, 32} },
9645 .block_erase = spi_block_erase_d8,
9646 }, {
9647 .eraseblocks = { {2 * 1024 * 1024, 1} },
9648 .block_erase = spi_block_erase_c7,
9649 }
9650 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009651 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009652 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009653 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009654 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009655 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009656 },
9657
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009658 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009659 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009660 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009661 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009662 .manufacture_id = SPANSION_ID,
9663 .model_id = SPANSION_S25FL032A,
9664 .total_size = 4096,
9665 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009666 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009667 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009668 .probe = probe_spi_rdid,
9669 .probe_timing = TIMING_ZERO,
9670 .block_erasers =
9671 {
9672 {
9673 .eraseblocks = { {64 * 1024, 64} },
9674 .block_erase = spi_block_erase_d8,
9675 }, {
9676 .eraseblocks = { {4 * 1024 * 1024, 1} },
9677 .block_erase = spi_block_erase_c7,
9678 }
9679 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009680 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009681 .unlock = spi_disable_blockprotect,
9682 .write = spi_chip_write_256,
9683 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009684 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009685 },
9686
9687 {
9688 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009689 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009690 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009691 .manufacture_id = SPANSION_ID,
9692 .model_id = SPANSION_S25FL064A,
9693 .total_size = 8192,
9694 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009695 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009696 .tested = TEST_OK_PREW,
9697 .probe = probe_spi_rdid,
9698 .probe_timing = TIMING_ZERO,
9699 .block_erasers =
9700 {
9701 {
9702 .eraseblocks = { {64 * 1024, 128} },
9703 .block_erase = spi_block_erase_d8,
9704 }, {
9705 .eraseblocks = { {8 * 1024 * 1024, 1} },
9706 .block_erase = spi_block_erase_c7,
9707 }
9708 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009709 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009710 .unlock = spi_disable_blockprotect,
9711 .write = spi_chip_write_256,
9712 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009713 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009714 },
9715
9716 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009717 .vendor = "Spansion",
9718 .name = "S25FL204K",
9719 .bustype = BUS_SPI,
9720 .manufacture_id = SPANSION_ID,
9721 .model_id = SPANSION_S25FL204,
9722 .total_size = 512,
9723 .page_size = 256,
9724 .feature_bits = FEATURE_WRSR_WREN,
9725 .tested = TEST_UNTESTED,
9726 .probe = probe_spi_rdid,
9727 .probe_timing = TIMING_ZERO,
9728 .block_erasers = {
9729 {
9730 .eraseblocks = { {4 * 1024, 128} },
9731 .block_erase = spi_block_erase_20,
9732 }, {
9733 .eraseblocks = { {64 * 1024, 8} },
9734 .block_erase = spi_block_erase_d8,
9735 }, {
9736 .eraseblocks = { { 512 * 1024, 1} },
9737 .block_erase = spi_block_erase_60,
9738 }, {
9739 .eraseblocks = { { 512 * 1024, 1} },
9740 .block_erase = spi_block_erase_c7,
9741 }
9742 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009743 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009744 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9745 .write = spi_chip_write_256,
9746 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9747 .voltage = {2700, 3600},
9748 },
9749
9750 {
9751 .vendor = "Spansion",
9752 .name = "S25FL208K",
9753 .bustype = BUS_SPI,
9754 .manufacture_id = SPANSION_ID,
9755 .model_id = SPANSION_S25FL208,
9756 .total_size = 1024,
9757 .page_size = 256,
9758 .feature_bits = FEATURE_WRSR_WREN,
9759 .tested = TEST_UNTESTED,
9760 .probe = probe_spi_rdid,
9761 .probe_timing = TIMING_ZERO,
9762 .block_erasers = {
9763 {
9764 .eraseblocks = { {4 * 1024, 256} },
9765 .block_erase = spi_block_erase_20,
9766 }, {
9767 .eraseblocks = { {64 * 1024, 16} },
9768 .block_erase = spi_block_erase_d8,
9769 }, {
9770 .eraseblocks = { { 1024 * 1024, 1} },
9771 .block_erase = spi_block_erase_60,
9772 }, {
9773 .eraseblocks = { { 1024 * 1024, 1} },
9774 .block_erase = spi_block_erase_c7,
9775 }
9776 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009777 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009778 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9779 .write = spi_chip_write_256,
9780 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9781 .voltage = {2700, 3600},
9782 },
9783
9784 {
9785 .vendor = "Spansion",
9786 .name = "S25FL116K/S25FL216K",
9787 .bustype = BUS_SPI,
9788 .manufacture_id = SPANSION_ID,
9789 .model_id = SPANSION_S25FL216,
9790 .total_size = 2048,
9791 .page_size = 256,
9792 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9794 .tested = TEST_UNTESTED,
9795 .probe = probe_spi_rdid,
9796 .probe_timing = TIMING_ZERO,
9797 .block_erasers = {
9798 {
9799 .eraseblocks = { {4 * 1024, 512} },
9800 .block_erase = spi_block_erase_20,
9801 }, {
9802 .eraseblocks = { {64 * 1024, 32} },
9803 .block_erase = spi_block_erase_d8,
9804 }, {
9805 .eraseblocks = { { 2048 * 1024, 1} },
9806 .block_erase = spi_block_erase_60,
9807 }, {
9808 .eraseblocks = { { 2048 * 1024, 1} },
9809 .block_erase = spi_block_erase_c7,
9810 }
9811 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009812 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009813 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9814 .write = spi_chip_write_256,
9815 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9816 .voltage = {2700, 3600},
9817 },
9818
9819 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009820 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009821 .name = "S25FL132K",
9822 .bustype = BUS_SPI,
9823 .manufacture_id = SPANSION_ID,
9824 .model_id = SPANSION_S25FL132K,
9825 .total_size = 4096,
9826 .page_size = 256,
9827 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9829 .tested = TEST_UNTESTED,
9830 .probe = probe_spi_rdid,
9831 .probe_timing = TIMING_ZERO,
9832 .block_erasers = {
9833 {
9834 .eraseblocks = { {4 * 1024, 1024} },
9835 .block_erase = spi_block_erase_20,
9836 }, {
9837 .eraseblocks = { {64 * 1024, 64} },
9838 .block_erase = spi_block_erase_d8,
9839 }, {
9840 .eraseblocks = { { 4096 * 1024, 1} },
9841 .block_erase = spi_block_erase_60,
9842 }, {
9843 .eraseblocks = { { 4096 * 1024, 1} },
9844 .block_erase = spi_block_erase_c7,
9845 }
9846 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009847 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009848 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9849 .write = spi_chip_write_256,
9850 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9851 .voltage = {2700, 3600},
9852 },
9853
9854 {
9855 .vendor = "Spansion",
9856 .name = "S25FL164K",
9857 .bustype = BUS_SPI,
9858 .manufacture_id = SPANSION_ID,
9859 .model_id = SPANSION_S25FL164K,
9860 .total_size = 8192,
9861 .page_size = 256,
9862 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9864 .tested = TEST_OK_PREW,
9865 .probe = probe_spi_rdid,
9866 .probe_timing = TIMING_ZERO,
9867 .block_erasers = {
9868 {
9869 .eraseblocks = { {4 * 1024, 2048} },
9870 .block_erase = spi_block_erase_20,
9871 }, {
9872 .eraseblocks = { {64 * 1024, 128} },
9873 .block_erase = spi_block_erase_d8,
9874 }, {
9875 .eraseblocks = { { 8192 * 1024, 1} },
9876 .block_erase = spi_block_erase_60,
9877 }, {
9878 .eraseblocks = { { 8192 * 1024, 1} },
9879 .block_erase = spi_block_erase_c7,
9880 }
9881 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009882 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009883 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9884 .write = spi_chip_write_256,
9885 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9886 .voltage = {2700, 3600},
9887 },
9888
9889 {
9890 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009891 .name = "S25FL128S......0", /* uniform 256kB sectors */
9892 .bustype = BUS_SPI,
9893 .manufacture_id = SPANSION_ID,
9894 .model_id = SPANSION_S25FL128,
9895 .total_size = 16384,
9896 .page_size = 256,
9897 /* supports 4B addressing */
9898 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9900 .tested = TEST_UNTESTED,
9901 .probe = probe_spi_rdid,
9902 .probe_timing = TIMING_ZERO,
9903 .block_erasers = {
9904 {
9905 .eraseblocks = { {4 * 1024, 4096} },
9906 .block_erase = spi_block_erase_20,
9907 }, {
9908 .eraseblocks = { {256 * 1024, 64} },
9909 .block_erase = spi_block_erase_d8,
9910 }, {
9911 .eraseblocks = { { 16384 * 1024, 1} },
9912 .block_erase = spi_block_erase_60,
9913 }, {
9914 .eraseblocks = { { 16384 * 1024, 1} },
9915 .block_erase = spi_block_erase_c7,
9916 }
9917 },
9918 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9919 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9920 .write = spi_chip_write_256, /* Multi I/O supported */
9921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9922 .voltage = {2700, 3600},
9923 },
9924
9925 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009926 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009927 .name = "SST25LF020A",
9928 .bustype = BUS_SPI,
9929 .manufacture_id = SST_ID,
9930 .model_id = SST_SST25VF020_REMS,
9931 .total_size = 256,
9932 .page_size = 256,
9933 .feature_bits = FEATURE_WRSR_EWSR,
9934 .tested = TEST_OK_PREW,
9935 .probe = probe_spi_rems,
9936 .probe_timing = TIMING_ZERO,
9937 .block_erasers =
9938 {
9939 {
9940 .eraseblocks = { {4 * 1024, 64} },
9941 .block_erase = spi_block_erase_20,
9942 }, {
9943 .eraseblocks = { {32 * 1024, 8} },
9944 .block_erase = spi_block_erase_52,
9945 }, {
9946 .eraseblocks = { {256 * 1024, 1} },
9947 .block_erase = spi_block_erase_60,
9948 },
9949 },
9950 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9951 .unlock = spi_disable_blockprotect,
9952 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9953 .read = spi_chip_read, /* Fast read (0x0B) supported */
9954 .voltage = {2700, 3600},
9955 },
9956
9957 {
9958 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009959 .name = "SST25LF040A",
9960 .bustype = BUS_SPI,
9961 .manufacture_id = SST_ID,
9962 .model_id = SST_SST25VF040_REMS,
9963 .total_size = 512,
9964 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009965 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009966 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009967 .probe = probe_spi_res2,
9968 .probe_timing = TIMING_ZERO,
9969 .block_erasers =
9970 {
9971 {
9972 .eraseblocks = { {4 * 1024, 128} },
9973 .block_erase = spi_block_erase_20,
9974 }, {
9975 .eraseblocks = { {32 * 1024, 16} },
9976 .block_erase = spi_block_erase_52,
9977 }, {
9978 .eraseblocks = { {512 * 1024, 1} },
9979 .block_erase = spi_block_erase_60,
9980 },
9981 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009982 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009983 .unlock = spi_disable_blockprotect,
9984 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9985 .read = spi_chip_read,
9986 .voltage = {3000, 3600},
9987 },
9988
9989 {
9990 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009991 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009992 .bustype = BUS_SPI,
9993 .manufacture_id = SST_ID,
9994 .model_id = SST_SST25VF080_REMS,
9995 .total_size = 1024,
9996 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009997 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009998 .tested = TEST_UNTESTED,
9999 .probe = probe_spi_res2,
10000 .probe_timing = TIMING_ZERO,
10001 .block_erasers =
10002 {
10003 {
10004 .eraseblocks = { {4 * 1024, 256} },
10005 .block_erase = spi_block_erase_20,
10006 }, {
10007 .eraseblocks = { {32 * 1024, 32} },
10008 .block_erase = spi_block_erase_52,
10009 }, {
10010 .eraseblocks = { {1024 * 1024, 1} },
10011 .block_erase = spi_block_erase_60,
10012 },
10013 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010014 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010015 .unlock = spi_disable_blockprotect,
10016 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10017 .read = spi_chip_read,
10018 .voltage = {3000, 3600},
10019 },
10020
10021 {
10022 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000010023 .name = "SST25VF512A",
10024 .bustype = BUS_SPI,
10025 .manufacture_id = SST_ID,
10026 .model_id = SST_SST25VF512A_REMS,
10027 .total_size = 64,
10028 .page_size = 256,
10029 .feature_bits = FEATURE_WRSR_EWSR,
10030 .tested = TEST_OK_PREW,
10031 .probe = probe_spi_rems,
10032 .probe_timing = TIMING_ZERO,
10033 .block_erasers =
10034 {
10035 {
10036 .eraseblocks = { {4 * 1024, 16} },
10037 .block_erase = spi_block_erase_20,
10038 }, {
10039 .eraseblocks = { {32 * 1024, 2} },
10040 .block_erase = spi_block_erase_52,
10041 }, {
10042 .eraseblocks = { {32 * 1024, 2} },
10043 .block_erase = spi_block_erase_d8,
10044 }, {
10045 .eraseblocks = { {64 * 1024, 1} },
10046 .block_erase = spi_block_erase_60,
10047 }, {
10048 .eraseblocks = { {64 * 1024, 1} },
10049 .block_erase = spi_block_erase_c7,
10050 },
10051 },
10052 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10053 .unlock = spi_disable_blockprotect,
10054 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10055 .read = spi_chip_read, /* Fast read (0x0B) supported */
10056 .voltage = {2700, 3600},
10057 },
10058
10059 {
10060 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010061 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010062 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000010063 .manufacture_id = SST_ID,
10064 .model_id = SST_SST25VF010_REMS,
10065 .total_size = 128,
10066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010067 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010068 .tested = TEST_OK_PREW,
10069 .probe = probe_spi_rems,
10070 .probe_timing = TIMING_ZERO,
10071 .block_erasers =
10072 {
10073 {
10074 .eraseblocks = { {4 * 1024, 32} },
10075 .block_erase = spi_block_erase_20,
10076 }, {
10077 .eraseblocks = { {32 * 1024, 4} },
10078 .block_erase = spi_block_erase_52,
10079 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010080 .eraseblocks = { {32 * 1024, 4} },
10081 .block_erase = spi_block_erase_d8,
10082 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010083 .eraseblocks = { {128 * 1024, 1} },
10084 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010085 }, {
10086 .eraseblocks = { {128 * 1024, 1} },
10087 .block_erase = spi_block_erase_c7,
10088 },
10089 },
10090 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10091 .unlock = spi_disable_blockprotect,
10092 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10093 .read = spi_chip_read, /* Fast read (0x0B) supported */
10094 .voltage = {2700, 3600},
10095 },
10096
10097 {
10098 .vendor = "SST",
10099 .name = "SST25VF020",
10100 .bustype = BUS_SPI,
10101 .manufacture_id = SST_ID,
10102 .model_id = SST_SST25VF020_REMS,
10103 .total_size = 256,
10104 .page_size = 256,
10105 .feature_bits = FEATURE_WRSR_EWSR,
10106 .tested = TEST_UNTESTED,
10107 .probe = probe_spi_rems,
10108 .probe_timing = TIMING_ZERO,
10109 .block_erasers =
10110 {
10111 {
10112 .eraseblocks = { {4 * 1024, 64} },
10113 .block_erase = spi_block_erase_20,
10114 }, {
10115 .eraseblocks = { {32 * 1024, 8} },
10116 .block_erase = spi_block_erase_52,
10117 }, {
10118 .eraseblocks = { {256 * 1024, 1} },
10119 .block_erase = spi_block_erase_60,
10120 },
10121 },
10122 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10123 .unlock = spi_disable_blockprotect,
10124 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10125 .read = spi_chip_read, /* only */
10126 .voltage = {2700, 3600},
10127 },
10128
10129 {
10130 .vendor = "SST",
10131 .name = "SST25VF020B",
10132 .bustype = BUS_SPI,
10133 .manufacture_id = SST_ID,
10134 .model_id = SST_SST25VF020B,
10135 .total_size = 256,
10136 .page_size = 256,
10137 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010138 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000010139 .probe = probe_spi_rdid,
10140 .probe_timing = TIMING_ZERO,
10141 .block_erasers =
10142 {
10143 {
10144 .eraseblocks = { {4 * 1024, 64} },
10145 .block_erase = spi_block_erase_20,
10146 }, {
10147 .eraseblocks = { {32 * 1024, 8} },
10148 .block_erase = spi_block_erase_52,
10149 }, {
10150 .eraseblocks = { {64 * 1024, 4} },
10151 .block_erase = spi_block_erase_d8,
10152 }, {
10153 .eraseblocks = { {256 * 1024, 1} },
10154 .block_erase = spi_block_erase_60,
10155 }, {
10156 .eraseblocks = { {256 * 1024, 1} },
10157 .block_erase = spi_block_erase_c7,
10158 },
10159 },
10160 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
10161 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
10162 .write = spi_aai_write, /* AAI supported (0xAD) */
10163 .read = spi_chip_read, /* Fast read (0x0B) supported */
10164 .voltage = {2700, 3600},
10165 },
10166
10167 {
10168 .vendor = "SST",
10169 .name = "SST25VF040",
10170 .bustype = BUS_SPI,
10171 .manufacture_id = SST_ID,
10172 .model_id = SST_SST25VF040_REMS,
10173 .total_size = 512,
10174 .page_size = 256,
10175 .feature_bits = FEATURE_WRSR_EWSR,
10176 .tested = TEST_OK_PR,
10177 .probe = probe_spi_rems,
10178 .probe_timing = TIMING_ZERO,
10179 .block_erasers =
10180 {
10181 {
10182 .eraseblocks = { {4 * 1024, 128} },
10183 .block_erase = spi_block_erase_20,
10184 }, {
10185 .eraseblocks = { {32 * 1024, 16} },
10186 .block_erase = spi_block_erase_52,
10187 }, {
10188 .eraseblocks = { {512 * 1024, 1} },
10189 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000010190 },
10191 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010192 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000010193 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000010194 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10195 .read = spi_chip_read,
10196 .voltage = {2700, 3600},
10197 },
10198
10199 {
10200 .vendor = "SST",
10201 .name = "SST25VF040B",
10202 .bustype = BUS_SPI,
10203 .manufacture_id = SST_ID,
10204 .model_id = SST_SST25VF040B,
10205 .total_size = 512,
10206 .page_size = 256,
10207 .feature_bits = FEATURE_WRSR_EWSR,
10208 .tested = TEST_OK_PREW,
10209 .probe = probe_spi_rdid,
10210 .probe_timing = TIMING_ZERO,
10211 .block_erasers =
10212 {
10213 {
10214 .eraseblocks = { {4 * 1024, 128} },
10215 .block_erase = spi_block_erase_20,
10216 }, {
10217 .eraseblocks = { {32 * 1024, 16} },
10218 .block_erase = spi_block_erase_52,
10219 }, {
10220 .eraseblocks = { {64 * 1024, 8} },
10221 .block_erase = spi_block_erase_d8,
10222 }, {
10223 .eraseblocks = { {512 * 1024, 1} },
10224 .block_erase = spi_block_erase_60,
10225 }, {
10226 .eraseblocks = { {512 * 1024, 1} },
10227 .block_erase = spi_block_erase_c7,
10228 },
10229 },
10230 .printlock = spi_prettyprint_status_register_sst25vf040b,
10231 .unlock = spi_disable_blockprotect,
10232 .write = spi_aai_write, /* AAI supported (0xAD) */
10233 .read = spi_chip_read, /* Fast read (0x0B) supported */
10234 .voltage = {2700, 3600},
10235 },
10236
10237 {
10238 .vendor = "SST",
10239 .name = "SST25VF040B.REMS",
10240 .bustype = BUS_SPI,
10241 .manufacture_id = SST_ID,
10242 .model_id = SST_SST25VF040B_REMS,
10243 .total_size = 512,
10244 .page_size = 256,
10245 .feature_bits = FEATURE_WRSR_EWSR,
10246 .tested = TEST_OK_PREW,
10247 .probe = probe_spi_rems,
10248 .probe_timing = TIMING_ZERO,
10249 .block_erasers =
10250 {
10251 {
10252 .eraseblocks = { {4 * 1024, 128} },
10253 .block_erase = spi_block_erase_20,
10254 }, {
10255 .eraseblocks = { {32 * 1024, 16} },
10256 .block_erase = spi_block_erase_52,
10257 }, {
10258 .eraseblocks = { {64 * 1024, 8} },
10259 .block_erase = spi_block_erase_d8,
10260 }, {
10261 .eraseblocks = { {512 * 1024, 1} },
10262 .block_erase = spi_block_erase_60,
10263 }, {
10264 .eraseblocks = { {512 * 1024, 1} },
10265 .block_erase = spi_block_erase_c7,
10266 },
10267 },
10268 .printlock = spi_prettyprint_status_register_sst25vf040b,
10269 .unlock = spi_disable_blockprotect,
10270 .write = spi_aai_write,
10271 .read = spi_chip_read,
10272 .voltage = {2700, 3600},
10273 },
10274
10275 {
10276 .vendor = "SST",
10277 .name = "SST25VF080B",
10278 .bustype = BUS_SPI,
10279 .manufacture_id = SST_ID,
10280 .model_id = SST_SST25VF080B,
10281 .total_size = 1024,
10282 .page_size = 256,
10283 .feature_bits = FEATURE_WRSR_EWSR,
10284 .tested = TEST_OK_PREW,
10285 .probe = probe_spi_rdid,
10286 .probe_timing = TIMING_ZERO,
10287 .block_erasers =
10288 {
10289 {
10290 .eraseblocks = { {4 * 1024, 256} },
10291 .block_erase = spi_block_erase_20,
10292 }, {
10293 .eraseblocks = { {32 * 1024, 32} },
10294 .block_erase = spi_block_erase_52,
10295 }, {
10296 .eraseblocks = { {64 * 1024, 16} },
10297 .block_erase = spi_block_erase_d8,
10298 }, {
10299 .eraseblocks = { {1024 * 1024, 1} },
10300 .block_erase = spi_block_erase_60,
10301 }, {
10302 .eraseblocks = { {1024 * 1024, 1} },
10303 .block_erase = spi_block_erase_c7,
10304 },
10305 },
10306 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10307 .unlock = spi_disable_blockprotect,
10308 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010309 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010310 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010311 },
10312
10313 {
10314 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010315 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010316 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010317 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010318 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010319 .total_size = 2048,
10320 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010321 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010322 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010323 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010324 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010325 .block_erasers =
10326 {
10327 {
10328 .eraseblocks = { {4 * 1024, 512} },
10329 .block_erase = spi_block_erase_20,
10330 }, {
10331 .eraseblocks = { {32 * 1024, 64} },
10332 .block_erase = spi_block_erase_52,
10333 }, {
10334 .eraseblocks = { {64 * 1024, 32} },
10335 .block_erase = spi_block_erase_d8,
10336 }, {
10337 .eraseblocks = { {2 * 1024 * 1024, 1} },
10338 .block_erase = spi_block_erase_60,
10339 }, {
10340 .eraseblocks = { {2 * 1024 * 1024, 1} },
10341 .block_erase = spi_block_erase_c7,
10342 },
10343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010344 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010345 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010346 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010348 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010349 },
10350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010351 {
10352 .vendor = "SST",
10353 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010354 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010355 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010356 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010357 .total_size = 4096,
10358 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010359 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010360 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010361 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010362 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010363 .block_erasers =
10364 {
10365 {
10366 .eraseblocks = { {4 * 1024, 1024} },
10367 .block_erase = spi_block_erase_20,
10368 }, {
10369 .eraseblocks = { {32 * 1024, 128} },
10370 .block_erase = spi_block_erase_52,
10371 }, {
10372 .eraseblocks = { {64 * 1024, 64} },
10373 .block_erase = spi_block_erase_d8,
10374 }, {
10375 .eraseblocks = { {4 * 1024 * 1024, 1} },
10376 .block_erase = spi_block_erase_60,
10377 }, {
10378 .eraseblocks = { {4 * 1024 * 1024, 1} },
10379 .block_erase = spi_block_erase_c7,
10380 },
10381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010382 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010383 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010384 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010386 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010387 },
10388
10389 {
10390 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010391 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010392 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010393 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010394 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010395 .total_size = 8192,
10396 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010397 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010398 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010399 .probe = probe_spi_rdid,
10400 .probe_timing = TIMING_ZERO,
10401 .block_erasers =
10402 {
10403 {
10404 .eraseblocks = { {4 * 1024, 2048} },
10405 .block_erase = spi_block_erase_20,
10406 }, {
10407 .eraseblocks = { {32 * 1024, 256} },
10408 .block_erase = spi_block_erase_52,
10409 }, {
10410 .eraseblocks = { {64 * 1024, 128} },
10411 .block_erase = spi_block_erase_d8,
10412 }, {
10413 .eraseblocks = { {8 * 1024 * 1024, 1} },
10414 .block_erase = spi_block_erase_60,
10415 }, {
10416 .eraseblocks = { {8 * 1024 * 1024, 1} },
10417 .block_erase = spi_block_erase_c7,
10418 },
10419 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010420 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010421 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010422 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010424 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010425 },
10426
10427 {
10428 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010429 .name = "SST25WF512",
10430 .bustype = BUS_SPI,
10431 .manufacture_id = SST_ID,
10432 .model_id = SST_SST25WF512,
10433 .total_size = 64,
10434 .page_size = 256,
10435 .feature_bits = FEATURE_WRSR_EITHER,
10436 .tested = TEST_UNTESTED,
10437 .probe = probe_spi_rdid,
10438 .probe_timing = TIMING_ZERO,
10439 .block_erasers =
10440 {
10441 {
10442 .eraseblocks = { {4 * 1024, 16} },
10443 .block_erase = spi_block_erase_20,
10444 }, {
10445 .eraseblocks = { {32 * 1024, 2} },
10446 .block_erase = spi_block_erase_52,
10447 }, {
10448 .eraseblocks = { {1024 * 64, 1} },
10449 .block_erase = spi_block_erase_60,
10450 }, {
10451 .eraseblocks = { {1024 * 64, 1} },
10452 .block_erase = spi_block_erase_c7,
10453 },
10454 },
Jason Harper43ddef02014-05-04 00:55:24 +000010455 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10456 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010457 .write = spi_aai_write,
10458 .read = spi_chip_read, /* Fast read (0x0B) supported */
10459 .voltage = {1650, 1950},
10460 },
10461
10462 {
10463 .vendor = "SST",
10464 .name = "SST25WF010",
10465 .bustype = BUS_SPI,
10466 .manufacture_id = SST_ID,
10467 .model_id = SST_SST25WF010,
10468 .total_size = 128,
10469 .page_size = 256,
10470 .feature_bits = FEATURE_WRSR_EITHER,
10471 .tested = TEST_UNTESTED,
10472 .probe = probe_spi_rdid,
10473 .probe_timing = TIMING_ZERO,
10474 .block_erasers =
10475 {
10476 {
10477 .eraseblocks = { {4 * 1024, 32} },
10478 .block_erase = spi_block_erase_20,
10479 }, {
10480 .eraseblocks = { {32 * 1024, 4} },
10481 .block_erase = spi_block_erase_52,
10482 }, {
10483 .eraseblocks = { {1024 * 128, 1} },
10484 .block_erase = spi_block_erase_60,
10485 }, {
10486 .eraseblocks = { {1024 * 128, 1} },
10487 .block_erase = spi_block_erase_c7,
10488 },
10489 },
Jason Harper43ddef02014-05-04 00:55:24 +000010490 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10491 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010492 .write = spi_aai_write,
10493 .read = spi_chip_read, /* Fast read (0x0B) supported */
10494 .voltage = {1650, 1950},
10495 },
10496
10497 {
10498 .vendor = "SST",
10499 .name = "SST25WF020",
10500 .bustype = BUS_SPI,
10501 .manufacture_id = SST_ID,
10502 .model_id = SST_SST25WF020,
10503 .total_size = 256,
10504 .page_size = 256,
10505 .feature_bits = FEATURE_WRSR_EITHER,
10506 .tested = TEST_UNTESTED,
10507 .probe = probe_spi_rdid,
10508 .probe_timing = TIMING_ZERO,
10509 .block_erasers =
10510 {
10511 {
10512 .eraseblocks = { {4 * 1024, 64} },
10513 .block_erase = spi_block_erase_20,
10514 }, {
10515 .eraseblocks = { {32 * 1024, 8} },
10516 .block_erase = spi_block_erase_52,
10517 }, {
10518 .eraseblocks = { {64 * 1024, 4} },
10519 .block_erase = spi_block_erase_d8,
10520 }, {
10521 .eraseblocks = { {1024 * 256, 1} },
10522 .block_erase = spi_block_erase_60,
10523 }, {
10524 .eraseblocks = { {1024 * 256, 1} },
10525 .block_erase = spi_block_erase_c7,
10526 },
10527 },
Jason Harper43ddef02014-05-04 00:55:24 +000010528 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10529 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010530 .write = spi_aai_write,
10531 .read = spi_chip_read, /* Fast read (0x0B) supported */
10532 .voltage = {1650, 1950},
10533 },
10534
10535 {
10536 .vendor = "SST",
10537 .name = "SST25WF040",
10538 .bustype = BUS_SPI,
10539 .manufacture_id = SST_ID,
10540 .model_id = SST_SST25WF040,
10541 .total_size = 512,
10542 .page_size = 256,
10543 .feature_bits = FEATURE_WRSR_EITHER,
10544 .tested = TEST_UNTESTED,
10545 .probe = probe_spi_rdid,
10546 .probe_timing = TIMING_ZERO,
10547 .block_erasers =
10548 {
10549 {
10550 .eraseblocks = { {4 * 1024, 128} },
10551 .block_erase = spi_block_erase_20,
10552 }, {
10553 .eraseblocks = { {32 * 1024, 16} },
10554 .block_erase = spi_block_erase_52,
10555 }, {
10556 .eraseblocks = { {64 * 1024, 8} },
10557 .block_erase = spi_block_erase_d8,
10558 }, {
10559 .eraseblocks = { {1024 * 512, 1} },
10560 .block_erase = spi_block_erase_60,
10561 }, {
10562 .eraseblocks = { {1024 * 512, 1} },
10563 .block_erase = spi_block_erase_c7,
10564 },
10565 },
Jason Harper43ddef02014-05-04 00:55:24 +000010566 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10567 .unlock = spi_disable_blockprotect_bp2_srwd,
10568 .write = spi_aai_write,
10569 .read = spi_chip_read, /* Fast read (0x0B) supported */
10570 .voltage = {1650, 1950},
10571 },
10572
10573 {
10574 .vendor = "SST",
10575 .name = "SST25WF080",
10576 .bustype = BUS_SPI,
10577 .manufacture_id = SST_ID,
10578 .model_id = SST_SST25WF080,
10579 .total_size = 1024,
10580 .page_size = 256,
10581 .feature_bits = FEATURE_WRSR_EITHER,
10582 .tested = TEST_OK_PREW,
10583 .probe = probe_spi_rdid,
10584 .probe_timing = TIMING_ZERO,
10585 .block_erasers =
10586 {
10587 {
10588 .eraseblocks = { {4 * 1024, 256} },
10589 .block_erase = spi_block_erase_20,
10590 }, {
10591 .eraseblocks = { {32 * 1024, 32} },
10592 .block_erase = spi_block_erase_52,
10593 }, {
10594 .eraseblocks = { {64 * 1024, 16} },
10595 .block_erase = spi_block_erase_d8,
10596 }, {
10597 .eraseblocks = { {1024 * 1024, 1} },
10598 .block_erase = spi_block_erase_60,
10599 }, {
10600 .eraseblocks = { {1024 * 1024, 1} },
10601 .block_erase = spi_block_erase_c7,
10602 },
10603 },
10604 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10605 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010606 .write = spi_aai_write,
10607 .read = spi_chip_read, /* Fast read (0x0B) supported */
10608 .voltage = {1650, 1950},
10609 },
10610
10611 {
10612 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010613 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010614 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010615 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010616 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010617 .total_size = 512,
10618 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010619 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010620 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010621 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010622 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010623 .block_erasers =
10624 {
10625 {
10626 .eraseblocks = { {128, 4096} },
10627 .block_erase = erase_sector_28sf040,
10628 }, {
10629 .eraseblocks = { {512 * 1024, 1} },
10630 .block_erase = erase_chip_28sf040,
10631 }
10632 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010633 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010634 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010637 },
10638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010639 {
10640 .vendor = "SST",
10641 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010642 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010643 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010644 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010645 .total_size = 128,
10646 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010647 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010648 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010649 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010650 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010651 .block_erasers =
10652 {
10653 {
10654 .eraseblocks = { {128 * 1024, 1} },
10655 .block_erase = erase_chip_block_jedec,
10656 }
10657 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010658 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010660 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010661 },
10662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010663 {
10664 .vendor = "SST",
10665 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010666 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010667 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010668 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010669 .total_size = 128,
10670 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010671 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010672 .tested = TEST_UNTESTED,
10673 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010674 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010675 .block_erasers =
10676 {
10677 {
10678 .eraseblocks = { {128 * 1024, 1} },
10679 .block_erase = erase_chip_block_jedec,
10680 }
10681 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010682 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010684 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010685 },
10686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010687 {
10688 .vendor = "SST",
10689 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010690 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010691 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010692 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010693 .total_size = 256,
10694 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010695 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010696 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010698 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010699 .block_erasers =
10700 {
10701 {
10702 .eraseblocks = { {256 * 1024, 1} },
10703 .block_erase = erase_chip_block_jedec,
10704 }
10705 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010706 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010708 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010709 },
10710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010711 {
10712 .vendor = "SST",
10713 .name = "SST29LE020",
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_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010717 .total_size = 256,
10718 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010719 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010720 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010721 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010722 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010723 .block_erasers =
10724 {
10725 {
10726 .eraseblocks = { {256 * 1024, 1} },
10727 .block_erase = erase_chip_block_jedec,
10728 }
10729 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010730 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010731 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010732 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010733 },
10734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010735 {
10736 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010737 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010738 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010739 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010740 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010741 .total_size = 64,
10742 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010743 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010744 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010745 .probe = probe_jedec,
10746 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010747 .block_erasers =
10748 {
10749 {
10750 .eraseblocks = { {4 * 1024, 16} },
10751 .block_erase = erase_sector_jedec,
10752 }, {
10753 .eraseblocks = { {64 * 1024, 1} },
10754 .block_erase = erase_chip_block_jedec,
10755 }
10756 },
Sean Nelson35727f72010-01-28 23:55:12 +000010757 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010758 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010759 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010760 },
10761
10762 {
10763 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010764 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010765 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010766 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010767 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010768 .total_size = 128,
10769 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010770 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010771 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010772 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010773 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010774 .block_erasers =
10775 {
10776 {
10777 .eraseblocks = { {4 * 1024, 32} },
10778 .block_erase = erase_sector_jedec,
10779 }, {
10780 .eraseblocks = { {128 * 1024, 1} },
10781 .block_erase = erase_chip_block_jedec,
10782 }
10783 },
Sean Nelson35727f72010-01-28 23:55:12 +000010784 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010785 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010786 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010787 },
10788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010789 {
10790 .vendor = "SST",
10791 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010792 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010793 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010794 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010795 .total_size = 256,
10796 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010797 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010798 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010799 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010800 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010801 .block_erasers =
10802 {
10803 {
10804 .eraseblocks = { {4 * 1024, 64} },
10805 .block_erase = erase_sector_jedec,
10806 }, {
10807 .eraseblocks = { {256 * 1024, 1} },
10808 .block_erase = erase_chip_block_jedec,
10809 }
10810 },
Sean Nelson35727f72010-01-28 23:55:12 +000010811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010812 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010813 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010814 },
10815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010816 {
10817 .vendor = "SST",
10818 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010819 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010820 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010821 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010822 .total_size = 512,
10823 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010824 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010825 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010826 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010827 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010828 .block_erasers =
10829 {
10830 {
10831 .eraseblocks = { {4 * 1024, 128} },
10832 .block_erase = erase_sector_jedec,
10833 }, {
10834 .eraseblocks = { {512 * 1024, 1} },
10835 .block_erase = erase_chip_block_jedec,
10836 }
10837 },
Sean Nelson35727f72010-01-28 23:55:12 +000010838 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010839 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010840 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010841 },
10842
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010843 {
10844 .vendor = "SST",
10845 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010846 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010847 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010848 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010849 .total_size = 64,
10850 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010851 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010852 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010853 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010854 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010855 .block_erasers =
10856 {
10857 {
10858 .eraseblocks = { {4 * 1024, 16} },
10859 .block_erase = erase_sector_jedec,
10860 }, {
10861 .eraseblocks = { {64 * 1024, 1} },
10862 .block_erase = erase_chip_block_jedec,
10863 }
10864 },
Sean Nelson35727f72010-01-28 23:55:12 +000010865 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010867 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010868 },
10869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010870 {
10871 .vendor = "SST",
10872 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010873 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010874 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010875 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010876 .total_size = 128,
10877 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010878 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010879 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010880 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010881 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010882 .block_erasers =
10883 {
10884 {
10885 .eraseblocks = { {4 * 1024, 32} },
10886 .block_erase = erase_sector_jedec,
10887 }, {
10888 .eraseblocks = { {128 * 1024, 1} },
10889 .block_erase = erase_chip_block_jedec,
10890 }
10891 },
Sean Nelson35727f72010-01-28 23:55:12 +000010892 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010894 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010895 },
10896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010897 {
10898 .vendor = "SST",
10899 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010900 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010901 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010902 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010903 .total_size = 256,
10904 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010905 .feature_bits = FEATURE_EITHER_RESET,
10906 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010907 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010908 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010909 .block_erasers =
10910 {
10911 {
10912 .eraseblocks = { {4 * 1024, 64} },
10913 .block_erase = erase_sector_jedec,
10914 }, {
10915 .eraseblocks = { {256 * 1024, 1} },
10916 .block_erase = erase_chip_block_jedec,
10917 }
10918 },
Sean Nelson35727f72010-01-28 23:55:12 +000010919 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010921 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010922 },
10923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010924 {
10925 .vendor = "SST",
10926 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010927 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010928 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010929 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010930 .total_size = 512,
10931 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010932 .feature_bits = FEATURE_EITHER_RESET,
10933 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010934 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010935 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010936 .block_erasers =
10937 {
10938 {
10939 .eraseblocks = { {4 * 1024, 128} },
10940 .block_erase = erase_sector_jedec,
10941 }, {
10942 .eraseblocks = { {512 * 1024, 1} },
10943 .block_erase = erase_chip_block_jedec,
10944 }
10945 },
Sean Nelson35727f72010-01-28 23:55:12 +000010946 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010948 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010949 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010951 {
10952 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010953 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010954 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010955 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010956 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010957 .total_size = 1024,
10958 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010959 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010960 .tested = TEST_UNTESTED,
10961 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010962 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010963 .block_erasers =
10964 {
10965 {
10966 .eraseblocks = { {4 * 1024, 256} },
10967 .block_erase = erase_sector_jedec,
10968 }, {
10969 .eraseblocks = { {64 * 1024, 16} },
10970 .block_erase = erase_block_jedec,
10971 }, {
10972 .eraseblocks = { {1024 * 1024, 1} },
10973 .block_erase = erase_chip_block_jedec,
10974 }
10975 },
Sean Nelson35727f72010-01-28 23:55:12 +000010976 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010977 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010978 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010979 },
10980
10981 {
10982 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010983 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010984 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010985 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010986 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010987 .total_size = 256,
10988 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010989 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010990 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010991 .probe = probe_jedec,
10992 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010993 .block_erasers =
10994 {
10995 {
10996 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010997 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010998 }, {
10999 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011000 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011001 }, {
11002 .eraseblocks = { {256 * 1024, 1} },
11003 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11004 }
11005 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011006 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011007 .unlock = unlock_sst_fwhub,
11008 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011009 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011010 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011011 },
11012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011013 {
11014 .vendor = "SST",
11015 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011016 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011017 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011018 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011019 .total_size = 384,
11020 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011021 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011022 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011023 .probe = probe_jedec,
11024 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011025 .block_erasers =
11026 {
11027 {
11028 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011029 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011030 }, {
11031 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011032 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011033 }, {
11034 .eraseblocks = { {384 * 1024, 1} },
11035 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11036 }
11037 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011038 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011039 .unlock = unlock_sst_fwhub,
11040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011042 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011043 },
11044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011045 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011046 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
11047 * and is only honored for 64k block erase, but not 4k sector erase.
11048 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011049 .vendor = "SST",
11050 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011051 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011052 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011053 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011054 .total_size = 512,
11055 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011056 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011057 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011058 .probe = probe_jedec,
11059 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011060 .block_erasers =
11061 {
11062 {
11063 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011064 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011065 }, {
11066 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011067 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011068 }, {
11069 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011070 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011071 },
11072 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011073 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011074 .unlock = unlock_sst_fwhub,
11075 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011076 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011077 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011078 },
11079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011080 {
11081 .vendor = "SST",
11082 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011083 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011084 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011085 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011086 .total_size = 512,
11087 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011088 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011089 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011090 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011091 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011092 .block_erasers =
11093 {
11094 {
11095 .eraseblocks = { {4 * 1024, 128} },
11096 .block_erase = erase_sector_49lfxxxc,
11097 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011098 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011099 {64 * 1024, 7},
11100 {32 * 1024, 1},
11101 {8 * 1024, 2},
11102 {16 * 1024, 1},
11103 },
Sean Nelson69e58112010-03-23 17:10:28 +000011104 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011105 }
11106 },
Sean Nelson69e58112010-03-23 17:10:28 +000011107 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011108 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011109 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011110 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011111 },
11112
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011113 {
11114 .vendor = "SST",
11115 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011116 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011117 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011118 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011119 .total_size = 1024,
11120 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011121 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011122 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011123 .probe = probe_jedec,
11124 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011125 .block_erasers =
11126 {
11127 {
11128 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011129 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011130 }, {
11131 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011132 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011133 }, {
11134 .eraseblocks = { {1024 * 1024, 1} },
11135 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11136 }
11137 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011138 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011139 .unlock = unlock_sst_fwhub,
11140 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011141 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011142 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011143 },
11144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011145 {
11146 .vendor = "SST",
11147 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011148 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011149 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011150 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011151 .total_size = 1024,
11152 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011153 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011154 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011155 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011156 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011157 .block_erasers =
11158 {
11159 {
11160 .eraseblocks = { {4 * 1024, 256} },
11161 .block_erase = erase_sector_49lfxxxc,
11162 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011163 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011164 {64 * 1024, 15},
11165 {32 * 1024, 1},
11166 {8 * 1024, 2},
11167 {16 * 1024, 1},
11168 },
Sean Nelson69e58112010-03-23 17:10:28 +000011169 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011170 }
11171 },
Sean Nelson69e58112010-03-23 17:10:28 +000011172 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011173 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011175 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011176 },
11177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011178 {
11179 .vendor = "SST",
11180 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011181 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011182 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011183 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011184 .total_size = 2048,
11185 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011186 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000011187 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011188 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011189 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011190 .block_erasers =
11191 {
11192 {
11193 .eraseblocks = { {4 * 1024, 512} },
11194 .block_erase = erase_sector_49lfxxxc,
11195 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011196 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011197 {64 * 1024, 31},
11198 {32 * 1024, 1},
11199 {8 * 1024, 2},
11200 {16 * 1024, 1},
11201 },
Sean Nelson69e58112010-03-23 17:10:28 +000011202 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011203 }
11204 },
Sean Nelson69e58112010-03-23 17:10:28 +000011205 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011206 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011208 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011209 },
11210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011211 {
11212 .vendor = "SST",
11213 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011214 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011215 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011216 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011217 .total_size = 256,
11218 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011219 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000011220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011221 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011222 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011223 .block_erasers =
11224 {
11225 {
11226 .eraseblocks = { {4 * 1024, 64} },
11227 .block_erase = erase_sector_jedec,
11228 }, {
11229 .eraseblocks = { {16 * 1024, 16} },
11230 .block_erase = erase_block_jedec,
11231 }, {
11232 .eraseblocks = { {256 * 1024, 1} },
11233 .block_erase = NULL,
11234 }
11235 },
Sean Nelson35727f72010-01-28 23:55:12 +000011236 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011237 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011238 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000011239 },
11240
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011241 {
11242 .vendor = "SST",
11243 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011244 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011245 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011246 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011247 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011248 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011249 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011250 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011251 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011252 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011253 .block_erasers =
11254 {
11255 {
11256 .eraseblocks = { {4 * 1024, 64} },
11257 .block_erase = erase_sector_jedec,
11258 }, {
11259 .eraseblocks = { {16 * 1024, 16} },
11260 .block_erase = erase_block_jedec,
11261 }, {
11262 .eraseblocks = { {256 * 1024, 1} },
11263 .block_erase = NULL,
11264 }
11265 },
Sean Nelson35727f72010-01-28 23:55:12 +000011266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011268 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011269 },
11270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011271 {
11272 .vendor = "SST",
11273 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011274 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011275 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011276 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011277 .total_size = 512,
11278 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011279 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011280 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011281 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011282 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011283 .block_erasers =
11284 {
11285 {
11286 .eraseblocks = { {4 * 1024, 128} },
11287 .block_erase = erase_sector_jedec,
11288 }, {
11289 .eraseblocks = { {64 * 1024, 8} },
11290 .block_erase = erase_block_jedec,
11291 }, {
11292 .eraseblocks = { {512 * 1024, 1} },
11293 .block_erase = NULL,
11294 }
11295 },
Sean Nelson35727f72010-01-28 23:55:12 +000011296 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011297 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011298 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011299 },
11300
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011301 {
11302 .vendor = "SST",
11303 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011304 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011305 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011306 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011307 .total_size = 512,
11308 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011309 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011310 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011311 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011312 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011313 .block_erasers =
11314 {
11315 {
11316 .eraseblocks = { {4 * 1024, 128} },
11317 .block_erase = erase_sector_jedec,
11318 }, {
11319 .eraseblocks = { {64 * 1024, 8} },
11320 .block_erase = erase_block_jedec,
11321 }, {
11322 .eraseblocks = { {512 * 1024, 1} },
11323 .block_erase = NULL,
11324 }
11325 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011326 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000011327 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011328 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011329 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011330 },
11331
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011332 {
11333 .vendor = "SST",
11334 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011335 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011336 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011337 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011338 .total_size = 1024,
11339 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011340 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011341 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011342 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011343 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011344 .block_erasers =
11345 {
11346 {
11347 .eraseblocks = { {4 * 1024, 256} },
11348 .block_erase = erase_sector_jedec,
11349 }, {
11350 .eraseblocks = { {64 * 1024, 16} },
11351 .block_erase = erase_block_jedec,
11352 }, {
11353 .eraseblocks = { {1024 * 1024, 1} },
11354 .block_erase = NULL,
11355 }
11356 },
Sean Nelson35727f72010-01-28 23:55:12 +000011357 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011358 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011359 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011360 },
11361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011362 {
11363 .vendor = "SST",
11364 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011365 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011366 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011367 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011368 .total_size = 2048,
11369 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011370 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011371 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011372 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011373 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011374 .block_erasers =
11375 {
11376 {
11377 .eraseblocks = { {4 * 1024, 512} },
11378 .block_erase = erase_sector_49lfxxxc,
11379 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011380 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011381 {64 * 1024, 31},
11382 {32 * 1024, 1},
11383 {8 * 1024, 2},
11384 {16 * 1024, 1},
11385 },
Sean Nelson69e58112010-03-23 17:10:28 +000011386 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011387 }
11388 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011389 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011390 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011392 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011393 },
11394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011395 {
11396 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011397 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011399 .manufacture_id = ST_ID,
11400 .model_id = ST_M29F002B,
11401 .total_size = 256,
11402 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011403 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011404 .tested = TEST_UNTESTED,
11405 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011406 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011407 .block_erasers =
11408 {
11409 {
11410 .eraseblocks = {
11411 {16 * 1024, 1},
11412 {8 * 1024, 2},
11413 {32 * 1024, 1},
11414 {64 * 1024, 3},
11415 },
11416 .block_erase = erase_sector_jedec,
11417 }, {
11418 .eraseblocks = { {256 * 1024, 1} },
11419 .block_erase = erase_chip_block_jedec,
11420 }
11421 },
Sean Nelson35727f72010-01-28 23:55:12 +000011422 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011423 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011424 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011425 },
11426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011427 {
11428 .vendor = "ST",
11429 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011430 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011431 .manufacture_id = ST_ID,
11432 .model_id = ST_M29F002T,
11433 .total_size = 256,
11434 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011435 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011436 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011437 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011438 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011439 .block_erasers =
11440 {
11441 {
11442 .eraseblocks = {
11443 {64 * 1024, 3},
11444 {32 * 1024, 1},
11445 {8 * 1024, 2},
11446 {16 * 1024, 1},
11447 },
11448 .block_erase = erase_sector_jedec,
11449 }, {
11450 .eraseblocks = { {256 * 1024, 1} },
11451 .block_erase = erase_chip_block_jedec,
11452 }
11453 },
Sean Nelson35727f72010-01-28 23:55:12 +000011454 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011455 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011456 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011457 },
11458
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011459 {
11460 .vendor = "ST",
11461 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011462 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011463 .manufacture_id = ST_ID,
11464 .model_id = ST_M29F040B,
11465 .total_size = 512,
11466 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011467 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11468 .tested = TEST_UNTESTED,
11469 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011470 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011471 .block_erasers =
11472 {
11473 {
11474 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011475 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011476 }, {
11477 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011478 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011479 }
11480 },
Sean Nelson35727f72010-01-28 23:55:12 +000011481 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011482 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011483 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011484 },
11485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011486 {
Sean Nelson35727f72010-01-28 23:55:12 +000011487 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011488 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011489 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011490 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011491 .manufacture_id = ST_ID,
11492 .model_id = ST_M29F400BB,
11493 .total_size = 512,
11494 .page_size = 64 * 1024,
11495 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011496 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011497 .probe = probe_m29f400bt,
11498 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11499 .block_erasers =
11500 {
11501 {
11502 .eraseblocks = {
11503 {16 * 1024, 1},
11504 {8 * 1024, 2},
11505 {32 * 1024, 1},
11506 {64 * 1024, 7},
11507 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011508 .block_erase = erase_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011509 }, {
11510 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011511 .block_erase = erase_chip_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011512 }
11513 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011514 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011515 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011516 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011517 },
11518 {
11519 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11520 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011521 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011522 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011523 .manufacture_id = ST_ID,
11524 .model_id = ST_M29F400BT,
11525 .total_size = 512,
11526 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011527 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011528 .tested = TEST_UNTESTED,
11529 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011530 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011531 .block_erasers =
11532 {
11533 {
11534 .eraseblocks = {
11535 {64 * 1024, 7},
11536 {32 * 1024, 1},
11537 {8 * 1024, 2},
11538 {16 * 1024, 1},
11539 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011540 .block_erase = erase_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011541 }, {
11542 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011543 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011544 }
11545 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011546 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011547 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011548 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011549 },
11550
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011551 {
11552 .vendor = "ST",
11553 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011554 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011555 .manufacture_id = ST_ID,
11556 .model_id = ST_M29W010B,
11557 .total_size = 128,
11558 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011559 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011560 .tested = TEST_UNTESTED,
11561 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011562 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011563 .block_erasers =
11564 {
11565 {
11566 .eraseblocks = { {16 * 1024, 8}, },
11567 .block_erase = erase_sector_jedec,
11568 }, {
11569 .eraseblocks = { {128 * 1024, 1} },
11570 .block_erase = erase_chip_block_jedec,
11571 }
11572 },
Sean Nelson35727f72010-01-28 23:55:12 +000011573 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011574 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011575 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011576 },
11577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011578 {
11579 .vendor = "ST",
11580 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011581 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011582 .manufacture_id = ST_ID,
11583 .model_id = ST_M29W040B,
11584 .total_size = 512,
11585 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011586 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011587 .tested = TEST_UNTESTED,
11588 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011589 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011590 .block_erasers =
11591 {
11592 {
11593 .eraseblocks = { {64 * 1024, 8}, },
11594 .block_erase = erase_sector_jedec,
11595 }, {
11596 .eraseblocks = { {512 * 1024, 1} },
11597 .block_erase = erase_chip_block_jedec,
11598 }
11599 },
Sean Nelson35727f72010-01-28 23:55:12 +000011600 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011602 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011603 },
11604
Stefan Taunereb582572012-09-21 12:52:50 +000011605 {
11606 .vendor = "ST",
11607 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011608 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011609 .manufacture_id = ST_ID,
11610 .model_id = ST_M29W512B,
11611 .total_size = 64,
11612 .page_size = 64 * 1024,
11613 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011614 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011615 .probe = probe_jedec,
11616 .probe_timing = TIMING_ZERO,
11617 .block_erasers =
11618 {
11619 {
11620 .eraseblocks = { {64 * 1024, 1} },
11621 .block_erase = erase_chip_block_jedec,
11622 }
11623 },
11624 .write = write_jedec_1,
11625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011626 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011627 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011629 {
11630 .vendor = "ST",
11631 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011632 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011633 .manufacture_id = ST_ID,
11634 .model_id = ST_M50FLW040A,
11635 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011636 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011637 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011638 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011639 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011640 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011641 .block_erasers =
11642 {
11643 {
Sean Nelson329bde72010-01-19 16:39:19 +000011644 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011645 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011646 {64 * 1024, 5}, /* block */
11647 {4 * 1024, 16}, /* sector */
11648 {4 * 1024, 16}, /* sector */
11649 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011650 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011651 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011652 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011653 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011654 }
11655 },
Sean Nelson28accc22010-03-19 18:47:06 +000011656 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011657 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011658 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011659 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011660 },
11661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011662 {
11663 .vendor = "ST",
11664 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011665 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011666 .manufacture_id = ST_ID,
11667 .model_id = ST_M50FLW040B,
11668 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011669 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011670 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011671 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011672 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011673 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011674 .block_erasers =
11675 {
11676 {
Sean Nelson329bde72010-01-19 16:39:19 +000011677 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011678 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011679 {4 * 1024, 16}, /* sector */
11680 {64 * 1024, 5}, /* block */
11681 {4 * 1024, 16}, /* sector */
11682 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011683 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011684 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011685 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011686 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011687 }
11688 },
Sean Nelson28accc22010-03-19 18:47:06 +000011689 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011690 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011691 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011692 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011693 },
11694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011695 {
11696 .vendor = "ST",
11697 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011698 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011699 .manufacture_id = ST_ID,
11700 .model_id = ST_M50FLW080A,
11701 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011702 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011703 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011704 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011705 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011706 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011707 .block_erasers =
11708 {
11709 {
Sean Nelson329bde72010-01-19 16:39:19 +000011710 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011711 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011712 {64 * 1024, 13}, /* block */
11713 {4 * 1024, 16}, /* sector */
11714 {4 * 1024, 16}, /* sector */
11715 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011716 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011717 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011718 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011719 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011720 }
11721 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011722 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011723 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011725 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011726 },
11727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011728 {
11729 .vendor = "ST",
11730 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011731 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011732 .manufacture_id = ST_ID,
11733 .model_id = ST_M50FLW080B,
11734 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011735 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011736 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011737 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011738 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011739 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011740 .block_erasers =
11741 {
11742 {
Sean Nelson329bde72010-01-19 16:39:19 +000011743 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011744 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011745 {4 * 1024, 16}, /* sector */
11746 {64 * 1024, 13}, /* block */
11747 {4 * 1024, 16}, /* sector */
11748 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011749 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011750 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011751 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011752 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011753 }
11754 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011755 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011756 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011758 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011759 },
11760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011761 {
11762 .vendor = "ST",
11763 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011764 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011765 .manufacture_id = ST_ID,
11766 .model_id = ST_M50FW002,
11767 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011768 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011769 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011770 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011771 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011772 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011773 .block_erasers =
11774 {
11775 {
11776 .eraseblocks = {
11777 {64 * 1024, 3},
11778 {32 * 1024, 1},
11779 {8 * 1024, 2},
11780 {16 * 1024, 1},
11781 },
Sean Nelson28accc22010-03-19 18:47:06 +000011782 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011783 }
11784 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011785 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011786 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011787 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011788 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011789 },
11790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011791 {
11792 .vendor = "ST",
11793 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011794 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011795 .manufacture_id = ST_ID,
11796 .model_id = ST_M50FW016,
11797 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011798 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011799 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011800 .tested = TEST_UNTESTED,
11801 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011802 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011803 .block_erasers =
11804 {
11805 {
11806 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011807 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011808 }
11809 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011810 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011811 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011812 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011813 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011814 },
11815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011816 {
11817 .vendor = "ST",
11818 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011819 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011820 .manufacture_id = ST_ID,
11821 .model_id = ST_M50FW040,
11822 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011823 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011824 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011825 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011826 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011827 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011828 .block_erasers =
11829 {
11830 {
11831 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011832 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011833 }
11834 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011835 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011836 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011837 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011838 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011839 },
11840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011841 {
11842 .vendor = "ST",
11843 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011844 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011845 .manufacture_id = ST_ID,
11846 .model_id = ST_M50FW080,
11847 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011848 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011849 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011850 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011851 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011852 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011853 .block_erasers =
11854 {
11855 {
11856 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011857 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011858 }
11859 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011860 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011861 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011862 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011863 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011864 },
11865
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011866 {
11867 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011868 .name = "M50LPW080",
11869 .bustype = BUS_LPC, /* A/A Mux */
11870 .manufacture_id = ST_ID,
11871 .model_id = ST_M50LPW080,
11872 .total_size = 1024,
11873 .page_size = 0,
11874 .feature_bits = FEATURE_REGISTERMAP,
11875 .tested = TEST_UNTESTED,
11876 .probe = probe_82802ab,
11877 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11878 .block_erasers =
11879 {
11880 {
11881 .eraseblocks = { {64 * 1024, 16}, },
11882 .block_erase = erase_block_82802ab,
11883 }
11884 },
11885 .unlock = unlock_stm50_uniform,
11886 .write = write_82802ab,
11887 .read = read_memmapped,
11888 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11889 },
11890
11891 {
11892 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011893 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011894 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011895 .manufacture_id = ST_ID,
11896 .model_id = ST_M50LPW116,
11897 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011898 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011899 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011900 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011901 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011902 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011903 .block_erasers =
11904 {
11905 {
11906 .eraseblocks = {
11907 {4 * 1024, 16},
11908 {64 * 1024, 30},
11909 {32 * 1024, 1},
11910 {8 * 1024, 2},
11911 {16 * 1024, 1},
11912 },
Sean Nelson28accc22010-03-19 18:47:06 +000011913 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011914 }
11915 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011916 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011917 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011919 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011920 },
11921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011922 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011923 .vendor = "SyncMOS/MoselVitelic",
11924 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011925 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011926 .manufacture_id = SYNCMOS_MVC_ID,
11927 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011928 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011929 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011930 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011931 .tested = TEST_UNTESTED,
11932 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011934 .block_erasers =
11935 {
11936 {
11937 .eraseblocks = { {512, 256} },
11938 .block_erase = erase_sector_jedec,
11939 }, {
11940 .eraseblocks = { {128 * 1024, 1} },
11941 .block_erase = erase_chip_block_jedec,
11942 },
11943 },
Sean Nelson35727f72010-01-28 23:55:12 +000011944 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011946 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011947 },
11948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011949 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011950 .vendor = "SyncMOS/MoselVitelic",
11951 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011952 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011953 .manufacture_id = SYNCMOS_MVC_ID,
11954 .model_id = SM_MVC_29C51001T,
11955 .total_size = 128,
11956 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011957 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011958 .tested = TEST_UNTESTED,
11959 .probe = probe_jedec,
11960 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11961 .block_erasers =
11962 {
11963 {
11964 .eraseblocks = { {512, 256} },
11965 .block_erase = erase_sector_jedec,
11966 }, {
11967 .eraseblocks = { {128 * 1024, 1} },
11968 .block_erase = erase_chip_block_jedec,
11969 },
11970 },
11971 .write = write_jedec_1,
11972 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011973 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011974 },
11975
11976 {
11977 .vendor = "SyncMOS/MoselVitelic",
11978 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011979 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011980 .manufacture_id = SYNCMOS_MVC_ID,
11981 .model_id = SM_MVC_29C51002B,
11982 .total_size = 256,
11983 .page_size = 512,
11984 .feature_bits = FEATURE_EITHER_RESET,
11985 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011986 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011987 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011988 .block_erasers =
11989 {
11990 {
11991 .eraseblocks = { {512, 512} },
11992 .block_erase = erase_sector_jedec,
11993 }, {
11994 .eraseblocks = { {256 * 1024, 1} },
11995 .block_erase = erase_chip_block_jedec,
11996 },
11997 },
Sean Nelson35727f72010-01-28 23:55:12 +000011998 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011999 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012000 },
12001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012002 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012003 .vendor = "SyncMOS/MoselVitelic",
12004 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012005 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012006 .manufacture_id = SYNCMOS_MVC_ID,
12007 .model_id = SM_MVC_29C51002T,
12008 .total_size = 256,
12009 .page_size = 512,
12010 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012011 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012012 .probe = probe_jedec,
12013 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12014 .block_erasers =
12015 {
12016 {
12017 .eraseblocks = { {512, 512} },
12018 .block_erase = erase_sector_jedec,
12019 }, {
12020 .eraseblocks = { {256 * 1024, 1} },
12021 .block_erase = erase_chip_block_jedec,
12022 },
12023 },
12024 .write = write_jedec_1,
12025 .read = read_memmapped,
12026 },
12027
12028 {
12029 .vendor = "SyncMOS/MoselVitelic",
12030 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012031 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012032 .manufacture_id = SYNCMOS_MVC_ID,
12033 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012034 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012035 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012036 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012037 .tested = TEST_UNTESTED,
12038 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012039 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000012040 .block_erasers =
12041 {
12042 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012043 .eraseblocks = { {1024, 512} },
12044 .block_erase = erase_sector_jedec,
12045 }, {
12046 .eraseblocks = { {512 * 1024, 1} },
12047 .block_erase = erase_chip_block_jedec,
12048 },
12049 },
12050 .write = write_jedec_1,
12051 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012052 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012053 },
12054
12055 {
12056 .vendor = "SyncMOS/MoselVitelic",
12057 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012058 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012059 .manufacture_id = SYNCMOS_MVC_ID,
12060 .model_id = SM_MVC_29C51004T,
12061 .total_size = 512,
12062 .page_size = 1024,
12063 .feature_bits = FEATURE_EITHER_RESET,
12064 .tested = TEST_UNTESTED,
12065 .probe = probe_jedec,
12066 .probe_timing = TIMING_ZERO,
12067 .block_erasers =
12068 {
12069 {
12070 .eraseblocks = { {1024, 512} },
12071 .block_erase = erase_sector_jedec,
12072 }, {
12073 .eraseblocks = { {512 * 1024, 1} },
12074 .block_erase = erase_chip_block_jedec,
12075 },
12076 },
12077 .write = write_jedec_1,
12078 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012079 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012080 },
12081
12082 {
12083 .vendor = "SyncMOS/MoselVitelic",
12084 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012085 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012086 .manufacture_id = SYNCMOS_MVC_ID,
12087 .model_id = SM_MVC_29C31004B,
12088 .total_size = 512,
12089 .page_size = 1024,
12090 .feature_bits = FEATURE_EITHER_RESET,
12091 .tested = TEST_UNTESTED,
12092 .probe = probe_jedec,
12093 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12094 .block_erasers =
12095 {
12096 {
12097 .eraseblocks = { {1024, 512} },
12098 .block_erase = erase_sector_jedec,
12099 }, {
12100 .eraseblocks = { {512 * 1024, 1} },
12101 .block_erase = erase_chip_block_jedec,
12102 },
12103 },
12104 .write = write_jedec_1,
12105 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012106 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012107 },
12108
12109 {
12110 .vendor = "SyncMOS/MoselVitelic",
12111 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012112 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012113 .manufacture_id = SYNCMOS_MVC_ID,
12114 .model_id = SM_MVC_29C31004T,
12115 .total_size = 512,
12116 .page_size = 1024,
12117 .feature_bits = FEATURE_EITHER_RESET,
12118 .tested = TEST_UNTESTED,
12119 .probe = probe_jedec,
12120 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12121 .block_erasers =
12122 {
12123 {
12124 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012125 .block_erase = erase_sector_jedec,
12126 }, {
12127 .eraseblocks = { {512 * 1024, 1} },
12128 .block_erase = erase_chip_block_jedec,
12129 },
12130 },
Sean Nelson35727f72010-01-28 23:55:12 +000012131 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012133 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012134 },
12135
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012136 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012137 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012138 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012139 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012140 .manufacture_id = TI_OLD_ID,
12141 .model_id = TI_TMS29F002RB,
12142 .total_size = 256,
12143 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012144 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012145 .tested = TEST_UNTESTED,
12146 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012147 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012148 .block_erasers =
12149 {
12150 {
12151 .eraseblocks = {
12152 {16 * 1024, 1},
12153 {8 * 1024, 2},
12154 {32 * 1024, 1},
12155 {64 * 1024, 3},
12156 },
12157 .block_erase = erase_sector_jedec,
12158 }, {
12159 .eraseblocks = { {256 * 1024, 1} },
12160 .block_erase = erase_chip_block_jedec,
12161 },
12162 },
Sean Nelson35727f72010-01-28 23:55:12 +000012163 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012165 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012166 },
12167
12168 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012169 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012170 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012171 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012172 .manufacture_id = TI_OLD_ID,
12173 .model_id = TI_TMS29F002RT,
12174 .total_size = 256,
12175 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012176 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012177 .tested = TEST_UNTESTED,
12178 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012179 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012180 .block_erasers =
12181 {
12182 {
12183 .eraseblocks = {
12184 {64 * 1024, 3},
12185 {32 * 1024, 1},
12186 {8 * 1024, 2},
12187 {16 * 1024, 1},
12188 },
12189 .block_erase = erase_sector_jedec,
12190 }, {
12191 .eraseblocks = { {256 * 1024, 1} },
12192 .block_erase = erase_chip_block_jedec,
12193 },
12194 },
Sean Nelson35727f72010-01-28 23:55:12 +000012195 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012197 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012198 },
12199
12200 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012201 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012202 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012203 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012204 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012205 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012206 .total_size = 1024,
12207 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012208 /* supports SFDP */
12209 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012211 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012212 .probe = probe_spi_rdid,
12213 .probe_timing = TIMING_ZERO,
12214 .block_erasers =
12215 {
12216 {
12217 .eraseblocks = { {4 * 1024, 256} },
12218 .block_erase = spi_block_erase_20,
12219 }, {
12220 .eraseblocks = { {32 * 1024, 32} },
12221 .block_erase = spi_block_erase_52,
12222 }, {
12223 .eraseblocks = { {64 * 1024, 16} },
12224 .block_erase = spi_block_erase_d8,
12225 }, {
12226 .eraseblocks = { {1024 * 1024, 1} },
12227 .block_erase = spi_block_erase_60,
12228 }, {
12229 .eraseblocks = { {1024 * 1024, 1} },
12230 .block_erase = spi_block_erase_c7,
12231 }
12232 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012234 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012235 .write = spi_chip_write_256,
12236 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012237 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012238 },
12239
12240 {
12241 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012242 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012243 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012244 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012245 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012246 .total_size = 2048,
12247 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012248 /* supports SFDP */
12249 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012250 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000012251 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012252 .probe = probe_spi_rdid,
12253 .probe_timing = TIMING_ZERO,
12254 .block_erasers =
12255 {
12256 {
12257 .eraseblocks = { {4 * 1024, 512} },
12258 .block_erase = spi_block_erase_20,
12259 }, {
12260 .eraseblocks = { {32 * 1024, 64} },
12261 .block_erase = spi_block_erase_52,
12262 }, {
12263 .eraseblocks = { {64 * 1024, 32} },
12264 .block_erase = spi_block_erase_d8,
12265 }, {
12266 .eraseblocks = { {2 * 1024 * 1024, 1} },
12267 .block_erase = spi_block_erase_60,
12268 }, {
12269 .eraseblocks = { {2 * 1024 * 1024, 1} },
12270 .block_erase = spi_block_erase_c7,
12271 }
12272 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012273 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012274 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012275 .write = spi_chip_write_256,
12276 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012277 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012278 },
12279
12280 {
12281 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012282 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012283 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012284 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012285 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012286 .total_size = 4096,
12287 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012288 /* supports SFDP */
12289 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012290 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012291 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012292 .probe = probe_spi_rdid,
12293 .probe_timing = TIMING_ZERO,
12294 .block_erasers =
12295 {
12296 {
12297 .eraseblocks = { {4 * 1024, 1024} },
12298 .block_erase = spi_block_erase_20,
12299 }, {
12300 .eraseblocks = { {32 * 1024, 128} },
12301 .block_erase = spi_block_erase_52,
12302 }, {
12303 .eraseblocks = { {64 * 1024, 64} },
12304 .block_erase = spi_block_erase_d8,
12305 }, {
12306 .eraseblocks = { {4 * 1024 * 1024, 1} },
12307 .block_erase = spi_block_erase_60,
12308 }, {
12309 .eraseblocks = { {4 * 1024 * 1024, 1} },
12310 .block_erase = spi_block_erase_c7,
12311 }
12312 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012313 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012314 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012315 .write = spi_chip_write_256,
12316 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012317 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012318 },
12319
12320 {
12321 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012322 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012323 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012324 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012325 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012326 .total_size = 8192,
12327 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012328 /* supports SFDP */
12329 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012330 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012331 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012332 .probe = probe_spi_rdid,
12333 .probe_timing = TIMING_ZERO,
12334 .block_erasers =
12335 {
12336 {
12337 .eraseblocks = { {4 * 1024, 2048} },
12338 .block_erase = spi_block_erase_20,
12339 }, {
12340 .eraseblocks = { {32 * 1024, 256} },
12341 .block_erase = spi_block_erase_52,
12342 }, {
12343 .eraseblocks = { {64 * 1024, 128} },
12344 .block_erase = spi_block_erase_d8,
12345 }, {
12346 .eraseblocks = { {8 * 1024 * 1024, 1} },
12347 .block_erase = spi_block_erase_60,
12348 }, {
12349 .eraseblocks = { {8 * 1024 * 1024, 1} },
12350 .block_erase = spi_block_erase_c7,
12351 }
12352 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012353 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012354 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012355 .write = spi_chip_write_256,
12356 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012357 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012358 },
12359
12360 {
12361 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012362 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012363 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012364 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012365 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012366 .total_size = 16384,
12367 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012368 /* supports SFDP */
12369 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012371 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012372 .probe = probe_spi_rdid,
12373 .probe_timing = TIMING_ZERO,
12374 .block_erasers =
12375 {
12376 {
12377 .eraseblocks = { {4 * 1024, 4096} },
12378 .block_erase = spi_block_erase_20,
12379 }, {
12380 .eraseblocks = { {32 * 1024, 512} },
12381 .block_erase = spi_block_erase_52,
12382 }, {
12383 .eraseblocks = { {64 * 1024, 256} },
12384 .block_erase = spi_block_erase_d8,
12385 }, {
12386 .eraseblocks = { {16 * 1024 * 1024, 1} },
12387 .block_erase = spi_block_erase_60,
12388 }, {
12389 .eraseblocks = { {16 * 1024 * 1024, 1} },
12390 .block_erase = spi_block_erase_c7,
12391 }
12392 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012394 .unlock = spi_disable_blockprotect,
12395 .write = spi_chip_write_256,
12396 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012397 .voltage = {2700, 3600},
12398 },
12399
12400 {
12401 .vendor = "Winbond",
12402 .name = "W25Q20.W",
12403 .bustype = BUS_SPI,
12404 .manufacture_id = WINBOND_NEX_ID,
12405 .model_id = WINBOND_NEX_W25Q20_W,
12406 .total_size = 256,
12407 .page_size = 256,
12408 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12409 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12410 .tested = TEST_UNTESTED,
12411 .probe = probe_spi_rdid,
12412 .probe_timing = TIMING_ZERO,
12413 .block_erasers =
12414 {
12415 {
12416 .eraseblocks = { {4 * 1024, 64} },
12417 .block_erase = spi_block_erase_20,
12418 }, {
12419 .eraseblocks = { {32 * 1024, 8} },
12420 .block_erase = spi_block_erase_52,
12421 }, {
12422 .eraseblocks = { {64 * 1024, 4} },
12423 .block_erase = spi_block_erase_d8,
12424 }, {
12425 .eraseblocks = { {256 * 1024, 1} },
12426 .block_erase = spi_block_erase_60,
12427 }, {
12428 .eraseblocks = { {256 * 1024, 1} },
12429 .block_erase = spi_block_erase_c7,
12430 }
12431 },
12432 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12433 .unlock = spi_disable_blockprotect,
12434 .write = spi_chip_write_256,
12435 .read = spi_chip_read,
12436 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12437 },
12438
12439 {
12440 .vendor = "Winbond",
12441 .name = "W25Q40.W",
12442 .bustype = BUS_SPI,
12443 .manufacture_id = WINBOND_NEX_ID,
12444 .model_id = WINBOND_NEX_W25Q40_W,
12445 .total_size = 512,
12446 .page_size = 256,
12447 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12448 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12449 .tested = TEST_UNTESTED,
12450 .probe = probe_spi_rdid,
12451 .probe_timing = TIMING_ZERO,
12452 .block_erasers =
12453 {
12454 {
12455 .eraseblocks = { {4 * 1024, 128} },
12456 .block_erase = spi_block_erase_20,
12457 }, {
12458 .eraseblocks = { {32 * 1024, 16} },
12459 .block_erase = spi_block_erase_52,
12460 }, {
12461 .eraseblocks = { {64 * 1024, 8} },
12462 .block_erase = spi_block_erase_d8,
12463 }, {
12464 .eraseblocks = { {512 * 1024, 1} },
12465 .block_erase = spi_block_erase_60,
12466 }, {
12467 .eraseblocks = { {512 * 1024, 1} },
12468 .block_erase = spi_block_erase_c7,
12469 }
12470 },
12471 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12472 .unlock = spi_disable_blockprotect,
12473 .write = spi_chip_write_256,
12474 .read = spi_chip_read,
12475 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12476 },
12477
12478 {
12479 .vendor = "Winbond",
12480 .name = "W25Q80.W",
12481 .bustype = BUS_SPI,
12482 .manufacture_id = WINBOND_NEX_ID,
12483 .model_id = WINBOND_NEX_W25Q80_W,
12484 .total_size = 1024,
12485 .page_size = 256,
12486 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12487 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12488 .tested = TEST_UNTESTED,
12489 .probe = probe_spi_rdid,
12490 .probe_timing = TIMING_ZERO,
12491 .block_erasers =
12492 {
12493 {
12494 .eraseblocks = { {4 * 1024, 256} },
12495 .block_erase = spi_block_erase_20,
12496 }, {
12497 .eraseblocks = { {32 * 1024, 32} },
12498 .block_erase = spi_block_erase_52,
12499 }, {
12500 .eraseblocks = { {64 * 1024, 16} },
12501 .block_erase = spi_block_erase_d8,
12502 }, {
12503 .eraseblocks = { {1 * 1024 * 1024, 1} },
12504 .block_erase = spi_block_erase_60,
12505 }, {
12506 .eraseblocks = { {1 * 1024 * 1024, 1} },
12507 .block_erase = spi_block_erase_c7,
12508 }
12509 },
12510 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12511 .unlock = spi_disable_blockprotect,
12512 .write = spi_chip_write_256,
12513 .read = spi_chip_read,
12514 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12515 },
12516
12517 {
12518 .vendor = "Winbond",
12519 .name = "W25Q16.W",
12520 .bustype = BUS_SPI,
12521 .manufacture_id = WINBOND_NEX_ID,
12522 .model_id = WINBOND_NEX_W25Q16_W,
12523 .total_size = 2048,
12524 .page_size = 256,
12525 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12526 /* QPI enable 0x38, disable 0xFF */
12527 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12528 .tested = TEST_UNTESTED,
12529 .probe = probe_spi_rdid,
12530 .probe_timing = TIMING_ZERO,
12531 .block_erasers =
12532 {
12533 {
12534 .eraseblocks = { {4 * 1024, 512} },
12535 .block_erase = spi_block_erase_20,
12536 }, {
12537 .eraseblocks = { {32 * 1024, 64} },
12538 .block_erase = spi_block_erase_52,
12539 }, {
12540 .eraseblocks = { {64 * 1024, 32} },
12541 .block_erase = spi_block_erase_d8,
12542 }, {
12543 .eraseblocks = { {2 * 1024 * 1024, 1} },
12544 .block_erase = spi_block_erase_60,
12545 }, {
12546 .eraseblocks = { {2 * 1024 * 1024, 1} },
12547 .block_erase = spi_block_erase_c7,
12548 }
12549 },
12550 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12551 .unlock = spi_disable_blockprotect,
12552 .write = spi_chip_write_256,
12553 .read = spi_chip_read,
12554 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12555 },
12556
12557 {
12558 .vendor = "Winbond",
12559 .name = "W25Q32.W",
12560 .bustype = BUS_SPI,
12561 .manufacture_id = WINBOND_NEX_ID,
12562 .model_id = WINBOND_NEX_W25Q32_W,
12563 .total_size = 4096,
12564 .page_size = 256,
12565 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12566 /* QPI enable 0x38, disable 0xFF */
12567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12568 .tested = TEST_OK_PREW,
12569 .probe = probe_spi_rdid,
12570 .probe_timing = TIMING_ZERO,
12571 .block_erasers =
12572 {
12573 {
12574 .eraseblocks = { {4 * 1024, 1024} },
12575 .block_erase = spi_block_erase_20,
12576 }, {
12577 .eraseblocks = { {32 * 1024, 128} },
12578 .block_erase = spi_block_erase_52,
12579 }, {
12580 .eraseblocks = { {64 * 1024, 64} },
12581 .block_erase = spi_block_erase_d8,
12582 }, {
12583 .eraseblocks = { {4 * 1024 * 1024, 1} },
12584 .block_erase = spi_block_erase_60,
12585 }, {
12586 .eraseblocks = { {4 * 1024 * 1024, 1} },
12587 .block_erase = spi_block_erase_c7,
12588 }
12589 },
12590 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12591 .unlock = spi_disable_blockprotect,
12592 .write = spi_chip_write_256,
12593 .read = spi_chip_read,
12594 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12595 },
12596
12597 {
12598 .vendor = "Winbond",
12599 .name = "W25Q64.W",
12600 .bustype = BUS_SPI,
12601 .manufacture_id = WINBOND_NEX_ID,
12602 .model_id = WINBOND_NEX_W25Q64_W,
12603 .total_size = 8192,
12604 .page_size = 256,
12605 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12606 /* QPI enable 0x38, disable 0xFF */
12607 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012608 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012609 .probe = probe_spi_rdid,
12610 .probe_timing = TIMING_ZERO,
12611 .block_erasers =
12612 {
12613 {
12614 .eraseblocks = { {4 * 1024, 2048} },
12615 .block_erase = spi_block_erase_20,
12616 }, {
12617 .eraseblocks = { {32 * 1024, 256} },
12618 .block_erase = spi_block_erase_52,
12619 }, {
12620 .eraseblocks = { {64 * 1024, 128} },
12621 .block_erase = spi_block_erase_d8,
12622 }, {
12623 .eraseblocks = { {8 * 1024 * 1024, 1} },
12624 .block_erase = spi_block_erase_60,
12625 }, {
12626 .eraseblocks = { {8 * 1024 * 1024, 1} },
12627 .block_erase = spi_block_erase_c7,
12628 }
12629 },
12630 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12631 .unlock = spi_disable_blockprotect,
12632 .write = spi_chip_write_256,
12633 .read = spi_chip_read,
12634 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012635 },
12636
12637 {
12638 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012639 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012641 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012642 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012643 .total_size = 128,
12644 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012645 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012646 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012647 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012648 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012649 .block_erasers =
12650 {
12651 {
12652 .eraseblocks = { {4 * 1024, 32} },
12653 .block_erase = spi_block_erase_20,
12654 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012655 .eraseblocks = { {64 * 1024, 2} },
12656 .block_erase = spi_block_erase_d8,
12657 }, {
12658 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012659 .block_erase = spi_block_erase_c7,
12660 }
12661 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012663 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012664 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012665 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012666 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012667 },
12668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012669 {
12670 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012671 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012672 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012673 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012674 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012675 .total_size = 256,
12676 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012677 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012678 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012680 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012681 .block_erasers =
12682 {
12683 {
12684 .eraseblocks = { {4 * 1024, 64} },
12685 .block_erase = spi_block_erase_20,
12686 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012687 .eraseblocks = { {64 * 1024, 4} },
12688 .block_erase = spi_block_erase_d8,
12689 }, {
12690 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012691 .block_erase = spi_block_erase_c7,
12692 }
12693 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012694 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012695 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012696 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012697 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012698 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012699 },
12700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012701 {
12702 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012703 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012704 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012705 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012706 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012707 .total_size = 512,
12708 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012709 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012710 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012711 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012712 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012713 .block_erasers =
12714 {
12715 {
12716 .eraseblocks = { {4 * 1024, 128} },
12717 .block_erase = spi_block_erase_20,
12718 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012719 .eraseblocks = { {64 * 1024, 8} },
12720 .block_erase = spi_block_erase_d8,
12721 }, {
12722 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012723 .block_erase = spi_block_erase_c7,
12724 }
12725 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012726 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012727 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012728 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012729 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012730 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012731 },
12732
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012733 {
12734 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012735 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012736 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012737 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012738 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012739 .total_size = 1024,
12740 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012741 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012742 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012743 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012744 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012745 .block_erasers =
12746 {
12747 {
12748 .eraseblocks = { {4 * 1024, 256} },
12749 .block_erase = spi_block_erase_20,
12750 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012751 .eraseblocks = { {64 * 1024, 16} },
12752 .block_erase = spi_block_erase_d8,
12753 }, {
12754 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012755 .block_erase = spi_block_erase_c7,
12756 }
12757 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012758 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012759 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012760 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012761 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012762 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012763 },
12764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012765 {
12766 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012767 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012768 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012769 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012770 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012771 .total_size = 2048,
12772 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012773 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012774 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012775 .probe = probe_spi_rdid,
12776 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012777 .block_erasers =
12778 {
12779 {
12780 .eraseblocks = { {4 * 1024, 512} },
12781 .block_erase = spi_block_erase_20,
12782 }, {
12783 .eraseblocks = { {32 * 1024, 64} },
12784 .block_erase = spi_block_erase_52,
12785 }, {
12786 .eraseblocks = { {64 * 1024, 32} },
12787 .block_erase = spi_block_erase_d8,
12788 }, {
12789 .eraseblocks = { {2 * 1024 * 1024, 1} },
12790 .block_erase = spi_block_erase_60,
12791 }, {
12792 .eraseblocks = { {2 * 1024 * 1024, 1} },
12793 .block_erase = spi_block_erase_c7,
12794 }
12795 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012796 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012797 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012798 .write = spi_chip_write_256,
12799 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012800 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012801 },
12802
12803 {
12804 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012805 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012806 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012807 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012808 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012809 .total_size = 4096,
12810 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012811 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012812 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012813 .probe = probe_spi_rdid,
12814 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012815 .block_erasers =
12816 {
12817 {
12818 .eraseblocks = { {4 * 1024, 1024} },
12819 .block_erase = spi_block_erase_20,
12820 }, {
12821 .eraseblocks = { {32 * 1024, 128} },
12822 .block_erase = spi_block_erase_52,
12823 }, {
12824 .eraseblocks = { {64 * 1024, 64} },
12825 .block_erase = spi_block_erase_d8,
12826 }, {
12827 .eraseblocks = { {4 * 1024 * 1024, 1} },
12828 .block_erase = spi_block_erase_60,
12829 }, {
12830 .eraseblocks = { {4 * 1024 * 1024, 1} },
12831 .block_erase = spi_block_erase_c7,
12832 }
12833 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012834 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012835 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012836 .write = spi_chip_write_256,
12837 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012838 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012839 },
12840
12841 {
12842 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012843 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012844 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012845 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012846 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012847 .total_size = 8192,
12848 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012849 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012850 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012851 .probe = probe_spi_rdid,
12852 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012853 .block_erasers =
12854 {
12855 {
12856 .eraseblocks = { {4 * 1024, 2048} },
12857 .block_erase = spi_block_erase_20,
12858 }, {
12859 .eraseblocks = { {32 * 1024, 256} },
12860 .block_erase = spi_block_erase_52,
12861 }, {
12862 .eraseblocks = { {64 * 1024, 128} },
12863 .block_erase = spi_block_erase_d8,
12864 }, {
12865 .eraseblocks = { {8 * 1024 * 1024, 1} },
12866 .block_erase = spi_block_erase_60,
12867 }, {
12868 .eraseblocks = { {8 * 1024 * 1024, 1} },
12869 .block_erase = spi_block_erase_c7,
12870 }
12871 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012872 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012873 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012874 .write = spi_chip_write_256,
12875 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012876 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012877 },
12878
12879 {
12880 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012881 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012882 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012883 .manufacture_id = WINBOND_ID,
12884 .model_id = WINBOND_W29C010,
12885 .total_size = 128,
12886 .page_size = 128,
12887 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012888 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012889 .probe = probe_w29ee011,
12890 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12891 .block_erasers =
12892 {
12893 {
12894 .eraseblocks = { {128 * 1024, 1} },
12895 .block_erase = erase_chip_block_jedec,
12896 }
12897 },
12898 .write = write_jedec,
12899 .read = read_memmapped,
12900 },
12901
12902 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12903 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012904 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012905 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012906 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012907 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012908 .total_size = 128,
12909 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012910 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012911 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012912 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012913 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012914 .block_erasers =
12915 {
12916 {
12917 .eraseblocks = { {128 * 1024, 1} },
12918 .block_erase = erase_chip_block_jedec,
12919 }
12920 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012921 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012922 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012923 },
12924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012925 {
12926 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012927 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012928 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012929 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012930 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012931 .total_size = 256,
12932 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012933 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012934 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012935 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012936 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012937 .block_erasers =
12938 {
12939 {
12940 .eraseblocks = { {256 * 1024, 1} },
12941 .block_erase = erase_chip_block_jedec,
12942 }
12943 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012944 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012946 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012947 },
12948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012949 {
12950 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012951 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012952 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012953 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012954 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012955 .total_size = 512,
12956 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012957 .feature_bits = FEATURE_LONG_RESET,
12958 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012959 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012960 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012961 .block_erasers =
12962 {
12963 {
12964 .eraseblocks = { {512 * 1024, 1} },
12965 .block_erase = erase_chip_block_jedec,
12966 }
12967 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012968 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012970 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012971 },
12972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012973 {
12974 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012975 .name = "W39F010",
12976 .bustype = BUS_PARALLEL,
12977 .manufacture_id = WINBOND_ID,
12978 .model_id = WINBOND_W39F010,
12979 .total_size = 128,
12980 .page_size = 4 * 1024,
12981 .feature_bits = FEATURE_EITHER_RESET,
12982 .tested = TEST_OK_PREW,
12983 .probe = probe_jedec,
12984 .probe_timing = 10,
12985 .block_erasers =
12986 {
12987 {
12988 .eraseblocks = { {4 * 1024, 32} },
12989 .block_erase = erase_block_jedec,
12990 }, {
12991 .eraseblocks = { {128 * 1024, 1} },
12992 .block_erase = erase_chip_block_jedec,
12993 }
12994 },
12995 .printlock = printlock_w39f010,
12996 .write = write_jedec_1,
12997 .read = read_memmapped,
12998 .voltage = {4500, 5500},
12999 },
13000
13001 {
13002 .vendor = "Winbond",
13003 .name = "W39L010",
13004 .bustype = BUS_PARALLEL,
13005 .manufacture_id = WINBOND_ID,
13006 .model_id = WINBOND_W39L010,
13007 .total_size = 128,
13008 .page_size = 4 * 1024,
13009 .feature_bits = FEATURE_EITHER_RESET,
13010 .tested = TEST_UNTESTED,
13011 .probe = probe_jedec,
13012 .probe_timing = 10,
13013 .block_erasers =
13014 {
13015 {
13016 .eraseblocks = { {4 * 1024, 32} },
13017 .block_erase = erase_block_jedec,
13018 }, {
13019 .eraseblocks = { {128 * 1024, 1} },
13020 .block_erase = erase_chip_block_jedec,
13021 }
13022 },
13023 .printlock = printlock_w39l010,
13024 .write = write_jedec_1,
13025 .read = read_memmapped,
13026 .voltage = {3000, 3600},
13027 },
13028
13029 {
13030 .vendor = "Winbond",
13031 .name = "W39L020",
13032 .bustype = BUS_PARALLEL,
13033 .manufacture_id = WINBOND_ID,
13034 .model_id = WINBOND_W39L020,
13035 .total_size = 256,
13036 .page_size = 4 * 1024,
13037 .feature_bits = FEATURE_EITHER_RESET,
13038 .tested = TEST_UNTESTED,
13039 .probe = probe_jedec,
13040 .probe_timing = 10,
13041 .block_erasers =
13042 {
13043 {
13044 .eraseblocks = { {4 * 1024, 64} },
13045 .block_erase = erase_block_jedec,
13046 }, {
13047 .eraseblocks = { {64 * 1024, 4} },
13048 .block_erase = erase_sector_jedec,
13049 }, {
13050 .eraseblocks = { {256 * 1024, 1} },
13051 .block_erase = erase_chip_block_jedec,
13052 }
13053 },
13054 .printlock = printlock_w39l020,
13055 .write = write_jedec_1,
13056 .read = read_memmapped,
13057 .voltage = {3000, 3600},
13058 },
13059
13060 {
13061 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000013062 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013063 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000013064 .manufacture_id = WINBOND_ID,
13065 .model_id = WINBOND_W39L040,
13066 .total_size = 512,
13067 .page_size = 64 * 1024,
13068 .feature_bits = FEATURE_EITHER_RESET,
13069 .tested = TEST_OK_PR,
13070 .probe = probe_jedec,
13071 .probe_timing = 10,
13072 .block_erasers =
13073 {
13074 {
13075 .eraseblocks = { {4 * 1024, 128} },
13076 .block_erase = erase_block_jedec,
13077 }, {
13078 .eraseblocks = { {64 * 1024, 8} },
13079 .block_erase = erase_sector_jedec,
13080 }, {
13081 .eraseblocks = { {512 * 1024, 1} },
13082 .block_erase = erase_chip_block_jedec,
13083 }
13084 },
13085 .printlock = printlock_w39l040,
13086 .write = write_jedec_1,
13087 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013088 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000013089 },
13090
13091 {
13092 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013093 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013094 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013095 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013096 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013097 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013098 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013099 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013100 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013101 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000013102 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013103 .block_erasers =
13104 {
13105 {
13106 .eraseblocks = { {64 * 1024, 8} },
13107 .block_erase = erase_sector_jedec,
13108 }, {
13109 .eraseblocks = { {512 * 1024, 1} },
13110 .block_erase = erase_chip_block_jedec,
13111 }
13112 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013113 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000013114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013115 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013116 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013117 },
13118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013119 {
13120 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013121 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013122 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013123 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013124 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013125 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013126 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013127 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013128 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013129 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000013130 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013131 .block_erasers =
13132 {
13133 {
13134 .eraseblocks = { {64 * 1024, 8} },
13135 .block_erase = erase_sector_jedec,
13136 }, {
13137 .eraseblocks = { {512 * 1024, 1} },
13138 .block_erase = erase_chip_block_jedec,
13139 }
13140 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013141 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000013142 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013144 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013145 },
13146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013147 {
13148 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013149 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013150 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013151 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013152 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013153 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013154 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013155 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013156 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000013157 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013158 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013159 .block_erasers =
13160 {
13161 {
13162 .eraseblocks = { {64 * 1024, 8} },
13163 .block_erase = erase_sector_jedec,
13164 }, {
13165 .eraseblocks = { {512 * 1024, 1} },
13166 .block_erase = erase_chip_block_jedec,
13167 }
13168 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000013169 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000013170 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013172 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013173 },
13174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013175 {
13176 .vendor = "Winbond",
13177 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013178 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013179 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013180 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013181 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013182 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000013183 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013184 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013185 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013186 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013187 .block_erasers =
13188 {
13189 {
13190 .eraseblocks = { {4 * 1024, 128} },
13191 .block_erase = erase_block_jedec,
13192 }, {
13193 .eraseblocks = { {64 * 1024, 8} },
13194 .block_erase = erase_sector_jedec,
13195 }, {
13196 .eraseblocks = { {512 * 1024, 1} },
13197 .block_erase = erase_chip_block_jedec,
13198 }
13199 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013200 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000013201 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000013202 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013204 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013205 },
13206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013207 {
13208 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013209 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013210 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013211 .manufacture_id = WINBOND_ID,
13212 .model_id = WINBOND_W39V040B,
13213 .total_size = 512,
13214 .page_size = 64 * 1024,
13215 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013216 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013217 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013218 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013219 .block_erasers =
13220 {
13221 {
13222 .eraseblocks = { {64 * 1024, 8} },
13223 .block_erase = erase_sector_jedec,
13224 }, {
13225 .eraseblocks = { {512 * 1024, 1} },
13226 .block_erase = erase_chip_block_jedec,
13227 }
13228 },
13229 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000013230 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013231 .write = write_jedec_1,
13232 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013233 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013234 },
13235
13236 {
13237 .vendor = "Winbond",
13238 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013239 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013240 .manufacture_id = WINBOND_ID,
13241 .model_id = WINBOND_W39V040C,
13242 .total_size = 512,
13243 .page_size = 64 * 1024,
13244 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000013245 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013246 .probe = probe_jedec,
13247 .probe_timing = 10,
13248 .block_erasers =
13249 {
13250 {
13251 .eraseblocks = { {64 * 1024, 8} },
13252 .block_erase = erase_sector_jedec,
13253 }, {
13254 .eraseblocks = { {512 * 1024, 1} },
13255 .block_erase = erase_chip_block_jedec,
13256 }
13257 },
13258 .printlock = printlock_w39v040fc,
13259 .write = write_jedec_1,
13260 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013261 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013262 },
13263
13264 {
13265 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013266 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013267 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013268 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013269 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013270 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013271 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013272 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000013273 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013274 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000013275 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013276 .block_erasers =
13277 {
13278 {
13279 .eraseblocks = { {64 * 1024, 16} },
13280 .block_erase = erase_sector_jedec,
13281 }, {
13282 .eraseblocks = { {1024 * 1024, 1} },
13283 .block_erase = erase_chip_block_jedec,
13284 }
13285 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013286 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000013287 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013289 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013290 },
13291
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013292 {
13293 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013294 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013295 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013296 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013297 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013298 .total_size = 256,
13299 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013300 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013301 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013302 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013303 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013304 .block_erasers =
13305 {
13306 {
13307 .eraseblocks = {
13308 {128 * 1024, 1},
13309 {96 * 1024, 1},
13310 {8 * 1024, 2},
13311 {16 * 1024, 1},
13312 },
13313 .block_erase = erase_sector_jedec,
13314 }, {
13315 .eraseblocks = { {256 * 1024, 1} },
13316 .block_erase = erase_chip_block_jedec,
13317 }
13318 },
Sean Nelson35727f72010-01-28 23:55:12 +000013319 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013320 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013321 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013322 },
13323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013324 {
13325 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013326 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013327 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013328 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013329 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013330 .total_size = 256,
13331 .page_size = 128,
13332 .feature_bits = FEATURE_EITHER_RESET,
13333 .tested = TEST_OK_PROBE,
13334 .probe = probe_jedec,
13335 .probe_timing = 10,
13336 .block_erasers =
13337 {
13338 {
13339 .eraseblocks = { {256 * 1024, 1} },
13340 .block_erase = erase_chip_block_jedec,
13341 }
13342 },
13343 .write = write_jedec_1,
13344 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013345 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013346 },
13347
13348 {
13349 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013350 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013351 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013352 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013353 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013354 .total_size = 256,
13355 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013356 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013357 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013358 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013359 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013360 .block_erasers =
13361 {
13362 {
13363 .eraseblocks = {
13364 {64 * 1024, 3},
13365 {32 * 1024, 1},
13366 {8 * 1024, 2},
13367 {16 * 1024, 1},
13368 },
13369 .block_erase = erase_sector_jedec,
13370 }, {
13371 .eraseblocks = { {256 * 1024, 1} },
13372 .block_erase = erase_chip_block_jedec,
13373 }
13374 },
Sean Nelson35727f72010-01-28 23:55:12 +000013375 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013376 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013377 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013378 },
13379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013380 {
13381 .vendor = "Winbond",
13382 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013383 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013384 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013385 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013386 .total_size = 256,
13387 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013388 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013389 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013390 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013391 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013392 .block_erasers =
13393 {
13394 {
13395 .eraseblocks = {
13396 {64 * 1024, 3},
13397 {32 * 1024, 1},
13398 {8 * 1024, 2},
13399 {16 * 1024, 1},
13400 },
13401 .block_erase = erase_sector_jedec,
13402 }, {
13403 .eraseblocks = { {256 * 1024, 1} },
13404 .block_erase = erase_chip_block_jedec,
13405 }
13406 },
Sean Nelson35727f72010-01-28 23:55:12 +000013407 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013408 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013409 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013410 },
13411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013412 {
13413 .vendor = "Winbond",
13414 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013415 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013416 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013417 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013418 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013419 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013420 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013421 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013422 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013423 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013424 .block_erasers =
13425 {
13426 {
13427 .eraseblocks = { {64 * 1024, 16}, },
13428 .block_erase = erase_sector_jedec,
13429 }, {
13430 .eraseblocks = { {1024 * 1024, 1} },
13431 .block_erase = erase_chip_block_jedec,
13432 }
13433 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013434 .printlock = printlock_w39v080fa,
13435 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000013436 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013437 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013438 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013439 },
13440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013441 {
13442 .vendor = "Winbond",
13443 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013444 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013445 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013446 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013447 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013448 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013449 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013450 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013451 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013452 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013453 .block_erasers =
13454 {
13455 {
13456 .eraseblocks = { {64 * 1024, 8}, },
13457 .block_erase = erase_sector_jedec,
13458 }, {
13459 .eraseblocks = { {512 * 1024, 1} },
13460 .block_erase = erase_chip_block_jedec,
13461 }
13462 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013463 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013464 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013465 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013466 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013467 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013468
13469 {
13470 .vendor = "Unknown",
13471 .name = "SFDP-capable chip",
13472 .bustype = BUS_SPI,
13473 .manufacture_id = GENERIC_MANUF_ID,
13474 .model_id = SFDP_DEVICE_ID,
13475 /* We present our own "report this" text hence we do not
13476 * want the default "This flash part has status UNTESTED..."
13477 * text to be printed. */
13478 .tested = TEST_OK_PREW,
13479 .probe = probe_spi_sfdp,
13480 .unlock = spi_disable_blockprotect, /* is this safe? */
13481 .read = spi_chip_read,
13482 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013483 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013484 /* Everything below will be set by the probing function. */
13485 .write = NULL,
13486 .total_size = 0,
13487 .page_size = 0,
13488 .feature_bits = 0,
13489 .block_erasers = {},
13490 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013491
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013492 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013493 .vendor = "Programmer",
13494 .name = "Opaque flash chip",
13495 .bustype = BUS_PROG,
13496 .manufacture_id = PROGMANUF_ID,
13497 .model_id = PROGDEV_ID,
13498 .total_size = 0,
13499 .page_size = 256,
13500 /* probe is assumed to work, rest will be filled in by probe */
13501 .tested = TEST_OK_PROBE,
13502 .probe = probe_opaque,
13503 /* eraseblock sizes will be set by the probing function */
13504 .block_erasers =
13505 {
13506 {
13507 .block_erase = erase_opaque,
13508 }
13509 },
13510 .write = write_opaque,
13511 .read = read_opaque,
13512 },
13513
13514 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013515 .vendor = "AMIC",
13516 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013517 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013518 .manufacture_id = AMIC_ID,
13519 .model_id = GENERIC_DEVICE_ID,
13520 .total_size = 0,
13521 .page_size = 256,
13522 .tested = TEST_BAD_PREW,
13523 .probe = probe_spi_rdid4,
13524 .probe_timing = TIMING_ZERO,
13525 .write = NULL,
13526 .read = NULL,
13527 },
13528
13529 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013530 .vendor = "Atmel",
13531 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013532 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013533 .manufacture_id = ATMEL_ID,
13534 .model_id = GENERIC_DEVICE_ID,
13535 .total_size = 0,
13536 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013537 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013538 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013539 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013540 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013541 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013542 },
13543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013544 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013545 .vendor = "Eon",
13546 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013547 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013548 .manufacture_id = EON_ID_NOPREFIX,
13549 .model_id = GENERIC_DEVICE_ID,
13550 .total_size = 0,
13551 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013552 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013553 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013554 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013555 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013556 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013557 },
13558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013559 {
13560 .vendor = "Macronix",
13561 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013562 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013563 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013564 .model_id = GENERIC_DEVICE_ID,
13565 .total_size = 0,
13566 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013567 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013568 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013569 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013570 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013571 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013572 },
13573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013574 {
13575 .vendor = "PMC",
13576 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013577 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013578 .manufacture_id = PMC_ID,
13579 .model_id = GENERIC_DEVICE_ID,
13580 .total_size = 0,
13581 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013582 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013583 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013584 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013585 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013586 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013587 },
13588
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013589 {
13590 .vendor = "SST",
13591 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013592 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013593 .manufacture_id = SST_ID,
13594 .model_id = GENERIC_DEVICE_ID,
13595 .total_size = 0,
13596 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013597 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013598 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013599 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013600 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013601 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013602 },
13603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013604 {
13605 .vendor = "ST",
13606 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013607 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013608 .manufacture_id = ST_ID,
13609 .model_id = GENERIC_DEVICE_ID,
13610 .total_size = 0,
13611 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013612 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013613 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013614 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013615 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013616 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013617 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013618
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013619 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013620 .vendor = "Sanyo",
13621 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013622 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013623 .manufacture_id = SANYO_ID,
13624 .model_id = GENERIC_DEVICE_ID,
13625 .total_size = 0,
13626 .page_size = 256,
13627 .tested = TEST_BAD_PREW,
13628 .probe = probe_spi_rdid,
13629 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013630 .write = NULL,
13631 .read = NULL,
13632 },
13633
13634 {
Stefan Taunereb582572012-09-21 12:52:50 +000013635 .vendor = "Winbond",
13636 .name = "unknown Winbond (ex Nexcom) SPI chip",
13637 .bustype = BUS_SPI,
13638 .manufacture_id = WINBOND_NEX_ID,
13639 .model_id = GENERIC_DEVICE_ID,
13640 .total_size = 0,
13641 .page_size = 256,
13642 .tested = TEST_BAD_PREW,
13643 .probe = probe_spi_rdid,
13644 .probe_timing = TIMING_ZERO,
13645 .write = NULL,
13646 .read = NULL,
13647 },
13648
13649 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013650 .vendor = "Generic",
13651 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013652 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013653 .manufacture_id = GENERIC_MANUF_ID,
13654 .model_id = GENERIC_DEVICE_ID,
13655 .total_size = 0,
13656 .page_size = 256,
13657 .tested = TEST_BAD_PREW,
13658 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013659 .write = NULL,
13660 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013661
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013662 {
13663 .vendor = "Generic",
13664 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013665 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013666 .manufacture_id = GENERIC_MANUF_ID,
13667 .model_id = GENERIC_DEVICE_ID,
13668 .total_size = 0,
13669 .page_size = 256,
13670 .tested = TEST_BAD_PREW,
13671 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013672 .write = NULL,
13673 },
13674
Stefan Tauner96658be2014-05-26 22:05:31 +000013675 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013676};
Stefan Tauner96658be2014-05-26 22:05:31 +000013677
13678const unsigned int flashchips_size = ARRAY_SIZE(flashchips);