blob: 574ad7499edf8ed26db21894999036d7aac9c308 [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!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001279 .unlock = spi_disable_blockprotect_bp3_srwd,
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,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001385 .tested = TEST_OK_PR,
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 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001398 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001399 .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,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001452 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001453 .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,
Stefan Tauner6697f712014-08-06 15:09:15 +00001997 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001998 .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 Tauner5c316f92015-02-08 21:57:52 +00002176 .tested = TEST_OK_PREW,
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,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002438 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002439 .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,
Stefan Tauner6697f712014-08-06 15:09:15 +00002480 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .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,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002775 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002776 .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 */
Stefan Tauner7de93932014-08-03 13:05:45 +00003052 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003053 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003054 .probe = probe_82802ab,
3055 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003065 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003070 .block_erase = erase_block_82802ab,
3071 },
3072 },
3073 .printlock = printlock_regspace2_block_eraser_0,
3074 .unlock = unlock_regspace2_block_eraser_0,
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
3081 .vendor = "Atmel",
3082 .name = "AT49LH00B4",
3083 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3084 .manufacture_id = ATMEL_ID,
3085 .model_id = ATMEL_AT49LH00B4,
3086 .total_size = 512,
3087 .page_size = 0, /* unused */
3088 .feature_bits = FEATURE_REGISTERMAP,
3089 .tested = TEST_UNTESTED,
3090 .probe = probe_82802ab,
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = {
3096 {8 * 1024, 2},
3097 {16 * 1024, 1},
3098 {32 * 1024, 1},
3099 {64 * 1024, 7},
3100 },
3101 .block_erase = NULL, /* TODO: Implement. */
3102 }, {
3103 .eraseblocks = {
3104 {64 * 1024, 8},
3105 },
3106 .block_erase = erase_block_82802ab,
3107 },
3108 },
3109 .printlock = printlock_regspace2_block_eraser_0,
3110 .unlock = unlock_regspace2_block_eraser_0,
3111 .write = write_82802ab,
3112 .read = read_memmapped,
3113 .voltage = {3000, 3600},
3114 },
3115
3116 {
3117 .vendor = "Atmel",
3118 .name = "AT49LH004",
3119 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3120 .manufacture_id = ATMEL_ID,
3121 .model_id = ATMEL_AT49LH004,
3122 .total_size = 512,
3123 .page_size = 0, /* unused */
3124 .feature_bits = FEATURE_REGISTERMAP,
3125 .tested = TEST_UNTESTED,
3126 .probe = probe_82802ab,
3127 .probe_timing = TIMING_ZERO,
3128 .block_erasers =
3129 {
3130 {
3131 .eraseblocks = {
3132 {64 * 1024, 7},
3133 {32 * 1024, 1},
3134 {8 * 1024, 2},
3135 {16 * 1024, 1},
3136 },
3137 .block_erase = erase_block_82802ab,
3138 }, {
3139 .eraseblocks = {
3140 {64 * 1024, 8},
3141 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003142 .block_erase = NULL, /* TODO: Implement. */
3143 },
3144 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003145 .printlock = printlock_regspace2_block_eraser_0,
3146 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 .write = write_82802ab,
3148 .read = read_memmapped,
3149 .voltage = {3000, 3600},
3150 },
3151
3152 {
Andrew Morganca081462011-09-13 22:05:44 +00003153 .vendor = "Catalyst",
3154 .name = "CAT28F512",
3155 .bustype = BUS_PARALLEL,
3156 .manufacture_id = CATALYST_ID,
3157 .model_id = CATALYST_CAT28F512,
3158 .total_size = 64,
3159 .page_size = 0, /* unused */
3160 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003161 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003162 .probe = probe_jedec, /* FIXME! */
3163 .probe_timing = TIMING_ZERO,
3164 .block_erasers =
3165 {
3166 {
3167 .eraseblocks = { {64 * 1024, 1} },
3168 .block_erase = NULL, /* TODO */
3169 },
3170 },
3171 .write = NULL, /* TODO */
3172 .read = read_memmapped,
3173 .voltage = {4500, 5500},
3174 },
3175
3176 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003177 .vendor = "Bright",
3178 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003179 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003180 .manufacture_id = BRIGHT_ID,
3181 .model_id = BRIGHT_BM29F040,
3182 .total_size = 512,
3183 .page_size = 64 * 1024,
3184 .feature_bits = FEATURE_EITHER_RESET,
3185 .tested = TEST_OK_PR,
3186 .probe = probe_jedec,
3187 .probe_timing = TIMING_ZERO,
3188 .block_erasers =
3189 {
3190 {
3191 .eraseblocks = { {64 * 1024, 8} },
3192 .block_erase = erase_sector_jedec,
3193 }, {
3194 .eraseblocks = { {512 * 1024, 1} },
3195 .block_erase = erase_chip_block_jedec,
3196 },
3197 },
3198 .write = write_jedec_1,
3199 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003200 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003201 },
3202
3203 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003204 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003205 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003206 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003207 .manufacture_id = ESMT_ID,
3208 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003209 .total_size = 256,
3210 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003211 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003212 .tested = TEST_UNTESTED,
3213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003215 .block_erasers =
3216 {
3217 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003218 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003219 {128 * 1024, 1},
3220 {96 * 1024, 1},
3221 {8 * 1024, 2},
3222 {16 * 1024, 1},
3223 },
3224 .block_erase = erase_sector_jedec,
3225 }, {
3226 .eraseblocks = { {256 * 1024, 1} },
3227 .block_erase = erase_chip_block_jedec,
3228 }
3229 },
Sean Nelson35727f72010-01-28 23:55:12 +00003230 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003232 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003233 },
3234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003235 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003236 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003237 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003238 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003239 .manufacture_id = ESMT_ID,
3240 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003241 .total_size = 1024,
3242 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003243 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003244 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003245 .probe = probe_spi_rdid,
3246 .probe_timing = TIMING_ZERO,
3247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = { {4 * 1024, 256} },
3251 .block_erase = spi_block_erase_20,
3252 }, {
3253 .eraseblocks = { {64 * 1024, 16} },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {1024 * 1024, 1} },
3257 .block_erase = spi_block_erase_60,
3258 }, {
3259 .eraseblocks = { {1024 * 1024, 1} },
3260 .block_erase = spi_block_erase_c7,
3261 }
3262 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003263 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003264 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003265 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003266 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003267 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003268 },
3269
3270 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003271 .vendor = "ESMT",
3272 .name = "F25L32PA",
3273 .bustype = BUS_SPI,
3274 .manufacture_id = ESMT_ID,
3275 .model_id = ESMT_F25L32PA,
3276 .total_size = 4096,
3277 .page_size = 256,
3278 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3279 .tested = TEST_UNTESTED,
3280 .probe = probe_spi_rdid,
3281 .probe_timing = TIMING_ZERO,
3282 .block_erasers =
3283 {
3284 {
3285 .eraseblocks = { {4 * 1024, 1024} },
3286 .block_erase = spi_block_erase_20,
3287 }, {
3288 .eraseblocks = { {64 * 1024, 64} },
3289 .block_erase = spi_block_erase_d8,
3290 }, {
3291 .eraseblocks = { {4 * 1024 * 1024, 1} },
3292 .block_erase = spi_block_erase_60,
3293 }, {
3294 .eraseblocks = { {4 * 1024 * 1024, 1} },
3295 .block_erase = spi_block_erase_c7,
3296 }
3297 },
3298 .printlock = spi_prettyprint_status_register_bp2_bpl,
3299 .unlock = spi_disable_blockprotect,
3300 .write = spi_chip_write_256,
3301 .read = spi_chip_read,
3302 .voltage = {2700, 3600},
3303 },
3304
3305 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003306 .vendor = "Eon",
3307 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003308 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003309 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003310 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003311 .total_size = 64,
3312 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003313 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003314 .tested = TEST_UNTESTED,
3315 .probe = probe_spi_rdid,
3316 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003317 .block_erasers =
3318 {
3319 {
3320 .eraseblocks = {
3321 {4 * 1024, 2},
3322 {8 * 1024, 1},
3323 {16 * 1024, 1},
3324 {32 * 1024, 1},
3325 },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {64 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003333 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003334 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003335 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003336 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003337 },
3338
3339 {
3340 .vendor = "Eon",
3341 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003342 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003343 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003344 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .total_size = 64,
3346 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003348 .tested = TEST_UNTESTED,
3349 .probe = probe_spi_rdid,
3350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003351 .block_erasers =
3352 {
3353 {
3354 .eraseblocks = {
3355 {32 * 1024, 1},
3356 {16 * 1024, 1},
3357 {8 * 1024, 1},
3358 {4 * 1024, 2},
3359 },
3360 .block_erase = spi_block_erase_d8,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 1} },
3363 .block_erase = spi_block_erase_c7,
3364 }
3365 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003366 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003368 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003369 .read = spi_chip_read, /* Fast read (0x0B) supported */
3370 .voltage = {2700, 3600},
3371 },
3372
3373 {
3374 .vendor = "Eon",
3375 .name = "EN25P05",
3376 .bustype = BUS_SPI,
3377 .manufacture_id = EON_ID_NOPREFIX,
3378 .model_id = EON_EN25B05,
3379 .total_size = 64,
3380 .page_size = 256,
3381 .feature_bits = FEATURE_WRSR_WREN,
3382 .tested = TEST_UNTESTED,
3383 .probe = probe_spi_rdid,
3384 .probe_timing = TIMING_ZERO,
3385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {32 * 1024, 2} },
3390 .block_erase = spi_block_erase_d8,
3391 }, {
3392 .eraseblocks = { {64 * 1024, 1} },
3393 .block_erase = spi_block_erase_c7,
3394 }
3395 },
3396 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3397 .unlock = spi_disable_blockprotect,
3398 .write = spi_chip_write_256,
3399 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003400 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003401 },
3402
3403 {
3404 .vendor = "Eon",
3405 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003406 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003407 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003408 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003409 .total_size = 128,
3410 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003411 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003412 .tested = TEST_UNTESTED,
3413 .probe = probe_spi_rdid,
3414 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003415 .block_erasers =
3416 {
3417 {
3418 .eraseblocks = {
3419 {4 * 1024, 2},
3420 {8 * 1024, 1},
3421 {16 * 1024, 1},
3422 {32 * 1024, 3},
3423 },
3424 .block_erase = spi_block_erase_d8,
3425 }, {
3426 .eraseblocks = { {128 * 1024, 1} },
3427 .block_erase = spi_block_erase_c7,
3428 }
3429 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003430 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003431 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003432 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003433 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003434 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003435 },
3436
3437 {
3438 .vendor = "Eon",
3439 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003440 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003441 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003442 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003443 .total_size = 128,
3444 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003445 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003446 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003447 .probe = probe_spi_rdid,
3448 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003449 .block_erasers =
3450 {
3451 {
3452 .eraseblocks = {
3453 {32 * 1024, 3},
3454 {16 * 1024, 1},
3455 {8 * 1024, 1},
3456 {4 * 1024, 2},
3457 },
3458 .block_erase = spi_block_erase_d8,
3459 }, {
3460 .eraseblocks = { {128 * 1024, 1} },
3461 .block_erase = spi_block_erase_c7,
3462 }
3463 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003464 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003465 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003466 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003467 .read = spi_chip_read, /* Fast read (0x0B) supported */
3468 .voltage = {2700, 3600},
3469 },
3470
3471 {
3472 .vendor = "Eon",
3473 .name = "EN25P10",
3474 .bustype = BUS_SPI,
3475 .manufacture_id = EON_ID_NOPREFIX,
3476 .model_id = EON_EN25B10,
3477 .total_size = 128,
3478 .page_size = 256,
3479 .feature_bits = FEATURE_WRSR_WREN,
3480 .tested = TEST_UNTESTED,
3481 .probe = probe_spi_rdid,
3482 .probe_timing = TIMING_ZERO,
3483 .block_erasers =
3484 {
3485 {
3486 .eraseblocks = { {32 * 1024, 4} },
3487 .block_erase = spi_block_erase_d8,
3488 }, {
3489 .eraseblocks = { {128 * 1024, 1} },
3490 .block_erase = spi_block_erase_c7,
3491 }
3492 },
3493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3494 .unlock = spi_disable_blockprotect,
3495 .write = spi_chip_write_256,
3496 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003497 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003498 },
3499
3500 {
3501 .vendor = "Eon",
3502 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003503 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003504 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003505 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003506 .total_size = 256,
3507 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003508 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003509 .tested = TEST_UNTESTED,
3510 .probe = probe_spi_rdid,
3511 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003512 .block_erasers =
3513 {
3514 {
3515 .eraseblocks = {
3516 {4 * 1024, 2},
3517 {8 * 1024, 1},
3518 {16 * 1024, 1},
3519 {32 * 1024, 1},
3520 {64 * 1024, 3}
3521 },
3522 .block_erase = spi_block_erase_d8,
3523 }, {
3524 .eraseblocks = { {256 * 1024, 1} },
3525 .block_erase = spi_block_erase_c7,
3526 }
3527 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003529 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003530 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003531 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003532 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003533 },
3534
3535 {
3536 .vendor = "Eon",
3537 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003538 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003539 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003540 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003541 .total_size = 256,
3542 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003543 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003544 .tested = TEST_UNTESTED,
3545 .probe = probe_spi_rdid,
3546 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003547 .block_erasers =
3548 {
3549 {
3550 .eraseblocks = {
3551 {64 * 1024, 3},
3552 {32 * 1024, 1},
3553 {16 * 1024, 1},
3554 {8 * 1024, 1},
3555 {4 * 1024, 2},
3556 },
3557 .block_erase = spi_block_erase_d8,
3558 }, {
3559 .eraseblocks = { {256 * 1024, 1} },
3560 .block_erase = spi_block_erase_c7,
3561 }
3562 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003563 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003564 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003565 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003566 .read = spi_chip_read, /* Fast read (0x0B) supported */
3567 .voltage = {2700, 3600},
3568 },
3569
3570 {
3571 .vendor = "Eon",
3572 .name = "EN25P20",
3573 .bustype = BUS_SPI,
3574 .manufacture_id = EON_ID_NOPREFIX,
3575 .model_id = EON_EN25B20,
3576 .total_size = 256,
3577 .page_size = 256,
3578 .feature_bits = FEATURE_WRSR_WREN,
3579 .tested = TEST_UNTESTED,
3580 .probe = probe_spi_rdid,
3581 .probe_timing = TIMING_ZERO,
3582 .block_erasers =
3583 {
3584 {
3585 .eraseblocks = { {64 * 1024, 4} },
3586 .block_erase = spi_block_erase_d8,
3587 }, {
3588 .eraseblocks = { {256 * 1024, 1} },
3589 .block_erase = spi_block_erase_c7,
3590 }
3591 },
3592 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3593 .unlock = spi_disable_blockprotect,
3594 .write = spi_chip_write_256,
3595 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003596 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003597 },
3598
3599 {
3600 .vendor = "Eon",
3601 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003602 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003603 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003604 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003605 .total_size = 512,
3606 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003607 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003608 .tested = TEST_UNTESTED,
3609 .probe = probe_spi_rdid,
3610 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .block_erasers =
3612 {
3613 {
3614 .eraseblocks = {
3615 {4 * 1024, 2},
3616 {8 * 1024, 1},
3617 {16 * 1024, 1},
3618 {32 * 1024, 1},
3619 {64 * 1024, 7}
3620 },
3621 .block_erase = spi_block_erase_d8,
3622 }, {
3623 .eraseblocks = { {512 * 1024, 1} },
3624 .block_erase = spi_block_erase_c7,
3625 }
3626 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003627 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003628 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003629 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003630 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003631 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003632 },
3633
3634 {
3635 .vendor = "Eon",
3636 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003637 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003638 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003639 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003640 .total_size = 512,
3641 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003642 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003643 .tested = TEST_UNTESTED,
3644 .probe = probe_spi_rdid,
3645 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003646 .block_erasers =
3647 {
3648 {
3649 .eraseblocks = {
3650 {64 * 1024, 7},
3651 {32 * 1024, 1},
3652 {16 * 1024, 1},
3653 {8 * 1024, 1},
3654 {4 * 1024, 2},
3655 },
3656 .block_erase = spi_block_erase_d8,
3657 }, {
3658 .eraseblocks = { {512 * 1024, 1} },
3659 .block_erase = spi_block_erase_c7,
3660 }
3661 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003663 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003664 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003665 .read = spi_chip_read, /* Fast read (0x0B) supported */
3666 .voltage = {2700, 3600},
3667 },
3668
3669 {
3670 .vendor = "Eon",
3671 .name = "EN25P40",
3672 .bustype = BUS_SPI,
3673 .manufacture_id = EON_ID_NOPREFIX,
3674 .model_id = EON_EN25B40,
3675 .total_size = 512,
3676 .page_size = 256,
3677 .feature_bits = FEATURE_WRSR_WREN,
3678 .tested = TEST_UNTESTED,
3679 .probe = probe_spi_rdid,
3680 .probe_timing = TIMING_ZERO,
3681 .block_erasers =
3682 {
3683 {
3684 .eraseblocks = { {64 * 1024, 8} },
3685 .block_erase = spi_block_erase_d8,
3686 }, {
3687 .eraseblocks = { {512 * 1024, 1} },
3688 .block_erase = spi_block_erase_c7,
3689 }
3690 },
3691 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3692 .unlock = spi_disable_blockprotect,
3693 .write = spi_chip_write_256,
3694 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003695 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003696 },
3697
3698 {
3699 .vendor = "Eon",
3700 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003701 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003702 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003703 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003704 .total_size = 1024,
3705 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003706 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003707 .tested = TEST_UNTESTED,
3708 .probe = probe_spi_rdid,
3709 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003710 .block_erasers =
3711 {
3712 {
3713 .eraseblocks = {
3714 {4 * 1024, 2},
3715 {8 * 1024, 1},
3716 {16 * 1024, 1},
3717 {32 * 1024, 1},
3718 {64 * 1024, 15}
3719 },
3720 .block_erase = spi_block_erase_d8,
3721 }, {
3722 .eraseblocks = { {1024 * 1024, 1} },
3723 .block_erase = spi_block_erase_c7,
3724 }
3725 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003726 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003727 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003728 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003729 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003730 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003731 },
3732
3733 {
3734 .vendor = "Eon",
3735 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003736 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003737 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003738 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003739 .total_size = 1024,
3740 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003741 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003742 .tested = TEST_UNTESTED,
3743 .probe = probe_spi_rdid,
3744 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003745 .block_erasers =
3746 {
3747 {
3748 .eraseblocks = {
3749 {64 * 1024, 15},
3750 {32 * 1024, 1},
3751 {16 * 1024, 1},
3752 {8 * 1024, 1},
3753 {4 * 1024, 2},
3754 },
3755 .block_erase = spi_block_erase_d8,
3756 }, {
3757 .eraseblocks = { {1024 * 1024, 1} },
3758 .block_erase = spi_block_erase_c7,
3759 }
3760 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003761 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003762 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003763 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003764 .read = spi_chip_read, /* Fast read (0x0B) supported */
3765 .voltage = {2700, 3600},
3766 },
3767
3768 {
3769 .vendor = "Eon",
3770 .name = "EN25P80",
3771 .bustype = BUS_SPI,
3772 .manufacture_id = EON_ID_NOPREFIX,
3773 .model_id = EON_EN25B80,
3774 .total_size = 1024,
3775 .page_size = 256,
3776 .feature_bits = FEATURE_WRSR_WREN,
3777 .tested = TEST_UNTESTED,
3778 .probe = probe_spi_rdid,
3779 .probe_timing = TIMING_ZERO,
3780 .block_erasers =
3781 {
3782 {
3783 .eraseblocks = { {64 * 1024, 16} },
3784 .block_erase = spi_block_erase_d8,
3785 }, {
3786 .eraseblocks = { {1024 * 1024, 1} },
3787 .block_erase = spi_block_erase_c7,
3788 }
3789 },
3790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3791 .unlock = spi_disable_blockprotect,
3792 .write = spi_chip_write_256,
3793 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003794 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003795 },
3796
3797 {
3798 .vendor = "Eon",
3799 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003800 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003801 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003802 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003803 .total_size = 2048,
3804 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003805 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003806 .tested = TEST_UNTESTED,
3807 .probe = probe_spi_rdid,
3808 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003809 .block_erasers =
3810 {
3811 {
3812 .eraseblocks = {
3813 {4 * 1024, 2},
3814 {8 * 1024, 1},
3815 {16 * 1024, 1},
3816 {32 * 1024, 1},
3817 {64 * 1024, 31},
3818 },
3819 .block_erase = spi_block_erase_d8,
3820 }, {
3821 .eraseblocks = { {2 * 1024 * 1024, 1} },
3822 .block_erase = spi_block_erase_c7,
3823 }
3824 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003825 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003826 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003827 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003828 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003829 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003830 },
3831
3832 {
3833 .vendor = "Eon",
3834 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003835 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003836 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003837 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003838 .total_size = 2048,
3839 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003840 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003841 .tested = TEST_UNTESTED,
3842 .probe = probe_spi_rdid,
3843 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003844 .block_erasers =
3845 {
3846 {
3847 .eraseblocks = {
3848 {64 * 1024, 31},
3849 {32 * 1024, 1},
3850 {16 * 1024, 1},
3851 {8 * 1024, 1},
3852 {4 * 1024, 2},
3853 },
3854 .block_erase = spi_block_erase_d8,
3855 }, {
3856 .eraseblocks = { {2 * 1024 * 1024, 1} },
3857 .block_erase = spi_block_erase_c7,
3858 }
3859 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003860 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003861 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003862 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003863 .read = spi_chip_read, /* Fast read (0x0B) supported */
3864 .voltage = {2700, 3600},
3865 },
3866
3867 {
3868 .vendor = "Eon",
3869 .name = "EN25P16",
3870 .bustype = BUS_SPI,
3871 .manufacture_id = EON_ID_NOPREFIX,
3872 .model_id = EON_EN25B16,
3873 .total_size = 2048,
3874 .page_size = 256,
3875 .feature_bits = FEATURE_WRSR_WREN,
3876 .tested = TEST_UNTESTED,
3877 .probe = probe_spi_rdid,
3878 .probe_timing = TIMING_ZERO,
3879 .block_erasers =
3880 {
3881 {
3882 .eraseblocks = { {64 * 1024, 32} },
3883 .block_erase = spi_block_erase_d8,
3884 }, {
3885 .eraseblocks = { {2 * 1024 * 1024, 1} },
3886 .block_erase = spi_block_erase_c7,
3887 }
3888 },
3889 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3890 .unlock = spi_disable_blockprotect,
3891 .write = spi_chip_write_256,
3892 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003893 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003894 },
3895
3896 {
3897 .vendor = "Eon",
3898 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003899 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003900 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003901 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003902 .total_size = 4096,
3903 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003904 /* OTP: 512B total; enter 0x3A */
3905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003906 .tested = TEST_UNTESTED,
3907 .probe = probe_spi_rdid,
3908 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003909 .block_erasers =
3910 {
3911 {
3912 .eraseblocks = {
3913 {4 * 1024, 2},
3914 {8 * 1024, 1},
3915 {16 * 1024, 1},
3916 {32 * 1024, 1},
3917 {64 * 1024, 63},
3918 },
3919 .block_erase = spi_block_erase_d8,
3920 }, {
3921 .eraseblocks = { {4 * 1024 * 1024, 1} },
3922 .block_erase = spi_block_erase_c7,
3923 }
3924 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003925 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003926 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003927 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003928 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003929 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003930 },
3931
3932 {
3933 .vendor = "Eon",
3934 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003935 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003936 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003937 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003938 .total_size = 4096,
3939 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003940 /* OTP: 512B total; enter 0x3A */
3941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00003942 .tested = TEST_UNTESTED,
3943 .probe = probe_spi_rdid,
3944 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003945 .block_erasers =
3946 {
3947 {
3948 .eraseblocks = {
3949 {64 * 1024, 63},
3950 {32 * 1024, 1},
3951 {16 * 1024, 1},
3952 {8 * 1024, 1},
3953 {4 * 1024, 2},
3954 },
3955 .block_erase = spi_block_erase_d8,
3956 }, {
3957 .eraseblocks = { {4 * 1024 * 1024, 1} },
3958 .block_erase = spi_block_erase_c7,
3959 }
3960 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003961 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003962 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003963 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003964 .read = spi_chip_read, /* Fast read (0x0B) supported */
3965 .voltage = {2700, 3600},
3966 },
3967
3968 {
3969 .vendor = "Eon",
3970 .name = "EN25P32", /* Uniform version of EN25B32 */
3971 .bustype = BUS_SPI,
3972 .manufacture_id = EON_ID_NOPREFIX,
3973 .model_id = EON_EN25B32,
3974 .total_size = 4096,
3975 .page_size = 256,
3976 /* OTP: 512B total; enter 0x3A */
3977 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3978 .tested = TEST_UNTESTED,
3979 .probe = probe_spi_rdid,
3980 .probe_timing = TIMING_ZERO,
3981 .block_erasers =
3982 {
3983 {
3984 .eraseblocks = { {64 * 1024, 64} },
3985 .block_erase = spi_block_erase_d8,
3986 }, {
3987 .eraseblocks = { {4 * 1024 * 1024, 1} },
3988 .block_erase = spi_block_erase_c7,
3989 }
3990 },
3991 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3992 .unlock = spi_disable_blockprotect,
3993 .write = spi_chip_write_256,
3994 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003995 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003996 },
3997
3998 {
3999 .vendor = "Eon",
4000 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004001 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004002 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004003 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004004 .total_size = 8192,
4005 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004006 /* OTP: 512B total; enter 0x3A */
4007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004008 .tested = TEST_UNTESTED,
4009 .probe = probe_spi_rdid,
4010 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004011 .block_erasers =
4012 {
4013 {
4014 .eraseblocks = {
4015 {4 * 1024, 2},
4016 {8 * 1024, 1},
4017 {16 * 1024, 1},
4018 {32 * 1024, 1},
4019 {64 * 1024, 127},
4020 },
4021 .block_erase = spi_block_erase_d8,
4022 }, {
4023 .eraseblocks = { {8 * 1024 * 1024, 1} },
4024 .block_erase = spi_block_erase_c7,
4025 }
4026 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004027 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004028 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004029 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004030 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004031 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004032 },
4033
4034 {
4035 .vendor = "Eon",
4036 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004037 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004038 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004039 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004040 .total_size = 8192,
4041 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004042 /* OTP: 512B total; enter 0x3A */
4043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004044 .tested = TEST_UNTESTED,
4045 .probe = probe_spi_rdid,
4046 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004047 .block_erasers =
4048 {
4049 {
4050 .eraseblocks = {
4051 {64 * 1024, 127},
4052 {32 * 1024, 1},
4053 {16 * 1024, 1},
4054 {8 * 1024, 1},
4055 {4 * 1024, 2},
4056 },
4057 .block_erase = spi_block_erase_d8,
4058 }, {
4059 .eraseblocks = { {8 * 1024 * 1024, 1} },
4060 .block_erase = spi_block_erase_c7,
4061 }
4062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004064 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004065 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004066 .read = spi_chip_read, /* Fast read (0x0B) supported */
4067 .voltage = {2700, 3600},
4068 },
4069
4070 {
4071 .vendor = "Eon",
4072 .name = "EN25P64",
4073 .bustype = BUS_SPI,
4074 .manufacture_id = EON_ID_NOPREFIX,
4075 .model_id = EON_EN25B64,
4076 .total_size = 8192,
4077 .page_size = 256,
4078 /* OTP: 512B total; enter 0x3A */
4079 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4080 .tested = TEST_UNTESTED,
4081 .probe = probe_spi_rdid,
4082 .probe_timing = TIMING_ZERO,
4083 .block_erasers =
4084 {
4085 {
4086 .eraseblocks = { {64 * 1024, 128} },
4087 .block_erase = spi_block_erase_d8,
4088 }, {
4089 .eraseblocks = { {8 * 1024 * 1024, 1} },
4090 .block_erase = spi_block_erase_c7,
4091 }
4092 },
4093 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4094 .unlock = spi_disable_blockprotect,
4095 .write = spi_chip_write_256,
4096 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004097 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004098 },
4099
4100 {
4101 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004102 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004103 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004104 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004105 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004106 .total_size = 64,
4107 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004108 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004109 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004110 .probe = probe_spi_rdid,
4111 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004112 .block_erasers =
4113 {
4114 {
4115 .eraseblocks = { {4 * 1024, 16} },
4116 .block_erase = spi_block_erase_20,
4117 }, {
4118 .eraseblocks = { {32 * 1024, 2} },
4119 .block_erase = spi_block_erase_d8,
4120 }, {
4121 .eraseblocks = { {32 * 1024, 2} },
4122 .block_erase = spi_block_erase_52,
4123 }, {
4124 .eraseblocks = { {64 * 1024, 1} },
4125 .block_erase = spi_block_erase_60,
4126 }, {
4127 .eraseblocks = { {64 * 1024, 1} },
4128 .block_erase = spi_block_erase_c7,
4129 }
4130 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004131 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004132 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004133 .write = spi_chip_write_256,
4134 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004135 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004136 },
4137
4138 {
4139 .vendor = "Eon",
4140 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004141 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004142 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004143 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004144 .total_size = 128,
4145 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004146 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004147 .tested = TEST_UNTESTED,
4148 .probe = probe_spi_rdid,
4149 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004150 .block_erasers =
4151 {
4152 {
4153 .eraseblocks = { {4 * 1024, 32} },
4154 .block_erase = spi_block_erase_20,
4155 }, {
4156 .eraseblocks = { {32 * 1024, 4} },
4157 .block_erase = spi_block_erase_d8,
4158 }, {
4159 .eraseblocks = { {32 * 1024, 4} },
4160 .block_erase = spi_block_erase_52,
4161 }, {
4162 .eraseblocks = { {128 * 1024, 1} },
4163 .block_erase = spi_block_erase_60,
4164 }, {
4165 .eraseblocks = { {128 * 1024, 1} },
4166 .block_erase = spi_block_erase_c7,
4167 }
4168 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004169 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004170 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004171 .write = spi_chip_write_256,
4172 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004173 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004174 },
4175
4176 {
4177 .vendor = "Eon",
4178 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004179 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004180 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004181 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004182 .total_size = 256,
4183 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004184 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004185 .tested = TEST_UNTESTED,
4186 .probe = probe_spi_rdid,
4187 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004188 .block_erasers =
4189 {
4190 {
4191 .eraseblocks = { {4 * 1024, 64} },
4192 .block_erase = spi_block_erase_20,
4193 }, {
4194 .eraseblocks = { {64 * 1024, 4} },
4195 .block_erase = spi_block_erase_d8,
4196 }, {
4197 .eraseblocks = { {64 * 1024, 4} },
4198 .block_erase = spi_block_erase_52,
4199 }, {
4200 .eraseblocks = { {256 * 1024, 1} },
4201 .block_erase = spi_block_erase_60,
4202 }, {
4203 .eraseblocks = { {256 * 1024, 1} },
4204 .block_erase = spi_block_erase_c7,
4205 }
4206 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004207 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004208 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004209 .write = spi_chip_write_256,
4210 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004211 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004212 },
4213
4214 {
4215 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004216 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004217 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004218 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004219 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004220 .total_size = 512,
4221 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004222 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004223 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004224 .probe = probe_spi_rdid,
4225 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004226 .block_erasers =
4227 {
4228 {
Sean Nelson54596372010-01-09 05:30:14 +00004229 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004230 .block_erase = spi_block_erase_20,
4231 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004232 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004233 .block_erase = spi_block_erase_d8,
4234 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004235 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004236 .block_erase = spi_block_erase_60,
4237 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004238 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004239 .block_erase = spi_block_erase_c7,
4240 },
4241 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004243 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004244 .write = spi_chip_write_256,
4245 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004246 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004247 },
4248
4249 {
4250 .vendor = "Eon",
4251 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004252 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004253 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004254 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004255 .total_size = 1024,
4256 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004257 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004258 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004259 .probe = probe_spi_rdid,
4260 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004261 .block_erasers =
4262 {
4263 {
4264 .eraseblocks = { {4 * 1024, 256} },
4265 .block_erase = spi_block_erase_20,
4266 }, {
4267 .eraseblocks = { {64 * 1024, 16} },
4268 .block_erase = spi_block_erase_d8,
4269 }, {
4270 .eraseblocks = { {1024 * 1024, 1} },
4271 .block_erase = spi_block_erase_60,
4272 }, {
4273 .eraseblocks = { {1024 * 1024, 1} },
4274 .block_erase = spi_block_erase_c7,
4275 }
4276 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004277 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004278 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004279 .write = spi_chip_write_256,
4280 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004281 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004282 },
4283
4284 {
4285 .vendor = "Eon",
4286 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004287 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004288 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004289 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004290 .total_size = 2048,
4291 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004292 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004293 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004294 .probe = probe_spi_rdid,
4295 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004296 .block_erasers =
4297 {
4298 {
4299 .eraseblocks = { {4 * 1024, 512} },
4300 .block_erase = spi_block_erase_20,
4301 }, {
4302 .eraseblocks = { {64 * 1024, 32} },
4303 .block_erase = spi_block_erase_d8,
4304 }, {
4305 .eraseblocks = { {2 * 1024 * 1024, 1} },
4306 .block_erase = spi_block_erase_60,
4307 }, {
4308 .eraseblocks = { {2 * 1024 * 1024, 1} },
4309 .block_erase = spi_block_erase_c7,
4310 }
4311 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004312 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004313 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004314 .write = spi_chip_write_256,
4315 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004316 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004317 },
4318
4319 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004320 .vendor = "Eon",
4321 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004322 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004323 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004324 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004325 .total_size = 4096,
4326 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004327 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004328 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004329 .probe = probe_spi_rdid,
4330 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004331 .block_erasers =
4332 {
4333 {
4334 .eraseblocks = { {4 * 1024, 1024} },
4335 .block_erase = spi_block_erase_20,
4336 }, {
4337 .eraseblocks = { {64 * 1024, 64} },
4338 .block_erase = spi_block_erase_d8,
4339 }, {
4340 .eraseblocks = { {4 * 1024 * 1024, 1} },
4341 .block_erase = spi_block_erase_60,
4342 }, {
4343 .eraseblocks = { {4 * 1024 * 1024, 1} },
4344 .block_erase = spi_block_erase_c7,
4345 }
4346 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004347 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004348 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004349 .write = spi_chip_write_256,
4350 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004351 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004352 },
4353
4354 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004355 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004356 .name = "EN25F64",
4357 .bustype = BUS_SPI,
4358 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004359 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004360 .total_size = 8192,
4361 .page_size = 256,
4362 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004363 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004364 .probe = probe_spi_rdid,
4365 .probe_timing = TIMING_ZERO,
4366 .block_erasers =
4367 {
4368 {
4369 .eraseblocks = { {4 * 1024, 2048} },
4370 .block_erase = spi_block_erase_20,
4371 }, {
4372 .eraseblocks = { {64 * 1024, 128} },
4373 .block_erase = spi_block_erase_d8,
4374 }, {
4375 .eraseblocks = { {8 * 1024 * 1024, 1} },
4376 .block_erase = spi_block_erase_60,
4377 }, {
4378 .eraseblocks = { {8 * 1024 * 1024, 1} },
4379 .block_erase = spi_block_erase_c7,
4380 }
4381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004382 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004383 .unlock = spi_disable_blockprotect,
4384 .write = spi_chip_write_256,
4385 .read = spi_chip_read,
4386 .voltage = {2700, 3600},
4387 },
4388
4389 {
4390 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004391 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004392 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004393 .manufacture_id = EON_ID_NOPREFIX,
4394 .model_id = EON_EN25Q40,
4395 .total_size = 512,
4396 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004397 /* OTP: 256B total; enter 0x3A */
4398 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004399 .tested = TEST_UNTESTED,
4400 .probe = probe_spi_rdid,
4401 .probe_timing = TIMING_ZERO,
4402 .block_erasers =
4403 {
4404 {
4405 .eraseblocks = { {4 * 1024, 128} },
4406 .block_erase = spi_block_erase_20,
4407 }, {
4408 .eraseblocks = { {64 * 1024, 8} },
4409 .block_erase = spi_block_erase_d8,
4410 }, {
4411 .eraseblocks = { {512 * 1024, 1} },
4412 .block_erase = spi_block_erase_60,
4413 }, {
4414 .eraseblocks = { {512 * 1024, 1} },
4415 .block_erase = spi_block_erase_c7,
4416 }
4417 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004418 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004419 .unlock = spi_disable_blockprotect,
4420 .write = spi_chip_write_256,
4421 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004422 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004423 },
4424
4425 {
4426 .vendor = "Eon",
4427 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004428 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004429 .manufacture_id = EON_ID_NOPREFIX,
4430 .model_id = EON_EN25Q80,
4431 .total_size = 1024,
4432 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004433 /* OTP: 256B total; enter 0x3A */
4434 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004435 .tested = TEST_UNTESTED,
4436 .probe = probe_spi_rdid,
4437 .probe_timing = TIMING_ZERO,
4438 .block_erasers =
4439 {
4440 {
4441 .eraseblocks = { {4 * 1024, 256} },
4442 .block_erase = spi_block_erase_20,
4443 }, {
4444 .eraseblocks = { {64 * 1024, 16} },
4445 .block_erase = spi_block_erase_d8,
4446 }, {
4447 .eraseblocks = { {1024 * 1024, 1} },
4448 .block_erase = spi_block_erase_60,
4449 }, {
4450 .eraseblocks = { {1024 * 1024, 1} },
4451 .block_erase = spi_block_erase_c7,
4452 }
4453 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004454 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004455 .unlock = spi_disable_blockprotect,
4456 .write = spi_chip_write_256,
4457 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004458 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004459 },
4460
4461 {
4462 /* Note: EN25D16 is an evil twin which shares the model ID
4463 but has different write protection capabilities */
4464 .vendor = "Eon",
4465 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004466 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004467 .manufacture_id = EON_ID_NOPREFIX,
4468 .model_id = EON_EN25Q16,
4469 .total_size = 2048,
4470 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004471 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4472 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004473 .tested = TEST_UNTESTED,
4474 .probe = probe_spi_rdid,
4475 .probe_timing = TIMING_ZERO,
4476 .block_erasers =
4477 {
4478 {
4479 .eraseblocks = { {4 * 1024, 512} },
4480 .block_erase = spi_block_erase_20,
4481 }, {
4482 .eraseblocks = { {64 * 1024, 32} },
4483 .block_erase = spi_block_erase_d8,
4484 }, {
4485 /* not supported by Q16 version */
4486 .eraseblocks = { {64 * 1024, 32} },
4487 .block_erase = spi_block_erase_52,
4488 }, {
4489 .eraseblocks = { {2 * 1024 * 1024, 1} },
4490 .block_erase = spi_block_erase_60,
4491 }, {
4492 .eraseblocks = { {2 * 1024 * 1024, 1} },
4493 .block_erase = spi_block_erase_c7,
4494 }
4495 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004496 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004497 .unlock = spi_disable_blockprotect,
4498 .write = spi_chip_write_256,
4499 .read = spi_chip_read,
4500 .voltage = {2700, 3600},
4501 },
4502
4503 {
4504 .vendor = "Eon",
4505 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004506 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004507 .manufacture_id = EON_ID_NOPREFIX,
4508 .model_id = EON_EN25Q32,
4509 .total_size = 4096,
4510 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004511 /* OTP: 512B total; enter 0x3A */
4512 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004513 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004514 .probe = probe_spi_rdid,
4515 .probe_timing = TIMING_ZERO,
4516 .block_erasers =
4517 {
4518 {
4519 .eraseblocks = { {4 * 1024, 1024} },
4520 .block_erase = spi_block_erase_20,
4521 }, {
4522 .eraseblocks = { {64 * 1024, 64} },
4523 .block_erase = spi_block_erase_d8,
4524 }, {
4525 .eraseblocks = { {4 * 1024 * 1024, 1} },
4526 .block_erase = spi_block_erase_60,
4527 }, {
4528 .eraseblocks = { {4 * 1024 * 1024, 1} },
4529 .block_erase = spi_block_erase_c7,
4530 }
4531 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004532 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004533 .unlock = spi_disable_blockprotect,
4534 .write = spi_chip_write_256,
4535 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004536 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004537 },
4538
4539 {
4540 .vendor = "Eon",
4541 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004542 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004543 .manufacture_id = EON_ID_NOPREFIX,
4544 .model_id = EON_EN25Q64,
4545 .total_size = 8192,
4546 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004547 /* OTP: 512B total; enter 0x3A */
4548 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004549 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004550 .probe = probe_spi_rdid,
4551 .probe_timing = TIMING_ZERO,
4552 .block_erasers =
4553 {
4554 {
4555 .eraseblocks = { {4 * 1024, 2048} },
4556 .block_erase = spi_block_erase_20,
4557 }, {
4558 .eraseblocks = { {64 * 1024, 128} },
4559 .block_erase = spi_block_erase_d8,
4560 }, {
4561 .eraseblocks = { {8 * 1024 * 1024, 1} },
4562 .block_erase = spi_block_erase_60,
4563 }, {
4564 .eraseblocks = { {8 * 1024 * 1024, 1} },
4565 .block_erase = spi_block_erase_c7,
4566 }
4567 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004568 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004569 .unlock = spi_disable_blockprotect,
4570 .write = spi_chip_write_256,
4571 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004572 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004573 },
4574
4575 {
4576 .vendor = "Eon",
4577 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004578 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004579 .manufacture_id = EON_ID_NOPREFIX,
4580 .model_id = EON_EN25Q128,
4581 .total_size = 16384,
4582 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004583 /* OTP: 512B total; enter 0x3A */
4584 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004585 .tested = TEST_UNTESTED,
4586 .probe = probe_spi_rdid,
4587 .probe_timing = TIMING_ZERO,
4588 .block_erasers =
4589 {
4590 {
4591 .eraseblocks = { {4 * 1024, 4096} },
4592 .block_erase = spi_block_erase_20,
4593 }, {
4594 .eraseblocks = { {64 * 1024, 256} },
4595 .block_erase = spi_block_erase_d8,
4596 }, {
4597 .eraseblocks = { {16 * 1024 * 1024, 1} },
4598 .block_erase = spi_block_erase_60,
4599 }, {
4600 .eraseblocks = { {16 * 1024 * 1024, 1} },
4601 .block_erase = spi_block_erase_c7,
4602 }
4603 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004604 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004605 .unlock = spi_disable_blockprotect,
4606 .write = spi_chip_write_256,
4607 .read = spi_chip_read,
4608 },
4609
4610 {
4611 .vendor = "Eon",
4612 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004613 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004614 .manufacture_id = EON_ID_NOPREFIX,
4615 .model_id = EON_EN25QH16,
4616 .total_size = 2048,
4617 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004618 /* supports SFDP */
4619 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004620 /* QPI enable 0x38, disable 0xFF */
4621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004622 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004623 .probe = probe_spi_rdid,
4624 .probe_timing = TIMING_ZERO,
4625 .block_erasers =
4626 {
4627 {
4628 .eraseblocks = { {4 * 1024, 512} },
4629 .block_erase = spi_block_erase_20,
4630 }, {
4631 .eraseblocks = { {64 * 1024, 32} },
4632 .block_erase = spi_block_erase_d8,
4633 }, {
4634 .eraseblocks = { {1024 * 2048, 1} },
4635 .block_erase = spi_block_erase_60,
4636 }, {
4637 .eraseblocks = { {1024 * 2048, 1} },
4638 .block_erase = spi_block_erase_c7,
4639 }
4640 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004641 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004642 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004643 .write = spi_chip_write_256,
4644 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004645 .voltage = {2700, 3600},
4646 },
4647
4648 {
4649 .vendor = "Eon",
4650 .name = "EN25QH32",
4651 .bustype = BUS_SPI,
4652 .manufacture_id = EON_ID_NOPREFIX,
4653 .model_id = EON_EN25QH32,
4654 .total_size = 4096,
4655 .page_size = 256,
4656 /* supports SFDP */
4657 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004658 /* QPI enable 0x38, disable 0xFF */
4659 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004660 .tested = TEST_UNTESTED,
4661 .probe = probe_spi_rdid,
4662 .probe_timing = TIMING_ZERO,
4663 .block_erasers =
4664 {
4665 {
4666 .eraseblocks = { {4 * 1024, 1024} },
4667 .block_erase = spi_block_erase_20,
4668 }, {
4669 .eraseblocks = { {64 * 1024, 64} },
4670 .block_erase = spi_block_erase_d8,
4671 }, {
4672 .eraseblocks = { {1024 * 4096, 1} },
4673 .block_erase = spi_block_erase_60,
4674 }, {
4675 .eraseblocks = { {1024 * 4096, 1} },
4676 .block_erase = spi_block_erase_c7,
4677 }
4678 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004679 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004680 .unlock = spi_disable_blockprotect_bp3_srwd,
4681 .write = spi_chip_write_256,
4682 .read = spi_chip_read,
4683 .voltage = {2700, 3600},
4684 },
4685
4686 {
4687 .vendor = "Eon",
4688 .name = "EN25QH64",
4689 .bustype = BUS_SPI,
4690 .manufacture_id = EON_ID_NOPREFIX,
4691 .model_id = EON_EN25QH64,
4692 .total_size = 8192,
4693 .page_size = 256,
4694 /* supports SFDP */
4695 /* OTP: 512B total; enter 0x3A */
4696 /* QPI enable 0x38, disable 0xFF */
4697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004698 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004699 .probe = probe_spi_rdid,
4700 .probe_timing = TIMING_ZERO,
4701 .block_erasers = {
4702 {
4703 .eraseblocks = { {4 * 1024, 2048} },
4704 .block_erase = spi_block_erase_20,
4705 }, {
4706 .eraseblocks = { {64 * 1024, 128} },
4707 .block_erase = spi_block_erase_d8,
4708 }, {
4709 .eraseblocks = { { 8192 * 1024, 1} },
4710 .block_erase = spi_block_erase_60,
4711 }, {
4712 .eraseblocks = { { 8192 * 1024, 1} },
4713 .block_erase = spi_block_erase_c7,
4714 }
4715 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004716 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004717 .unlock = spi_disable_blockprotect_bp3_srwd,
4718 .write = spi_chip_write_256,
4719 .read = spi_chip_read,
4720 .voltage = {2700, 3600},
4721 },
4722
4723 {
4724 .vendor = "Eon",
4725 .name = "EN25QH128",
4726 .bustype = BUS_SPI,
4727 .manufacture_id = EON_ID_NOPREFIX,
4728 .model_id = EON_EN25QH128,
4729 .total_size = 16384,
4730 .page_size = 256,
4731 /* supports SFDP */
4732 /* OTP: 512B total; enter 0x3A */
4733 /* QPI enable 0x38, disable 0xFF */
4734 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4735 .tested = TEST_UNTESTED,
4736 .probe = probe_spi_rdid,
4737 .probe_timing = TIMING_ZERO,
4738 .block_erasers = {
4739 {
4740 .eraseblocks = { {4 * 1024, 4096} },
4741 .block_erase = spi_block_erase_20,
4742 }, {
4743 .eraseblocks = { {64 * 1024, 256} },
4744 .block_erase = spi_block_erase_d8,
4745 }, {
4746 .eraseblocks = { { 16384 * 1024, 1} },
4747 .block_erase = spi_block_erase_60,
4748 }, {
4749 .eraseblocks = { { 16384 * 1024, 1} },
4750 .block_erase = spi_block_erase_c7,
4751 }
4752 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004753 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004754 .unlock = spi_disable_blockprotect_bp3_srwd,
4755 .write = spi_chip_write_256,
4756 .read = spi_chip_read,
4757 .voltage = {2700, 3600},
4758 },
4759
4760 {
4761 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004762 .name = "EN25S10",
4763 .bustype = BUS_SPI,
4764 .manufacture_id = EON_ID_NOPREFIX,
4765 .model_id = EON_EN25S10,
4766 .total_size = 128,
4767 .page_size = 256,
4768 /* OTP: 256B total; enter 0x3A */
4769 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4770 .tested = TEST_UNTESTED,
4771 .probe = probe_spi_rdid,
4772 .probe_timing = TIMING_ZERO,
4773 .block_erasers = {
4774 {
4775 .eraseblocks = { {4 * 1024, 32} },
4776 .block_erase = spi_block_erase_20,
4777 }, {
4778 .eraseblocks = { {32 * 1024, 4} },
4779 .block_erase = spi_block_erase_52,
4780 }, {
4781 .eraseblocks = { {128 * 1024, 1} },
4782 .block_erase = spi_block_erase_60,
4783 }, {
4784 .eraseblocks = { {128 * 1024, 1} },
4785 .block_erase = spi_block_erase_c7,
4786 }
4787 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004788 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004789 .unlock = spi_disable_blockprotect,
4790 .write = spi_chip_write_256,
4791 .read = spi_chip_read,
4792 .voltage = {1650, 1950},
4793 },
4794
4795 {
4796 .vendor = "Eon",
4797 .name = "EN25S20",
4798 .bustype = BUS_SPI,
4799 .manufacture_id = EON_ID_NOPREFIX,
4800 .model_id = EON_EN25S20,
4801 .total_size = 256,
4802 .page_size = 256,
4803 /* OTP: 256B total; enter 0x3A */
4804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4805 .tested = TEST_UNTESTED,
4806 .probe = probe_spi_rdid,
4807 .probe_timing = TIMING_ZERO,
4808 .block_erasers = {
4809 {
4810 .eraseblocks = { {4 * 1024, 64} },
4811 .block_erase = spi_block_erase_20,
4812 }, {
4813 .eraseblocks = { {64 * 1024, 4} },
4814 .block_erase = spi_block_erase_d8,
4815 }, {
4816 .eraseblocks = { {256 * 1024, 1} },
4817 .block_erase = spi_block_erase_60,
4818 }, {
4819 .eraseblocks = { {256 * 1024, 1} },
4820 .block_erase = spi_block_erase_c7,
4821 }
4822 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004823 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004824 .unlock = spi_disable_blockprotect,
4825 .write = spi_chip_write_256,
4826 .read = spi_chip_read,
4827 .voltage = {1650, 1950},
4828 },
4829
4830 {
4831 .vendor = "Eon",
4832 .name = "EN25S40",
4833 .bustype = BUS_SPI,
4834 .manufacture_id = EON_ID_NOPREFIX,
4835 .model_id = EON_EN25S40,
4836 .total_size = 512,
4837 .page_size = 256,
4838 /* OTP: 256B total; enter 0x3A */
4839 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4840 .tested = TEST_UNTESTED,
4841 .probe = probe_spi_rdid,
4842 .probe_timing = TIMING_ZERO,
4843 .block_erasers = {
4844 {
4845 .eraseblocks = { {4 * 1024, 128} },
4846 .block_erase = spi_block_erase_20,
4847 }, {
4848 .eraseblocks = { {64 * 1024, 8} },
4849 .block_erase = spi_block_erase_d8,
4850 }, {
4851 .eraseblocks = { {512 * 1024, 1} },
4852 .block_erase = spi_block_erase_60,
4853 }, {
4854 .eraseblocks = { {512 * 1024, 1} },
4855 .block_erase = spi_block_erase_c7,
4856 }
4857 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004858 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004859 .unlock = spi_disable_blockprotect,
4860 .write = spi_chip_write_256,
4861 .read = spi_chip_read,
4862 .voltage = {1650, 1950},
4863 },
4864
4865 {
4866 .vendor = "Eon",
4867 .name = "EN25S80",
4868 .bustype = BUS_SPI,
4869 .manufacture_id = EON_ID_NOPREFIX,
4870 .model_id = EON_EN25S80,
4871 .total_size = 1024,
4872 .page_size = 256,
4873 /* OTP: 256B total; enter 0x3A */
4874 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4875 .tested = TEST_UNTESTED,
4876 .probe = probe_spi_rdid,
4877 .probe_timing = TIMING_ZERO,
4878 .block_erasers = {
4879 {
4880 .eraseblocks = { {4 * 1024, 256} },
4881 .block_erase = spi_block_erase_20,
4882 }, {
4883 .eraseblocks = { {64 * 1024, 16} },
4884 .block_erase = spi_block_erase_d8,
4885 }, {
4886 .eraseblocks = { {1024 * 1024, 1} },
4887 .block_erase = spi_block_erase_60,
4888 }, {
4889 .eraseblocks = { {1024 * 1024, 1} },
4890 .block_erase = spi_block_erase_c7,
4891 }
4892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004893 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004894 .unlock = spi_disable_blockprotect,
4895 .write = spi_chip_write_256,
4896 .read = spi_chip_read,
4897 .voltage = {1650, 1950},
4898 },
4899
4900 {
4901 .vendor = "Eon",
4902 .name = "EN25S16",
4903 .bustype = BUS_SPI,
4904 .manufacture_id = EON_ID_NOPREFIX,
4905 .model_id = EON_EN25S16,
4906 .total_size = 2048,
4907 .page_size = 256,
4908 /* OTP: 512B total; enter 0x3A */
4909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4910 .tested = TEST_UNTESTED,
4911 .probe = probe_spi_rdid,
4912 .probe_timing = TIMING_ZERO,
4913 .block_erasers = {
4914 {
4915 .eraseblocks = { {4 * 1024, 512} },
4916 .block_erase = spi_block_erase_20,
4917 }, {
4918 .eraseblocks = { {64 * 1024, 32} },
4919 .block_erase = spi_block_erase_52,
4920 }, {
4921 .eraseblocks = { {32 * 1024, 64} },
4922 .block_erase = spi_block_erase_d8,
4923 }, {
4924 .eraseblocks = { {2048 * 1024, 1} },
4925 .block_erase = spi_block_erase_60,
4926 }, {
4927 .eraseblocks = { {2048 * 1024, 1} },
4928 .block_erase = spi_block_erase_c7,
4929 }
4930 },
4931 .printlock = spi_prettyprint_status_register_en25s_wp,
4932 .unlock = spi_disable_blockprotect_bp3_srwd,
4933 .write = spi_chip_write_256,
4934 .read = spi_chip_read,
4935 .voltage = {1650, 1950},
4936 },
4937
4938 {
4939 .vendor = "Eon",
4940 .name = "EN25S32",
4941 .bustype = BUS_SPI,
4942 .manufacture_id = EON_ID_NOPREFIX,
4943 .model_id = EON_EN25S32,
4944 .total_size = 4096,
4945 .page_size = 256,
4946 /* OTP: 512B total; enter 0x3A */
4947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4948 .tested = TEST_UNTESTED,
4949 .probe = probe_spi_rdid,
4950 .probe_timing = TIMING_ZERO,
4951 .block_erasers = {
4952 {
4953 .eraseblocks = { {4 * 1024, 1024} },
4954 .block_erase = spi_block_erase_20,
4955 }, {
4956 .eraseblocks = { {32 * 1024, 128} },
4957 .block_erase = spi_block_erase_52,
4958 }, {
4959 .eraseblocks = { {64 * 1024, 64} },
4960 .block_erase = spi_block_erase_d8,
4961 }, {
4962 .eraseblocks = { {4096 * 1024, 1} },
4963 .block_erase = spi_block_erase_60,
4964 }, {
4965 .eraseblocks = { {4096 * 1024, 1} },
4966 .block_erase = spi_block_erase_c7,
4967 }
4968 },
4969 .printlock = spi_prettyprint_status_register_en25s_wp,
4970 .unlock = spi_disable_blockprotect_bp3_srwd,
4971 .write = spi_chip_write_256,
4972 .read = spi_chip_read,
4973 .voltage = {1650, 1950},
4974 },
4975
4976 {
4977 .vendor = "Eon",
4978 .name = "EN25S64",
4979 .bustype = BUS_SPI,
4980 .manufacture_id = EON_ID_NOPREFIX,
4981 .model_id = EON_EN25S64,
4982 .total_size = 8192,
4983 .page_size = 256,
4984 /* OTP: 512B total; enter 0x3A */
4985 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4986 .tested = TEST_UNTESTED,
4987 .probe = probe_spi_rdid,
4988 .probe_timing = TIMING_ZERO,
4989 .block_erasers = {
4990 {
4991 .eraseblocks = { {4 * 1024, 2048} },
4992 .block_erase = spi_block_erase_20,
4993 }, {
4994 .eraseblocks = { {64 * 1024, 128} },
4995 .block_erase = spi_block_erase_d8,
4996 }, {
4997 .eraseblocks = { {8192 * 1024, 1} },
4998 .block_erase = spi_block_erase_60,
4999 }, {
5000 .eraseblocks = { {8192 * 1024, 1} },
5001 .block_erase = spi_block_erase_c7,
5002 }
5003 },
5004 .printlock = spi_prettyprint_status_register_en25s_wp,
5005 .unlock = spi_disable_blockprotect_bp3_srwd,
5006 .write = spi_chip_write_256,
5007 .read = spi_chip_read,
5008 .voltage = {1650, 1950},
5009 },
5010
5011 {
5012 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005013 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005014 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005015 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005016 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005017 .total_size = 128,
5018 .page_size = 128,
5019 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005020 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005021 .probe = probe_jedec,
5022 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5023 .block_erasers =
5024 {
5025 {
5026 .eraseblocks = { {16 * 1024, 8} },
5027 .block_erase = erase_sector_jedec,
5028 },
5029 {
5030 .eraseblocks = { {128 * 1024, 1} },
5031 .block_erase = erase_chip_block_jedec,
5032 },
5033 },
5034 .write = write_jedec_1,
5035 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005036 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005037 },
5038
5039 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005040 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005041 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005042 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005043 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005044 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005045 .total_size = 256,
5046 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005047 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005048 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005049 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005050 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005051 .block_erasers =
5052 {
5053 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005054 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005055 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005056 {8 * 1024, 2},
5057 {32 * 1024, 1},
5058 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005059 },
5060 .block_erase = erase_sector_jedec,
5061 }, {
5062 .eraseblocks = { {256 * 1024, 1} },
5063 .block_erase = erase_chip_block_jedec,
5064 },
5065 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005066 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005067 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005068 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005069 },
5070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005071 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005072 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005073 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005074 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005075 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005076 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005077 .total_size = 256,
5078 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005079 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005080 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005081 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005082 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005083 .block_erasers =
5084 {
5085 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005086 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005087 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005088 {32 * 1024, 1},
5089 {8 * 1024, 2},
5090 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005091 },
5092 .block_erase = erase_sector_jedec,
5093 }, {
5094 .eraseblocks = { {256 * 1024, 1} },
5095 .block_erase = erase_chip_block_jedec,
5096 },
5097 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005098 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005099 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005100 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005101 },
5102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005103 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005104 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005105 .name = "EN29LV040(A)",
5106 .bustype = BUS_PARALLEL,
5107 .manufacture_id = EON_ID,
5108 .model_id = EON_EN29LV040,
5109 .total_size = 512,
5110 .page_size = 4 * 1024,
5111 .tested = TEST_OK_PREW,
5112 .probe = probe_jedec,
5113 .probe_timing = TIMING_ZERO,
5114 .block_erasers =
5115 {
5116 {
5117 .eraseblocks = { {64 * 1024, 8} },
5118 .block_erase = erase_sector_jedec,
5119 },
5120 {
5121 .eraseblocks = { {512 * 1024, 1} },
5122 .block_erase = erase_chip_block_jedec,
5123 },
5124 },
5125 .write = write_jedec_1,
5126 .read = read_memmapped,
5127 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5128 },
5129
5130 {
5131 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005132 .name = "EN29LV640B",
5133 .bustype = BUS_PARALLEL,
5134 .manufacture_id = EON_ID,
5135 .model_id = EON_EN29LV640B,
5136 .total_size = 8192,
5137 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005138 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005139 .tested = TEST_OK_PREW,
5140 .probe = probe_en29lv640b,
5141 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5142 .block_erasers =
5143 {
5144 {
5145 .eraseblocks = {
5146 {8 * 1024, 8},
5147 {64 * 1024, 127},
5148 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005149 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005150 }, {
5151 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005152 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005153 },
5154 },
5155 .write = write_en29lv640b,
5156 .read = read_memmapped,
5157 .voltage = {2700, 3600},
5158 },
5159
5160 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005161 .vendor = "Eon",
5162 .name = "EN29GL064(A)B",
5163 .bustype = BUS_PARALLEL,
5164 .manufacture_id = EON_ID,
5165 .model_id = EON_EN29GL064B,
5166 .total_size = 8192,
5167 .page_size = 128 * 1024, /* actual page size is 16 */
5168 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5169 .tested = TEST_UNTESTED,
5170 .probe = probe_jedec_29gl,
5171 .probe_timing = TIMING_ZERO,
5172 .block_erasers =
5173 {
5174 {
5175 .eraseblocks = {
5176 {8 * 1024, 8},
5177 {64 * 1024, 127},
5178 },
5179 .block_erase = erase_sector_jedec,
5180 }, {
5181 .eraseblocks = { {8 * 1024 * 1024, 1} },
5182 .block_erase = erase_chip_block_jedec,
5183 },
5184 },
5185 .write = write_jedec_1,
5186 .read = read_memmapped,
5187 .voltage = {2700, 3600},
5188 },
5189
5190 {
5191 .vendor = "Eon",
5192 .name = "EN29GL064(A)T",
5193 .bustype = BUS_PARALLEL,
5194 .manufacture_id = EON_ID,
5195 .model_id = EON_EN29GL064T,
5196 .total_size = 8192,
5197 .page_size = 128 * 1024, /* actual page size is 16 */
5198 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5199 .tested = TEST_UNTESTED,
5200 .probe = probe_jedec_29gl,
5201 .probe_timing = TIMING_ZERO,
5202 .block_erasers =
5203 {
5204 {
5205 .eraseblocks = {
5206 {64 * 1024, 127},
5207 {8 * 1024, 8},
5208 },
5209 .block_erase = erase_sector_jedec,
5210 }, {
5211 .eraseblocks = { {8 * 1024 * 1024, 1} },
5212 .block_erase = erase_chip_block_jedec,
5213 },
5214 },
5215 .write = write_jedec_1,
5216 .read = read_memmapped,
5217 .voltage = {2700, 3600},
5218 },
5219
5220 {
5221 .vendor = "Eon",
5222 .name = "EN29GL064H/L",
5223 .bustype = BUS_PARALLEL,
5224 .manufacture_id = EON_ID,
5225 .model_id = EON_EN29GL064HL,
5226 .total_size = 8192,
5227 .page_size = 128 * 1024, /* actual page size is 16 */
5228 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5229 .tested = TEST_UNTESTED,
5230 .probe = probe_jedec_29gl,
5231 .probe_timing = TIMING_ZERO,
5232 .block_erasers =
5233 {
5234 {
5235 .eraseblocks = { {64 * 1024, 128} },
5236 .block_erase = erase_sector_jedec,
5237 }, {
5238 .eraseblocks = { {8 * 1024 * 1024, 1} },
5239 .block_erase = erase_chip_block_jedec,
5240 },
5241 },
5242 .write = write_jedec_1,
5243 .read = read_memmapped,
5244 .voltage = {2700, 3600},
5245 },
5246
5247 {
5248 .vendor = "Eon",
5249 .name = "EN29GL128",
5250 .bustype = BUS_PARALLEL,
5251 .manufacture_id = EON_ID,
5252 .model_id = EON_EN29GL128HL,
5253 .total_size = 16384,
5254 .page_size = 128 * 1024, /* actual page size is 16 */
5255 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5256 .tested = TEST_UNTESTED,
5257 .probe = probe_jedec_29gl,
5258 .probe_timing = TIMING_ZERO,
5259 .block_erasers =
5260 {
5261 {
5262 .eraseblocks = { {128 * 1024, 128} },
5263 .block_erase = erase_sector_jedec,
5264 }, {
5265 .eraseblocks = { {16 * 1024 * 1024, 1} },
5266 .block_erase = erase_chip_block_jedec,
5267 },
5268 },
5269 .write = write_jedec_1,
5270 .read = read_memmapped,
5271 .voltage = {2700, 3600},
5272 },
5273
5274 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005275 .vendor = "Fujitsu",
5276 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005277 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005278 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005279 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005280 .total_size = 512,
5281 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005282 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005283 .tested = TEST_UNTESTED,
5284 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005286 .block_erasers =
5287 {
5288 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005289 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005290 {16 * 1024, 1},
5291 {8 * 1024, 2},
5292 {32 * 1024, 1},
5293 {64 * 1024, 7},
5294 },
Sean Nelson35727f72010-01-28 23:55:12 +00005295 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005296 }, {
5297 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005298 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005299 },
5300 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005301 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005302 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005303 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005304 },
5305
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005306 {
5307 .vendor = "Fujitsu",
5308 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005309 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005310 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005311 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005312 .total_size = 512,
5313 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005314 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005315 .tested = TEST_UNTESTED,
5316 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005318 .block_erasers =
5319 {
5320 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005321 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005322 {64 * 1024, 7},
5323 {32 * 1024, 1},
5324 {8 * 1024, 2},
5325 {16 * 1024, 1},
5326 },
Sean Nelson35727f72010-01-28 23:55:12 +00005327 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005328 }, {
5329 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005330 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005331 },
5332 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005333 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005334 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005335 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005336 },
5337
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005338 {
Sean Nelson35727f72010-01-28 23:55:12 +00005339 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005340 .vendor = "Fujitsu",
5341 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005342 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005343 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005344 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005345 .total_size = 512,
5346 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005347 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005348 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005349 .probe = probe_jedec,
5350 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005351 .block_erasers =
5352 {
5353 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005354 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005355 {16 * 1024, 1},
5356 {8 * 1024, 2},
5357 {32 * 1024, 1},
5358 {64 * 1024, 7},
5359 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005360 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005361 }, {
5362 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005363 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005364 },
5365 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005366 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005367 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005368 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005369 },
5370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005371 {
5372 .vendor = "Fujitsu",
5373 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005375 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005376 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005377 .total_size = 512,
5378 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005379 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005380 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005381 .probe = probe_jedec,
5382 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005383 .block_erasers =
5384 {
5385 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005386 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005387 {64 * 1024, 7},
5388 {32 * 1024, 1},
5389 {8 * 1024, 2},
5390 {16 * 1024, 1},
5391 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005392 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005393 }, {
5394 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005395 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005396 },
5397 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005398 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005399 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005400 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005401 },
5402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005403 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005404 .vendor = "Fujitsu",
5405 .name = "MBM29LV160BE",
5406 .bustype = BUS_PARALLEL,
5407 .manufacture_id = FUJITSU_ID,
5408 .model_id = FUJITSU_MBM29LV160BE,
5409 .total_size = 2 * 1024,
5410 .page_size = 0,
5411 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5412 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005413 .probe = probe_jedec,
5414 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005415 .block_erasers =
5416 {
5417 {
5418 .eraseblocks = {
5419 {16 * 1024, 1},
5420 {8 * 1024, 2},
5421 {32 * 1024, 1},
5422 {64 * 1024, 31},
5423 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005424 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005425 }, {
5426 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005427 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005428 },
5429 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005430 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005431 .read = read_memmapped,
5432 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5433 },
5434
5435 {
5436 .vendor = "Fujitsu",
5437 .name = "MBM29LV160TE",
5438 .bustype = BUS_PARALLEL,
5439 .manufacture_id = FUJITSU_ID,
5440 .model_id = FUJITSU_MBM29LV160TE,
5441 .total_size = 2 * 1024,
5442 .page_size = 0,
5443 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5444 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005445 .probe = probe_jedec,
5446 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005447 .block_erasers =
5448 {
5449 {
5450 .eraseblocks = {
5451 {64 * 1024, 31},
5452 {32 * 1024, 1},
5453 {8 * 1024, 2},
5454 {16 * 1024, 1},
5455 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005456 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005457 }, {
5458 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005459 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005460 },
5461 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005462 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005463 .read = read_memmapped,
5464 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5465 },
5466
5467 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005468 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005469 .name = "GD25LQ40",
5470 .bustype = BUS_SPI,
5471 .manufacture_id = GIGADEVICE_ID,
5472 .model_id = GIGADEVICE_GD25LQ40,
5473 .total_size = 512,
5474 .page_size = 256,
5475 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5476 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5477 .tested = TEST_UNTESTED,
5478 .probe = probe_spi_rdid,
5479 .probe_timing = TIMING_ZERO,
5480 .block_erasers =
5481 {
5482 {
5483 .eraseblocks = { {4 * 1024, 128} },
5484 .block_erase = spi_block_erase_20,
5485 }, {
5486 .eraseblocks = { {32 * 1024, 16} },
5487 .block_erase = spi_block_erase_52,
5488 }, {
5489 .eraseblocks = { {64 * 1024, 8} },
5490 .block_erase = spi_block_erase_d8,
5491 }, {
5492 .eraseblocks = { {512 * 1024, 1} },
5493 .block_erase = spi_block_erase_60,
5494 }, {
5495 .eraseblocks = { {512 * 1024, 1} },
5496 .block_erase = spi_block_erase_c7,
5497 }
5498 },
5499 .printlock = spi_prettyprint_status_register_bp4_srwd,
5500 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5501 .write = spi_chip_write_256,
5502 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5503 .voltage = {1695, 1950},
5504 },
5505
5506 {
5507 .vendor = "GigaDevice",
5508 .name = "GD25LQ80",
5509 .bustype = BUS_SPI,
5510 .manufacture_id = GIGADEVICE_ID,
5511 .model_id = GIGADEVICE_GD25LQ80,
5512 .total_size = 1024,
5513 .page_size = 256,
5514 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5515 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5516 .tested = TEST_UNTESTED,
5517 .probe = probe_spi_rdid,
5518 .probe_timing = TIMING_ZERO,
5519 .block_erasers =
5520 {
5521 {
5522 .eraseblocks = { {4 * 1024, 256} },
5523 .block_erase = spi_block_erase_20,
5524 }, {
5525 .eraseblocks = { {32 * 1024, 32} },
5526 .block_erase = spi_block_erase_52,
5527 }, {
5528 .eraseblocks = { {64 * 1024, 16} },
5529 .block_erase = spi_block_erase_d8,
5530 }, {
5531 .eraseblocks = { {1 * 1024 * 1024, 1} },
5532 .block_erase = spi_block_erase_60,
5533 }, {
5534 .eraseblocks = { {1 * 1024 * 1024, 1} },
5535 .block_erase = spi_block_erase_c7,
5536 }
5537 },
5538 .printlock = spi_prettyprint_status_register_bp4_srwd,
5539 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5540 .write = spi_chip_write_256,
5541 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5542 .voltage = {1695, 1950},
5543 },
5544
5545 {
5546 .vendor = "GigaDevice",
5547 .name = "GD25LQ16",
5548 .bustype = BUS_SPI,
5549 .manufacture_id = GIGADEVICE_ID,
5550 .model_id = GIGADEVICE_GD25LQ16,
5551 .total_size = 2048,
5552 .page_size = 256,
5553 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5554 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5555 .tested = TEST_UNTESTED,
5556 .probe = probe_spi_rdid,
5557 .probe_timing = TIMING_ZERO,
5558 .block_erasers =
5559 {
5560 {
5561 .eraseblocks = { {4 * 1024, 512} },
5562 .block_erase = spi_block_erase_20,
5563 }, {
5564 .eraseblocks = { {32 * 1024, 64} },
5565 .block_erase = spi_block_erase_52,
5566 }, {
5567 .eraseblocks = { {64 * 1024, 32} },
5568 .block_erase = spi_block_erase_d8,
5569 }, {
5570 .eraseblocks = { {2 * 1024 * 1024, 1} },
5571 .block_erase = spi_block_erase_60,
5572 }, {
5573 .eraseblocks = { {2 * 1024 * 1024, 1} },
5574 .block_erase = spi_block_erase_c7,
5575 }
5576 },
5577 .printlock = spi_prettyprint_status_register_bp4_srwd,
5578 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5579 .write = spi_chip_write_256,
5580 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5581 .voltage = {1695, 1950},
5582 },
5583
5584 {
5585 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005586 .name = "GD25LQ32",
5587 .bustype = BUS_SPI,
5588 .manufacture_id = GIGADEVICE_ID,
5589 .model_id = GIGADEVICE_GD25LQ32,
5590 .total_size = 4096,
5591 .page_size = 256,
5592 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5593 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5594 .tested = TEST_OK_PREW,
5595 .probe = probe_spi_rdid,
5596 .probe_timing = TIMING_ZERO,
5597 .block_erasers =
5598 {
5599 {
5600 .eraseblocks = { {4 * 1024, 1024} },
5601 .block_erase = spi_block_erase_20,
5602 }, {
5603 .eraseblocks = { {32 * 1024, 128} },
5604 .block_erase = spi_block_erase_52,
5605 }, {
5606 .eraseblocks = { {64 * 1024, 64} },
5607 .block_erase = spi_block_erase_d8,
5608 }, {
5609 .eraseblocks = { {4 * 1024 * 1024, 1} },
5610 .block_erase = spi_block_erase_60,
5611 }, {
5612 .eraseblocks = { {4 * 1024 * 1024, 1} },
5613 .block_erase = spi_block_erase_c7,
5614 }
5615 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005616 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005617 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5618 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005619 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5620 .voltage = {1695, 1950},
5621 },
5622
5623 {
5624 .vendor = "GigaDevice",
5625 .name = "GD25LQ64(B)",
5626 .bustype = BUS_SPI,
5627 .manufacture_id = GIGADEVICE_ID,
5628 .model_id = GIGADEVICE_GD25LQ64,
5629 .total_size = 8192,
5630 .page_size = 256,
5631 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5632 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5633 .tested = TEST_UNTESTED,
5634 .probe = probe_spi_rdid,
5635 .probe_timing = TIMING_ZERO,
5636 .block_erasers =
5637 {
5638 {
5639 .eraseblocks = { {4 * 1024, 2048} },
5640 .block_erase = spi_block_erase_20,
5641 }, {
5642 .eraseblocks = { {32 * 1024, 256} },
5643 .block_erase = spi_block_erase_52,
5644 }, {
5645 .eraseblocks = { {64 * 1024, 128} },
5646 .block_erase = spi_block_erase_d8,
5647 }, {
5648 .eraseblocks = { {8 * 1024 * 1024, 1} },
5649 .block_erase = spi_block_erase_60,
5650 }, {
5651 .eraseblocks = { {8 * 1024 * 1024, 1} },
5652 .block_erase = spi_block_erase_c7,
5653 }
5654 },
5655 .printlock = spi_prettyprint_status_register_bp4_srwd,
5656 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5657 .write = spi_chip_write_256,
5658 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5659 .voltage = {1695, 1950},
5660 },
5661
5662 {
5663 .vendor = "GigaDevice",
5664 .name = "GD25LQ128",
5665 .bustype = BUS_SPI,
5666 .manufacture_id = GIGADEVICE_ID,
5667 .model_id = GIGADEVICE_GD25LQ128,
5668 .total_size = 16384,
5669 .page_size = 256,
5670 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5672 .tested = TEST_UNTESTED,
5673 .probe = probe_spi_rdid,
5674 .probe_timing = TIMING_ZERO,
5675 .block_erasers =
5676 {
5677 {
5678 .eraseblocks = { {4 * 1024, 4096} },
5679 .block_erase = spi_block_erase_20,
5680 }, {
5681 .eraseblocks = { {32 * 1024, 512} },
5682 .block_erase = spi_block_erase_52,
5683 }, {
5684 .eraseblocks = { {64 * 1024, 256} },
5685 .block_erase = spi_block_erase_d8,
5686 }, {
5687 .eraseblocks = { {16 * 1024 * 1024, 1} },
5688 .block_erase = spi_block_erase_60,
5689 }, {
5690 .eraseblocks = { {16 * 1024 * 1024, 1} },
5691 .block_erase = spi_block_erase_c7,
5692 }
5693 },
5694 .printlock = spi_prettyprint_status_register_bp4_srwd,
5695 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5696 .write = spi_chip_write_256,
5697 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5698 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005699 },
5700
5701 {
5702 .vendor = "GigaDevice",
5703 .name = "GD25Q512",
5704 .bustype = BUS_SPI,
5705 .manufacture_id = GIGADEVICE_ID,
5706 .model_id = GIGADEVICE_GD25Q512,
5707 .total_size = 64,
5708 .page_size = 256,
5709 .feature_bits = FEATURE_WRSR_WREN,
5710 .tested = TEST_UNTESTED,
5711 .probe = probe_spi_rdid,
5712 .probe_timing = TIMING_ZERO,
5713 .block_erasers = {
5714 {
5715 .eraseblocks = { {4 * 1024, 16} },
5716 .block_erase = spi_block_erase_20,
5717 }, {
5718 .eraseblocks = { {32 * 1024, 2} },
5719 .block_erase = spi_block_erase_52,
5720 }, {
5721 .eraseblocks = { {64 * 1024, 1} },
5722 .block_erase = spi_block_erase_60,
5723 }, {
5724 .eraseblocks = { {64 * 1024, 1} },
5725 .block_erase = spi_block_erase_c7,
5726 }
5727 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005728 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005729 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5730 .write = spi_chip_write_256,
5731 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5732 .voltage = {2700, 3600},
5733 },
5734
5735 {
5736 .vendor = "GigaDevice",
5737 .name = "GD25Q10",
5738 .bustype = BUS_SPI,
5739 .manufacture_id = GIGADEVICE_ID,
5740 .model_id = GIGADEVICE_GD25Q10,
5741 .total_size = 128,
5742 .page_size = 256,
5743 .feature_bits = FEATURE_WRSR_WREN,
5744 .tested = TEST_UNTESTED,
5745 .probe = probe_spi_rdid,
5746 .probe_timing = TIMING_ZERO,
5747 .block_erasers = {
5748 {
5749 .eraseblocks = { {4 * 1024, 32} },
5750 .block_erase = spi_block_erase_20,
5751 }, {
5752 .eraseblocks = { {32 * 1024, 4} },
5753 .block_erase = spi_block_erase_52,
5754 }, {
5755 .eraseblocks = { {64 * 1024, 2} },
5756 .block_erase = spi_block_erase_d8,
5757 }, {
5758 .eraseblocks = { {128 * 1024, 1} },
5759 .block_erase = spi_block_erase_60,
5760 }, {
5761 .eraseblocks = { {128 * 1024, 1} },
5762 .block_erase = spi_block_erase_c7,
5763 }
5764 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005765 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005766 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5767 .write = spi_chip_write_256,
5768 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5769 .voltage = {2700, 3600},
5770 },
5771
5772 {
5773 .vendor = "GigaDevice",
5774 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005775 .bustype = BUS_SPI,
5776 .manufacture_id = GIGADEVICE_ID,
5777 .model_id = GIGADEVICE_GD25Q20,
5778 .total_size = 256,
5779 .page_size = 256,
5780 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005781 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005782 .probe = probe_spi_rdid,
5783 .probe_timing = TIMING_ZERO,
5784 .block_erasers =
5785 {
5786 {
5787 .eraseblocks = { {4 * 1024, 64} },
5788 .block_erase = spi_block_erase_20,
5789 }, {
5790 .eraseblocks = { {32 * 1024, 8} },
5791 .block_erase = spi_block_erase_52,
5792 }, {
5793 .eraseblocks = { {64 * 1024, 4} },
5794 .block_erase = spi_block_erase_d8,
5795 }, {
5796 .eraseblocks = { {256 * 1024, 1} },
5797 .block_erase = spi_block_erase_60,
5798 }, {
5799 .eraseblocks = { {256 * 1024, 1} },
5800 .block_erase = spi_block_erase_c7,
5801 }
5802 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005803 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005804 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005805 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005806 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005807 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005808 },
5809
5810 {
5811 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005812 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005813 .bustype = BUS_SPI,
5814 .manufacture_id = GIGADEVICE_ID,
5815 .model_id = GIGADEVICE_GD25Q40,
5816 .total_size = 512,
5817 .page_size = 256,
5818 .feature_bits = FEATURE_WRSR_WREN,
5819 .tested = TEST_UNTESTED,
5820 .probe = probe_spi_rdid,
5821 .probe_timing = TIMING_ZERO,
5822 .block_erasers =
5823 {
5824 {
5825 .eraseblocks = { {4 * 1024, 128} },
5826 .block_erase = spi_block_erase_20,
5827 }, {
5828 .eraseblocks = { {32 * 1024, 16} },
5829 .block_erase = spi_block_erase_52,
5830 }, {
5831 .eraseblocks = { {64 * 1024, 8} },
5832 .block_erase = spi_block_erase_d8,
5833 }, {
5834 .eraseblocks = { {512 * 1024, 1} },
5835 .block_erase = spi_block_erase_60,
5836 }, {
5837 .eraseblocks = { {512 * 1024, 1} },
5838 .block_erase = spi_block_erase_c7,
5839 }
5840 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005841 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005842 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005843 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005844 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005845 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005846 },
5847
5848 {
5849 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005850 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005851 .bustype = BUS_SPI,
5852 .manufacture_id = GIGADEVICE_ID,
5853 .model_id = GIGADEVICE_GD25Q80,
5854 .total_size = 1024,
5855 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005856 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005857 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5858 .tested = TEST_OK_PREW,
5859 .probe = probe_spi_rdid,
5860 .probe_timing = TIMING_ZERO,
5861 .block_erasers =
5862 {
5863 {
5864 .eraseblocks = { {4 * 1024, 256} },
5865 .block_erase = spi_block_erase_20,
5866 }, {
5867 .eraseblocks = { {32 * 1024, 32} },
5868 .block_erase = spi_block_erase_52,
5869 }, {
5870 .eraseblocks = { {64 * 1024, 16} },
5871 .block_erase = spi_block_erase_d8,
5872 }, {
5873 .eraseblocks = { {1024 * 1024, 1} },
5874 .block_erase = spi_block_erase_60,
5875 }, {
5876 .eraseblocks = { {1024 * 1024, 1} },
5877 .block_erase = spi_block_erase_c7,
5878 }
5879 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005880 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005881 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005882 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005884 .voltage = {2700, 3600},
5885 },
5886
5887 {
5888 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005889 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005890 .bustype = BUS_SPI,
5891 .manufacture_id = GIGADEVICE_ID,
5892 .model_id = GIGADEVICE_GD25Q16,
5893 .total_size = 2048,
5894 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005895 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00005897 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005898 .probe = probe_spi_rdid,
5899 .probe_timing = TIMING_ZERO,
5900 .block_erasers =
5901 {
5902 {
5903 .eraseblocks = { {4 * 1024, 512} },
5904 .block_erase = spi_block_erase_20,
5905 }, {
5906 .eraseblocks = { {32 * 1024, 64} },
5907 .block_erase = spi_block_erase_52,
5908 }, {
5909 .eraseblocks = { {64 * 1024, 32} },
5910 .block_erase = spi_block_erase_d8,
5911 }, {
5912 .eraseblocks = { {2 * 1024 * 1024, 1} },
5913 .block_erase = spi_block_erase_60,
5914 }, {
5915 .eraseblocks = { {2 * 1024 * 1024, 1} },
5916 .block_erase = spi_block_erase_c7,
5917 }
5918 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005919 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005920 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005921 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005922 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005923 .voltage = {2700, 3600},
5924 },
5925
5926 {
5927 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005928 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005929 .bustype = BUS_SPI,
5930 .manufacture_id = GIGADEVICE_ID,
5931 .model_id = GIGADEVICE_GD25Q32,
5932 .total_size = 4096,
5933 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005934 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005936 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005937 .probe = probe_spi_rdid,
5938 .probe_timing = TIMING_ZERO,
5939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 1024} },
5943 .block_erase = spi_block_erase_20,
5944 }, {
5945 .eraseblocks = { {32 * 1024, 128} },
5946 .block_erase = spi_block_erase_52,
5947 }, {
5948 .eraseblocks = { {64 * 1024, 64} },
5949 .block_erase = spi_block_erase_d8,
5950 }, {
5951 .eraseblocks = { {4 * 1024 * 1024, 1} },
5952 .block_erase = spi_block_erase_60,
5953 }, {
5954 .eraseblocks = { {4 * 1024 * 1024, 1} },
5955 .block_erase = spi_block_erase_c7,
5956 }
5957 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005958 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005959 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005960 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005961 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005962 .voltage = {2700, 3600},
5963 },
5964
5965 {
5966 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005967 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005968 .bustype = BUS_SPI,
5969 .manufacture_id = GIGADEVICE_ID,
5970 .model_id = GIGADEVICE_GD25Q64,
5971 .total_size = 8192,
5972 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005973 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005975 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005976 .probe = probe_spi_rdid,
5977 .probe_timing = TIMING_ZERO,
5978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {4 * 1024, 2048} },
5982 .block_erase = spi_block_erase_20,
5983 }, {
5984 .eraseblocks = { {32 * 1024, 256} },
5985 .block_erase = spi_block_erase_52,
5986 }, {
5987 .eraseblocks = { {64 * 1024, 128} },
5988 .block_erase = spi_block_erase_d8,
5989 }, {
5990 .eraseblocks = { {8 * 1024 * 1024, 1} },
5991 .block_erase = spi_block_erase_60,
5992 }, {
5993 .eraseblocks = { {8 * 1024 * 1024, 1} },
5994 .block_erase = spi_block_erase_c7,
5995 }
5996 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005997 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005998 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005999 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006001 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006002 },
6003
6004 {
6005 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006006 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006007 .bustype = BUS_SPI,
6008 .manufacture_id = GIGADEVICE_ID,
6009 .model_id = GIGADEVICE_GD25Q128,
6010 .total_size = 16384,
6011 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006012 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006013 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6014 .tested = TEST_UNTESTED,
6015 .probe = probe_spi_rdid,
6016 .probe_timing = TIMING_ZERO,
6017 .block_erasers =
6018 {
6019 {
6020 .eraseblocks = { {4 * 1024, 4096} },
6021 .block_erase = spi_block_erase_20,
6022 }, {
6023 .eraseblocks = { {32 * 1024, 512} },
6024 .block_erase = spi_block_erase_52,
6025 }, {
6026 .eraseblocks = { {64 * 1024, 256} },
6027 .block_erase = spi_block_erase_d8,
6028 }, {
6029 .eraseblocks = { {16 * 1024 * 1024, 1} },
6030 .block_erase = spi_block_erase_60,
6031 }, {
6032 .eraseblocks = { {16 * 1024 * 1024, 1} },
6033 .block_erase = spi_block_erase_c7,
6034 }
6035 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006036 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006037 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6038 .write = spi_chip_write_256,
6039 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6040 .voltage = {2700, 3600},
6041 },
6042
6043 {
6044 .vendor = "GigaDevice",
6045 .name = "GD25T80",
6046 .bustype = BUS_SPI,
6047 .manufacture_id = GIGADEVICE_ID,
6048 .model_id = GIGADEVICE_GD25T80,
6049 .total_size = 1024,
6050 .page_size = 256,
6051 /* OTP: 256B total; enter 0x3A */
6052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6053 .tested = TEST_UNTESTED,
6054 .probe = probe_spi_rdid,
6055 .probe_timing = TIMING_ZERO,
6056 .block_erasers = {
6057 {
6058 .eraseblocks = { {4 * 1024, 256} },
6059 .block_erase = spi_block_erase_20,
6060 }, {
6061 .eraseblocks = { {64 * 1024, 16} },
6062 .block_erase = spi_block_erase_52,
6063 }, {
6064 .eraseblocks = { {64 * 1024, 16} },
6065 .block_erase = spi_block_erase_d8,
6066 }, {
6067 .eraseblocks = { {1024 * 1024, 1} },
6068 .block_erase = spi_block_erase_60,
6069 }, {
6070 .eraseblocks = { {1024 * 1024, 1} },
6071 .block_erase = spi_block_erase_c7,
6072 }
6073 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006074 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006075 .unlock = spi_disable_blockprotect,
6076 .write = spi_chip_write_256,
6077 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006078 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006079 },
6080
6081 {
David Borgc96a8bd2010-06-21 16:12:22 +00006082 .vendor = "Hyundai",
6083 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006084 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006085 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006086 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006087 .total_size = 256,
6088 .page_size = 256 * 1024,
6089 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006090 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006091 .probe = probe_jedec,
6092 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6093 .block_erasers =
6094 {
6095 {
6096 .eraseblocks = {
6097 {64 * 1024, 3},
6098 {32 * 1024, 1},
6099 {8 * 1024, 2},
6100 {16 * 1024, 1},
6101 },
6102 .block_erase = erase_sector_jedec,
6103 }, {
6104 .eraseblocks = { {256 * 1024, 1} },
6105 .block_erase = erase_chip_block_jedec,
6106 },
6107 },
6108 .write = write_jedec_1,
6109 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006110 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006111 },
6112
6113 {
6114 .vendor = "Hyundai",
6115 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006116 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006117 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006118 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006119 .total_size = 256,
6120 .page_size = 256 * 1024,
6121 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6122 .tested = TEST_UNTESTED,
6123 .probe = probe_jedec,
6124 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6125 .block_erasers =
6126 {
6127 {
6128 .eraseblocks = {
6129 {16 * 1024, 1},
6130 {8 * 1024, 2},
6131 {32 * 1024, 1},
6132 {64 * 1024, 3},
6133 },
6134 .block_erase = erase_sector_jedec,
6135 }, {
6136 .eraseblocks = { {256 * 1024, 1} },
6137 .block_erase = erase_chip_block_jedec,
6138 },
6139 },
6140 .write = write_jedec_1,
6141 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006142 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006143 },
6144
6145 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006146 .vendor = "Hyundai",
6147 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006148 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006149 .manufacture_id = HYUNDAI_ID,
6150 .model_id = HYUNDAI_HY29F040A,
6151 .total_size = 512,
6152 .page_size = 64 * 1024,
6153 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6154 .tested = TEST_UNTESTED,
6155 .probe = probe_jedec,
6156 .probe_timing = TIMING_ZERO,
6157 .block_erasers =
6158 {
6159 {
6160 .eraseblocks = { {64 * 1024, 8} },
6161 .block_erase = erase_sector_jedec,
6162 }, {
6163 .eraseblocks = { {512 * 1024, 1} },
6164 .block_erase = erase_chip_block_jedec,
6165 },
6166 },
6167 .write = write_jedec_1,
6168 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006169 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006170 },
6171
6172 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006173 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006174 .name = "25F160S33B8",
6175 .bustype = BUS_SPI,
6176 .manufacture_id = INTEL_ID,
6177 .model_id = INTEL_25F160S33B8,
6178 .total_size = 2048,
6179 .page_size = 256,
6180 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6181 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6182 .tested = TEST_UNTESTED,
6183 .probe = probe_spi_rdid,
6184 .probe_timing = TIMING_ZERO,
6185 .block_erasers =
6186 {
6187 {
6188 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6189 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6190 * have no effect on the memory contents, but sets a flag in the SR.
6191 .eraseblocks = {
6192 {8 * 1024, 8},
6193 {64 * 1024, 31} // inaccessible
6194 },
6195 .block_erase = spi_block_erase_40,
6196 }, { */
6197 .eraseblocks = { {64 * 1024, 32} },
6198 .block_erase = spi_block_erase_d8,
6199 }, {
6200 .eraseblocks = { {2 * 1024 * 1024, 1} },
6201 .block_erase = spi_block_erase_c7,
6202 }
6203 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006204 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6205 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006206 .write = spi_chip_write_256,
6207 .read = spi_chip_read, /* also fast read 0x0B */
6208 .voltage = {2700, 3600},
6209 },
6210
6211 {
6212 .vendor = "Intel",
6213 .name = "25F160S33T8",
6214 .bustype = BUS_SPI,
6215 .manufacture_id = INTEL_ID,
6216 .model_id = INTEL_25F160S33T8,
6217 .total_size = 2048,
6218 .page_size = 256,
6219 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6221 .tested = TEST_UNTESTED,
6222 .probe = probe_spi_rdid,
6223 .probe_timing = TIMING_ZERO,
6224 .block_erasers =
6225 {
6226 {
6227 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6228 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6229 * have no effect on the memory contents, but sets a flag in the SR.
6230 .eraseblocks = {
6231 {64 * 1024, 31}, // inaccessible
6232 {8 * 1024, 8}
6233 },
6234 .block_erase = spi_block_erase_40,
6235 }, { */
6236 .eraseblocks = { {64 * 1024, 32} },
6237 .block_erase = spi_block_erase_d8,
6238 }, {
6239 .eraseblocks = { {2 * 1024 * 1024, 1} },
6240 .block_erase = spi_block_erase_c7,
6241 }
6242 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006243 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6244 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006245 .write = spi_chip_write_256,
6246 .read = spi_chip_read, /* also fast read 0x0B */
6247 .voltage = {2700, 3600},
6248 },
6249
6250 {
6251 .vendor = "Intel",
6252 .name = "25F320S33B8",
6253 .bustype = BUS_SPI,
6254 .manufacture_id = INTEL_ID,
6255 .model_id = INTEL_25F320S33B8,
6256 .total_size = 4096,
6257 .page_size = 256,
6258 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6260 .tested = TEST_UNTESTED,
6261 .probe = probe_spi_rdid,
6262 .probe_timing = TIMING_ZERO,
6263 .block_erasers =
6264 {
6265 {
6266 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6267 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6268 * have no effect on the memory contents, but sets a flag in the SR.
6269 .eraseblocks = {
6270 {8 * 1024, 8},
6271 {64 * 1024, 63} // inaccessible
6272 },
6273 .block_erase = spi_block_erase_40,
6274 }, { */
6275 .eraseblocks = { {64 * 1024, 64} },
6276 .block_erase = spi_block_erase_d8,
6277 }, {
6278 .eraseblocks = { {4 * 1024 * 1024, 1} },
6279 .block_erase = spi_block_erase_c7,
6280 }
6281 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006282 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6283 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006284 .write = spi_chip_write_256,
6285 .read = spi_chip_read, /* also fast read 0x0B */
6286 .voltage = {2700, 3600},
6287 },
6288
6289 {
6290 .vendor = "Intel",
6291 .name = "25F320S33T8",
6292 .bustype = BUS_SPI,
6293 .manufacture_id = INTEL_ID,
6294 .model_id = INTEL_25F320S33T8,
6295 .total_size = 4096,
6296 .page_size = 256,
6297 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6298 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6299 .tested = TEST_UNTESTED,
6300 .probe = probe_spi_rdid,
6301 .probe_timing = TIMING_ZERO,
6302 .block_erasers =
6303 {
6304 {
6305 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6306 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6307 * have no effect on the memory contents, but sets a flag in the SR.
6308 .eraseblocks = {
6309 {64 * 1024, 63}, // inaccessible
6310 {8 * 1024, 8}
6311 },
6312 .block_erase = spi_block_erase_40,
6313 }, { */
6314 .eraseblocks = { {64 * 1024, 64} },
6315 .block_erase = spi_block_erase_d8,
6316 }, {
6317 .eraseblocks = { {4 * 1024 * 1024, 1} },
6318 .block_erase = spi_block_erase_c7,
6319 }
6320 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006321 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6322 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006323 .write = spi_chip_write_256,
6324 .read = spi_chip_read, /* also fast read 0x0B */
6325 .voltage = {2700, 3600},
6326 },
6327
6328 {
6329 .vendor = "Intel",
6330 .name = "25F640S33B8",
6331 .bustype = BUS_SPI,
6332 .manufacture_id = INTEL_ID,
6333 .model_id = INTEL_25F640S33B8,
6334 .total_size = 8192,
6335 .page_size = 256,
6336 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6337 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6338 .tested = TEST_UNTESTED,
6339 .probe = probe_spi_rdid,
6340 .probe_timing = TIMING_ZERO,
6341 .block_erasers =
6342 {
6343 {
6344 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6345 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6346 * have no effect on the memory contents, but sets a flag in the SR.
6347 .eraseblocks = {
6348 {8 * 1024, 8},
6349 {64 * 1024, 127} // inaccessible
6350 },
6351 .block_erase = spi_block_erase_40,
6352 }, { */
6353 .eraseblocks = { {64 * 1024, 128} },
6354 .block_erase = spi_block_erase_d8,
6355 }, {
6356 .eraseblocks = { {8 * 1024 * 1024, 1} },
6357 .block_erase = spi_block_erase_c7,
6358 }
6359 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006360 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6361 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006362 .write = spi_chip_write_256,
6363 .read = spi_chip_read, /* also fast read 0x0B */
6364 .voltage = {2700, 3600},
6365 },
6366
6367 {
6368 .vendor = "Intel",
6369 .name = "25F640S33T8",
6370 .bustype = BUS_SPI,
6371 .manufacture_id = INTEL_ID,
6372 .model_id = INTEL_25F640S33T8,
6373 .total_size = 8192,
6374 .page_size = 256,
6375 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6376 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6377 .tested = TEST_UNTESTED,
6378 .probe = probe_spi_rdid,
6379 .probe_timing = TIMING_ZERO,
6380 .block_erasers =
6381 {
6382 {
6383 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6384 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6385 * have no effect on the memory contents, but sets a flag in the SR.
6386 .eraseblocks = {
6387 {64 * 1024, 127}, // inaccessible
6388 {8 * 1024, 8}
6389 },
6390 .block_erase = spi_block_erase_40,
6391 }, { */
6392 .eraseblocks = { {64 * 1024, 128} },
6393 .block_erase = spi_block_erase_d8,
6394 }, {
6395 .eraseblocks = { {8 * 1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_c7,
6397 }
6398 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006399 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6400 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006401 .write = spi_chip_write_256,
6402 .read = spi_chip_read, /* also fast read 0x0B */
6403 .voltage = {2700, 3600},
6404 },
6405
6406 {
6407 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006408 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006409 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006410 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006411 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006412 .total_size = 128,
6413 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006414 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006415 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006416 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006417 .block_erasers =
6418 {
6419 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006420 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006421 {8 * 1024, 1},
6422 {4 * 1024, 2},
6423 {112 * 1024, 1},
6424 },
Sean Nelson28accc22010-03-19 18:47:06 +00006425 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006426 },
6427 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006428 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006430 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006431 },
6432
6433 {
6434 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006435 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006436 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006437 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006438 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006439 .total_size = 128,
6440 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006441 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006442 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006443 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006444 .block_erasers =
6445 {
6446 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006447 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006448 {112 * 1024, 1},
6449 {4 * 1024, 2},
6450 {8 * 1024, 1},
6451 },
Sean Nelson28accc22010-03-19 18:47:06 +00006452 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006453 },
6454 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006455 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006457 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006458 },
6459
6460 {
6461 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006462 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006463 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006464 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006465 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006466 .total_size = 256,
6467 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006468 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006469 .probe = probe_82802ab,
6470 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6471 .block_erasers =
6472 {
6473 {
6474 .eraseblocks = {
6475 {128 * 1024, 1},
6476 {96 * 1024, 1},
6477 {8 * 1024, 2},
6478 {16 * 1024, 1},
6479 },
6480 .block_erase = erase_block_82802ab,
6481 },
6482 },
6483 .write = write_82802ab,
6484 .read = read_memmapped,
6485 },
6486
6487 {
6488 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006489 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006490 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006491 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006492 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006493 .total_size = 512,
6494 .page_size = 256,
6495 .tested = TEST_UNTESTED,
6496 .probe = probe_82802ab,
6497 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006498 .block_erasers =
6499 {
6500 {
6501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006502 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006503 },
6504 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006505 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006506 .write = write_82802ab,
6507 .read = read_memmapped,
6508 },
6509
6510 {
6511 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006512 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006513 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006514 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006515 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006516 .total_size = 512,
6517 .page_size = 128 * 1024, /* maximal block size */
6518 .tested = TEST_UNTESTED,
6519 .probe = probe_82802ab,
6520 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6521 .block_erasers =
6522 {
6523 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006524 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006525 {16 * 1024, 1},
6526 {8 * 1024, 2},
6527 {96 * 1024, 1},
6528 {128 * 1024, 3},
6529 },
6530 .block_erase = erase_block_82802ab,
6531 },
6532 },
6533 .write = write_82802ab,
6534 .read = read_memmapped,
6535 },
6536
6537 {
6538 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006539 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006540 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006541 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006542 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006543 .total_size = 512,
6544 .page_size = 128 * 1024, /* maximal block size */
6545 .tested = TEST_UNTESTED,
6546 .probe = probe_82802ab,
6547 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6548 .block_erasers =
6549 {
6550 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006551 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006552 {128 * 1024, 3},
6553 {96 * 1024, 1},
6554 {8 * 1024, 2},
6555 {16 * 1024, 1},
6556 },
6557 .block_erase = erase_block_82802ab,
6558 },
6559 },
6560 .write = write_82802ab,
6561 .read = read_memmapped,
6562 },
6563
6564 {
6565 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006566 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006567 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006568 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006569 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006570 .total_size = 512,
6571 .page_size = 128 * 1024, /* maximal block size */
6572 .feature_bits = FEATURE_ADDR_SHIFTED,
6573 .tested = TEST_UNTESTED,
6574 .probe = probe_82802ab,
6575 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6576 .block_erasers =
6577 {
6578 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006579 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006580 {16 * 1024, 1},
6581 {8 * 1024, 2},
6582 {96 * 1024, 1},
6583 {128 * 1024, 3},
6584 },
6585 .block_erase = erase_block_82802ab,
6586 },
6587 },
6588 .write = write_82802ab,
6589 .read = read_memmapped,
6590 },
6591
6592 {
6593 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006594 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006595 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006596 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006597 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006598 .total_size = 512,
6599 .page_size = 128 * 1024, /* maximal block size */
6600 .feature_bits = FEATURE_ADDR_SHIFTED,
6601 .tested = TEST_UNTESTED,
6602 .probe = probe_82802ab,
6603 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6604 .block_erasers =
6605 {
6606 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006607 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006608 {128 * 1024, 3},
6609 {96 * 1024, 1},
6610 {8 * 1024, 2},
6611 {16 * 1024, 1},
6612 },
6613 .block_erase = erase_block_82802ab,
6614 },
6615 },
6616 .write = write_82802ab,
6617 .read = read_memmapped,
6618 },
6619
6620 {
6621 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006622 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006623 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006624 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006625 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006626 .total_size = 512,
6627 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006628 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006629 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006630 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006631 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006632 .block_erasers =
6633 {
6634 {
6635 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006636 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006637 },
6638 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006639 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006640 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006641 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006642 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006643 },
6644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006645 {
6646 .vendor = "Intel",
6647 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006648 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006649 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006650 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006651 .total_size = 1024,
6652 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006653 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006654 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006655 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006656 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006657 .block_erasers =
6658 {
6659 {
6660 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006661 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006662 },
6663 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006664 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006665 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006667 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006668 },
6669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006670 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006671 .vendor = "ISSI",
6672 .name = "IS29GL064B",
6673 .bustype = BUS_PARALLEL,
6674 .manufacture_id = ISSI_ID,
6675 .model_id = ISSI_PMC_IS29GL064B,
6676 .total_size = 8192,
6677 .page_size = 128 * 1024, /* actual page size is 16 */
6678 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6679 .tested = TEST_UNTESTED,
6680 .probe = probe_jedec_29gl,
6681 .probe_timing = TIMING_ZERO,
6682 .block_erasers =
6683 {
6684 {
6685 .eraseblocks = {
6686 {8 * 1024, 8},
6687 {64 * 1024, 127},
6688 },
6689 .block_erase = erase_sector_jedec,
6690 }, {
6691 .eraseblocks = { {8 * 1024 * 1024, 1} },
6692 .block_erase = erase_chip_block_jedec,
6693 },
6694 },
6695 .write = write_jedec_1,
6696 .read = read_memmapped,
6697 .voltage = {2700, 3600},
6698 },
6699
6700 {
6701 .vendor = "ISSI",
6702 .name = "IS29GL064T",
6703 .bustype = BUS_PARALLEL,
6704 .manufacture_id = ISSI_ID,
6705 .model_id = ISSI_PMC_IS29GL064T,
6706 .total_size = 8192,
6707 .page_size = 128 * 1024, /* actual page size is 16 */
6708 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6709 .tested = TEST_UNTESTED,
6710 .probe = probe_jedec_29gl,
6711 .probe_timing = TIMING_ZERO,
6712 .block_erasers =
6713 {
6714 {
6715 .eraseblocks = {
6716 {64 * 1024, 127},
6717 {8 * 1024, 8},
6718 },
6719 .block_erase = erase_sector_jedec,
6720 }, {
6721 .eraseblocks = { {8 * 1024 * 1024, 1} },
6722 .block_erase = erase_chip_block_jedec,
6723 },
6724 },
6725 .write = write_jedec_1,
6726 .read = read_memmapped,
6727 .voltage = {2700, 3600},
6728 },
6729
6730 {
6731 .vendor = "ISSI",
6732 .name = "IS29GL064H/L",
6733 .bustype = BUS_PARALLEL,
6734 .manufacture_id = ISSI_ID,
6735 .model_id = ISSI_PMC_IS29GL064HL,
6736 .total_size = 8192,
6737 .page_size = 128 * 1024, /* actual page size is 16 */
6738 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6739 .tested = TEST_UNTESTED,
6740 .probe = probe_jedec_29gl,
6741 .probe_timing = TIMING_ZERO,
6742 .block_erasers =
6743 {
6744 {
6745 .eraseblocks = { {64 * 1024, 128} },
6746 .block_erase = erase_sector_jedec,
6747 }, {
6748 .eraseblocks = { {8 * 1024 * 1024, 1} },
6749 .block_erase = erase_chip_block_jedec,
6750 },
6751 },
6752 .write = write_jedec_1,
6753 .read = read_memmapped,
6754 .voltage = {2700, 3600},
6755 },
6756
6757 {
6758 .vendor = "ISSI",
6759 .name = "IS29GL128H/L",
6760 .bustype = BUS_PARALLEL,
6761 .manufacture_id = ISSI_ID,
6762 .model_id = ISSI_PMC_IS29GL128HL,
6763 .total_size = 16384,
6764 .page_size = 128 * 1024, /* actual page size is 16 */
6765 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6766 .tested = TEST_UNTESTED,
6767 .probe = probe_jedec_29gl,
6768 .probe_timing = TIMING_ZERO,
6769 .block_erasers =
6770 {
6771 {
6772 .eraseblocks = { {128 * 1024, 128} },
6773 .block_erase = erase_sector_jedec,
6774 }, {
6775 .eraseblocks = { {16 * 1024 * 1024, 1} },
6776 .block_erase = erase_chip_block_jedec,
6777 },
6778 },
6779 .write = write_jedec_1,
6780 .read = read_memmapped,
6781 .voltage = {2700, 3600},
6782 },
6783
6784 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006785 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006786 .name = "MX23L1654",
6787 .bustype = BUS_SPI,
6788 .manufacture_id = MACRONIX_ID,
6789 .model_id = MACRONIX_MX23L1654,
6790 .total_size = 2048,
6791 .page_size = 256,
6792 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6793 .probe = probe_spi_rdid,
6794 .probe_timing = TIMING_ZERO,
6795 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
6796 .read = spi_chip_read, /* Fast read (0x0B) supported */
6797 .voltage = {3000, 3600},
6798 },
6799
6800 {
6801 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006802 .name = "MX23L3254",
6803 .bustype = BUS_SPI,
6804 .manufacture_id = MACRONIX_ID,
6805 .model_id = MACRONIX_MX23L3254,
6806 .total_size = 4096,
6807 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006808 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006809 .probe = probe_spi_rdid,
6810 .probe_timing = TIMING_ZERO,
6811 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6812 .read = spi_chip_read, /* Fast read (0x0B) supported */
6813 .voltage = {3000, 3600},
6814 },
6815
6816 {
6817 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006818 .name = "MX23L6454",
6819 .bustype = BUS_SPI,
6820 .manufacture_id = MACRONIX_ID,
6821 .model_id = MACRONIX_MX23L6454,
6822 .total_size = 8192,
6823 .page_size = 256,
6824 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6825 .probe = probe_spi_rdid,
6826 .probe_timing = TIMING_ZERO,
6827 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
6828 .read = spi_chip_read, /* Fast read (0x0B) supported */
6829 .voltage = {3000, 3600},
6830 },
6831
6832 {
6833 .vendor = "Macronix",
6834 .name = "MX23L12854",
6835 .bustype = BUS_SPI,
6836 .manufacture_id = MACRONIX_ID,
6837 .model_id = MACRONIX_MX23L12854,
6838 .total_size = 16384,
6839 .page_size = 256,
6840 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6841 .probe = probe_spi_rdid,
6842 .probe_timing = TIMING_ZERO,
6843 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
6844 .read = spi_chip_read, /* Fast read (0x0B) supported */
6845 .voltage = {3000, 3600},
6846 },
6847
6848 {
6849 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006850 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006851 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006852 .manufacture_id = MACRONIX_ID,
6853 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006854 .total_size = 64,
6855 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006856 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006857 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006858 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006859 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006860 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006861 .block_erasers =
6862 {
6863 {
6864 .eraseblocks = { {4 * 1024, 16} },
6865 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006866 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006867 .eraseblocks = { {64 * 1024, 1} },
6868 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006869 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006870 .eraseblocks = { {64 * 1024, 1} },
6871 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006872 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006873 .eraseblocks = { {64 * 1024, 1} },
6874 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006875 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006876 .eraseblocks = { {64 * 1024, 1} },
6877 .block_erase = spi_block_erase_c7,
6878 },
6879 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006880 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006881 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006882 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006883 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6884 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006885 },
6886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006887 {
6888 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006889 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006890 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006891 .manufacture_id = MACRONIX_ID,
6892 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006893 .total_size = 128,
6894 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006895 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006896 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006897 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006898 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006899 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006900 .block_erasers =
6901 {
6902 {
6903 .eraseblocks = { {4 * 1024, 32} },
6904 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006905 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006906 .eraseblocks = { {64 * 1024, 2} },
6907 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006908 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006909 .eraseblocks = { {128 * 1024, 1} },
6910 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006911 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006912 .eraseblocks = { {128 * 1024, 1} },
6913 .block_erase = spi_block_erase_c7,
6914 },
6915 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006916 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006917 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006918 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006919 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006920 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006921 },
6922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006923 {
6924 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00006925 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006926 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006927 .manufacture_id = MACRONIX_ID,
6928 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006929 .total_size = 256,
6930 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006931 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006932 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006933 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006934 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006935 .block_erasers =
6936 {
6937 {
6938 .eraseblocks = { {4 * 1024, 64} },
6939 .block_erase = spi_block_erase_20,
6940 }, {
6941 .eraseblocks = { {64 * 1024, 4} },
6942 .block_erase = spi_block_erase_52,
6943 }, {
6944 .eraseblocks = { {64 * 1024, 4} },
6945 .block_erase = spi_block_erase_d8,
6946 }, {
6947 .eraseblocks = { {256 * 1024, 1} },
6948 .block_erase = spi_block_erase_60,
6949 }, {
6950 .eraseblocks = { {256 * 1024, 1} },
6951 .block_erase = spi_block_erase_c7,
6952 },
6953 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006954 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006955 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006956 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006957 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006958 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006959 },
6960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006961 {
6962 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00006963 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006964 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006965 .manufacture_id = MACRONIX_ID,
6966 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006967 .total_size = 512,
6968 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006969 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006970 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006971 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006972 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006973 .block_erasers =
6974 {
6975 {
6976 .eraseblocks = { {4 * 1024, 128} },
6977 .block_erase = spi_block_erase_20,
6978 }, {
6979 .eraseblocks = { {64 * 1024, 8} },
6980 .block_erase = spi_block_erase_52,
6981 }, {
6982 .eraseblocks = { {64 * 1024, 8} },
6983 .block_erase = spi_block_erase_d8,
6984 }, {
6985 .eraseblocks = { {512 * 1024, 1} },
6986 .block_erase = spi_block_erase_60,
6987 }, {
6988 .eraseblocks = { {512 * 1024, 1} },
6989 .block_erase = spi_block_erase_c7,
6990 },
6991 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006992 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006993 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006994 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006995 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006996 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006997 },
6998
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006999 {
7000 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007001 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007002 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007003 .manufacture_id = MACRONIX_ID,
7004 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 .total_size = 1024,
7006 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007007 /* MX25L8006E, MX25L8008E support SFDP */
7008 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007009 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007012 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007013 .block_erasers =
7014 {
7015 {
7016 .eraseblocks = { {4 * 1024, 256} },
7017 .block_erase = spi_block_erase_20,
7018 }, {
7019 .eraseblocks = { {64 * 1024, 16} },
7020 .block_erase = spi_block_erase_52,
7021 }, {
7022 .eraseblocks = { {64 * 1024, 16} },
7023 .block_erase = spi_block_erase_d8,
7024 }, {
7025 .eraseblocks = { {1024 * 1024, 1} },
7026 .block_erase = spi_block_erase_60,
7027 }, {
7028 .eraseblocks = { {1024 * 1024, 1} },
7029 .block_erase = spi_block_erase_c7,
7030 },
7031 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007032 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007033 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007034 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007035 .read = spi_chip_read, /* Fast read (0x0B) supported */
7036 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007037 },
7038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 {
7040 .vendor = "Macronix",
7041 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007042 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007043 .manufacture_id = MACRONIX_ID,
7044 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007045 .total_size = 2048,
7046 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007047 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007048 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007051 .block_erasers =
7052 {
7053 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007054 .eraseblocks = { {64 * 1024, 32} },
7055 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007056 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007057 .eraseblocks = { {64 * 1024, 32} },
7058 .block_erase = spi_block_erase_d8,
7059 }, {
7060 .eraseblocks = { {2 * 1024 * 1024, 1} },
7061 .block_erase = spi_block_erase_60,
7062 }, {
7063 .eraseblocks = { {2 * 1024 * 1024, 1} },
7064 .block_erase = spi_block_erase_c7,
7065 },
7066 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007067 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007068 .unlock = spi_disable_blockprotect,
7069 .write = spi_chip_write_256,
7070 .read = spi_chip_read, /* Fast read (0x0B) supported */
7071 .voltage = {2700, 3600},
7072 },
7073
7074 {
7075 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007076 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007077 .bustype = BUS_SPI,
7078 .manufacture_id = MACRONIX_ID,
7079 .model_id = MACRONIX_MX25L1605,
7080 .total_size = 2048,
7081 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007082 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007083 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7084 .tested = TEST_OK_PREW,
7085 .probe = probe_spi_rdid,
7086 .probe_timing = TIMING_ZERO,
7087 .block_erasers =
7088 {
7089 {
7090 .eraseblocks = { {4 * 1024, 512} },
7091 .block_erase = spi_block_erase_20,
7092 }, {
7093 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007094 .block_erase = spi_block_erase_52,
7095 }, {
7096 .eraseblocks = { {64 * 1024, 32} },
7097 .block_erase = spi_block_erase_d8,
7098 }, {
7099 .eraseblocks = { {2 * 1024 * 1024, 1} },
7100 .block_erase = spi_block_erase_60,
7101 }, {
7102 .eraseblocks = { {2 * 1024 * 1024, 1} },
7103 .block_erase = spi_block_erase_c7,
7104 },
7105 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007106 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007107 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007108 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007109 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007110 .voltage = {2700, 3600},
7111 },
7112
7113 {
7114 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007115 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007116 .bustype = BUS_SPI,
7117 .manufacture_id = MACRONIX_ID,
7118 .model_id = MACRONIX_MX25L1605,
7119 .total_size = 2048,
7120 .page_size = 256,
7121 .feature_bits = FEATURE_WRSR_WREN,
7122 .tested = TEST_OK_PREW,
7123 .probe = probe_spi_rdid,
7124 .probe_timing = TIMING_ZERO,
7125 .block_erasers =
7126 {
7127 {
7128 .eraseblocks = { {4 * 1024, 512} },
7129 .block_erase = spi_block_erase_20,
7130 }, {
7131 .eraseblocks = { {64 * 1024, 32} },
7132 .block_erase = spi_block_erase_d8,
7133 }, {
7134 .eraseblocks = { {2 * 1024 * 1024, 1} },
7135 .block_erase = spi_block_erase_60,
7136 }, {
7137 .eraseblocks = { {2 * 1024 * 1024, 1} },
7138 .block_erase = spi_block_erase_c7,
7139 },
7140 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007141 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007142 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007143 .write = spi_chip_write_256,
7144 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007145 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007146 },
7147
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007148 {
7149 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007150 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007151 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007152 .manufacture_id = MACRONIX_ID,
7153 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007154 .total_size = 2048,
7155 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007156 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7157 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007158 .tested = TEST_UNTESTED,
7159 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007160 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007161 .block_erasers =
7162 {
7163 {
7164 .eraseblocks = { {4 * 1024, 512} },
7165 .block_erase = spi_block_erase_20,
7166 }, {
7167 .eraseblocks = { {64 * 1024, 32} },
7168 .block_erase = spi_block_erase_d8,
7169 }, {
7170 .eraseblocks = { {2 * 1024 * 1024, 1} },
7171 .block_erase = spi_block_erase_60,
7172 }, {
7173 .eraseblocks = { {2 * 1024 * 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, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007178 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007179 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007180 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007181 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007182 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007183
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007184 {
7185 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007186 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007187 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007188 .manufacture_id = MACRONIX_ID,
7189 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007190 .total_size = 2048,
7191 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007192 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007194 .tested = TEST_UNTESTED,
7195 .probe = probe_spi_rdid,
7196 .probe_timing = TIMING_ZERO,
7197 .block_erasers =
7198 {
7199 {
7200 .eraseblocks = { {4 * 1024, 512} },
7201 .block_erase = spi_block_erase_20,
7202 }, {
7203 .eraseblocks = { {64 * 1024, 32} },
7204 .block_erase = spi_block_erase_d8,
7205 }, {
7206 .eraseblocks = { {2 * 1024 * 1024, 1} },
7207 .block_erase = spi_block_erase_60,
7208 }, {
7209 .eraseblocks = { {2 * 1024 * 1024, 1} },
7210 .block_erase = spi_block_erase_c7,
7211 }
7212 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007213 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007214 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007215 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007216 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007217 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007218 },
7219
7220 {
7221 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007222 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007223 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007224 .manufacture_id = MACRONIX_ID,
7225 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007226 .total_size = 4096,
7227 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007228 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007229 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007230 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007231 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007232 .block_erasers =
7233 {
7234 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007235 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007236 .block_erase = spi_block_erase_20,
7237 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007238 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007239 .block_erase = spi_block_erase_d8,
7240 }, {
7241 .eraseblocks = { {4 * 1024 * 1024, 1} },
7242 .block_erase = spi_block_erase_60,
7243 }, {
7244 .eraseblocks = { {4 * 1024 * 1024, 1} },
7245 .block_erase = spi_block_erase_c7,
7246 },
7247 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007248 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007249 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007250 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007251 .read = spi_chip_read, /* Fast read (0x0B) supported */
7252 .voltage = {2700, 3600},
7253 },
7254
7255 {
7256 .vendor = "Macronix",
7257 .name = "MX25L3205D/MX25L3208D",
7258 .bustype = BUS_SPI,
7259 .manufacture_id = MACRONIX_ID,
7260 .model_id = MACRONIX_MX25L3205,
7261 .total_size = 4096,
7262 .page_size = 256,
7263 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7264 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7265 .tested = TEST_OK_PREW,
7266 .probe = probe_spi_rdid,
7267 .probe_timing = TIMING_ZERO,
7268 .block_erasers =
7269 {
7270 {
7271 .eraseblocks = { {4 * 1024, 1024} },
7272 .block_erase = spi_block_erase_20,
7273 }, {
7274 .eraseblocks = { {64 * 1024, 64} },
7275 .block_erase = spi_block_erase_d8,
7276 }, {
7277 .eraseblocks = { {4 * 1024 * 1024, 1} },
7278 .block_erase = spi_block_erase_60,
7279 }, {
7280 .eraseblocks = { {4 * 1024 * 1024, 1} },
7281 .block_erase = spi_block_erase_c7,
7282 },
7283 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007284 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007285 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007286 .write = spi_chip_write_256,
7287 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7288 .voltage = {2700, 3600},
7289 },
7290
7291 {
7292 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007293 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007294 .bustype = BUS_SPI,
7295 .manufacture_id = MACRONIX_ID,
7296 .model_id = MACRONIX_MX25L3205,
7297 .total_size = 4096,
7298 .page_size = 256,
7299 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7300 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7301 .tested = TEST_OK_PREW,
7302 .probe = probe_spi_rdid,
7303 .probe_timing = TIMING_ZERO,
7304 .block_erasers =
7305 {
7306 {
7307 .eraseblocks = { {4 * 1024, 1024} },
7308 .block_erase = spi_block_erase_20,
7309 }, {
7310 .eraseblocks = { {64 * 1024, 64} },
7311 .block_erase = spi_block_erase_d8,
7312 }, {
7313 .eraseblocks = { {64 * 1024, 64} },
7314 .block_erase = spi_block_erase_52,
7315 }, {
7316 .eraseblocks = { {4 * 1024 * 1024, 1} },
7317 .block_erase = spi_block_erase_60,
7318 }, {
7319 .eraseblocks = { {4 * 1024 * 1024, 1} },
7320 .block_erase = spi_block_erase_c7,
7321 },
7322 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007323 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007324 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007325 .write = spi_chip_write_256,
7326 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007327 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007328 },
7329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007330 {
7331 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007332 .name = "MX25L3273E",
7333 .bustype = BUS_SPI,
7334 .manufacture_id = MACRONIX_ID,
7335 .model_id = MACRONIX_MX25L3205,
7336 .total_size = 4096,
7337 .page_size = 256,
7338 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7339 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7340 .tested = TEST_UNTESTED,
7341 .probe = probe_spi_rdid,
7342 .probe_timing = TIMING_ZERO,
7343 .block_erasers =
7344 {
7345 {
7346 .eraseblocks = { {4 * 1024, 1024} },
7347 .block_erase = spi_block_erase_20,
7348 }, {
7349 .eraseblocks = { {32 * 1024, 128} },
7350 .block_erase = spi_block_erase_52,
7351 }, {
7352 .eraseblocks = { {64 * 1024, 64} },
7353 .block_erase = spi_block_erase_d8,
7354 }, {
7355 .eraseblocks = { {4 * 1024 * 1024, 1} },
7356 .block_erase = spi_block_erase_60,
7357 }, {
7358 .eraseblocks = { {4 * 1024 * 1024, 1} },
7359 .block_erase = spi_block_erase_c7,
7360 },
7361 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007362 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007363 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007364 .write = spi_chip_write_256,
7365 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7366 .voltage = {2700, 3600},
7367 },
7368
7369 {
7370 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007371 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007372 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007373 .manufacture_id = MACRONIX_ID,
7374 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007375 .total_size = 4096,
7376 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007377 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
7378 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007379 .tested = TEST_UNTESTED,
7380 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007381 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007382 .block_erasers =
7383 {
7384 {
7385 .eraseblocks = { {4 * 1024, 1024} },
7386 .block_erase = spi_block_erase_20,
7387 }, {
7388 .eraseblocks = { {64 * 1024, 64} },
7389 .block_erase = spi_block_erase_d8,
7390 }, {
7391 .eraseblocks = { {4 * 1024 * 1024, 1} },
7392 .block_erase = spi_block_erase_60,
7393 }, {
7394 .eraseblocks = { {4 * 1024 * 1024, 1} },
7395 .block_erase = spi_block_erase_c7,
7396 }
7397 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007398 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007399 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007400 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007401 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007402 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007403 },
7404
7405 {
7406 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007407 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007408 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007409 .manufacture_id = MACRONIX_ID,
7410 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007411 .total_size = 8192,
7412 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007413 /* Has an additional 512B EEPROM sector */
7414 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007415 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007416 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007417 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007418 .block_erasers =
7419 {
7420 {
7421 .eraseblocks = { {64 * 1024, 128} },
7422 .block_erase = spi_block_erase_20,
7423 }, {
7424 .eraseblocks = { {64 * 1024, 128} },
7425 .block_erase = spi_block_erase_d8,
7426 }, {
7427 .eraseblocks = { {8 * 1024 * 1024, 1} },
7428 .block_erase = spi_block_erase_60,
7429 }, {
7430 .eraseblocks = { {8 * 1024 * 1024, 1} },
7431 .block_erase = spi_block_erase_c7,
7432 }
7433 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007434 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007435 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007436 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007437 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007438 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007439 },
7440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007441 {
7442 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007443 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00007444 .bustype = BUS_SPI,
7445 .manufacture_id = MACRONIX_ID,
7446 .model_id = MACRONIX_MX25L6405,
7447 .total_size = 8192,
7448 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007449 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7451 .tested = TEST_OK_PREW,
7452 .probe = probe_spi_rdid,
7453 .probe_timing = TIMING_ZERO,
7454 .block_erasers =
7455 {
7456 {
7457 .eraseblocks = { {4 * 1024, 2048} },
7458 .block_erase = spi_block_erase_20,
7459 }, {
7460 .eraseblocks = { {64 * 1024, 128} },
7461 .block_erase = spi_block_erase_d8,
7462 }, {
7463 .eraseblocks = { {8 * 1024 * 1024, 1} },
7464 .block_erase = spi_block_erase_60,
7465 }, {
7466 .eraseblocks = { {8 * 1024 * 1024, 1} },
7467 .block_erase = spi_block_erase_c7,
7468 }
7469 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007470 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007471 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007472 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007473 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00007474 .voltage = {2700, 3600},
7475 },
7476
7477 {
7478 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007479 .name = "MX25L6406E/MX25L6408E",
7480 .bustype = BUS_SPI,
7481 .manufacture_id = MACRONIX_ID,
7482 .model_id = MACRONIX_MX25L6405,
7483 .total_size = 8192,
7484 .page_size = 256,
7485 /* MX25L6406E supports SFDP */
7486 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
7487 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7488 .tested = TEST_OK_PREW,
7489 .probe = probe_spi_rdid,
7490 .probe_timing = TIMING_ZERO,
7491 .block_erasers =
7492 {
7493 {
7494 .eraseblocks = { {4 * 1024, 2048} },
7495 .block_erase = spi_block_erase_20,
7496 }, {
7497 .eraseblocks = { {64 * 1024, 128} },
7498 .block_erase = spi_block_erase_52,
7499 }, {
7500 .eraseblocks = { {64 * 1024, 128} },
7501 .block_erase = spi_block_erase_d8,
7502 }, {
7503 .eraseblocks = { {8 * 1024 * 1024, 1} },
7504 .block_erase = spi_block_erase_60,
7505 }, {
7506 .eraseblocks = { {8 * 1024 * 1024, 1} },
7507 .block_erase = spi_block_erase_c7,
7508 }
7509 },
7510 .printlock = spi_prettyprint_status_register_bp3_srwd,
7511 .unlock = spi_disable_blockprotect_bp3_srwd,
7512 .write = spi_chip_write_256,
7513 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
7514 .voltage = {2700, 3600},
7515 },
7516
7517 {
7518 .vendor = "Macronix",
7519 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007520 .bustype = BUS_SPI,
7521 .manufacture_id = MACRONIX_ID,
7522 .model_id = MACRONIX_MX25L6405,
7523 .total_size = 8192,
7524 .page_size = 256,
7525 /* supports SFDP */
7526 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7527 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7528 .tested = TEST_OK_PREW,
7529 .probe = probe_spi_rdid,
7530 .probe_timing = TIMING_ZERO,
7531 .block_erasers =
7532 {
7533 {
7534 .eraseblocks = { {4 * 1024, 2048} },
7535 .block_erase = spi_block_erase_20,
7536 }, {
7537 .eraseblocks = { {32 * 1024, 256} },
7538 .block_erase = spi_block_erase_52,
7539 }, {
7540 .eraseblocks = { {64 * 1024, 128} },
7541 .block_erase = spi_block_erase_d8,
7542 }, {
7543 .eraseblocks = { {8 * 1024 * 1024, 1} },
7544 .block_erase = spi_block_erase_60,
7545 }, {
7546 .eraseblocks = { {8 * 1024 * 1024, 1} },
7547 .block_erase = spi_block_erase_c7,
7548 }
7549 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007550 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007551 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007552 .write = spi_chip_write_256,
7553 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7554 .voltage = {2700, 3600},
7555 },
7556
7557 {
7558 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007559 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007560 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007561 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007562 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007563 .total_size = 16384,
7564 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007565 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007566 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007567 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007568 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007569 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007570 .block_erasers =
7571 {
7572 {
7573 .eraseblocks = { {4 * 1024, 4096} },
7574 .block_erase = spi_block_erase_20,
7575 }, {
7576 .eraseblocks = { {64 * 1024, 256} },
7577 .block_erase = spi_block_erase_d8,
7578 }, {
7579 .eraseblocks = { {16 * 1024 * 1024, 1} },
7580 .block_erase = spi_block_erase_60,
7581 }, {
7582 .eraseblocks = { {16 * 1024 * 1024, 1} },
7583 .block_erase = spi_block_erase_c7,
7584 }
7585 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007586 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007587 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007588 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007589 .read = spi_chip_read, /* Fast read (0x0B) supported */
7590 .voltage = {2700, 3600},
7591 },
7592
7593 {
7594 .vendor = "Macronix",
7595 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
7596 .bustype = BUS_SPI,
7597 .manufacture_id = MACRONIX_ID,
7598 .model_id = MACRONIX_MX25L12805D,
7599 .total_size = 16384,
7600 .page_size = 256,
7601 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7603 .tested = TEST_OK_PREW,
7604 .probe = probe_spi_rdid,
7605 .probe_timing = TIMING_ZERO,
7606 .block_erasers =
7607 {
7608 {
7609 .eraseblocks = { {4 * 1024, 4096} },
7610 .block_erase = spi_block_erase_20,
7611 }, {
7612 .eraseblocks = { {32 * 1024, 512} },
7613 .block_erase = spi_block_erase_52,
7614 }, {
7615 .eraseblocks = { {64 * 1024, 256} },
7616 .block_erase = spi_block_erase_d8,
7617 }, {
7618 .eraseblocks = { {16 * 1024 * 1024, 1} },
7619 .block_erase = spi_block_erase_60,
7620 }, {
7621 .eraseblocks = { {16 * 1024 * 1024, 1} },
7622 .block_erase = spi_block_erase_c7,
7623 }
7624 },
7625 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
7626 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7627 .unlock = spi_disable_blockprotect_bp3_srwd,
7628 .write = spi_chip_write_256,
7629 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007630 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007631 },
7632
7633 {
7634 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007635 .name = "MX25U1635E",
7636 .bustype = BUS_SPI,
7637 .manufacture_id = MACRONIX_ID,
7638 .model_id = MACRONIX_MX25U1635E,
7639 .total_size = 2048,
7640 .page_size = 256,
7641 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7642 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7643 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007644 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00007645 .probe = probe_spi_rdid,
7646 .probe_timing = TIMING_ZERO,
7647 .block_erasers =
7648 {
7649 {
7650 .eraseblocks = { {4 * 1024, 512} },
7651 .block_erase = spi_block_erase_20,
7652 }, {
7653 .eraseblocks = { {32 * 1024, 64} },
7654 .block_erase = spi_block_erase_52,
7655 }, {
7656 .eraseblocks = { {64 * 1024, 32} },
7657 .block_erase = spi_block_erase_d8,
7658 }, {
7659 .eraseblocks = { {2 * 1024 * 1024, 1} },
7660 .block_erase = spi_block_erase_60,
7661 }, {
7662 .eraseblocks = { {2 * 1024 * 1024, 1} },
7663 .block_erase = spi_block_erase_c7,
7664 }
7665 },
7666 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007667 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007668 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007669 .write = spi_chip_write_256,
7670 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7671 .voltage = {1650, 2000},
7672 },
7673
7674 {
7675 .vendor = "Macronix",
7676 .name = "MX25U3235E/F",
7677 .bustype = BUS_SPI,
7678 .manufacture_id = MACRONIX_ID,
7679 .model_id = MACRONIX_MX25U3235E,
7680 .total_size = 4096,
7681 .page_size = 256,
7682 /* F model supports SFDP */
7683 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7684 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7685 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7686 .tested = TEST_OK_PREW,
7687 .probe = probe_spi_rdid,
7688 .probe_timing = TIMING_ZERO,
7689 .block_erasers =
7690 {
7691 {
7692 .eraseblocks = { {4 * 1024, 1024} },
7693 .block_erase = spi_block_erase_20,
7694 }, {
7695 .eraseblocks = { {32 * 1024, 128} },
7696 .block_erase = spi_block_erase_52,
7697 }, {
7698 .eraseblocks = { {64 * 1024, 64} },
7699 .block_erase = spi_block_erase_d8,
7700 }, {
7701 .eraseblocks = { {4 * 1024 * 1024, 1} },
7702 .block_erase = spi_block_erase_60,
7703 }, {
7704 .eraseblocks = { {4 * 1024 * 1024, 1} },
7705 .block_erase = spi_block_erase_c7,
7706 }
7707 },
7708 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007709 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007710 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007711 .write = spi_chip_write_256,
7712 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7713 .voltage = {1650, 2000},
7714 },
7715
7716 {
7717 .vendor = "Macronix",
7718 .name = "MX25U6435E/F",
7719 .bustype = BUS_SPI,
7720 .manufacture_id = MACRONIX_ID,
7721 .model_id = MACRONIX_MX25U6435E,
7722 .total_size = 8192,
7723 .page_size = 256,
7724 /* F model supports SFDP */
7725 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7726 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7727 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7728 .tested = TEST_UNTESTED,
7729 .probe = probe_spi_rdid,
7730 .probe_timing = TIMING_ZERO,
7731 .block_erasers =
7732 {
7733 {
7734 .eraseblocks = { {4 * 1024, 2048} },
7735 .block_erase = spi_block_erase_20,
7736 }, {
7737 .eraseblocks = { {32 * 1024, 256} },
7738 .block_erase = spi_block_erase_52,
7739 }, {
7740 .eraseblocks = { {64 * 1024, 128} },
7741 .block_erase = spi_block_erase_d8,
7742 }, {
7743 .eraseblocks = { {8 * 1024 * 1024, 1} },
7744 .block_erase = spi_block_erase_60,
7745 }, {
7746 .eraseblocks = { {8 * 1024 * 1024, 1} },
7747 .block_erase = spi_block_erase_c7,
7748 }
7749 },
7750 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007751 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007752 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00007753 .write = spi_chip_write_256,
7754 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7755 .voltage = {1650, 2000},
7756 },
7757
7758 {
7759 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00007760 .name = "MX25U12835F",
7761 .bustype = BUS_SPI,
7762 .manufacture_id = MACRONIX_ID,
7763 .model_id = MACRONIX_MX25U12835E,
7764 .total_size = 16384,
7765 .page_size = 256,
7766 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7768 .tested = TEST_UNTESTED,
7769 .probe = probe_spi_rdid,
7770 .probe_timing = TIMING_ZERO,
7771 .block_erasers =
7772 {
7773 {
7774 .eraseblocks = { {4 * 1024, 4096} },
7775 .block_erase = spi_block_erase_20,
7776 }, {
7777 .eraseblocks = { {32 * 1024, 512} },
7778 .block_erase = spi_block_erase_52,
7779 }, {
7780 .eraseblocks = { {64 * 1024, 256} },
7781 .block_erase = spi_block_erase_d8,
7782 }, {
7783 .eraseblocks = { {16 * 1024 * 1024, 1} },
7784 .block_erase = spi_block_erase_60,
7785 }, {
7786 .eraseblocks = { {16 * 1024 * 1024, 1} },
7787 .block_erase = spi_block_erase_c7,
7788 }
7789 },
7790 /* TODO: security register */
7791 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7792 .unlock = spi_disable_blockprotect_bp3_srwd,
7793 .write = spi_chip_write_256, /* Multi I/O supported */
7794 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7795 .voltage = {1650, 2000},
7796 },
7797
7798 {
Stefan Taunera4617f72015-01-10 15:59:54 +00007799 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00007800 .name = "MX25L6495F",
7801 .bustype = BUS_SPI,
7802 .manufacture_id = MACRONIX_ID,
7803 .model_id = MACRONIX_MX25L6495F,
7804 .total_size = 8192,
7805 .page_size = 256,
7806 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
7807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7808 .tested = TEST_OK_PREW,
7809 .probe = probe_spi_rdid,
7810 .probe_timing = TIMING_ZERO,
7811 .block_erasers =
7812 {
7813 {
7814 .eraseblocks = { {4 * 1024, 2048} },
7815 .block_erase = spi_block_erase_20,
7816 }, {
7817 .eraseblocks = { {64 * 1024, 128} },
7818 .block_erase = spi_block_erase_d8,
7819 }, {
7820 .eraseblocks = { {32 * 1024, 256} },
7821 .block_erase = spi_block_erase_52,
7822 }, {
7823 .eraseblocks = { {8 * 1024 * 1024, 1} },
7824 .block_erase = spi_block_erase_60,
7825 }, {
7826 .eraseblocks = { {8 * 1024 * 1024, 1} },
7827 .block_erase = spi_block_erase_c7,
7828 }
7829 },
7830 .unlock = spi_disable_blockprotect,
7831 .write = spi_chip_write_256,
7832 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7833 .voltage = {2700, 3600},
7834 },
7835
7836 {
Martin Roth440057a2014-07-13 00:05:07 +00007837 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00007838 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007839 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007840 .manufacture_id = MACRONIX_ID,
7841 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007842 .total_size = 128,
7843 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007844 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7845 .tested = TEST_UNTESTED,
7846 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007847 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007848 .block_erasers =
7849 {
7850 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007851 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007852 {8 * 1024, 1},
7853 {4 * 1024, 2},
7854 {8 * 1024, 2},
7855 {32 * 1024, 1},
7856 {64 * 1024, 1},
7857 },
Sean Nelson35727f72010-01-28 23:55:12 +00007858 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007859 }, {
7860 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007861 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007862 }
7863 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007864 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007866 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007867 },
7868
7869 {
7870 .vendor = "Macronix",
7871 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007872 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007873 .manufacture_id = MACRONIX_ID,
7874 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007875 .total_size = 128,
7876 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007877 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00007878 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007879 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007880 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007881 .block_erasers =
7882 {
7883 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007884 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007885 {64 * 1024, 1},
7886 {32 * 1024, 1},
7887 {8 * 1024, 2},
7888 {4 * 1024, 2},
7889 {8 * 1024, 1},
7890 },
Sean Nelson35727f72010-01-28 23:55:12 +00007891 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007892 }, {
7893 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007894 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007895 }
7896 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007897 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007898 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007899 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007900 },
7901
7902 {
7903 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007904 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007905 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007906 .manufacture_id = MACRONIX_ID,
7907 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007908 .total_size = 256,
7909 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007910 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007911 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007912 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007913 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007914 .block_erasers =
7915 {
7916 {
7917 .eraseblocks = {
7918 {16 * 1024, 1},
7919 {8 * 1024, 2},
7920 {32 * 1024, 1},
7921 {64 * 1024, 3},
7922 },
Sean Nelson35727f72010-01-28 23:55:12 +00007923 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007924 }, {
7925 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007926 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007927 },
7928 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007929 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007930 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007931 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007932 },
7933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007934 {
7935 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007936 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007937 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007938 .manufacture_id = MACRONIX_ID,
7939 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007940 .total_size = 256,
7941 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007942 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007943 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007944 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007945 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007946 .block_erasers =
7947 {
7948 {
7949 .eraseblocks = {
7950 {64 * 1024, 3},
7951 {32 * 1024, 1},
7952 {8 * 1024, 2},
7953 {16 * 1024, 1},
7954 },
Sean Nelson35727f72010-01-28 23:55:12 +00007955 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007956 }, {
7957 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007958 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007959 },
7960 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007961 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007962 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007963 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007964 },
7965
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007966 {
7967 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007968 .name = "MX29F022(N)B",
7969 .bustype = BUS_PARALLEL,
7970 .manufacture_id = MACRONIX_ID,
7971 .model_id = MACRONIX_MX29F022B,
7972 .total_size = 256,
7973 .page_size = 0, /* unused */
7974 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7975 .tested = TEST_UNTESTED,
7976 .probe = probe_jedec,
7977 .probe_timing = TIMING_ZERO,
7978 .block_erasers =
7979 {
7980 {
7981 .eraseblocks = {
7982 {16 * 1024, 1},
7983 {8 * 1024, 2},
7984 {32 * 1024, 1},
7985 {64 * 1024, 3},
7986 },
7987 .block_erase = erase_sector_jedec,
7988 }, {
7989 .eraseblocks = { {256 * 1024, 1} },
7990 .block_erase = erase_chip_block_jedec,
7991 }
7992 },
7993 .write = write_jedec_1,
7994 .read = read_memmapped,
7995 .voltage = {4500, 5500},
7996 },
7997
7998 {
7999 .vendor = "Macronix",
8000 .name = "MX29F022(N)T",
8001 .bustype = BUS_PARALLEL,
8002 .manufacture_id = MACRONIX_ID,
8003 .model_id = MACRONIX_MX29F022T,
8004 .total_size = 256,
8005 .page_size = 0, /* unused */
8006 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8007 .tested = TEST_OK_PREW,
8008 .probe = probe_jedec,
8009 .probe_timing = TIMING_ZERO,
8010 .block_erasers =
8011 {
8012 {
8013 .eraseblocks = {
8014 {64 * 1024, 3},
8015 {32 * 1024, 1},
8016 {8 * 1024, 2},
8017 {16 * 1024, 1},
8018 },
8019 .block_erase = erase_sector_jedec,
8020 }, {
8021 .eraseblocks = { {256 * 1024, 1} },
8022 .block_erase = erase_chip_block_jedec,
8023 }
8024 },
8025 .write = write_jedec_1,
8026 .read = read_memmapped,
8027 .voltage = {4500, 5500},
8028 },
8029
8030 {
8031 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008032 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008033 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008034 .manufacture_id = MACRONIX_ID,
8035 .model_id = MACRONIX_MX29F040,
8036 .total_size = 512,
8037 .page_size = 64 * 1024,
8038 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8039 .tested = TEST_UNTESTED,
8040 .probe = probe_jedec,
8041 .probe_timing = TIMING_ZERO,
8042 .block_erasers =
8043 {
8044 {
8045 .eraseblocks = { {64 * 1024, 8} },
8046 .block_erase = erase_sector_jedec,
8047 }, {
8048 .eraseblocks = { {512 * 1024, 1} },
8049 .block_erase = erase_chip_block_jedec,
8050 },
8051 },
8052 .write = write_jedec_1,
8053 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008054 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008055 },
8056
8057 {
8058 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008059 .name = "MX29GL320EB",
8060 .bustype = BUS_PARALLEL,
8061 .manufacture_id = MACRONIX_ID,
8062 .model_id = MACRONIX_MX29GL320EB,
8063 .total_size = 4096,
8064 .page_size = 128 * 1024, /* actual page size is 16 */
8065 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8066 .tested = TEST_UNTESTED,
8067 .probe = probe_jedec_29gl,
8068 .probe_timing = TIMING_ZERO,
8069 .block_erasers =
8070 {
8071 {
8072 .eraseblocks = {
8073 {8 * 1024, 8},
8074 {64 * 1024, 63},
8075 },
8076 .block_erase = erase_sector_jedec,
8077 }, {
8078 .eraseblocks = { {4 * 1024 * 1024, 1} },
8079 .block_erase = erase_chip_block_jedec,
8080 },
8081 },
8082 .write = write_jedec_1,
8083 .read = read_memmapped,
8084 .voltage = {2700, 3600},
8085 },
8086
8087 {
8088 .vendor = "Macronix",
8089 .name = "MX29GL320ET",
8090 .bustype = BUS_PARALLEL,
8091 .manufacture_id = MACRONIX_ID,
8092 .model_id = MACRONIX_MX29GL320ET,
8093 .total_size = 4096,
8094 .page_size = 128 * 1024, /* actual page size is 16 */
8095 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8096 .tested = TEST_UNTESTED,
8097 .probe = probe_jedec_29gl,
8098 .probe_timing = TIMING_ZERO,
8099 .block_erasers =
8100 {
8101 {
8102 .eraseblocks = {
8103 {64 * 1024, 63},
8104 {8 * 1024, 8},
8105 },
8106 .block_erase = erase_sector_jedec,
8107 }, {
8108 .eraseblocks = { {4 * 1024 * 1024, 1} },
8109 .block_erase = erase_chip_block_jedec,
8110 },
8111 },
8112 .write = write_jedec_1,
8113 .read = read_memmapped,
8114 .voltage = {2700, 3600},
8115 },
8116
8117 {
8118 .vendor = "Macronix",
8119 .name = "MX29GL320EH/L",
8120 .bustype = BUS_PARALLEL,
8121 .manufacture_id = MACRONIX_ID,
8122 .model_id = MACRONIX_MX29GL320EHL,
8123 .total_size = 4096,
8124 .page_size = 128 * 1024, /* actual page size is 16 */
8125 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8126 .tested = TEST_UNTESTED,
8127 .probe = probe_jedec_29gl,
8128 .probe_timing = TIMING_ZERO,
8129 .block_erasers =
8130 {
8131 {
8132 .eraseblocks = { {64 * 1024, 64} },
8133 .block_erase = erase_sector_jedec,
8134 }, {
8135 .eraseblocks = { {4 * 1024 * 1024, 1} },
8136 .block_erase = erase_chip_block_jedec,
8137 },
8138 },
8139 .write = write_jedec_1,
8140 .read = read_memmapped,
8141 .voltage = {2700, 3600},
8142 },
8143
8144 {
8145 .vendor = "Macronix",
8146 .name = "MX29GL640EB",
8147 .bustype = BUS_PARALLEL,
8148 .manufacture_id = MACRONIX_ID,
8149 .model_id = MACRONIX_MX29GL640EB,
8150 .total_size = 8192,
8151 .page_size = 128 * 1024, /* actual page size is 16 */
8152 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8153 .tested = TEST_UNTESTED,
8154 .probe = probe_jedec_29gl,
8155 .probe_timing = TIMING_ZERO,
8156 .block_erasers =
8157 {
8158 {
8159 .eraseblocks = {
8160 {8 * 1024, 8},
8161 {64 * 1024, 127},
8162 },
8163 .block_erase = erase_sector_jedec,
8164 }, {
8165 .eraseblocks = { {8 * 1024 * 1024, 1} },
8166 .block_erase = erase_chip_block_jedec,
8167 },
8168 },
8169 .write = write_jedec_1,
8170 .read = read_memmapped,
8171 .voltage = {2700, 3600},
8172 },
8173
8174 {
8175 .vendor = "Macronix",
8176 .name = "MX29GL640ET",
8177 .bustype = BUS_PARALLEL,
8178 .manufacture_id = MACRONIX_ID,
8179 .model_id = MACRONIX_MX29GL640ET,
8180 .total_size = 8192,
8181 .page_size = 128 * 1024, /* actual page size is 16 */
8182 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8183 .tested = TEST_UNTESTED,
8184 .probe = probe_jedec_29gl,
8185 .probe_timing = TIMING_ZERO,
8186 .block_erasers =
8187 {
8188 {
8189 .eraseblocks = {
8190 {64 * 1024, 127},
8191 {8 * 1024, 8},
8192 },
8193 .block_erase = erase_sector_jedec,
8194 }, {
8195 .eraseblocks = { {8 * 1024 * 1024, 1} },
8196 .block_erase = erase_chip_block_jedec,
8197 },
8198 },
8199 .write = write_jedec_1,
8200 .read = read_memmapped,
8201 .voltage = {2700, 3600},
8202 },
8203
8204 {
8205 .vendor = "Macronix",
8206 .name = "MX29GL640EH/L",
8207 .bustype = BUS_PARALLEL,
8208 .manufacture_id = MACRONIX_ID,
8209 .model_id = MACRONIX_MX29GL640EHL,
8210 .total_size = 8192,
8211 .page_size = 128 * 1024, /* actual page size is 16 */
8212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8213 .tested = TEST_UNTESTED,
8214 .probe = probe_jedec_29gl,
8215 .probe_timing = TIMING_ZERO,
8216 .block_erasers =
8217 {
8218 {
8219 .eraseblocks = { {64 * 1024, 128} },
8220 .block_erase = erase_sector_jedec,
8221 }, {
8222 .eraseblocks = { {8 * 1024 * 1024, 1} },
8223 .block_erase = erase_chip_block_jedec,
8224 },
8225 },
8226 .write = write_jedec_1,
8227 .read = read_memmapped,
8228 .voltage = {2700, 3600},
8229 },
8230
8231 {
8232 .vendor = "Macronix",
8233 .name = "MX29GL128F",
8234 .bustype = BUS_PARALLEL,
8235 .manufacture_id = MACRONIX_ID,
8236 .model_id = MACRONIX_MX29GL128F,
8237 .total_size = 16384,
8238 .page_size = 128 * 1024, /* actual page size is 16 */
8239 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8240 .tested = TEST_UNTESTED,
8241 .probe = probe_jedec_29gl,
8242 .probe_timing = TIMING_ZERO,
8243 .block_erasers =
8244 {
8245 {
8246 .eraseblocks = { {128 * 1024, 128} },
8247 .block_erase = erase_sector_jedec,
8248 }, {
8249 .eraseblocks = { {16 * 1024 * 1024, 1} },
8250 .block_erase = erase_chip_block_jedec,
8251 },
8252 },
8253 .write = write_jedec_1,
8254 .read = read_memmapped,
8255 .voltage = {2700, 3600},
8256 },
8257
8258 {
8259 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008260 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008261 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008262 .manufacture_id = MACRONIX_ID,
8263 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008264 .total_size = 512,
8265 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008266 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8267 .tested = TEST_UNTESTED,
8268 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008269 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008270 .block_erasers =
8271 {
8272 {
Stefan Tauner6697f712014-08-06 15:09:15 +00008273 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00008274 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008275 }, {
8276 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008277 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008278 },
8279 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008280 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008282 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00008283 },
8284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008285 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008286 .vendor = "Micron/Numonyx/ST",
8287 .name = "M25P05-A",
8288 .bustype = BUS_SPI,
8289 .manufacture_id = ST_ID,
8290 .model_id = ST_M25P05A,
8291 .total_size = 64,
8292 .page_size = 256,
8293 .feature_bits = FEATURE_WRSR_WREN,
8294 .tested = TEST_OK_PREW,
8295 .probe = probe_spi_rdid,
8296 .probe_timing = TIMING_ZERO,
8297 .block_erasers =
8298 {
8299 {
8300 .eraseblocks = { {32 * 1024, 2} },
8301 .block_erase = spi_block_erase_d8,
8302 }, {
8303 .eraseblocks = { {64 * 1024, 1} },
8304 .block_erase = spi_block_erase_c7,
8305 }
8306 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008307 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008308 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008309 .write = spi_chip_write_256,
8310 .read = spi_chip_read,
8311 .voltage = {2700, 3600},
8312 },
8313
8314 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8315 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
8316 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
8317 * only is successful if RDID does not work.
8318 */
8319 {
8320 .vendor = "Micron/Numonyx/ST",
8321 .name = "M25P05",
8322 .bustype = BUS_SPI,
8323 .manufacture_id = 0, /* Not used. */
8324 .model_id = ST_M25P05_RES,
8325 .total_size = 64,
8326 .page_size = 256,
8327 .feature_bits = FEATURE_WRSR_WREN,
8328 .tested = TEST_UNTESTED,
8329 .probe = probe_spi_res1,
8330 .probe_timing = TIMING_ZERO,
8331 .block_erasers =
8332 {
8333 {
8334 .eraseblocks = { {32 * 1024, 2} },
8335 .block_erase = spi_block_erase_d8,
8336 }, {
8337 .eraseblocks = { {64 * 1024, 1} },
8338 .block_erase = spi_block_erase_c7,
8339 }
8340 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008341 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008342 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008343 .write = spi_chip_write_1, /* 128 */
8344 .read = spi_chip_read,
8345 .voltage = {2700, 3600},
8346 },
8347
8348 {
8349 .vendor = "Micron/Numonyx/ST",
8350 .name = "M25P10-A",
8351 .bustype = BUS_SPI,
8352 .manufacture_id = ST_ID,
8353 .model_id = ST_M25P10A,
8354 .total_size = 128,
8355 .page_size = 256,
8356 .feature_bits = FEATURE_WRSR_WREN,
8357 .tested = TEST_OK_PRE,
8358 .probe = probe_spi_rdid,
8359 .probe_timing = TIMING_ZERO,
8360 .block_erasers =
8361 {
8362 {
8363 .eraseblocks = { {32 * 1024, 4} },
8364 .block_erase = spi_block_erase_d8,
8365 }, {
8366 .eraseblocks = { {128 * 1024, 1} },
8367 .block_erase = spi_block_erase_c7,
8368 }
8369 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008370 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008371 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008372 .write = spi_chip_write_256,
8373 .read = spi_chip_read,
8374 .voltage = {2700, 3600},
8375 },
8376
8377 /* The ST M25P10 has the same problem as the M25P05. */
8378 {
8379 .vendor = "Micron/Numonyx/ST",
8380 .name = "M25P10",
8381 .bustype = BUS_SPI,
8382 .manufacture_id = 0, /* Not used. */
8383 .model_id = ST_M25P10_RES,
8384 .total_size = 128,
8385 .page_size = 256,
8386 .feature_bits = FEATURE_WRSR_WREN,
8387 .tested = TEST_UNTESTED,
8388 .probe = probe_spi_res1,
8389 .probe_timing = TIMING_ZERO,
8390 .block_erasers =
8391 {
8392 {
8393 .eraseblocks = { {32 * 1024, 4} },
8394 .block_erase = spi_block_erase_d8,
8395 }, {
8396 .eraseblocks = { {128 * 1024, 1} },
8397 .block_erase = spi_block_erase_c7,
8398 }
8399 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008400 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008401 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008402 .write = spi_chip_write_1, /* 128 */
8403 .read = spi_chip_read,
8404 .voltage = {2700, 3600},
8405 },
8406
8407 {
8408 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8409 .name = "M25P20",
8410 .bustype = BUS_SPI,
8411 .manufacture_id = ST_ID,
8412 .model_id = ST_M25P20,
8413 .total_size = 256,
8414 .page_size = 256,
8415 .feature_bits = FEATURE_WRSR_WREN,
8416 .tested = TEST_UNTESTED,
8417 .probe = probe_spi_rdid,
8418 .probe_timing = TIMING_ZERO,
8419 .block_erasers =
8420 {
8421 {
8422 .eraseblocks = { {64 * 1024, 4} },
8423 .block_erase = spi_block_erase_d8,
8424 }, {
8425 .eraseblocks = { {256 * 1024, 1} },
8426 .block_erase = spi_block_erase_c7,
8427 }
8428 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008429 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008430 .unlock = spi_disable_blockprotect,
8431 .write = spi_chip_write_256,
8432 .read = spi_chip_read, /* Fast read (0x0B) supported */
8433 .voltage = {2700, 3600},
8434 },
8435
8436 {
8437 .vendor = "Micron/Numonyx/ST",
8438 .name = "M25P20-old",
8439 .bustype = BUS_SPI,
8440 .manufacture_id = 0, /* Not used. */
8441 .model_id = ST_M25P20_RES,
8442 .total_size = 256,
8443 .page_size = 256,
8444 .feature_bits = FEATURE_WRSR_WREN,
8445 .tested = TEST_OK_PREW,
8446 .probe = probe_spi_res1,
8447 .probe_timing = TIMING_ZERO,
8448 .block_erasers =
8449 {
8450 {
8451 .eraseblocks = { {64 * 1024, 4} },
8452 .block_erase = spi_block_erase_d8,
8453 }, {
8454 .eraseblocks = { {256 * 1024, 1} },
8455 .block_erase = spi_block_erase_c7,
8456 }
8457 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008458 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008459 .unlock = spi_disable_blockprotect,
8460 .write = spi_chip_write_256,
8461 .read = spi_chip_read, /* Fast read (0x0B) supported */
8462 .voltage = {2700, 3600},
8463 },
8464
8465 {
8466 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8467 .name = "M25P40",
8468 .bustype = BUS_SPI,
8469 .manufacture_id = ST_ID,
8470 .model_id = ST_M25P40,
8471 .total_size = 512,
8472 .page_size = 256,
8473 .feature_bits = FEATURE_WRSR_WREN,
8474 .tested = TEST_OK_PREW,
8475 .probe = probe_spi_rdid,
8476 .probe_timing = TIMING_ZERO,
8477 .block_erasers =
8478 {
8479 {
8480 .eraseblocks = { {64 * 1024, 8} },
8481 .block_erase = spi_block_erase_d8,
8482 }, {
8483 .eraseblocks = { {512 * 1024, 1} },
8484 .block_erase = spi_block_erase_c7,
8485 }
8486 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008487 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008488 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008489 .write = spi_chip_write_256,
8490 .read = spi_chip_read,
8491 .voltage = {2700, 3600},
8492 },
8493
8494 {
8495 .vendor = "Micron/Numonyx/ST",
8496 .name = "M25P40-old",
8497 .bustype = BUS_SPI,
8498 .manufacture_id = 0, /* Not used. */
8499 .model_id = ST_M25P40_RES,
8500 .total_size = 512,
8501 .page_size = 256,
8502 .feature_bits = FEATURE_WRSR_WREN,
8503 .tested = TEST_UNTESTED,
8504 .probe = probe_spi_res1,
8505 .probe_timing = TIMING_ZERO,
8506 .block_erasers =
8507 {
8508 {
8509 .eraseblocks = { {64 * 1024, 8} },
8510 .block_erase = spi_block_erase_d8,
8511 }, {
8512 .eraseblocks = { {512 * 1024, 1} },
8513 .block_erase = spi_block_erase_c7,
8514 }
8515 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008516 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008517 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008518 .write = spi_chip_write_256,
8519 .read = spi_chip_read,
8520 },
8521
8522 {
8523 .vendor = "Micron/Numonyx/ST",
8524 .name = "M25P80",
8525 .bustype = BUS_SPI,
8526 .manufacture_id = ST_ID,
8527 .model_id = ST_M25P80,
8528 .total_size = 1024,
8529 .page_size = 256,
8530 .feature_bits = FEATURE_WRSR_WREN,
8531 .tested = TEST_OK_PREW,
8532 .probe = probe_spi_rdid,
8533 .probe_timing = TIMING_ZERO,
8534 .block_erasers =
8535 {
8536 {
8537 .eraseblocks = { {64 * 1024, 16} },
8538 .block_erase = spi_block_erase_d8,
8539 }, {
8540 .eraseblocks = { {1024 * 1024, 1} },
8541 .block_erase = spi_block_erase_c7,
8542 }
8543 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008544 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008545 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008546 .write = spi_chip_write_256,
8547 .read = spi_chip_read,
8548 .voltage = {2700, 3600},
8549 },
8550
8551 {
8552 .vendor = "Micron/Numonyx/ST",
8553 .name = "M25P16",
8554 .bustype = BUS_SPI,
8555 .manufacture_id = ST_ID,
8556 .model_id = ST_M25P16,
8557 .total_size = 2048,
8558 .page_size = 256,
8559 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008560 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008561 .probe = probe_spi_rdid,
8562 .probe_timing = TIMING_ZERO,
8563 .block_erasers =
8564 {
8565 {
8566 .eraseblocks = { {64 * 1024, 32} },
8567 .block_erase = spi_block_erase_d8,
8568 }, {
8569 .eraseblocks = { {2 * 1024 * 1024, 1} },
8570 .block_erase = spi_block_erase_c7,
8571 }
8572 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008573 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008574 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008575 .write = spi_chip_write_256,
8576 .read = spi_chip_read,
8577 .voltage = {2700, 3600},
8578 },
8579
8580 {
8581 .vendor = "Micron/Numonyx/ST",
8582 .name = "M25P32",
8583 .bustype = BUS_SPI,
8584 .manufacture_id = ST_ID,
8585 .model_id = ST_M25P32,
8586 .total_size = 4096,
8587 .page_size = 256,
8588 .feature_bits = FEATURE_WRSR_WREN,
8589 .tested = TEST_OK_PREW,
8590 .probe = probe_spi_rdid,
8591 .probe_timing = TIMING_ZERO,
8592 .block_erasers =
8593 {
8594 {
8595 .eraseblocks = { {64 * 1024, 64} },
8596 .block_erase = spi_block_erase_d8,
8597 }, {
8598 .eraseblocks = { {4 * 1024 * 1024, 1} },
8599 .block_erase = spi_block_erase_c7,
8600 }
8601 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008602 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008603 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008604 .write = spi_chip_write_256,
8605 .read = spi_chip_read,
8606 .voltage = {2700, 3600},
8607 },
8608
8609 {
8610 .vendor = "Micron/Numonyx/ST",
8611 .name = "M25P64",
8612 .bustype = BUS_SPI,
8613 .manufacture_id = ST_ID,
8614 .model_id = ST_M25P64,
8615 .total_size = 8192,
8616 .page_size = 256,
8617 .feature_bits = FEATURE_WRSR_WREN,
8618 .tested = TEST_OK_PREW,
8619 .probe = probe_spi_rdid,
8620 .probe_timing = TIMING_ZERO,
8621 .block_erasers =
8622 {
8623 {
8624 .eraseblocks = { {64 * 1024, 128} },
8625 .block_erase = spi_block_erase_d8,
8626 }, {
8627 .eraseblocks = { {8 * 1024 * 1024, 1} },
8628 .block_erase = spi_block_erase_c7,
8629 }
8630 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008631 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008632 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008633 .write = spi_chip_write_256,
8634 .read = spi_chip_read,
8635 .voltage = {2700, 3600},
8636 },
8637
8638 {
8639 .vendor = "Micron/Numonyx/ST",
8640 .name = "M25P128",
8641 .bustype = BUS_SPI,
8642 .manufacture_id = ST_ID,
8643 .model_id = ST_M25P128,
8644 .total_size = 16384,
8645 .page_size = 256,
8646 .feature_bits = FEATURE_WRSR_WREN,
8647 .tested = TEST_OK_PREW,
8648 .probe = probe_spi_rdid,
8649 .probe_timing = TIMING_ZERO,
8650 .block_erasers =
8651 {
8652 {
8653 .eraseblocks = { {256 * 1024, 64} },
8654 .block_erase = spi_block_erase_d8,
8655 }, {
8656 .eraseblocks = { {16 * 1024 * 1024, 1} },
8657 .block_erase = spi_block_erase_c7,
8658 }
8659 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008660 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008661 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008662 .write = spi_chip_write_256,
8663 .read = spi_chip_read,
8664 .voltage = {2700, 3600},
8665 },
8666
8667 {
8668 .vendor = "Micron/Numonyx/ST",
8669 .name = "M25PE10",
8670 .bustype = BUS_SPI,
8671 .manufacture_id = ST_ID,
8672 .model_id = ST_M25PE10,
8673 .total_size = 128,
8674 .page_size = 256,
8675 .feature_bits = FEATURE_WRSR_WREN,
8676 .tested = TEST_UNTESTED,
8677 .probe = probe_spi_rdid,
8678 .probe_timing = TIMING_ZERO,
8679 .block_erasers =
8680 {
8681 {
8682 .eraseblocks = { {4 * 1024, 32} },
8683 .block_erase = spi_block_erase_20,
8684 }, {
8685 .eraseblocks = { {64 * 1024, 2} },
8686 .block_erase = spi_block_erase_d8,
8687 }, {
8688 .eraseblocks = { {128 * 1024, 1} },
8689 .block_erase = spi_block_erase_c7,
8690 }
8691 },
8692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8693 .unlock = spi_disable_blockprotect,
8694 .write = spi_chip_write_256,
8695 .read = spi_chip_read,
8696 .voltage = {2700, 3600},
8697 },
8698
8699 {
8700 .vendor = "Micron/Numonyx/ST",
8701 .name = "M25PE20",
8702 .bustype = BUS_SPI,
8703 .manufacture_id = ST_ID,
8704 .model_id = ST_M25PE20,
8705 .total_size = 256,
8706 .page_size = 256,
8707 .feature_bits = FEATURE_WRSR_WREN,
8708 .tested = TEST_UNTESTED,
8709 .probe = probe_spi_rdid,
8710 .probe_timing = TIMING_ZERO,
8711 .block_erasers =
8712 {
8713 {
8714 .eraseblocks = { {4 * 1024, 64} },
8715 .block_erase = spi_block_erase_20,
8716 }, {
8717 .eraseblocks = { {64 * 1024, 4} },
8718 .block_erase = spi_block_erase_d8,
8719 }, {
8720 .eraseblocks = { {256 * 1024, 1} },
8721 .block_erase = spi_block_erase_c7,
8722 }
8723 },
8724 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8725 .unlock = spi_disable_blockprotect,
8726 .write = spi_chip_write_256,
8727 .read = spi_chip_read,
8728 .voltage = {2700, 3600},
8729 },
8730
8731 {
8732 .vendor = "Micron/Numonyx/ST",
8733 .name = "M25PE40",
8734 .bustype = BUS_SPI,
8735 .manufacture_id = ST_ID,
8736 .model_id = ST_M25PE40,
8737 .total_size = 512,
8738 .page_size = 256,
8739 .feature_bits = FEATURE_WRSR_WREN,
8740 .tested = TEST_UNTESTED,
8741 .probe = probe_spi_rdid,
8742 .probe_timing = TIMING_ZERO,
8743 .block_erasers =
8744 {
8745 {
8746 .eraseblocks = { {4 * 1024, 128} },
8747 .block_erase = spi_block_erase_20,
8748 }, {
8749 .eraseblocks = { {64 * 1024, 8} },
8750 .block_erase = spi_block_erase_d8,
8751 }, {
8752 .eraseblocks = { {512 * 1024, 1} },
8753 .block_erase = spi_block_erase_c7,
8754 }
8755 },
8756 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8757 .unlock = spi_disable_blockprotect,
8758 .write = spi_chip_write_256,
8759 .read = spi_chip_read,
8760 .voltage = {2700, 3600},
8761 },
8762
8763 {
8764 .vendor = "Micron/Numonyx/ST",
8765 .name = "M25PE80",
8766 .bustype = BUS_SPI,
8767 .manufacture_id = ST_ID,
8768 .model_id = ST_M25PE80,
8769 .total_size = 1024,
8770 .page_size = 256,
8771 .feature_bits = FEATURE_WRSR_WREN,
8772 .tested = TEST_OK_PREW,
8773 .probe = probe_spi_rdid,
8774 .probe_timing = TIMING_ZERO,
8775 .block_erasers =
8776 {
8777 {
8778 .eraseblocks = { {4 * 1024, 256} },
8779 .block_erase = spi_block_erase_20,
8780 }, {
8781 .eraseblocks = { {64 * 1024, 16} },
8782 .block_erase = spi_block_erase_d8,
8783 }, {
8784 .eraseblocks = { {1024 * 1024, 1} },
8785 .block_erase = spi_block_erase_c7,
8786 }
8787 },
8788 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8789 .unlock = spi_disable_blockprotect,
8790 .write = spi_chip_write_256,
8791 .read = spi_chip_read,
8792 .voltage = {2700, 3600},
8793 },
8794
8795 {
8796 .vendor = "Micron/Numonyx/ST",
8797 .name = "M25PE16",
8798 .bustype = BUS_SPI,
8799 .manufacture_id = ST_ID,
8800 .model_id = ST_M25PE16,
8801 .total_size = 2048,
8802 .page_size = 256,
8803 .feature_bits = FEATURE_WRSR_WREN,
8804 .tested = TEST_UNTESTED,
8805 .probe = probe_spi_rdid,
8806 .probe_timing = TIMING_ZERO,
8807 .block_erasers =
8808 {
8809 {
8810 .eraseblocks = { {4 * 1024, 512} },
8811 .block_erase = spi_block_erase_20,
8812 }, {
8813 .eraseblocks = { {64 * 1024, 32} },
8814 .block_erase = spi_block_erase_d8,
8815 }, {
8816 .eraseblocks = { {2 * 1024 * 1024, 1} },
8817 .block_erase = spi_block_erase_c7,
8818 }
8819 },
8820 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8821 .unlock = spi_disable_blockprotect,
8822 .write = spi_chip_write_256,
8823 .read = spi_chip_read,
8824 .voltage = {2700, 3600},
8825 },
8826
8827 {
8828 .vendor = "Micron/Numonyx/ST",
8829 .name = "M25PX80",
8830 .bustype = BUS_SPI,
8831 .manufacture_id = ST_ID,
8832 .model_id = ST_M25PX80,
8833 .total_size = 1024,
8834 .page_size = 256,
8835 /* OTP: 64B total; read 0x4B, write 0x42 */
8836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8837 .tested = TEST_OK_PREW,
8838 .probe = probe_spi_rdid,
8839 .probe_timing = TIMING_ZERO,
8840 .block_erasers = {
8841 {
8842 .eraseblocks = { { 4 * 1024, 256 } },
8843 .block_erase = spi_block_erase_20,
8844 }, {
8845 .eraseblocks = { {64 * 1024, 16} },
8846 .block_erase = spi_block_erase_d8,
8847 }, {
8848 .eraseblocks = { {1024 * 1024, 1} },
8849 .block_erase = spi_block_erase_c7,
8850 }
8851 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008852 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008853 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8854 .write = spi_chip_write_256,
8855 .read = spi_chip_read,
8856 .voltage = {2700, 3600},
8857 },
8858
8859 {
8860 .vendor = "Micron/Numonyx/ST",
8861 .name = "M25PX16",
8862 .bustype = BUS_SPI,
8863 .manufacture_id = ST_ID,
8864 .model_id = ST_M25PX16,
8865 .total_size = 2048,
8866 .page_size = 256,
8867 /* OTP: 64B total; read 0x4B; write 0x42 */
8868 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8869 .tested = TEST_OK_PREW,
8870 .probe = probe_spi_rdid,
8871 .probe_timing = TIMING_ZERO,
8872 .block_erasers =
8873 {
8874 {
8875 .eraseblocks = { { 4 * 1024, 512 } },
8876 .block_erase = spi_block_erase_20,
8877 }, {
8878 .eraseblocks = { {64 * 1024, 32} },
8879 .block_erase = spi_block_erase_d8,
8880 }, {
8881 .eraseblocks = { {2 * 1024 * 1024, 1} },
8882 .block_erase = spi_block_erase_c7,
8883 }
8884 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008885 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008886 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8887 .write = spi_chip_write_256,
8888 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008889 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008890 },
8891
8892 {
8893 .vendor = "Micron/Numonyx/ST",
8894 .name = "M25PX32",
8895 .bustype = BUS_SPI,
8896 .manufacture_id = ST_ID,
8897 .model_id = ST_M25PX32,
8898 .total_size = 4096,
8899 .page_size = 256,
8900 /* OTP: 64B total; read 0x4B; write 0x42 */
8901 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8902 .tested = TEST_OK_PRE,
8903 .probe = probe_spi_rdid,
8904 .probe_timing = TIMING_ZERO,
8905 .block_erasers =
8906 {
8907 {
8908 .eraseblocks = { { 4 * 1024, 1024 } },
8909 .block_erase = spi_block_erase_20,
8910 }, {
8911 .eraseblocks = { {64 * 1024, 64} },
8912 .block_erase = spi_block_erase_d8,
8913 }, {
8914 .eraseblocks = { {4 * 1024 * 1024, 1} },
8915 .block_erase = spi_block_erase_c7,
8916 }
8917 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008918 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008919 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8920 .write = spi_chip_write_256,
8921 .read = spi_chip_read,
8922 .voltage = {2700, 3600},
8923 },
8924
8925 {
8926 .vendor = "Micron/Numonyx/ST",
8927 .name = "M25PX64",
8928 .bustype = BUS_SPI,
8929 .manufacture_id = ST_ID,
8930 .model_id = ST_M25PX64,
8931 .total_size = 8192,
8932 .page_size = 256,
8933 /* OTP: 64B total; read 0x4B; write 0x42 */
8934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008935 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008936 .probe = probe_spi_rdid,
8937 .probe_timing = TIMING_ZERO,
8938 .block_erasers =
8939 {
8940 {
8941 .eraseblocks = { { 4 * 1024, 2048 } },
8942 .block_erase = spi_block_erase_20,
8943 }, {
8944 .eraseblocks = { {64 * 1024, 128} },
8945 .block_erase = spi_block_erase_d8,
8946 }, {
8947 .eraseblocks = { {8 * 1024 * 1024, 1} },
8948 .block_erase = spi_block_erase_c7,
8949 }
8950 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008951 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008952 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8953 .write = spi_chip_write_256,
8954 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008955 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008956 },
8957
8958 {
8959 .vendor = "Micron/Numonyx/ST",
8960 .name = "M45PE10",
8961 .bustype = BUS_SPI,
8962 .manufacture_id = ST_ID,
8963 .model_id = ST_M45PE10,
8964 .total_size = 128,
8965 .page_size = 256,
8966 .tested = TEST_UNTESTED,
8967 .probe = probe_spi_rdid,
8968 .probe_timing = TIMING_ZERO,
8969 .block_erasers = {
8970 {
8971 .eraseblocks = { {256, 512} },
8972 .block_erase = spi_block_erase_db,
8973 }, {
8974 .eraseblocks = { {64 * 1024, 2} },
8975 .block_erase = spi_block_erase_d8,
8976 }
8977 },
8978 .printlock = spi_prettyprint_status_register_default_welwip,
8979 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8980 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8981 .read = spi_chip_read, /* Fast read (0x0B) supported */
8982 .voltage = {2700, 3600},
8983 },
8984
8985 {
8986 .vendor = "Micron/Numonyx/ST",
8987 .name = "M45PE20",
8988 .bustype = BUS_SPI,
8989 .manufacture_id = ST_ID,
8990 .model_id = ST_M45PE20,
8991 .total_size = 256,
8992 .page_size = 256,
8993 .tested = TEST_UNTESTED,
8994 .probe = probe_spi_rdid,
8995 .probe_timing = TIMING_ZERO,
8996 .block_erasers = {
8997 {
8998 .eraseblocks = { {256, 1024} },
8999 .block_erase = spi_block_erase_db,
9000 }, {
9001 .eraseblocks = { {64 * 1024, 4} },
9002 .block_erase = spi_block_erase_d8,
9003 }
9004 },
9005 .printlock = spi_prettyprint_status_register_default_welwip,
9006 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9007 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9008 .read = spi_chip_read, /* Fast read (0x0B) supported */
9009 .voltage = {2700, 3600},
9010 },
9011
9012 {
9013 .vendor = "Micron/Numonyx/ST",
9014 .name = "M45PE40",
9015 .bustype = BUS_SPI,
9016 .manufacture_id = ST_ID,
9017 .model_id = ST_M45PE40,
9018 .total_size = 512,
9019 .page_size = 256,
9020 .tested = TEST_UNTESTED,
9021 .probe = probe_spi_rdid,
9022 .probe_timing = TIMING_ZERO,
9023 .block_erasers = {
9024 {
9025 .eraseblocks = { {256, 2048} },
9026 .block_erase = spi_block_erase_db,
9027 }, {
9028 .eraseblocks = { {64 * 1024, 8} },
9029 .block_erase = spi_block_erase_d8,
9030 }
9031 },
9032 .printlock = spi_prettyprint_status_register_default_welwip,
9033 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9034 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9035 .read = spi_chip_read, /* Fast read (0x0B) supported */
9036 .voltage = {2700, 3600},
9037 },
9038
9039 {
9040 .vendor = "Micron/Numonyx/ST",
9041 .name = "M45PE80",
9042 .bustype = BUS_SPI,
9043 .manufacture_id = ST_ID,
9044 .model_id = ST_M45PE80,
9045 .total_size = 1024,
9046 .page_size = 256,
9047 .tested = TEST_UNTESTED,
9048 .probe = probe_spi_rdid,
9049 .probe_timing = TIMING_ZERO,
9050 .block_erasers = {
9051 {
9052 .eraseblocks = { {256, 4096} },
9053 .block_erase = spi_block_erase_db,
9054 }, {
9055 .eraseblocks = { {64 * 1024, 16} },
9056 .block_erase = spi_block_erase_d8,
9057 }
9058 },
9059 .printlock = spi_prettyprint_status_register_default_welwip,
9060 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9061 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9062 .read = spi_chip_read, /* Fast read (0x0B) supported */
9063 .voltage = {2700, 3600},
9064 },
9065
9066 {
9067 .vendor = "Micron/Numonyx/ST",
9068 .name = "M45PE16",
9069 .bustype = BUS_SPI,
9070 .manufacture_id = ST_ID,
9071 .model_id = ST_M45PE16,
9072 .total_size = 2048,
9073 .page_size = 256,
9074 .tested = TEST_UNTESTED,
9075 .probe = probe_spi_rdid,
9076 .probe_timing = TIMING_ZERO,
9077 .block_erasers = {
9078 {
9079 .eraseblocks = { {256, 8192} },
9080 .block_erase = spi_block_erase_db,
9081 }, {
9082 .eraseblocks = { {64 * 1024, 32} },
9083 .block_erase = spi_block_erase_d8,
9084 }
9085 },
9086 .printlock = spi_prettyprint_status_register_default_welwip,
9087 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9088 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9089 .read = spi_chip_read, /* Fast read (0x0B) supported */
9090 .voltage = {2700, 3600},
9091 },
9092
9093 {
9094 .vendor = "Micron/Numonyx/ST",
9095 .name = "N25Q016",
9096 .bustype = BUS_SPI,
9097 .manufacture_id = ST_ID,
9098 .model_id = ST_N25Q016__1E,
9099 .total_size = 2048,
9100 .page_size = 256,
9101 /* supports SFDP */
9102 /* OTP: 64B total; read 0x4B, write 0x42 */
9103 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9104 .tested = TEST_UNTESTED,
9105 .probe = probe_spi_rdid,
9106 .probe_timing = TIMING_ZERO,
9107 .block_erasers =
9108 {
9109 {
9110 .eraseblocks = { {4 * 1024, 512} },
9111 .block_erase = spi_block_erase_20,
9112 }, {
9113 .eraseblocks = { {32 * 1024, 64} },
9114 .block_erase = spi_block_erase_52,
9115 }, {
9116 .eraseblocks = { {64 * 1024, 32} },
9117 .block_erase = spi_block_erase_d8,
9118 }, {
9119 .eraseblocks = { {2 * 1024 * 1024, 1} },
9120 .block_erase = spi_block_erase_c7,
9121 }
9122 },
9123 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9124 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9125 .write = spi_chip_write_256, /* Multi I/O supported */
9126 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9127 .voltage = {1700, 2000},
9128 },
9129
9130 {
9131 .vendor = "Micron/Numonyx/ST",
9132 .name = "N25Q032..1E",
9133 .bustype = BUS_SPI,
9134 .manufacture_id = ST_ID,
9135 .model_id = ST_N25Q032__1E,
9136 .total_size = 4096,
9137 .page_size = 256,
9138 /* supports SFDP */
9139 /* OTP: 64B total; read 0x4B, write 0x42 */
9140 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9141 .tested = TEST_UNTESTED,
9142 .probe = probe_spi_rdid,
9143 .probe_timing = TIMING_ZERO,
9144 .block_erasers =
9145 {
9146 {
9147 .eraseblocks = { {4 * 1024, 1024} },
9148 .block_erase = spi_block_erase_20,
9149 }, {
9150 .eraseblocks = { {64 * 1024, 64} },
9151 .block_erase = spi_block_erase_d8,
9152 }, {
9153 .eraseblocks = { {4 * 1024 * 1024, 1} },
9154 .block_erase = spi_block_erase_c7,
9155 }
9156 },
9157 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9158 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9159 .write = spi_chip_write_256, /* Multi I/O supported */
9160 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9161 .voltage = {1700, 2000},
9162 },
9163
9164 {
9165 .vendor = "Micron/Numonyx/ST",
9166 .name = "N25Q032..3E",
9167 .bustype = BUS_SPI,
9168 .manufacture_id = ST_ID,
9169 .model_id = ST_N25Q032__3E,
9170 .total_size = 4096,
9171 .page_size = 256,
9172 /* supports SFDP */
9173 /* OTP: 64B total; read 0x4B, write 0x42 */
9174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9175 .tested = TEST_OK_PREW,
9176 .probe = probe_spi_rdid,
9177 .probe_timing = TIMING_ZERO,
9178 .block_erasers =
9179 {
9180 {
9181 .eraseblocks = { {4 * 1024, 1024} },
9182 .block_erase = spi_block_erase_20,
9183 }, {
9184 .eraseblocks = { {64 * 1024, 64} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {4 * 1024 * 1024, 1} },
9188 .block_erase = spi_block_erase_c7,
9189 }
9190 },
9191 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9192 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9193 .write = spi_chip_write_256, /* Multi I/O supported */
9194 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9195 .voltage = {2700, 3600},
9196 },
9197
9198 {
9199 .vendor = "Micron/Numonyx/ST",
9200 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9201 .bustype = BUS_SPI,
9202 .manufacture_id = ST_ID,
9203 .model_id = ST_N25Q064__1E,
9204 .total_size = 8192,
9205 .page_size = 256,
9206 /* supports SFDP */
9207 /* OTP: 64B total; read 0x4B, write 0x42 */
9208 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009209 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009210 .probe = probe_spi_rdid,
9211 .probe_timing = TIMING_ZERO,
9212 .block_erasers =
9213 {
9214 {
9215 .eraseblocks = { {4 * 1024, 2048 } },
9216 .block_erase = spi_block_erase_20,
9217 }, {
9218 .eraseblocks = { {64 * 1024, 128} },
9219 .block_erase = spi_block_erase_d8,
9220 }, {
9221 .eraseblocks = { {8 * 1024 * 1024, 1} },
9222 .block_erase = spi_block_erase_c7,
9223 }
9224 },
9225 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9226 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9227 .write = spi_chip_write_256, /* Multi I/O supported */
9228 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9229 .voltage = {1700, 2000},
9230 },
9231
9232 {
9233 .vendor = "Micron/Numonyx/ST",
9234 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9235 .bustype = BUS_SPI,
9236 .manufacture_id = ST_ID,
9237 .model_id = ST_N25Q064__3E,
9238 .total_size = 8192,
9239 .page_size = 256,
9240 /* supports SFDP */
9241 /* OTP: 64B total; read 0x4B, write 0x42 */
9242 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9243 .tested = TEST_OK_PREW,
9244 .probe = probe_spi_rdid,
9245 .probe_timing = TIMING_ZERO,
9246 .block_erasers =
9247 {
9248 {
9249 .eraseblocks = { {4 * 1024, 2048 } },
9250 .block_erase = spi_block_erase_20,
9251 }, {
9252 .eraseblocks = { {64 * 1024, 128} },
9253 .block_erase = spi_block_erase_d8,
9254 }, {
9255 .eraseblocks = { {8 * 1024 * 1024, 1} },
9256 .block_erase = spi_block_erase_c7,
9257 }
9258 },
9259 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9260 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9261 .write = spi_chip_write_256, /* Multi I/O supported */
9262 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9263 .voltage = {2700, 3600},
9264 },
9265
9266 {
9267 .vendor = "Micron/Numonyx/ST",
9268 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9269 .bustype = BUS_SPI,
9270 .manufacture_id = ST_ID,
9271 .model_id = ST_N25Q128__1E,
9272 .total_size = 16384,
9273 .page_size = 256,
9274 /* supports SFDP */
9275 /* OTP: 64B total; read 0x4B, write 0x42 */
9276 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9277 .tested = TEST_UNTESTED,
9278 .probe = probe_spi_rdid,
9279 .probe_timing = TIMING_ZERO,
9280 .block_erasers = {
9281 {
9282 .eraseblocks = { {4 * 1024, 4096 } },
9283 .block_erase = spi_block_erase_20,
9284 }, {
9285 .eraseblocks = { {64 * 1024, 256} },
9286 .block_erase = spi_block_erase_d8,
9287 }, {
9288 .eraseblocks = { {16384 * 1024, 1} },
9289 .block_erase = spi_block_erase_c7,
9290 }
9291 },
9292 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9293 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9294 .write = spi_chip_write_256, /* Multi I/O supported */
9295 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9296 .voltage = {1700, 2000},
9297 },
9298
9299 {
9300 .vendor = "Micron/Numonyx/ST",
9301 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9302 .bustype = BUS_SPI,
9303 .manufacture_id = ST_ID,
9304 .model_id = ST_N25Q128__3E,
9305 .total_size = 16384,
9306 .page_size = 256,
9307 /* supports SFDP */
9308 /* OTP: 64B total; read 0x4B, write 0x42 */
9309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9310 .tested = TEST_OK_PREW,
9311 .probe = probe_spi_rdid,
9312 .probe_timing = TIMING_ZERO,
9313 .block_erasers = {
9314 {
9315 .eraseblocks = { {4 * 1024, 4096 } },
9316 .block_erase = spi_block_erase_20,
9317 }, {
9318 .eraseblocks = { {64 * 1024, 256} },
9319 .block_erase = spi_block_erase_d8,
9320 }, {
9321 .eraseblocks = { {16384 * 1024, 1} },
9322 .block_erase = spi_block_erase_c7,
9323 }
9324 },
9325 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9326 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9327 .write = spi_chip_write_256, /* Multi I/O supported */
9328 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9329 .voltage = {2700, 3600},
9330 },
9331
9332 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009333 .vendor = "MoselVitelic",
9334 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009335 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009336 .manufacture_id = SYNCMOS_MVC_ID,
9337 .model_id = MVC_V29C51000B,
9338 .total_size = 64,
9339 .page_size = 512,
9340 .feature_bits = FEATURE_EITHER_RESET,
9341 .tested = TEST_UNTESTED,
9342 .probe = probe_jedec,
9343 .probe_timing = TIMING_ZERO,
9344 .block_erasers =
9345 {
9346 {
9347 .eraseblocks = { {512, 128} },
9348 .block_erase = erase_sector_jedec,
9349 }, {
9350 .eraseblocks = { {64 * 1024, 1} },
9351 .block_erase = erase_chip_block_jedec,
9352 },
9353 },
9354 .write = write_jedec_1,
9355 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009356 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009357 },
9358
9359 {
9360 .vendor = "MoselVitelic",
9361 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009362 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009363 .manufacture_id = SYNCMOS_MVC_ID,
9364 .model_id = MVC_V29C51000T,
9365 .total_size = 64,
9366 .page_size = 512,
9367 .feature_bits = FEATURE_EITHER_RESET,
9368 .tested = TEST_UNTESTED,
9369 .probe = probe_jedec,
9370 .probe_timing = TIMING_ZERO,
9371 .block_erasers =
9372 {
9373 {
9374 .eraseblocks = { {512, 128} },
9375 .block_erase = erase_sector_jedec,
9376 }, {
9377 .eraseblocks = { {64 * 1024, 1} },
9378 .block_erase = erase_chip_block_jedec,
9379 },
9380 },
9381 .write = write_jedec_1,
9382 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009383 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009384 },
9385
9386 {
9387 .vendor = "MoselVitelic",
9388 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009389 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009390 .manufacture_id = SYNCMOS_MVC_ID,
9391 .model_id = MVC_V29C51400B,
9392 .total_size = 512,
9393 .page_size = 1024,
9394 .feature_bits = FEATURE_EITHER_RESET,
9395 .tested = TEST_UNTESTED,
9396 .probe = probe_jedec,
9397 .probe_timing = TIMING_ZERO,
9398 .block_erasers =
9399 {
9400 {
9401 .eraseblocks = { {1024, 512} },
9402 .block_erase = erase_sector_jedec,
9403 }, {
9404 .eraseblocks = { {512 * 1024, 1} },
9405 .block_erase = erase_chip_block_jedec,
9406 },
9407 },
9408 .write = write_jedec_1,
9409 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009410 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009411 },
9412
9413 {
9414 .vendor = "MoselVitelic",
9415 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009416 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009417 .manufacture_id = SYNCMOS_MVC_ID,
9418 .model_id = MVC_V29C51400T,
9419 .total_size = 512,
9420 .page_size = 1024,
9421 .feature_bits = FEATURE_EITHER_RESET,
9422 .tested = TEST_UNTESTED,
9423 .probe = probe_jedec,
9424 .probe_timing = TIMING_ZERO,
9425 .block_erasers =
9426 {
9427 {
9428 .eraseblocks = { {1024, 512} },
9429 .block_erase = erase_sector_jedec,
9430 }, {
9431 .eraseblocks = { {512 * 1024, 1} },
9432 .block_erase = erase_chip_block_jedec,
9433 },
9434 },
9435 .write = write_jedec_1,
9436 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009437 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009438 },
9439
9440 {
9441 .vendor = "MoselVitelic",
9442 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009443 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009444 .manufacture_id = SYNCMOS_MVC_ID,
9445 .model_id = MVC_V29LC51000,
9446 .total_size = 64,
9447 .page_size = 512,
9448 .feature_bits = FEATURE_EITHER_RESET,
9449 .tested = TEST_UNTESTED,
9450 .probe = probe_jedec,
9451 .probe_timing = TIMING_ZERO,
9452 .block_erasers =
9453 {
9454 {
9455 .eraseblocks = { {512, 128} },
9456 .block_erase = erase_sector_jedec,
9457 }, {
9458 .eraseblocks = { {64 * 1024, 1} },
9459 .block_erase = erase_chip_block_jedec,
9460 },
9461 },
9462 .write = write_jedec_1,
9463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009464 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009465 },
9466
9467 {
9468 .vendor = "MoselVitelic",
9469 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009470 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009471 .manufacture_id = SYNCMOS_MVC_ID,
9472 .model_id = MVC_V29LC51001,
9473 .total_size = 128,
9474 .page_size = 512,
9475 .feature_bits = FEATURE_EITHER_RESET,
9476 .tested = TEST_UNTESTED,
9477 .probe = probe_jedec,
9478 .probe_timing = TIMING_ZERO,
9479 .block_erasers =
9480 {
9481 {
9482 .eraseblocks = { {512, 256} },
9483 .block_erase = erase_sector_jedec,
9484 }, {
9485 .eraseblocks = { {128 * 1024, 1} },
9486 .block_erase = erase_chip_block_jedec,
9487 },
9488 },
9489 .write = write_jedec_1,
9490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009491 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009492 },
9493
9494 {
9495 .vendor = "MoselVitelic",
9496 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009497 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009498 .manufacture_id = SYNCMOS_MVC_ID,
9499 .model_id = MVC_V29LC51002,
9500 .total_size = 256,
9501 .page_size = 512,
9502 .feature_bits = FEATURE_EITHER_RESET,
9503 .tested = TEST_UNTESTED,
9504 .probe = probe_jedec,
9505 .probe_timing = TIMING_ZERO,
9506 .block_erasers =
9507 {
9508 {
9509 .eraseblocks = { {512, 512} },
9510 .block_erase = erase_sector_jedec,
9511 }, {
9512 .eraseblocks = { {256 * 1024, 1} },
9513 .block_erase = erase_chip_block_jedec,
9514 },
9515 },
9516 .write = write_jedec_1,
9517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009518 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009519 },
9520
9521 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009522 .vendor = "Nantronics",
9523 .name = "N25S10",
9524 .bustype = BUS_SPI,
9525 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9526 .model_id = NANTRONICS_N25S10,
9527 .total_size = 128,
9528 .page_size = 256,
9529 .feature_bits = FEATURE_WRSR_WREN,
9530 .tested = TEST_UNTESTED,
9531 .probe = probe_spi_rdid,
9532 .probe_timing = TIMING_ZERO,
9533 .block_erasers =
9534 {
9535 {
9536 .eraseblocks = { {4 * 1024, 32} },
9537 .block_erase = spi_block_erase_20,
9538 }, {
9539 .eraseblocks = { {4 * 1024, 32} },
9540 .block_erase = spi_block_erase_d7,
9541 }, {
9542 .eraseblocks = { {32 * 1024, 4} },
9543 .block_erase = spi_block_erase_52,
9544 }, {
9545 .eraseblocks = { {64 * 1024, 2} },
9546 .block_erase = spi_block_erase_d8,
9547 }, {
9548 .eraseblocks = { {128 * 1024, 1} },
9549 .block_erase = spi_block_erase_60,
9550 }, {
9551 .eraseblocks = { {128 * 1024, 1} },
9552 .block_erase = spi_block_erase_c7,
9553 }
9554 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009555 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009556 .unlock = spi_disable_blockprotect_bp3_srwd,
9557 .write = spi_chip_write_256,
9558 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9559 .voltage = {2700, 3600},
9560 },
9561
9562 {
9563 .vendor = "Nantronics",
9564 .name = "N25S20",
9565 .bustype = BUS_SPI,
9566 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9567 .model_id = NANTRONICS_N25S20,
9568 .total_size = 256,
9569 .page_size = 256,
9570 .feature_bits = FEATURE_WRSR_WREN,
9571 .tested = TEST_UNTESTED,
9572 .probe = probe_spi_rdid,
9573 .probe_timing = TIMING_ZERO,
9574 .block_erasers =
9575 {
9576 {
9577 .eraseblocks = { {4 * 1024, 64} },
9578 .block_erase = spi_block_erase_20,
9579 }, {
9580 .eraseblocks = { {4 * 1024, 64} },
9581 .block_erase = spi_block_erase_d7,
9582 }, {
9583 .eraseblocks = { {32 * 1024, 8} },
9584 .block_erase = spi_block_erase_52,
9585 }, {
9586 .eraseblocks = { {64 * 1024, 4} },
9587 .block_erase = spi_block_erase_d8,
9588 }, {
9589 .eraseblocks = { {256 * 1024, 1} },
9590 .block_erase = spi_block_erase_60,
9591 }, {
9592 .eraseblocks = { {256 * 1024, 1} },
9593 .block_erase = spi_block_erase_c7,
9594 }
9595 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009596 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009597 .unlock = spi_disable_blockprotect_bp3_srwd,
9598 .write = spi_chip_write_256,
9599 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9600 .voltage = {2700, 3600},
9601 },
9602
9603 {
9604 .vendor = "Nantronics",
9605 .name = "N25S40",
9606 .bustype = BUS_SPI,
9607 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9608 .model_id = NANTRONICS_N25S40,
9609 .total_size = 512,
9610 .page_size = 256,
9611 .feature_bits = FEATURE_WRSR_WREN,
9612 .tested = TEST_UNTESTED,
9613 .probe = probe_spi_rdid,
9614 .probe_timing = TIMING_ZERO,
9615 .block_erasers =
9616 {
9617 {
9618 .eraseblocks = { {4 * 1024, 128} },
9619 .block_erase = spi_block_erase_20,
9620 }, {
9621 .eraseblocks = { {4 * 1024, 128} },
9622 .block_erase = spi_block_erase_d7,
9623 }, {
9624 .eraseblocks = { {32 * 1024, 16} },
9625 .block_erase = spi_block_erase_52,
9626 }, {
9627 .eraseblocks = { {64 * 1024, 8} },
9628 .block_erase = spi_block_erase_d8,
9629 }, {
9630 .eraseblocks = { {512 * 1024, 1} },
9631 .block_erase = spi_block_erase_60,
9632 }, {
9633 .eraseblocks = { {512 * 1024, 1} },
9634 .block_erase = spi_block_erase_c7,
9635 }
9636 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009637 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009638 .unlock = spi_disable_blockprotect_bp3_srwd,
9639 .write = spi_chip_write_256,
9640 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9641 .voltage = {2700, 3600},
9642 },
9643
9644 {
9645 .vendor = "Nantronics",
9646 .name = "N25S80",
9647 .bustype = BUS_SPI,
9648 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9649 .model_id = NANTRONICS_N25S80,
9650 .total_size = 1024,
9651 .page_size = 256,
9652 .feature_bits = FEATURE_WRSR_WREN,
9653 .tested = TEST_UNTESTED,
9654 .probe = probe_spi_rdid,
9655 .probe_timing = TIMING_ZERO,
9656 .block_erasers =
9657 {
9658 {
9659 .eraseblocks = { {4 * 1024, 256} },
9660 .block_erase = spi_block_erase_20,
9661 }, {
9662 .eraseblocks = { {32 * 1024, 32} },
9663 .block_erase = spi_block_erase_52,
9664 }, {
9665 .eraseblocks = { {64 * 1024, 16} },
9666 .block_erase = spi_block_erase_d8,
9667 }, {
9668 .eraseblocks = { {1024 * 1024, 1} },
9669 .block_erase = spi_block_erase_60,
9670 }, {
9671 .eraseblocks = { {1024 * 1024, 1} },
9672 .block_erase = spi_block_erase_c7,
9673 }
9674 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009675 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009676 .unlock = spi_disable_blockprotect_bp3_srwd,
9677 .write = spi_chip_write_256,
9678 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9679 .voltage = {2700, 3600},
9680 },
9681
9682 {
9683 .vendor = "Nantronics",
9684 .name = "N25S16",
9685 .bustype = BUS_SPI,
9686 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9687 .model_id = NANTRONICS_N25S16,
9688 .total_size = 2048,
9689 .page_size = 256,
9690 .feature_bits = FEATURE_WRSR_WREN,
9691 .tested = TEST_UNTESTED,
9692 .probe = probe_spi_rdid,
9693 .probe_timing = TIMING_ZERO,
9694 .block_erasers =
9695 {
9696 {
9697 .eraseblocks = { {4 * 1024, 512} },
9698 .block_erase = spi_block_erase_20,
9699 }, {
9700 .eraseblocks = { {64 * 1024, 32} },
9701 .block_erase = spi_block_erase_d8,
9702 }, {
9703 .eraseblocks = { {2048 * 1024, 1} },
9704 .block_erase = spi_block_erase_60,
9705 }, {
9706 .eraseblocks = { {2048 * 1024, 1} },
9707 .block_erase = spi_block_erase_c7,
9708 }
9709 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009710 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009711 .unlock = spi_disable_blockprotect_bp3_srwd,
9712 .write = spi_chip_write_256,
9713 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9714 .voltage = {2700, 3600},
9715 },
9716
9717 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009718 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009719 .name = "Pm25LD256C",
9720 .bustype = BUS_SPI,
9721 .manufacture_id = PMC_ID,
9722 .model_id = PMC_PM25LD256C,
9723 .total_size = 32,
9724 .page_size = 256,
9725 .feature_bits = FEATURE_WRSR_WREN,
9726 .tested = TEST_UNTESTED,
9727 .probe = probe_spi_rdid,
9728 .probe_timing = TIMING_ZERO,
9729 .block_erasers =
9730 {
9731 {
9732 .eraseblocks = { {4 * 1024, 8} },
9733 .block_erase = spi_block_erase_20,
9734 }, {
9735 .eraseblocks = { {4 * 1024, 8} },
9736 .block_erase = spi_block_erase_d7,
9737 }, {
9738 .eraseblocks = { {32 * 1024, 1} },
9739 .block_erase = spi_block_erase_d8,
9740 }, {
9741 .eraseblocks = { {32 * 1024, 1} },
9742 .block_erase = spi_block_erase_60,
9743 }, {
9744 .eraseblocks = { {32 * 1024, 1} },
9745 .block_erase = spi_block_erase_c7,
9746 }
9747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009748 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009749 .unlock = spi_disable_blockprotect,
9750 .write = spi_chip_write_256,
9751 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9752 .voltage = {2700, 3600},
9753 },
9754 {
9755 .vendor = "PMC",
9756 .name = "Pm25LD512(C)",
9757 .bustype = BUS_SPI,
9758 .manufacture_id = PMC_ID,
9759 .model_id = PMC_PM25LD512,
9760 .total_size = 64,
9761 .page_size = 256,
9762 .feature_bits = FEATURE_WRSR_WREN,
9763 .tested = TEST_OK_PREW,
9764 .probe = probe_spi_rdid,
9765 .probe_timing = TIMING_ZERO,
9766 .block_erasers =
9767 {
9768 {
9769 .eraseblocks = { {4 * 1024, 16} },
9770 .block_erase = spi_block_erase_20,
9771 }, {
9772 .eraseblocks = { {4 * 1024, 16} },
9773 .block_erase = spi_block_erase_d7,
9774 }, {
9775 .eraseblocks = { {32 * 1024, 2} },
9776 .block_erase = spi_block_erase_d8,
9777 }, {
9778 .eraseblocks = { {64 * 1024, 1} },
9779 .block_erase = spi_block_erase_60,
9780 }, {
9781 .eraseblocks = { {64 * 1024, 1} },
9782 .block_erase = spi_block_erase_c7,
9783 }
9784 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009785 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009786 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9787 .write = spi_chip_write_256,
9788 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9789 .voltage = {2300, 3600},
9790 },
9791
9792 {
9793 .vendor = "PMC",
9794 .name = "Pm25LD010(C)",
9795 .bustype = BUS_SPI,
9796 .manufacture_id = PMC_ID,
9797 .model_id = PMC_PM25LD010,
9798 .total_size = 128,
9799 .page_size = 256,
9800 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009801 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00009802 .probe = probe_spi_rdid,
9803 .probe_timing = TIMING_ZERO,
9804 .block_erasers =
9805 {
9806 {
9807 .eraseblocks = { {4 * 1024, 32} },
9808 .block_erase = spi_block_erase_20,
9809 }, {
9810 .eraseblocks = { {4 * 1024, 32} },
9811 .block_erase = spi_block_erase_d7,
9812 }, {
9813 .eraseblocks = { {32 * 1024, 4} },
9814 .block_erase = spi_block_erase_d8,
9815 }, {
9816 .eraseblocks = { {128 * 1024, 1} },
9817 .block_erase = spi_block_erase_60,
9818 }, {
9819 .eraseblocks = { {128 * 1024, 1} },
9820 .block_erase = spi_block_erase_c7,
9821 }
9822 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009823 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009824 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9825 .write = spi_chip_write_256,
9826 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9827 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
9828 },
9829
9830 {
9831 .vendor = "PMC",
9832 .name = "Pm25LD020(C)",
9833 .bustype = BUS_SPI,
9834 .manufacture_id = PMC_ID,
9835 .model_id = PMC_PM25LD020,
9836 .total_size = 256,
9837 .page_size = 256,
9838 .feature_bits = FEATURE_WRSR_WREN,
9839 .tested = TEST_UNTESTED,
9840 .probe = probe_spi_rdid,
9841 .probe_timing = TIMING_ZERO,
9842 .block_erasers =
9843 {
9844 {
9845 .eraseblocks = { {4 * 1024, 64} },
9846 .block_erase = spi_block_erase_20,
9847 }, {
9848 .eraseblocks = { {4 * 1024, 64} },
9849 .block_erase = spi_block_erase_d7,
9850 }, {
9851 .eraseblocks = { {64 * 1024, 4} },
9852 .block_erase = spi_block_erase_d8,
9853 }, {
9854 .eraseblocks = { {256 * 1024, 1} },
9855 .block_erase = spi_block_erase_60,
9856 }, {
9857 .eraseblocks = { {256 * 1024, 1} },
9858 .block_erase = spi_block_erase_c7,
9859 }
9860 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009861 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009862 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9863 .write = spi_chip_write_256,
9864 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9865 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
9866 },
9867
9868 {
9869 .vendor = "PMC",
9870 .name = "Pm25LD040(C)",
9871 .bustype = BUS_SPI,
9872 .manufacture_id = PMC_ID,
9873 .model_id = PMC_PM25LV040,
9874 .total_size = 512,
9875 .page_size = 256,
9876 .feature_bits = FEATURE_WRSR_WREN,
9877 .tested = TEST_UNTESTED,
9878 .probe = probe_spi_rdid,
9879 .probe_timing = TIMING_ZERO,
9880 .block_erasers =
9881 {
9882 {
9883 .eraseblocks = { {4 * 1024, 128} },
9884 .block_erase = spi_block_erase_20,
9885 }, {
9886 .eraseblocks = { {4 * 1024, 128} },
9887 .block_erase = spi_block_erase_d7,
9888 }, {
9889 .eraseblocks = { {64 * 1024, 8} },
9890 .block_erase = spi_block_erase_d8,
9891 }, {
9892 .eraseblocks = { {512 * 1024, 1} },
9893 .block_erase = spi_block_erase_60,
9894 }, {
9895 .eraseblocks = { {512 * 1024, 1} },
9896 .block_erase = spi_block_erase_c7,
9897 }
9898 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009899 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009900 .unlock = spi_disable_blockprotect,
9901 .write = spi_chip_write_256,
9902 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9903 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
9904 },
9905
Steven Honeyman81a8fb72015-06-02 22:32:24 +00009906 {
9907 .vendor = "PMC",
9908 .name = "Pm25LQ020",
9909 .bustype = BUS_SPI,
9910 .manufacture_id = PMC_ID,
9911 .model_id = PMC_PM25LQ020,
9912 .total_size = 256,
9913 .page_size = 256,
9914 /* OTP: 256B total; read 0x4B, write 0xB1 */
9915 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9916 .tested = TEST_UNTESTED,
9917 .probe = probe_spi_rdid,
9918 .probe_timing = TIMING_ZERO,
9919 .block_erasers =
9920 {
9921 {
9922 .eraseblocks = { {4 * 1024, 64} },
9923 .block_erase = spi_block_erase_20,
9924 }, {
9925 .eraseblocks = { {4 * 1024, 64} },
9926 .block_erase = spi_block_erase_d7,
9927 }, {
9928 .eraseblocks = { {64 * 1024, 4} },
9929 .block_erase = spi_block_erase_d8,
9930 }, {
9931 .eraseblocks = { {256 * 1024, 1} },
9932 .block_erase = spi_block_erase_60,
9933 }, {
9934 .eraseblocks = { {256 * 1024, 1} },
9935 .block_erase = spi_block_erase_c7,
9936 }
9937 },
9938 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9939 .unlock = spi_disable_blockprotect_bp3_srwd,
9940 .write = spi_chip_write_256,
9941 .read = spi_chip_read,
9942 .voltage = {2300, 3600},
9943 },
9944
9945 {
9946 .vendor = "PMC",
9947 .name = "Pm25LQ040",
9948 .bustype = BUS_SPI,
9949 .manufacture_id = PMC_ID,
9950 .model_id = PMC_PM25LQ040,
9951 .total_size = 512,
9952 .page_size = 256,
9953 /* OTP: 256B total; read 0x4B, write 0xB1 */
9954 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9955 .tested = TEST_UNTESTED,
9956 .probe = probe_spi_rdid,
9957 .probe_timing = TIMING_ZERO,
9958 .block_erasers =
9959 {
9960 {
9961 .eraseblocks = { {4 * 1024, 128} },
9962 .block_erase = spi_block_erase_20,
9963 }, {
9964 .eraseblocks = { {4 * 1024, 128} },
9965 .block_erase = spi_block_erase_d7,
9966 }, {
9967 .eraseblocks = { {64 * 1024, 8} },
9968 .block_erase = spi_block_erase_d8,
9969 }, {
9970 .eraseblocks = { {512 * 1024, 1} },
9971 .block_erase = spi_block_erase_60,
9972 }, {
9973 .eraseblocks = { {512 * 1024, 1} },
9974 .block_erase = spi_block_erase_c7,
9975 }
9976 },
9977 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9978 .unlock = spi_disable_blockprotect_bp3_srwd,
9979 .write = spi_chip_write_256,
9980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9981 .voltage = {2300, 3600},
9982 },
9983
9984 {
9985 .vendor = "PMC",
9986 .name = "Pm25LQ080",
9987 .bustype = BUS_SPI,
9988 .manufacture_id = PMC_ID,
9989 .model_id = PMC_PM25LQ080,
9990 .total_size = 1024,
9991 .page_size = 256,
9992 /* OTP: 64B total; read 0x4B, write 0xB1 */
9993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9994 .tested = TEST_UNTESTED,
9995 .probe = probe_spi_rdid,
9996 .probe_timing = TIMING_ZERO,
9997 .block_erasers =
9998 {
9999 {
10000 .eraseblocks = { {4 * 1024, 256} },
10001 .block_erase = spi_block_erase_20,
10002 }, {
10003 .eraseblocks = { {4 * 1024, 256} },
10004 .block_erase = spi_block_erase_d7,
10005 }, {
10006 .eraseblocks = { {64 * 1024, 16} },
10007 .block_erase = spi_block_erase_d8,
10008 }, {
10009 .eraseblocks = { {1024 * 1024, 1} },
10010 .block_erase = spi_block_erase_60,
10011 }, {
10012 .eraseblocks = { {1024 * 1024, 1} },
10013 .block_erase = spi_block_erase_c7,
10014 }
10015 },
10016 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10017 .unlock = spi_disable_blockprotect_bp3_srwd,
10018 .write = spi_chip_write_256,
10019 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10020 .voltage = {2300, 3600},
10021 },
10022
10023 {
10024 .vendor = "PMC",
10025 .name = "Pm25LQ016",
10026 .bustype = BUS_SPI,
10027 .manufacture_id = PMC_ID,
10028 .model_id = PMC_PM25LQ016,
10029 .total_size = 2048,
10030 .page_size = 256,
10031 /* OTP: 256B total; read 0x4B, write 0xB1 */
10032 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10033 .tested = TEST_UNTESTED,
10034 .probe = probe_spi_rdid,
10035 .probe_timing = TIMING_ZERO,
10036 .block_erasers =
10037 {
10038 {
10039 .eraseblocks = { {4 * 1024, 512} },
10040 .block_erase = spi_block_erase_20,
10041 }, {
10042 .eraseblocks = { {4 * 1024, 512} },
10043 .block_erase = spi_block_erase_d7,
10044 }, {
10045 .eraseblocks = { {64 * 1024, 32} },
10046 .block_erase = spi_block_erase_d8,
10047 }, {
10048 .eraseblocks = { {2048 * 1024, 1} },
10049 .block_erase = spi_block_erase_60,
10050 }, {
10051 .eraseblocks = { {2048 * 1024, 1} },
10052 .block_erase = spi_block_erase_c7,
10053 }
10054 },
10055 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10056 .unlock = spi_disable_blockprotect_bp3_srwd,
10057 .write = spi_chip_write_256,
10058 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10059 .voltage = {2300, 3600},
10060 },
10061
10062 {
10063 .vendor = "PMC",
10064 .name = "Pm25LQ032C",
10065 .bustype = BUS_SPI,
10066 .manufacture_id = PMC_ID,
10067 .model_id = PMC_PM25LQ032C,
10068 .total_size = 4096,
10069 .page_size = 256,
10070 /* OTP: 64B total; read 0x4B, write 0xB1 */
10071 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10072 .tested = TEST_OK_PR,
10073 .probe = probe_spi_rdid,
10074 .probe_timing = TIMING_ZERO,
10075 .block_erasers =
10076 {
10077 {
10078 .eraseblocks = { {4 * 1024, 1024} },
10079 .block_erase = spi_block_erase_20,
10080 }, {
10081 .eraseblocks = { {4 * 1024, 1024} },
10082 .block_erase = spi_block_erase_d7,
10083 }, {
10084 .eraseblocks = { {64 * 1024, 64} },
10085 .block_erase = spi_block_erase_d8,
10086 }, {
10087 .eraseblocks = { {4096 * 1024, 1} },
10088 .block_erase = spi_block_erase_60,
10089 }, {
10090 .eraseblocks = { {4096 * 1024, 1} },
10091 .block_erase = spi_block_erase_c7,
10092 }
10093 },
10094 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10095 .unlock = spi_disable_blockprotect_bp3_srwd,
10096 .write = spi_chip_write_256,
10097 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10098 .voltage = {2700, 3600},
10099 },
10100
10101 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010102 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010103 .name = "Pm25LV512(A)",
10104 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010105 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010106 .model_id = PMC_PM25LV512,
10107 .total_size = 64,
10108 .page_size = 256,
10109 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010110 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010111 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010112 .probe_timing = TIMING_ZERO,
10113 .block_erasers =
10114 {
10115 {
10116 .eraseblocks = { {4 * 1024, 16} },
10117 .block_erase = spi_block_erase_d7,
10118 }, {
10119 .eraseblocks = { {32 * 1024, 2} },
10120 .block_erase = spi_block_erase_d8,
10121 }, {
10122 .eraseblocks = { {64 * 1024, 1} },
10123 .block_erase = spi_block_erase_c7,
10124 }
10125 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010126 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010127 .unlock = spi_disable_blockprotect,
10128 .write = spi_chip_write_256,
10129 .read = spi_chip_read, /* Fast read (0x0B) supported */
10130 .voltage = {2700, 3600},
10131 },
10132
10133 {
10134 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010135 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010136 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010137 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010138 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010139 .total_size = 128,
10140 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010141 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010142 .tested = TEST_OK_PREW,
10143 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010144 .probe_timing = TIMING_ZERO,
10145 .block_erasers =
10146 {
10147 {
10148 .eraseblocks = { {4 * 1024, 32} },
10149 .block_erase = spi_block_erase_d7,
10150 }, {
10151 .eraseblocks = { {32 * 1024, 4} },
10152 .block_erase = spi_block_erase_d8,
10153 }, {
10154 .eraseblocks = { {128 * 1024, 1} },
10155 .block_erase = spi_block_erase_c7,
10156 }
10157 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010158 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010159 .unlock = spi_disable_blockprotect,
10160 .write = spi_chip_write_256,
10161 .read = spi_chip_read, /* Fast read (0x0B) supported */
10162 .voltage = {2700, 3600},
10163 },
10164
10165 {
10166 .vendor = "PMC",
10167 .name = "Pm25LV010A",
10168 .bustype = BUS_SPI,
10169 .manufacture_id = PMC_ID,
10170 .model_id = PMC_PM25LV010,
10171 .total_size = 128,
10172 .page_size = 256,
10173 .feature_bits = FEATURE_WRSR_WREN,
10174 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010175 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010176 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010177 .block_erasers =
10178 {
10179 {
10180 .eraseblocks = { {4 * 1024, 32} },
10181 .block_erase = spi_block_erase_d7,
10182 }, {
10183 .eraseblocks = { {32 * 1024, 4} },
10184 .block_erase = spi_block_erase_d8,
10185 }, {
10186 .eraseblocks = { {128 * 1024, 1} },
10187 .block_erase = spi_block_erase_c7,
10188 }
10189 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010190 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010191 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010192 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010193 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010194 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010195 },
10196
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010197 {
10198 .vendor = "PMC",
10199 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010200 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010201 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010202 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010203 .total_size = 256,
10204 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010205 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010206 .tested = TEST_UNTESTED,
10207 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010208 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010209 .block_erasers =
10210 {
10211 {
10212 .eraseblocks = { {4 * 1024, 64} },
10213 .block_erase = spi_block_erase_d7,
10214 }, {
10215 .eraseblocks = { {64 * 1024, 4} },
10216 .block_erase = spi_block_erase_d8,
10217 }, {
10218 .eraseblocks = { {256 * 1024, 1} },
10219 .block_erase = spi_block_erase_c7,
10220 }
10221 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010222 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010223 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010224 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010225 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010226 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010227 },
10228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010229 {
10230 .vendor = "PMC",
10231 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010232 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010233 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010234 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010235 .total_size = 512,
10236 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010237 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000010238 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010239 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010240 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010241 .block_erasers =
10242 {
10243 {
10244 .eraseblocks = { {4 * 1024, 128} },
10245 .block_erase = spi_block_erase_d7,
10246 }, {
10247 .eraseblocks = { {64 * 1024, 8} },
10248 .block_erase = spi_block_erase_d8,
10249 }, {
10250 .eraseblocks = { {512 * 1024, 1} },
10251 .block_erase = spi_block_erase_c7,
10252 }
10253 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010254 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010255 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010256 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010257 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010258 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010259 },
10260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010261 {
10262 .vendor = "PMC",
10263 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010264 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010265 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010266 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010267 .total_size = 1024,
10268 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010269 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010270 .tested = TEST_UNTESTED,
10271 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010272 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010273 .block_erasers =
10274 {
10275 {
10276 .eraseblocks = { {4 * 1024, 256} },
10277 .block_erase = spi_block_erase_d7,
10278 }, {
10279 .eraseblocks = { {4 * 1024, 256} },
10280 .block_erase = spi_block_erase_20,
10281 }, {
10282 .eraseblocks = { {64 * 1024, 16} },
10283 .block_erase = spi_block_erase_d8,
10284 }, {
10285 .eraseblocks = { {1024 * 1024, 1} },
10286 .block_erase = spi_block_erase_60,
10287 }, {
10288 .eraseblocks = { {1024 * 1024, 1} },
10289 .block_erase = spi_block_erase_c7,
10290 }
10291 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010292 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010293 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010294 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010295 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010297 },
10298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010299 {
10300 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010301 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010302 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010303 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010304 .model_id = PMC_PM25LV016B,
10305 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010306 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010307 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010308 .tested = TEST_UNTESTED,
10309 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010310 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010311 .block_erasers =
10312 {
10313 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010314 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000010315 .block_erase = spi_block_erase_d7,
10316 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010317 .eraseblocks = { {4 * 1024, 512} },
10318 .block_erase = spi_block_erase_20,
10319 }, {
10320 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000010321 .block_erase = spi_block_erase_d8,
10322 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010323 .eraseblocks = { {2 * 1024 * 1024, 1} },
10324 .block_erase = spi_block_erase_60,
10325 }, {
10326 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010327 .block_erase = spi_block_erase_c7,
10328 }
10329 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010330 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010331 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010332 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010333 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010334 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010335 },
10336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010337 {
10338 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010339 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010340 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010341 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010342 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010343 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010344 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010345 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010346 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010347 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010348 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010349 .block_erasers =
10350 {
10351 {
10352 .eraseblocks = {
10353 {128 * 1024, 1},
10354 {96 * 1024, 1},
10355 {8 * 1024, 2},
10356 {16 * 1024, 1},
10357 },
Sean Nelson35727f72010-01-28 23:55:12 +000010358 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010359 }, {
10360 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010361 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010362 },
10363 },
Sean Nelson35727f72010-01-28 23:55:12 +000010364 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010365 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010366 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010367 },
10368
10369 {
10370 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010371 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010372 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010373 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010374 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010375 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010376 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010378 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010379 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010380 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010381 .block_erasers =
10382 {
10383 {
10384 .eraseblocks = {
10385 {16 * 1024, 1},
10386 {8 * 1024, 2},
10387 {96 * 1024, 1},
10388 {128 * 1024, 1},
10389 },
Sean Nelson35727f72010-01-28 23:55:12 +000010390 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010391 }, {
10392 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010393 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000010394 },
10395 },
Sean Nelson35727f72010-01-28 23:55:12 +000010396 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010397 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010398 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010399 },
10400
10401 {
10402 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010403 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010404 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010405 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010406 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010407 .total_size = 128,
10408 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010409 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010410 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010411 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010412 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000010413 .block_erasers =
10414 {
10415 {
10416 .eraseblocks = { {4 * 1024, 32} },
10417 .block_erase = erase_sector_jedec,
10418 }, {
10419 .eraseblocks = { {64 * 1024, 2} },
10420 .block_erase = erase_block_jedec,
10421 }, {
10422 .eraseblocks = { {128 * 1024, 1} },
10423 .block_erase = erase_chip_block_jedec,
10424 }
10425 },
Sean Nelson35727f72010-01-28 23:55:12 +000010426 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010428 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000010429 },
10430
10431 {
10432 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010433 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010434 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010435 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010436 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010437 .total_size = 256,
10438 .page_size = 4096,
10439 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10440 .tested = TEST_UNTESTED,
10441 .probe = probe_jedec,
10442 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10443 .block_erasers =
10444 {
10445 {
10446 .eraseblocks = { {4 * 1024, 64} },
10447 .block_erase = erase_sector_jedec,
10448 }, {
10449 .eraseblocks = { {64 * 1024, 4} },
10450 .block_erase = erase_block_jedec,
10451 }, {
10452 .eraseblocks = { {256 * 1024, 1} },
10453 .block_erase = erase_chip_block_jedec,
10454 }
10455 },
10456 .write = write_jedec_1,
10457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010458 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010459 },
10460
10461 {
10462 .vendor = "PMC",
10463 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010464 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010465 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010466 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010467 .total_size = 512,
10468 .page_size = 4096,
10469 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010470 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010471 .probe = probe_jedec,
10472 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10473 .block_erasers =
10474 {
10475 {
10476 .eraseblocks = { {4 * 1024, 128} },
10477 .block_erase = erase_sector_jedec,
10478 }, {
10479 .eraseblocks = { {64 * 1024, 8} },
10480 .block_erase = erase_block_jedec,
10481 }, {
10482 .eraseblocks = { {512 * 1024, 1} },
10483 .block_erase = erase_chip_block_jedec,
10484 }
10485 },
10486 .write = write_jedec_1,
10487 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010488 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010489 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000010490
10491 {
10492 .vendor = "PMC",
10493 .name = "Pm39LV512",
10494 .bustype = BUS_PARALLEL,
10495 .manufacture_id = PMC_ID_NOPREFIX,
10496 .model_id = PMC_PM39LV512,
10497 .total_size = 64,
10498 .page_size = 4096,
10499 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10500 .tested = TEST_OK_PREW,
10501 .probe = probe_jedec,
10502 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10503 .block_erasers =
10504 {
10505 {
10506 .eraseblocks = { {4 * 1024, 16} },
10507 .block_erase = erase_sector_jedec,
10508 }, {
10509 .eraseblocks = { {64 * 1024, 1} },
10510 .block_erase = erase_block_jedec,
10511 }, {
10512 .eraseblocks = { {64 * 1024, 1} },
10513 .block_erase = erase_chip_block_jedec,
10514 }
10515 },
10516 .write = write_jedec_1,
10517 .read = read_memmapped,
10518 .voltage = {2700, 3600},
10519 },
10520
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000010521 {
10522 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010523 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010524 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010525 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010526 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010527 .total_size = 256,
10528 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010529 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010530 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010531 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010532 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000010533 .block_erasers =
10534 {
10535 {
10536 .eraseblocks = { {4 * 1024, 64} },
10537 .block_erase = erase_sector_jedec,
10538 }, {
10539 .eraseblocks = { {16 * 1024, 16} },
10540 .block_erase = erase_block_jedec,
10541 }, {
10542 .eraseblocks = { {256 * 1024, 1} },
10543 .block_erase = erase_chip_block_jedec,
10544 }
10545 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010546 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000010547 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010549 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010550 },
10551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010552 {
10553 .vendor = "PMC",
10554 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010555 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010556 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010557 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010558 .total_size = 512,
10559 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010560 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000010561 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010562 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000010563 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010564 .block_erasers =
10565 {
10566 {
10567 .eraseblocks = { {4 * 1024, 128} },
10568 .block_erase = erase_sector_jedec,
10569 }, {
10570 .eraseblocks = { {64 * 1024, 8} },
10571 .block_erase = erase_block_jedec,
10572 }, {
10573 .eraseblocks = { {512 * 1024, 1} },
10574 .block_erase = erase_chip_block_jedec,
10575 }
10576 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010577 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000010578 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010580 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010581 },
10582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010583 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000010584 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000010585 .name = "LE25FW106",
10586 .bustype = BUS_SPI,
10587 .manufacture_id = SANYO_ID,
10588 .model_id = SANYO_LE25FW106,
10589 .total_size = 128,
10590 .page_size = 256,
10591 .feature_bits = FEATURE_WRSR_WREN,
10592 .tested = TEST_OK_PREW,
10593 .probe = probe_spi_res2,
10594 .probe_timing = TIMING_ZERO,
10595 .block_erasers = {
10596 {
10597 .eraseblocks = { {2 * 1024, 64} },
10598 .block_erase = spi_block_erase_d7,
10599 }, {
10600 .eraseblocks = { {32 * 1024, 4} },
10601 .block_erase = spi_block_erase_d8,
10602 }, {
10603 .eraseblocks = { {128 * 1024, 1} },
10604 .block_erase = spi_block_erase_c7,
10605 }
10606 },
10607 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
10608 .unlock = spi_disable_blockprotect_bp1_srwd,
10609 .write = spi_chip_write_256,
10610 .read = spi_chip_read,
10611 .voltage = {2700, 3600},
10612 },
10613
10614 {
10615 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000010616 .name = "LE25FW406A",
10617 .bustype = BUS_SPI,
10618 .manufacture_id = SANYO_ID,
10619 .model_id = SANYO_LE25FW406A,
10620 .total_size = 512,
10621 .page_size = 256,
10622 .feature_bits = FEATURE_WRSR_WREN,
10623 .tested = TEST_OK_PREW,
10624 .probe = probe_spi_res2,
10625 .probe_timing = TIMING_ZERO,
10626 .block_erasers = {
10627 {
10628 .eraseblocks = { {4 * 1024, 128} },
10629 .block_erase = spi_block_erase_d7,
10630 }, {
10631 .eraseblocks = { {64 * 1024, 8} },
10632 .block_erase = spi_block_erase_d8,
10633 }, {
10634 .eraseblocks = { {512 * 1024, 1} },
10635 .block_erase = spi_block_erase_c7,
10636 }
10637 },
10638 .printlock = spi_prettyprint_status_register_plain,
10639 .unlock = spi_disable_blockprotect,
10640 .write = spi_chip_write_256,
10641 .read = spi_chip_read,
10642 .voltage = {2700, 3600},
10643 },
10644
10645 {
10646 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000010647 .name = "LE25FU406B",
10648 .bustype = BUS_SPI,
10649 .manufacture_id = SANYO_ID,
10650 .model_id = SANYO_LE25FU406B,
10651 .total_size = 512,
10652 .page_size = 256,
10653 .feature_bits = FEATURE_WRSR_WREN,
10654 .tested = TEST_OK_PREW,
10655 .probe = probe_spi_res2,
10656 .probe_timing = TIMING_ZERO,
10657 .block_erasers = {
10658 {
10659 .eraseblocks = { {4 * 1024, 128} },
10660 .block_erase = spi_block_erase_d7,
10661 }, {
10662 .eraseblocks = { {64 * 1024, 8} },
10663 .block_erase = spi_block_erase_d8,
10664 }, {
10665 .eraseblocks = { {512 * 1024, 1} },
10666 .block_erase = spi_block_erase_c7,
10667 }
10668 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010669 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000010670 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10671 .write = spi_chip_write_256,
10672 .read = spi_chip_read,
10673 .voltage = {2300, 3600},
10674 },
10675
10676 {
10677 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010678 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010679 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000010680 .manufacture_id = SANYO_ID,
10681 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010682 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000010683 .page_size = 256,
10684 .tested = TEST_UNTESTED,
10685 .probe = probe_spi_rdid,
10686 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010687 .block_erasers =
10688 {
10689 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010690 .eraseblocks = { {256, 1024} },
10691 .block_erase = spi_block_erase_db,
10692 }, {
10693 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000010694 .block_erase = spi_block_erase_d8,
10695 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010696 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010697 .block_erase = spi_block_erase_c7,
10698 }
10699 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010700 .printlock = spi_prettyprint_status_register_default_welwip,
10701 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000010702 .write = spi_chip_write_256,
10703 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010704 .voltage = {2700, 3600},
10705 },
10706
10707 {
10708 .vendor = "Sanyo",
10709 .name = "LE25FW403A",
10710 .bustype = BUS_SPI,
10711 .manufacture_id = SANYO_ID,
10712 .model_id = SANYO_LE25FW403A,
10713 .total_size = 512,
10714 .page_size = 256,
10715 .tested = TEST_UNTESTED,
10716 .probe = probe_spi_rdid,
10717 .probe_timing = TIMING_ZERO,
10718 .block_erasers = {
10719 {
10720 .eraseblocks = { {256, 2 * 1024} },
10721 .block_erase = spi_block_erase_db,
10722 }, {
10723 .eraseblocks = { {64 * 1024, 8} },
10724 .block_erase = spi_block_erase_d8,
10725 }, {
10726 .eraseblocks = { {512 * 1024, 1} },
10727 .block_erase = spi_block_erase_c7,
10728 }
10729 },
10730 .printlock = spi_prettyprint_status_register_default_welwip,
10731 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10732 .write = spi_chip_write_256,
10733 .read = spi_chip_read,
10734 .voltage = {2700, 3600},
10735 },
10736
10737 {
10738 .vendor = "Sanyo",
10739 .name = "LE25FW418A",
10740 .bustype = BUS_SPI,
10741 .manufacture_id = SANYO_ID,
10742 .model_id = SANYO_LE25FW418A,
10743 .total_size = 512,
10744 .page_size = 256,
10745 .feature_bits = FEATURE_WRSR_WREN,
10746 .tested = TEST_UNTESTED,
10747 .probe = probe_spi_res2,
10748 .probe_timing = TIMING_ZERO,
10749 .block_erasers = {
10750 {
10751 .eraseblocks = { {4 * 1024, 128} },
10752 .block_erase = spi_block_erase_d7,
10753 }, {
10754 .eraseblocks = { {64 * 1024, 8} },
10755 .block_erase = spi_block_erase_d8,
10756 }, {
10757 .eraseblocks = { {512 * 1024, 1} },
10758 .block_erase = spi_block_erase_c7,
10759 }
10760 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010761 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010762 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10763 .write = spi_chip_write_256,
10764 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10765 .voltage = {2700, 3600},
10766 },
10767
10768 {
10769 .vendor = "Sanyo",
10770 .name = "LE25FW806",
10771 .bustype = BUS_SPI,
10772 .manufacture_id = SANYO_ID,
10773 .model_id = SANYO_LE25FW806,
10774 .total_size = 1024,
10775 .page_size = 256,
10776 .feature_bits = FEATURE_WRSR_WREN,
10777 .tested = TEST_UNTESTED,
10778 .probe = probe_spi_res2,
10779 .probe_timing = TIMING_ZERO,
10780 .block_erasers = {
10781 {
10782 .eraseblocks = { {4 * 1024, 256} },
10783 .block_erase = spi_block_erase_20,
10784 }, {
10785 .eraseblocks = { {4 * 1024, 256} },
10786 .block_erase = spi_block_erase_d7,
10787 }, {
10788 .eraseblocks = { {64 * 1024, 16} },
10789 .block_erase = spi_block_erase_d8,
10790 }, {
10791 .eraseblocks = { {1024 * 1024, 1} },
10792 .block_erase = spi_block_erase_c7,
10793 }
10794 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010795 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010796 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10797 .write = spi_chip_write_256,
10798 .read = spi_chip_read,
10799 .voltage = {2700, 3600},
10800 },
10801
10802 {
10803 .vendor = "Sanyo",
10804 .name = "LE25FW808",
10805 .bustype = BUS_SPI,
10806 .manufacture_id = SANYO_ID,
10807 .model_id = SANYO_LE25FW808,
10808 .total_size = 1024,
10809 .page_size = 256,
10810 .feature_bits = FEATURE_WRSR_WREN,
10811 .tested = TEST_UNTESTED,
10812 .probe = probe_spi_res2,
10813 .probe_timing = TIMING_ZERO,
10814 .block_erasers = {
10815 {
10816 .eraseblocks = { {8 * 1024, 128} },
10817 .block_erase = spi_block_erase_d7,
10818 }, {
10819 .eraseblocks = { {64 * 1024, 16} },
10820 .block_erase = spi_block_erase_d8,
10821 }, {
10822 .eraseblocks = { {1024 * 1024, 1} },
10823 .block_erase = spi_block_erase_c7,
10824 }
10825 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010826 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010827 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10828 .write = spi_chip_write_256,
10829 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10830 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000010831 },
10832
10833 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010834 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010835 .name = "LH28F008BJT-BTLZ1",
10836 .bustype = BUS_PARALLEL,
10837 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000010838 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010839 .total_size = 1024,
10840 .page_size = 64 * 1024,
10841 .tested = TEST_OK_PREW,
10842 .probe = probe_82802ab,
10843 .probe_timing = TIMING_ZERO,
10844 .block_erasers =
10845 {
10846 {
10847 .eraseblocks = {
10848 {8 * 1024, 8},
10849 {64 * 1024, 15}
10850 },
10851 .block_erase = erase_block_82802ab,
10852 }, {
10853 .eraseblocks = { {1024 * 1024, 1} },
10854 .block_erase = erase_sector_49lfxxxc,
10855 }
10856 },
10857 .unlock = unlock_lh28f008bjt,
10858 .write = write_82802ab,
10859 .read = read_memmapped,
10860 .voltage = {2700, 3600},
10861 },
10862
10863 {
10864 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010865 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010866 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010867 .manufacture_id = SHARP_ID,
10868 .model_id = SHARP_LHF00L04,
10869 .total_size = 1024,
10870 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010871 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010872 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010873 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010874 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010875 .block_erasers =
10876 {
10877 {
10878 .eraseblocks = {
10879 {64 * 1024, 15},
10880 {8 * 1024, 8}
10881 },
Sean Nelson28accc22010-03-19 18:47:06 +000010882 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010883 }, {
10884 .eraseblocks = {
10885 {1024 * 1024, 1}
10886 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010887 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010888 },
10889 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010890 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000010891 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010893 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010894 },
10895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010896 {
10897 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000010898 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010899 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010900 .manufacture_id = SPANSION_ID,
10901 .model_id = SPANSION_S25FL004A,
10902 .total_size = 512,
10903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010904 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010905 .tested = TEST_UNTESTED,
10906 .probe = probe_spi_rdid,
10907 .probe_timing = TIMING_ZERO,
10908 .block_erasers =
10909 {
10910 {
10911 .eraseblocks = { {64 * 1024, 8} },
10912 .block_erase = spi_block_erase_d8,
10913 }, {
10914 .eraseblocks = { {512 * 1024, 1} },
10915 .block_erase = spi_block_erase_c7,
10916 }
10917 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010918 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010919 .unlock = spi_disable_blockprotect,
10920 .write = spi_chip_write_256,
10921 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010922 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010923 },
10924
10925 {
10926 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000010927 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010928 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000010929 .manufacture_id = SPANSION_ID,
10930 .model_id = SPANSION_S25FL008A,
10931 .total_size = 1024,
10932 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010933 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010934 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000010935 .probe = probe_spi_rdid,
10936 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000010937 .block_erasers =
10938 {
10939 {
10940 .eraseblocks = { {64 * 1024, 16} },
10941 .block_erase = spi_block_erase_d8,
10942 }, {
10943 .eraseblocks = { {1024 * 1024, 1} },
10944 .block_erase = spi_block_erase_c7,
10945 }
10946 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010947 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010948 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000010949 .write = spi_chip_write_256,
10950 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010951 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000010952 },
10953
10954 {
10955 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010956 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010957 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010958 .manufacture_id = SPANSION_ID,
10959 .model_id = SPANSION_S25FL016A,
10960 .total_size = 2048,
10961 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010962 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010963 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010964 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010965 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010966 .block_erasers =
10967 {
10968 {
10969 .eraseblocks = { {64 * 1024, 32} },
10970 .block_erase = spi_block_erase_d8,
10971 }, {
10972 .eraseblocks = { {2 * 1024 * 1024, 1} },
10973 .block_erase = spi_block_erase_c7,
10974 }
10975 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010976 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010977 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010978 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010979 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010980 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010981 },
10982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010983 {
Rudy Hostf4e57772010-11-29 00:37:49 +000010984 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010985 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010986 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010987 .manufacture_id = SPANSION_ID,
10988 .model_id = SPANSION_S25FL032A,
10989 .total_size = 4096,
10990 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010991 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010992 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000010993 .probe = probe_spi_rdid,
10994 .probe_timing = TIMING_ZERO,
10995 .block_erasers =
10996 {
10997 {
10998 .eraseblocks = { {64 * 1024, 64} },
10999 .block_erase = spi_block_erase_d8,
11000 }, {
11001 .eraseblocks = { {4 * 1024 * 1024, 1} },
11002 .block_erase = spi_block_erase_c7,
11003 }
11004 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011005 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011006 .unlock = spi_disable_blockprotect,
11007 .write = spi_chip_write_256,
11008 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011009 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011010 },
11011
11012 {
11013 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011014 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011015 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011016 .manufacture_id = SPANSION_ID,
11017 .model_id = SPANSION_S25FL064A,
11018 .total_size = 8192,
11019 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011020 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011021 .tested = TEST_OK_PREW,
11022 .probe = probe_spi_rdid,
11023 .probe_timing = TIMING_ZERO,
11024 .block_erasers =
11025 {
11026 {
11027 .eraseblocks = { {64 * 1024, 128} },
11028 .block_erase = spi_block_erase_d8,
11029 }, {
11030 .eraseblocks = { {8 * 1024 * 1024, 1} },
11031 .block_erase = spi_block_erase_c7,
11032 }
11033 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011034 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011035 .unlock = spi_disable_blockprotect,
11036 .write = spi_chip_write_256,
11037 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011038 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011039 },
11040
11041 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011042 .vendor = "Spansion",
11043 .name = "S25FL204K",
11044 .bustype = BUS_SPI,
11045 .manufacture_id = SPANSION_ID,
11046 .model_id = SPANSION_S25FL204,
11047 .total_size = 512,
11048 .page_size = 256,
11049 .feature_bits = FEATURE_WRSR_WREN,
11050 .tested = TEST_UNTESTED,
11051 .probe = probe_spi_rdid,
11052 .probe_timing = TIMING_ZERO,
11053 .block_erasers = {
11054 {
11055 .eraseblocks = { {4 * 1024, 128} },
11056 .block_erase = spi_block_erase_20,
11057 }, {
11058 .eraseblocks = { {64 * 1024, 8} },
11059 .block_erase = spi_block_erase_d8,
11060 }, {
11061 .eraseblocks = { { 512 * 1024, 1} },
11062 .block_erase = spi_block_erase_60,
11063 }, {
11064 .eraseblocks = { { 512 * 1024, 1} },
11065 .block_erase = spi_block_erase_c7,
11066 }
11067 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011068 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011069 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011070 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011071 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011072 .voltage = {2700, 3600},
11073 },
11074
11075 {
11076 .vendor = "Spansion",
11077 .name = "S25FL208K",
11078 .bustype = BUS_SPI,
11079 .manufacture_id = SPANSION_ID,
11080 .model_id = SPANSION_S25FL208,
11081 .total_size = 1024,
11082 .page_size = 256,
11083 .feature_bits = FEATURE_WRSR_WREN,
11084 .tested = TEST_UNTESTED,
11085 .probe = probe_spi_rdid,
11086 .probe_timing = TIMING_ZERO,
11087 .block_erasers = {
11088 {
11089 .eraseblocks = { {4 * 1024, 256} },
11090 .block_erase = spi_block_erase_20,
11091 }, {
11092 .eraseblocks = { {64 * 1024, 16} },
11093 .block_erase = spi_block_erase_d8,
11094 }, {
11095 .eraseblocks = { { 1024 * 1024, 1} },
11096 .block_erase = spi_block_erase_60,
11097 }, {
11098 .eraseblocks = { { 1024 * 1024, 1} },
11099 .block_erase = spi_block_erase_c7,
11100 }
11101 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011102 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011103 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011104 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011105 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011106 .voltage = {2700, 3600},
11107 },
11108
11109 {
11110 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011111 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011112 .bustype = BUS_SPI,
11113 .manufacture_id = SPANSION_ID,
11114 .model_id = SPANSION_S25FL216,
11115 .total_size = 2048,
11116 .page_size = 256,
11117 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11119 .tested = TEST_UNTESTED,
11120 .probe = probe_spi_rdid,
11121 .probe_timing = TIMING_ZERO,
11122 .block_erasers = {
11123 {
11124 .eraseblocks = { {4 * 1024, 512} },
11125 .block_erase = spi_block_erase_20,
11126 }, {
11127 .eraseblocks = { {64 * 1024, 32} },
11128 .block_erase = spi_block_erase_d8,
11129 }, {
11130 .eraseblocks = { { 2048 * 1024, 1} },
11131 .block_erase = spi_block_erase_60,
11132 }, {
11133 .eraseblocks = { { 2048 * 1024, 1} },
11134 .block_erase = spi_block_erase_c7,
11135 }
11136 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011137 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011138 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011139 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011140 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011141 .voltage = {2700, 3600},
11142 },
11143
11144 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011145 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011146 .name = "S25FL132K",
11147 .bustype = BUS_SPI,
11148 .manufacture_id = SPANSION_ID,
11149 .model_id = SPANSION_S25FL132K,
11150 .total_size = 4096,
11151 .page_size = 256,
11152 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11153 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11154 .tested = TEST_UNTESTED,
11155 .probe = probe_spi_rdid,
11156 .probe_timing = TIMING_ZERO,
11157 .block_erasers = {
11158 {
11159 .eraseblocks = { {4 * 1024, 1024} },
11160 .block_erase = spi_block_erase_20,
11161 }, {
11162 .eraseblocks = { {64 * 1024, 64} },
11163 .block_erase = spi_block_erase_d8,
11164 }, {
11165 .eraseblocks = { { 4096 * 1024, 1} },
11166 .block_erase = spi_block_erase_60,
11167 }, {
11168 .eraseblocks = { { 4096 * 1024, 1} },
11169 .block_erase = spi_block_erase_c7,
11170 }
11171 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011172 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011173 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11174 .write = spi_chip_write_256,
11175 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11176 .voltage = {2700, 3600},
11177 },
11178
11179 {
11180 .vendor = "Spansion",
11181 .name = "S25FL164K",
11182 .bustype = BUS_SPI,
11183 .manufacture_id = SPANSION_ID,
11184 .model_id = SPANSION_S25FL164K,
11185 .total_size = 8192,
11186 .page_size = 256,
11187 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11189 .tested = TEST_OK_PREW,
11190 .probe = probe_spi_rdid,
11191 .probe_timing = TIMING_ZERO,
11192 .block_erasers = {
11193 {
11194 .eraseblocks = { {4 * 1024, 2048} },
11195 .block_erase = spi_block_erase_20,
11196 }, {
11197 .eraseblocks = { {64 * 1024, 128} },
11198 .block_erase = spi_block_erase_d8,
11199 }, {
11200 .eraseblocks = { { 8192 * 1024, 1} },
11201 .block_erase = spi_block_erase_60,
11202 }, {
11203 .eraseblocks = { { 8192 * 1024, 1} },
11204 .block_erase = spi_block_erase_c7,
11205 }
11206 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011207 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011208 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11209 .write = spi_chip_write_256,
11210 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11211 .voltage = {2700, 3600},
11212 },
11213
11214 {
11215 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000011216 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11217 .bustype = BUS_SPI,
11218 .manufacture_id = SPANSION_ID,
11219 .model_id = SPANSION_S25FL128,
11220 .total_size = 16384,
11221 .page_size = 256,
11222 /* supports 4B addressing */
11223 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11225 .tested = TEST_OK_PREW,
11226 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
11227 .probe = probe_spi_rdid,
11228 .probe_timing = TIMING_ZERO,
11229 .block_erasers = {
11230 {
11231 /* This chip supports erasing of 32 so-called "parameter sectors" with
11232 * opcode 0x20 which may be configured to be on top or bottom of the address
11233 * space. Trying to access an address outside these 4kB blocks does have no
11234 * effect on the memory contents, e.g.
11235 .eraseblocks = {
11236 {4 * 1024, 32},
11237 {64 * 1024, 254} // inaccessible
11238 },
11239 .block_erase = spi_block_erase_20,
11240 }, { */
11241 .eraseblocks = { { 64 * 1024, 256} },
11242 .block_erase = spi_block_erase_d8,
11243 }, {
11244 .eraseblocks = { { 16384 * 1024, 1} },
11245 .block_erase = spi_block_erase_60,
11246 }, {
11247 .eraseblocks = { { 16384 * 1024, 1} },
11248 .block_erase = spi_block_erase_c7,
11249 }
11250 },
11251 .printlock = spi_prettyprint_status_register_bp2_srwd,
11252 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11253 .write = spi_chip_write_256, /* Multi I/O supported */
11254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11255 .voltage = {2700, 3600},
11256 },
11257
11258 {
11259 .vendor = "Spansion",
11260 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
11261 .bustype = BUS_SPI,
11262 .manufacture_id = SPANSION_ID,
11263 .model_id = SPANSION_S25FL128,
11264 .total_size = 16384,
11265 .page_size = 512,
11266 /* supports 4B addressing */
11267 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11268 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11269 .tested = TEST_UNTESTED,
11270 .probe = probe_spi_rdid,
11271 .probe_timing = TIMING_ZERO,
11272 .block_erasers = {
11273 {
11274 .eraseblocks = { {256 * 1024, 64} },
11275 .block_erase = spi_block_erase_d8,
11276 }, {
11277 .eraseblocks = { { 16384 * 1024, 1} },
11278 .block_erase = spi_block_erase_60,
11279 }, {
11280 .eraseblocks = { { 16384 * 1024, 1} },
11281 .block_erase = spi_block_erase_c7,
11282 }
11283 },
11284 .printlock = spi_prettyprint_status_register_bp2_srwd,
11285 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11286 .write = spi_chip_write_256, /* Multi I/O supported */
11287 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11288 .voltage = {2700, 3600},
11289 },
11290
11291 {
11292 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000011293 .name = "S25FL128P......0", /* uniform 64 kB sectors */
11294 .bustype = BUS_SPI,
11295 .manufacture_id = SPANSION_ID,
11296 .model_id = SPANSION_S25FL128,
11297 .total_size = 16384,
11298 .page_size = 256,
11299 .feature_bits = FEATURE_WRSR_WREN,
11300 .tested = TEST_UNTESTED,
11301 .probe = probe_spi_rdid,
11302 .probe_timing = TIMING_ZERO,
11303 .block_erasers = {
11304 {
11305 .eraseblocks = { {64 * 1024, 256} },
11306 .block_erase = spi_block_erase_20,
11307 }, {
11308 .eraseblocks = { {64 * 1024, 256} },
11309 .block_erase = spi_block_erase_d8,
11310 }, {
11311 .eraseblocks = { { 16384 * 1024, 1} },
11312 .block_erase = spi_block_erase_60,
11313 }, {
11314 .eraseblocks = { { 16384 * 1024, 1} },
11315 .block_erase = spi_block_erase_c7,
11316 }
11317 },
11318 .printlock = spi_prettyprint_status_register_bp3_srwd,
11319 .unlock = spi_disable_blockprotect_bp3_srwd,
11320 .write = spi_chip_write_256,
11321 .read = spi_chip_read, /* Fast read (0x0B) supported */
11322 .voltage = {2700, 3600},
11323 },
11324
11325 {
11326 .vendor = "Spansion",
11327 .name = "S25FL128P......1", /* uniform 256kB sectors */
11328 .bustype = BUS_SPI,
11329 .manufacture_id = SPANSION_ID,
11330 .model_id = SPANSION_S25FL128,
11331 .total_size = 16384,
11332 .page_size = 256,
11333 .feature_bits = FEATURE_WRSR_WREN,
11334 .tested = TEST_UNTESTED,
11335 .probe = probe_spi_rdid,
11336 .probe_timing = TIMING_ZERO,
11337 .block_erasers = {
11338 {
11339 .eraseblocks = { {256 * 1024, 64} },
11340 .block_erase = spi_block_erase_d8,
11341 }, {
11342 .eraseblocks = { { 16384 * 1024, 1} },
11343 .block_erase = spi_block_erase_c7,
11344 }
11345 },
11346 .printlock = spi_prettyprint_status_register_bp2_srwd,
11347 .unlock = spi_disable_blockprotect_bp2_srwd,
11348 .write = spi_chip_write_256,
11349 .read = spi_chip_read, /* Fast read (0x0B) supported */
11350 .voltage = {2700, 3600},
11351 },
11352
11353 {
11354 .vendor = "Spansion",
11355 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011356 .bustype = BUS_SPI,
11357 .manufacture_id = SPANSION_ID,
11358 .model_id = SPANSION_S25FL128,
11359 .total_size = 16384,
11360 .page_size = 256,
11361 /* supports 4B addressing */
11362 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11364 .tested = TEST_UNTESTED,
11365 .probe = probe_spi_rdid,
11366 .probe_timing = TIMING_ZERO,
11367 .block_erasers = {
11368 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011369 /* This chip supports erasing of the 32 so-called "parameter sectors" with
11370 * opcode 0x20. Trying to access an address outside these 4kB blocks does
11371 * have no effect on the memory contents, but sets a flag in the SR.
11372 .eraseblocks = {
11373 {4 * 1024, 32},
11374 {64 * 1024, 254} // inaccessible
11375 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011376 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000011377 }, { */
11378 .eraseblocks = { { 64 * 1024, 256} },
11379 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011380 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000011381 .eraseblocks = { { 16384 * 1024, 1} },
11382 .block_erase = spi_block_erase_60,
11383 }, {
11384 .eraseblocks = { { 16384 * 1024, 1} },
11385 .block_erase = spi_block_erase_c7,
11386 }
11387 },
11388 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11389 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11390 .write = spi_chip_write_256, /* Multi I/O supported */
11391 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11392 .voltage = {2700, 3600},
11393 },
11394
11395 {
11396 .vendor = "Spansion",
11397 .name = "S25FL128S......1", /* uniform 256 kB sectors */
11398 .bustype = BUS_SPI,
11399 .manufacture_id = SPANSION_ID,
11400 .model_id = SPANSION_S25FL128,
11401 .total_size = 16384,
11402 .page_size = 512,
11403 /* supports 4B addressing */
11404 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11406 .tested = TEST_UNTESTED,
11407 .probe = probe_spi_rdid,
11408 .probe_timing = TIMING_ZERO,
11409 .block_erasers = {
11410 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011411 .eraseblocks = { {256 * 1024, 64} },
11412 .block_erase = spi_block_erase_d8,
11413 }, {
11414 .eraseblocks = { { 16384 * 1024, 1} },
11415 .block_erase = spi_block_erase_60,
11416 }, {
11417 .eraseblocks = { { 16384 * 1024, 1} },
11418 .block_erase = spi_block_erase_c7,
11419 }
11420 },
11421 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
11422 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
11423 .write = spi_chip_write_256, /* Multi I/O supported */
11424 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11425 .voltage = {2700, 3600},
11426 },
11427
11428 {
Stefan Tauner88b19252014-08-06 14:36:27 +000011429 .vendor = "Spansion",
11430 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11431 .bustype = BUS_SPI,
11432 .manufacture_id = SPANSION_ID,
11433 .model_id = SPANSION_S25FL128,
11434 .total_size = 16384,
11435 .page_size = 256,
11436 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
11437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11438 .tested = TEST_OK_PREW,
11439 .probe = probe_spi_rdid,
11440 .probe_timing = TIMING_ZERO,
11441 .block_erasers = {
11442 {
11443 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
11444 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
11445 * effect on the memory contents, but sets a flag in the SR.
11446 .eraseblocks = {
11447 {4 * 1024, 32},
11448 {64 * 1024, 254} // inaccessible
11449 },
11450 .block_erase = spi_block_erase_20,
11451 }, { */
11452 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
11453 .eraseblocks = {
11454 {8 * 1024, 16},
11455 {64 * 1024, 254} // inaccessible
11456 },
11457 .block_erase = spi_block_erase_40,
11458 }, { */
11459 .eraseblocks = { { 64 * 1024, 256} },
11460 .block_erase = spi_block_erase_d8,
11461 }, {
11462 .eraseblocks = { { 16384 * 1024, 1} },
11463 .block_erase = spi_block_erase_60,
11464 }, {
11465 .eraseblocks = { { 16384 * 1024, 1} },
11466 .block_erase = spi_block_erase_c7,
11467 }
11468 },
11469 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
11470 .unlock = spi_disable_blockprotect_bp2_srwd,
11471 .write = spi_chip_write_256, /* Multi I/O supported */
11472 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11473 .voltage = {2700, 3600},
11474 },
11475
11476 {
11477 .vendor = "Spansion",
11478 .name = "S25FL129P......1", /* uniform 256 kB sectors */
11479 .bustype = BUS_SPI,
11480 .manufacture_id = SPANSION_ID,
11481 .model_id = SPANSION_S25FL128,
11482 .total_size = 16384,
11483 .page_size = 512,
11484 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
11485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11486 .tested = TEST_UNTESTED,
11487 .probe = probe_spi_rdid,
11488 .probe_timing = TIMING_ZERO,
11489 .block_erasers = {
11490 {
11491 .eraseblocks = { {256 * 1024, 64} },
11492 .block_erase = spi_block_erase_d8,
11493 }, {
11494 .eraseblocks = { { 16384 * 1024, 1} },
11495 .block_erase = spi_block_erase_60,
11496 }, {
11497 .eraseblocks = { { 16384 * 1024, 1} },
11498 .block_erase = spi_block_erase_c7,
11499 }
11500 },
11501 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
11502 .unlock = spi_disable_blockprotect_bp2_srwd,
11503 .write = spi_chip_write_256, /* Multi I/O supported */
11504 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11505 .voltage = {2700, 3600},
11506 },
11507
11508 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011509 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000011510 .name = "SST25LF020A",
11511 .bustype = BUS_SPI,
11512 .manufacture_id = SST_ID,
11513 .model_id = SST_SST25VF020_REMS,
11514 .total_size = 256,
11515 .page_size = 256,
11516 .feature_bits = FEATURE_WRSR_EWSR,
11517 .tested = TEST_OK_PREW,
11518 .probe = probe_spi_rems,
11519 .probe_timing = TIMING_ZERO,
11520 .block_erasers =
11521 {
11522 {
11523 .eraseblocks = { {4 * 1024, 64} },
11524 .block_erase = spi_block_erase_20,
11525 }, {
11526 .eraseblocks = { {32 * 1024, 8} },
11527 .block_erase = spi_block_erase_52,
11528 }, {
11529 .eraseblocks = { {256 * 1024, 1} },
11530 .block_erase = spi_block_erase_60,
11531 },
11532 },
11533 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11534 .unlock = spi_disable_blockprotect,
11535 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11536 .read = spi_chip_read, /* Fast read (0x0B) supported */
11537 .voltage = {2700, 3600},
11538 },
11539
11540 {
11541 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000011542 .name = "SST25LF040A",
11543 .bustype = BUS_SPI,
11544 .manufacture_id = SST_ID,
11545 .model_id = SST_SST25VF040_REMS,
11546 .total_size = 512,
11547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011548 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000011549 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000011550 .probe = probe_spi_res2,
11551 .probe_timing = TIMING_ZERO,
11552 .block_erasers =
11553 {
11554 {
11555 .eraseblocks = { {4 * 1024, 128} },
11556 .block_erase = spi_block_erase_20,
11557 }, {
11558 .eraseblocks = { {32 * 1024, 16} },
11559 .block_erase = spi_block_erase_52,
11560 }, {
11561 .eraseblocks = { {512 * 1024, 1} },
11562 .block_erase = spi_block_erase_60,
11563 },
11564 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011565 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000011566 .unlock = spi_disable_blockprotect,
11567 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11568 .read = spi_chip_read,
11569 .voltage = {3000, 3600},
11570 },
11571
11572 {
11573 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011574 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000011575 .bustype = BUS_SPI,
11576 .manufacture_id = SST_ID,
11577 .model_id = SST_SST25VF080_REMS,
11578 .total_size = 1024,
11579 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011580 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000011581 .tested = TEST_UNTESTED,
11582 .probe = probe_spi_res2,
11583 .probe_timing = TIMING_ZERO,
11584 .block_erasers =
11585 {
11586 {
11587 .eraseblocks = { {4 * 1024, 256} },
11588 .block_erase = spi_block_erase_20,
11589 }, {
11590 .eraseblocks = { {32 * 1024, 32} },
11591 .block_erase = spi_block_erase_52,
11592 }, {
11593 .eraseblocks = { {1024 * 1024, 1} },
11594 .block_erase = spi_block_erase_60,
11595 },
11596 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011597 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000011598 .unlock = spi_disable_blockprotect,
11599 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11600 .read = spi_chip_read,
11601 .voltage = {3000, 3600},
11602 },
11603
11604 {
11605 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000011606 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000011607 .bustype = BUS_SPI,
11608 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000011609 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000011610 .total_size = 64,
11611 .page_size = 256,
11612 .feature_bits = FEATURE_WRSR_EWSR,
11613 .tested = TEST_OK_PREW,
11614 .probe = probe_spi_rems,
11615 .probe_timing = TIMING_ZERO,
11616 .block_erasers =
11617 {
11618 {
11619 .eraseblocks = { {4 * 1024, 16} },
11620 .block_erase = spi_block_erase_20,
11621 }, {
11622 .eraseblocks = { {32 * 1024, 2} },
11623 .block_erase = spi_block_erase_52,
11624 }, {
11625 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011626 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011627 }, {
11628 .eraseblocks = { {64 * 1024, 1} },
11629 .block_erase = spi_block_erase_60,
11630 }, {
11631 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011632 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011633 },
11634 },
11635 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11636 .unlock = spi_disable_blockprotect,
11637 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000011638 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011639 .voltage = {2700, 3600},
11640 },
11641
11642 {
11643 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000011644 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011645 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000011646 .manufacture_id = SST_ID,
11647 .model_id = SST_SST25VF010_REMS,
11648 .total_size = 128,
11649 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011650 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000011651 .tested = TEST_OK_PREW,
11652 .probe = probe_spi_rems,
11653 .probe_timing = TIMING_ZERO,
11654 .block_erasers =
11655 {
11656 {
11657 .eraseblocks = { {4 * 1024, 32} },
11658 .block_erase = spi_block_erase_20,
11659 }, {
11660 .eraseblocks = { {32 * 1024, 4} },
11661 .block_erase = spi_block_erase_52,
11662 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000011663 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011664 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011665 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000011666 .eraseblocks = { {128 * 1024, 1} },
11667 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000011668 }, {
11669 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000011670 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011671 },
11672 },
11673 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11674 .unlock = spi_disable_blockprotect,
11675 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000011676 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000011677 .voltage = {2700, 3600},
11678 },
11679
11680 {
11681 .vendor = "SST",
11682 .name = "SST25VF020",
11683 .bustype = BUS_SPI,
11684 .manufacture_id = SST_ID,
11685 .model_id = SST_SST25VF020_REMS,
11686 .total_size = 256,
11687 .page_size = 256,
11688 .feature_bits = FEATURE_WRSR_EWSR,
11689 .tested = TEST_UNTESTED,
11690 .probe = probe_spi_rems,
11691 .probe_timing = TIMING_ZERO,
11692 .block_erasers =
11693 {
11694 {
11695 .eraseblocks = { {4 * 1024, 64} },
11696 .block_erase = spi_block_erase_20,
11697 }, {
11698 .eraseblocks = { {32 * 1024, 8} },
11699 .block_erase = spi_block_erase_52,
11700 }, {
11701 .eraseblocks = { {256 * 1024, 1} },
11702 .block_erase = spi_block_erase_60,
11703 },
11704 },
11705 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11706 .unlock = spi_disable_blockprotect,
11707 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11708 .read = spi_chip_read, /* only */
11709 .voltage = {2700, 3600},
11710 },
11711
11712 {
11713 .vendor = "SST",
11714 .name = "SST25VF020B",
11715 .bustype = BUS_SPI,
11716 .manufacture_id = SST_ID,
11717 .model_id = SST_SST25VF020B,
11718 .total_size = 256,
11719 .page_size = 256,
11720 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011721 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000011722 .probe = probe_spi_rdid,
11723 .probe_timing = TIMING_ZERO,
11724 .block_erasers =
11725 {
11726 {
11727 .eraseblocks = { {4 * 1024, 64} },
11728 .block_erase = spi_block_erase_20,
11729 }, {
11730 .eraseblocks = { {32 * 1024, 8} },
11731 .block_erase = spi_block_erase_52,
11732 }, {
11733 .eraseblocks = { {64 * 1024, 4} },
11734 .block_erase = spi_block_erase_d8,
11735 }, {
11736 .eraseblocks = { {256 * 1024, 1} },
11737 .block_erase = spi_block_erase_60,
11738 }, {
11739 .eraseblocks = { {256 * 1024, 1} },
11740 .block_erase = spi_block_erase_c7,
11741 },
11742 },
11743 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
11744 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
11745 .write = spi_aai_write, /* AAI supported (0xAD) */
11746 .read = spi_chip_read, /* Fast read (0x0B) supported */
11747 .voltage = {2700, 3600},
11748 },
11749
11750 {
11751 .vendor = "SST",
11752 .name = "SST25VF040",
11753 .bustype = BUS_SPI,
11754 .manufacture_id = SST_ID,
11755 .model_id = SST_SST25VF040_REMS,
11756 .total_size = 512,
11757 .page_size = 256,
11758 .feature_bits = FEATURE_WRSR_EWSR,
11759 .tested = TEST_OK_PR,
11760 .probe = probe_spi_rems,
11761 .probe_timing = TIMING_ZERO,
11762 .block_erasers =
11763 {
11764 {
11765 .eraseblocks = { {4 * 1024, 128} },
11766 .block_erase = spi_block_erase_20,
11767 }, {
11768 .eraseblocks = { {32 * 1024, 16} },
11769 .block_erase = spi_block_erase_52,
11770 }, {
11771 .eraseblocks = { {512 * 1024, 1} },
11772 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000011773 },
11774 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011775 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000011776 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000011777 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11778 .read = spi_chip_read,
11779 .voltage = {2700, 3600},
11780 },
11781
11782 {
11783 .vendor = "SST",
11784 .name = "SST25VF040B",
11785 .bustype = BUS_SPI,
11786 .manufacture_id = SST_ID,
11787 .model_id = SST_SST25VF040B,
11788 .total_size = 512,
11789 .page_size = 256,
11790 .feature_bits = FEATURE_WRSR_EWSR,
11791 .tested = TEST_OK_PREW,
11792 .probe = probe_spi_rdid,
11793 .probe_timing = TIMING_ZERO,
11794 .block_erasers =
11795 {
11796 {
11797 .eraseblocks = { {4 * 1024, 128} },
11798 .block_erase = spi_block_erase_20,
11799 }, {
11800 .eraseblocks = { {32 * 1024, 16} },
11801 .block_erase = spi_block_erase_52,
11802 }, {
11803 .eraseblocks = { {64 * 1024, 8} },
11804 .block_erase = spi_block_erase_d8,
11805 }, {
11806 .eraseblocks = { {512 * 1024, 1} },
11807 .block_erase = spi_block_erase_60,
11808 }, {
11809 .eraseblocks = { {512 * 1024, 1} },
11810 .block_erase = spi_block_erase_c7,
11811 },
11812 },
11813 .printlock = spi_prettyprint_status_register_sst25vf040b,
11814 .unlock = spi_disable_blockprotect,
11815 .write = spi_aai_write, /* AAI supported (0xAD) */
11816 .read = spi_chip_read, /* Fast read (0x0B) supported */
11817 .voltage = {2700, 3600},
11818 },
11819
11820 {
11821 .vendor = "SST",
11822 .name = "SST25VF040B.REMS",
11823 .bustype = BUS_SPI,
11824 .manufacture_id = SST_ID,
11825 .model_id = SST_SST25VF040B_REMS,
11826 .total_size = 512,
11827 .page_size = 256,
11828 .feature_bits = FEATURE_WRSR_EWSR,
11829 .tested = TEST_OK_PREW,
11830 .probe = probe_spi_rems,
11831 .probe_timing = TIMING_ZERO,
11832 .block_erasers =
11833 {
11834 {
11835 .eraseblocks = { {4 * 1024, 128} },
11836 .block_erase = spi_block_erase_20,
11837 }, {
11838 .eraseblocks = { {32 * 1024, 16} },
11839 .block_erase = spi_block_erase_52,
11840 }, {
11841 .eraseblocks = { {64 * 1024, 8} },
11842 .block_erase = spi_block_erase_d8,
11843 }, {
11844 .eraseblocks = { {512 * 1024, 1} },
11845 .block_erase = spi_block_erase_60,
11846 }, {
11847 .eraseblocks = { {512 * 1024, 1} },
11848 .block_erase = spi_block_erase_c7,
11849 },
11850 },
11851 .printlock = spi_prettyprint_status_register_sst25vf040b,
11852 .unlock = spi_disable_blockprotect,
11853 .write = spi_aai_write,
11854 .read = spi_chip_read,
11855 .voltage = {2700, 3600},
11856 },
11857
11858 {
11859 .vendor = "SST",
11860 .name = "SST25VF080B",
11861 .bustype = BUS_SPI,
11862 .manufacture_id = SST_ID,
11863 .model_id = SST_SST25VF080B,
11864 .total_size = 1024,
11865 .page_size = 256,
11866 .feature_bits = FEATURE_WRSR_EWSR,
11867 .tested = TEST_OK_PREW,
11868 .probe = probe_spi_rdid,
11869 .probe_timing = TIMING_ZERO,
11870 .block_erasers =
11871 {
11872 {
11873 .eraseblocks = { {4 * 1024, 256} },
11874 .block_erase = spi_block_erase_20,
11875 }, {
11876 .eraseblocks = { {32 * 1024, 32} },
11877 .block_erase = spi_block_erase_52,
11878 }, {
11879 .eraseblocks = { {64 * 1024, 16} },
11880 .block_erase = spi_block_erase_d8,
11881 }, {
11882 .eraseblocks = { {1024 * 1024, 1} },
11883 .block_erase = spi_block_erase_60,
11884 }, {
11885 .eraseblocks = { {1024 * 1024, 1} },
11886 .block_erase = spi_block_erase_c7,
11887 },
11888 },
11889 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
11890 .unlock = spi_disable_blockprotect,
11891 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000011892 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011893 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000011894 },
11895
11896 {
11897 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011898 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011899 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011900 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011901 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011902 .total_size = 2048,
11903 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011904 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000011905 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011906 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011907 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011908 .block_erasers =
11909 {
11910 {
11911 .eraseblocks = { {4 * 1024, 512} },
11912 .block_erase = spi_block_erase_20,
11913 }, {
11914 .eraseblocks = { {32 * 1024, 64} },
11915 .block_erase = spi_block_erase_52,
11916 }, {
11917 .eraseblocks = { {64 * 1024, 32} },
11918 .block_erase = spi_block_erase_d8,
11919 }, {
11920 .eraseblocks = { {2 * 1024 * 1024, 1} },
11921 .block_erase = spi_block_erase_60,
11922 }, {
11923 .eraseblocks = { {2 * 1024 * 1024, 1} },
11924 .block_erase = spi_block_erase_c7,
11925 },
11926 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011927 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011928 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000011929 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011931 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011932 },
11933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011934 {
11935 .vendor = "SST",
11936 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011937 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011938 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011939 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011940 .total_size = 4096,
11941 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011942 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000011943 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011944 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011945 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011946 .block_erasers =
11947 {
11948 {
11949 .eraseblocks = { {4 * 1024, 1024} },
11950 .block_erase = spi_block_erase_20,
11951 }, {
11952 .eraseblocks = { {32 * 1024, 128} },
11953 .block_erase = spi_block_erase_52,
11954 }, {
11955 .eraseblocks = { {64 * 1024, 64} },
11956 .block_erase = spi_block_erase_d8,
11957 }, {
11958 .eraseblocks = { {4 * 1024 * 1024, 1} },
11959 .block_erase = spi_block_erase_60,
11960 }, {
11961 .eraseblocks = { {4 * 1024 * 1024, 1} },
11962 .block_erase = spi_block_erase_c7,
11963 },
11964 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011965 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011966 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011967 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011968 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011969 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011970 },
11971
11972 {
11973 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011974 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011975 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011976 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011977 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011978 .total_size = 8192,
11979 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011980 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000011981 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011982 .probe = probe_spi_rdid,
11983 .probe_timing = TIMING_ZERO,
11984 .block_erasers =
11985 {
11986 {
11987 .eraseblocks = { {4 * 1024, 2048} },
11988 .block_erase = spi_block_erase_20,
11989 }, {
11990 .eraseblocks = { {32 * 1024, 256} },
11991 .block_erase = spi_block_erase_52,
11992 }, {
11993 .eraseblocks = { {64 * 1024, 128} },
11994 .block_erase = spi_block_erase_d8,
11995 }, {
11996 .eraseblocks = { {8 * 1024 * 1024, 1} },
11997 .block_erase = spi_block_erase_60,
11998 }, {
11999 .eraseblocks = { {8 * 1024 * 1024, 1} },
12000 .block_erase = spi_block_erase_c7,
12001 },
12002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012003 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012004 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012005 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012007 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012008 },
12009
12010 {
12011 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000012012 .name = "SST25WF512",
12013 .bustype = BUS_SPI,
12014 .manufacture_id = SST_ID,
12015 .model_id = SST_SST25WF512,
12016 .total_size = 64,
12017 .page_size = 256,
12018 .feature_bits = FEATURE_WRSR_EITHER,
12019 .tested = TEST_UNTESTED,
12020 .probe = probe_spi_rdid,
12021 .probe_timing = TIMING_ZERO,
12022 .block_erasers =
12023 {
12024 {
12025 .eraseblocks = { {4 * 1024, 16} },
12026 .block_erase = spi_block_erase_20,
12027 }, {
12028 .eraseblocks = { {32 * 1024, 2} },
12029 .block_erase = spi_block_erase_52,
12030 }, {
12031 .eraseblocks = { {1024 * 64, 1} },
12032 .block_erase = spi_block_erase_60,
12033 }, {
12034 .eraseblocks = { {1024 * 64, 1} },
12035 .block_erase = spi_block_erase_c7,
12036 },
12037 },
Jason Harper43ddef02014-05-04 00:55:24 +000012038 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12039 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012040 .write = spi_aai_write,
12041 .read = spi_chip_read, /* Fast read (0x0B) supported */
12042 .voltage = {1650, 1950},
12043 },
12044
12045 {
12046 .vendor = "SST",
12047 .name = "SST25WF010",
12048 .bustype = BUS_SPI,
12049 .manufacture_id = SST_ID,
12050 .model_id = SST_SST25WF010,
12051 .total_size = 128,
12052 .page_size = 256,
12053 .feature_bits = FEATURE_WRSR_EITHER,
12054 .tested = TEST_UNTESTED,
12055 .probe = probe_spi_rdid,
12056 .probe_timing = TIMING_ZERO,
12057 .block_erasers =
12058 {
12059 {
12060 .eraseblocks = { {4 * 1024, 32} },
12061 .block_erase = spi_block_erase_20,
12062 }, {
12063 .eraseblocks = { {32 * 1024, 4} },
12064 .block_erase = spi_block_erase_52,
12065 }, {
12066 .eraseblocks = { {1024 * 128, 1} },
12067 .block_erase = spi_block_erase_60,
12068 }, {
12069 .eraseblocks = { {1024 * 128, 1} },
12070 .block_erase = spi_block_erase_c7,
12071 },
12072 },
Jason Harper43ddef02014-05-04 00:55:24 +000012073 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12074 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012075 .write = spi_aai_write,
12076 .read = spi_chip_read, /* Fast read (0x0B) supported */
12077 .voltage = {1650, 1950},
12078 },
12079
12080 {
12081 .vendor = "SST",
12082 .name = "SST25WF020",
12083 .bustype = BUS_SPI,
12084 .manufacture_id = SST_ID,
12085 .model_id = SST_SST25WF020,
12086 .total_size = 256,
12087 .page_size = 256,
12088 .feature_bits = FEATURE_WRSR_EITHER,
12089 .tested = TEST_UNTESTED,
12090 .probe = probe_spi_rdid,
12091 .probe_timing = TIMING_ZERO,
12092 .block_erasers =
12093 {
12094 {
12095 .eraseblocks = { {4 * 1024, 64} },
12096 .block_erase = spi_block_erase_20,
12097 }, {
12098 .eraseblocks = { {32 * 1024, 8} },
12099 .block_erase = spi_block_erase_52,
12100 }, {
12101 .eraseblocks = { {64 * 1024, 4} },
12102 .block_erase = spi_block_erase_d8,
12103 }, {
12104 .eraseblocks = { {1024 * 256, 1} },
12105 .block_erase = spi_block_erase_60,
12106 }, {
12107 .eraseblocks = { {1024 * 256, 1} },
12108 .block_erase = spi_block_erase_c7,
12109 },
12110 },
Jason Harper43ddef02014-05-04 00:55:24 +000012111 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12112 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012113 .write = spi_aai_write,
12114 .read = spi_chip_read, /* Fast read (0x0B) supported */
12115 .voltage = {1650, 1950},
12116 },
12117
12118 {
12119 .vendor = "SST",
12120 .name = "SST25WF040",
12121 .bustype = BUS_SPI,
12122 .manufacture_id = SST_ID,
12123 .model_id = SST_SST25WF040,
12124 .total_size = 512,
12125 .page_size = 256,
12126 .feature_bits = FEATURE_WRSR_EITHER,
12127 .tested = TEST_UNTESTED,
12128 .probe = probe_spi_rdid,
12129 .probe_timing = TIMING_ZERO,
12130 .block_erasers =
12131 {
12132 {
12133 .eraseblocks = { {4 * 1024, 128} },
12134 .block_erase = spi_block_erase_20,
12135 }, {
12136 .eraseblocks = { {32 * 1024, 16} },
12137 .block_erase = spi_block_erase_52,
12138 }, {
12139 .eraseblocks = { {64 * 1024, 8} },
12140 .block_erase = spi_block_erase_d8,
12141 }, {
12142 .eraseblocks = { {1024 * 512, 1} },
12143 .block_erase = spi_block_erase_60,
12144 }, {
12145 .eraseblocks = { {1024 * 512, 1} },
12146 .block_erase = spi_block_erase_c7,
12147 },
12148 },
Jason Harper43ddef02014-05-04 00:55:24 +000012149 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12150 .unlock = spi_disable_blockprotect_bp2_srwd,
12151 .write = spi_aai_write,
12152 .read = spi_chip_read, /* Fast read (0x0B) supported */
12153 .voltage = {1650, 1950},
12154 },
12155
12156 {
12157 .vendor = "SST",
12158 .name = "SST25WF080",
12159 .bustype = BUS_SPI,
12160 .manufacture_id = SST_ID,
12161 .model_id = SST_SST25WF080,
12162 .total_size = 1024,
12163 .page_size = 256,
12164 .feature_bits = FEATURE_WRSR_EITHER,
12165 .tested = TEST_OK_PREW,
12166 .probe = probe_spi_rdid,
12167 .probe_timing = TIMING_ZERO,
12168 .block_erasers =
12169 {
12170 {
12171 .eraseblocks = { {4 * 1024, 256} },
12172 .block_erase = spi_block_erase_20,
12173 }, {
12174 .eraseblocks = { {32 * 1024, 32} },
12175 .block_erase = spi_block_erase_52,
12176 }, {
12177 .eraseblocks = { {64 * 1024, 16} },
12178 .block_erase = spi_block_erase_d8,
12179 }, {
12180 .eraseblocks = { {1024 * 1024, 1} },
12181 .block_erase = spi_block_erase_60,
12182 }, {
12183 .eraseblocks = { {1024 * 1024, 1} },
12184 .block_erase = spi_block_erase_c7,
12185 },
12186 },
12187 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
12188 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012189 .write = spi_aai_write,
12190 .read = spi_chip_read, /* Fast read (0x0B) supported */
12191 .voltage = {1650, 1950},
12192 },
12193
12194 {
12195 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012196 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012197 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012198 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012199 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012200 .total_size = 512,
12201 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012202 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012203 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012204 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012205 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012206 .block_erasers =
12207 {
12208 {
12209 .eraseblocks = { {128, 4096} },
12210 .block_erase = erase_sector_28sf040,
12211 }, {
12212 .eraseblocks = { {512 * 1024, 1} },
12213 .block_erase = erase_chip_28sf040,
12214 }
12215 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012216 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012217 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012219 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012220 },
12221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012222 {
12223 .vendor = "SST",
12224 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012225 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012226 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012227 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012228 .total_size = 128,
12229 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012230 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012231 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012232 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012233 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012234 .block_erasers =
12235 {
12236 {
12237 .eraseblocks = { {128 * 1024, 1} },
12238 .block_erase = erase_chip_block_jedec,
12239 }
12240 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012241 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012242 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012243 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012244 },
12245
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012246 {
12247 .vendor = "SST",
12248 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012249 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012250 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012251 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012252 .total_size = 128,
12253 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012254 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012255 .tested = TEST_UNTESTED,
12256 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012257 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012258 .block_erasers =
12259 {
12260 {
12261 .eraseblocks = { {128 * 1024, 1} },
12262 .block_erase = erase_chip_block_jedec,
12263 }
12264 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012265 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012267 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012268 },
12269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012270 {
12271 .vendor = "SST",
12272 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012273 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012274 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012275 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012276 .total_size = 256,
12277 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012278 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012279 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012280 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012281 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012282 .block_erasers =
12283 {
12284 {
12285 .eraseblocks = { {256 * 1024, 1} },
12286 .block_erase = erase_chip_block_jedec,
12287 }
12288 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012289 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012291 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012292 },
12293
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012294 {
12295 .vendor = "SST",
12296 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012297 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012298 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012299 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012300 .total_size = 256,
12301 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012302 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012303 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012304 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012305 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012306 .block_erasers =
12307 {
12308 {
12309 .eraseblocks = { {256 * 1024, 1} },
12310 .block_erase = erase_chip_block_jedec,
12311 }
12312 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012313 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012315 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012316 },
12317
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012318 {
12319 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000012320 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012321 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012322 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012323 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012324 .total_size = 64,
12325 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012326 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000012327 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012328 .probe = probe_jedec,
12329 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000012330 .block_erasers =
12331 {
12332 {
12333 .eraseblocks = { {4 * 1024, 16} },
12334 .block_erase = erase_sector_jedec,
12335 }, {
12336 .eraseblocks = { {64 * 1024, 1} },
12337 .block_erase = erase_chip_block_jedec,
12338 }
12339 },
Sean Nelson35727f72010-01-28 23:55:12 +000012340 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000012341 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012342 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000012343 },
12344
12345 {
12346 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012347 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012348 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012349 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012350 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012351 .total_size = 128,
12352 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012353 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012354 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012355 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012356 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012357 .block_erasers =
12358 {
12359 {
12360 .eraseblocks = { {4 * 1024, 32} },
12361 .block_erase = erase_sector_jedec,
12362 }, {
12363 .eraseblocks = { {128 * 1024, 1} },
12364 .block_erase = erase_chip_block_jedec,
12365 }
12366 },
Sean Nelson35727f72010-01-28 23:55:12 +000012367 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012368 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012369 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012370 },
12371
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012372 {
12373 .vendor = "SST",
12374 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012375 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012376 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012377 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012378 .total_size = 256,
12379 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012380 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000012381 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012382 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012383 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012384 .block_erasers =
12385 {
12386 {
12387 .eraseblocks = { {4 * 1024, 64} },
12388 .block_erase = erase_sector_jedec,
12389 }, {
12390 .eraseblocks = { {256 * 1024, 1} },
12391 .block_erase = erase_chip_block_jedec,
12392 }
12393 },
Sean Nelson35727f72010-01-28 23:55:12 +000012394 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012395 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012396 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012397 },
12398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012399 {
12400 .vendor = "SST",
12401 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012402 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012403 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012404 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012405 .total_size = 512,
12406 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012407 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000012408 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012409 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012410 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012411 .block_erasers =
12412 {
12413 {
12414 .eraseblocks = { {4 * 1024, 128} },
12415 .block_erase = erase_sector_jedec,
12416 }, {
12417 .eraseblocks = { {512 * 1024, 1} },
12418 .block_erase = erase_chip_block_jedec,
12419 }
12420 },
Sean Nelson35727f72010-01-28 23:55:12 +000012421 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012422 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012423 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012424 },
12425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012426 {
12427 .vendor = "SST",
12428 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012429 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012430 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012431 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012432 .total_size = 64,
12433 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012434 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000012435 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012436 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012437 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012438 .block_erasers =
12439 {
12440 {
12441 .eraseblocks = { {4 * 1024, 16} },
12442 .block_erase = erase_sector_jedec,
12443 }, {
12444 .eraseblocks = { {64 * 1024, 1} },
12445 .block_erase = erase_chip_block_jedec,
12446 }
12447 },
Sean Nelson35727f72010-01-28 23:55:12 +000012448 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012449 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012450 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012451 },
12452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012453 {
12454 .vendor = "SST",
12455 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012456 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012457 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012458 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012459 .total_size = 128,
12460 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012461 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000012462 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012463 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012464 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012465 .block_erasers =
12466 {
12467 {
12468 .eraseblocks = { {4 * 1024, 32} },
12469 .block_erase = erase_sector_jedec,
12470 }, {
12471 .eraseblocks = { {128 * 1024, 1} },
12472 .block_erase = erase_chip_block_jedec,
12473 }
12474 },
Sean Nelson35727f72010-01-28 23:55:12 +000012475 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012477 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012478 },
12479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012480 {
12481 .vendor = "SST",
12482 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012483 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012484 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012485 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012486 .total_size = 256,
12487 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012488 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000012489 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012490 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012491 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012492 .block_erasers =
12493 {
12494 {
12495 .eraseblocks = { {4 * 1024, 64} },
12496 .block_erase = erase_sector_jedec,
12497 }, {
12498 .eraseblocks = { {256 * 1024, 1} },
12499 .block_erase = erase_chip_block_jedec,
12500 }
12501 },
Sean Nelson35727f72010-01-28 23:55:12 +000012502 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012503 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012504 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012505 },
12506
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012507 {
12508 .vendor = "SST",
12509 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012510 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012511 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012512 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012513 .total_size = 512,
12514 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012515 .feature_bits = FEATURE_EITHER_RESET,
12516 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012517 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012518 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012519 .block_erasers =
12520 {
12521 {
12522 .eraseblocks = { {4 * 1024, 128} },
12523 .block_erase = erase_sector_jedec,
12524 }, {
12525 .eraseblocks = { {512 * 1024, 1} },
12526 .block_erase = erase_chip_block_jedec,
12527 }
12528 },
Sean Nelson35727f72010-01-28 23:55:12 +000012529 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012530 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012531 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000012532 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012534 {
12535 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000012536 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012537 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012538 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012539 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000012540 .total_size = 1024,
12541 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012542 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000012543 .tested = TEST_UNTESTED,
12544 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012545 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012546 .block_erasers =
12547 {
12548 {
12549 .eraseblocks = { {4 * 1024, 256} },
12550 .block_erase = erase_sector_jedec,
12551 }, {
12552 .eraseblocks = { {64 * 1024, 16} },
12553 .block_erase = erase_block_jedec,
12554 }, {
12555 .eraseblocks = { {1024 * 1024, 1} },
12556 .block_erase = erase_chip_block_jedec,
12557 }
12558 },
Sean Nelson35727f72010-01-28 23:55:12 +000012559 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012560 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012561 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000012562 },
12563
12564 {
12565 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012566 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012567 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012568 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012569 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012570 .total_size = 256,
12571 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012572 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012573 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012574 .probe = probe_jedec,
12575 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012576 .block_erasers =
12577 {
12578 {
12579 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012580 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012581 }, {
12582 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012583 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012584 }, {
12585 .eraseblocks = { {256 * 1024, 1} },
12586 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12587 }
12588 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012589 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012590 .unlock = unlock_sst_fwhub,
12591 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012592 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012593 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012594 },
12595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012596 {
12597 .vendor = "SST",
12598 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012599 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012600 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012601 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012602 .total_size = 384,
12603 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012604 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012605 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012606 .probe = probe_jedec,
12607 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012608 .block_erasers =
12609 {
12610 {
12611 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012612 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012613 }, {
12614 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012615 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012616 }, {
12617 .eraseblocks = { {384 * 1024, 1} },
12618 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12619 }
12620 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012621 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012622 .unlock = unlock_sst_fwhub,
12623 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012625 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012626 },
12627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012628 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012629 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
12630 * and is only honored for 64k block erase, but not 4k sector erase.
12631 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012632 .vendor = "SST",
12633 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012634 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012635 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012636 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012637 .total_size = 512,
12638 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012639 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012640 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012641 .probe = probe_jedec,
12642 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012643 .block_erasers =
12644 {
12645 {
12646 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012647 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012648 }, {
12649 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012650 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012651 }, {
12652 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000012653 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000012654 },
12655 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012656 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012657 .unlock = unlock_sst_fwhub,
12658 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012660 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012661 },
12662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012663 {
12664 .vendor = "SST",
12665 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012666 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012667 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012668 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012669 .total_size = 512,
12670 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012671 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012672 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012673 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012674 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012675 .block_erasers =
12676 {
12677 {
12678 .eraseblocks = { {4 * 1024, 128} },
12679 .block_erase = erase_sector_49lfxxxc,
12680 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012681 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012682 {64 * 1024, 7},
12683 {32 * 1024, 1},
12684 {8 * 1024, 2},
12685 {16 * 1024, 1},
12686 },
Sean Nelson69e58112010-03-23 17:10:28 +000012687 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012688 }
12689 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012690 .printlock = printlock_regspace2_block_eraser_1,
12691 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012692 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012694 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012695 },
12696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012697 {
12698 .vendor = "SST",
12699 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012700 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012701 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012702 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012703 .total_size = 1024,
12704 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012705 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012706 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012707 .probe = probe_jedec,
12708 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012709 .block_erasers =
12710 {
12711 {
12712 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012713 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012714 }, {
12715 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012716 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012717 }, {
12718 .eraseblocks = { {1024 * 1024, 1} },
12719 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12720 }
12721 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012722 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012723 .unlock = unlock_sst_fwhub,
12724 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012725 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012726 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012727 },
12728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012729 {
12730 .vendor = "SST",
12731 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012732 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012733 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012734 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012735 .total_size = 1024,
12736 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012737 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012738 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012739 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012740 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012741 .block_erasers =
12742 {
12743 {
12744 .eraseblocks = { {4 * 1024, 256} },
12745 .block_erase = erase_sector_49lfxxxc,
12746 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012747 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012748 {64 * 1024, 15},
12749 {32 * 1024, 1},
12750 {8 * 1024, 2},
12751 {16 * 1024, 1},
12752 },
Sean Nelson69e58112010-03-23 17:10:28 +000012753 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012754 }
12755 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012756 .printlock = printlock_regspace2_block_eraser_1,
12757 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012758 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012760 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012761 },
12762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012763 {
12764 .vendor = "SST",
12765 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012766 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012767 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012768 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012769 .total_size = 2048,
12770 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012771 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012772 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012773 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012774 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012775 .block_erasers =
12776 {
12777 {
12778 .eraseblocks = { {4 * 1024, 512} },
12779 .block_erase = erase_sector_49lfxxxc,
12780 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012781 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012782 {64 * 1024, 31},
12783 {32 * 1024, 1},
12784 {8 * 1024, 2},
12785 {16 * 1024, 1},
12786 },
Sean Nelson69e58112010-03-23 17:10:28 +000012787 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012788 }
12789 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012790 .printlock = printlock_regspace2_block_eraser_1,
12791 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012792 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012793 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012794 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012795 },
12796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012797 {
12798 .vendor = "SST",
12799 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012800 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012801 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012802 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012803 .total_size = 256,
12804 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012805 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000012806 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012807 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012808 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012809 .block_erasers =
12810 {
12811 {
12812 .eraseblocks = { {4 * 1024, 64} },
12813 .block_erase = erase_sector_jedec,
12814 }, {
12815 .eraseblocks = { {16 * 1024, 16} },
12816 .block_erase = erase_block_jedec,
12817 }, {
12818 .eraseblocks = { {256 * 1024, 1} },
12819 .block_erase = NULL,
12820 }
12821 },
Sean Nelson35727f72010-01-28 23:55:12 +000012822 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012823 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012824 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000012825 },
12826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012827 {
12828 .vendor = "SST",
12829 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012830 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012831 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012832 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012833 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000012834 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012835 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012836 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012837 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012838 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012839 .block_erasers =
12840 {
12841 {
12842 .eraseblocks = { {4 * 1024, 64} },
12843 .block_erase = erase_sector_jedec,
12844 }, {
12845 .eraseblocks = { {16 * 1024, 16} },
12846 .block_erase = erase_block_jedec,
12847 }, {
12848 .eraseblocks = { {256 * 1024, 1} },
12849 .block_erase = NULL,
12850 }
12851 },
Sean Nelson35727f72010-01-28 23:55:12 +000012852 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012853 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012854 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012855 },
12856
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012857 {
12858 .vendor = "SST",
12859 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012860 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012861 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012862 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012863 .total_size = 512,
12864 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012865 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012866 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012867 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012868 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012869 .block_erasers =
12870 {
12871 {
12872 .eraseblocks = { {4 * 1024, 128} },
12873 .block_erase = erase_sector_jedec,
12874 }, {
12875 .eraseblocks = { {64 * 1024, 8} },
12876 .block_erase = erase_block_jedec,
12877 }, {
12878 .eraseblocks = { {512 * 1024, 1} },
12879 .block_erase = NULL,
12880 }
12881 },
Sean Nelson35727f72010-01-28 23:55:12 +000012882 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012883 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012884 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012885 },
12886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012887 {
12888 .vendor = "SST",
12889 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012890 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012891 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012892 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012893 .total_size = 512,
12894 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000012895 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012896 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012897 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012898 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012899 .block_erasers =
12900 {
12901 {
12902 .eraseblocks = { {4 * 1024, 128} },
12903 .block_erase = erase_sector_jedec,
12904 }, {
12905 .eraseblocks = { {64 * 1024, 8} },
12906 .block_erase = erase_block_jedec,
12907 }, {
12908 .eraseblocks = { {512 * 1024, 1} },
12909 .block_erase = NULL,
12910 }
12911 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012912 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000012913 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012915 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012916 },
12917
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012918 {
12919 .vendor = "SST",
12920 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012921 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012922 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012923 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012924 .total_size = 1024,
12925 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012926 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000012927 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012928 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012929 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012930 .block_erasers =
12931 {
12932 {
12933 .eraseblocks = { {4 * 1024, 256} },
12934 .block_erase = erase_sector_jedec,
12935 }, {
12936 .eraseblocks = { {64 * 1024, 16} },
12937 .block_erase = erase_block_jedec,
12938 }, {
12939 .eraseblocks = { {1024 * 1024, 1} },
12940 .block_erase = NULL,
12941 }
12942 },
Sean Nelson35727f72010-01-28 23:55:12 +000012943 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012944 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012945 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012946 },
12947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012948 {
12949 .vendor = "SST",
12950 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012951 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012952 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012953 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012954 .total_size = 2048,
12955 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012956 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012957 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012958 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012959 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012960 .block_erasers =
12961 {
12962 {
12963 .eraseblocks = { {4 * 1024, 512} },
12964 .block_erase = erase_sector_49lfxxxc,
12965 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012966 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012967 {64 * 1024, 31},
12968 {32 * 1024, 1},
12969 {8 * 1024, 2},
12970 {16 * 1024, 1},
12971 },
Sean Nelson69e58112010-03-23 17:10:28 +000012972 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012973 }
12974 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012975 .printlock = printlock_regspace2_block_eraser_1,
12976 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012977 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012979 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012980 },
12981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012982 {
12983 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012984 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012985 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012986 .manufacture_id = ST_ID,
12987 .model_id = ST_M29F002B,
12988 .total_size = 256,
12989 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012990 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012991 .tested = TEST_UNTESTED,
12992 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012993 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012994 .block_erasers =
12995 {
12996 {
12997 .eraseblocks = {
12998 {16 * 1024, 1},
12999 {8 * 1024, 2},
13000 {32 * 1024, 1},
13001 {64 * 1024, 3},
13002 },
13003 .block_erase = erase_sector_jedec,
13004 }, {
13005 .eraseblocks = { {256 * 1024, 1} },
13006 .block_erase = erase_chip_block_jedec,
13007 }
13008 },
Sean Nelson35727f72010-01-28 23:55:12 +000013009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013010 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013011 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013012 },
13013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013014 {
13015 .vendor = "ST",
13016 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013017 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013018 .manufacture_id = ST_ID,
13019 .model_id = ST_M29F002T,
13020 .total_size = 256,
13021 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013022 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013023 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013024 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013025 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013026 .block_erasers =
13027 {
13028 {
13029 .eraseblocks = {
13030 {64 * 1024, 3},
13031 {32 * 1024, 1},
13032 {8 * 1024, 2},
13033 {16 * 1024, 1},
13034 },
13035 .block_erase = erase_sector_jedec,
13036 }, {
13037 .eraseblocks = { {256 * 1024, 1} },
13038 .block_erase = erase_chip_block_jedec,
13039 }
13040 },
Sean Nelson35727f72010-01-28 23:55:12 +000013041 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013042 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013043 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013044 },
13045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013046 {
13047 .vendor = "ST",
13048 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013049 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013050 .manufacture_id = ST_ID,
13051 .model_id = ST_M29F040B,
13052 .total_size = 512,
13053 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013054 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13055 .tested = TEST_UNTESTED,
13056 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013057 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013058 .block_erasers =
13059 {
13060 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013061 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013062 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013063 }, {
13064 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013065 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013066 }
13067 },
Sean Nelson35727f72010-01-28 23:55:12 +000013068 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013070 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013071 },
13072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013073 {
Sean Nelson35727f72010-01-28 23:55:12 +000013074 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013075 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013076 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013077 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013078 .manufacture_id = ST_ID,
13079 .model_id = ST_M29F400BB,
13080 .total_size = 512,
13081 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013082 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013083 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013084 .probe = probe_jedec,
13085 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013086 .block_erasers =
13087 {
13088 {
13089 .eraseblocks = {
13090 {16 * 1024, 1},
13091 {8 * 1024, 2},
13092 {32 * 1024, 1},
13093 {64 * 1024, 7},
13094 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013095 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013096 }, {
13097 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013098 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013099 }
13100 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013101 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013103 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013104 },
13105 {
13106 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
13107 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013108 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013109 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013110 .manufacture_id = ST_ID,
13111 .model_id = ST_M29F400BT,
13112 .total_size = 512,
13113 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013114 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013115 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013116 .probe = probe_jedec,
13117 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000013118 .block_erasers =
13119 {
13120 {
13121 .eraseblocks = {
13122 {64 * 1024, 7},
13123 {32 * 1024, 1},
13124 {8 * 1024, 2},
13125 {16 * 1024, 1},
13126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013127 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013128 }, {
13129 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013130 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013131 }
13132 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013134 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013135 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013136 },
13137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013138 {
13139 .vendor = "ST",
13140 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013141 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013142 .manufacture_id = ST_ID,
13143 .model_id = ST_M29W010B,
13144 .total_size = 128,
13145 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013146 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013147 .tested = TEST_UNTESTED,
13148 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013149 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013150 .block_erasers =
13151 {
13152 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013153 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013154 .block_erase = erase_sector_jedec,
13155 }, {
13156 .eraseblocks = { {128 * 1024, 1} },
13157 .block_erase = erase_chip_block_jedec,
13158 }
13159 },
Sean Nelson35727f72010-01-28 23:55:12 +000013160 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013161 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013163 },
13164
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013165 {
13166 .vendor = "ST",
13167 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013168 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013169 .manufacture_id = ST_ID,
13170 .model_id = ST_M29W040B,
13171 .total_size = 512,
13172 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013173 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013174 .tested = TEST_UNTESTED,
13175 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013176 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013177 .block_erasers =
13178 {
13179 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013180 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013181 .block_erase = erase_sector_jedec,
13182 }, {
13183 .eraseblocks = { {512 * 1024, 1} },
13184 .block_erase = erase_chip_block_jedec,
13185 }
13186 },
Sean Nelson35727f72010-01-28 23:55:12 +000013187 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013189 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013190 },
13191
Stefan Taunereb582572012-09-21 12:52:50 +000013192 {
13193 .vendor = "ST",
13194 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013195 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000013196 .manufacture_id = ST_ID,
13197 .model_id = ST_M29W512B,
13198 .total_size = 64,
13199 .page_size = 64 * 1024,
13200 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013201 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000013202 .probe = probe_jedec,
13203 .probe_timing = TIMING_ZERO,
13204 .block_erasers =
13205 {
13206 {
13207 .eraseblocks = { {64 * 1024, 1} },
13208 .block_erase = erase_chip_block_jedec,
13209 }
13210 },
13211 .write = write_jedec_1,
13212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013213 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000013214 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000013215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013216 {
13217 .vendor = "ST",
13218 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013219 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013220 .manufacture_id = ST_ID,
13221 .model_id = ST_M50FLW040A,
13222 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013223 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013224 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013225 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013226 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013227 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013228 .block_erasers =
13229 {
13230 {
Sean Nelson329bde72010-01-19 16:39:19 +000013231 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013232 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013233 {64 * 1024, 5}, /* block */
13234 {4 * 1024, 16}, /* sector */
13235 {4 * 1024, 16}, /* sector */
13236 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013237 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013238 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013239 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013240 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013241 }
13242 },
Sean Nelson28accc22010-03-19 18:47:06 +000013243 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013244 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013245 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013246 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013247 },
13248
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013249 {
13250 .vendor = "ST",
13251 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013252 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013253 .manufacture_id = ST_ID,
13254 .model_id = ST_M50FLW040B,
13255 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013256 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013257 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013258 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013259 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013260 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013261 .block_erasers =
13262 {
13263 {
Sean Nelson329bde72010-01-19 16:39:19 +000013264 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013265 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013266 {4 * 1024, 16}, /* sector */
13267 {64 * 1024, 5}, /* block */
13268 {4 * 1024, 16}, /* sector */
13269 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013270 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013271 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013272 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013273 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013274 }
13275 },
Sean Nelson28accc22010-03-19 18:47:06 +000013276 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013277 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013279 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013280 },
13281
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013282 {
13283 .vendor = "ST",
13284 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013285 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013286 .manufacture_id = ST_ID,
13287 .model_id = ST_M50FLW080A,
13288 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013289 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013290 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013291 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013292 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013293 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013294 .block_erasers =
13295 {
13296 {
Sean Nelson329bde72010-01-19 16:39:19 +000013297 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013298 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013299 {64 * 1024, 13}, /* block */
13300 {4 * 1024, 16}, /* sector */
13301 {4 * 1024, 16}, /* sector */
13302 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013303 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013304 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013305 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013306 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013307 }
13308 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013309 .printlock = printlock_regspace2_block_eraser_0,
13310 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013311 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013313 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013314 },
13315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013316 {
13317 .vendor = "ST",
13318 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013319 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013320 .manufacture_id = ST_ID,
13321 .model_id = ST_M50FLW080B,
13322 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013323 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013324 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013325 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013326 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013327 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013328 .block_erasers =
13329 {
13330 {
Sean Nelson329bde72010-01-19 16:39:19 +000013331 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013332 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013333 {4 * 1024, 16}, /* sector */
13334 {64 * 1024, 13}, /* block */
13335 {4 * 1024, 16}, /* sector */
13336 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013337 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013338 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013339 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013340 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013341 }
13342 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013343 .printlock = printlock_regspace2_block_eraser_0,
13344 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013345 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013347 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013348 },
13349
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013350 {
13351 .vendor = "ST",
13352 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013353 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013354 .manufacture_id = ST_ID,
13355 .model_id = ST_M50FW002,
13356 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000013357 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013358 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013359 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013360 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013361 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013362 .block_erasers =
13363 {
13364 {
13365 .eraseblocks = {
13366 {64 * 1024, 3},
13367 {32 * 1024, 1},
13368 {8 * 1024, 2},
13369 {16 * 1024, 1},
13370 },
Sean Nelson28accc22010-03-19 18:47:06 +000013371 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013372 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000013373 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013374 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000013375 }
13376 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013377 .printlock = printlock_regspace2_block_eraser_0,
13378 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013379 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013380 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013381 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013382 },
13383
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013384 {
13385 .vendor = "ST",
13386 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013387 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013388 .manufacture_id = ST_ID,
13389 .model_id = ST_M50FW016,
13390 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000013391 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013392 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013393 .tested = TEST_UNTESTED,
13394 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013395 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013396 .block_erasers =
13397 {
13398 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013399 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000013400 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013401 }
13402 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013403 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013404 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013405 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013406 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013407 },
13408
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013409 {
13410 .vendor = "ST",
13411 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013412 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013413 .manufacture_id = ST_ID,
13414 .model_id = ST_M50FW040,
13415 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013416 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013417 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000013418 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013419 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013420 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013421 .block_erasers =
13422 {
13423 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013424 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013425 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013426 }
13427 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013428 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013429 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013431 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013432 },
13433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013434 {
13435 .vendor = "ST",
13436 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013437 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013438 .manufacture_id = ST_ID,
13439 .model_id = ST_M50FW080,
13440 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013441 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013442 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013443 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013444 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013445 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000013446 .block_erasers =
13447 {
13448 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013449 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013450 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013451 }
13452 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013453 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000013454 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013455 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013456 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013457 },
13458
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013459 {
13460 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013461 .name = "M50LPW080",
13462 .bustype = BUS_LPC, /* A/A Mux */
13463 .manufacture_id = ST_ID,
13464 .model_id = ST_M50LPW080,
13465 .total_size = 1024,
13466 .page_size = 0,
13467 .feature_bits = FEATURE_REGISTERMAP,
13468 .tested = TEST_UNTESTED,
13469 .probe = probe_82802ab,
13470 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13471 .block_erasers =
13472 {
13473 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013474 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013475 .block_erase = erase_block_82802ab,
13476 }
13477 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013478 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000013479 .write = write_82802ab,
13480 .read = read_memmapped,
13481 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
13482 },
13483
13484 {
13485 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013486 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013487 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013488 .manufacture_id = ST_ID,
13489 .model_id = ST_M50LPW116,
13490 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000013491 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013492 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013493 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013494 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000013495 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013496 .block_erasers =
13497 {
13498 {
13499 .eraseblocks = {
13500 {4 * 1024, 16},
13501 {64 * 1024, 30},
13502 {32 * 1024, 1},
13503 {8 * 1024, 2},
13504 {16 * 1024, 1},
13505 },
Sean Nelson28accc22010-03-19 18:47:06 +000013506 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013507 }
13508 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013509 .printlock = printlock_regspace2_block_eraser_0,
13510 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013511 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013513 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013514 },
13515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013516 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013517 .vendor = "SyncMOS/MoselVitelic",
13518 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013519 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013520 .manufacture_id = SYNCMOS_MVC_ID,
13521 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013522 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013523 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000013524 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013525 .tested = TEST_UNTESTED,
13526 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013527 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013528 .block_erasers =
13529 {
13530 {
13531 .eraseblocks = { {512, 256} },
13532 .block_erase = erase_sector_jedec,
13533 }, {
13534 .eraseblocks = { {128 * 1024, 1} },
13535 .block_erase = erase_chip_block_jedec,
13536 },
13537 },
Sean Nelson35727f72010-01-28 23:55:12 +000013538 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013539 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013540 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013541 },
13542
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013543 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013544 .vendor = "SyncMOS/MoselVitelic",
13545 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013546 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013547 .manufacture_id = SYNCMOS_MVC_ID,
13548 .model_id = SM_MVC_29C51001T,
13549 .total_size = 128,
13550 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000013551 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013552 .tested = TEST_UNTESTED,
13553 .probe = probe_jedec,
13554 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13555 .block_erasers =
13556 {
13557 {
13558 .eraseblocks = { {512, 256} },
13559 .block_erase = erase_sector_jedec,
13560 }, {
13561 .eraseblocks = { {128 * 1024, 1} },
13562 .block_erase = erase_chip_block_jedec,
13563 },
13564 },
13565 .write = write_jedec_1,
13566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013567 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013568 },
13569
13570 {
13571 .vendor = "SyncMOS/MoselVitelic",
13572 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013573 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013574 .manufacture_id = SYNCMOS_MVC_ID,
13575 .model_id = SM_MVC_29C51002B,
13576 .total_size = 256,
13577 .page_size = 512,
13578 .feature_bits = FEATURE_EITHER_RESET,
13579 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013580 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013582 .block_erasers =
13583 {
13584 {
13585 .eraseblocks = { {512, 512} },
13586 .block_erase = erase_sector_jedec,
13587 }, {
13588 .eraseblocks = { {256 * 1024, 1} },
13589 .block_erase = erase_chip_block_jedec,
13590 },
13591 },
Sean Nelson35727f72010-01-28 23:55:12 +000013592 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013593 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013594 },
13595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013596 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013597 .vendor = "SyncMOS/MoselVitelic",
13598 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013599 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013600 .manufacture_id = SYNCMOS_MVC_ID,
13601 .model_id = SM_MVC_29C51002T,
13602 .total_size = 256,
13603 .page_size = 512,
13604 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013605 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013606 .probe = probe_jedec,
13607 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13608 .block_erasers =
13609 {
13610 {
13611 .eraseblocks = { {512, 512} },
13612 .block_erase = erase_sector_jedec,
13613 }, {
13614 .eraseblocks = { {256 * 1024, 1} },
13615 .block_erase = erase_chip_block_jedec,
13616 },
13617 },
13618 .write = write_jedec_1,
13619 .read = read_memmapped,
13620 },
13621
13622 {
13623 .vendor = "SyncMOS/MoselVitelic",
13624 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013625 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013626 .manufacture_id = SYNCMOS_MVC_ID,
13627 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013628 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013629 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013630 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013631 .tested = TEST_UNTESTED,
13632 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013633 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000013634 .block_erasers =
13635 {
13636 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000013637 .eraseblocks = { {1024, 512} },
13638 .block_erase = erase_sector_jedec,
13639 }, {
13640 .eraseblocks = { {512 * 1024, 1} },
13641 .block_erase = erase_chip_block_jedec,
13642 },
13643 },
13644 .write = write_jedec_1,
13645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013646 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013647 },
13648
13649 {
13650 .vendor = "SyncMOS/MoselVitelic",
13651 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013652 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013653 .manufacture_id = SYNCMOS_MVC_ID,
13654 .model_id = SM_MVC_29C51004T,
13655 .total_size = 512,
13656 .page_size = 1024,
13657 .feature_bits = FEATURE_EITHER_RESET,
13658 .tested = TEST_UNTESTED,
13659 .probe = probe_jedec,
13660 .probe_timing = TIMING_ZERO,
13661 .block_erasers =
13662 {
13663 {
13664 .eraseblocks = { {1024, 512} },
13665 .block_erase = erase_sector_jedec,
13666 }, {
13667 .eraseblocks = { {512 * 1024, 1} },
13668 .block_erase = erase_chip_block_jedec,
13669 },
13670 },
13671 .write = write_jedec_1,
13672 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013673 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013674 },
13675
13676 {
13677 .vendor = "SyncMOS/MoselVitelic",
13678 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013679 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013680 .manufacture_id = SYNCMOS_MVC_ID,
13681 .model_id = SM_MVC_29C31004B,
13682 .total_size = 512,
13683 .page_size = 1024,
13684 .feature_bits = FEATURE_EITHER_RESET,
13685 .tested = TEST_UNTESTED,
13686 .probe = probe_jedec,
13687 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13688 .block_erasers =
13689 {
13690 {
13691 .eraseblocks = { {1024, 512} },
13692 .block_erase = erase_sector_jedec,
13693 }, {
13694 .eraseblocks = { {512 * 1024, 1} },
13695 .block_erase = erase_chip_block_jedec,
13696 },
13697 },
13698 .write = write_jedec_1,
13699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013700 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000013701 },
13702
13703 {
13704 .vendor = "SyncMOS/MoselVitelic",
13705 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013706 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000013707 .manufacture_id = SYNCMOS_MVC_ID,
13708 .model_id = SM_MVC_29C31004T,
13709 .total_size = 512,
13710 .page_size = 1024,
13711 .feature_bits = FEATURE_EITHER_RESET,
13712 .tested = TEST_UNTESTED,
13713 .probe = probe_jedec,
13714 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13715 .block_erasers =
13716 {
13717 {
13718 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013719 .block_erase = erase_sector_jedec,
13720 }, {
13721 .eraseblocks = { {512 * 1024, 1} },
13722 .block_erase = erase_chip_block_jedec,
13723 },
13724 },
Sean Nelson35727f72010-01-28 23:55:12 +000013725 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013727 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013728 },
13729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013730 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013731 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013732 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013733 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013734 .manufacture_id = TI_OLD_ID,
13735 .model_id = TI_TMS29F002RB,
13736 .total_size = 256,
13737 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013738 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013739 .tested = TEST_UNTESTED,
13740 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013741 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013742 .block_erasers =
13743 {
13744 {
13745 .eraseblocks = {
13746 {16 * 1024, 1},
13747 {8 * 1024, 2},
13748 {32 * 1024, 1},
13749 {64 * 1024, 3},
13750 },
13751 .block_erase = erase_sector_jedec,
13752 }, {
13753 .eraseblocks = { {256 * 1024, 1} },
13754 .block_erase = erase_chip_block_jedec,
13755 },
13756 },
Sean Nelson35727f72010-01-28 23:55:12 +000013757 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013758 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013759 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013760 },
13761
13762 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013763 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013764 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013765 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013766 .manufacture_id = TI_OLD_ID,
13767 .model_id = TI_TMS29F002RT,
13768 .total_size = 256,
13769 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013770 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013771 .tested = TEST_UNTESTED,
13772 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013773 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013774 .block_erasers =
13775 {
13776 {
13777 .eraseblocks = {
13778 {64 * 1024, 3},
13779 {32 * 1024, 1},
13780 {8 * 1024, 2},
13781 {16 * 1024, 1},
13782 },
13783 .block_erase = erase_sector_jedec,
13784 }, {
13785 .eraseblocks = { {256 * 1024, 1} },
13786 .block_erase = erase_chip_block_jedec,
13787 },
13788 },
Sean Nelson35727f72010-01-28 23:55:12 +000013789 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013790 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013791 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013792 },
13793
13794 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013795 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000013796 .name = "W25Q40.V",
13797 .bustype = BUS_SPI,
13798 .manufacture_id = WINBOND_NEX_ID,
13799 .model_id = WINBOND_NEX_W25Q40_V,
13800 .total_size = 512,
13801 .page_size = 256,
13802 /* supports SFDP */
13803 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013805 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000013806 .probe = probe_spi_rdid,
13807 .probe_timing = TIMING_ZERO,
13808 .block_erasers =
13809 {
13810 {
13811 .eraseblocks = { {4 * 1024, 128} },
13812 .block_erase = spi_block_erase_20,
13813 }, {
13814 .eraseblocks = { {32 * 1024, 16} },
13815 .block_erase = spi_block_erase_52,
13816 }, {
13817 .eraseblocks = { {64 * 1024, 8} },
13818 .block_erase = spi_block_erase_d8,
13819 }, {
13820 .eraseblocks = { {512 * 1024, 1} },
13821 .block_erase = spi_block_erase_60,
13822 }, {
13823 .eraseblocks = { {512 * 1024, 1} },
13824 .block_erase = spi_block_erase_c7,
13825 }
13826 },
13827 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13828 .unlock = spi_disable_blockprotect,
13829 .write = spi_chip_write_256, /* Multi I/O supported */
13830 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13831 .voltage = {2700, 3600},
13832 },
13833
13834 {
13835 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013836 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013837 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013838 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013839 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013840 .total_size = 1024,
13841 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013842 /* supports SFDP */
13843 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013844 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013845 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013846 .probe = probe_spi_rdid,
13847 .probe_timing = TIMING_ZERO,
13848 .block_erasers =
13849 {
13850 {
13851 .eraseblocks = { {4 * 1024, 256} },
13852 .block_erase = spi_block_erase_20,
13853 }, {
13854 .eraseblocks = { {32 * 1024, 32} },
13855 .block_erase = spi_block_erase_52,
13856 }, {
13857 .eraseblocks = { {64 * 1024, 16} },
13858 .block_erase = spi_block_erase_d8,
13859 }, {
13860 .eraseblocks = { {1024 * 1024, 1} },
13861 .block_erase = spi_block_erase_60,
13862 }, {
13863 .eraseblocks = { {1024 * 1024, 1} },
13864 .block_erase = spi_block_erase_c7,
13865 }
13866 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013867 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013868 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013869 .write = spi_chip_write_256,
13870 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013871 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013872 },
13873
13874 {
13875 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013876 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013877 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013878 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013879 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013880 .total_size = 2048,
13881 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013882 /* supports SFDP */
13883 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013884 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000013885 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013886 .probe = probe_spi_rdid,
13887 .probe_timing = TIMING_ZERO,
13888 .block_erasers =
13889 {
13890 {
13891 .eraseblocks = { {4 * 1024, 512} },
13892 .block_erase = spi_block_erase_20,
13893 }, {
13894 .eraseblocks = { {32 * 1024, 64} },
13895 .block_erase = spi_block_erase_52,
13896 }, {
13897 .eraseblocks = { {64 * 1024, 32} },
13898 .block_erase = spi_block_erase_d8,
13899 }, {
13900 .eraseblocks = { {2 * 1024 * 1024, 1} },
13901 .block_erase = spi_block_erase_60,
13902 }, {
13903 .eraseblocks = { {2 * 1024 * 1024, 1} },
13904 .block_erase = spi_block_erase_c7,
13905 }
13906 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013907 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013908 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013909 .write = spi_chip_write_256,
13910 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013911 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013912 },
13913
13914 {
13915 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013916 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013917 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013918 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013919 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013920 .total_size = 4096,
13921 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013922 /* supports SFDP */
13923 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013924 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013925 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013926 .probe = probe_spi_rdid,
13927 .probe_timing = TIMING_ZERO,
13928 .block_erasers =
13929 {
13930 {
13931 .eraseblocks = { {4 * 1024, 1024} },
13932 .block_erase = spi_block_erase_20,
13933 }, {
13934 .eraseblocks = { {32 * 1024, 128} },
13935 .block_erase = spi_block_erase_52,
13936 }, {
13937 .eraseblocks = { {64 * 1024, 64} },
13938 .block_erase = spi_block_erase_d8,
13939 }, {
13940 .eraseblocks = { {4 * 1024 * 1024, 1} },
13941 .block_erase = spi_block_erase_60,
13942 }, {
13943 .eraseblocks = { {4 * 1024 * 1024, 1} },
13944 .block_erase = spi_block_erase_c7,
13945 }
13946 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013947 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013948 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013949 .write = spi_chip_write_256,
13950 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013951 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013952 },
13953
13954 {
13955 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013956 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013957 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000013958 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013959 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000013960 .total_size = 8192,
13961 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013962 /* supports SFDP */
13963 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013965 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000013966 .probe = probe_spi_rdid,
13967 .probe_timing = TIMING_ZERO,
13968 .block_erasers =
13969 {
13970 {
13971 .eraseblocks = { {4 * 1024, 2048} },
13972 .block_erase = spi_block_erase_20,
13973 }, {
13974 .eraseblocks = { {32 * 1024, 256} },
13975 .block_erase = spi_block_erase_52,
13976 }, {
13977 .eraseblocks = { {64 * 1024, 128} },
13978 .block_erase = spi_block_erase_d8,
13979 }, {
13980 .eraseblocks = { {8 * 1024 * 1024, 1} },
13981 .block_erase = spi_block_erase_60,
13982 }, {
13983 .eraseblocks = { {8 * 1024 * 1024, 1} },
13984 .block_erase = spi_block_erase_c7,
13985 }
13986 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013987 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013988 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000013989 .write = spi_chip_write_256,
13990 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013991 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000013992 },
13993
13994 {
13995 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013996 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013997 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013998 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013999 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014000 .total_size = 16384,
14001 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014002 /* supports SFDP */
14003 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014004 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014005 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014006 .probe = probe_spi_rdid,
14007 .probe_timing = TIMING_ZERO,
14008 .block_erasers =
14009 {
14010 {
14011 .eraseblocks = { {4 * 1024, 4096} },
14012 .block_erase = spi_block_erase_20,
14013 }, {
14014 .eraseblocks = { {32 * 1024, 512} },
14015 .block_erase = spi_block_erase_52,
14016 }, {
14017 .eraseblocks = { {64 * 1024, 256} },
14018 .block_erase = spi_block_erase_d8,
14019 }, {
14020 .eraseblocks = { {16 * 1024 * 1024, 1} },
14021 .block_erase = spi_block_erase_60,
14022 }, {
14023 .eraseblocks = { {16 * 1024 * 1024, 1} },
14024 .block_erase = spi_block_erase_c7,
14025 }
14026 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014027 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014028 .unlock = spi_disable_blockprotect,
14029 .write = spi_chip_write_256,
14030 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014031 .voltage = {2700, 3600},
14032 },
14033
14034 {
14035 .vendor = "Winbond",
14036 .name = "W25Q20.W",
14037 .bustype = BUS_SPI,
14038 .manufacture_id = WINBOND_NEX_ID,
14039 .model_id = WINBOND_NEX_W25Q20_W,
14040 .total_size = 256,
14041 .page_size = 256,
14042 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14044 .tested = TEST_UNTESTED,
14045 .probe = probe_spi_rdid,
14046 .probe_timing = TIMING_ZERO,
14047 .block_erasers =
14048 {
14049 {
14050 .eraseblocks = { {4 * 1024, 64} },
14051 .block_erase = spi_block_erase_20,
14052 }, {
14053 .eraseblocks = { {32 * 1024, 8} },
14054 .block_erase = spi_block_erase_52,
14055 }, {
14056 .eraseblocks = { {64 * 1024, 4} },
14057 .block_erase = spi_block_erase_d8,
14058 }, {
14059 .eraseblocks = { {256 * 1024, 1} },
14060 .block_erase = spi_block_erase_60,
14061 }, {
14062 .eraseblocks = { {256 * 1024, 1} },
14063 .block_erase = spi_block_erase_c7,
14064 }
14065 },
14066 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14067 .unlock = spi_disable_blockprotect,
14068 .write = spi_chip_write_256,
14069 .read = spi_chip_read,
14070 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14071 },
14072
14073 {
14074 .vendor = "Winbond",
14075 .name = "W25Q40.W",
14076 .bustype = BUS_SPI,
14077 .manufacture_id = WINBOND_NEX_ID,
14078 .model_id = WINBOND_NEX_W25Q40_W,
14079 .total_size = 512,
14080 .page_size = 256,
14081 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14083 .tested = TEST_UNTESTED,
14084 .probe = probe_spi_rdid,
14085 .probe_timing = TIMING_ZERO,
14086 .block_erasers =
14087 {
14088 {
14089 .eraseblocks = { {4 * 1024, 128} },
14090 .block_erase = spi_block_erase_20,
14091 }, {
14092 .eraseblocks = { {32 * 1024, 16} },
14093 .block_erase = spi_block_erase_52,
14094 }, {
14095 .eraseblocks = { {64 * 1024, 8} },
14096 .block_erase = spi_block_erase_d8,
14097 }, {
14098 .eraseblocks = { {512 * 1024, 1} },
14099 .block_erase = spi_block_erase_60,
14100 }, {
14101 .eraseblocks = { {512 * 1024, 1} },
14102 .block_erase = spi_block_erase_c7,
14103 }
14104 },
14105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14106 .unlock = spi_disable_blockprotect,
14107 .write = spi_chip_write_256,
14108 .read = spi_chip_read,
14109 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14110 },
14111
14112 {
14113 .vendor = "Winbond",
14114 .name = "W25Q80.W",
14115 .bustype = BUS_SPI,
14116 .manufacture_id = WINBOND_NEX_ID,
14117 .model_id = WINBOND_NEX_W25Q80_W,
14118 .total_size = 1024,
14119 .page_size = 256,
14120 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14121 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14122 .tested = TEST_UNTESTED,
14123 .probe = probe_spi_rdid,
14124 .probe_timing = TIMING_ZERO,
14125 .block_erasers =
14126 {
14127 {
14128 .eraseblocks = { {4 * 1024, 256} },
14129 .block_erase = spi_block_erase_20,
14130 }, {
14131 .eraseblocks = { {32 * 1024, 32} },
14132 .block_erase = spi_block_erase_52,
14133 }, {
14134 .eraseblocks = { {64 * 1024, 16} },
14135 .block_erase = spi_block_erase_d8,
14136 }, {
14137 .eraseblocks = { {1 * 1024 * 1024, 1} },
14138 .block_erase = spi_block_erase_60,
14139 }, {
14140 .eraseblocks = { {1 * 1024 * 1024, 1} },
14141 .block_erase = spi_block_erase_c7,
14142 }
14143 },
14144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14145 .unlock = spi_disable_blockprotect,
14146 .write = spi_chip_write_256,
14147 .read = spi_chip_read,
14148 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14149 },
14150
14151 {
14152 .vendor = "Winbond",
14153 .name = "W25Q16.W",
14154 .bustype = BUS_SPI,
14155 .manufacture_id = WINBOND_NEX_ID,
14156 .model_id = WINBOND_NEX_W25Q16_W,
14157 .total_size = 2048,
14158 .page_size = 256,
14159 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14160 /* QPI enable 0x38, disable 0xFF */
14161 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14162 .tested = TEST_UNTESTED,
14163 .probe = probe_spi_rdid,
14164 .probe_timing = TIMING_ZERO,
14165 .block_erasers =
14166 {
14167 {
14168 .eraseblocks = { {4 * 1024, 512} },
14169 .block_erase = spi_block_erase_20,
14170 }, {
14171 .eraseblocks = { {32 * 1024, 64} },
14172 .block_erase = spi_block_erase_52,
14173 }, {
14174 .eraseblocks = { {64 * 1024, 32} },
14175 .block_erase = spi_block_erase_d8,
14176 }, {
14177 .eraseblocks = { {2 * 1024 * 1024, 1} },
14178 .block_erase = spi_block_erase_60,
14179 }, {
14180 .eraseblocks = { {2 * 1024 * 1024, 1} },
14181 .block_erase = spi_block_erase_c7,
14182 }
14183 },
14184 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14185 .unlock = spi_disable_blockprotect,
14186 .write = spi_chip_write_256,
14187 .read = spi_chip_read,
14188 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14189 },
14190
14191 {
14192 .vendor = "Winbond",
14193 .name = "W25Q32.W",
14194 .bustype = BUS_SPI,
14195 .manufacture_id = WINBOND_NEX_ID,
14196 .model_id = WINBOND_NEX_W25Q32_W,
14197 .total_size = 4096,
14198 .page_size = 256,
14199 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14200 /* QPI enable 0x38, disable 0xFF */
14201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14202 .tested = TEST_OK_PREW,
14203 .probe = probe_spi_rdid,
14204 .probe_timing = TIMING_ZERO,
14205 .block_erasers =
14206 {
14207 {
14208 .eraseblocks = { {4 * 1024, 1024} },
14209 .block_erase = spi_block_erase_20,
14210 }, {
14211 .eraseblocks = { {32 * 1024, 128} },
14212 .block_erase = spi_block_erase_52,
14213 }, {
14214 .eraseblocks = { {64 * 1024, 64} },
14215 .block_erase = spi_block_erase_d8,
14216 }, {
14217 .eraseblocks = { {4 * 1024 * 1024, 1} },
14218 .block_erase = spi_block_erase_60,
14219 }, {
14220 .eraseblocks = { {4 * 1024 * 1024, 1} },
14221 .block_erase = spi_block_erase_c7,
14222 }
14223 },
14224 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14225 .unlock = spi_disable_blockprotect,
14226 .write = spi_chip_write_256,
14227 .read = spi_chip_read,
14228 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14229 },
14230
14231 {
14232 .vendor = "Winbond",
14233 .name = "W25Q64.W",
14234 .bustype = BUS_SPI,
14235 .manufacture_id = WINBOND_NEX_ID,
14236 .model_id = WINBOND_NEX_W25Q64_W,
14237 .total_size = 8192,
14238 .page_size = 256,
14239 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14240 /* QPI enable 0x38, disable 0xFF */
14241 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014242 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014243 .probe = probe_spi_rdid,
14244 .probe_timing = TIMING_ZERO,
14245 .block_erasers =
14246 {
14247 {
14248 .eraseblocks = { {4 * 1024, 2048} },
14249 .block_erase = spi_block_erase_20,
14250 }, {
14251 .eraseblocks = { {32 * 1024, 256} },
14252 .block_erase = spi_block_erase_52,
14253 }, {
14254 .eraseblocks = { {64 * 1024, 128} },
14255 .block_erase = spi_block_erase_d8,
14256 }, {
14257 .eraseblocks = { {8 * 1024 * 1024, 1} },
14258 .block_erase = spi_block_erase_60,
14259 }, {
14260 .eraseblocks = { {8 * 1024 * 1024, 1} },
14261 .block_erase = spi_block_erase_c7,
14262 }
14263 },
14264 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14265 .unlock = spi_disable_blockprotect,
14266 .write = spi_chip_write_256,
14267 .read = spi_chip_read,
14268 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014269 },
14270
14271 {
14272 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014273 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014274 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014275 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014276 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014277 .total_size = 128,
14278 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014279 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014280 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014281 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014282 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014283 .block_erasers =
14284 {
14285 {
14286 .eraseblocks = { {4 * 1024, 32} },
14287 .block_erase = spi_block_erase_20,
14288 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014289 .eraseblocks = { {64 * 1024, 2} },
14290 .block_erase = spi_block_erase_d8,
14291 }, {
14292 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014293 .block_erase = spi_block_erase_c7,
14294 }
14295 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014297 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014298 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014299 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014300 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014301 },
14302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014303 {
14304 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014305 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014306 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014307 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014308 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014309 .total_size = 256,
14310 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014311 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014312 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014313 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014314 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014315 .block_erasers =
14316 {
14317 {
14318 .eraseblocks = { {4 * 1024, 64} },
14319 .block_erase = spi_block_erase_20,
14320 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014321 .eraseblocks = { {64 * 1024, 4} },
14322 .block_erase = spi_block_erase_d8,
14323 }, {
14324 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014325 .block_erase = spi_block_erase_c7,
14326 }
14327 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014328 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014329 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014330 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014331 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014332 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014333 },
14334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014335 {
14336 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014337 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014338 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014339 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014340 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014341 .total_size = 512,
14342 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014343 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000014344 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014345 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014346 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014347 .block_erasers =
14348 {
14349 {
14350 .eraseblocks = { {4 * 1024, 128} },
14351 .block_erase = spi_block_erase_20,
14352 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014353 .eraseblocks = { {64 * 1024, 8} },
14354 .block_erase = spi_block_erase_d8,
14355 }, {
14356 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014357 .block_erase = spi_block_erase_c7,
14358 }
14359 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014360 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014361 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014362 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014363 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014364 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014365 },
14366
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014367 {
14368 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014369 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014370 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014371 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014372 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014373 .total_size = 1024,
14374 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014375 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000014376 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014377 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014378 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014379 .block_erasers =
14380 {
14381 {
14382 .eraseblocks = { {4 * 1024, 256} },
14383 .block_erase = spi_block_erase_20,
14384 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014385 .eraseblocks = { {64 * 1024, 16} },
14386 .block_erase = spi_block_erase_d8,
14387 }, {
14388 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014389 .block_erase = spi_block_erase_c7,
14390 }
14391 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014392 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000014394 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014396 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014397 },
14398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014399 {
14400 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014401 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014402 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000014403 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014404 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000014405 .total_size = 2048,
14406 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014407 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000014408 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000014409 .probe = probe_spi_rdid,
14410 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014411 .block_erasers =
14412 {
14413 {
14414 .eraseblocks = { {4 * 1024, 512} },
14415 .block_erase = spi_block_erase_20,
14416 }, {
14417 .eraseblocks = { {32 * 1024, 64} },
14418 .block_erase = spi_block_erase_52,
14419 }, {
14420 .eraseblocks = { {64 * 1024, 32} },
14421 .block_erase = spi_block_erase_d8,
14422 }, {
14423 .eraseblocks = { {2 * 1024 * 1024, 1} },
14424 .block_erase = spi_block_erase_60,
14425 }, {
14426 .eraseblocks = { {2 * 1024 * 1024, 1} },
14427 .block_erase = spi_block_erase_c7,
14428 }
14429 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014430 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014431 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000014432 .write = spi_chip_write_256,
14433 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014434 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000014435 },
14436
14437 {
14438 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014439 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014440 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000014441 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014442 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000014443 .total_size = 4096,
14444 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014445 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014446 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000014447 .probe = probe_spi_rdid,
14448 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014449 .block_erasers =
14450 {
14451 {
14452 .eraseblocks = { {4 * 1024, 1024} },
14453 .block_erase = spi_block_erase_20,
14454 }, {
14455 .eraseblocks = { {32 * 1024, 128} },
14456 .block_erase = spi_block_erase_52,
14457 }, {
14458 .eraseblocks = { {64 * 1024, 64} },
14459 .block_erase = spi_block_erase_d8,
14460 }, {
14461 .eraseblocks = { {4 * 1024 * 1024, 1} },
14462 .block_erase = spi_block_erase_60,
14463 }, {
14464 .eraseblocks = { {4 * 1024 * 1024, 1} },
14465 .block_erase = spi_block_erase_c7,
14466 }
14467 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014468 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014469 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000014470 .write = spi_chip_write_256,
14471 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014472 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000014473 },
14474
14475 {
14476 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014477 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014478 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000014479 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014480 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000014481 .total_size = 8192,
14482 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000014483 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014484 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000014485 .probe = probe_spi_rdid,
14486 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014487 .block_erasers =
14488 {
14489 {
14490 .eraseblocks = { {4 * 1024, 2048} },
14491 .block_erase = spi_block_erase_20,
14492 }, {
14493 .eraseblocks = { {32 * 1024, 256} },
14494 .block_erase = spi_block_erase_52,
14495 }, {
14496 .eraseblocks = { {64 * 1024, 128} },
14497 .block_erase = spi_block_erase_d8,
14498 }, {
14499 .eraseblocks = { {8 * 1024 * 1024, 1} },
14500 .block_erase = spi_block_erase_60,
14501 }, {
14502 .eraseblocks = { {8 * 1024 * 1024, 1} },
14503 .block_erase = spi_block_erase_c7,
14504 }
14505 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014506 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014507 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000014508 .write = spi_chip_write_256,
14509 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014510 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000014511 },
14512
14513 {
14514 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000014515 .name = "W29C512A/W29EE512",
14516 .bustype = BUS_PARALLEL,
14517 .manufacture_id = WINBOND_ID,
14518 .model_id = WINBOND_W29C512A,
14519 .total_size = 64,
14520 .page_size = 128,
14521 .feature_bits = FEATURE_LONG_RESET,
14522 .tested = TEST_OK_PREW,
14523 .probe = probe_jedec,
14524 .probe_timing = 10,
14525 .block_erasers =
14526 {
14527 {
14528 .eraseblocks = { {64 * 1024, 1} },
14529 .block_erase = erase_chip_block_jedec,
14530 }
14531 },
14532 .write = write_jedec,
14533 .read = read_memmapped,
14534 .voltage = {4500, 5500},
14535 },
14536
14537 {
14538 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014539 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014540 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014541 .manufacture_id = WINBOND_ID,
14542 .model_id = WINBOND_W29C010,
14543 .total_size = 128,
14544 .page_size = 128,
14545 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014546 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000014547 .probe = probe_w29ee011,
14548 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
14549 .block_erasers =
14550 {
14551 {
14552 .eraseblocks = { {128 * 1024, 1} },
14553 .block_erase = erase_chip_block_jedec,
14554 }
14555 },
14556 .write = write_jedec,
14557 .read = read_memmapped,
14558 },
14559
14560 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
14561 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014562 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014563 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014564 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014565 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014566 .total_size = 128,
14567 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014568 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000014569 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014570 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014571 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014572 .block_erasers =
14573 {
14574 {
14575 .eraseblocks = { {128 * 1024, 1} },
14576 .block_erase = erase_chip_block_jedec,
14577 }
14578 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014579 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014580 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014581 },
14582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014583 {
14584 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014585 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014586 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014587 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014588 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014589 .total_size = 256,
14590 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014591 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014592 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014593 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014594 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014595 .block_erasers =
14596 {
14597 {
14598 .eraseblocks = { {256 * 1024, 1} },
14599 .block_erase = erase_chip_block_jedec,
14600 }
14601 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014602 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014604 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014605 },
14606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014607 {
14608 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014609 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014610 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014611 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014612 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014613 .total_size = 512,
14614 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014615 .feature_bits = FEATURE_LONG_RESET,
14616 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014617 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014618 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014619 .block_erasers =
14620 {
14621 {
14622 .eraseblocks = { {512 * 1024, 1} },
14623 .block_erase = erase_chip_block_jedec,
14624 }
14625 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014626 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014628 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014629 },
14630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014631 {
14632 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000014633 .name = "W29GL032CB",
14634 .bustype = BUS_PARALLEL,
14635 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14636 .model_id = WINBOND_W29GL032CB,
14637 .total_size = 4096,
14638 .page_size = 128 * 1024, /* actual page size is 16 */
14639 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14640 .tested = TEST_UNTESTED,
14641 .probe = probe_jedec_29gl,
14642 .probe_timing = TIMING_ZERO,
14643 .block_erasers =
14644 {
14645 {
14646 .eraseblocks = {
14647 {8 * 1024, 8},
14648 {64 * 1024, 63},
14649 },
14650 .block_erase = erase_sector_jedec,
14651 }, {
14652 .eraseblocks = { {4 * 1024 * 1024, 1} },
14653 .block_erase = erase_chip_block_jedec,
14654 },
14655 },
14656 .write = write_jedec_1,
14657 .read = read_memmapped,
14658 .voltage = {2700, 3600},
14659 },
14660
14661 {
14662 .vendor = "Winbond",
14663 .name = "W29GL032CT",
14664 .bustype = BUS_PARALLEL,
14665 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14666 .model_id = WINBOND_W29GL032CT,
14667 .total_size = 4096,
14668 .page_size = 128 * 1024, /* actual page size is 16 */
14669 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14670 .tested = TEST_UNTESTED,
14671 .probe = probe_jedec_29gl,
14672 .probe_timing = TIMING_ZERO,
14673 .block_erasers =
14674 {
14675 {
14676 .eraseblocks = {
14677 {64 * 1024, 63},
14678 {8 * 1024, 8},
14679 },
14680 .block_erase = erase_sector_jedec,
14681 }, {
14682 .eraseblocks = { {4 * 1024 * 1024, 1} },
14683 .block_erase = erase_chip_block_jedec,
14684 },
14685 },
14686 .write = write_jedec_1,
14687 .read = read_memmapped,
14688 .voltage = {2700, 3600},
14689 },
14690
14691 {
14692 .vendor = "Winbond",
14693 .name = "W29GL032CH/L",
14694 .bustype = BUS_PARALLEL,
14695 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14696 .model_id = WINBOND_W29GL032CHL,
14697 .total_size = 4096,
14698 .page_size = 128 * 1024, /* actual page size is 16 */
14699 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14700 .tested = TEST_UNTESTED,
14701 .probe = probe_jedec_29gl,
14702 .probe_timing = TIMING_ZERO,
14703 .block_erasers =
14704 {
14705 {
14706 .eraseblocks = { {64 * 1024, 64} },
14707 .block_erase = erase_sector_jedec,
14708 }, {
14709 .eraseblocks = { {4 * 1024 * 1024, 1} },
14710 .block_erase = erase_chip_block_jedec,
14711 },
14712 },
14713 .write = write_jedec_1,
14714 .read = read_memmapped,
14715 .voltage = {2700, 3600},
14716 },
14717
14718 {
14719 .vendor = "Winbond",
14720 .name = "W29GL064CB",
14721 .bustype = BUS_PARALLEL,
14722 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14723 .model_id = WINBOND_W29GL064CB,
14724 .total_size = 8192,
14725 .page_size = 128 * 1024, /* actual page size is 16 */
14726 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14727 .tested = TEST_UNTESTED,
14728 .probe = probe_jedec_29gl,
14729 .probe_timing = TIMING_ZERO,
14730 .block_erasers =
14731 {
14732 {
14733 .eraseblocks = {
14734 {8 * 1024, 8},
14735 {64 * 1024, 127},
14736 },
14737 .block_erase = erase_sector_jedec,
14738 }, {
14739 .eraseblocks = { {8 * 1024 * 1024, 1} },
14740 .block_erase = erase_chip_block_jedec,
14741 },
14742 },
14743 .write = write_jedec_1,
14744 .read = read_memmapped,
14745 .voltage = {2700, 3600},
14746 },
14747
14748 {
14749 .vendor = "Winbond",
14750 .name = "W29GL064CT",
14751 .bustype = BUS_PARALLEL,
14752 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14753 .model_id = WINBOND_W29GL064CT,
14754 .total_size = 8192,
14755 .page_size = 128 * 1024, /* actual page size is 16 */
14756 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14757 .tested = TEST_UNTESTED,
14758 .probe = probe_jedec_29gl,
14759 .probe_timing = TIMING_ZERO,
14760 .block_erasers =
14761 {
14762 {
14763 .eraseblocks = {
14764 {64 * 1024, 127},
14765 {8 * 1024, 8},
14766 },
14767 .block_erase = erase_sector_jedec,
14768 }, {
14769 .eraseblocks = { {8 * 1024 * 1024, 1} },
14770 .block_erase = erase_chip_block_jedec,
14771 },
14772 },
14773 .write = write_jedec_1,
14774 .read = read_memmapped,
14775 .voltage = {2700, 3600},
14776 },
14777
14778 {
14779 .vendor = "Winbond",
14780 .name = "W29GL064CH/L",
14781 .bustype = BUS_PARALLEL,
14782 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14783 .model_id = WINBOND_W29GL064CHL,
14784 .total_size = 8192,
14785 .page_size = 128 * 1024, /* actual page size is 16 */
14786 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14787 .tested = TEST_UNTESTED,
14788 .probe = probe_jedec_29gl,
14789 .probe_timing = TIMING_ZERO,
14790 .block_erasers =
14791 {
14792 {
14793 .eraseblocks = { {64 * 1024, 128} },
14794 .block_erase = erase_sector_jedec,
14795 }, {
14796 .eraseblocks = { {8 * 1024 * 1024, 1} },
14797 .block_erase = erase_chip_block_jedec,
14798 },
14799 },
14800 .write = write_jedec_1,
14801 .read = read_memmapped,
14802 .voltage = {2700, 3600},
14803 },
14804
14805 {
14806 .vendor = "Winbond",
14807 .name = "W29GL128C",
14808 .bustype = BUS_PARALLEL,
14809 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14810 .model_id = WINBOND_W29GL128CHL,
14811 .total_size = 16384,
14812 .page_size = 128 * 1024, /* actual page size is 16 */
14813 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14814 .tested = TEST_UNTESTED,
14815 .probe = probe_jedec_29gl,
14816 .probe_timing = TIMING_ZERO,
14817 .block_erasers =
14818 {
14819 {
14820 .eraseblocks = { {128 * 1024, 128} },
14821 .block_erase = erase_sector_jedec,
14822 }, {
14823 .eraseblocks = { {16 * 1024 * 1024, 1} },
14824 .block_erase = erase_chip_block_jedec,
14825 },
14826 },
14827 .write = write_jedec_1,
14828 .read = read_memmapped,
14829 .voltage = {2700, 3600},
14830 },
14831
14832 {
14833 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000014834 .name = "W39F010",
14835 .bustype = BUS_PARALLEL,
14836 .manufacture_id = WINBOND_ID,
14837 .model_id = WINBOND_W39F010,
14838 .total_size = 128,
14839 .page_size = 4 * 1024,
14840 .feature_bits = FEATURE_EITHER_RESET,
14841 .tested = TEST_OK_PREW,
14842 .probe = probe_jedec,
14843 .probe_timing = 10,
14844 .block_erasers =
14845 {
14846 {
14847 .eraseblocks = { {4 * 1024, 32} },
14848 .block_erase = erase_block_jedec,
14849 }, {
14850 .eraseblocks = { {128 * 1024, 1} },
14851 .block_erase = erase_chip_block_jedec,
14852 }
14853 },
14854 .printlock = printlock_w39f010,
14855 .write = write_jedec_1,
14856 .read = read_memmapped,
14857 .voltage = {4500, 5500},
14858 },
14859
14860 {
14861 .vendor = "Winbond",
14862 .name = "W39L010",
14863 .bustype = BUS_PARALLEL,
14864 .manufacture_id = WINBOND_ID,
14865 .model_id = WINBOND_W39L010,
14866 .total_size = 128,
14867 .page_size = 4 * 1024,
14868 .feature_bits = FEATURE_EITHER_RESET,
14869 .tested = TEST_UNTESTED,
14870 .probe = probe_jedec,
14871 .probe_timing = 10,
14872 .block_erasers =
14873 {
14874 {
14875 .eraseblocks = { {4 * 1024, 32} },
14876 .block_erase = erase_block_jedec,
14877 }, {
14878 .eraseblocks = { {128 * 1024, 1} },
14879 .block_erase = erase_chip_block_jedec,
14880 }
14881 },
14882 .printlock = printlock_w39l010,
14883 .write = write_jedec_1,
14884 .read = read_memmapped,
14885 .voltage = {3000, 3600},
14886 },
14887
14888 {
14889 .vendor = "Winbond",
14890 .name = "W39L020",
14891 .bustype = BUS_PARALLEL,
14892 .manufacture_id = WINBOND_ID,
14893 .model_id = WINBOND_W39L020,
14894 .total_size = 256,
14895 .page_size = 4 * 1024,
14896 .feature_bits = FEATURE_EITHER_RESET,
14897 .tested = TEST_UNTESTED,
14898 .probe = probe_jedec,
14899 .probe_timing = 10,
14900 .block_erasers =
14901 {
14902 {
14903 .eraseblocks = { {4 * 1024, 64} },
14904 .block_erase = erase_block_jedec,
14905 }, {
14906 .eraseblocks = { {64 * 1024, 4} },
14907 .block_erase = erase_sector_jedec,
14908 }, {
14909 .eraseblocks = { {256 * 1024, 1} },
14910 .block_erase = erase_chip_block_jedec,
14911 }
14912 },
14913 .printlock = printlock_w39l020,
14914 .write = write_jedec_1,
14915 .read = read_memmapped,
14916 .voltage = {3000, 3600},
14917 },
14918
14919 {
14920 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000014921 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014922 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000014923 .manufacture_id = WINBOND_ID,
14924 .model_id = WINBOND_W39L040,
14925 .total_size = 512,
14926 .page_size = 64 * 1024,
14927 .feature_bits = FEATURE_EITHER_RESET,
14928 .tested = TEST_OK_PR,
14929 .probe = probe_jedec,
14930 .probe_timing = 10,
14931 .block_erasers =
14932 {
14933 {
14934 .eraseblocks = { {4 * 1024, 128} },
14935 .block_erase = erase_block_jedec,
14936 }, {
14937 .eraseblocks = { {64 * 1024, 8} },
14938 .block_erase = erase_sector_jedec,
14939 }, {
14940 .eraseblocks = { {512 * 1024, 1} },
14941 .block_erase = erase_chip_block_jedec,
14942 }
14943 },
14944 .printlock = printlock_w39l040,
14945 .write = write_jedec_1,
14946 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014947 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000014948 },
14949
14950 {
14951 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014952 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014953 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014954 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014955 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014956 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014957 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014958 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014960 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000014961 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014962 .block_erasers =
14963 {
14964 {
14965 .eraseblocks = { {64 * 1024, 8} },
14966 .block_erase = erase_sector_jedec,
14967 }, {
14968 .eraseblocks = { {512 * 1024, 1} },
14969 .block_erase = erase_chip_block_jedec,
14970 }
14971 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014972 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000014973 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014975 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014976 },
14977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014978 {
14979 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014980 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014981 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014982 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014983 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014984 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014985 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014986 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014987 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014988 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000014989 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014990 .block_erasers =
14991 {
14992 {
14993 .eraseblocks = { {64 * 1024, 8} },
14994 .block_erase = erase_sector_jedec,
14995 }, {
14996 .eraseblocks = { {512 * 1024, 1} },
14997 .block_erase = erase_chip_block_jedec,
14998 }
14999 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015000 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000015001 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015003 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015004 },
15005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015006 {
15007 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015008 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015009 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015010 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015011 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015012 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015013 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015014 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015015 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000015016 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015017 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015018 .block_erasers =
15019 {
15020 {
15021 .eraseblocks = { {64 * 1024, 8} },
15022 .block_erase = erase_sector_jedec,
15023 }, {
15024 .eraseblocks = { {512 * 1024, 1} },
15025 .block_erase = erase_chip_block_jedec,
15026 }
15027 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000015028 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000015029 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015030 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015031 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015032 },
15033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015034 {
15035 .vendor = "Winbond",
15036 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015037 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015038 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015039 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015040 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015041 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000015042 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015043 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015044 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015045 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015046 .block_erasers =
15047 {
15048 {
15049 .eraseblocks = { {4 * 1024, 128} },
15050 .block_erase = erase_block_jedec,
15051 }, {
15052 .eraseblocks = { {64 * 1024, 8} },
15053 .block_erase = erase_sector_jedec,
15054 }, {
15055 .eraseblocks = { {512 * 1024, 1} },
15056 .block_erase = erase_chip_block_jedec,
15057 }
15058 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015059 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015060 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015061 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015063 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015064 },
15065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015066 {
15067 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015068 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015069 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015070 .manufacture_id = WINBOND_ID,
15071 .model_id = WINBOND_W39V040B,
15072 .total_size = 512,
15073 .page_size = 64 * 1024,
15074 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015075 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015076 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015077 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015078 .block_erasers =
15079 {
15080 {
15081 .eraseblocks = { {64 * 1024, 8} },
15082 .block_erase = erase_sector_jedec,
15083 }, {
15084 .eraseblocks = { {512 * 1024, 1} },
15085 .block_erase = erase_chip_block_jedec,
15086 }
15087 },
15088 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015089 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015090 .write = write_jedec_1,
15091 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015092 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015093 },
15094
15095 {
15096 .vendor = "Winbond",
15097 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015098 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015099 .manufacture_id = WINBOND_ID,
15100 .model_id = WINBOND_W39V040C,
15101 .total_size = 512,
15102 .page_size = 64 * 1024,
15103 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000015104 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015105 .probe = probe_jedec,
15106 .probe_timing = 10,
15107 .block_erasers =
15108 {
15109 {
15110 .eraseblocks = { {64 * 1024, 8} },
15111 .block_erase = erase_sector_jedec,
15112 }, {
15113 .eraseblocks = { {512 * 1024, 1} },
15114 .block_erase = erase_chip_block_jedec,
15115 }
15116 },
15117 .printlock = printlock_w39v040fc,
15118 .write = write_jedec_1,
15119 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015120 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015121 },
15122
15123 {
15124 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015125 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015126 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015127 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015128 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015129 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015130 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015131 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000015132 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015133 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000015134 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015135 .block_erasers =
15136 {
15137 {
15138 .eraseblocks = { {64 * 1024, 16} },
15139 .block_erase = erase_sector_jedec,
15140 }, {
15141 .eraseblocks = { {1024 * 1024, 1} },
15142 .block_erase = erase_chip_block_jedec,
15143 }
15144 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015145 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000015146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015147 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015148 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015149 },
15150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015151 {
15152 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015153 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015155 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015156 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015157 .total_size = 256,
15158 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015159 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015160 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015161 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015162 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015163 .block_erasers =
15164 {
15165 {
15166 .eraseblocks = {
15167 {128 * 1024, 1},
15168 {96 * 1024, 1},
15169 {8 * 1024, 2},
15170 {16 * 1024, 1},
15171 },
15172 .block_erase = erase_sector_jedec,
15173 }, {
15174 .eraseblocks = { {256 * 1024, 1} },
15175 .block_erase = erase_chip_block_jedec,
15176 }
15177 },
Sean Nelson35727f72010-01-28 23:55:12 +000015178 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015179 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015180 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015181 },
15182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015183 {
15184 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015185 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015186 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015187 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015188 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015189 .total_size = 256,
15190 .page_size = 128,
15191 .feature_bits = FEATURE_EITHER_RESET,
15192 .tested = TEST_OK_PROBE,
15193 .probe = probe_jedec,
15194 .probe_timing = 10,
15195 .block_erasers =
15196 {
15197 {
15198 .eraseblocks = { {256 * 1024, 1} },
15199 .block_erase = erase_chip_block_jedec,
15200 }
15201 },
15202 .write = write_jedec_1,
15203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015204 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000015205 },
15206
15207 {
15208 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015209 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015210 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015211 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015212 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015213 .total_size = 256,
15214 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015215 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015216 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015217 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015218 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015219 .block_erasers =
15220 {
15221 {
15222 .eraseblocks = {
15223 {64 * 1024, 3},
15224 {32 * 1024, 1},
15225 {8 * 1024, 2},
15226 {16 * 1024, 1},
15227 },
15228 .block_erase = erase_sector_jedec,
15229 }, {
15230 .eraseblocks = { {256 * 1024, 1} },
15231 .block_erase = erase_chip_block_jedec,
15232 }
15233 },
Sean Nelson35727f72010-01-28 23:55:12 +000015234 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015235 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015236 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015237 },
15238
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015239 {
15240 .vendor = "Winbond",
15241 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015242 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015243 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015244 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015245 .total_size = 256,
15246 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015247 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015248 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015249 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015250 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015251 .block_erasers =
15252 {
15253 {
15254 .eraseblocks = {
15255 {64 * 1024, 3},
15256 {32 * 1024, 1},
15257 {8 * 1024, 2},
15258 {16 * 1024, 1},
15259 },
15260 .block_erase = erase_sector_jedec,
15261 }, {
15262 .eraseblocks = { {256 * 1024, 1} },
15263 .block_erase = erase_chip_block_jedec,
15264 }
15265 },
Sean Nelson35727f72010-01-28 23:55:12 +000015266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015268 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015269 },
15270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015271 {
15272 .vendor = "Winbond",
15273 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015274 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015275 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015276 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015277 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015278 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015279 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015280 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000015281 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015282 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015283 .block_erasers =
15284 {
15285 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015286 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015287 .block_erase = erase_sector_jedec,
15288 }, {
15289 .eraseblocks = { {1024 * 1024, 1} },
15290 .block_erase = erase_chip_block_jedec,
15291 }
15292 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015293 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015294 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015295 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015296 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015297 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000015298 },
15299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015300 {
15301 .vendor = "Winbond",
15302 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015303 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015304 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015305 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015306 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015307 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015308 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015309 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000015310 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015311 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015312 .block_erasers =
15313 {
15314 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015315 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015316 .block_erase = erase_sector_jedec,
15317 }, {
15318 .eraseblocks = { {512 * 1024, 1} },
15319 .block_erase = erase_chip_block_jedec,
15320 }
15321 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015322 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000015323 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015324 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015325 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000015326 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000015327
15328 {
15329 .vendor = "Unknown",
15330 .name = "SFDP-capable chip",
15331 .bustype = BUS_SPI,
15332 .manufacture_id = GENERIC_MANUF_ID,
15333 .model_id = SFDP_DEVICE_ID,
15334 /* We present our own "report this" text hence we do not
15335 * want the default "This flash part has status UNTESTED..."
15336 * text to be printed. */
15337 .tested = TEST_OK_PREW,
15338 .probe = probe_spi_sfdp,
15339 .unlock = spi_disable_blockprotect, /* is this safe? */
15340 .read = spi_chip_read,
15341 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000015342 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000015343 /* Everything below will be set by the probing function. */
15344 .write = NULL,
15345 .total_size = 0,
15346 .page_size = 0,
15347 .feature_bits = 0,
15348 .block_erasers = {},
15349 },
FENG yu ningff692fb2008-12-08 18:15:10 +000015350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015351 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000015352 .vendor = "Programmer",
15353 .name = "Opaque flash chip",
15354 .bustype = BUS_PROG,
15355 .manufacture_id = PROGMANUF_ID,
15356 .model_id = PROGDEV_ID,
15357 .total_size = 0,
15358 .page_size = 256,
15359 /* probe is assumed to work, rest will be filled in by probe */
15360 .tested = TEST_OK_PROBE,
15361 .probe = probe_opaque,
15362 /* eraseblock sizes will be set by the probing function */
15363 .block_erasers =
15364 {
15365 {
15366 .block_erase = erase_opaque,
15367 }
15368 },
15369 .write = write_opaque,
15370 .read = read_opaque,
15371 },
15372
15373 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000015374 .vendor = "AMIC",
15375 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015376 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000015377 .manufacture_id = AMIC_ID,
15378 .model_id = GENERIC_DEVICE_ID,
15379 .total_size = 0,
15380 .page_size = 256,
15381 .tested = TEST_BAD_PREW,
15382 .probe = probe_spi_rdid4,
15383 .probe_timing = TIMING_ZERO,
15384 .write = NULL,
15385 .read = NULL,
15386 },
15387
15388 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015389 .vendor = "Atmel",
15390 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015391 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015392 .manufacture_id = ATMEL_ID,
15393 .model_id = GENERIC_DEVICE_ID,
15394 .total_size = 0,
15395 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015396 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015397 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015398 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015399 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015400 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015401 },
15402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015403 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000015404 .vendor = "Eon",
15405 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015406 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015407 .manufacture_id = EON_ID_NOPREFIX,
15408 .model_id = GENERIC_DEVICE_ID,
15409 .total_size = 0,
15410 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015411 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015412 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015413 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015414 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015415 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015416 },
15417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015418 {
15419 .vendor = "Macronix",
15420 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015421 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015422 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015423 .model_id = GENERIC_DEVICE_ID,
15424 .total_size = 0,
15425 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015426 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015427 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015428 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015429 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015430 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015431 },
15432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015433 {
15434 .vendor = "PMC",
15435 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015436 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015437 .manufacture_id = PMC_ID,
15438 .model_id = GENERIC_DEVICE_ID,
15439 .total_size = 0,
15440 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015441 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015442 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015443 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015444 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015445 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015446 },
15447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015448 {
15449 .vendor = "SST",
15450 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015451 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015452 .manufacture_id = SST_ID,
15453 .model_id = GENERIC_DEVICE_ID,
15454 .total_size = 0,
15455 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015456 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015457 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015458 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015459 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015460 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015461 },
15462
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015463 {
15464 .vendor = "ST",
15465 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015466 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015467 .manufacture_id = ST_ID,
15468 .model_id = GENERIC_DEVICE_ID,
15469 .total_size = 0,
15470 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000015471 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015472 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015473 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015474 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015475 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000015476 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000015477
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015478 {
Sean Nelson118e1d62009-11-24 02:08:11 +000015479 .vendor = "Sanyo",
15480 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015481 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000015482 .manufacture_id = SANYO_ID,
15483 .model_id = GENERIC_DEVICE_ID,
15484 .total_size = 0,
15485 .page_size = 256,
15486 .tested = TEST_BAD_PREW,
15487 .probe = probe_spi_rdid,
15488 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000015489 .write = NULL,
15490 .read = NULL,
15491 },
15492
15493 {
Stefan Taunereb582572012-09-21 12:52:50 +000015494 .vendor = "Winbond",
15495 .name = "unknown Winbond (ex Nexcom) SPI chip",
15496 .bustype = BUS_SPI,
15497 .manufacture_id = WINBOND_NEX_ID,
15498 .model_id = GENERIC_DEVICE_ID,
15499 .total_size = 0,
15500 .page_size = 256,
15501 .tested = TEST_BAD_PREW,
15502 .probe = probe_spi_rdid,
15503 .probe_timing = TIMING_ZERO,
15504 .write = NULL,
15505 .read = NULL,
15506 },
15507
15508 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015509 .vendor = "Generic",
15510 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015511 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015512 .manufacture_id = GENERIC_MANUF_ID,
15513 .model_id = GENERIC_DEVICE_ID,
15514 .total_size = 0,
15515 .page_size = 256,
15516 .tested = TEST_BAD_PREW,
15517 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015518 .write = NULL,
15519 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000015520
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015521 {
15522 .vendor = "Generic",
15523 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015524 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015525 .manufacture_id = GENERIC_MANUF_ID,
15526 .model_id = GENERIC_DEVICE_ID,
15527 .total_size = 0,
15528 .page_size = 256,
15529 .tested = TEST_BAD_PREW,
15530 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000015531 .write = NULL,
15532 },
15533
Stefan Tauner96658be2014-05-26 22:05:31 +000015534 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000015535};
Stefan Tauner96658be2014-05-26 22:05:31 +000015536
15537const unsigned int flashchips_size = ARRAY_SIZE(flashchips);