blob: e6c4b867208a11e36e13976b61c2be124fdad186 [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"
Ollie Lho184a4042005-11-26 21:55:36 +000027
Uwe Hermannfc425e82008-03-16 02:06:25 +000028/**
Uwe Hermanna9720402009-05-21 15:55:46 +000029 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000030 *
31 * Please keep the list sorted by vendor name and chip name, so that
32 * the output of 'flashrom -L' is alphabetically sorted.
33 */
Ollie Lho184a4042005-11-26 21:55:36 +000034struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000035
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000036 /*
37 * .vendor = Vendor name
38 * .name = Chip name
39 * .bustype = Supported flash bus types (Parallel, LPC...)
40 * .manufacture_id = Manufacturer chip ID
41 * .model_id = Model chip ID
42 * .total_size = Total size in (binary) kbytes
43 * .page_size = Page or eraseblock(?) size in bytes
44 * .tested = Test status
45 * .probe = Probe function
46 * .probe_timing = Probe function delay
47 * .erase = Chip erase function
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 * }
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000053 * .write = Chip write function
54 * .read = Chip read function
FENG yu ningff692fb2008-12-08 18:15:10 +000055 */
56
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000057 {
58 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000059 .name = "Am29F010A/B",
60 .bustype = CHIP_BUSTYPE_PARALLEL,
61 .manufacture_id = AMD_ID,
62 .model_id = AM_29F010B, /* Same as Am29F010A */
63 .total_size = 128,
64 .page_size = 16 * 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000065 .tested = TEST_OK_PRW,
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .probe = probe_29f040b,
Udu Ogahc04ee222009-09-05 01:31:32 +000067 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000068 .erase = NULL,
69 .block_erasers =
70 {
71 {
72 .eraseblocks = { {16 * 1024, 8} },
73 .block_erase = erase_sector_29f040b,
74 }, {
75 .eraseblocks = { {128 * 1024, 1} },
76 .block_erase = erase_chip_29f040b,
77 },
78 },
Uwe Hermanna8b37272009-06-19 15:54:39 +000079 .write = write_pm29f002,
80 .read = read_memmapped,
81 },
82
83 {
84 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000085 .name = "Am29F002(N)BB",
Urja Rannikko038a3122009-06-28 19:19:25 +000086 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000087 .manufacture_id = AMD_ID,
88 .model_id = AM_29F002BB,
89 .total_size = 256,
90 .page_size = 256,
91 .tested = TEST_UNTESTED,
92 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000093 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000094 .erase = NULL,
95 .block_erasers =
96 {
97 {
98 .eraseblocks = {
99 {16 * 1024, 1},
100 {8 * 1024, 2},
101 {32 * 1024, 1},
102 {64 * 1024, 3},
103 },
104 .block_erase = erase_sector_jedec,
105 }, {
106 .eraseblocks = { {256 * 1024, 1} },
107 .block_erase = erase_chip_block_jedec,
108 },
109 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000110 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000111 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000112 },
113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000114 {
115 .vendor = "AMD",
116 .name = "Am29F002(N)BT",
Urja Rannikko038a3122009-06-28 19:19:25 +0000117 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000118 .manufacture_id = AMD_ID,
119 .model_id = AM_29F002BT,
120 .total_size = 256,
121 .page_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +0000122 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000124 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000125 .erase = NULL,
126 .block_erasers =
127 {
128 {
129 .eraseblocks = {
130 {64 * 1024, 3},
131 {32 * 1024, 1},
132 {8 * 1024, 2},
133 {16 * 1024, 1},
134 },
135 .block_erase = erase_sector_jedec,
136 }, {
137 .eraseblocks = { {256 * 1024, 1} },
138 .block_erase = erase_chip_block_jedec,
139 },
140 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000142 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000143 },
144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000145 {
146 .vendor = "AMD",
147 .name = "Am29F016D",
Urja Rannikko038a3122009-06-28 19:19:25 +0000148 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000149 .manufacture_id = AMD_ID,
150 .model_id = AM_29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000151 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000152 .page_size = 64 * 1024,
153 .tested = TEST_UNTESTED,
154 .probe = probe_29f040b,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000155 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000156 .erase = NULL,
157 .block_erasers =
158 {
159 {
160 .eraseblocks = { {64 * 1024, 32} },
161 .block_erase = erase_sector_29f040b,
162 }, {
163 .eraseblocks = { {2048 * 1024, 1} },
164 .block_erase = erase_chip_29f040b,
165 },
166 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000167 .write = write_29f040b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000168 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000169 },
170
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000171 {
172 .vendor = "AMD",
173 .name = "Am29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000174 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000175 .manufacture_id = AMD_ID,
176 .model_id = AM_29F040B,
177 .total_size = 512,
178 .page_size = 64 * 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +0000179 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000180 .probe = probe_29f040b,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000181 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000182 .erase = NULL,
183 .block_erasers =
184 {
185 {
186 .eraseblocks = { {64 * 1024, 8} },
187 .block_erase = erase_sector_29f040b,
188 }, {
189 .eraseblocks = { {512 * 1024, 1} },
190 .block_erase = erase_chip_29f040b,
191 },
192 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000193 .write = write_29f040b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000194 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000195 },
196
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000197 {
198 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000199 .name = "Am29F080B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000200 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000201 .manufacture_id = AMD_ID,
202 .model_id = AM_29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000203 .total_size = 1024,
204 .page_size = 64 * 1024,
205 .tested = TEST_UNTESTED,
206 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000207 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000208 .erase = NULL,
209 .block_erasers =
210 {
211 {
212 .eraseblocks = { {64 * 1024, 16} },
213 .block_erase = erase_sector_29f040b,
214 }, {
215 .eraseblocks = { {1024 * 1024, 1} },
216 .block_erase = erase_chip_29f040b,
217 },
218 },
Peter Stuge8440cc02009-01-25 23:55:12 +0000219 .write = write_29f040b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000220 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000221 },
222
223 {
224 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000225 .name = "Am29LV040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000226 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000227 .manufacture_id = AMD_ID,
228 .model_id = AM_29LV040B,
229 .total_size = 512,
230 .page_size = 64 * 1024,
231 .tested = TEST_UNTESTED,
232 .probe = probe_29f040b,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000233 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000234 .erase = NULL,
235 .block_erasers =
236 {
237 {
238 .eraseblocks = { {64 * 1024, 8} },
239 .block_erase = erase_sector_29f040b,
240 }, {
241 .eraseblocks = { {512 * 1024, 1} },
242 .block_erase = erase_chip_29f040b,
243 },
244 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000245 .write = write_29f040b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000246 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000247 },
248
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000249 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000250 .vendor = "AMD",
251 .name = "Am29LV081B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000252 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000253 .manufacture_id = AMD_ID,
Carl-Daniel Hailfinger6d5d2532009-08-10 10:14:23 +0000254 .model_id = AM_29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000255 .total_size = 1024,
256 .page_size = 64 * 1024,
257 .tested = TEST_UNTESTED,
258 .probe = probe_29f040b,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000259 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000260 .erase = NULL,
261 .block_erasers =
262 {
263 {
264 .eraseblocks = { {64 * 1024, 16} },
265 .block_erase = erase_sector_29f040b,
266 }, {
267 .eraseblocks = { {1024 * 1024, 1} },
268 .block_erase = erase_chip_29f040b,
269 },
270 },
Peter Stuge8440cc02009-01-25 23:55:12 +0000271 .write = write_29f040b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000272 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000273 },
274
275 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000276 .vendor = "ASD",
277 .name = "AE49F2008",
Urja Rannikko038a3122009-06-28 19:19:25 +0000278 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000279 .manufacture_id = ASD_ID,
280 .model_id = ASD_AE49F2008,
281 .total_size = 256,
282 .page_size = 128,
283 .tested = TEST_UNTESTED,
284 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000285 .probe_timing = TIMING_FIXME,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000286 .erase = erase_chip_jedec,
287 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000288 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000289 },
290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000291 {
292 .vendor = "Atmel",
293 .name = "AT25DF021",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000294 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000295 .manufacture_id = ATMEL_ID,
296 .model_id = AT_25DF021,
297 .total_size = 256,
298 .page_size = 256,
299 .tested = TEST_UNTESTED,
300 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000301 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000302 .erase = NULL,
303 .block_erasers =
304 {
305 {
306 .eraseblocks = { {4 * 1024, 64} },
307 .block_erase = spi_block_erase_20,
308 }, {
309 .eraseblocks = { {32 * 1024, 8} },
310 .block_erase = spi_block_erase_52,
311 }, {
312 .eraseblocks = { {64 * 1024, 4} },
313 .block_erase = spi_block_erase_d8,
314 }, {
315 .eraseblocks = { {256 * 1024, 1} },
316 .block_erase = spi_block_erase_60,
317 }, {
318 .eraseblocks = { {256 * 1024, 1} },
319 .block_erase = spi_block_erase_c7,
320 }
321 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000322 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000323 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000324 },
325
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000326 {
327 .vendor = "Atmel",
328 .name = "AT25DF041A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000329 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000330 .manufacture_id = ATMEL_ID,
331 .model_id = AT_25DF041A,
332 .total_size = 512,
333 .page_size = 256,
334 .tested = TEST_UNTESTED,
335 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000336 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000337 .erase = NULL,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = { {4 * 1024, 128} },
342 .block_erase = spi_block_erase_20,
343 }, {
344 .eraseblocks = { {32 * 1024, 16} },
345 .block_erase = spi_block_erase_52,
346 }, {
347 .eraseblocks = { {64 * 1024, 8} },
348 .block_erase = spi_block_erase_d8,
349 }, {
350 .eraseblocks = { {512 * 1024, 1} },
351 .block_erase = spi_block_erase_60,
352 }, {
353 .eraseblocks = { {512 * 1024, 1} },
354 .block_erase = spi_block_erase_c7,
355 }
356 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000358 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000359 },
360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000361 {
362 .vendor = "Atmel",
363 .name = "AT25DF081",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000364 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000365 .manufacture_id = ATMEL_ID,
366 .model_id = AT_25DF081,
367 .total_size = 1024,
368 .page_size = 256,
369 .tested = TEST_UNTESTED,
370 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000371 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000372 .erase = NULL,
373 .block_erasers =
374 {
375 {
376 .eraseblocks = { {4 * 1024, 256} },
377 .block_erase = spi_block_erase_20,
378 }, {
379 .eraseblocks = { {32 * 1024, 32} },
380 .block_erase = spi_block_erase_52,
381 }, {
382 .eraseblocks = { {64 * 1024, 16} },
383 .block_erase = spi_block_erase_d8,
384 }, {
385 .eraseblocks = { {1024 * 1024, 1} },
386 .block_erase = spi_block_erase_60,
387 }, {
388 .eraseblocks = { {1024 * 1024, 1} },
389 .block_erase = spi_block_erase_c7,
390 }
391 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000392 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000393 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000394 },
395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000396 {
397 .vendor = "Atmel",
398 .name = "AT25DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000399 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000400 .manufacture_id = ATMEL_ID,
401 .model_id = AT_25DF161,
402 .total_size = 2048,
403 .page_size = 256,
404 .tested = TEST_UNTESTED,
405 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000406 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000407 .erase = NULL,
408 .block_erasers =
409 {
410 {
411 .eraseblocks = { {4 * 1024, 512} },
412 .block_erase = spi_block_erase_20,
413 }, {
414 .eraseblocks = { {32 * 1024, 64} },
415 .block_erase = spi_block_erase_52,
416 }, {
417 .eraseblocks = { {64 * 1024, 32} },
418 .block_erase = spi_block_erase_d8,
419 }, {
420 .eraseblocks = { {2 * 1024 * 1024, 1} },
421 .block_erase = spi_block_erase_60,
422 }, {
423 .eraseblocks = { {2 * 1024 * 1024, 1} },
424 .block_erase = spi_block_erase_c7,
425 }
426 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000427 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000428 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000429 },
430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000431 {
432 .vendor = "Atmel",
433 .name = "AT25DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000434 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000435 .manufacture_id = ATMEL_ID,
436 .model_id = AT_25DF321,
437 .total_size = 4096,
438 .page_size = 256,
Sean Nelson89187292009-12-23 12:02:55 +0000439 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000440 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000441 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000442 .erase = NULL,
443 .block_erasers =
444 {
445 {
446 .eraseblocks = { {4 * 1024, 1024} },
447 .block_erase = spi_block_erase_20,
448 }, {
449 .eraseblocks = { {32 * 1024, 128} },
450 .block_erase = spi_block_erase_52,
451 }, {
452 .eraseblocks = { {64 * 1024, 64} },
453 .block_erase = spi_block_erase_d8,
454 }, {
455 .eraseblocks = { {4 * 1024 * 1024, 1} },
456 .block_erase = spi_block_erase_60,
457 }, {
458 .eraseblocks = { {4 * 1024 * 1024, 1} },
459 .block_erase = spi_block_erase_c7,
460 }
461 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000462 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000463 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000464 },
465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000466 {
467 .vendor = "Atmel",
468 .name = "AT25DF321A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000469 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000470 .manufacture_id = ATMEL_ID,
471 .model_id = AT_25DF321A,
472 .total_size = 4096,
473 .page_size = 256,
474 .tested = TEST_UNTESTED,
475 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000476 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000477 .erase = NULL,
478 .block_erasers =
479 {
480 {
481 .eraseblocks = { {4 * 1024, 1024} },
482 .block_erase = spi_block_erase_20,
483 }, {
484 .eraseblocks = { {32 * 1024, 128} },
485 .block_erase = spi_block_erase_52,
486 }, {
487 .eraseblocks = { {64 * 1024, 64} },
488 .block_erase = spi_block_erase_d8,
489 }, {
490 .eraseblocks = { {4 * 1024 * 1024, 1} },
491 .block_erase = spi_block_erase_60,
492 }, {
493 .eraseblocks = { {4 * 1024 * 1024, 1} },
494 .block_erase = spi_block_erase_c7,
495 }
496 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000497 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000498 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000499 },
500
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000501 {
502 .vendor = "Atmel",
503 .name = "AT25DF641",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000504 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000505 .manufacture_id = ATMEL_ID,
506 .model_id = AT_25DF641,
507 .total_size = 8192,
508 .page_size = 256,
509 .tested = TEST_UNTESTED,
510 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000511 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000512 .erase = NULL,
513 .block_erasers =
514 {
515 {
516 .eraseblocks = { {4 * 1024, 2048} },
517 .block_erase = spi_block_erase_20,
518 }, {
519 .eraseblocks = { {32 * 1024, 256} },
520 .block_erase = spi_block_erase_52,
521 }, {
522 .eraseblocks = { {64 * 1024, 128} },
523 .block_erase = spi_block_erase_d8,
524 }, {
525 .eraseblocks = { {8 * 1024 * 1024, 1} },
526 .block_erase = spi_block_erase_60,
527 }, {
528 .eraseblocks = { {8 * 1024 * 1024, 1} },
529 .block_erase = spi_block_erase_c7,
530 }
531 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000532 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000533 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000534 },
535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000536 {
537 .vendor = "Atmel",
538 .name = "AT25F512B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000539 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000540 .manufacture_id = ATMEL_ID,
541 .model_id = AT_25F512B,
542 .total_size = 64,
543 .page_size = 256,
544 .tested = TEST_UNTESTED,
545 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000546 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000547 .erase = NULL,
548 .block_erasers =
549 {
550 {
551 .eraseblocks = { {4 * 1024, 16} },
552 .block_erase = spi_block_erase_20,
553 }, {
554 .eraseblocks = { {32 * 1024, 2} },
555 .block_erase = spi_block_erase_52,
556 }, {
557 .eraseblocks = { {32 * 1024, 2} },
558 .block_erase = spi_block_erase_d8,
559 }, {
560 .eraseblocks = { {64 * 1024, 1} },
561 .block_erase = spi_block_erase_60,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000567 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000568 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000569 },
570
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000571 {
572 .vendor = "Atmel",
573 .name = "AT25FS010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000574 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000575 .manufacture_id = ATMEL_ID,
576 .model_id = AT_25FS010,
577 .total_size = 128,
578 .page_size = 256,
579 .tested = TEST_UNTESTED,
580 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000581 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000582 .erase = NULL,
583 .block_erasers =
584 {
585 {
586 .eraseblocks = { {4 * 1024, 32} },
587 .block_erase = spi_block_erase_20,
588 }, {
589 .eraseblocks = { {32 * 1024, 4} },
590 .block_erase = spi_block_erase_52,
591 }, {
592 .eraseblocks = { {32 * 1024, 4} },
593 .block_erase = spi_block_erase_d8,
594 }, {
595 .eraseblocks = { {128 * 1024, 1} },
596 .block_erase = spi_block_erase_60,
597 }, {
598 .eraseblocks = { {128 * 1024, 1} },
599 .block_erase = spi_block_erase_c7,
600 }
601 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000602 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000603 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000604 },
605
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000606 {
607 .vendor = "Atmel",
608 .name = "AT25FS040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000609 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000610 .manufacture_id = ATMEL_ID,
611 .model_id = AT_25FS040,
612 .total_size = 512,
613 .page_size = 256,
614 .tested = TEST_UNTESTED,
615 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000616 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000617 .erase = NULL,
618 .block_erasers =
619 {
620 {
621 .eraseblocks = { {4 * 1024, 128} },
622 .block_erase = spi_block_erase_20,
623 }, {
624 .eraseblocks = { {64 * 1024, 8} },
625 .block_erase = spi_block_erase_52,
626 }, {
627 .eraseblocks = { {64 * 1024, 8} },
628 .block_erase = spi_block_erase_d8,
629 }, {
630 .eraseblocks = { {512 * 1024, 1} },
631 .block_erase = spi_block_erase_60,
632 }, {
633 .eraseblocks = { {512 * 1024, 1} },
634 .block_erase = spi_block_erase_c7,
635 }
636 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000637 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000638 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000639 },
640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000641 {
642 .vendor = "Atmel",
643 .name = "AT26DF041",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000644 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000645 .manufacture_id = ATMEL_ID,
646 .model_id = AT_26DF041,
647 .total_size = 512,
648 .page_size = 256,
649 .tested = TEST_UNTESTED,
650 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000651 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000652 .erase = NULL,
Sean Nelson89187292009-12-23 12:02:55 +0000653 .block_erasers =
654 {
655 {
656 .eraseblocks = { {4 * 1024, 128} },
657 .block_erase = spi_block_erase_20,
658 }
659 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000660 .write = NULL /* Incompatible Page write */,
661 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000662 },
663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000664 {
665 .vendor = "Atmel",
666 .name = "AT26DF081A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000667 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000668 .manufacture_id = ATMEL_ID,
669 .model_id = AT_26DF081A,
670 .total_size = 1024,
671 .page_size = 256,
672 .tested = TEST_UNTESTED,
673 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000674 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000675 .erase = NULL,
676 .block_erasers =
677 {
678 {
679 .eraseblocks = { {4 * 1024, 256} },
680 .block_erase = spi_block_erase_20,
681 }, {
682 .eraseblocks = { {32 * 1024, 32} },
683 .block_erase = spi_block_erase_52,
684 }, {
685 .eraseblocks = { {64 * 1024, 16} },
686 .block_erase = spi_block_erase_d8,
687 }, {
688 .eraseblocks = { {1024 * 1024, 1} },
689 .block_erase = spi_block_erase_60,
690 }, {
691 .eraseblocks = { {1024 * 1024, 1} },
692 .block_erase = spi_block_erase_c7,
693 }
694 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000695 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000696 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000697 },
698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000699 {
700 .vendor = "Atmel",
701 .name = "AT26DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000702 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000703 .manufacture_id = ATMEL_ID,
704 .model_id = AT_26DF161,
705 .total_size = 2048,
706 .page_size = 256,
707 .tested = TEST_UNTESTED,
708 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000709 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000710 .erase = NULL,
711 .block_erasers =
712 {
713 {
714 .eraseblocks = { {4 * 1024, 512} },
715 .block_erase = spi_block_erase_20,
716 }, {
717 .eraseblocks = { {32 * 1024, 64} },
718 .block_erase = spi_block_erase_52,
719 }, {
720 .eraseblocks = { {64 * 1024, 32} },
721 .block_erase = spi_block_erase_d8,
722 }, {
723 .eraseblocks = { {2 * 1024 * 1024, 1} },
724 .block_erase = spi_block_erase_60,
725 }, {
726 .eraseblocks = { {2 * 1024 * 1024, 1} },
727 .block_erase = spi_block_erase_c7,
728 }
729 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000730 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000731 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000732 },
733
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000734 {
735 .vendor = "Atmel",
736 .name = "AT26DF161A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000737 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000738 .manufacture_id = ATMEL_ID,
739 .model_id = AT_26DF161A,
740 .total_size = 2048,
741 .page_size = 256,
742 .tested = TEST_UNTESTED,
743 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000744 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000745 .erase = NULL,
746 .block_erasers =
747 {
748 {
749 .eraseblocks = { {4 * 1024, 512} },
750 .block_erase = spi_block_erase_20,
751 }, {
752 .eraseblocks = { {32 * 1024, 64} },
753 .block_erase = spi_block_erase_52,
754 }, {
755 .eraseblocks = { {64 * 1024, 32} },
756 .block_erase = spi_block_erase_d8,
757 }, {
758 .eraseblocks = { {2 * 1024 * 1024, 1} },
759 .block_erase = spi_block_erase_60,
760 }, {
761 .eraseblocks = { {2 * 1024 * 1024, 1} },
762 .block_erase = spi_block_erase_c7,
763 }
764 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000765 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000766 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000767 },
768
769 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000770 /*{
771 .vendor = "Atmel",
772 .name = "AT26DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000773 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000774 .manufacture_id = ATMEL_ID,
775 .model_id = AT_26DF321,
776 .total_size = 4096,
777 .page_size = 256,
778 .tested = TEST_UNTESTED,
779 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000780 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf8bc28f2009-01-08 16:53:13 +0000781 .erase = spi_chip_erase_60_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000782 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000783 .read = spi_chip_read,
784 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000786 {
787 .vendor = "Atmel",
788 .name = "AT26F004",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000789 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000790 .manufacture_id = ATMEL_ID,
791 .model_id = AT_26F004,
792 .total_size = 512,
793 .page_size = 256,
794 .tested = TEST_UNTESTED,
795 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000796 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000797 .erase = NULL,
798 .block_erasers =
799 {
800 {
801 .eraseblocks = { {4 * 1024, 128} },
802 .block_erase = spi_block_erase_20,
803 }, {
804 .eraseblocks = { {32 * 1024, 16} },
805 .block_erase = spi_block_erase_52,
806 }, {
807 .eraseblocks = { {64 * 1024, 8} },
808 .block_erase = spi_block_erase_d8,
809 }, {
810 .eraseblocks = { {512 * 1024, 1} },
811 .block_erase = spi_block_erase_60,
812 }, {
813 .eraseblocks = { {512 * 1024, 1} },
814 .block_erase = spi_block_erase_c7,
815 }
816 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000817 .write = NULL /* Incompatible Page write */,
818 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000819 },
820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000821 {
822 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +0000823 .name = "AT29C512",
Urja Rannikko038a3122009-06-28 19:19:25 +0000824 .bustype = CHIP_BUSTYPE_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +0000825 .manufacture_id = ATMEL_ID,
826 .model_id = AT_29C512,
827 .total_size = 64,
828 .page_size = 128,
Sean Nelson89187292009-12-23 12:02:55 +0000829 .tested = TEST_OK_PRW,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000830 .probe = probe_jedec,
831 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +0000832 .erase = NULL,
833 .block_erasers =
834 {
835 {
836 .eraseblocks = { {64 * 1024, 1} },
837 .block_erase = erase_chip_block_jedec,
838 }
839 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +0000840 .write = write_jedec,
841 .read = read_memmapped,
842
843 },
844
845 {
846 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000847 .name = "AT29C010A",
Urja Rannikko161b8852009-06-05 08:47:37 +0000848 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000849 .manufacture_id = ATMEL_ID,
850 .model_id = AT_29C010A,
851 .total_size = 128,
852 .page_size = 128,
Sean Nelson89187292009-12-23 12:02:55 +0000853 .tested = TEST_OK_PR,
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000854 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000855 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +0000856 .erase = NULL,
857 .block_erasers =
858 {
859 {
860 .eraseblocks = { {128 * 1024, 1} },
861 .block_erase = erase_chip_block_jedec,
862 }
863 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000864 .write = write_jedec, /* FIXME */
865 .read = read_memmapped,
866 },
867
868 {
869 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000870 .name = "AT29C020",
Urja Rannikko161b8852009-06-05 08:47:37 +0000871 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000872 .manufacture_id = ATMEL_ID,
873 .model_id = AT_29C020,
874 .total_size = 256,
875 .page_size = 256,
Sean Nelson89187292009-12-23 12:02:55 +0000876 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000877 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +0000878 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +0000879 .erase = NULL,
880 .block_erasers =
881 {
882 {
883 .eraseblocks = { {256 * 1024, 1} },
884 .block_erase = erase_chip_block_jedec,
885 }
886 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000887 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000888 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000889 },
890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000891 {
892 .vendor = "Atmel",
893 .name = "AT29C040A",
Urja Rannikko161b8852009-06-05 08:47:37 +0000894 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000895 .manufacture_id = ATMEL_ID,
896 .model_id = AT_29C040A,
897 .total_size = 512,
898 .page_size = 256,
899 .tested = TEST_UNTESTED,
900 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +0000901 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +0000902 .erase = NULL,
903 .block_erasers =
904 {
905 {
906 .eraseblocks = { {512 * 1024, 1} },
907 .block_erase = erase_chip_block_jedec,
908 }
909 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000910 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000911 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000912 },
913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000914 {
915 .vendor = "Atmel",
916 .name = "AT45CS1282",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000917 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000918 .manufacture_id = ATMEL_ID,
919 .model_id = AT_45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000920 .total_size = 16896 /* No power of two sizes */,
921 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000922 .tested = TEST_BAD_READ,
923 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000924 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000925 .erase = NULL,
926 .write = NULL /* Incompatible Page write */,
927 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000928 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000930 {
931 .vendor = "Atmel",
932 .name = "AT45DB011D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000933 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000934 .manufacture_id = ATMEL_ID,
935 .model_id = AT_45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000936 .total_size = 128 /* Size can only be determined from status register */,
937 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000938 .tested = TEST_BAD_READ,
939 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000940 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000941 .erase = NULL,
942 .write = NULL,
943 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000944 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000946 {
947 .vendor = "Atmel",
948 .name = "AT45DB021D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000949 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000950 .manufacture_id = ATMEL_ID,
951 .model_id = AT_45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000952 .total_size = 256 /* Size can only be determined from status register */,
953 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000954 .tested = TEST_BAD_READ,
955 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000956 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000957 .erase = NULL,
958 .write = NULL,
959 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000960 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000961
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000962 {
963 .vendor = "Atmel",
964 .name = "AT45DB041D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000965 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000966 .manufacture_id = ATMEL_ID,
967 .model_id = AT_45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000968 .total_size = 512 /* Size can only be determined from status register */,
969 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000970 .tested = TEST_BAD_READ,
971 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000972 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000973 .erase = NULL,
974 .write = NULL,
975 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000976 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000978 {
979 .vendor = "Atmel",
980 .name = "AT45DB081D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000981 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000982 .manufacture_id = ATMEL_ID,
983 .model_id = AT_45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000984 .total_size = 1024 /* Size can only be determined from status register */,
985 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000986 .tested = TEST_BAD_READ,
987 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000988 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000989 .erase = NULL,
990 .write = NULL,
991 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000992 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000994 {
995 .vendor = "Atmel",
996 .name = "AT45DB161D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000997 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000998 .manufacture_id = ATMEL_ID,
999 .model_id = AT_45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001000 .total_size = 2048 /* Size can only be determined from status register */,
1001 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001002 .tested = TEST_BAD_READ,
1003 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001004 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001005 .erase = NULL,
1006 .write = NULL,
1007 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001008 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001010 {
1011 .vendor = "Atmel",
1012 .name = "AT45DB321C",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001013 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001014 .manufacture_id = ATMEL_ID,
1015 .model_id = AT_45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001016 .total_size = 4224 /* No power of two sizes */,
1017 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001018 .tested = TEST_BAD_READ,
1019 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001020 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001021 .erase = NULL,
1022 .write = NULL,
1023 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001024 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001026 {
1027 .vendor = "Atmel",
1028 .name = "AT45DB321D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001029 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001030 .manufacture_id = ATMEL_ID,
1031 .model_id = AT_45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001032 .total_size = 4096 /* Size can only be determined from status register */,
1033 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001034 .tested = TEST_BAD_READ,
1035 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001036 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001037 .erase = NULL,
1038 .write = NULL,
1039 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001040 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001042 {
1043 .vendor = "Atmel",
1044 .name = "AT45DB642D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001045 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001046 .manufacture_id = ATMEL_ID,
1047 .model_id = AT_45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001048 .total_size = 8192 /* Size can only be determined from status register */,
1049 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001050 .tested = TEST_BAD_READ,
1051 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001052 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001053 .erase = NULL,
1054 .write = NULL,
1055 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001056 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001058 {
1059 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001060 .name = "AT49BV512",
Urja Rannikko161b8852009-06-05 08:47:37 +00001061 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001062 .manufacture_id = ATMEL_ID,
1063 .model_id = AT_49BV512,
1064 .total_size = 64,
1065 .page_size = 64,
Sean Nelson89187292009-12-23 12:02:55 +00001066 .tested = TEST_OK_PRW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001067 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001068 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001069 .erase = NULL,
1070 .block_erasers =
1071 {
1072 {
1073 .eraseblocks = { {64 * 1024, 1} },
1074 .block_erase = erase_chip_block_jedec,
1075 }
1076 },
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001077 .write = write_49f002,
1078 .read = read_memmapped,
1079 },
1080
1081 {
1082 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001083 .name = "AT49F002(N)",
Urja Rannikko161b8852009-06-05 08:47:37 +00001084 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001085 .manufacture_id = ATMEL_ID,
1086 .model_id = AT_49F002N,
1087 .total_size = 256,
1088 .page_size = 256,
1089 .tested = TEST_UNTESTED,
1090 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001091 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001092 .erase = NULL,
1093 .block_erasers =
1094 {
1095 {
1096 .eraseblocks = {
1097 {16 * 1024, 1},
1098 {8 * 1024, 2},
1099 {96 * 1024, 1},
1100 {128 * 1024, 1},
1101 },
1102 .block_erase = erase_sector_jedec,
1103 }, {
1104 .eraseblocks = { {256 * 1024, 1} },
1105 .block_erase = erase_chip_block_jedec,
1106 }
1107 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001108 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001109 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001110 },
1111
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001112 {
1113 .vendor = "Atmel",
1114 .name = "AT49F002(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00001115 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001116 .manufacture_id = ATMEL_ID,
1117 .model_id = AT_49F002NT,
1118 .total_size = 256,
1119 .page_size = 256,
Sean Nelson89187292009-12-23 12:02:55 +00001120 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001121 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001122 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001123 .erase = NULL,
1124 .block_erasers =
1125 {
1126 {
1127 .eraseblocks = {
1128 {128 * 1024, 1},
1129 {96 * 1024, 1},
1130 {8 * 1024, 2},
1131 {16 * 1024, 1},
1132 },
1133 .block_erase = erase_sector_jedec,
1134 }, {
1135 .eraseblocks = { {256 * 1024, 1} },
1136 .block_erase = erase_chip_block_jedec,
1137 }
1138 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001139 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001140 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001141 },
1142
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40P",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001146 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40P,
1149 .total_size = 512,
1150 .page_size = 256,
1151 .tested = TEST_OK_PREW,
1152 .probe = probe_spi_rdid4,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001153 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001154 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001155 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001156 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001157 },
1158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001159 {
1160 .vendor = "AMIC",
1161 .name = "A29002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00001162 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001163 .manufacture_id = AMIC_ID_NOPREFIX,
1164 .model_id = AMIC_A29002B,
1165 .total_size = 256,
1166 .page_size = 64 * 1024,
1167 .tested = TEST_UNTESTED,
1168 .probe = probe_29f002,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001169 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001170 .erase = NULL,
1171 .block_erasers =
1172 {
1173 {
1174 .eraseblocks = {
1175 {16 * 1024, 1},
1176 {8 * 1024, 2},
1177 {32 * 1024, 1},
1178 {64 * 1024, 3},
1179 },
1180 .block_erase = erase_sector_29f002,
1181 }, {
1182 .eraseblocks = { {256 * 1024, 1} },
1183 .block_erase = erase_chip_29f002,
1184 },
1185 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00001186 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001187 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001188 },
1189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001190 {
1191 .vendor = "AMIC",
1192 .name = "A29002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00001193 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001194 .manufacture_id = AMIC_ID_NOPREFIX,
1195 .model_id = AMIC_A29002T,
1196 .total_size = 256,
1197 .page_size = 64 * 1024,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001198 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001199 .probe = probe_29f002,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001200 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001201 .erase = NULL,
1202 .block_erasers =
1203 {
1204 {
1205 .eraseblocks = {
1206 {64 * 1024, 3},
1207 {32 * 1024, 1},
1208 {8 * 1024, 2},
1209 {16 * 1024, 1},
1210 },
1211 .block_erase = erase_sector_29f002,
1212 }, {
1213 .eraseblocks = { {256 * 1024, 1} },
1214 .block_erase = erase_chip_29f002,
1215 },
1216 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00001217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001218 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001219 },
1220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001221 {
1222 .vendor = "AMIC",
1223 .name = "A29040B",
Urja Rannikko161b8852009-06-05 08:47:37 +00001224 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001225 .manufacture_id = AMIC_ID_NOPREFIX,
1226 .model_id = AMIC_A29040B,
1227 .total_size = 512,
1228 .page_size = 64 * 1024,
1229 .tested = TEST_OK_PR,
1230 .probe = probe_29f040b,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001231 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +00001232 .erase = NULL,
1233 .block_erasers =
1234 {
1235 {
1236 .eraseblocks = { {64 * 1024, 8} },
1237 .block_erase = erase_sector_29f040b,
1238 }, {
1239 .eraseblocks = { {512 * 1024, 1} },
1240 .block_erase = erase_chip_29f040b,
1241 },
1242 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001243 .write = write_29f040b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001244 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001245 },
1246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001247 {
1248 .vendor = "AMIC",
1249 .name = "A49LF040A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001250 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001251 .manufacture_id = AMIC_ID_NOPREFIX,
1252 .model_id = AMIC_A49LF040A,
1253 .total_size = 512,
1254 .page_size = 64 * 1024,
1255 .tested = TEST_OK_PREW,
1256 .probe = probe_49fl00x,
Udu Ogahc04ee222009-09-05 01:31:32 +00001257 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001258 .erase = erase_49fl00x,
1259 .write = write_49fl00x,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001260 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001261 },
1262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001263 {
1264 .vendor = "EMST",
1265 .name = "F49B002UA",
Urja Rannikko161b8852009-06-05 08:47:37 +00001266 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001267 .manufacture_id = EMST_ID,
1268 .model_id = EMST_F49B002UA,
1269 .total_size = 256,
1270 .page_size = 4096,
1271 .tested = TEST_UNTESTED,
1272 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001273 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001274 .erase = erase_chip_jedec,
1275 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001276 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001277 },
1278
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001279 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001280 .vendor = "Eon",
1281 .name = "EN25B05",
1282 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001283 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001284 .model_id = EN_25B05,
1285 .total_size = 64,
1286 .page_size = 256,
1287 .tested = TEST_UNTESTED,
1288 .probe = probe_spi_rdid,
1289 .probe_timing = TIMING_ZERO,
1290 .erase = spi_chip_erase_c7,
1291 .write = spi_chip_write_256,
1292 .read = spi_chip_read,
1293 },
1294
1295 {
1296 .vendor = "Eon",
1297 .name = "EN25B10",
1298 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001299 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001300 .model_id = EN_25B10,
1301 .total_size = 128,
1302 .page_size = 256,
1303 .tested = TEST_UNTESTED,
1304 .probe = probe_spi_rdid,
1305 .probe_timing = TIMING_ZERO,
1306 .erase = spi_chip_erase_c7,
1307 .write = spi_chip_write_256,
1308 .read = spi_chip_read,
1309 },
1310
1311 {
1312 .vendor = "Eon",
1313 .name = "EN25B20",
1314 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001315 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001316 .model_id = EN_25B20,
1317 .total_size = 256,
1318 .page_size = 256,
1319 .tested = TEST_UNTESTED,
1320 .probe = probe_spi_rdid,
1321 .probe_timing = TIMING_ZERO,
1322 .erase = spi_chip_erase_c7,
1323 .write = spi_chip_write_256,
1324 .read = spi_chip_read,
1325 },
1326
1327 {
1328 .vendor = "Eon",
1329 .name = "EN25B40",
1330 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001331 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001332 .model_id = EN_25B40,
1333 .total_size = 512,
1334 .page_size = 256,
1335 .tested = TEST_UNTESTED,
1336 .probe = probe_spi_rdid,
1337 .probe_timing = TIMING_ZERO,
1338 .erase = spi_chip_erase_c7,
1339 .write = spi_chip_write_256,
1340 .read = spi_chip_read,
1341 },
1342
1343 {
1344 .vendor = "Eon",
1345 .name = "EN25B80",
1346 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001347 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001348 .model_id = EN_25B80,
1349 .total_size = 1024,
1350 .page_size = 256,
1351 .tested = TEST_UNTESTED,
1352 .probe = probe_spi_rdid,
1353 .probe_timing = TIMING_ZERO,
1354 .erase = spi_chip_erase_c7,
1355 .write = spi_chip_write_256,
1356 .read = spi_chip_read,
1357 },
1358
1359 {
1360 .vendor = "Eon",
1361 .name = "EN25B16",
1362 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001363 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001364 .model_id = EN_25B16,
1365 .total_size = 2048,
1366 .page_size = 256,
1367 .tested = TEST_UNTESTED,
1368 .probe = probe_spi_rdid,
1369 .probe_timing = TIMING_ZERO,
1370 .erase = spi_chip_erase_c7,
1371 .write = spi_chip_write_256,
1372 .read = spi_chip_read,
1373 },
1374
1375 {
1376 .vendor = "Eon",
1377 .name = "EN25B32",
1378 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001379 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001380 .model_id = EN_25B32,
1381 .total_size = 4096,
1382 .page_size = 256,
1383 .tested = TEST_UNTESTED,
1384 .probe = probe_spi_rdid,
1385 .probe_timing = TIMING_ZERO,
1386 .erase = spi_chip_erase_c7,
1387 .write = spi_chip_write_256,
1388 .read = spi_chip_read,
1389 },
1390
1391 {
1392 .vendor = "Eon",
1393 .name = "EN25B64",
1394 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001395 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001396 .model_id = EN_25B64,
1397 .total_size = 8192,
1398 .page_size = 256,
1399 .tested = TEST_UNTESTED,
1400 .probe = probe_spi_rdid,
1401 .probe_timing = TIMING_ZERO,
1402 .erase = spi_chip_erase_c7,
1403 .write = spi_chip_write_256,
1404 .read = spi_chip_read,
1405 },
1406
1407 {
1408 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001409 .name = "EN25D16",
1410 .bustype = CHIP_BUSTYPE_SPI,
1411 .manufacture_id = EON_ID_NOPREFIX,
1412 .model_id = EN_25D16,
1413 .total_size = 2048,
1414 .page_size = 256,
1415 .tested = TEST_UNTESTED,
1416 .probe = probe_spi_rdid,
1417 .probe_timing = TIMING_ZERO,
1418 .erase = spi_chip_erase_60_c7,
1419 .write = spi_chip_write_256,
1420 .read = spi_chip_read,
1421 },
1422
1423 {
1424 .vendor = "Eon",
1425 .name = "EN25F05",
1426 .bustype = CHIP_BUSTYPE_SPI,
1427 .manufacture_id = EON_ID_NOPREFIX,
1428 .model_id = EN_25F05,
1429 .total_size = 64,
1430 .page_size = 256,
1431 .tested = TEST_UNTESTED,
1432 .probe = probe_spi_rdid,
1433 .probe_timing = TIMING_ZERO,
1434 .erase = spi_chip_erase_60_c7,
1435 .write = spi_chip_write_256,
1436 .read = spi_chip_read,
1437 },
1438
1439 {
1440 .vendor = "Eon",
1441 .name = "EN25F10",
1442 .bustype = CHIP_BUSTYPE_SPI,
1443 .manufacture_id = EON_ID_NOPREFIX,
1444 .model_id = EN_25F10,
1445 .total_size = 128,
1446 .page_size = 256,
1447 .tested = TEST_UNTESTED,
1448 .probe = probe_spi_rdid,
1449 .probe_timing = TIMING_ZERO,
1450 .erase = spi_chip_erase_60_c7,
1451 .write = spi_chip_write_256,
1452 .read = spi_chip_read,
1453 },
1454
1455 {
1456 .vendor = "Eon",
1457 .name = "EN25F20",
1458 .bustype = CHIP_BUSTYPE_SPI,
1459 .manufacture_id = EON_ID_NOPREFIX,
1460 .model_id = EN_25F20,
1461 .total_size = 256,
1462 .page_size = 256,
1463 .tested = TEST_UNTESTED,
1464 .probe = probe_spi_rdid,
1465 .probe_timing = TIMING_ZERO,
1466 .erase = spi_chip_erase_60_c7,
1467 .write = spi_chip_write_256,
1468 .read = spi_chip_read,
1469 },
1470
1471 {
1472 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001473 .name = "EN25F40",
1474 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001475 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001476 .model_id = EN_25F40,
1477 .total_size = 512,
1478 .page_size = 256,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00001479 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001480 .probe = probe_spi_rdid,
1481 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001482 .erase = NULL,
1483 .block_erasers =
1484 {
1485 {
1486 .eraseblocks = { {4 * 1024, 2048} },
1487 .block_erase = spi_block_erase_20,
1488 }, {
1489 .eraseblocks = { {4 * 1024, 2048} },
1490 .block_erase = spi_block_erase_d8,
1491 }, {
1492 .eraseblocks = { {8 * 1024 * 1024, 1} },
1493 .block_erase = spi_block_erase_60,
1494 }, {
1495 .eraseblocks = { {8 * 1024 * 1024, 1} },
1496 .block_erase = spi_block_erase_c7,
1497 },
1498 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001499 .write = spi_chip_write_256,
1500 .read = spi_chip_read,
1501 },
1502
1503 {
1504 .vendor = "Eon",
1505 .name = "EN25F80",
1506 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001507 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001508 .model_id = EN_25F80,
1509 .total_size = 1024,
1510 .page_size = 256,
1511 .tested = TEST_UNTESTED,
1512 .probe = probe_spi_rdid,
1513 .probe_timing = TIMING_ZERO,
1514 .erase = spi_chip_erase_60_c7,
1515 .write = spi_chip_write_256,
1516 .read = spi_chip_read,
1517 },
1518
1519 {
1520 .vendor = "Eon",
1521 .name = "EN25F16",
1522 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001523 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001524 .model_id = EN_25F16,
1525 .total_size = 2048,
1526 .page_size = 256,
1527 .tested = TEST_UNTESTED,
1528 .probe = probe_spi_rdid,
1529 .probe_timing = TIMING_ZERO,
1530 .erase = spi_chip_erase_60_c7,
1531 .write = spi_chip_write_256,
1532 .read = spi_chip_read,
1533 },
1534
1535 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001536 .vendor = "Eon",
1537 .name = "EN25F32",
1538 .bustype = CHIP_BUSTYPE_SPI,
1539 .manufacture_id = EON_ID_NOPREFIX,
1540 .model_id = EN_25F32,
1541 .total_size = 4096,
1542 .page_size = 256,
1543 .tested = TEST_UNTESTED,
1544 .probe = probe_spi_rdid,
1545 .probe_timing = TIMING_ZERO,
1546 .erase = spi_chip_erase_60_c7,
1547 .write = spi_chip_write_256,
1548 .read = spi_chip_read,
1549 },
1550
1551 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 .vendor = "EON",
1553 .name = "EN29F002(A)(N)B",
Urja Rannikko161b8852009-06-05 08:47:37 +00001554 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001555 .manufacture_id = EON_ID,
1556 .model_id = EN_29F002B,
1557 .total_size = 256,
1558 .page_size = 256,
1559 .tested = TEST_UNTESTED,
1560 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001562 .erase = NULL,
1563 .block_erasers =
1564 {
1565 {
1566 .eraseblocks = {
1567 {64 * 1024, 3},
1568 {32 * 1024, 1},
1569 {8 * 1024, 2},
1570 {16 * 1024, 1},
1571 },
1572 .block_erase = erase_sector_jedec,
1573 }, {
1574 .eraseblocks = { {256 * 1024, 1} },
1575 .block_erase = erase_chip_block_jedec,
1576 },
1577 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00001578 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001579 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001580 },
1581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001582 {
1583 .vendor = "EON",
1584 .name = "EN29F002(A)(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00001585 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001586 .manufacture_id = EON_ID,
1587 .model_id = EN_29F002T,
1588 .total_size = 256,
1589 .page_size = 256,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001590 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001592 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001593 .erase = NULL,
1594 .block_erasers =
1595 {
1596 {
1597 .eraseblocks = {
1598 {16 * 1024, 1},
1599 {8 * 1024, 2},
1600 {32 * 1024, 1},
1601 {64 * 1024, 3},
1602 },
1603 .block_erase = erase_sector_jedec,
1604 }, {
1605 .eraseblocks = { {256 * 1024, 1} },
1606 .block_erase = erase_chip_block_jedec,
1607 },
1608 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00001609 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001610 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001611 },
1612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001613 {
1614 .vendor = "Fujitsu",
1615 .name = "MBM29F004BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00001616 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001617 .manufacture_id = FUJITSU_ID,
1618 .model_id = MBM29F004BC,
1619 .total_size = 512,
1620 .page_size = 64 * 1024,
1621 .tested = TEST_UNTESTED,
1622 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001623 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001624 .erase = NULL,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001625 .block_erasers =
1626 {
1627 {
1628 .eraseblocks = {
1629 {16 * 1024, 1},
1630 {8 * 1024, 2},
1631 {32 * 1024, 1},
1632 {64 * 1024, 7},
1633 },
1634 .block_erase = erase_sector_29f040b,
1635 }, {
1636 .eraseblocks = { {512 * 1024, 1} },
1637 .block_erase = erase_chip_29f040b,
1638 },
1639 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001640 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001641 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001642 },
1643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 {
1645 .vendor = "Fujitsu",
1646 .name = "MBM29F004TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00001647 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001648 .manufacture_id = FUJITSU_ID,
1649 .model_id = MBM29F004TC,
1650 .total_size = 512,
1651 .page_size = 64 * 1024,
1652 .tested = TEST_UNTESTED,
1653 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001654 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001655 .erase = NULL,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001656 .block_erasers =
1657 {
1658 {
1659 .eraseblocks = {
1660 {64 * 1024, 7},
1661 {32 * 1024, 1},
1662 {8 * 1024, 2},
1663 {16 * 1024, 1},
1664 },
1665 .block_erase = erase_sector_29f040b,
1666 }, {
1667 .eraseblocks = { {512 * 1024, 1} },
1668 .block_erase = erase_chip_29f040b,
1669 },
1670 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001671 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001672 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001673 },
1674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001675 {
1676 .vendor = "Fujitsu",
1677 .name = "MBM29F400BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00001678 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001679 .manufacture_id = FUJITSU_ID,
1680 .model_id = MBM29F400BC,
1681 .total_size = 512,
1682 .page_size = 64 * 1024,
1683 .tested = TEST_UNTESTED,
1684 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001685 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001686 .erase = NULL,
1687 .block_erasers =
1688 {
1689 {
1690 .eraseblocks = {
1691 {16 * 1024, 1},
1692 {8 * 1024, 2},
1693 {32 * 1024, 1},
1694 {64 * 1024, 7},
1695 },
1696 .block_erase = block_erase_m29f400bt,
1697 }, {
1698 .eraseblocks = { {512 * 1024, 1} },
1699 .block_erase = block_erase_chip_m29f400bt,
1700 },
1701 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001702 .write = write_coreboot_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001703 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001704 },
1705
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001706 {
1707 .vendor = "Fujitsu",
1708 .name = "MBM29F400TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00001709 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 .manufacture_id = FUJITSU_ID,
1711 .model_id = MBM29F400TC,
1712 .total_size = 512,
1713 .page_size = 64 * 1024,
1714 .tested = TEST_UNTESTED,
1715 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001716 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001717 .erase = NULL,
1718 .block_erasers =
1719 {
1720 {
1721 .eraseblocks = {
1722 {64 * 1024, 7},
1723 {32 * 1024, 1},
1724 {8 * 1024, 2},
1725 {16 * 1024, 1},
1726 },
1727 .block_erase = block_erase_m29f400bt,
1728 }, {
1729 .eraseblocks = { {512 * 1024, 1} },
1730 .block_erase = block_erase_chip_m29f400bt,
1731 },
1732 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001733 .write = write_coreboot_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001734 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001735 },
1736
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001737 {
1738 .vendor = "Intel",
Urja Rannikkoebd7b832009-05-29 12:55:31 +00001739 .name = "28F001BX-B",
Urja Rannikko161b8852009-06-05 08:47:37 +00001740 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00001741 .manufacture_id = INTEL_ID,
1742 .model_id = P28F001BXB,
1743 .total_size = 128,
1744 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
1745 .tested = TEST_BAD_ERASE|TEST_BAD_WRITE,
1746 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001747 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Urja Rannikkoebd7b832009-05-29 12:55:31 +00001748 .erase = NULL,
1749 .write = NULL,
1750 .read = read_memmapped,
1751 },
1752
1753 {
1754 .vendor = "Intel",
1755 .name = "28F001BX-T",
Urja Rannikko161b8852009-06-05 08:47:37 +00001756 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00001757 .manufacture_id = INTEL_ID,
1758 .model_id = P28F001BXT,
1759 .total_size = 128,
1760 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
1761 .tested = TEST_OK_PR|TEST_BAD_ERASE|TEST_BAD_WRITE,
1762 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001763 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Urja Rannikkoebd7b832009-05-29 12:55:31 +00001764 .erase = NULL,
1765 .write = NULL,
1766 .read = read_memmapped,
1767 },
1768
1769 {
1770 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001771 .name = "82802AB",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00001772 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001773 .manufacture_id = INTEL_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00001774 .model_id = I_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001775 .total_size = 512,
1776 .page_size = 64 * 1024,
1777 .tested = TEST_OK_PREW,
1778 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001779 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001780 .erase = erase_82802ab,
1781 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001782 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001783 },
1784
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001785 {
1786 .vendor = "Intel",
1787 .name = "82802AC",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00001788 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .manufacture_id = INTEL_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00001790 .model_id = I_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001791 .total_size = 1024,
1792 .page_size = 64 * 1024,
1793 .tested = TEST_OK_PREW,
1794 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001795 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001796 .erase = erase_82802ab,
1797 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001798 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001799 },
1800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001801 {
1802 .vendor = "Macronix",
1803 .name = "MX25L512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001804 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001805 .manufacture_id = MX_ID,
1806 .model_id = MX_25L512,
1807 .total_size = 64,
1808 .page_size = 256,
1809 .tested = TEST_UNTESTED,
1810 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001811 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001812 .erase = NULL,
1813 .block_erasers =
1814 {
1815 {
1816 .eraseblocks = { {4 * 1024, 16} },
1817 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001818 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001819 .eraseblocks = { {64 * 1024, 1} },
1820 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001821 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001822 .eraseblocks = { {64 * 1024, 1} },
1823 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001824 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001825 .eraseblocks = { {64 * 1024, 1} },
1826 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001827 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001828 .eraseblocks = { {64 * 1024, 1} },
1829 .block_erase = spi_block_erase_c7,
1830 },
1831 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001832 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001833 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001834 },
1835
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001836 {
1837 .vendor = "Macronix",
1838 .name = "MX25L1005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001839 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001840 .manufacture_id = MX_ID,
1841 .model_id = MX_25L1005,
1842 .total_size = 128,
1843 .page_size = 256,
1844 .tested = TEST_UNTESTED,
1845 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001846 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001847 .erase = NULL,
1848 .block_erasers =
1849 {
1850 {
1851 .eraseblocks = { {4 * 1024, 32} },
1852 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001853 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001854 .eraseblocks = { {64 * 1024, 2} },
1855 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001856 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001857 .eraseblocks = { {128 * 1024, 1} },
1858 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001859 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00001860 .eraseblocks = { {128 * 1024, 1} },
1861 .block_erase = spi_block_erase_c7,
1862 },
1863 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001864 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001866 },
1867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001868 {
1869 .vendor = "Macronix",
1870 .name = "MX25L2005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001871 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001872 .manufacture_id = MX_ID,
1873 .model_id = MX_25L2005,
1874 .total_size = 256,
1875 .page_size = 256,
1876 .tested = TEST_UNTESTED,
1877 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001878 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001879 .erase = NULL,
1880 .block_erasers =
1881 {
1882 {
1883 .eraseblocks = { {4 * 1024, 64} },
1884 .block_erase = spi_block_erase_20,
1885 }, {
1886 .eraseblocks = { {64 * 1024, 4} },
1887 .block_erase = spi_block_erase_52,
1888 }, {
1889 .eraseblocks = { {64 * 1024, 4} },
1890 .block_erase = spi_block_erase_d8,
1891 }, {
1892 .eraseblocks = { {256 * 1024, 1} },
1893 .block_erase = spi_block_erase_60,
1894 }, {
1895 .eraseblocks = { {256 * 1024, 1} },
1896 .block_erase = spi_block_erase_c7,
1897 },
1898 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001899 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001900 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001901 },
1902
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001903 {
1904 .vendor = "Macronix",
1905 .name = "MX25L4005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001906 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001907 .manufacture_id = MX_ID,
1908 .model_id = MX_25L4005,
1909 .total_size = 512,
1910 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001911 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001912 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001913 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001914 .erase = NULL,
1915 .block_erasers =
1916 {
1917 {
1918 .eraseblocks = { {4 * 1024, 128} },
1919 .block_erase = spi_block_erase_20,
1920 }, {
1921 .eraseblocks = { {64 * 1024, 8} },
1922 .block_erase = spi_block_erase_52,
1923 }, {
1924 .eraseblocks = { {64 * 1024, 8} },
1925 .block_erase = spi_block_erase_d8,
1926 }, {
1927 .eraseblocks = { {512 * 1024, 1} },
1928 .block_erase = spi_block_erase_60,
1929 }, {
1930 .eraseblocks = { {512 * 1024, 1} },
1931 .block_erase = spi_block_erase_c7,
1932 },
1933 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001934 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001935 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001936 },
1937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001938 {
1939 .vendor = "Macronix",
1940 .name = "MX25L8005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001941 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .manufacture_id = MX_ID,
1943 .model_id = MX_25L8005,
1944 .total_size = 1024,
1945 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001946 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001948 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001949 .erase = NULL,
1950 .block_erasers =
1951 {
1952 {
1953 .eraseblocks = { {4 * 1024, 256} },
1954 .block_erase = spi_block_erase_20,
1955 }, {
1956 .eraseblocks = { {64 * 1024, 16} },
1957 .block_erase = spi_block_erase_52,
1958 }, {
1959 .eraseblocks = { {64 * 1024, 16} },
1960 .block_erase = spi_block_erase_d8,
1961 }, {
1962 .eraseblocks = { {1024 * 1024, 1} },
1963 .block_erase = spi_block_erase_60,
1964 }, {
1965 .eraseblocks = { {1024 * 1024, 1} },
1966 .block_erase = spi_block_erase_c7,
1967 },
1968 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001969 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001970 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001971 },
1972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001973 {
1974 .vendor = "Macronix",
1975 .name = "MX25L1605",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001976 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .manufacture_id = MX_ID,
1978 .model_id = MX_25L1605,
1979 .total_size = 2048,
1980 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001981 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001982 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001983 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00001984 .erase = NULL,
1985 .block_erasers =
1986 {
1987 {
1988 .eraseblocks = { {4 * 1024, 512} },
1989 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
1990 }, {
1991 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
1992 .block_erase = spi_block_erase_52,
1993 }, {
1994 .eraseblocks = { {64 * 1024, 32} },
1995 .block_erase = spi_block_erase_d8,
1996 }, {
1997 .eraseblocks = { {2 * 1024 * 1024, 1} },
1998 .block_erase = spi_block_erase_60,
1999 }, {
2000 .eraseblocks = { {2 * 1024 * 1024, 1} },
2001 .block_erase = spi_block_erase_c7,
2002 },
2003 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002004 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002006 },
2007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002008 {
2009 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002010 .name = "MX25L1635D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002011 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002012 .manufacture_id = MX_ID,
2013 .model_id = MX_25L1635D,
2014 .total_size = 2048,
2015 .page_size = 256,
2016 .tested = TEST_UNTESTED,
2017 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002018 .probe_timing = TIMING_ZERO,
Stephan Guillouxe39631c2009-04-19 23:24:26 +00002019 .erase = spi_chip_erase_60_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002020 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002021 .read = spi_chip_read,
2022 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00002023
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002024 {
2025 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002026 .name = "MX25L3205",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002027 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .manufacture_id = MX_ID,
2029 .model_id = MX_25L3205,
2030 .total_size = 4096,
2031 .page_size = 256,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002032 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002034 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002035 .erase = NULL,
2036 .block_erasers =
2037 {
2038 {
2039 .eraseblocks = { {4 * 1024, 1024} },
2040 .block_erase = spi_block_erase_20,
2041 }, {
2042 .eraseblocks = { {4 * 1024, 1024} },
2043 .block_erase = spi_block_erase_d8,
2044 }, {
2045 .eraseblocks = { {4 * 1024 * 1024, 1} },
2046 .block_erase = spi_block_erase_60,
2047 }, {
2048 .eraseblocks = { {4 * 1024 * 1024, 1} },
2049 .block_erase = spi_block_erase_c7,
2050 },
2051 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002052 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002053 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002054 },
2055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002056 {
2057 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00002058 .name = "MX25L3235D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002059 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00002060 .manufacture_id = MX_ID,
2061 .model_id = MX_25L3235D,
2062 .total_size = 4096,
2063 .page_size = 256,
2064 .tested = TEST_UNTESTED,
2065 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002066 .probe_timing = TIMING_ZERO,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00002067 .erase = spi_chip_erase_60_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002068 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00002069 .read = spi_chip_read,
2070 },
2071
2072 {
2073 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002074 .name = "MX25L6405",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002075 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002076 .manufacture_id = MX_ID,
2077 .model_id = MX_25L6405,
2078 .total_size = 8192,
2079 .page_size = 256,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00002080 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002081 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002082 .probe_timing = TIMING_ZERO,
Stephan Guillouxfd315502009-04-20 22:54:13 +00002083 .erase = spi_chip_erase_60_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002084 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002086 },
2087
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002088 {
2089 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00002090 .name = "MX25L12805",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002091 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00002092 .manufacture_id = MX_ID,
2093 .model_id = MX_25L12805,
2094 .total_size = 16384,
2095 .page_size = 256,
2096 .tested = TEST_UNTESTED,
2097 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002098 .probe_timing = TIMING_ZERO,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00002099 .erase = spi_chip_erase_60_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002100 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00002101 .read = spi_chip_read,
2102 },
2103
2104 {
2105 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00002106 .name = "MX29F001B",
2107 .bustype = CHIP_BUSTYPE_PARALLEL,
2108 .manufacture_id = MX_ID,
2109 .model_id = MX_29F001B,
2110 .total_size = 128,
2111 .page_size = 32 * 1024,
Michael Karcher1c296ca2009-11-27 17:49:42 +00002112 .tested = TEST_OK_PRE,
Mark Panajotovic502a9132009-08-24 01:42:24 +00002113 .probe = probe_29f002,
2114 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
2115 .erase = erase_29f002,
Michael Karcher1c296ca2009-11-27 17:49:42 +00002116 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00002117 .read = read_memmapped,
2118 },
2119
2120 {
2121 .vendor = "Macronix",
2122 .name = "MX29F001T",
2123 .bustype = CHIP_BUSTYPE_PARALLEL,
2124 .manufacture_id = MX_ID,
2125 .model_id = MX_29F001T,
2126 .total_size = 128,
2127 .page_size = 32 * 1024,
Michael Karcher1c296ca2009-11-27 17:49:42 +00002128 .tested = TEST_OK_PRE,
Mark Panajotovic502a9132009-08-24 01:42:24 +00002129 .probe = probe_29f002,
2130 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
2131 .erase = erase_29f002,
Michael Karcher1c296ca2009-11-27 17:49:42 +00002132 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00002133 .read = read_memmapped,
2134 },
2135
2136 {
2137 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 .name = "MX29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00002139 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 .manufacture_id = MX_ID,
2141 .model_id = MX_29F002B,
2142 .total_size = 256,
2143 .page_size = 64 * 1024,
2144 .tested = TEST_UNTESTED,
2145 .probe = probe_29f002,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002146 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002147 .erase = NULL,
2148 .block_erasers =
2149 {
2150 {
2151 .eraseblocks = {
2152 {16 * 1024, 1},
2153 {8 * 1024, 2},
2154 {32 * 1024, 1},
2155 {64 * 1024, 3},
2156 },
2157 .block_erase = erase_sector_29f002, /* This erase function has 64k blocksize for eLiteFlash */
2158 }, {
2159 .eraseblocks = { {256 * 1024, 1} },
2160 .block_erase = erase_chip_29f002,
2161 },
2162 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002164 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002165 },
2166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 {
2168 .vendor = "Macronix",
2169 .name = "MX29F002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00002170 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .manufacture_id = MX_ID,
2172 .model_id = MX_29F002T,
2173 .total_size = 256,
2174 .page_size = 64 * 1024,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002175 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .probe = probe_29f002,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002177 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002178 .erase = NULL,
2179 .block_erasers =
2180 {
2181 {
2182 .eraseblocks = {
2183 {64 * 1024, 3},
2184 {32 * 1024, 1},
2185 {8 * 1024, 2},
2186 {16 * 1024, 1},
2187 },
2188 .block_erase = erase_sector_29f002, /* This erase function has 64k blocksize for eLiteFlash */
2189 }, {
2190 .eraseblocks = { {256 * 1024, 1} },
2191 .block_erase = erase_chip_29f002,
2192 },
2193 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002194 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002195 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002196 },
2197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 {
2199 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00002200 .name = "MX29LV040",
Urja Rannikko038a3122009-06-28 19:19:25 +00002201 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002202 .manufacture_id = MX_ID,
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00002203 .model_id = MX_29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002204 .total_size = 512,
2205 .page_size = 64 * 1024,
2206 .tested = TEST_OK_PR,
2207 .probe = probe_29f002,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002208 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .erase = erase_29f002,
Michael Karcher1c296ca2009-11-27 17:49:42 +00002210 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002211 .read = read_memmapped,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00002212 },
2213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 {
2215 .vendor = "Numonyx",
2216 .name = "M25PE10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002217 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002219 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .total_size = 128,
2221 .page_size = 256,
2222 .tested = TEST_UNTESTED,
2223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002224 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002225 .erase = spi_chip_erase_d8,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002226 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002227 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002228 },
2229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 {
2231 .vendor = "Numonyx",
2232 .name = "M25PE20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002233 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002234 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002235 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002236 .total_size = 256,
2237 .page_size = 256,
2238 .tested = TEST_UNTESTED,
2239 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002240 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002241 .erase = spi_chip_erase_d8,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002242 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002243 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002244 },
2245
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002246 {
2247 .vendor = "Numonyx",
2248 .name = "M25PE40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002249 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002250 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002251 .model_id = ST_M25PE40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .total_size = 256,
2253 .page_size = 256,
2254 .tested = TEST_UNTESTED,
2255 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002256 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002257 .erase = spi_chip_erase_d8,
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,
FENG yu ningff692fb2008-12-08 18:15:10 +00002260 },
2261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 {
2263 .vendor = "Numonyx",
2264 .name = "M25PE80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002265 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002267 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .total_size = 1024,
2269 .page_size = 256,
2270 .tested = TEST_OK_PREW,
2271 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002272 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .erase = spi_chip_erase_d8,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002274 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002276 },
2277
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002278 {
2279 .vendor = "Numonyx",
2280 .name = "M25PE16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002281 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002282 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002283 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002284 .total_size = 2048,
2285 .page_size = 256,
2286 .tested = TEST_UNTESTED,
2287 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002288 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002289 .erase = spi_chip_erase_d8,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002290 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002291 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002292 },
2293
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 {
2295 .vendor = "PMC",
2296 .name = "Pm25LV010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002297 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002298 .manufacture_id = PMC_ID,
2299 .model_id = PMC_25LV010,
2300 .total_size = 128,
2301 .page_size = 256,
2302 .tested = TEST_UNTESTED,
2303 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002304 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002305 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002306 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002307 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002308 },
2309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002310 {
2311 .vendor = "PMC",
2312 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002313 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002314 .manufacture_id = PMC_ID,
2315 .model_id = PMC_25LV016B,
2316 .total_size = 2048,
2317 .page_size = 256,
2318 .tested = TEST_UNTESTED,
2319 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002320 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002322 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002323 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002324 },
2325
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002326 {
2327 .vendor = "PMC",
2328 .name = "Pm25LV020",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002329 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002330 .manufacture_id = PMC_ID,
2331 .model_id = PMC_25LV020,
2332 .total_size = 256,
2333 .page_size = 256,
2334 .tested = TEST_UNTESTED,
2335 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002336 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002337 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002338 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002339 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002340 },
2341
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002342 {
2343 .vendor = "PMC",
2344 .name = "Pm25LV040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002345 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002346 .manufacture_id = PMC_ID,
2347 .model_id = PMC_25LV040,
2348 .total_size = 512,
2349 .page_size = 256,
2350 .tested = TEST_UNTESTED,
2351 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002352 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002354 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002355 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002356 },
2357
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002358 {
2359 .vendor = "PMC",
2360 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002361 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002362 .manufacture_id = PMC_ID,
2363 .model_id = PMC_25LV080B,
2364 .total_size = 1024,
2365 .page_size = 256,
2366 .tested = TEST_UNTESTED,
2367 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002368 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002369 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002370 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002372 },
2373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002374 {
2375 .vendor = "PMC",
2376 .name = "Pm25LV512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002377 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002378 .manufacture_id = PMC_ID,
2379 .model_id = PMC_25LV512,
2380 .total_size = 64,
2381 .page_size = 256,
2382 .tested = TEST_UNTESTED,
2383 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002384 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002385 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002386 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002387 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002388 },
2389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 {
2391 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00002392 .name = "Pm29F002T",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00002393 .bustype = CHIP_BUSTYPE_PARALLEL,
2394 .manufacture_id = PMC_ID_NOPREFIX,
2395 .model_id = PMC_29F002T,
2396 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00002397 .page_size = 8 * 1024,
2398 .tested = TEST_OK_PRW,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00002399 .probe = probe_29f040b,
2400 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00002401 .erase = NULL,
2402 .block_erasers =
2403 {
2404 {
2405 .eraseblocks = {
2406 {128 * 1024, 1},
2407 {96 * 1024, 1},
2408 {8 * 1024, 2},
2409 {16 * 1024, 1},
2410 },
2411 .block_erase = erase_sector_29f040b,
2412 }, {
2413 .eraseblocks = { {256 * 1024, 1} },
2414 .block_erase = erase_chip_29f040b,
2415 },
2416 },
Uwe Hermannf983d9f2009-06-14 21:53:26 +00002417 .write = write_pm29f002,
2418 .read = read_memmapped,
2419 },
2420
2421 {
2422 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00002423 .name = "Pm29F002B",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00002424 .bustype = CHIP_BUSTYPE_PARALLEL,
2425 .manufacture_id = PMC_ID_NOPREFIX,
2426 .model_id = PMC_29F002B,
2427 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00002428 .page_size = 8 * 1024,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00002429 .tested = TEST_UNTESTED,
2430 .probe = probe_29f040b,
2431 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00002432 .erase = NULL,
2433 .block_erasers =
2434 {
2435 {
2436 .eraseblocks = {
2437 {16 * 1024, 1},
2438 {8 * 1024, 2},
2439 {96 * 1024, 1},
2440 {128 * 1024, 1},
2441 },
2442 .block_erase = erase_sector_29f040b,
2443 }, {
2444 .eraseblocks = { {256 * 1024, 1} },
2445 .block_erase = erase_chip_29f040b,
2446 },
2447 },
Uwe Hermannf983d9f2009-06-14 21:53:26 +00002448 .write = write_pm29f002,
2449 .read = read_memmapped,
2450 },
2451
2452 {
2453 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00002454 .name = "Pm39LV010",
Urja Rannikko038a3122009-06-28 19:19:25 +00002455 .bustype = CHIP_BUSTYPE_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00002456 .manufacture_id = PMC_ID_NOPREFIX,
2457 .model_id = PMC_39F010,
2458 .total_size = 128,
2459 .page_size = 4096,
2460 .tested = TEST_OK_PREW,
2461 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002462 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00002463 .erase = erase_chip_jedec,
2464 .write = write_49f002,
2465 .read = read_memmapped,
2466 },
2467
2468 {
2469 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002470 .name = "Pm49FL002",
Urja Rannikko038a3122009-06-28 19:19:25 +00002471 .bustype = CHIP_BUSTYPE_LPC|CHIP_BUSTYPE_FWH, /* A/A Mux*/
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002472 .manufacture_id = PMC_ID_NOPREFIX,
2473 .model_id = PMC_49FL002,
2474 .total_size = 256,
2475 .page_size = 16 * 1024,
2476 .tested = TEST_OK_PREW,
2477 .probe = probe_49fl00x,
Udu Ogahc04ee222009-09-05 01:31:32 +00002478 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 .erase = erase_49fl00x,
2480 .write = write_49fl00x,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002481 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002482 },
2483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002484 {
2485 .vendor = "PMC",
2486 .name = "Pm49FL004",
Urja Rannikko038a3122009-06-28 19:19:25 +00002487 .bustype = CHIP_BUSTYPE_LPC|CHIP_BUSTYPE_FWH, /* A/A Mux*/
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002488 .manufacture_id = PMC_ID_NOPREFIX,
2489 .model_id = PMC_49FL004,
2490 .total_size = 512,
2491 .page_size = 64 * 1024,
2492 .tested = TEST_OK_PREW,
2493 .probe = probe_49fl00x,
Udu Ogahc04ee222009-09-05 01:31:32 +00002494 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002495 .erase = erase_49fl00x,
2496 .write = write_49fl00x,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002497 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002498 },
2499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002500 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00002501 .vendor = "Sanyo",
2502 .name = "LF25FW203A",
2503 .bustype = CHIP_BUSTYPE_SPI,
2504 .manufacture_id = SANYO_ID,
2505 .model_id = SANYO_LE25FW203A,
2506 .total_size = 2048,
2507 .page_size = 256,
2508 .tested = TEST_UNTESTED,
2509 .probe = probe_spi_rdid,
2510 .probe_timing = TIMING_ZERO,
2511 .erase = spi_chip_erase_c7,
2512 .write = spi_chip_write_256,
2513 .read = spi_chip_read,
2514 },
2515
2516 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 .vendor = "Sharp",
2518 .name = "LHF00L04",
Urja Rannikko038a3122009-06-28 19:19:25 +00002519 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002520 .manufacture_id = SHARP_ID,
2521 .model_id = SHARP_LHF00L04,
2522 .total_size = 1024,
2523 .page_size = 64 * 1024,
2524 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00002525 .probe = probe_49lfxxxc,
2526 .probe_timing = TIMING_ZERO,
2527 .erase = NULL,
2528 .block_erasers =
2529 {
2530 {
2531 .eraseblocks = {
2532 {64 * 1024, 15},
2533 {8 * 1024, 8}
2534 },
2535 .block_erase = erase_lhf00l04_block,
2536 }, {
2537 .eraseblocks = {
2538 {1024 * 1024, 1}
2539 },
2540 .block_erase = NULL, /* 30 D0, only in PP mode */
2541 },
2542 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002543 .write = write_lhf00l04,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002544 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002545 },
2546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002547 {
2548 .vendor = "Spansion",
2549 .name = "S25FL016A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002550 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .manufacture_id = SPANSION_ID,
2552 .model_id = SPANSION_S25FL016A,
2553 .total_size = 2048,
2554 .page_size = 256,
2555 .tested = TEST_OK_PREW,
2556 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002557 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002558 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002559 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002560 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002561 },
2562
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002563 {
2564 .vendor = "SST",
2565 .name = "SST25VF016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002566 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002567 .manufacture_id = SST_ID,
2568 .model_id = SST_25VF016B,
2569 .total_size = 2048,
2570 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002571 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002573 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002574 .erase = NULL,
2575 .block_erasers =
2576 {
2577 {
2578 .eraseblocks = { {4 * 1024, 512} },
2579 .block_erase = spi_block_erase_20,
2580 }, {
2581 .eraseblocks = { {32 * 1024, 64} },
2582 .block_erase = spi_block_erase_52,
2583 }, {
2584 .eraseblocks = { {64 * 1024, 32} },
2585 .block_erase = spi_block_erase_d8,
2586 }, {
2587 .eraseblocks = { {2 * 1024 * 1024, 1} },
2588 .block_erase = spi_block_erase_60,
2589 }, {
2590 .eraseblocks = { {2 * 1024 * 1024, 1} },
2591 .block_erase = spi_block_erase_c7,
2592 },
2593 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00002594 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002596 },
2597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002598 {
2599 .vendor = "SST",
2600 .name = "SST25VF032B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002601 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 .manufacture_id = SST_ID,
2603 .model_id = SST_25VF032B,
2604 .total_size = 4096,
2605 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002606 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002607 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002608 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002609 .erase = NULL,
2610 .block_erasers =
2611 {
2612 {
2613 .eraseblocks = { {4 * 1024, 1024} },
2614 .block_erase = spi_block_erase_20,
2615 }, {
2616 .eraseblocks = { {32 * 1024, 128} },
2617 .block_erase = spi_block_erase_52,
2618 }, {
2619 .eraseblocks = { {64 * 1024, 64} },
2620 .block_erase = spi_block_erase_d8,
2621 }, {
2622 .eraseblocks = { {4 * 1024 * 1024, 1} },
2623 .block_erase = spi_block_erase_60,
2624 }, {
2625 .eraseblocks = { {4 * 1024 * 1024, 1} },
2626 .block_erase = spi_block_erase_c7,
2627 },
2628 },
2629 .write = spi_chip_write_1,
2630 .read = spi_chip_read,
2631 },
2632
2633 {
2634 .vendor = "SST",
2635 .name = "SST25VF040.REMS",
2636 .bustype = CHIP_BUSTYPE_SPI,
2637 .manufacture_id = SST_ID,
2638 .model_id = SST_25VF040_REMS,
2639 .total_size = 512,
2640 .page_size = 256,
2641 .tested = TEST_OK_PR,
2642 .probe = probe_spi_rems,
2643 .probe_timing = TIMING_ZERO,
2644 .erase = NULL,
2645 .block_erasers =
2646 {
2647 {
2648 .eraseblocks = { {4 * 1024, 128} },
2649 .block_erase = spi_block_erase_20,
2650 }, {
2651 .eraseblocks = { {32 * 1024, 16} },
2652 .block_erase = spi_block_erase_52,
2653 }, {
2654 .eraseblocks = { {512 * 1024, 1} },
2655 .block_erase = spi_block_erase_60,
2656 },
2657 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00002658 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002660 },
2661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002662 {
2663 .vendor = "SST",
2664 .name = "SST25VF040B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002665 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002666 .manufacture_id = SST_ID,
2667 .model_id = SST_25VF040B,
2668 .total_size = 512,
2669 .page_size = 256,
2670 .tested = TEST_UNTESTED,
2671 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002672 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002673 .erase = NULL,
2674 .block_erasers =
2675 {
2676 {
2677 .eraseblocks = { {4 * 1024, 128} },
2678 .block_erase = spi_block_erase_20,
2679 }, {
2680 .eraseblocks = { {32 * 1024, 16} },
2681 .block_erase = spi_block_erase_52,
2682 }, {
2683 .eraseblocks = { {64 * 1024, 8} },
2684 .block_erase = spi_block_erase_d8,
2685 }, {
2686 .eraseblocks = { {512 * 1024, 1} },
2687 .block_erase = spi_block_erase_60,
2688 }, {
2689 .eraseblocks = { {512 * 1024, 1} },
2690 .block_erase = spi_block_erase_c7,
2691 },
2692 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00002693 .write = spi_chip_write_1,
Zheng Bao0677dff2009-02-25 08:07:33 +00002694 .read = spi_chip_read,
2695 },
2696
2697 {
2698 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00002699 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002700 .bustype = CHIP_BUSTYPE_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002701 .manufacture_id = SST_ID,
2702 .model_id = SST_25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00002703 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002704 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00002705 .tested = TEST_OK_PR,
2706 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002707 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002708 .erase = NULL,
2709 .block_erasers =
2710 {
2711 {
2712 .eraseblocks = { {4 * 1024, 128} },
2713 .block_erase = spi_block_erase_20,
2714 }, {
2715 .eraseblocks = { {32 * 1024, 16} },
2716 .block_erase = spi_block_erase_52,
2717 }, {
2718 .eraseblocks = { {64 * 1024, 8} },
2719 .block_erase = spi_block_erase_d8,
2720 }, {
2721 .eraseblocks = { {512 * 1024, 1} },
2722 .block_erase = spi_block_erase_60,
2723 }, {
2724 .eraseblocks = { {512 * 1024, 1} },
2725 .block_erase = spi_block_erase_c7,
2726 },
2727 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00002728 .write = spi_chip_write_1,
Peter Stugefd9217d2009-01-26 03:37:40 +00002729 .read = spi_chip_read,
2730 },
2731
2732 {
2733 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002734 .name = "SST25VF080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002735 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002736 .manufacture_id = SST_ID,
2737 .model_id = SST_25VF080B,
2738 .total_size = 1024,
2739 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002740 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002741 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002742 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00002743 .erase = NULL,
2744 .block_erasers =
2745 {
2746 {
2747 .eraseblocks = { {4 * 1024, 256} },
2748 .block_erase = spi_block_erase_20,
2749 }, {
2750 .eraseblocks = { {32 * 1024, 32} },
2751 .block_erase = spi_block_erase_52,
2752 }, {
2753 .eraseblocks = { {64 * 1024, 16} },
2754 .block_erase = spi_block_erase_d8,
2755 }, {
2756 .eraseblocks = { {1024 * 1024, 1} },
2757 .block_erase = spi_block_erase_60,
2758 }, {
2759 .eraseblocks = { {1024 * 1024, 1} },
2760 .block_erase = spi_block_erase_c7,
2761 },
2762 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002763 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002765 },
2766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002767 {
2768 .vendor = "SST",
2769 .name = "SST28SF040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00002770 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002771 .manufacture_id = SST_ID,
2772 .model_id = SST_28SF040,
2773 .total_size = 512,
2774 .page_size = 256,
2775 .tested = TEST_UNTESTED,
2776 .probe = probe_28sf040,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002777 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002778 .erase = erase_28sf040,
2779 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002780 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002781 },
2782
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002783 {
2784 .vendor = "SST",
2785 .name = "SST29EE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00002786 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002787 .manufacture_id = SST_ID,
2788 .model_id = SST_29EE010,
2789 .total_size = 128,
2790 .page_size = 128,
2791 .tested = TEST_OK_PREW,
2792 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002793 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002794 .erase = erase_chip_jedec,
2795 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002796 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002797 },
2798
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002799 {
2800 .vendor = "SST",
2801 .name = "SST29LE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00002802 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002803 .manufacture_id = SST_ID,
2804 .model_id = SST_29LE010,
2805 .total_size = 128,
2806 .page_size = 128,
2807 .tested = TEST_UNTESTED,
2808 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002809 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002810 .erase = erase_chip_jedec,
2811 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002812 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002813 },
2814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002815 {
2816 .vendor = "SST",
2817 .name = "SST29EE020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00002818 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002819 .manufacture_id = SST_ID,
2820 .model_id = SST_29EE020A,
2821 .total_size = 256,
2822 .page_size = 128,
Peter Stugeb27d0a22009-02-22 21:07:28 +00002823 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002824 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002825 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002826 .erase = erase_chip_jedec,
2827 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002828 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002829 },
2830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002831 {
2832 .vendor = "SST",
2833 .name = "SST29LE020",
Urja Rannikko038a3122009-06-28 19:19:25 +00002834 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002835 .manufacture_id = SST_ID,
2836 .model_id = SST_29LE020,
2837 .total_size = 256,
2838 .page_size = 128,
2839 .tested = TEST_UNTESTED,
2840 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002841 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002842 .erase = erase_chip_jedec,
2843 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002844 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002845 },
2846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002847 {
2848 .vendor = "SST",
2849 .name = "SST39SF010A",
Urja Rannikko038a3122009-06-28 19:19:25 +00002850 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002851 .manufacture_id = SST_ID,
2852 .model_id = SST_39SF010,
2853 .total_size = 128,
2854 .page_size = 4096,
2855 .tested = TEST_OK_PREW,
2856 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002857 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002858 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002859 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002860 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002861 },
2862
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002863 {
2864 .vendor = "SST",
2865 .name = "SST39SF020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00002866 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002867 .manufacture_id = SST_ID,
2868 .model_id = SST_39SF020,
2869 .total_size = 256,
2870 .page_size = 4096,
2871 .tested = TEST_OK_PREW,
2872 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002873 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002874 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002875 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002876 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002877 },
2878
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002879 {
2880 .vendor = "SST",
2881 .name = "SST39SF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00002882 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002883 .manufacture_id = SST_ID,
2884 .model_id = SST_39SF040,
2885 .total_size = 512,
2886 .page_size = 4096,
2887 .tested = TEST_OK_PREW,
2888 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002889 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002890 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002891 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002892 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002893 },
2894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002895 {
2896 .vendor = "SST",
2897 .name = "SST39VF512",
Urja Rannikko038a3122009-06-28 19:19:25 +00002898 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002899 .manufacture_id = SST_ID,
2900 .model_id = SST_39VF512,
2901 .total_size = 64,
2902 .page_size = 4096,
Rudolf Mareke186da62009-05-17 18:24:24 +00002903 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002904 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002905 .probe_timing = 1, /* 150 ns*/
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002906 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002907 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002908 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002909 },
2910
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002911 {
2912 .vendor = "SST",
2913 .name = "SST39VF010",
Urja Rannikko038a3122009-06-28 19:19:25 +00002914 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002915 .manufacture_id = SST_ID,
2916 .model_id = SST_39VF010,
2917 .total_size = 128,
2918 .page_size = 4096,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00002919 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002920 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002921 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002922 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002923 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002924 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002925 },
2926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002927 {
2928 .vendor = "SST",
2929 .name = "SST39VF020",
Urja Rannikko038a3122009-06-28 19:19:25 +00002930 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002931 .manufacture_id = SST_ID,
2932 .model_id = SST_39VF020,
2933 .total_size = 256,
2934 .page_size = 4096,
2935 .tested = TEST_OK_PREW,
2936 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002937 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002938 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002939 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002940 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002941 },
2942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002943 {
2944 .vendor = "SST",
2945 .name = "SST39VF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00002946 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002947 .manufacture_id = SST_ID,
2948 .model_id = SST_39VF040,
2949 .total_size = 512,
2950 .page_size = 4096,
2951 .tested = TEST_OK_PROBE,
2952 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002953 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002954 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002955 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002956 .read = read_memmapped,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00002957 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002959 {
2960 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00002961 .name = "SST39VF080",
Urja Rannikko038a3122009-06-28 19:19:25 +00002962 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002963 .manufacture_id = SST_ID,
2964 .model_id = SST_39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00002965 .total_size = 1024,
2966 .page_size = 4096,
2967 .tested = TEST_UNTESTED,
2968 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002969 .probe_timing = 1, /* 150 ns */
Peter Stuge8440cc02009-01-25 23:55:12 +00002970 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00002971 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002972 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +00002973 },
2974
2975 {
2976 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002977 .name = "SST49LF002A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00002978 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002979 .manufacture_id = SST_ID,
2980 .model_id = SST_49LF002A,
2981 .total_size = 256,
2982 .page_size = 16 * 1024,
2983 .tested = TEST_OK_PREW,
2984 .probe = probe_sst_fwhub,
Udu Ogahc04ee222009-09-05 01:31:32 +00002985 .probe_timing = 1, /* 150 ns | routine is wrapper to probe_jedec (sst_fwhub.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002986 .erase = erase_sst_fwhub,
2987 .write = write_sst_fwhub,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002988 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002989 },
2990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002991 {
2992 .vendor = "SST",
2993 .name = "SST49LF003A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00002994 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002995 .manufacture_id = SST_ID,
2996 .model_id = SST_49LF003A,
2997 .total_size = 384,
2998 .page_size = 64 * 1024,
Peter Lemenkov45835c42009-09-25 01:09:18 +00002999 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003000 .probe = probe_sst_fwhub,
Udu Ogahc04ee222009-09-05 01:31:32 +00003001 .probe_timing = 1, /* 150 ns | routine is wrapper to probe_jedec (sst_fwhub.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003002 .erase = erase_sst_fwhub,
3003 .write = write_sst_fwhub,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003004 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003005 },
3006
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003007 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00003008 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
3009 * and is only honored for 64k block erase, but not 4k sector erase.
3010 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003011 .vendor = "SST",
3012 .name = "SST49LF004A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003013 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003014 .manufacture_id = SST_ID,
3015 .model_id = SST_49LF004A,
3016 .total_size = 512,
3017 .page_size = 64 * 1024,
3018 .tested = TEST_OK_PREW,
3019 .probe = probe_sst_fwhub,
Udu Ogahc04ee222009-09-05 01:31:32 +00003020 .probe_timing = 1, /* 150 ns | routine is wrapper to probe_jedec (sst_fwhub.c) */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00003021 .erase = NULL,
3022 .block_erasers =
3023 {
3024 {
3025 .eraseblocks = { {4 * 1024, 128} },
3026 .block_erase = erase_sector_jedec, /* missing unlock */
3027 }, {
3028 .eraseblocks = { {64 * 1024, 8} },
Carl-Daniel Hailfinger11c9e682009-11-06 18:09:42 +00003029 .block_erase = erase_sst_fwhub_block, /* same as erase_block_jedec, but with unlock */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00003030 }, {
3031 .eraseblocks = { {512 * 1024, 1} },
3032 .block_erase = NULL, /* AA 55 80 AA 55 10, only in PP mode */
3033 },
3034 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003035 .write = write_sst_fwhub,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003036 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003037 },
3038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003039 {
3040 .vendor = "SST",
3041 .name = "SST49LF004C",
Urja Rannikko038a3122009-06-28 19:19:25 +00003042 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003043 .manufacture_id = SST_ID,
3044 .model_id = SST_49LF004C,
3045 .total_size = 512,
3046 .page_size = 4 * 1024,
3047 .tested = TEST_UNTESTED,
3048 .probe = probe_49lfxxxc,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003049 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003050 .erase = erase_49lfxxxc,
3051 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003052 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003053 },
3054
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003055 {
3056 .vendor = "SST",
3057 .name = "SST49LF008A",
Urja Rannikko038a3122009-06-28 19:19:25 +00003058 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003059 .manufacture_id = SST_ID,
3060 .model_id = SST_49LF008A,
3061 .total_size = 1024,
3062 .page_size = 64 * 1024,
3063 .tested = TEST_OK_PREW,
3064 .probe = probe_sst_fwhub,
Udu Ogahc04ee222009-09-05 01:31:32 +00003065 .probe_timing = 1, /* 150 ns | routine is wrapper to probe_jedec (sst_fwhub.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003066 .erase = erase_sst_fwhub,
3067 .write = write_sst_fwhub,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003068 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003069 },
3070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003071 {
3072 .vendor = "SST",
3073 .name = "SST49LF008C",
Urja Rannikko038a3122009-06-28 19:19:25 +00003074 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003075 .manufacture_id = SST_ID,
3076 .model_id = SST_49LF008C,
3077 .total_size = 1024,
3078 .page_size = 4 * 1024,
3079 .tested = TEST_UNTESTED,
3080 .probe = probe_49lfxxxc,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003081 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003082 .erase = erase_49lfxxxc,
3083 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003084 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003085 },
3086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003087 {
3088 .vendor = "SST",
3089 .name = "SST49LF016C",
Urja Rannikko038a3122009-06-28 19:19:25 +00003090 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003091 .manufacture_id = SST_ID,
3092 .model_id = SST_49LF016C,
3093 .total_size = 2048,
3094 .page_size = 4 * 1024,
3095 .tested = TEST_OK_PREW,
3096 .probe = probe_49lfxxxc,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003097 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003098 .erase = erase_49lfxxxc,
3099 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003100 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003101 },
3102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003103 {
3104 .vendor = "SST",
3105 .name = "SST49LF020",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003106 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003107 .manufacture_id = SST_ID,
3108 .model_id = SST_49LF020,
3109 .total_size = 256,
3110 .page_size = 16 * 1024,
3111 .tested = TEST_OK_PR,
3112 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003113 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003114 .erase = erase_49lf040,
3115 .write = write_49lf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003116 .read = read_memmapped,
Sven Schnellec208dfb2009-01-07 12:35:09 +00003117 },
3118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003119 {
3120 .vendor = "SST",
3121 .name = "SST49LF020A",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003122 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003123 .manufacture_id = SST_ID,
3124 .model_id = SST_49LF020A,
3125 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00003126 .page_size = 4 * 1024,
Nils Jacobsc0252682009-09-23 21:58:34 +00003127 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003128 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003129 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003130 .erase = erase_49lf040,
3131 .write = write_49lf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003132 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003133 },
3134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003135 {
3136 .vendor = "SST",
3137 .name = "SST49LF040",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003138 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003139 .manufacture_id = SST_ID,
3140 .model_id = SST_49LF040,
3141 .total_size = 512,
3142 .page_size = 4096,
3143 .tested = TEST_OK_PREW,
3144 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003145 .probe_timing = 1, /* 150 ns */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003146 .erase = erase_49lf040,
3147 .write = write_49lf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003148 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003149 },
3150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003151 {
3152 .vendor = "SST",
3153 .name = "SST49LF040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003154 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003155 .manufacture_id = SST_ID,
3156 .model_id = SST_49LF040B,
3157 .total_size = 512,
3158 .page_size = 64 * 1024,
3159 .tested = TEST_OK_PREW,
3160 .probe = probe_sst_fwhub,
Udu Ogahc04ee222009-09-05 01:31:32 +00003161 .probe_timing = 1, /* 150ns | routine is wrapper to probe_jedec (sst_fwhub.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003162 .erase = erase_sst_fwhub,
3163 .write = write_sst_fwhub,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003164 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003165 },
3166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003167 {
3168 .vendor = "SST",
3169 .name = "SST49LF080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00003170 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003171 .manufacture_id = SST_ID,
Urja Rannikko038a3122009-06-28 19:19:25 +00003172 .model_id = SST_49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003173 .total_size = 1024,
3174 .page_size = 4096,
3175 .tested = TEST_OK_PREW,
3176 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003177 .probe_timing = TIMING_FIXME,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003178 .erase = erase_49lf040,
3179 .write = write_49lf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003180 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003181 },
3182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003183 {
3184 .vendor = "SST",
3185 .name = "SST49LF160C",
Urja Rannikko038a3122009-06-28 19:19:25 +00003186 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003187 .manufacture_id = SST_ID,
3188 .model_id = SST_49LF160C,
3189 .total_size = 2048,
3190 .page_size = 4 * 1024,
3191 .tested = TEST_OK_PREW,
3192 .probe = probe_49lfxxxc,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003193 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003194 .erase = erase_49lfxxxc,
3195 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003196 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003197 },
3198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003199 {
3200 .vendor = "ST",
3201 .name = "M25P05-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003202 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003203 .manufacture_id = ST_ID,
3204 .model_id = ST_M25P05A,
3205 .total_size = 64,
3206 .page_size = 256,
3207 .tested = TEST_UNTESTED,
3208 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003209 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003210 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003211 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003212 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003213 },
3214
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00003215 /* The ST M25P05 is a bit of a problem. It has the same ID as the
3216 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
3217 * of 256 byte writes. We rely heavily on the fact that probe_spi_res
3218 * only is successful if RDID does not work.
3219 */
3220 {
3221 .vendor = "ST",
3222 .name = "M25P05.RES",
3223 .bustype = CHIP_BUSTYPE_SPI,
3224 .manufacture_id = ST_ID,
3225 .model_id = ST_M25P05_RES,
3226 .total_size = 64,
3227 .page_size = 256,
3228 .tested = TEST_UNTESTED,
3229 .probe = probe_spi_res,
3230 .probe_timing = TIMING_ZERO,
3231 .erase = spi_chip_erase_c7,
3232 .write = spi_chip_write_1, /* 128 */
3233 .read = spi_chip_read,
3234 },
3235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003236 {
3237 .vendor = "ST",
3238 .name = "M25P10-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003239 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003240 .manufacture_id = ST_ID,
3241 .model_id = ST_M25P10A,
3242 .total_size = 128,
3243 .page_size = 256,
3244 .tested = TEST_UNTESTED,
3245 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003246 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003247 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003248 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003249 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003250 },
3251
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00003252 /* The ST M25P10 has the same problem as the M25P05. */
3253 {
3254 .vendor = "ST",
3255 .name = "M25P10.RES",
3256 .bustype = CHIP_BUSTYPE_SPI,
3257 .manufacture_id = ST_ID,
3258 .model_id = ST_M25P10_RES,
3259 .total_size = 128,
3260 .page_size = 256,
3261 .tested = TEST_UNTESTED,
3262 .probe = probe_spi_res,
3263 .probe_timing = TIMING_ZERO,
3264 .erase = spi_chip_erase_c7,
3265 .write = spi_chip_write_1, /* 128 */
3266 .read = spi_chip_read,
3267 },
3268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003269 {
3270 .vendor = "ST",
3271 .name = "M25P20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003272 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003273 .manufacture_id = ST_ID,
3274 .model_id = ST_M25P20,
3275 .total_size = 256,
3276 .page_size = 256,
3277 .tested = TEST_UNTESTED,
3278 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003279 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003280 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003281 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003282 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003283 },
3284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003285 {
3286 .vendor = "ST",
3287 .name = "M25P40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003288 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003289 .manufacture_id = ST_ID,
3290 .model_id = ST_M25P40,
3291 .total_size = 512,
3292 .page_size = 256,
Uwe Hermann04d5dc42009-07-03 17:12:05 +00003293 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003294 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003295 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003296 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003297 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003298 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003299 },
3300
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003301 {
3302 .vendor = "ST",
3303 .name = "M25P40-old",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003304 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003305 .manufacture_id = ST_ID,
3306 .model_id = ST_M25P40_RES,
3307 .total_size = 512,
3308 .page_size = 256,
3309 .tested = TEST_UNTESTED,
3310 .probe = probe_spi_res,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003311 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003312 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003313 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003314 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003315 },
3316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003317 {
3318 .vendor = "ST",
3319 .name = "M25P80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003320 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003321 .manufacture_id = ST_ID,
3322 .model_id = ST_M25P80,
3323 .total_size = 1024,
3324 .page_size = 256,
Carl-Daniel Hailfinger5190ec12009-06-22 10:09:07 +00003325 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003326 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003327 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003328 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003329 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003330 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003331 },
3332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003333 {
3334 .vendor = "ST",
3335 .name = "M25P16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003336 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003337 .manufacture_id = ST_ID,
3338 .model_id = ST_M25P16,
3339 .total_size = 2048,
3340 .page_size = 256,
3341 .tested = TEST_OK_PREW,
3342 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003343 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003344 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003345 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003346 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003347 },
3348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003349 {
3350 .vendor = "ST",
3351 .name = "M25P32",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003352 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003353 .manufacture_id = ST_ID,
3354 .model_id = ST_M25P32,
3355 .total_size = 4096,
3356 .page_size = 256,
3357 .tested = TEST_OK_PREW,
3358 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003359 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003360 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003361 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003362 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003363 },
3364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003365 {
3366 .vendor = "ST",
3367 .name = "M25P64",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003368 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003369 .manufacture_id = ST_ID,
3370 .model_id = ST_M25P64,
3371 .total_size = 8192,
3372 .page_size = 256,
3373 .tested = TEST_UNTESTED,
3374 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003375 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003376 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003377 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003378 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003379 },
3380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003381 {
3382 .vendor = "ST",
3383 .name = "M25P128",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003384 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003385 .manufacture_id = ST_ID,
3386 .model_id = ST_M25P128,
3387 .total_size = 16384,
3388 .page_size = 256,
3389 .tested = TEST_UNTESTED,
3390 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003391 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003392 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003393 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003394 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003395 },
3396
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003397 {
3398 .vendor = "ST",
3399 .name = "M29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003400 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003401 .manufacture_id = ST_ID,
3402 .model_id = ST_M29F002B,
3403 .total_size = 256,
3404 .page_size = 64 * 1024,
3405 .tested = TEST_UNTESTED,
3406 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003407 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Peter Stugeaf8ffac2009-01-26 06:42:02 +00003408 .erase = erase_m29f002,
3409 .write = write_m29f002b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003410 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003411 },
3412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003413 {
3414 .vendor = "ST",
3415 .name = "M29F002T/NT",
Urja Rannikko038a3122009-06-28 19:19:25 +00003416 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003417 .manufacture_id = ST_ID,
3418 .model_id = ST_M29F002T,
3419 .total_size = 256,
3420 .page_size = 64 * 1024,
Peter Stugeaf8ffac2009-01-26 06:42:02 +00003421 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003422 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003423 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Peter Stugeaf8ffac2009-01-26 06:42:02 +00003424 .erase = erase_m29f002,
3425 .write = write_m29f002t,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003426 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003427 },
3428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003429 {
3430 .vendor = "ST",
3431 .name = "M29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003432 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003433 .manufacture_id = ST_ID,
3434 .model_id = ST_M29F040B,
3435 .total_size = 512,
3436 .page_size = 64 * 1024,
3437 .tested = TEST_OK_PREW,
3438 .probe = probe_29f040b,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003439 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003440 .erase = erase_29f040b,
3441 .write = write_29f040b,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003442 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003443 },
3444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003445 {
3446 .vendor = "ST",
3447 .name = "M29F400BT",
Urja Rannikko038a3122009-06-28 19:19:25 +00003448 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003449 .manufacture_id = ST_ID,
3450 .model_id = ST_M29F400BT,
3451 .total_size = 512,
3452 .page_size = 64 * 1024,
3453 .tested = TEST_UNTESTED,
3454 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003455 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003456 .erase = erase_m29f400bt,
3457 .write = write_coreboot_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003458 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003459 },
3460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003461 {
3462 .vendor = "ST",
3463 .name = "M29W010B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003464 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003465 .manufacture_id = ST_ID,
3466 .model_id = ST_M29W010B,
3467 .total_size = 128,
3468 .page_size = 16 * 1024,
3469 .tested = TEST_UNTESTED,
3470 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003471 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003472 .erase = erase_chip_jedec,
3473 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003474 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003475 },
3476
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003477 {
3478 .vendor = "ST",
3479 .name = "M29W040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003480 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003481 .manufacture_id = ST_ID,
3482 .model_id = ST_M29W040B,
3483 .total_size = 512,
3484 .page_size = 64 * 1024,
3485 .tested = TEST_UNTESTED,
3486 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003487 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003488 .erase = erase_chip_jedec,
3489 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003490 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003491 },
3492
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003493 {
3494 .vendor = "ST",
3495 .name = "M50FLW040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00003496 .bustype = CHIP_BUSTYPE_FWH|CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003497 .manufacture_id = ST_ID,
3498 .model_id = ST_M50FLW040A,
3499 .total_size = 512,
3500 .page_size = 64 * 1024,
3501 .tested = TEST_UNTESTED,
3502 .probe = probe_stm50flw0x0x,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003503 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (stm50flw0x0x.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003504 .erase = erase_stm50flw0x0x,
3505 .write = write_stm50flw0x0x,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003506 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003507 },
3508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003509 {
3510 .vendor = "ST",
3511 .name = "M50FLW040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003512 .bustype = CHIP_BUSTYPE_FWH|CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003513 .manufacture_id = ST_ID,
3514 .model_id = ST_M50FLW040B,
3515 .total_size = 512,
3516 .page_size = 64 * 1024,
3517 .tested = TEST_UNTESTED,
3518 .probe = probe_stm50flw0x0x,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003519 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (stm50flw0x0x.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 .erase = erase_stm50flw0x0x,
3521 .write = write_stm50flw0x0x,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003522 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003523 },
3524
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003525 {
3526 .vendor = "ST",
3527 .name = "M50FLW080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00003528 .bustype = CHIP_BUSTYPE_FWH|CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003529 .manufacture_id = ST_ID,
3530 .model_id = ST_M50FLW080A,
3531 .total_size = 1024,
3532 .page_size = 64 * 1024,
3533 .tested = TEST_OK_PREW,
3534 .probe = probe_stm50flw0x0x,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003535 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (stm50flw0x0x.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003536 .erase = erase_stm50flw0x0x,
3537 .write = write_stm50flw0x0x,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003538 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003539 },
3540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003541 {
3542 .vendor = "ST",
3543 .name = "M50FLW080B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003544 .bustype = CHIP_BUSTYPE_FWH|CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003545 .manufacture_id = ST_ID,
3546 .model_id = ST_M50FLW080B,
3547 .total_size = 1024,
3548 .page_size = 64 * 1024,
3549 .tested = TEST_UNTESTED,
3550 .probe = probe_stm50flw0x0x,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003551 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (stm50flw0x0x.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003552 .erase = erase_stm50flw0x0x,
3553 .write = write_stm50flw0x0x,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003554 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003555 },
3556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003557 {
3558 .vendor = "ST",
3559 .name = "M50FW002",
Urja Rannikko038a3122009-06-28 19:19:25 +00003560 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003561 .manufacture_id = ST_ID,
3562 .model_id = ST_M50FW002,
3563 .total_size = 256,
3564 .page_size = 64 * 1024,
3565 .tested = TEST_UNTESTED,
3566 .probe = probe_49lfxxxc,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003567 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003568 .erase = NULL,
3569 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003570 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003571 },
3572
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003573 {
3574 .vendor = "ST",
3575 .name = "M50FW016",
Urja Rannikko038a3122009-06-28 19:19:25 +00003576 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003577 .manufacture_id = ST_ID,
3578 .model_id = ST_M50FW016,
3579 .total_size = 2048,
3580 .page_size = 64 * 1024,
3581 .tested = TEST_UNTESTED,
3582 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003583 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003584 .erase = erase_82802ab,
3585 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003586 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003587 },
3588
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003589 {
3590 .vendor = "ST",
3591 .name = "M50FW040",
Urja Rannikko038a3122009-06-28 19:19:25 +00003592 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003593 .manufacture_id = ST_ID,
3594 .model_id = ST_M50FW040,
3595 .total_size = 512,
3596 .page_size = 64 * 1024,
3597 .tested = TEST_OK_PREW,
3598 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003599 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003600 .erase = erase_82802ab,
3601 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003602 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003603 },
3604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003605 {
3606 .vendor = "ST",
3607 .name = "M50FW080",
Urja Rannikko038a3122009-06-28 19:19:25 +00003608 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003609 .manufacture_id = ST_ID,
3610 .model_id = ST_M50FW080,
3611 .total_size = 1024,
3612 .page_size = 64 * 1024,
Peter Stugea657e942009-01-24 23:01:08 +00003613 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003614 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003615 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003616 .erase = erase_82802ab,
3617 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003618 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003619 },
3620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003621 {
3622 .vendor = "ST",
3623 .name = "M50LPW116",
Urja Rannikko038a3122009-06-28 19:19:25 +00003624 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003625 .manufacture_id = ST_ID,
3626 .model_id = ST_M50LPW116,
3627 .total_size = 2048,
3628 .page_size = 64 * 1024,
3629 .tested = TEST_UNTESTED,
3630 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003631 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003632 .erase = erase_chip_jedec,
3633 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003634 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003635 },
3636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003637 {
3638 .vendor = "SyncMOS",
3639 .name = "S29C31004T",
Urja Rannikko038a3122009-06-28 19:19:25 +00003640 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003641 .manufacture_id = SYNCMOS_ID,
3642 .model_id = S29C31004T,
3643 .total_size = 512,
3644 .page_size = 128,
3645 .tested = TEST_UNTESTED,
3646 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003647 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003648 .erase = erase_chip_jedec,
3649 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003650 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003651 },
3652
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003653 {
3654 .vendor = "SyncMOS",
3655 .name = "S29C51001T",
Urja Rannikko038a3122009-06-28 19:19:25 +00003656 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003657 .manufacture_id = SYNCMOS_ID,
3658 .model_id = S29C51001T,
3659 .total_size = 128,
3660 .page_size = 128,
3661 .tested = TEST_UNTESTED,
3662 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003663 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003664 .erase = erase_chip_jedec,
3665 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003666 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003667 },
3668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003669 {
3670 .vendor = "SyncMOS",
3671 .name = "S29C51002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00003672 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003673 .manufacture_id = SYNCMOS_ID,
3674 .model_id = S29C51002T,
3675 .total_size = 256,
3676 .page_size = 128,
3677 .tested = TEST_OK_PREW,
3678 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003679 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003680 .erase = erase_chip_jedec,
3681 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003682 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003683 },
3684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003685 {
3686 .vendor = "SyncMOS",
3687 .name = "S29C51004T",
Urja Rannikko038a3122009-06-28 19:19:25 +00003688 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003689 .manufacture_id = SYNCMOS_ID,
3690 .model_id = S29C51004T,
3691 .total_size = 512,
3692 .page_size = 128,
3693 .tested = TEST_UNTESTED,
3694 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003695 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003696 .erase = erase_chip_jedec,
3697 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003698 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003699 },
3700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003701 {
Uwe Hermanna106d152009-05-27 23:17:40 +00003702 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00003703 .name = "TMS29F002RB",
Urja Rannikko038a3122009-06-28 19:19:25 +00003704 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00003705 .manufacture_id = TI_OLD_ID,
3706 .model_id = TI_TMS29F002RB,
3707 .total_size = 256,
3708 .page_size = 16384, /* Non-uniform sectors */
3709 .tested = TEST_UNTESTED,
3710 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003711 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00003712 .erase = NULL,
3713 .write = NULL,
3714 .read = read_memmapped,
3715 },
3716
3717 {
Uwe Hermanna106d152009-05-27 23:17:40 +00003718 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00003719 .name = "TMS29F002RT",
Urja Rannikko038a3122009-06-28 19:19:25 +00003720 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00003721 .manufacture_id = TI_OLD_ID,
3722 .model_id = TI_TMS29F002RT,
3723 .total_size = 256,
3724 .page_size = 16384, /* Non-uniform sectors */
3725 .tested = TEST_UNTESTED,
3726 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00003728 .erase = NULL,
3729 .write = NULL,
3730 .read = read_memmapped,
3731 },
3732
3733 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003734 .vendor = "Winbond",
3735 .name = "W25x10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003736 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003737 .manufacture_id = WINBOND_NEX_ID,
3738 .model_id = W_25X10,
3739 .total_size = 128,
3740 .page_size = 256,
3741 .tested = TEST_UNTESTED,
3742 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003743 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003744 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003745 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003746 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003747 },
3748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003749 {
3750 .vendor = "Winbond",
3751 .name = "W25x20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003752 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003753 .manufacture_id = WINBOND_NEX_ID,
3754 .model_id = W_25X20,
3755 .total_size = 256,
3756 .page_size = 256,
3757 .tested = TEST_UNTESTED,
3758 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003759 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003760 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003761 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003762 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003763 },
3764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003765 {
3766 .vendor = "Winbond",
3767 .name = "W25x40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003768 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003769 .manufacture_id = WINBOND_NEX_ID,
3770 .model_id = W_25X40,
3771 .total_size = 512,
3772 .page_size = 256,
3773 .tested = TEST_OK_PREW,
3774 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003775 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003776 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003777 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003778 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003779 },
3780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003781 {
3782 .vendor = "Winbond",
3783 .name = "W25x80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003784 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003785 .manufacture_id = WINBOND_NEX_ID,
3786 .model_id = W_25X80,
3787 .total_size = 1024,
3788 .page_size = 256,
3789 .tested = TEST_OK_PREW,
3790 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003791 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003792 .erase = spi_chip_erase_c7,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003793 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003794 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003795 },
3796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003797 {
3798 .vendor = "Winbond",
Hector Martina721ae22009-07-11 19:39:11 +00003799 .name = "W25x16",
3800 .bustype = CHIP_BUSTYPE_SPI,
3801 .manufacture_id = WINBOND_NEX_ID,
3802 .model_id = W_25X16,
3803 .total_size = 2048,
3804 .page_size = 256,
3805 .tested = TEST_OK_PR,
3806 .probe = probe_spi_rdid,
3807 .probe_timing = TIMING_ZERO,
3808 .erase = spi_chip_erase_c7,
3809 .write = spi_chip_write_256,
3810 .read = spi_chip_read,
3811 },
3812
3813 {
3814 .vendor = "Winbond",
Zheng Bao1db2b752009-11-26 11:05:01 +00003815 .name = "W25x32",
3816 .bustype = CHIP_BUSTYPE_SPI,
3817 .manufacture_id = WINBOND_NEX_ID,
3818 .model_id = W_25X32,
3819 .total_size = 4096,
3820 .page_size = 256,
3821 .tested = TEST_OK_PROBE,
3822 .probe = probe_spi_rdid,
3823 .probe_timing = TIMING_ZERO,
3824 .erase = spi_chip_erase_c7,
3825 .write = spi_chip_write_256,
3826 .read = spi_chip_read,
3827 },
3828
3829 {
3830 .vendor = "Winbond",
3831 .name = "W25x64",
3832 .bustype = CHIP_BUSTYPE_SPI,
3833 .manufacture_id = WINBOND_NEX_ID,
3834 .model_id = W_25X64,
3835 .total_size = 8192,
3836 .page_size = 256,
3837 .tested = TEST_UNTESTED,
3838 .probe = probe_spi_rdid,
3839 .probe_timing = TIMING_ZERO,
3840 .erase = spi_chip_erase_c7,
3841 .write = spi_chip_write_256,
3842 .read = spi_chip_read,
3843 },
3844
3845 {
3846 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003847 .name = "W29C011",
Urja Rannikko038a3122009-06-28 19:19:25 +00003848 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003849 .manufacture_id = WINBOND_ID,
3850 .model_id = W_29C011,
3851 .total_size = 128,
3852 .page_size = 128,
3853 .tested = TEST_OK_PREW,
3854 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003855 .probe_timing = 10, /* used datasheet for the W29C011A */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003856 .erase = erase_chip_jedec,
3857 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003858 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003859 },
3860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003861 {
3862 .vendor = "Winbond",
3863 .name = "W29C020C",
Urja Rannikko161b8852009-06-05 08:47:37 +00003864 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003865 .manufacture_id = WINBOND_ID,
3866 .model_id = W_29C020C,
3867 .total_size = 256,
3868 .page_size = 128,
3869 .tested = TEST_OK_PREW,
3870 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003871 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003872 .erase = erase_chip_jedec,
3873 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003874 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003875 },
3876
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003877 {
3878 .vendor = "Winbond",
3879 .name = "W29C040P",
Urja Rannikko161b8852009-06-05 08:47:37 +00003880 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003881 .manufacture_id = WINBOND_ID,
3882 .model_id = W_29C040P,
3883 .total_size = 512,
3884 .page_size = 256,
Carl-Daniel Hailfinger8a8a2262009-11-14 03:48:33 +00003885 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003886 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003887 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003888 .erase = erase_chip_jedec,
3889 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003890 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003891 },
3892
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003893 {
3894 .vendor = "Winbond",
3895 .name = "W29EE011",
Urja Rannikko038a3122009-06-28 19:19:25 +00003896 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003897 .manufacture_id = WINBOND_ID,
3898 .model_id = W_29C011,
3899 .total_size = 128,
3900 .page_size = 128,
3901 .tested = TEST_OK_PREW,
3902 .probe = probe_w29ee011,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003903 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003904 .erase = erase_chip_jedec,
3905 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003906 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003907 },
3908
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003909 {
3910 .vendor = "Winbond",
3911 .name = "W39V040A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003912 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003913 .manufacture_id = WINBOND_ID,
3914 .model_id = W_39V040A,
3915 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00003916 .page_size = 64 * 1024,
Uwe Hermann690bcba2009-05-21 17:11:25 +00003917 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003918 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003919 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003920 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00003921 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003922 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003923 },
3924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003925 {
3926 .vendor = "Winbond",
3927 .name = "W39V040B",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003928 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003929 .manufacture_id = WINBOND_ID,
3930 .model_id = W_39V040B,
3931 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00003932 .page_size = 64 * 1024,
Luc Verhaegen8bfb59c2009-07-08 14:50:36 +00003933 .tested = TEST_OK_PR | TEST_BAD_ERASE | TEST_BAD_WRITE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003934 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003935 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003936 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00003937 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003938 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003939 },
3940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003941 {
3942 .vendor = "Winbond",
3943 .name = "W39V040C",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003944 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003945 .manufacture_id = WINBOND_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003946 .model_id = W_39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003947 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00003948 .page_size = 64 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003949 .tested = TEST_OK_PREW,
3950 .probe = probe_w39v040c,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003951 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w39v040c.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003952 .erase = erase_w39v040c,
3953 .write = write_w39v040c,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003954 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003955 },
3956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003957 {
3958 .vendor = "Winbond",
3959 .name = "W39V040FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003960 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003961 .manufacture_id = WINBOND_ID,
3962 .model_id = W_39V040FA,
3963 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00003964 .page_size = 64 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003965 .tested = TEST_OK_PREW,
3966 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003967 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003968 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00003969 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003970 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003971 },
3972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003973 {
3974 .vendor = "Winbond",
3975 .name = "W39V080A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003976 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003977 .manufacture_id = WINBOND_ID,
3978 .model_id = W_39V080A,
3979 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00003980 .page_size = 64 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003981 .tested = TEST_OK_PREW,
3982 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00003983 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003984 .erase = erase_chip_jedec,
Uwe Hermann24f9fbe2009-05-12 14:06:04 +00003985 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003986 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003987 },
3988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003989 {
3990 .vendor = "Winbond",
3991 .name = "W49F002U",
Urja Rannikko038a3122009-06-28 19:19:25 +00003992 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003993 .manufacture_id = WINBOND_ID,
3994 .model_id = W_49F002U,
3995 .total_size = 256,
3996 .page_size = 128,
3997 .tested = TEST_OK_PREW,
3998 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003999 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004000 .erase = erase_chip_jedec,
4001 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004002 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004003 },
4004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004005 {
4006 .vendor = "Winbond",
4007 .name = "W49V002A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00004008 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004009 .manufacture_id = WINBOND_ID,
4010 .model_id = W_49V002A,
4011 .total_size = 256,
4012 .page_size = 128,
4013 .tested = TEST_OK_PREW,
4014 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00004015 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004016 .erase = erase_chip_jedec,
4017 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004018 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004019 },
4020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004021 {
4022 .vendor = "Winbond",
4023 .name = "W49V002FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00004024 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004025 .manufacture_id = WINBOND_ID,
4026 .model_id = W_49V002FA,
4027 .total_size = 256,
4028 .page_size = 128,
4029 .tested = TEST_UNTESTED,
4030 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004031 .probe_timing = 10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004032 .erase = erase_chip_jedec,
4033 .write = write_49f002,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004034 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004035 },
4036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004037 {
4038 .vendor = "Winbond",
4039 .name = "W39V080FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00004040 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004041 .manufacture_id = WINBOND_ID,
4042 .model_id = W_39V080FA,
4043 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00004044 .page_size = 64 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004045 .tested = TEST_OK_PREW,
4046 .probe = probe_winbond_fwhub,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004047 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w39v080fa.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004048 .erase = erase_winbond_fwhub,
4049 .write = write_winbond_fwhub,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004050 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004051 },
4052
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004053 {
4054 .vendor = "Winbond",
4055 .name = "W39V080FA (dual mode)",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00004056 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004057 .manufacture_id = WINBOND_ID,
4058 .model_id = W_39V080FA_DM,
4059 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00004060 .page_size = 64 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004061 .tested = TEST_UNTESTED,
4062 .probe = probe_winbond_fwhub,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004063 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w39v080fa.c) */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004064 .erase = erase_winbond_fwhub,
4065 .write = write_winbond_fwhub,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004066 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004067 },
4068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004069 {
4070 .vendor = "Atmel",
4071 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004072 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004073 .manufacture_id = ATMEL_ID,
4074 .model_id = GENERIC_DEVICE_ID,
4075 .total_size = 0,
4076 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00004077 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004078 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004079 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004080 .erase = NULL,
4081 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004082 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00004083 },
4084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004085 {
4086 .vendor = "EON",
4087 .name = "unknown EON SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004088 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004089 .manufacture_id = EON_ID_NOPREFIX,
4090 .model_id = GENERIC_DEVICE_ID,
4091 .total_size = 0,
4092 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00004093 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004094 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004095 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004096 .erase = NULL,
4097 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004098 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00004099 },
4100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004101 {
4102 .vendor = "Macronix",
4103 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004104 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004105 .manufacture_id = MX_ID,
4106 .model_id = GENERIC_DEVICE_ID,
4107 .total_size = 0,
4108 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00004109 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004110 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004111 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004112 .erase = NULL,
4113 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004114 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00004115 },
4116
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004117 {
4118 .vendor = "PMC",
4119 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004120 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004121 .manufacture_id = PMC_ID,
4122 .model_id = GENERIC_DEVICE_ID,
4123 .total_size = 0,
4124 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00004125 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004126 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004127 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004128 .erase = NULL,
4129 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004130 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00004131 },
4132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004133 {
4134 .vendor = "SST",
4135 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004136 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004137 .manufacture_id = SST_ID,
4138 .model_id = GENERIC_DEVICE_ID,
4139 .total_size = 0,
4140 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00004141 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004142 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004143 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004144 .erase = NULL,
4145 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004146 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00004147 },
4148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004149 {
4150 .vendor = "ST",
4151 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004152 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004153 .manufacture_id = ST_ID,
4154 .model_id = GENERIC_DEVICE_ID,
4155 .total_size = 0,
4156 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00004157 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004158 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004159 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004160 .erase = NULL,
4161 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004162 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00004163 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00004164
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00004165 {
Sean Nelson118e1d62009-11-24 02:08:11 +00004166 .vendor = "Sanyo",
4167 .name = "unknown Sanyo SPI chip",
4168 .bustype = CHIP_BUSTYPE_SPI,
4169 .manufacture_id = SANYO_ID,
4170 .model_id = GENERIC_DEVICE_ID,
4171 .total_size = 0,
4172 .page_size = 256,
4173 .tested = TEST_BAD_PREW,
4174 .probe = probe_spi_rdid,
4175 .probe_timing = TIMING_ZERO,
4176 .erase = NULL,
4177 .write = NULL,
4178 .read = NULL,
4179 },
4180
4181 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00004182 .vendor = "Generic",
4183 .name = "unknown SPI chip (RDID)",
4184 .bustype = CHIP_BUSTYPE_SPI,
4185 .manufacture_id = GENERIC_MANUF_ID,
4186 .model_id = GENERIC_DEVICE_ID,
4187 .total_size = 0,
4188 .page_size = 256,
4189 .tested = TEST_BAD_PREW,
4190 .probe = probe_spi_rdid,
4191 .erase = NULL,
4192 .write = NULL,
4193 },
4194 {
4195 .vendor = "Generic",
4196 .name = "unknown SPI chip (REMS)",
4197 .bustype = CHIP_BUSTYPE_SPI,
4198 .manufacture_id = GENERIC_MANUF_ID,
4199 .model_id = GENERIC_DEVICE_ID,
4200 .total_size = 0,
4201 .page_size = 256,
4202 .tested = TEST_BAD_PREW,
4203 .probe = probe_spi_rems,
4204 .erase = NULL,
4205 .write = NULL,
4206 },
4207
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004208 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00004209};