blob: 6431e799c0330a15a4af8669267580ea6ddc2863 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Ollie Lho184a4042005-11-26 21:55:36 +000035struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000061 .name = "Am29F010A/B",
62 .bustype = CHIP_BUSTYPE_PARALLEL,
63 .manufacture_id = AMD_ID,
64 .model_id = AM_29F010B, /* Same as Am29F010A */
65 .total_size = 128,
66 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
68 .tested = TEST_UNTESTED,
69 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000075 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000076 }, {
77 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000078 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000079 },
80 },
Sean Nelson35727f72010-01-28 23:55:12 +000081 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000082 .read = read_memmapped,
83 },
84
85 {
86 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000087 .name = "Am29F002(N)BB",
Urja Rannikko038a3122009-06-28 19:19:25 +000088 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .manufacture_id = AMD_ID,
90 .model_id = AM_29F002BB,
91 .total_size = 256,
92 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000093 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000094 .tested = TEST_UNTESTED,
95 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000096 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000097 .block_erasers =
98 {
99 {
100 .eraseblocks = {
101 {16 * 1024, 1},
102 {8 * 1024, 2},
103 {32 * 1024, 1},
104 {64 * 1024, 3},
105 },
106 .block_erase = erase_sector_jedec,
107 }, {
108 .eraseblocks = { {256 * 1024, 1} },
109 .block_erase = erase_chip_block_jedec,
110 },
111 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000112 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000113 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000114 },
115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 {
117 .vendor = "AMD",
118 .name = "Am29F002(N)BT",
Urja Rannikko038a3122009-06-28 19:19:25 +0000119 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000120 .manufacture_id = AMD_ID,
121 .model_id = AM_29F002BT,
122 .total_size = 256,
123 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000124 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
125 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000126 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000127 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000128 .block_erasers =
129 {
130 {
131 .eraseblocks = {
132 {64 * 1024, 3},
133 {32 * 1024, 1},
134 {8 * 1024, 2},
135 {16 * 1024, 1},
136 },
137 .block_erase = erase_sector_jedec,
138 }, {
139 .eraseblocks = { {256 * 1024, 1} },
140 .block_erase = erase_chip_block_jedec,
141 },
142 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000143 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000144 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000145 },
146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000147 {
148 .vendor = "AMD",
149 .name = "Am29F016D",
Urja Rannikko038a3122009-06-28 19:19:25 +0000150 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 .manufacture_id = AMD_ID,
152 .model_id = AM_29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000153 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000154 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000155 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000156 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000157 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000158 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000159 .block_erasers =
160 {
161 {
162 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000163 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000164 }, {
165 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000166 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000167 },
168 },
Sean Nelson35727f72010-01-28 23:55:12 +0000169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000170 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000171 },
172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000173 {
174 .vendor = "AMD",
175 .name = "Am29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000176 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000177 .manufacture_id = AMD_ID,
178 .model_id = AM_29F040B,
179 .total_size = 512,
180 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000181 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
182 .tested = TEST_UNTESTED,
183 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000184 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000185 .block_erasers =
186 {
187 {
188 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000189 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 }, {
191 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000192 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000193 },
194 },
Sean Nelson35727f72010-01-28 23:55:12 +0000195 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000196 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000197 },
198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000199 {
200 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000201 .name = "Am29F080B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000202 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000203 .manufacture_id = AMD_ID,
204 .model_id = AM_29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000205 .total_size = 1024,
206 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000207 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000208 .tested = TEST_UNTESTED,
209 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000210 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000211 .block_erasers =
212 {
213 {
214 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000215 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000216 }, {
217 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000218 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000219 },
220 },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000222 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000223 },
224
225 {
226 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000227 .name = "Am29LV040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000228 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000229 .manufacture_id = AMD_ID,
230 .model_id = AM_29LV040B,
231 .total_size = 512,
232 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000234 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000235 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000236 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000237 .block_erasers =
238 {
239 {
240 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000241 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000242 }, {
243 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000244 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000245 },
246 },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000248 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000249 },
250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000251 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000252 .vendor = "AMD",
253 .name = "Am29LV081B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000254 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000255 .manufacture_id = AMD_ID,
Carl-Daniel Hailfinger6d5d2532009-08-10 10:14:23 +0000256 .model_id = AM_29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000257 .total_size = 1024,
258 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000259 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000260 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000261 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000262 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000263 .block_erasers =
264 {
265 {
266 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000267 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000268 }, {
269 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000270 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000271 },
272 },
Sean Nelson35727f72010-01-28 23:55:12 +0000273 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000274 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000275 },
276
277 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000278 .vendor = "ASD",
279 .name = "AE49F2008",
Urja Rannikko038a3122009-06-28 19:19:25 +0000280 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000281 .manufacture_id = ASD_ID,
282 .model_id = ASD_AE49F2008,
283 .total_size = 256,
284 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +0000285 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000286 .tested = TEST_UNTESTED,
287 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000288 .probe_timing = TIMING_FIXME,
Sean Nelson54596372010-01-09 05:30:14 +0000289 .block_erasers =
290 {
291 {
292 .eraseblocks = {
293 {128 * 1024, 1},
294 {96 * 1024, 1},
295 {8 * 1024, 2},
296 {16 * 1024, 1},
297 },
298 .block_erase = erase_sector_jedec,
299 }, {
300 .eraseblocks = { {256 * 1024, 1} },
301 .block_erase = erase_chip_block_jedec,
302 }
303 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000304 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000305 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000306 },
307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000308 {
309 .vendor = "Atmel",
310 .name = "AT25DF021",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000311 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000312 .manufacture_id = ATMEL_ID,
313 .model_id = AT_25DF021,
314 .total_size = 256,
315 .page_size = 256,
316 .tested = TEST_UNTESTED,
317 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000318 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000319 .block_erasers =
320 {
321 {
322 .eraseblocks = { {4 * 1024, 64} },
323 .block_erase = spi_block_erase_20,
324 }, {
325 .eraseblocks = { {32 * 1024, 8} },
326 .block_erase = spi_block_erase_52,
327 }, {
328 .eraseblocks = { {64 * 1024, 4} },
329 .block_erase = spi_block_erase_d8,
330 }, {
331 .eraseblocks = { {256 * 1024, 1} },
332 .block_erase = spi_block_erase_60,
333 }, {
334 .eraseblocks = { {256 * 1024, 1} },
335 .block_erase = spi_block_erase_c7,
336 }
337 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000338 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000339 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000340 },
341
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000342 {
343 .vendor = "Atmel",
344 .name = "AT25DF041A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000345 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000346 .manufacture_id = ATMEL_ID,
347 .model_id = AT_25DF041A,
348 .total_size = 512,
349 .page_size = 256,
350 .tested = TEST_UNTESTED,
351 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000352 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000353 .block_erasers =
354 {
355 {
356 .eraseblocks = { {4 * 1024, 128} },
357 .block_erase = spi_block_erase_20,
358 }, {
359 .eraseblocks = { {32 * 1024, 16} },
360 .block_erase = spi_block_erase_52,
361 }, {
362 .eraseblocks = { {64 * 1024, 8} },
363 .block_erase = spi_block_erase_d8,
364 }, {
365 .eraseblocks = { {512 * 1024, 1} },
366 .block_erase = spi_block_erase_60,
367 }, {
368 .eraseblocks = { {512 * 1024, 1} },
369 .block_erase = spi_block_erase_c7,
370 }
371 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000372 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000373 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000374 },
375
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000376 {
377 .vendor = "Atmel",
378 .name = "AT25DF081",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000379 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000380 .manufacture_id = ATMEL_ID,
381 .model_id = AT_25DF081,
382 .total_size = 1024,
383 .page_size = 256,
384 .tested = TEST_UNTESTED,
385 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000386 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000387 .block_erasers =
388 {
389 {
390 .eraseblocks = { {4 * 1024, 256} },
391 .block_erase = spi_block_erase_20,
392 }, {
393 .eraseblocks = { {32 * 1024, 32} },
394 .block_erase = spi_block_erase_52,
395 }, {
396 .eraseblocks = { {64 * 1024, 16} },
397 .block_erase = spi_block_erase_d8,
398 }, {
399 .eraseblocks = { {1024 * 1024, 1} },
400 .block_erase = spi_block_erase_60,
401 }, {
402 .eraseblocks = { {1024 * 1024, 1} },
403 .block_erase = spi_block_erase_c7,
404 }
405 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000406 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000407 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000408 },
409
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000410 {
411 .vendor = "Atmel",
412 .name = "AT25DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000413 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000414 .manufacture_id = ATMEL_ID,
415 .model_id = AT_25DF161,
416 .total_size = 2048,
417 .page_size = 256,
418 .tested = TEST_UNTESTED,
419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000420 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000421 .block_erasers =
422 {
423 {
424 .eraseblocks = { {4 * 1024, 512} },
425 .block_erase = spi_block_erase_20,
426 }, {
427 .eraseblocks = { {32 * 1024, 64} },
428 .block_erase = spi_block_erase_52,
429 }, {
430 .eraseblocks = { {64 * 1024, 32} },
431 .block_erase = spi_block_erase_d8,
432 }, {
433 .eraseblocks = { {2 * 1024 * 1024, 1} },
434 .block_erase = spi_block_erase_60,
435 }, {
436 .eraseblocks = { {2 * 1024 * 1024, 1} },
437 .block_erase = spi_block_erase_c7,
438 }
439 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000440 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000441 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000442 },
443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000444 {
445 .vendor = "Atmel",
446 .name = "AT25DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000447 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000448 .manufacture_id = ATMEL_ID,
449 .model_id = AT_25DF321,
450 .total_size = 4096,
451 .page_size = 256,
Sean Nelson89187292009-12-23 12:02:55 +0000452 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000455 .block_erasers =
456 {
457 {
458 .eraseblocks = { {4 * 1024, 1024} },
459 .block_erase = spi_block_erase_20,
460 }, {
461 .eraseblocks = { {32 * 1024, 128} },
462 .block_erase = spi_block_erase_52,
463 }, {
464 .eraseblocks = { {64 * 1024, 64} },
465 .block_erase = spi_block_erase_d8,
466 }, {
467 .eraseblocks = { {4 * 1024 * 1024, 1} },
468 .block_erase = spi_block_erase_60,
469 }, {
470 .eraseblocks = { {4 * 1024 * 1024, 1} },
471 .block_erase = spi_block_erase_c7,
472 }
473 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000475 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000476 },
477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000478 {
479 .vendor = "Atmel",
480 .name = "AT25DF321A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000481 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000482 .manufacture_id = ATMEL_ID,
483 .model_id = AT_25DF321A,
484 .total_size = 4096,
485 .page_size = 256,
486 .tested = TEST_UNTESTED,
487 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000488 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000489 .block_erasers =
490 {
491 {
492 .eraseblocks = { {4 * 1024, 1024} },
493 .block_erase = spi_block_erase_20,
494 }, {
495 .eraseblocks = { {32 * 1024, 128} },
496 .block_erase = spi_block_erase_52,
497 }, {
498 .eraseblocks = { {64 * 1024, 64} },
499 .block_erase = spi_block_erase_d8,
500 }, {
501 .eraseblocks = { {4 * 1024 * 1024, 1} },
502 .block_erase = spi_block_erase_60,
503 }, {
504 .eraseblocks = { {4 * 1024 * 1024, 1} },
505 .block_erase = spi_block_erase_c7,
506 }
507 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000508 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000509 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000510 },
511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000512 {
513 .vendor = "Atmel",
514 .name = "AT25DF641",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000515 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000516 .manufacture_id = ATMEL_ID,
517 .model_id = AT_25DF641,
518 .total_size = 8192,
519 .page_size = 256,
520 .tested = TEST_UNTESTED,
521 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000522 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000523 .block_erasers =
524 {
525 {
526 .eraseblocks = { {4 * 1024, 2048} },
527 .block_erase = spi_block_erase_20,
528 }, {
529 .eraseblocks = { {32 * 1024, 256} },
530 .block_erase = spi_block_erase_52,
531 }, {
532 .eraseblocks = { {64 * 1024, 128} },
533 .block_erase = spi_block_erase_d8,
534 }, {
535 .eraseblocks = { {8 * 1024 * 1024, 1} },
536 .block_erase = spi_block_erase_60,
537 }, {
538 .eraseblocks = { {8 * 1024 * 1024, 1} },
539 .block_erase = spi_block_erase_c7,
540 }
541 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000542 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000543 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000544 },
545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000546 {
547 .vendor = "Atmel",
548 .name = "AT25F512B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000549 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000550 .manufacture_id = ATMEL_ID,
551 .model_id = AT_25F512B,
552 .total_size = 64,
553 .page_size = 256,
554 .tested = TEST_UNTESTED,
555 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000556 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000557 .block_erasers =
558 {
559 {
560 .eraseblocks = { {4 * 1024, 16} },
561 .block_erase = spi_block_erase_20,
562 }, {
563 .eraseblocks = { {32 * 1024, 2} },
564 .block_erase = spi_block_erase_52,
565 }, {
566 .eraseblocks = { {32 * 1024, 2} },
567 .block_erase = spi_block_erase_d8,
568 }, {
569 .eraseblocks = { {64 * 1024, 1} },
570 .block_erase = spi_block_erase_60,
571 }, {
572 .eraseblocks = { {64 * 1024, 1} },
573 .block_erase = spi_block_erase_c7,
574 }
575 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000576 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000577 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000578 },
579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000580 {
581 .vendor = "Atmel",
582 .name = "AT25FS010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000583 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000584 .manufacture_id = ATMEL_ID,
585 .model_id = AT_25FS010,
586 .total_size = 128,
587 .page_size = 256,
588 .tested = TEST_UNTESTED,
589 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000590 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000591 .block_erasers =
592 {
593 {
594 .eraseblocks = { {4 * 1024, 32} },
595 .block_erase = spi_block_erase_20,
596 }, {
597 .eraseblocks = { {32 * 1024, 4} },
598 .block_erase = spi_block_erase_52,
599 }, {
600 .eraseblocks = { {32 * 1024, 4} },
601 .block_erase = spi_block_erase_d8,
602 }, {
603 .eraseblocks = { {128 * 1024, 1} },
604 .block_erase = spi_block_erase_60,
605 }, {
606 .eraseblocks = { {128 * 1024, 1} },
607 .block_erase = spi_block_erase_c7,
608 }
609 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000610 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000611 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000612 },
613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000614 {
615 .vendor = "Atmel",
616 .name = "AT25FS040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000617 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000618 .manufacture_id = ATMEL_ID,
619 .model_id = AT_25FS040,
620 .total_size = 512,
621 .page_size = 256,
622 .tested = TEST_UNTESTED,
623 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000624 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000625 .block_erasers =
626 {
627 {
628 .eraseblocks = { {4 * 1024, 128} },
629 .block_erase = spi_block_erase_20,
630 }, {
631 .eraseblocks = { {64 * 1024, 8} },
632 .block_erase = spi_block_erase_52,
633 }, {
634 .eraseblocks = { {64 * 1024, 8} },
635 .block_erase = spi_block_erase_d8,
636 }, {
637 .eraseblocks = { {512 * 1024, 1} },
638 .block_erase = spi_block_erase_60,
639 }, {
640 .eraseblocks = { {512 * 1024, 1} },
641 .block_erase = spi_block_erase_c7,
642 }
643 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000644 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000645 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000646 },
647
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000648 {
649 .vendor = "Atmel",
650 .name = "AT26DF041",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000651 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000652 .manufacture_id = ATMEL_ID,
653 .model_id = AT_26DF041,
654 .total_size = 512,
655 .page_size = 256,
656 .tested = TEST_UNTESTED,
657 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000658 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000659 .block_erasers =
660 {
661 {
662 .eraseblocks = { {4 * 1024, 128} },
663 .block_erase = spi_block_erase_20,
664 }
665 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000666 .write = NULL /* Incompatible Page write */,
667 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000668 },
669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000670 {
671 .vendor = "Atmel",
672 .name = "AT26DF081A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000673 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000674 .manufacture_id = ATMEL_ID,
675 .model_id = AT_26DF081A,
676 .total_size = 1024,
677 .page_size = 256,
678 .tested = TEST_UNTESTED,
679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000680 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000681 .block_erasers =
682 {
683 {
684 .eraseblocks = { {4 * 1024, 256} },
685 .block_erase = spi_block_erase_20,
686 }, {
687 .eraseblocks = { {32 * 1024, 32} },
688 .block_erase = spi_block_erase_52,
689 }, {
690 .eraseblocks = { {64 * 1024, 16} },
691 .block_erase = spi_block_erase_d8,
692 }, {
693 .eraseblocks = { {1024 * 1024, 1} },
694 .block_erase = spi_block_erase_60,
695 }, {
696 .eraseblocks = { {1024 * 1024, 1} },
697 .block_erase = spi_block_erase_c7,
698 }
699 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000700 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000701 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000702 },
703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000704 {
705 .vendor = "Atmel",
706 .name = "AT26DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000707 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000708 .manufacture_id = ATMEL_ID,
709 .model_id = AT_26DF161,
710 .total_size = 2048,
711 .page_size = 256,
712 .tested = TEST_UNTESTED,
713 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000714 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000715 .block_erasers =
716 {
717 {
718 .eraseblocks = { {4 * 1024, 512} },
719 .block_erase = spi_block_erase_20,
720 }, {
721 .eraseblocks = { {32 * 1024, 64} },
722 .block_erase = spi_block_erase_52,
723 }, {
724 .eraseblocks = { {64 * 1024, 32} },
725 .block_erase = spi_block_erase_d8,
726 }, {
727 .eraseblocks = { {2 * 1024 * 1024, 1} },
728 .block_erase = spi_block_erase_60,
729 }, {
730 .eraseblocks = { {2 * 1024 * 1024, 1} },
731 .block_erase = spi_block_erase_c7,
732 }
733 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000734 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000735 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000736 },
737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000738 {
739 .vendor = "Atmel",
740 .name = "AT26DF161A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000741 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000742 .manufacture_id = ATMEL_ID,
743 .model_id = AT_26DF161A,
744 .total_size = 2048,
745 .page_size = 256,
746 .tested = TEST_UNTESTED,
747 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000748 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000749 .block_erasers =
750 {
751 {
752 .eraseblocks = { {4 * 1024, 512} },
753 .block_erase = spi_block_erase_20,
754 }, {
755 .eraseblocks = { {32 * 1024, 64} },
756 .block_erase = spi_block_erase_52,
757 }, {
758 .eraseblocks = { {64 * 1024, 32} },
759 .block_erase = spi_block_erase_d8,
760 }, {
761 .eraseblocks = { {2 * 1024 * 1024, 1} },
762 .block_erase = spi_block_erase_60,
763 }, {
764 .eraseblocks = { {2 * 1024 * 1024, 1} },
765 .block_erase = spi_block_erase_c7,
766 }
767 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000768 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000769 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000770 },
771
772 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000773 /*{
774 .vendor = "Atmel",
775 .name = "AT26DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000776 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000777 .manufacture_id = ATMEL_ID,
778 .model_id = AT_26DF321,
779 .total_size = 4096,
780 .page_size = 256,
781 .tested = TEST_UNTESTED,
782 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000783 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +0000784 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000785 .read = spi_chip_read,
786 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000788 {
789 .vendor = "Atmel",
790 .name = "AT26F004",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000791 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000792 .manufacture_id = ATMEL_ID,
793 .model_id = AT_26F004,
794 .total_size = 512,
795 .page_size = 256,
796 .tested = TEST_UNTESTED,
797 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000798 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +0000799 .block_erasers =
800 {
801 {
802 .eraseblocks = { {4 * 1024, 128} },
803 .block_erase = spi_block_erase_20,
804 }, {
805 .eraseblocks = { {32 * 1024, 16} },
806 .block_erase = spi_block_erase_52,
807 }, {
808 .eraseblocks = { {64 * 1024, 8} },
809 .block_erase = spi_block_erase_d8,
810 }, {
811 .eraseblocks = { {512 * 1024, 1} },
812 .block_erase = spi_block_erase_60,
813 }, {
814 .eraseblocks = { {512 * 1024, 1} },
815 .block_erase = spi_block_erase_c7,
816 }
817 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000818 .write = NULL /* Incompatible Page write */,
819 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +0000820 },
821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000822 {
823 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +0000824 .name = "AT29C512",
Urja Rannikko038a3122009-06-28 19:19:25 +0000825 .bustype = CHIP_BUSTYPE_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +0000826 .manufacture_id = ATMEL_ID,
827 .model_id = AT_29C512,
828 .total_size = 64,
829 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +0000830 .feature_bits = FEATURE_LONG_RESET,
831 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +0000832 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000833 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +0000834 .block_erasers =
835 {
836 {
837 .eraseblocks = { {64 * 1024, 1} },
838 .block_erase = erase_chip_block_jedec,
839 }
840 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +0000841 .write = write_jedec,
842 .read = read_memmapped,
843
844 },
845
846 {
847 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000848 .name = "AT29C010A",
Urja Rannikko161b8852009-06-05 08:47:37 +0000849 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000850 .manufacture_id = ATMEL_ID,
851 .model_id = AT_29C010A,
852 .total_size = 128,
853 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +0000854 .feature_bits = FEATURE_LONG_RESET,
Michael Karcher98eff462010-03-24 22:55:56 +0000855 .tested = TEST_OK_PREW,
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000856 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000857 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +0000858 .block_erasers =
859 {
860 {
861 .eraseblocks = { {128 * 1024, 1} },
862 .block_erase = erase_chip_block_jedec,
863 }
864 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +0000865 .write = write_jedec, /* FIXME */
866 .read = read_memmapped,
867 },
868
869 {
870 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000871 .name = "AT29C020",
Urja Rannikko161b8852009-06-05 08:47:37 +0000872 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000873 .manufacture_id = ATMEL_ID,
874 .model_id = AT_29C020,
875 .total_size = 256,
876 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000877 .feature_bits = FEATURE_LONG_RESET,
878 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000879 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +0000880 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +0000881 .block_erasers =
882 {
883 {
884 .eraseblocks = { {256 * 1024, 1} },
885 .block_erase = erase_chip_block_jedec,
886 }
887 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000888 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000889 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000890 },
891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000892 {
893 .vendor = "Atmel",
894 .name = "AT29C040A",
Urja Rannikko161b8852009-06-05 08:47:37 +0000895 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000896 .manufacture_id = ATMEL_ID,
897 .model_id = AT_29C040A,
898 .total_size = 512,
899 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000900 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000901 .tested = TEST_UNTESTED,
902 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +0000903 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +0000904 .block_erasers =
905 {
906 {
907 .eraseblocks = { {512 * 1024, 1} },
908 .block_erase = erase_chip_block_jedec,
909 }
910 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000911 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000912 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000913 },
914
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000915 {
916 .vendor = "Atmel",
917 .name = "AT45CS1282",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000918 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000919 .manufacture_id = ATMEL_ID,
920 .model_id = AT_45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000921 .total_size = 16896 /* No power of two sizes */,
922 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000923 .tested = TEST_BAD_READ,
924 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000925 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000926 .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 .write = NULL,
942 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000943 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000944
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000945 {
946 .vendor = "Atmel",
947 .name = "AT45DB021D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000948 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000949 .manufacture_id = ATMEL_ID,
950 .model_id = AT_45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000951 .total_size = 256 /* Size can only be determined from status register */,
952 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000953 .tested = TEST_BAD_READ,
954 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000955 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000956 .write = NULL,
957 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000958 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000960 {
961 .vendor = "Atmel",
962 .name = "AT45DB041D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000963 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000964 .manufacture_id = ATMEL_ID,
965 .model_id = AT_45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000966 .total_size = 512 /* Size can only be determined from status register */,
967 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000968 .tested = TEST_BAD_READ,
969 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000970 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000971 .write = NULL,
972 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000973 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000975 {
976 .vendor = "Atmel",
977 .name = "AT45DB081D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000978 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000979 .manufacture_id = ATMEL_ID,
980 .model_id = AT_45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000981 .total_size = 1024 /* Size can only be determined from status register */,
982 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000983 .tested = TEST_BAD_READ,
984 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +0000985 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000986 .write = NULL,
987 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000988 },
FENG yu ningff692fb2008-12-08 18:15:10 +0000989
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000990 {
991 .vendor = "Atmel",
992 .name = "AT45DB161D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +0000993 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000994 .manufacture_id = ATMEL_ID,
995 .model_id = AT_45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +0000996 .total_size = 2048 /* Size can only be determined from status register */,
997 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000998 .tested = TEST_BAD_READ,
999 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001000 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001001 .write = NULL,
1002 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001003 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001005 {
1006 .vendor = "Atmel",
1007 .name = "AT45DB321C",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001008 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001009 .manufacture_id = ATMEL_ID,
1010 .model_id = AT_45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001011 .total_size = 4224 /* No power of two sizes */,
1012 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001013 .tested = TEST_BAD_READ,
1014 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001015 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001016 .write = NULL,
1017 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001018 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001019
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001020 {
1021 .vendor = "Atmel",
1022 .name = "AT45DB321D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001023 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001024 .manufacture_id = ATMEL_ID,
1025 .model_id = AT_45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001026 .total_size = 4096 /* Size can only be determined from status register */,
1027 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001028 .tested = TEST_BAD_READ,
1029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001030 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001031 .write = NULL,
1032 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001033 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001034
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001035 {
1036 .vendor = "Atmel",
1037 .name = "AT45DB642D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001038 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001039 .manufacture_id = ATMEL_ID,
1040 .model_id = AT_45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001041 .total_size = 8192 /* Size can only be determined from status register */,
1042 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001043 .tested = TEST_BAD_READ,
1044 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001045 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001046 .write = NULL,
1047 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001048 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001050 {
1051 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001052 .name = "AT49BV512",
Urja Rannikko161b8852009-06-05 08:47:37 +00001053 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001054 .manufacture_id = ATMEL_ID,
1055 .model_id = AT_49BV512,
1056 .total_size = 64,
1057 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00001058 .feature_bits = FEATURE_EITHER_RESET,
1059 .tested = TEST_UNTESTED,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001060 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001061 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001062 .block_erasers =
1063 {
1064 {
1065 .eraseblocks = { {64 * 1024, 1} },
1066 .block_erase = erase_chip_block_jedec,
1067 }
1068 },
Sean Nelson35727f72010-01-28 23:55:12 +00001069 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001070 .read = read_memmapped,
1071 },
1072
1073 {
1074 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00001075 .name = "AT49F020",
1076 .bustype = CHIP_BUSTYPE_PARALLEL,
1077 .manufacture_id = ATMEL_ID,
1078 .model_id = AT_49F020,
1079 .total_size = 256,
1080 .page_size = 256,
1081 .feature_bits = FEATURE_EITHER_RESET,
1082 .tested = TEST_OK_PREW,
1083 .probe = probe_jedec,
1084 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
1085 .block_erasers =
1086 {
1087 {
1088 .eraseblocks = { {256 * 1024, 1} },
1089 .block_erase = erase_chip_block_jedec,
1090 }
1091 },
1092 .write = write_jedec_1,
1093 .read = read_memmapped,
1094 },
1095
1096 {
1097 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001098 .name = "AT49F002(N)",
Urja Rannikko161b8852009-06-05 08:47:37 +00001099 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001100 .manufacture_id = ATMEL_ID,
1101 .model_id = AT_49F002N,
1102 .total_size = 256,
1103 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001104 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001105 .tested = TEST_UNTESTED,
1106 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001107 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001108 .block_erasers =
1109 {
1110 {
1111 .eraseblocks = {
1112 {16 * 1024, 1},
1113 {8 * 1024, 2},
1114 {96 * 1024, 1},
1115 {128 * 1024, 1},
1116 },
1117 .block_erase = erase_sector_jedec,
1118 }, {
1119 .eraseblocks = { {256 * 1024, 1} },
1120 .block_erase = erase_chip_block_jedec,
1121 }
1122 },
Sean Nelson35727f72010-01-28 23:55:12 +00001123 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001124 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001125 },
1126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001127 {
1128 .vendor = "Atmel",
1129 .name = "AT49F002(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00001130 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001131 .manufacture_id = ATMEL_ID,
1132 .model_id = AT_49F002NT,
1133 .total_size = 256,
1134 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001135 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00001136 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001137 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001138 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = {
1143 {128 * 1024, 1},
1144 {96 * 1024, 1},
1145 {8 * 1024, 2},
1146 {16 * 1024, 1},
1147 },
1148 .block_erase = erase_sector_jedec,
1149 }, {
1150 .eraseblocks = { {256 * 1024, 1} },
1151 .block_erase = erase_chip_block_jedec,
1152 }
1153 },
Sean Nelson35727f72010-01-28 23:55:12 +00001154 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001155 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001156 },
1157
Sean Nelson54596372010-01-09 05:30:14 +00001158 /* The next two chip definitions have top/bottom boot blocks, but has no
Uwe Hermann4e3d0b32010-03-25 23:18:41 +00001159 device differentiation between the two */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001160 {
1161 .vendor = "AMIC",
Sean Nelson54596372010-01-09 05:30:14 +00001162 .name = "A25L40PT",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001163 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001164 .manufacture_id = AMIC_ID,
1165 .model_id = AMIC_A25L40P,
1166 .total_size = 512,
1167 .page_size = 256,
Sean Nelson54596372010-01-09 05:30:14 +00001168 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001169 .probe = probe_spi_rdid4,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001170 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001171 .block_erasers =
1172 {
1173 {
1174 .eraseblocks = {
1175 {64 * 1024, 7},
1176 {32 * 1024, 1},
1177 {16 * 1024, 1},
1178 {8 * 1024, 1},
1179 {4 * 1024, 2},
1180 },
1181 .block_erase = spi_block_erase_d8,
1182 }, {
Sean Nelson2aff7aa2010-01-18 08:24:02 +00001183 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00001184 .block_erase = spi_block_erase_c7,
1185 }
1186 },
1187 .write = spi_chip_write_256,
1188 .read = spi_chip_read,
1189 },
1190
1191 {
1192 .vendor = "AMIC",
1193 .name = "A25L40PU",
1194 .bustype = CHIP_BUSTYPE_SPI,
1195 .manufacture_id = AMIC_ID,
1196 .model_id = AMIC_A25L40P,
1197 .total_size = 512,
1198 .page_size = 256,
1199 .tested = TEST_OK_PRW,
1200 .probe = probe_spi_rdid4,
1201 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001202 .block_erasers =
1203 {
1204 {
1205 .eraseblocks = {
1206 {4 * 1024, 2},
1207 {8 * 1024, 1},
1208 {16 * 1024, 1},
1209 {32 * 1024, 1},
1210 {64 * 1024, 7},
1211 },
1212 .block_erase = spi_block_erase_d8,
1213 }, {
Sean Nelson2aff7aa2010-01-18 08:24:02 +00001214 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00001215 .block_erase = spi_block_erase_c7,
1216 }
1217 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001218 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001219 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001220 },
1221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001222 {
1223 .vendor = "AMIC",
1224 .name = "A29002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00001225 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001226 .manufacture_id = AMIC_ID_NOPREFIX,
1227 .model_id = AMIC_A29002B,
1228 .total_size = 256,
1229 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00001230 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001231 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00001232 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001233 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001234 .block_erasers =
1235 {
1236 {
1237 .eraseblocks = {
1238 {16 * 1024, 1},
1239 {8 * 1024, 2},
1240 {32 * 1024, 1},
1241 {64 * 1024, 3},
1242 },
Sean Nelson35727f72010-01-28 23:55:12 +00001243 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001244 }, {
1245 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00001246 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001247 },
1248 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00001249 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001250 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001251 },
1252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001253 {
1254 .vendor = "AMIC",
1255 .name = "A29002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00001256 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001257 .manufacture_id = AMIC_ID_NOPREFIX,
1258 .model_id = AMIC_A29002T,
1259 .total_size = 256,
1260 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00001261 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00001262 .tested = TEST_OK_PRW,
Sean Nelson35727f72010-01-28 23:55:12 +00001263 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001264 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00001265 .block_erasers =
1266 {
1267 {
1268 .eraseblocks = {
1269 {64 * 1024, 3},
1270 {32 * 1024, 1},
1271 {8 * 1024, 2},
1272 {16 * 1024, 1},
1273 },
Sean Nelson35727f72010-01-28 23:55:12 +00001274 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001275 }, {
1276 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00001277 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00001278 },
1279 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00001280 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001281 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001282 },
1283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001284 {
1285 .vendor = "AMIC",
1286 .name = "A29040B",
Urja Rannikko161b8852009-06-05 08:47:37 +00001287 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001288 .manufacture_id = AMIC_ID_NOPREFIX,
1289 .model_id = AMIC_A29040B,
1290 .total_size = 512,
1291 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00001292 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1293 .tested = TEST_UNTESTED,
1294 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001295 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +00001296 .block_erasers =
1297 {
1298 {
1299 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00001300 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00001301 }, {
1302 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00001303 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00001304 },
1305 },
Sean Nelson35727f72010-01-28 23:55:12 +00001306 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001307 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001308 },
1309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001310 {
1311 .vendor = "AMIC",
1312 .name = "A49LF040A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001313 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001314 .manufacture_id = AMIC_ID_NOPREFIX,
1315 .model_id = AMIC_A49LF040A,
1316 .total_size = 512,
1317 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00001318 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00001319 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001320 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001321 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson54596372010-01-09 05:30:14 +00001322 .block_erasers =
1323 {
1324 {
1325 .eraseblocks = { {64 * 1024, 8} },
1326 .block_erase = erase_block_jedec,
1327 }, {
1328 .eraseblocks = { {512 * 1024, 1} },
1329 .block_erase = erase_chip_block_jedec,
1330 }
1331 },
Sean Nelson36172342010-02-27 18:01:15 +00001332 .unlock = unlock_49fl00x,
1333 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001334 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001335 },
1336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001337 {
1338 .vendor = "EMST",
1339 .name = "F49B002UA",
Urja Rannikko161b8852009-06-05 08:47:37 +00001340 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001341 .manufacture_id = EMST_ID,
1342 .model_id = EMST_F49B002UA,
1343 .total_size = 256,
1344 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00001345 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001346 .tested = TEST_UNTESTED,
1347 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001348 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00001349 .block_erasers =
1350 {
1351 {
1352 .eraseblocks = {
1353 {128 * 1024, 1},
1354 {96 * 1024, 1},
1355 {8 * 1024, 2},
1356 {16 * 1024, 1},
1357 },
1358 .block_erase = erase_sector_jedec,
1359 }, {
1360 .eraseblocks = { {256 * 1024, 1} },
1361 .block_erase = erase_chip_block_jedec,
1362 }
1363 },
Sean Nelson35727f72010-01-28 23:55:12 +00001364 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001365 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001366 },
1367
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001368 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00001369 .vendor = "EMST",
1370 .name = "F25L008A",
1371 .bustype = CHIP_BUSTYPE_SPI,
1372 .manufacture_id = EMST_ID,
1373 .model_id = EMST_F25L008A,
1374 .total_size = 1024,
1375 .page_size = 256,
1376 .tested = TEST_UNTESTED,
1377 .probe = probe_spi_rdid,
1378 .probe_timing = TIMING_ZERO,
1379 .block_erasers =
1380 {
1381 {
1382 .eraseblocks = { {4 * 1024, 256} },
1383 .block_erase = spi_block_erase_20,
1384 }, {
1385 .eraseblocks = { {64 * 1024, 16} },
1386 .block_erase = spi_block_erase_d8,
1387 }, {
1388 .eraseblocks = { {1024 * 1024, 1} },
1389 .block_erase = spi_block_erase_60,
1390 }, {
1391 .eraseblocks = { {1024 * 1024, 1} },
1392 .block_erase = spi_block_erase_c7,
1393 }
1394 },
1395 .write = spi_aai_write,
1396 .read = read_memmapped,
1397 },
1398
1399 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001400 .vendor = "Eon",
1401 .name = "EN25B05",
1402 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001403 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001404 .model_id = EN_25B05,
1405 .total_size = 64,
1406 .page_size = 256,
1407 .tested = TEST_UNTESTED,
1408 .probe = probe_spi_rdid,
1409 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001410 .block_erasers =
1411 {
1412 {
1413 .eraseblocks = {
1414 {4 * 1024, 2},
1415 {8 * 1024, 1},
1416 {16 * 1024, 1},
1417 {32 * 1024, 1},
1418 },
1419 .block_erase = spi_block_erase_d8,
1420 }, {
1421 .eraseblocks = { {64 * 1024, 1} },
1422 .block_erase = spi_block_erase_c7,
1423 }
1424 },
1425 .write = spi_chip_write_256,
1426 .read = spi_chip_read,
1427 },
1428
1429 {
1430 .vendor = "Eon",
1431 .name = "EN25B05T",
1432 .bustype = CHIP_BUSTYPE_SPI,
1433 .manufacture_id = EON_ID_NOPREFIX,
1434 .model_id = EN_25B05,
1435 .total_size = 64,
1436 .page_size = 256,
1437 .tested = TEST_UNTESTED,
1438 .probe = probe_spi_rdid,
1439 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001440 .block_erasers =
1441 {
1442 {
1443 .eraseblocks = {
1444 {32 * 1024, 1},
1445 {16 * 1024, 1},
1446 {8 * 1024, 1},
1447 {4 * 1024, 2},
1448 },
1449 .block_erase = spi_block_erase_d8,
1450 }, {
1451 .eraseblocks = { {64 * 1024, 1} },
1452 .block_erase = spi_block_erase_c7,
1453 }
1454 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001455 .write = spi_chip_write_256,
1456 .read = spi_chip_read,
1457 },
1458
1459 {
1460 .vendor = "Eon",
1461 .name = "EN25B10",
1462 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001463 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001464 .model_id = EN_25B10,
1465 .total_size = 128,
1466 .page_size = 256,
1467 .tested = TEST_UNTESTED,
1468 .probe = probe_spi_rdid,
1469 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001470 .block_erasers =
1471 {
1472 {
1473 .eraseblocks = {
1474 {4 * 1024, 2},
1475 {8 * 1024, 1},
1476 {16 * 1024, 1},
1477 {32 * 1024, 3},
1478 },
1479 .block_erase = spi_block_erase_d8,
1480 }, {
1481 .eraseblocks = { {128 * 1024, 1} },
1482 .block_erase = spi_block_erase_c7,
1483 }
1484 },
1485 .write = spi_chip_write_256,
1486 .read = spi_chip_read,
1487 },
1488
1489 {
1490 .vendor = "Eon",
1491 .name = "EN25B10T",
1492 .bustype = CHIP_BUSTYPE_SPI,
1493 .manufacture_id = EON_ID_NOPREFIX,
1494 .model_id = EN_25B10,
1495 .total_size = 128,
1496 .page_size = 256,
1497 .tested = TEST_UNTESTED,
1498 .probe = probe_spi_rdid,
1499 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001500 .block_erasers =
1501 {
1502 {
1503 .eraseblocks = {
1504 {32 * 1024, 3},
1505 {16 * 1024, 1},
1506 {8 * 1024, 1},
1507 {4 * 1024, 2},
1508 },
1509 .block_erase = spi_block_erase_d8,
1510 }, {
1511 .eraseblocks = { {128 * 1024, 1} },
1512 .block_erase = spi_block_erase_c7,
1513 }
1514 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001515 .write = spi_chip_write_256,
1516 .read = spi_chip_read,
1517 },
1518
1519 {
1520 .vendor = "Eon",
1521 .name = "EN25B20",
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_25B20,
1525 .total_size = 256,
1526 .page_size = 256,
1527 .tested = TEST_UNTESTED,
1528 .probe = probe_spi_rdid,
1529 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001530 .block_erasers =
1531 {
1532 {
1533 .eraseblocks = {
1534 {4 * 1024, 2},
1535 {8 * 1024, 1},
1536 {16 * 1024, 1},
1537 {32 * 1024, 1},
1538 {64 * 1024, 3}
1539 },
1540 .block_erase = spi_block_erase_d8,
1541 }, {
1542 .eraseblocks = { {256 * 1024, 1} },
1543 .block_erase = spi_block_erase_c7,
1544 }
1545 },
1546 .write = spi_chip_write_256,
1547 .read = spi_chip_read,
1548 },
1549
1550 {
1551 .vendor = "Eon",
1552 .name = "EN25B20T",
1553 .bustype = CHIP_BUSTYPE_SPI,
1554 .manufacture_id = EON_ID_NOPREFIX,
1555 .model_id = EN_25B20,
1556 .total_size = 256,
1557 .page_size = 256,
1558 .tested = TEST_UNTESTED,
1559 .probe = probe_spi_rdid,
1560 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001561 .block_erasers =
1562 {
1563 {
1564 .eraseblocks = {
1565 {64 * 1024, 3},
1566 {32 * 1024, 1},
1567 {16 * 1024, 1},
1568 {8 * 1024, 1},
1569 {4 * 1024, 2},
1570 },
1571 .block_erase = spi_block_erase_d8,
1572 }, {
1573 .eraseblocks = { {256 * 1024, 1} },
1574 .block_erase = spi_block_erase_c7,
1575 }
1576 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001577 .write = spi_chip_write_256,
1578 .read = spi_chip_read,
1579 },
1580
1581 {
1582 .vendor = "Eon",
1583 .name = "EN25B40",
1584 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001585 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001586 .model_id = EN_25B40,
1587 .total_size = 512,
1588 .page_size = 256,
1589 .tested = TEST_UNTESTED,
1590 .probe = probe_spi_rdid,
1591 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001592 .block_erasers =
1593 {
1594 {
1595 .eraseblocks = {
1596 {4 * 1024, 2},
1597 {8 * 1024, 1},
1598 {16 * 1024, 1},
1599 {32 * 1024, 1},
1600 {64 * 1024, 7}
1601 },
1602 .block_erase = spi_block_erase_d8,
1603 }, {
1604 .eraseblocks = { {512 * 1024, 1} },
1605 .block_erase = spi_block_erase_c7,
1606 }
1607 },
1608 .write = spi_chip_write_256,
1609 .read = spi_chip_read,
1610 },
1611
1612 {
1613 .vendor = "Eon",
1614 .name = "EN25B40T",
1615 .bustype = CHIP_BUSTYPE_SPI,
1616 .manufacture_id = EON_ID_NOPREFIX,
1617 .model_id = EN_25B40,
1618 .total_size = 512,
1619 .page_size = 256,
1620 .tested = TEST_UNTESTED,
1621 .probe = probe_spi_rdid,
1622 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001623 .block_erasers =
1624 {
1625 {
1626 .eraseblocks = {
1627 {64 * 1024, 7},
1628 {32 * 1024, 1},
1629 {16 * 1024, 1},
1630 {8 * 1024, 1},
1631 {4 * 1024, 2},
1632 },
1633 .block_erase = spi_block_erase_d8,
1634 }, {
1635 .eraseblocks = { {512 * 1024, 1} },
1636 .block_erase = spi_block_erase_c7,
1637 }
1638 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001639 .write = spi_chip_write_256,
1640 .read = spi_chip_read,
1641 },
1642
1643 {
1644 .vendor = "Eon",
1645 .name = "EN25B80",
1646 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001647 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001648 .model_id = EN_25B80,
1649 .total_size = 1024,
1650 .page_size = 256,
1651 .tested = TEST_UNTESTED,
1652 .probe = probe_spi_rdid,
1653 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001654 .block_erasers =
1655 {
1656 {
1657 .eraseblocks = {
1658 {4 * 1024, 2},
1659 {8 * 1024, 1},
1660 {16 * 1024, 1},
1661 {32 * 1024, 1},
1662 {64 * 1024, 15}
1663 },
1664 .block_erase = spi_block_erase_d8,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .write = spi_chip_write_256,
1671 .read = spi_chip_read,
1672 },
1673
1674 {
1675 .vendor = "Eon",
1676 .name = "EN25B80T",
1677 .bustype = CHIP_BUSTYPE_SPI,
1678 .manufacture_id = EON_ID_NOPREFIX,
1679 .model_id = EN_25B80,
1680 .total_size = 1024,
1681 .page_size = 256,
1682 .tested = TEST_UNTESTED,
1683 .probe = probe_spi_rdid,
1684 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001685 .block_erasers =
1686 {
1687 {
1688 .eraseblocks = {
1689 {64 * 1024, 15},
1690 {32 * 1024, 1},
1691 {16 * 1024, 1},
1692 {8 * 1024, 1},
1693 {4 * 1024, 2},
1694 },
1695 .block_erase = spi_block_erase_d8,
1696 }, {
1697 .eraseblocks = { {1024 * 1024, 1} },
1698 .block_erase = spi_block_erase_c7,
1699 }
1700 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001701 .write = spi_chip_write_256,
1702 .read = spi_chip_read,
1703 },
1704
1705 {
1706 .vendor = "Eon",
1707 .name = "EN25B16",
1708 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001709 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001710 .model_id = EN_25B16,
1711 .total_size = 2048,
1712 .page_size = 256,
1713 .tested = TEST_UNTESTED,
1714 .probe = probe_spi_rdid,
1715 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001716 .block_erasers =
1717 {
1718 {
1719 .eraseblocks = {
1720 {4 * 1024, 2},
1721 {8 * 1024, 1},
1722 {16 * 1024, 1},
1723 {32 * 1024, 1},
1724 {64 * 1024, 31},
1725 },
1726 .block_erase = spi_block_erase_d8,
1727 }, {
1728 .eraseblocks = { {2 * 1024 * 1024, 1} },
1729 .block_erase = spi_block_erase_c7,
1730 }
1731 },
1732 .write = spi_chip_write_256,
1733 .read = spi_chip_read,
1734 },
1735
1736 {
1737 .vendor = "Eon",
1738 .name = "EN25B16T",
1739 .bustype = CHIP_BUSTYPE_SPI,
1740 .manufacture_id = EON_ID_NOPREFIX,
1741 .model_id = EN_25B16,
1742 .total_size = 2048,
1743 .page_size = 256,
1744 .tested = TEST_UNTESTED,
1745 .probe = probe_spi_rdid,
1746 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001747 .block_erasers =
1748 {
1749 {
1750 .eraseblocks = {
1751 {64 * 1024, 31},
1752 {32 * 1024, 1},
1753 {16 * 1024, 1},
1754 {8 * 1024, 1},
1755 {4 * 1024, 2},
1756 },
1757 .block_erase = spi_block_erase_d8,
1758 }, {
1759 .eraseblocks = { {2 * 1024 * 1024, 1} },
1760 .block_erase = spi_block_erase_c7,
1761 }
1762 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001763 .write = spi_chip_write_256,
1764 .read = spi_chip_read,
1765 },
1766
1767 {
1768 .vendor = "Eon",
1769 .name = "EN25B32",
1770 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001771 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001772 .model_id = EN_25B32,
1773 .total_size = 4096,
1774 .page_size = 256,
1775 .tested = TEST_UNTESTED,
1776 .probe = probe_spi_rdid,
1777 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001778 .block_erasers =
1779 {
1780 {
1781 .eraseblocks = {
1782 {4 * 1024, 2},
1783 {8 * 1024, 1},
1784 {16 * 1024, 1},
1785 {32 * 1024, 1},
1786 {64 * 1024, 63},
1787 },
1788 .block_erase = spi_block_erase_d8,
1789 }, {
1790 .eraseblocks = { {4 * 1024 * 1024, 1} },
1791 .block_erase = spi_block_erase_c7,
1792 }
1793 },
1794 .write = spi_chip_write_256,
1795 .read = spi_chip_read,
1796 },
1797
1798 {
1799 .vendor = "Eon",
1800 .name = "EN25B32T",
1801 .bustype = CHIP_BUSTYPE_SPI,
1802 .manufacture_id = EON_ID_NOPREFIX,
1803 .model_id = EN_25B32,
1804 .total_size = 4096,
1805 .page_size = 256,
1806 .tested = TEST_UNTESTED,
1807 .probe = probe_spi_rdid,
1808 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001809 .block_erasers =
1810 {
1811 {
1812 .eraseblocks = {
1813 {64 * 1024, 63},
1814 {32 * 1024, 1},
1815 {16 * 1024, 1},
1816 {8 * 1024, 1},
1817 {4 * 1024, 2},
1818 },
1819 .block_erase = spi_block_erase_d8,
1820 }, {
1821 .eraseblocks = { {4 * 1024 * 1024, 1} },
1822 .block_erase = spi_block_erase_c7,
1823 }
1824 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001825 .write = spi_chip_write_256,
1826 .read = spi_chip_read,
1827 },
1828
1829 {
1830 .vendor = "Eon",
1831 .name = "EN25B64",
1832 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001833 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001834 .model_id = EN_25B64,
1835 .total_size = 8192,
1836 .page_size = 256,
1837 .tested = TEST_UNTESTED,
1838 .probe = probe_spi_rdid,
1839 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001840 .block_erasers =
1841 {
1842 {
1843 .eraseblocks = {
1844 {4 * 1024, 2},
1845 {8 * 1024, 1},
1846 {16 * 1024, 1},
1847 {32 * 1024, 1},
1848 {64 * 1024, 127},
1849 },
1850 .block_erase = spi_block_erase_d8,
1851 }, {
1852 .eraseblocks = { {8 * 1024 * 1024, 1} },
1853 .block_erase = spi_block_erase_c7,
1854 }
1855 },
1856 .write = spi_chip_write_256,
1857 .read = spi_chip_read,
1858 },
1859
1860 {
1861 .vendor = "Eon",
1862 .name = "EN25B64T",
1863 .bustype = CHIP_BUSTYPE_SPI,
1864 .manufacture_id = EON_ID_NOPREFIX,
1865 .model_id = EN_25B64,
1866 .total_size = 8192,
1867 .page_size = 256,
1868 .tested = TEST_UNTESTED,
1869 .probe = probe_spi_rdid,
1870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001871 .block_erasers =
1872 {
1873 {
1874 .eraseblocks = {
1875 {64 * 1024, 127},
1876 {32 * 1024, 1},
1877 {16 * 1024, 1},
1878 {8 * 1024, 1},
1879 {4 * 1024, 2},
1880 },
1881 .block_erase = spi_block_erase_d8,
1882 }, {
1883 .eraseblocks = { {8 * 1024 * 1024, 1} },
1884 .block_erase = spi_block_erase_c7,
1885 }
1886 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00001887 .write = spi_chip_write_256,
1888 .read = spi_chip_read,
1889 },
1890
1891 {
1892 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001893 .name = "EN25D16",
1894 .bustype = CHIP_BUSTYPE_SPI,
1895 .manufacture_id = EON_ID_NOPREFIX,
1896 .model_id = EN_25D16,
1897 .total_size = 2048,
1898 .page_size = 256,
1899 .tested = TEST_UNTESTED,
1900 .probe = probe_spi_rdid,
1901 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001902 .block_erasers =
1903 {
1904 {
1905 .eraseblocks = { {4 * 1024, 512} },
1906 .block_erase = spi_block_erase_20,
1907 }, {
1908 .eraseblocks = { {64 * 1024, 32} },
1909 .block_erase = spi_block_erase_d8,
1910 }, {
1911 .eraseblocks = { {64 * 1024, 32} },
1912 .block_erase = spi_block_erase_52,
1913 }, {
1914 .eraseblocks = { {2 * 1024 * 1024, 1} },
1915 .block_erase = spi_block_erase_60,
1916 }, {
1917 .eraseblocks = { {2 * 1024 * 1024, 1} },
1918 .block_erase = spi_block_erase_c7,
1919 }
1920 },
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001921 .write = spi_chip_write_256,
1922 .read = spi_chip_read,
1923 },
1924
1925 {
1926 .vendor = "Eon",
1927 .name = "EN25F05",
1928 .bustype = CHIP_BUSTYPE_SPI,
1929 .manufacture_id = EON_ID_NOPREFIX,
1930 .model_id = EN_25F05,
1931 .total_size = 64,
1932 .page_size = 256,
1933 .tested = TEST_UNTESTED,
1934 .probe = probe_spi_rdid,
1935 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001936 .block_erasers =
1937 {
1938 {
1939 .eraseblocks = { {4 * 1024, 16} },
1940 .block_erase = spi_block_erase_20,
1941 }, {
1942 .eraseblocks = { {32 * 1024, 2} },
1943 .block_erase = spi_block_erase_d8,
1944 }, {
1945 .eraseblocks = { {32 * 1024, 2} },
1946 .block_erase = spi_block_erase_52,
1947 }, {
1948 .eraseblocks = { {64 * 1024, 1} },
1949 .block_erase = spi_block_erase_60,
1950 }, {
1951 .eraseblocks = { {64 * 1024, 1} },
1952 .block_erase = spi_block_erase_c7,
1953 }
1954 },
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001955 .write = spi_chip_write_256,
1956 .read = spi_chip_read,
1957 },
1958
1959 {
1960 .vendor = "Eon",
1961 .name = "EN25F10",
1962 .bustype = CHIP_BUSTYPE_SPI,
1963 .manufacture_id = EON_ID_NOPREFIX,
1964 .model_id = EN_25F10,
1965 .total_size = 128,
1966 .page_size = 256,
1967 .tested = TEST_UNTESTED,
1968 .probe = probe_spi_rdid,
1969 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00001970 .block_erasers =
1971 {
1972 {
1973 .eraseblocks = { {4 * 1024, 32} },
1974 .block_erase = spi_block_erase_20,
1975 }, {
1976 .eraseblocks = { {32 * 1024, 4} },
1977 .block_erase = spi_block_erase_d8,
1978 }, {
1979 .eraseblocks = { {32 * 1024, 4} },
1980 .block_erase = spi_block_erase_52,
1981 }, {
1982 .eraseblocks = { {128 * 1024, 1} },
1983 .block_erase = spi_block_erase_60,
1984 }, {
1985 .eraseblocks = { {128 * 1024, 1} },
1986 .block_erase = spi_block_erase_c7,
1987 }
1988 },
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00001989 .write = spi_chip_write_256,
1990 .read = spi_chip_read,
1991 },
1992
1993 {
1994 .vendor = "Eon",
1995 .name = "EN25F20",
1996 .bustype = CHIP_BUSTYPE_SPI,
1997 .manufacture_id = EON_ID_NOPREFIX,
1998 .model_id = EN_25F20,
1999 .total_size = 256,
2000 .page_size = 256,
2001 .tested = TEST_UNTESTED,
2002 .probe = probe_spi_rdid,
2003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002004 .block_erasers =
2005 {
2006 {
2007 .eraseblocks = { {4 * 1024, 64} },
2008 .block_erase = spi_block_erase_20,
2009 }, {
2010 .eraseblocks = { {64 * 1024, 4} },
2011 .block_erase = spi_block_erase_d8,
2012 }, {
2013 .eraseblocks = { {64 * 1024, 4} },
2014 .block_erase = spi_block_erase_52,
2015 }, {
2016 .eraseblocks = { {256 * 1024, 1} },
2017 .block_erase = spi_block_erase_60,
2018 }, {
2019 .eraseblocks = { {256 * 1024, 1} },
2020 .block_erase = spi_block_erase_c7,
2021 }
2022 },
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002023 .write = spi_chip_write_256,
2024 .read = spi_chip_read,
2025 },
2026
2027 {
2028 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002029 .name = "EN25F40",
2030 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002031 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002032 .model_id = EN_25F40,
2033 .total_size = 512,
2034 .page_size = 256,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00002035 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002036 .probe = probe_spi_rdid,
2037 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002038 .block_erasers =
2039 {
2040 {
Sean Nelson54596372010-01-09 05:30:14 +00002041 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002042 .block_erase = spi_block_erase_20,
2043 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002044 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002045 .block_erase = spi_block_erase_d8,
2046 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002047 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002048 .block_erase = spi_block_erase_60,
2049 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002050 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002051 .block_erase = spi_block_erase_c7,
2052 },
2053 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002054 .write = spi_chip_write_256,
2055 .read = spi_chip_read,
2056 },
2057
2058 {
2059 .vendor = "Eon",
2060 .name = "EN25F80",
2061 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002062 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002063 .model_id = EN_25F80,
2064 .total_size = 1024,
2065 .page_size = 256,
Uwe Hermannea5425b2010-05-30 17:00:19 +00002066 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002067 .probe = probe_spi_rdid,
2068 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002069 .block_erasers =
2070 {
2071 {
2072 .eraseblocks = { {4 * 1024, 256} },
2073 .block_erase = spi_block_erase_20,
2074 }, {
2075 .eraseblocks = { {64 * 1024, 16} },
2076 .block_erase = spi_block_erase_d8,
2077 }, {
2078 .eraseblocks = { {1024 * 1024, 1} },
2079 .block_erase = spi_block_erase_60,
2080 }, {
2081 .eraseblocks = { {1024 * 1024, 1} },
2082 .block_erase = spi_block_erase_c7,
2083 }
2084 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002085 .write = spi_chip_write_256,
2086 .read = spi_chip_read,
2087 },
2088
2089 {
2090 .vendor = "Eon",
2091 .name = "EN25F16",
2092 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002093 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002094 .model_id = EN_25F16,
2095 .total_size = 2048,
2096 .page_size = 256,
2097 .tested = TEST_UNTESTED,
2098 .probe = probe_spi_rdid,
2099 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002100 .block_erasers =
2101 {
2102 {
2103 .eraseblocks = { {4 * 1024, 512} },
2104 .block_erase = spi_block_erase_20,
2105 }, {
2106 .eraseblocks = { {64 * 1024, 32} },
2107 .block_erase = spi_block_erase_d8,
2108 }, {
2109 .eraseblocks = { {2 * 1024 * 1024, 1} },
2110 .block_erase = spi_block_erase_60,
2111 }, {
2112 .eraseblocks = { {2 * 1024 * 1024, 1} },
2113 .block_erase = spi_block_erase_c7,
2114 }
2115 },
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002116 .write = spi_chip_write_256,
2117 .read = spi_chip_read,
2118 },
2119
2120 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002121 .vendor = "Eon",
2122 .name = "EN25F32",
2123 .bustype = CHIP_BUSTYPE_SPI,
2124 .manufacture_id = EON_ID_NOPREFIX,
2125 .model_id = EN_25F32,
2126 .total_size = 4096,
2127 .page_size = 256,
2128 .tested = TEST_UNTESTED,
2129 .probe = probe_spi_rdid,
2130 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002131 .block_erasers =
2132 {
2133 {
2134 .eraseblocks = { {4 * 1024, 1024} },
2135 .block_erase = spi_block_erase_20,
2136 }, {
2137 .eraseblocks = { {64 * 1024, 64} },
2138 .block_erase = spi_block_erase_d8,
2139 }, {
2140 .eraseblocks = { {4 * 1024 * 1024, 1} },
2141 .block_erase = spi_block_erase_60,
2142 }, {
2143 .eraseblocks = { {4 * 1024 * 1024, 1} },
2144 .block_erase = spi_block_erase_c7,
2145 }
2146 },
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002147 .write = spi_chip_write_256,
2148 .read = spi_chip_read,
2149 },
2150
2151 {
Russ Dill3cd5a122010-03-05 08:44:11 +00002152 .vendor = "Eon",
2153 .name = "EN29F010",
2154 .bustype = CHIP_BUSTYPE_PARALLEL,
2155 .manufacture_id = EON_ID,
2156 .model_id = EN_29F010,
2157 .total_size = 128,
2158 .page_size = 128,
2159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
2160 .tested = TEST_OK_PREW,
2161 .probe = probe_jedec,
2162 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2163 .block_erasers =
2164 {
2165 {
2166 .eraseblocks = { {16 * 1024, 8} },
2167 .block_erase = erase_sector_jedec,
2168 },
2169 {
2170 .eraseblocks = { {128 * 1024, 1} },
2171 .block_erase = erase_chip_block_jedec,
2172 },
2173 },
2174 .write = write_jedec_1,
2175 .read = read_memmapped,
2176 },
2177
2178 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 .vendor = "EON",
2180 .name = "EN29F002(A)(N)B",
Urja Rannikko161b8852009-06-05 08:47:37 +00002181 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .manufacture_id = EON_ID,
2183 .model_id = EN_29F002B,
2184 .total_size = 256,
2185 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002186 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Michael Karcherb90c2212010-03-24 22:56:14 +00002187 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002189 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002190 .block_erasers =
2191 {
2192 {
2193 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00002194 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00002195 {8 * 1024, 2},
2196 {32 * 1024, 1},
2197 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00002198 },
2199 .block_erase = erase_sector_jedec,
2200 }, {
2201 .eraseblocks = { {256 * 1024, 1} },
2202 .block_erase = erase_chip_block_jedec,
2203 },
2204 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002205 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002206 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002207 },
2208
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 {
2210 .vendor = "EON",
2211 .name = "EN29F002(A)(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00002212 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002213 .manufacture_id = EON_ID,
2214 .model_id = EN_29F002T,
2215 .total_size = 256,
2216 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002217 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00002218 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002219 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002220 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002221 .block_erasers =
2222 {
2223 {
2224 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00002225 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00002226 {32 * 1024, 1},
2227 {8 * 1024, 2},
2228 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00002229 },
2230 .block_erase = erase_sector_jedec,
2231 }, {
2232 .eraseblocks = { {256 * 1024, 1} },
2233 .block_erase = erase_chip_block_jedec,
2234 },
2235 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002236 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002237 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002238 },
2239
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002240 {
2241 .vendor = "Fujitsu",
2242 .name = "MBM29F004BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002243 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 .manufacture_id = FUJITSU_ID,
2245 .model_id = MBM29F004BC,
2246 .total_size = 512,
2247 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002248 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002249 .tested = TEST_UNTESTED,
2250 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002251 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002252 .block_erasers =
2253 {
2254 {
2255 .eraseblocks = {
2256 {16 * 1024, 1},
2257 {8 * 1024, 2},
2258 {32 * 1024, 1},
2259 {64 * 1024, 7},
2260 },
Sean Nelson35727f72010-01-28 23:55:12 +00002261 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002262 }, {
2263 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00002264 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002265 },
2266 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002267 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002268 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002269 },
2270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002271 {
2272 .vendor = "Fujitsu",
2273 .name = "MBM29F004TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002274 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .manufacture_id = FUJITSU_ID,
2276 .model_id = MBM29F004TC,
2277 .total_size = 512,
2278 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002279 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002280 .tested = TEST_UNTESTED,
2281 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002282 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002283 .block_erasers =
2284 {
2285 {
2286 .eraseblocks = {
2287 {64 * 1024, 7},
2288 {32 * 1024, 1},
2289 {8 * 1024, 2},
2290 {16 * 1024, 1},
2291 },
Sean Nelson35727f72010-01-28 23:55:12 +00002292 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002293 }, {
2294 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00002295 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002296 },
2297 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002298 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002299 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002300 },
2301
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 {
Sean Nelson35727f72010-01-28 23:55:12 +00002303 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002304 .vendor = "Fujitsu",
2305 .name = "MBM29F400BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002306 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002307 .manufacture_id = FUJITSU_ID,
2308 .model_id = MBM29F400BC,
2309 .total_size = 512,
2310 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002311 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002312 .tested = TEST_UNTESTED,
2313 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002314 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002315 .block_erasers =
2316 {
2317 {
2318 .eraseblocks = {
2319 {16 * 1024, 1},
2320 {8 * 1024, 2},
2321 {32 * 1024, 1},
2322 {64 * 1024, 7},
2323 },
2324 .block_erase = block_erase_m29f400bt,
2325 }, {
2326 .eraseblocks = { {512 * 1024, 1} },
2327 .block_erase = block_erase_chip_m29f400bt,
2328 },
2329 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002330 .write = write_coreboot_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002331 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002332 },
2333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 {
2335 .vendor = "Fujitsu",
2336 .name = "MBM29F400TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002337 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 .manufacture_id = FUJITSU_ID,
2339 .model_id = MBM29F400TC,
2340 .total_size = 512,
2341 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002342 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002343 .tested = TEST_UNTESTED,
2344 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002345 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002346 .block_erasers =
2347 {
2348 {
2349 .eraseblocks = {
2350 {64 * 1024, 7},
2351 {32 * 1024, 1},
2352 {8 * 1024, 2},
2353 {16 * 1024, 1},
2354 },
2355 .block_erase = block_erase_m29f400bt,
2356 }, {
2357 .eraseblocks = { {512 * 1024, 1} },
2358 .block_erase = block_erase_chip_m29f400bt,
2359 },
2360 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002361 .write = write_coreboot_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002362 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002363 },
2364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002365 {
David Borgc96a8bd2010-06-21 16:12:22 +00002366 .vendor = "Hyundai",
2367 .name = "HY29F002T",
2368 .bustype = CHIP_BUSTYPE_PARALLEL,
2369 .manufacture_id = HYUNDAI_ID,
2370 .model_id = HY_29F002T,
2371 .total_size = 256,
2372 .page_size = 256 * 1024,
2373 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
2374 .tested = TEST_OK_PREW,
2375 .probe = probe_jedec,
2376 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2377 .block_erasers =
2378 {
2379 {
2380 .eraseblocks = {
2381 {64 * 1024, 3},
2382 {32 * 1024, 1},
2383 {8 * 1024, 2},
2384 {16 * 1024, 1},
2385 },
2386 .block_erase = erase_sector_jedec,
2387 }, {
2388 .eraseblocks = { {256 * 1024, 1} },
2389 .block_erase = erase_chip_block_jedec,
2390 },
2391 },
2392 .write = write_jedec_1,
2393 .read = read_memmapped,
2394 },
2395
2396 {
2397 .vendor = "Hyundai",
2398 .name = "HY29F002B",
2399 .bustype = CHIP_BUSTYPE_PARALLEL,
2400 .manufacture_id = HYUNDAI_ID,
2401 .model_id = HY_29F002B,
2402 .total_size = 256,
2403 .page_size = 256 * 1024,
2404 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
2405 .tested = TEST_UNTESTED,
2406 .probe = probe_jedec,
2407 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2408 .block_erasers =
2409 {
2410 {
2411 .eraseblocks = {
2412 {16 * 1024, 1},
2413 {8 * 1024, 2},
2414 {32 * 1024, 1},
2415 {64 * 1024, 3},
2416 },
2417 .block_erase = erase_sector_jedec,
2418 }, {
2419 .eraseblocks = { {256 * 1024, 1} },
2420 .block_erase = erase_chip_block_jedec,
2421 },
2422 },
2423 .write = write_jedec_1,
2424 .read = read_memmapped,
2425 },
2426
2427 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002428 .vendor = "Intel",
Urja Rannikkoebd7b832009-05-29 12:55:31 +00002429 .name = "28F001BX-B",
Urja Rannikko161b8852009-06-05 08:47:37 +00002430 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00002431 .manufacture_id = INTEL_ID,
2432 .model_id = P28F001BXB,
2433 .total_size = 128,
2434 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00002435 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00002436 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002437 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002438 .block_erasers =
2439 {
2440 {
2441 .eraseblocks = {
2442 {8 * 1024, 1},
2443 {4 * 1024, 2},
2444 {112 * 1024, 1},
2445 },
Sean Nelson28accc22010-03-19 18:47:06 +00002446 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00002447 },
2448 },
Sean Nelsondee4a832010-03-22 04:39:31 +00002449 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00002450 .read = read_memmapped,
2451 },
2452
2453 {
2454 .vendor = "Intel",
2455 .name = "28F001BX-T",
Urja Rannikko161b8852009-06-05 08:47:37 +00002456 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00002457 .manufacture_id = INTEL_ID,
2458 .model_id = P28F001BXT,
2459 .total_size = 128,
2460 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sean Nelsondee4a832010-03-22 04:39:31 +00002461 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00002462 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002463 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002464 .block_erasers =
2465 {
2466 {
2467 .eraseblocks = {
2468 {112 * 1024, 1},
2469 {4 * 1024, 2},
2470 {8 * 1024, 1},
2471 },
Sean Nelson28accc22010-03-19 18:47:06 +00002472 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00002473 },
2474 },
Sean Nelsondee4a832010-03-22 04:39:31 +00002475 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00002476 .read = read_memmapped,
2477 },
2478
2479 {
2480 .vendor = "Intel",
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00002481 .name = "28F004S5",
2482 .bustype = CHIP_BUSTYPE_PARALLEL,
2483 .manufacture_id = INTEL_ID,
2484 .model_id = E_28F004S5,
2485 .total_size = 512,
2486 .page_size = 256,
2487 .tested = TEST_UNTESTED,
2488 .probe = probe_82802ab,
2489 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00002490 .block_erasers =
2491 {
2492 {
2493 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00002494 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00002495 },
2496 },
Sean Nelsondee4a832010-03-22 04:39:31 +00002497 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00002498 .write = write_82802ab,
2499 .read = read_memmapped,
2500 },
2501
2502 {
2503 .vendor = "Intel",
Michael Karcherad0010a2010-04-03 10:27:08 +00002504 .name = "28F004BV/BE-B",
2505 .bustype = CHIP_BUSTYPE_PARALLEL,
2506 .manufacture_id = INTEL_ID,
2507 .model_id = P28F004BB,
2508 .total_size = 512,
2509 .page_size = 128 * 1024, /* maximal block size */
2510 .tested = TEST_UNTESTED,
2511 .probe = probe_82802ab,
2512 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2513 .block_erasers =
2514 {
2515 {
2516 .eraseblocks = {
2517 {16 * 1024, 1},
2518 {8 * 1024, 2},
2519 {96 * 1024, 1},
2520 {128 * 1024, 3},
2521 },
2522 .block_erase = erase_block_82802ab,
2523 },
2524 },
2525 .write = write_82802ab,
2526 .read = read_memmapped,
2527 },
2528
2529 {
2530 .vendor = "Intel",
2531 .name = "28F004BV/BE-T",
2532 .bustype = CHIP_BUSTYPE_PARALLEL,
2533 .manufacture_id = INTEL_ID,
2534 .model_id = P28F004BT,
2535 .total_size = 512,
2536 .page_size = 128 * 1024, /* maximal block size */
2537 .tested = TEST_UNTESTED,
2538 .probe = probe_82802ab,
2539 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2540 .block_erasers =
2541 {
2542 {
2543 .eraseblocks = {
2544 {128 * 1024, 3},
2545 {96 * 1024, 1},
2546 {8 * 1024, 2},
2547 {16 * 1024, 1},
2548 },
2549 .block_erase = erase_block_82802ab,
2550 },
2551 },
2552 .write = write_82802ab,
2553 .read = read_memmapped,
2554 },
2555
2556 {
2557 .vendor = "Intel",
2558 .name = "28F400BV/CV/CE-B",
2559 .bustype = CHIP_BUSTYPE_PARALLEL,
2560 .manufacture_id = INTEL_ID,
2561 .model_id = P28F400BB,
2562 .total_size = 512,
2563 .page_size = 128 * 1024, /* maximal block size */
2564 .feature_bits = FEATURE_ADDR_SHIFTED,
2565 .tested = TEST_UNTESTED,
2566 .probe = probe_82802ab,
2567 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2568 .block_erasers =
2569 {
2570 {
2571 .eraseblocks = {
2572 {16 * 1024, 1},
2573 {8 * 1024, 2},
2574 {96 * 1024, 1},
2575 {128 * 1024, 3},
2576 },
2577 .block_erase = erase_block_82802ab,
2578 },
2579 },
2580 .write = write_82802ab,
2581 .read = read_memmapped,
2582 },
2583
2584 {
2585 .vendor = "Intel",
2586 .name = "28F400BV/CV/CE-T",
2587 .bustype = CHIP_BUSTYPE_PARALLEL,
2588 .manufacture_id = INTEL_ID,
2589 .model_id = P28F400BT,
2590 .total_size = 512,
2591 .page_size = 128 * 1024, /* maximal block size */
2592 .feature_bits = FEATURE_ADDR_SHIFTED,
2593 .tested = TEST_UNTESTED,
2594 .probe = probe_82802ab,
2595 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2596 .block_erasers =
2597 {
2598 {
2599 .eraseblocks = {
2600 {128 * 1024, 3},
2601 {96 * 1024, 1},
2602 {8 * 1024, 2},
2603 {16 * 1024, 1},
2604 },
2605 .block_erase = erase_block_82802ab,
2606 },
2607 },
2608 .write = write_82802ab,
2609 .read = read_memmapped,
2610 },
2611
2612 {
2613 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002614 .name = "82802AB",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002615 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002616 .manufacture_id = INTEL_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002617 .model_id = I_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .total_size = 512,
2619 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00002620 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00002621 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002623 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00002624 .block_erasers =
2625 {
2626 {
2627 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00002628 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00002629 },
2630 },
Sean Nelson28accc22010-03-19 18:47:06 +00002631 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002632 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002633 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002634 },
2635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002636 {
2637 .vendor = "Intel",
2638 .name = "82802AC",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002639 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 .manufacture_id = INTEL_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00002641 .model_id = I_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002642 .total_size = 1024,
2643 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00002644 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00002645 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002647 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00002648 .block_erasers =
2649 {
2650 {
2651 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00002652 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00002653 },
2654 },
Sean Nelson28accc22010-03-19 18:47:06 +00002655 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002656 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002657 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002658 },
2659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002660 {
2661 .vendor = "Macronix",
2662 .name = "MX25L512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002663 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 .manufacture_id = MX_ID,
2665 .model_id = MX_25L512,
2666 .total_size = 64,
2667 .page_size = 256,
2668 .tested = TEST_UNTESTED,
2669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002670 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002671 .block_erasers =
2672 {
2673 {
2674 .eraseblocks = { {4 * 1024, 16} },
2675 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002676 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002677 .eraseblocks = { {64 * 1024, 1} },
2678 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002679 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002680 .eraseblocks = { {64 * 1024, 1} },
2681 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002682 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002683 .eraseblocks = { {64 * 1024, 1} },
2684 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002685 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002686 .eraseblocks = { {64 * 1024, 1} },
2687 .block_erase = spi_block_erase_c7,
2688 },
2689 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002690 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002691 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002692 },
2693
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002694 {
2695 .vendor = "Macronix",
2696 .name = "MX25L1005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002697 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002698 .manufacture_id = MX_ID,
2699 .model_id = MX_25L1005,
2700 .total_size = 128,
2701 .page_size = 256,
2702 .tested = TEST_UNTESTED,
2703 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002704 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002705 .block_erasers =
2706 {
2707 {
2708 .eraseblocks = { {4 * 1024, 32} },
2709 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002710 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002711 .eraseblocks = { {64 * 1024, 2} },
2712 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002713 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002714 .eraseblocks = { {128 * 1024, 1} },
2715 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002716 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00002717 .eraseblocks = { {128 * 1024, 1} },
2718 .block_erase = spi_block_erase_c7,
2719 },
2720 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002721 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002722 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002723 },
2724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002725 {
2726 .vendor = "Macronix",
2727 .name = "MX25L2005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002728 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002729 .manufacture_id = MX_ID,
2730 .model_id = MX_25L2005,
2731 .total_size = 256,
2732 .page_size = 256,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002735 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = { {4 * 1024, 64} },
2740 .block_erase = spi_block_erase_20,
2741 }, {
2742 .eraseblocks = { {64 * 1024, 4} },
2743 .block_erase = spi_block_erase_52,
2744 }, {
2745 .eraseblocks = { {64 * 1024, 4} },
2746 .block_erase = spi_block_erase_d8,
2747 }, {
2748 .eraseblocks = { {256 * 1024, 1} },
2749 .block_erase = spi_block_erase_60,
2750 }, {
2751 .eraseblocks = { {256 * 1024, 1} },
2752 .block_erase = spi_block_erase_c7,
2753 },
2754 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002755 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002756 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002757 },
2758
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002759 {
2760 .vendor = "Macronix",
2761 .name = "MX25L4005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002762 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002763 .manufacture_id = MX_ID,
2764 .model_id = MX_25L4005,
2765 .total_size = 512,
2766 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002767 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002769 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002770 .block_erasers =
2771 {
2772 {
2773 .eraseblocks = { {4 * 1024, 128} },
2774 .block_erase = spi_block_erase_20,
2775 }, {
2776 .eraseblocks = { {64 * 1024, 8} },
2777 .block_erase = spi_block_erase_52,
2778 }, {
2779 .eraseblocks = { {64 * 1024, 8} },
2780 .block_erase = spi_block_erase_d8,
2781 }, {
2782 .eraseblocks = { {512 * 1024, 1} },
2783 .block_erase = spi_block_erase_60,
2784 }, {
2785 .eraseblocks = { {512 * 1024, 1} },
2786 .block_erase = spi_block_erase_c7,
2787 },
2788 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002789 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002790 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002791 },
2792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002793 {
2794 .vendor = "Macronix",
2795 .name = "MX25L8005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002796 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002797 .manufacture_id = MX_ID,
2798 .model_id = MX_25L8005,
2799 .total_size = 1024,
2800 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002801 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002802 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002803 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002804 .block_erasers =
2805 {
2806 {
2807 .eraseblocks = { {4 * 1024, 256} },
2808 .block_erase = spi_block_erase_20,
2809 }, {
2810 .eraseblocks = { {64 * 1024, 16} },
2811 .block_erase = spi_block_erase_52,
2812 }, {
2813 .eraseblocks = { {64 * 1024, 16} },
2814 .block_erase = spi_block_erase_d8,
2815 }, {
2816 .eraseblocks = { {1024 * 1024, 1} },
2817 .block_erase = spi_block_erase_60,
2818 }, {
2819 .eraseblocks = { {1024 * 1024, 1} },
2820 .block_erase = spi_block_erase_c7,
2821 },
2822 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002823 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002824 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002825 },
2826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002827 {
2828 .vendor = "Macronix",
2829 .name = "MX25L1605",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002830 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002831 .manufacture_id = MX_ID,
2832 .model_id = MX_25L1605,
2833 .total_size = 2048,
2834 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002835 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002836 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002837 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00002838 .block_erasers =
2839 {
2840 {
2841 .eraseblocks = { {4 * 1024, 512} },
2842 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
2843 }, {
2844 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
2845 .block_erase = spi_block_erase_52,
2846 }, {
2847 .eraseblocks = { {64 * 1024, 32} },
2848 .block_erase = spi_block_erase_d8,
2849 }, {
2850 .eraseblocks = { {2 * 1024 * 1024, 1} },
2851 .block_erase = spi_block_erase_60,
2852 }, {
2853 .eraseblocks = { {2 * 1024 * 1024, 1} },
2854 .block_erase = spi_block_erase_c7,
2855 },
2856 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002857 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002858 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002859 },
2860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002861 {
2862 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002863 .name = "MX25L1635D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002864 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002865 .manufacture_id = MX_ID,
2866 .model_id = MX_25L1635D,
2867 .total_size = 2048,
2868 .page_size = 256,
2869 .tested = TEST_UNTESTED,
2870 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002871 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002872 .block_erasers =
2873 {
2874 {
2875 .eraseblocks = { {4 * 1024, 512} },
2876 .block_erase = spi_block_erase_20,
2877 }, {
2878 .eraseblocks = { {64 * 1024, 32} },
2879 .block_erase = spi_block_erase_d8,
2880 }, {
2881 .eraseblocks = { {2 * 1024 * 1024, 1} },
2882 .block_erase = spi_block_erase_60,
2883 }, {
2884 .eraseblocks = { {2 * 1024 * 1024, 1} },
2885 .block_erase = spi_block_erase_c7,
2886 }
2887 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002888 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002889 .read = spi_chip_read,
2890 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00002891
Stephan Guillouxf5c70902009-04-19 23:04:00 +00002892 {
2893 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002894 .name = "MX25L3205",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002895 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002896 .manufacture_id = MX_ID,
2897 .model_id = MX_25L3205,
2898 .total_size = 4096,
2899 .page_size = 256,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002900 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002901 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002902 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002903 .block_erasers =
2904 {
2905 {
2906 .eraseblocks = { {4 * 1024, 1024} },
2907 .block_erase = spi_block_erase_20,
2908 }, {
2909 .eraseblocks = { {4 * 1024, 1024} },
2910 .block_erase = spi_block_erase_d8,
2911 }, {
2912 .eraseblocks = { {4 * 1024 * 1024, 1} },
2913 .block_erase = spi_block_erase_60,
2914 }, {
2915 .eraseblocks = { {4 * 1024 * 1024, 1} },
2916 .block_erase = spi_block_erase_c7,
2917 },
2918 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002919 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002920 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002921 },
2922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002923 {
2924 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00002925 .name = "MX25L3235D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002926 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00002927 .manufacture_id = MX_ID,
2928 .model_id = MX_25L3235D,
2929 .total_size = 4096,
2930 .page_size = 256,
2931 .tested = TEST_UNTESTED,
2932 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002933 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002934 .block_erasers =
2935 {
2936 {
2937 .eraseblocks = { {4 * 1024, 1024} },
2938 .block_erase = spi_block_erase_20,
2939 }, {
2940 .eraseblocks = { {64 * 1024, 64} },
2941 .block_erase = spi_block_erase_d8,
2942 }, {
2943 .eraseblocks = { {4 * 1024 * 1024, 1} },
2944 .block_erase = spi_block_erase_60,
2945 }, {
2946 .eraseblocks = { {4 * 1024 * 1024, 1} },
2947 .block_erase = spi_block_erase_c7,
2948 }
2949 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002950 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00002951 .read = spi_chip_read,
2952 },
2953
2954 {
2955 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002956 .name = "MX25L6405",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002957 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002958 .manufacture_id = MX_ID,
2959 .model_id = MX_25L6405,
2960 .total_size = 8192,
2961 .page_size = 256,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00002962 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002963 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002964 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002965 .block_erasers =
2966 {
2967 {
2968 .eraseblocks = { {64 * 1024, 128} },
2969 .block_erase = spi_block_erase_20,
2970 }, {
2971 .eraseblocks = { {64 * 1024, 128} },
2972 .block_erase = spi_block_erase_d8,
2973 }, {
2974 .eraseblocks = { {8 * 1024 * 1024, 1} },
2975 .block_erase = spi_block_erase_60,
2976 }, {
2977 .eraseblocks = { {8 * 1024 * 1024, 1} },
2978 .block_erase = spi_block_erase_c7,
2979 }
2980 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002981 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002982 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00002983 },
2984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002985 {
2986 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00002987 .name = "MX25L12805",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002988 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00002989 .manufacture_id = MX_ID,
2990 .model_id = MX_25L12805,
2991 .total_size = 16384,
2992 .page_size = 256,
2993 .tested = TEST_UNTESTED,
2994 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002995 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002996 .block_erasers =
2997 {
2998 {
2999 .eraseblocks = { {4 * 1024, 4096} },
3000 .block_erase = spi_block_erase_20,
3001 }, {
3002 .eraseblocks = { {64 * 1024, 256} },
3003 .block_erase = spi_block_erase_d8,
3004 }, {
3005 .eraseblocks = { {16 * 1024 * 1024, 1} },
3006 .block_erase = spi_block_erase_60,
3007 }, {
3008 .eraseblocks = { {16 * 1024 * 1024, 1} },
3009 .block_erase = spi_block_erase_c7,
3010 }
3011 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003012 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003013 .read = spi_chip_read,
3014 },
3015
3016 {
3017 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00003018 .name = "MX29F001B",
3019 .bustype = CHIP_BUSTYPE_PARALLEL,
3020 .manufacture_id = MX_ID,
3021 .model_id = MX_29F001B,
3022 .total_size = 128,
3023 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003024 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3025 .tested = TEST_UNTESTED,
3026 .probe = probe_jedec,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003027 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003028 .block_erasers =
3029 {
3030 {
3031 .eraseblocks = {
3032 {8 * 1024, 1},
3033 {4 * 1024, 2},
3034 {8 * 1024, 2},
3035 {32 * 1024, 1},
3036 {64 * 1024, 1},
3037 },
Sean Nelson35727f72010-01-28 23:55:12 +00003038 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003039 }, {
3040 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003041 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003042 }
3043 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003044 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003045 .read = read_memmapped,
3046 },
3047
3048 {
3049 .vendor = "Macronix",
3050 .name = "MX29F001T",
3051 .bustype = CHIP_BUSTYPE_PARALLEL,
3052 .manufacture_id = MX_ID,
3053 .model_id = MX_29F001T,
3054 .total_size = 128,
3055 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003056 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3057 .tested = TEST_UNTESTED,
3058 .probe = probe_jedec,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003059 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003060 .block_erasers =
3061 {
3062 {
3063 .eraseblocks = {
3064 {64 * 1024, 1},
3065 {32 * 1024, 1},
3066 {8 * 1024, 2},
3067 {4 * 1024, 2},
3068 {8 * 1024, 1},
3069 },
Sean Nelson35727f72010-01-28 23:55:12 +00003070 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003071 }, {
3072 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003073 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003074 }
3075 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003076 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003077 .read = read_memmapped,
3078 },
3079
3080 {
3081 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003082 .name = "MX29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003083 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003084 .manufacture_id = MX_ID,
3085 .model_id = MX_29F002B,
3086 .total_size = 256,
3087 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003088 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003089 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00003090 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003091 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = {
3096 {16 * 1024, 1},
3097 {8 * 1024, 2},
3098 {32 * 1024, 1},
3099 {64 * 1024, 3},
3100 },
Sean Nelson35727f72010-01-28 23:55:12 +00003101 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003102 }, {
3103 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003104 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003105 },
3106 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003107 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003108 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003109 },
3110
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003111 {
3112 .vendor = "Macronix",
3113 .name = "MX29F002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00003114 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003115 .manufacture_id = MX_ID,
3116 .model_id = MX_29F002T,
3117 .total_size = 256,
3118 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003119 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00003120 .tested = TEST_OK_PRW,
Sean Nelson35727f72010-01-28 23:55:12 +00003121 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003122 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003123 .block_erasers =
3124 {
3125 {
3126 .eraseblocks = {
3127 {64 * 1024, 3},
3128 {32 * 1024, 1},
3129 {8 * 1024, 2},
3130 {16 * 1024, 1},
3131 },
Sean Nelson35727f72010-01-28 23:55:12 +00003132 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003133 }, {
3134 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003135 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003136 },
3137 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003138 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003139 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003140 },
3141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003142 {
3143 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00003144 .name = "MX29LV040",
Urja Rannikko038a3122009-06-28 19:19:25 +00003145 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003146 .manufacture_id = MX_ID,
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00003147 .model_id = MX_29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003148 .total_size = 512,
3149 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003150 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3151 .tested = TEST_UNTESTED,
3152 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003153 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003154 .block_erasers =
3155 {
3156 {
3157 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00003158 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003159 }, {
3160 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003161 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003162 },
3163 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003164 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003165 .read = read_memmapped,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00003166 },
3167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003168 {
3169 .vendor = "Numonyx",
3170 .name = "M25PE10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003171 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003172 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003173 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003174 .total_size = 128,
3175 .page_size = 256,
3176 .tested = TEST_UNTESTED,
3177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003178 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003179 .block_erasers =
3180 {
3181 {
3182 .eraseblocks = { {4 * 1024, 32} },
3183 .block_erase = spi_block_erase_20,
3184 }, {
3185 .eraseblocks = { {64 * 1024, 2} },
3186 .block_erase = spi_block_erase_d8,
3187 }, {
3188 .eraseblocks = { {128 * 1024, 1} },
3189 .block_erase = spi_block_erase_c7,
3190 }
3191 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003192 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003193 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003194 },
3195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003196 {
3197 .vendor = "Numonyx",
3198 .name = "M25PE20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003199 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003200 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003201 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003202 .total_size = 256,
3203 .page_size = 256,
3204 .tested = TEST_UNTESTED,
3205 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003206 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003207 .block_erasers =
3208 {
3209 {
3210 .eraseblocks = { {4 * 1024, 64} },
3211 .block_erase = spi_block_erase_20,
3212 }, {
3213 .eraseblocks = { {64 * 1024, 4} },
3214 .block_erase = spi_block_erase_d8,
3215 }, {
3216 .eraseblocks = { {256 * 1024, 1} },
3217 .block_erase = spi_block_erase_c7,
3218 }
3219 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003220 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003221 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003222 },
3223
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003224 {
3225 .vendor = "Numonyx",
3226 .name = "M25PE40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003227 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003228 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003229 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00003230 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003231 .page_size = 256,
3232 .tested = TEST_UNTESTED,
3233 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003234 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003235 .block_erasers =
3236 {
3237 {
3238 .eraseblocks = { {4 * 1024, 128} },
3239 .block_erase = spi_block_erase_20,
3240 }, {
3241 .eraseblocks = { {64 * 1024, 8} },
3242 .block_erase = spi_block_erase_d8,
3243 }, {
3244 .eraseblocks = { {512 * 1024, 1} },
3245 .block_erase = spi_block_erase_c7,
3246 }
3247 },
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
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003252 {
3253 .vendor = "Numonyx",
3254 .name = "M25PE80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003255 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003256 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003257 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003258 .total_size = 1024,
3259 .page_size = 256,
3260 .tested = TEST_OK_PREW,
3261 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003262 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003263 .block_erasers =
3264 {
3265 {
3266 .eraseblocks = { {4 * 1024, 256} },
3267 .block_erase = spi_block_erase_20,
3268 }, {
3269 .eraseblocks = { {64 * 1024, 16} },
3270 .block_erase = spi_block_erase_d8,
3271 }, {
3272 .eraseblocks = { {1024 * 1024, 1} },
3273 .block_erase = spi_block_erase_c7,
3274 }
3275 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003276 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003277 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003278 },
3279
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003280 {
3281 .vendor = "Numonyx",
3282 .name = "M25PE16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003283 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003284 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003285 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003286 .total_size = 2048,
3287 .page_size = 256,
3288 .tested = TEST_UNTESTED,
3289 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003290 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003291 .block_erasers =
3292 {
3293 {
3294 .eraseblocks = { {4 * 1024, 512} },
3295 .block_erase = spi_block_erase_20,
3296 }, {
3297 .eraseblocks = { {64 * 1024, 32} },
3298 .block_erase = spi_block_erase_d8,
3299 }, {
3300 .eraseblocks = { {2 * 1024 * 1024, 1} },
3301 .block_erase = spi_block_erase_c7,
3302 }
3303 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003304 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003305 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003306 },
3307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003308 {
3309 .vendor = "PMC",
3310 .name = "Pm25LV010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003311 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003312 .manufacture_id = PMC_ID,
3313 .model_id = PMC_25LV010,
3314 .total_size = 128,
3315 .page_size = 256,
3316 .tested = TEST_UNTESTED,
3317 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003318 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003319 .block_erasers =
3320 {
3321 {
3322 .eraseblocks = { {4 * 1024, 32} },
3323 .block_erase = spi_block_erase_d7,
3324 }, {
3325 .eraseblocks = { {32 * 1024, 4} },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {128 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003332 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003333 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003334 },
3335
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003336 {
3337 .vendor = "PMC",
3338 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003339 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003340 .manufacture_id = PMC_ID,
3341 .model_id = PMC_25LV016B,
3342 .total_size = 2048,
3343 .page_size = 256,
3344 .tested = TEST_UNTESTED,
3345 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003346 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003347 .block_erasers =
3348 {
3349 {
3350 .eraseblocks = { {4 * 1024, 512} },
3351 .block_erase = spi_block_erase_d7,
3352 }, {
3353 .eraseblocks = { {4 * 1024, 512} },
3354 .block_erase = spi_block_erase_20,
3355 }, {
3356 .eraseblocks = { {64 * 1024, 32} },
3357 .block_erase = spi_block_erase_d8,
3358 }, {
3359 .eraseblocks = { {2 * 1024 * 1024, 1} },
3360 .block_erase = spi_block_erase_60,
3361 }, {
3362 .eraseblocks = { {2 * 1024 * 1024, 1} },
3363 .block_erase = spi_block_erase_c7,
3364 }
3365 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003366 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003367 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003368 },
3369
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003370 {
3371 .vendor = "PMC",
3372 .name = "Pm25LV020",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003373 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003374 .manufacture_id = PMC_ID,
3375 .model_id = PMC_25LV020,
3376 .total_size = 256,
3377 .page_size = 256,
3378 .tested = TEST_UNTESTED,
3379 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003380 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003381 .block_erasers =
3382 {
3383 {
3384 .eraseblocks = { {4 * 1024, 64} },
3385 .block_erase = spi_block_erase_d7,
3386 }, {
3387 .eraseblocks = { {64 * 1024, 4} },
3388 .block_erase = spi_block_erase_d8,
3389 }, {
3390 .eraseblocks = { {256 * 1024, 1} },
3391 .block_erase = spi_block_erase_c7,
3392 }
3393 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003394 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003395 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003396 },
3397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003398 {
3399 .vendor = "PMC",
3400 .name = "Pm25LV040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003401 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003402 .manufacture_id = PMC_ID,
3403 .model_id = PMC_25LV040,
3404 .total_size = 512,
3405 .page_size = 256,
3406 .tested = TEST_UNTESTED,
3407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003408 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003409 .block_erasers =
3410 {
3411 {
3412 .eraseblocks = { {4 * 1024, 128} },
3413 .block_erase = spi_block_erase_d7,
3414 }, {
3415 .eraseblocks = { {64 * 1024, 8} },
3416 .block_erase = spi_block_erase_d8,
3417 }, {
3418 .eraseblocks = { {512 * 1024, 1} },
3419 .block_erase = spi_block_erase_c7,
3420 }
3421 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003422 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003423 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003424 },
3425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003426 {
3427 .vendor = "PMC",
3428 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003429 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003430 .manufacture_id = PMC_ID,
3431 .model_id = PMC_25LV080B,
3432 .total_size = 1024,
3433 .page_size = 256,
3434 .tested = TEST_UNTESTED,
3435 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003436 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003437 .block_erasers =
3438 {
3439 {
3440 .eraseblocks = { {4 * 1024, 256} },
3441 .block_erase = spi_block_erase_d7,
3442 }, {
3443 .eraseblocks = { {4 * 1024, 256} },
3444 .block_erase = spi_block_erase_20,
3445 }, {
3446 .eraseblocks = { {64 * 1024, 16} },
3447 .block_erase = spi_block_erase_d8,
3448 }, {
3449 .eraseblocks = { {1024 * 1024, 1} },
3450 .block_erase = spi_block_erase_60,
3451 }, {
3452 .eraseblocks = { {1024 * 1024, 1} },
3453 .block_erase = spi_block_erase_c7,
3454 }
3455 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003456 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003457 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003458 },
3459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003460 {
3461 .vendor = "PMC",
3462 .name = "Pm25LV512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003463 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003464 .manufacture_id = PMC_ID,
3465 .model_id = PMC_25LV512,
3466 .total_size = 64,
3467 .page_size = 256,
3468 .tested = TEST_UNTESTED,
3469 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003470 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003471 .block_erasers =
3472 {
3473 {
3474 .eraseblocks = { {4 * 1024, 16} },
3475 .block_erase = spi_block_erase_d7,
3476 }, {
3477 .eraseblocks = { {32 * 1024, 2} },
3478 .block_erase = spi_block_erase_d8,
3479 }, {
3480 .eraseblocks = { {64 * 1024, 1} },
3481 .block_erase = spi_block_erase_c7,
3482 }
3483 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003484 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003485 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003486 },
3487
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003488 {
3489 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00003490 .name = "Pm29F002T",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00003491 .bustype = CHIP_BUSTYPE_PARALLEL,
3492 .manufacture_id = PMC_ID_NOPREFIX,
3493 .model_id = PMC_29F002T,
3494 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00003495 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003496 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3497 .tested = TEST_UNTESTED,
3498 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00003499 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00003500 .block_erasers =
3501 {
3502 {
3503 .eraseblocks = {
3504 {128 * 1024, 1},
3505 {96 * 1024, 1},
3506 {8 * 1024, 2},
3507 {16 * 1024, 1},
3508 },
Sean Nelson35727f72010-01-28 23:55:12 +00003509 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00003510 }, {
3511 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003512 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00003513 },
3514 },
Sean Nelson35727f72010-01-28 23:55:12 +00003515 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00003516 .read = read_memmapped,
3517 },
3518
3519 {
3520 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00003521 .name = "Pm29F002B",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00003522 .bustype = CHIP_BUSTYPE_PARALLEL,
3523 .manufacture_id = PMC_ID_NOPREFIX,
3524 .model_id = PMC_29F002B,
3525 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00003526 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003527 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00003528 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00003529 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00003530 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00003531 .block_erasers =
3532 {
3533 {
3534 .eraseblocks = {
3535 {16 * 1024, 1},
3536 {8 * 1024, 2},
3537 {96 * 1024, 1},
3538 {128 * 1024, 1},
3539 },
Sean Nelson35727f72010-01-28 23:55:12 +00003540 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00003541 }, {
3542 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003543 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00003544 },
3545 },
Sean Nelson35727f72010-01-28 23:55:12 +00003546 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00003547 .read = read_memmapped,
3548 },
3549
3550 {
3551 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00003552 .name = "Pm39LV010",
Urja Rannikko038a3122009-06-28 19:19:25 +00003553 .bustype = CHIP_BUSTYPE_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00003554 .manufacture_id = PMC_ID_NOPREFIX,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00003555 .model_id = PMC_39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00003556 .total_size = 128,
3557 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003558 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00003559 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00003560 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00003562 .block_erasers =
3563 {
3564 {
3565 .eraseblocks = { {4 * 1024, 32} },
3566 .block_erase = erase_sector_jedec,
3567 }, {
3568 .eraseblocks = { {64 * 1024, 2} },
3569 .block_erase = erase_block_jedec,
3570 }, {
3571 .eraseblocks = { {128 * 1024, 1} },
3572 .block_erase = erase_chip_block_jedec,
3573 }
3574 },
Sean Nelson35727f72010-01-28 23:55:12 +00003575 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00003576 .read = read_memmapped,
3577 },
3578
3579 {
3580 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00003581 .name = "Pm39LV020",
3582 .bustype = CHIP_BUSTYPE_PARALLEL,
3583 .manufacture_id = PMC_ID_NOPREFIX,
3584 .model_id = PMC_39LV020,
3585 .total_size = 256,
3586 .page_size = 4096,
3587 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3588 .tested = TEST_UNTESTED,
3589 .probe = probe_jedec,
3590 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3591 .block_erasers =
3592 {
3593 {
3594 .eraseblocks = { {4 * 1024, 64} },
3595 .block_erase = erase_sector_jedec,
3596 }, {
3597 .eraseblocks = { {64 * 1024, 4} },
3598 .block_erase = erase_block_jedec,
3599 }, {
3600 .eraseblocks = { {256 * 1024, 1} },
3601 .block_erase = erase_chip_block_jedec,
3602 }
3603 },
3604 .write = write_jedec_1,
3605 .read = read_memmapped,
3606 },
3607
3608 {
3609 .vendor = "PMC",
3610 .name = "Pm39LV040",
3611 .bustype = CHIP_BUSTYPE_PARALLEL,
3612 .manufacture_id = PMC_ID_NOPREFIX,
3613 .model_id = PMC_39LV040,
3614 .total_size = 512,
3615 .page_size = 4096,
3616 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3617 .tested = TEST_UNTESTED,
3618 .probe = probe_jedec,
3619 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3620 .block_erasers =
3621 {
3622 {
3623 .eraseblocks = { {4 * 1024, 128} },
3624 .block_erase = erase_sector_jedec,
3625 }, {
3626 .eraseblocks = { {64 * 1024, 8} },
3627 .block_erase = erase_block_jedec,
3628 }, {
3629 .eraseblocks = { {512 * 1024, 1} },
3630 .block_erase = erase_chip_block_jedec,
3631 }
3632 },
3633 .write = write_jedec_1,
3634 .read = read_memmapped,
3635 },
3636
3637 {
3638 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003639 .name = "Pm49FL002",
Sean Nelson35727f72010-01-28 23:55:12 +00003640 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003641 .manufacture_id = PMC_ID_NOPREFIX,
3642 .model_id = PMC_49FL002,
3643 .total_size = 256,
3644 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003645 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Russ Dill8c7c4682010-03-09 16:53:06 +00003646 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00003647 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003648 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00003649 .block_erasers =
3650 {
3651 {
3652 .eraseblocks = { {4 * 1024, 64} },
3653 .block_erase = erase_sector_jedec,
3654 }, {
3655 .eraseblocks = { {16 * 1024, 16} },
3656 .block_erase = erase_block_jedec,
3657 }, {
3658 .eraseblocks = { {256 * 1024, 1} },
3659 .block_erase = erase_chip_block_jedec,
3660 }
3661 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00003662 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00003663 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003664 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003665 },
3666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003667 {
3668 .vendor = "PMC",
3669 .name = "Pm49FL004",
Sean Nelson35727f72010-01-28 23:55:12 +00003670 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003671 .manufacture_id = PMC_ID_NOPREFIX,
3672 .model_id = PMC_49FL004,
3673 .total_size = 512,
3674 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003675 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00003676 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00003677 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003678 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00003679 .block_erasers =
3680 {
3681 {
3682 .eraseblocks = { {4 * 1024, 128} },
3683 .block_erase = erase_sector_jedec,
3684 }, {
3685 .eraseblocks = { {64 * 1024, 8} },
3686 .block_erase = erase_block_jedec,
3687 }, {
3688 .eraseblocks = { {512 * 1024, 1} },
3689 .block_erase = erase_chip_block_jedec,
3690 }
3691 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00003692 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00003693 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003694 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003695 },
3696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003697 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00003698 .vendor = "Sanyo",
3699 .name = "LF25FW203A",
3700 .bustype = CHIP_BUSTYPE_SPI,
3701 .manufacture_id = SANYO_ID,
3702 .model_id = SANYO_LE25FW203A,
3703 .total_size = 2048,
3704 .page_size = 256,
3705 .tested = TEST_UNTESTED,
3706 .probe = probe_spi_rdid,
3707 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003708 .block_erasers =
3709 {
3710 {
3711 .eraseblocks = { {64 * 1024, 32} },
3712 .block_erase = spi_block_erase_d8,
3713 }, {
3714 .eraseblocks = { {2 * 1024 * 1024, 1} },
3715 .block_erase = spi_block_erase_c7,
3716 }
3717 },
Sean Nelsond70b09c2009-11-24 02:11:08 +00003718 .write = spi_chip_write_256,
3719 .read = spi_chip_read,
3720 },
3721
3722 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003723 .vendor = "Sharp",
3724 .name = "LHF00L04",
Urja Rannikko038a3122009-06-28 19:19:25 +00003725 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003726 .manufacture_id = SHARP_ID,
3727 .model_id = SHARP_LHF00L04,
3728 .total_size = 1024,
3729 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003730 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003731 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003732 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00003733 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00003734 .block_erasers =
3735 {
3736 {
3737 .eraseblocks = {
3738 {64 * 1024, 15},
3739 {8 * 1024, 8}
3740 },
Sean Nelson28accc22010-03-19 18:47:06 +00003741 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00003742 }, {
3743 .eraseblocks = {
3744 {1024 * 1024, 1}
3745 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00003746 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00003747 },
3748 },
Sean Nelson28accc22010-03-19 18:47:06 +00003749 .unlock = unlock_82802ab,
3750 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003751 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003752 },
3753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003754 {
3755 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00003756 .name = "S25FL008A",
3757 .bustype = CHIP_BUSTYPE_SPI,
3758 .manufacture_id = SPANSION_ID,
3759 .model_id = SPANSION_S25FL008A,
3760 .total_size = 1024,
3761 .page_size = 256,
3762 .tested = TEST_OK_PREW,
3763 .probe = probe_spi_rdid,
3764 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00003765 .block_erasers =
3766 {
3767 {
3768 .eraseblocks = { {64 * 1024, 16} },
3769 .block_erase = spi_block_erase_d8,
3770 }, {
3771 .eraseblocks = { {1024 * 1024, 1} },
3772 .block_erase = spi_block_erase_c7,
3773 }
3774 },
3775 .write = spi_chip_write_256,
3776 .read = spi_chip_read,
3777 },
3778
3779 {
3780 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003781 .name = "S25FL016A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003782 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003783 .manufacture_id = SPANSION_ID,
3784 .model_id = SPANSION_S25FL016A,
3785 .total_size = 2048,
3786 .page_size = 256,
Sean Nelson5643c072010-01-19 03:23:07 +00003787 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003788 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003789 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00003790 .block_erasers =
3791 {
3792 {
3793 .eraseblocks = { {64 * 1024, 32} },
3794 .block_erase = spi_block_erase_d8,
3795 }, {
3796 .eraseblocks = { {2 * 1024 * 1024, 1} },
3797 .block_erase = spi_block_erase_c7,
3798 }
3799 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003800 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003801 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003802 },
3803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003804 {
3805 .vendor = "SST",
3806 .name = "SST25VF016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003807 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003808 .manufacture_id = SST_ID,
3809 .model_id = SST_25VF016B,
3810 .total_size = 2048,
3811 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003812 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003813 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003814 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003815 .block_erasers =
3816 {
3817 {
3818 .eraseblocks = { {4 * 1024, 512} },
3819 .block_erase = spi_block_erase_20,
3820 }, {
3821 .eraseblocks = { {32 * 1024, 64} },
3822 .block_erase = spi_block_erase_52,
3823 }, {
3824 .eraseblocks = { {64 * 1024, 32} },
3825 .block_erase = spi_block_erase_d8,
3826 }, {
3827 .eraseblocks = { {2 * 1024 * 1024, 1} },
3828 .block_erase = spi_block_erase_60,
3829 }, {
3830 .eraseblocks = { {2 * 1024 * 1024, 1} },
3831 .block_erase = spi_block_erase_c7,
3832 },
3833 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00003834 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003835 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003836 },
3837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003838 {
3839 .vendor = "SST",
3840 .name = "SST25VF032B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003841 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003842 .manufacture_id = SST_ID,
3843 .model_id = SST_25VF032B,
3844 .total_size = 4096,
3845 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003846 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003847 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003848 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003849 .block_erasers =
3850 {
3851 {
3852 .eraseblocks = { {4 * 1024, 1024} },
3853 .block_erase = spi_block_erase_20,
3854 }, {
3855 .eraseblocks = { {32 * 1024, 128} },
3856 .block_erase = spi_block_erase_52,
3857 }, {
3858 .eraseblocks = { {64 * 1024, 64} },
3859 .block_erase = spi_block_erase_d8,
3860 }, {
3861 .eraseblocks = { {4 * 1024 * 1024, 1} },
3862 .block_erase = spi_block_erase_60,
3863 }, {
3864 .eraseblocks = { {4 * 1024 * 1024, 1} },
3865 .block_erase = spi_block_erase_c7,
3866 },
3867 },
3868 .write = spi_chip_write_1,
3869 .read = spi_chip_read,
3870 },
3871
3872 {
3873 .vendor = "SST",
3874 .name = "SST25VF040.REMS",
3875 .bustype = CHIP_BUSTYPE_SPI,
3876 .manufacture_id = SST_ID,
3877 .model_id = SST_25VF040_REMS,
3878 .total_size = 512,
3879 .page_size = 256,
3880 .tested = TEST_OK_PR,
3881 .probe = probe_spi_rems,
3882 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003883 .block_erasers =
3884 {
3885 {
3886 .eraseblocks = { {4 * 1024, 128} },
3887 .block_erase = spi_block_erase_20,
3888 }, {
3889 .eraseblocks = { {32 * 1024, 16} },
3890 .block_erase = spi_block_erase_52,
3891 }, {
3892 .eraseblocks = { {512 * 1024, 1} },
3893 .block_erase = spi_block_erase_60,
3894 },
3895 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00003896 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003897 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003898 },
3899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003900 {
3901 .vendor = "SST",
3902 .name = "SST25VF040B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003903 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003904 .manufacture_id = SST_ID,
3905 .model_id = SST_25VF040B,
3906 .total_size = 512,
3907 .page_size = 256,
3908 .tested = TEST_UNTESTED,
3909 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003910 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003911 .block_erasers =
3912 {
3913 {
3914 .eraseblocks = { {4 * 1024, 128} },
3915 .block_erase = spi_block_erase_20,
3916 }, {
3917 .eraseblocks = { {32 * 1024, 16} },
3918 .block_erase = spi_block_erase_52,
3919 }, {
3920 .eraseblocks = { {64 * 1024, 8} },
3921 .block_erase = spi_block_erase_d8,
3922 }, {
3923 .eraseblocks = { {512 * 1024, 1} },
3924 .block_erase = spi_block_erase_60,
3925 }, {
3926 .eraseblocks = { {512 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 },
3929 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00003930 .write = spi_chip_write_1,
Zheng Bao0677dff2009-02-25 08:07:33 +00003931 .read = spi_chip_read,
3932 },
3933
3934 {
3935 .vendor = "SST",
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00003936 .name = "SST25LF040A.RES",
3937 .bustype = CHIP_BUSTYPE_SPI,
3938 .manufacture_id = SST_ID,
3939 .model_id = SST_25VF040_REMS,
3940 .total_size = 512,
3941 .page_size = 256,
3942 .tested = TEST_OK_PROBE,
3943 .probe = probe_spi_res2,
3944 .probe_timing = TIMING_ZERO,
3945 .block_erasers =
3946 {
3947 {
3948 .eraseblocks = { {4 * 1024, 128} },
3949 .block_erase = spi_block_erase_20,
3950 }, {
3951 .eraseblocks = { {32 * 1024, 16} },
3952 .block_erase = spi_block_erase_52,
3953 }, {
3954 .eraseblocks = { {512 * 1024, 1} },
3955 .block_erase = spi_block_erase_60,
3956 },
3957 },
3958 .write = spi_chip_write_1,
3959 .read = spi_chip_read,
3960 },
3961
3962 {
3963 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00003964 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003965 .bustype = CHIP_BUSTYPE_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003966 .manufacture_id = SST_ID,
3967 .model_id = SST_25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00003968 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003969 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00003970 .tested = TEST_OK_PR,
3971 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003972 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00003973 .block_erasers =
3974 {
3975 {
3976 .eraseblocks = { {4 * 1024, 128} },
3977 .block_erase = spi_block_erase_20,
3978 }, {
3979 .eraseblocks = { {32 * 1024, 16} },
3980 .block_erase = spi_block_erase_52,
3981 }, {
3982 .eraseblocks = { {64 * 1024, 8} },
3983 .block_erase = spi_block_erase_d8,
3984 }, {
3985 .eraseblocks = { {512 * 1024, 1} },
3986 .block_erase = spi_block_erase_60,
3987 }, {
3988 .eraseblocks = { {512 * 1024, 1} },
3989 .block_erase = spi_block_erase_c7,
3990 },
3991 },
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00003992 .write = spi_chip_write_1,
Peter Stugefd9217d2009-01-26 03:37:40 +00003993 .read = spi_chip_read,
3994 },
3995
3996 {
3997 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003998 .name = "SST25VF080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003999 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004000 .manufacture_id = SST_ID,
4001 .model_id = SST_25VF080B,
4002 .total_size = 1024,
4003 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004004 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004005 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004006 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004007 .block_erasers =
4008 {
4009 {
4010 .eraseblocks = { {4 * 1024, 256} },
4011 .block_erase = spi_block_erase_20,
4012 }, {
4013 .eraseblocks = { {32 * 1024, 32} },
4014 .block_erase = spi_block_erase_52,
4015 }, {
4016 .eraseblocks = { {64 * 1024, 16} },
4017 .block_erase = spi_block_erase_d8,
4018 }, {
4019 .eraseblocks = { {1024 * 1024, 1} },
4020 .block_erase = spi_block_erase_60,
4021 }, {
4022 .eraseblocks = { {1024 * 1024, 1} },
4023 .block_erase = spi_block_erase_c7,
4024 },
4025 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004026 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004027 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004028 },
4029
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004030 {
4031 .vendor = "SST",
4032 .name = "SST28SF040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00004033 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004034 .manufacture_id = SST_ID,
4035 .model_id = SST_28SF040,
4036 .total_size = 512,
4037 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004038 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004039 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004040 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004041 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004042 .block_erasers =
4043 {
4044 {
4045 .eraseblocks = { {128, 4096} },
4046 .block_erase = erase_sector_28sf040,
4047 }, {
4048 .eraseblocks = { {512 * 1024, 1} },
4049 .block_erase = erase_chip_28sf040,
4050 }
4051 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004052 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004053 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004054 },
4055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004056 {
4057 .vendor = "SST",
4058 .name = "SST29EE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00004059 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004060 .manufacture_id = SST_ID,
4061 .model_id = SST_29EE010,
4062 .total_size = 128,
4063 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00004064 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00004065 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004066 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004067 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004068 .block_erasers =
4069 {
4070 {
4071 .eraseblocks = { {128 * 1024, 1} },
4072 .block_erase = erase_chip_block_jedec,
4073 }
4074 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004075 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004076 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004077 },
4078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004079 {
4080 .vendor = "SST",
4081 .name = "SST29LE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00004082 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004083 .manufacture_id = SST_ID,
4084 .model_id = SST_29LE010,
4085 .total_size = 128,
4086 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00004087 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004088 .tested = TEST_UNTESTED,
4089 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004090 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004091 .block_erasers =
4092 {
4093 {
4094 .eraseblocks = { {128 * 1024, 1} },
4095 .block_erase = erase_chip_block_jedec,
4096 }
4097 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004098 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004099 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004100 },
4101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004102 {
4103 .vendor = "SST",
4104 .name = "SST29EE020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00004105 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004106 .manufacture_id = SST_ID,
4107 .model_id = SST_29EE020A,
4108 .total_size = 256,
4109 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00004110 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00004111 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004112 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004113 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004114 .block_erasers =
4115 {
4116 {
4117 .eraseblocks = { {256 * 1024, 1} },
4118 .block_erase = erase_chip_block_jedec,
4119 }
4120 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004121 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004122 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004123 },
4124
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004125 {
4126 .vendor = "SST",
4127 .name = "SST29LE020",
Urja Rannikko038a3122009-06-28 19:19:25 +00004128 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004129 .manufacture_id = SST_ID,
4130 .model_id = SST_29LE020,
4131 .total_size = 256,
4132 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00004133 .feature_bits = FEATURE_LONG_RESET,
Michael Karcher98eff462010-03-24 22:55:56 +00004134 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004135 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004136 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004137 .block_erasers =
4138 {
4139 {
4140 .eraseblocks = { {256 * 1024, 1} },
4141 .block_erase = erase_chip_block_jedec,
4142 }
4143 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004144 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004145 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004146 },
4147
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004148 {
4149 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00004150 .name = "SST39SF512",
4151 .bustype = CHIP_BUSTYPE_PARALLEL,
4152 .manufacture_id = SST_ID,
4153 .model_id = SST_39SF512,
4154 .total_size = 64,
4155 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004156 .feature_bits = FEATURE_EITHER_RESET,
4157 .tested = TEST_UNTESTED,
Uwe Hermann48da3f92010-01-23 15:15:19 +00004158 .probe = probe_jedec,
4159 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00004160 .block_erasers =
4161 {
4162 {
4163 .eraseblocks = { {4 * 1024, 16} },
4164 .block_erase = erase_sector_jedec,
4165 }, {
4166 .eraseblocks = { {64 * 1024, 1} },
4167 .block_erase = erase_chip_block_jedec,
4168 }
4169 },
Sean Nelson35727f72010-01-28 23:55:12 +00004170 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00004171 .read = read_memmapped,
4172 },
4173
4174 {
4175 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004176 .name = "SST39SF010A",
Urja Rannikko038a3122009-06-28 19:19:25 +00004177 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004178 .manufacture_id = SST_ID,
4179 .model_id = SST_39SF010,
4180 .total_size = 128,
4181 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004182 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00004183 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004184 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004185 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = { {4 * 1024, 32} },
4190 .block_erase = erase_sector_jedec,
4191 }, {
4192 .eraseblocks = { {128 * 1024, 1} },
4193 .block_erase = erase_chip_block_jedec,
4194 }
4195 },
Sean Nelson35727f72010-01-28 23:55:12 +00004196 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004197 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004198 },
4199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004200 {
4201 .vendor = "SST",
4202 .name = "SST39SF020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00004203 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004204 .manufacture_id = SST_ID,
4205 .model_id = SST_39SF020,
4206 .total_size = 256,
4207 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004208 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00004209 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004210 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004211 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004212 .block_erasers =
4213 {
4214 {
4215 .eraseblocks = { {4 * 1024, 64} },
4216 .block_erase = erase_sector_jedec,
4217 }, {
4218 .eraseblocks = { {256 * 1024, 1} },
4219 .block_erase = erase_chip_block_jedec,
4220 }
4221 },
Sean Nelson35727f72010-01-28 23:55:12 +00004222 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004223 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004224 },
4225
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004226 {
4227 .vendor = "SST",
4228 .name = "SST39SF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00004229 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004230 .manufacture_id = SST_ID,
4231 .model_id = SST_39SF040,
4232 .total_size = 512,
4233 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004234 .feature_bits = FEATURE_EITHER_RESET,
4235 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004236 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004237 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004238 .block_erasers =
4239 {
4240 {
4241 .eraseblocks = { {4 * 1024, 128} },
4242 .block_erase = erase_sector_jedec,
4243 }, {
4244 .eraseblocks = { {512 * 1024, 1} },
4245 .block_erase = erase_chip_block_jedec,
4246 }
4247 },
Sean Nelson35727f72010-01-28 23:55:12 +00004248 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004249 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004250 },
4251
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004252 {
4253 .vendor = "SST",
4254 .name = "SST39VF512",
Urja Rannikko038a3122009-06-28 19:19:25 +00004255 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004256 .manufacture_id = SST_ID,
4257 .model_id = SST_39VF512,
4258 .total_size = 64,
4259 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004260 .feature_bits = FEATURE_EITHER_RESET,
4261 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004262 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004263 .probe_timing = 1, /* 150 ns*/
Sean Nelson51c83fb2010-01-20 20:55:53 +00004264 .block_erasers =
4265 {
4266 {
4267 .eraseblocks = { {4 * 1024, 16} },
4268 .block_erase = erase_sector_jedec,
4269 }, {
4270 .eraseblocks = { {64 * 1024, 1} },
4271 .block_erase = erase_chip_block_jedec,
4272 }
4273 },
Sean Nelson35727f72010-01-28 23:55:12 +00004274 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004275 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004276 },
4277
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004278 {
4279 .vendor = "SST",
4280 .name = "SST39VF010",
Urja Rannikko038a3122009-06-28 19:19:25 +00004281 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004282 .manufacture_id = SST_ID,
4283 .model_id = SST_39VF010,
4284 .total_size = 128,
4285 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004286 .feature_bits = FEATURE_EITHER_RESET,
4287 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004288 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004289 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004290 .block_erasers =
4291 {
4292 {
4293 .eraseblocks = { {4 * 1024, 32} },
4294 .block_erase = erase_sector_jedec,
4295 }, {
4296 .eraseblocks = { {128 * 1024, 1} },
4297 .block_erase = erase_chip_block_jedec,
4298 }
4299 },
Sean Nelson35727f72010-01-28 23:55:12 +00004300 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004301 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004302 },
4303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004304 {
4305 .vendor = "SST",
4306 .name = "SST39VF020",
Urja Rannikko038a3122009-06-28 19:19:25 +00004307 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004308 .manufacture_id = SST_ID,
4309 .model_id = SST_39VF020,
4310 .total_size = 256,
4311 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004312 .feature_bits = FEATURE_EITHER_RESET,
4313 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004314 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004315 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004316 .block_erasers =
4317 {
4318 {
4319 .eraseblocks = { {4 * 1024, 64} },
4320 .block_erase = erase_sector_jedec,
4321 }, {
4322 .eraseblocks = { {256 * 1024, 1} },
4323 .block_erase = erase_chip_block_jedec,
4324 }
4325 },
Sean Nelson35727f72010-01-28 23:55:12 +00004326 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004327 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004328 },
4329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004330 {
4331 .vendor = "SST",
4332 .name = "SST39VF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00004333 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004334 .manufacture_id = SST_ID,
4335 .model_id = SST_39VF040,
4336 .total_size = 512,
4337 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004338 .feature_bits = FEATURE_EITHER_RESET,
4339 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004340 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004341 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004342 .block_erasers =
4343 {
4344 {
4345 .eraseblocks = { {4 * 1024, 128} },
4346 .block_erase = erase_sector_jedec,
4347 }, {
4348 .eraseblocks = { {512 * 1024, 1} },
4349 .block_erase = erase_chip_block_jedec,
4350 }
4351 },
Sean Nelson35727f72010-01-28 23:55:12 +00004352 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004353 .read = read_memmapped,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00004354 },
FENG yu ningff692fb2008-12-08 18:15:10 +00004355
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004356 {
4357 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00004358 .name = "SST39VF080",
Urja Rannikko038a3122009-06-28 19:19:25 +00004359 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004360 .manufacture_id = SST_ID,
4361 .model_id = SST_39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00004362 .total_size = 1024,
4363 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004364 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00004365 .tested = TEST_UNTESTED,
4366 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004367 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004368 .block_erasers =
4369 {
4370 {
4371 .eraseblocks = { {4 * 1024, 256} },
4372 .block_erase = erase_sector_jedec,
4373 }, {
4374 .eraseblocks = { {64 * 1024, 16} },
4375 .block_erase = erase_block_jedec,
4376 }, {
4377 .eraseblocks = { {1024 * 1024, 1} },
4378 .block_erase = erase_chip_block_jedec,
4379 }
4380 },
Sean Nelson35727f72010-01-28 23:55:12 +00004381 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004382 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +00004383 },
4384
4385 {
4386 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004387 .name = "SST49LF002A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00004388 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004389 .manufacture_id = SST_ID,
4390 .model_id = SST_49LF002A,
4391 .total_size = 256,
4392 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004393 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004394 .tested = TEST_OK_PRW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004395 .probe = probe_jedec,
4396 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004397 .block_erasers =
4398 {
4399 {
4400 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004401 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004402 }, {
4403 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004404 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004405 }, {
4406 .eraseblocks = { {256 * 1024, 1} },
4407 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
4408 }
4409 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004410 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004411 .unlock = unlock_sst_fwhub,
4412 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004413 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004414 },
4415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004416 {
4417 .vendor = "SST",
4418 .name = "SST49LF003A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00004419 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004420 .manufacture_id = SST_ID,
4421 .model_id = SST_49LF003A,
4422 .total_size = 384,
4423 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004424 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00004425 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004426 .probe = probe_jedec,
4427 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004428 .block_erasers =
4429 {
4430 {
4431 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004432 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004433 }, {
4434 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004435 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004436 }, {
4437 .eraseblocks = { {384 * 1024, 1} },
4438 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
4439 }
4440 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004441 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004442 .unlock = unlock_sst_fwhub,
4443 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004444 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004445 },
4446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004447 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00004448 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
4449 * and is only honored for 64k block erase, but not 4k sector erase.
4450 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004451 .vendor = "SST",
4452 .name = "SST49LF004A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00004453 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004454 .manufacture_id = SST_ID,
4455 .model_id = SST_49LF004A,
4456 .total_size = 512,
4457 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004458 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004459 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004460 .probe = probe_jedec,
4461 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00004462 .block_erasers =
4463 {
4464 {
4465 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004466 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00004467 }, {
4468 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004469 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00004470 }, {
4471 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00004472 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00004473 },
4474 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004475 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004476 .unlock = unlock_sst_fwhub,
4477 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004478 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004479 },
4480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004481 {
4482 .vendor = "SST",
4483 .name = "SST49LF004C",
Urja Rannikko038a3122009-06-28 19:19:25 +00004484 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004485 .manufacture_id = SST_ID,
4486 .model_id = SST_49LF004C,
4487 .total_size = 512,
4488 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004489 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004490 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004491 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004492 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004493 .block_erasers =
4494 {
4495 {
4496 .eraseblocks = { {4 * 1024, 128} },
4497 .block_erase = erase_sector_49lfxxxc,
4498 }, {
4499 .eraseblocks = {
4500 {64 * 1024, 7},
4501 {32 * 1024, 1},
4502 {8 * 1024, 2},
4503 {16 * 1024, 1},
4504 },
Sean Nelson69e58112010-03-23 17:10:28 +00004505 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004506 }
4507 },
Sean Nelson69e58112010-03-23 17:10:28 +00004508 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004509 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004510 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004511 },
4512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004513 {
4514 .vendor = "SST",
4515 .name = "SST49LF008A",
Urja Rannikko038a3122009-06-28 19:19:25 +00004516 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004517 .manufacture_id = SST_ID,
4518 .model_id = SST_49LF008A,
4519 .total_size = 1024,
4520 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004521 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00004522 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004523 .probe = probe_jedec,
4524 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004525 .block_erasers =
4526 {
4527 {
4528 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004529 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004530 }, {
4531 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004532 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004533 }, {
4534 .eraseblocks = { {1024 * 1024, 1} },
4535 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
4536 }
4537 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004538 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00004539 .unlock = unlock_sst_fwhub,
4540 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004541 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004542 },
4543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004544 {
4545 .vendor = "SST",
4546 .name = "SST49LF008C",
Urja Rannikko038a3122009-06-28 19:19:25 +00004547 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004548 .manufacture_id = SST_ID,
4549 .model_id = SST_49LF008C,
4550 .total_size = 1024,
4551 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004552 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004553 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004554 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004555 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004556 .block_erasers =
4557 {
4558 {
4559 .eraseblocks = { {4 * 1024, 256} },
4560 .block_erase = erase_sector_49lfxxxc,
4561 }, {
4562 .eraseblocks = {
4563 {64 * 1024, 15},
4564 {32 * 1024, 1},
4565 {8 * 1024, 2},
4566 {16 * 1024, 1},
4567 },
Sean Nelson69e58112010-03-23 17:10:28 +00004568 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004569 }
4570 },
Sean Nelson69e58112010-03-23 17:10:28 +00004571 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004572 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004573 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004574 },
4575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004576 {
4577 .vendor = "SST",
4578 .name = "SST49LF016C",
Urja Rannikko038a3122009-06-28 19:19:25 +00004579 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004580 .manufacture_id = SST_ID,
4581 .model_id = SST_49LF016C,
4582 .total_size = 2048,
4583 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004584 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004585 .tested = TEST_OK_PRW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004586 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004587 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004588 .block_erasers =
4589 {
4590 {
4591 .eraseblocks = { {4 * 1024, 512} },
4592 .block_erase = erase_sector_49lfxxxc,
4593 }, {
4594 .eraseblocks = {
4595 {64 * 1024, 31},
4596 {32 * 1024, 1},
4597 {8 * 1024, 2},
4598 {16 * 1024, 1},
4599 },
Sean Nelson69e58112010-03-23 17:10:28 +00004600 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004601 }
4602 },
Sean Nelson69e58112010-03-23 17:10:28 +00004603 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004604 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004605 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004606 },
4607
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004608 {
4609 .vendor = "SST",
4610 .name = "SST49LF020",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004611 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004612 .manufacture_id = SST_ID,
4613 .model_id = SST_49LF020,
4614 .total_size = 256,
4615 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004616 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00004617 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004618 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004619 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004620 .block_erasers =
4621 {
4622 {
4623 .eraseblocks = { {4 * 1024, 64} },
4624 .block_erase = erase_sector_jedec,
4625 }, {
4626 .eraseblocks = { {16 * 1024, 16} },
4627 .block_erase = erase_block_jedec,
4628 }, {
4629 .eraseblocks = { {256 * 1024, 1} },
4630 .block_erase = NULL,
4631 }
4632 },
Sean Nelson35727f72010-01-28 23:55:12 +00004633 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004634 .read = read_memmapped,
Sven Schnellec208dfb2009-01-07 12:35:09 +00004635 },
4636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004637 {
4638 .vendor = "SST",
4639 .name = "SST49LF020A",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004640 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004641 .manufacture_id = SST_ID,
4642 .model_id = SST_49LF020A,
4643 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00004644 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004645 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00004646 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004647 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004648 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004649 .block_erasers =
4650 {
4651 {
4652 .eraseblocks = { {4 * 1024, 64} },
4653 .block_erase = erase_sector_jedec,
4654 }, {
4655 .eraseblocks = { {16 * 1024, 16} },
4656 .block_erase = erase_block_jedec,
4657 }, {
4658 .eraseblocks = { {256 * 1024, 1} },
4659 .block_erase = NULL,
4660 }
4661 },
Sean Nelson35727f72010-01-28 23:55:12 +00004662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004663 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004664 },
4665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004666 {
4667 .vendor = "SST",
4668 .name = "SST49LF040",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004669 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004670 .manufacture_id = SST_ID,
4671 .model_id = SST_49LF040,
4672 .total_size = 512,
4673 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004674 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00004675 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004676 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004677 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004678 .block_erasers =
4679 {
4680 {
4681 .eraseblocks = { {4 * 1024, 128} },
4682 .block_erase = erase_sector_jedec,
4683 }, {
4684 .eraseblocks = { {64 * 1024, 8} },
4685 .block_erase = erase_block_jedec,
4686 }, {
4687 .eraseblocks = { {512 * 1024, 1} },
4688 .block_erase = NULL,
4689 }
4690 },
Sean Nelson35727f72010-01-28 23:55:12 +00004691 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004692 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004693 },
4694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004695 {
4696 .vendor = "SST",
4697 .name = "SST49LF040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00004698 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004699 .manufacture_id = SST_ID,
4700 .model_id = SST_49LF040B,
4701 .total_size = 512,
4702 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004703 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00004704 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004705 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004706 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004707 .block_erasers =
4708 {
4709 {
4710 .eraseblocks = { {4 * 1024, 128} },
4711 .block_erase = erase_sector_jedec,
4712 }, {
4713 .eraseblocks = { {64 * 1024, 8} },
4714 .block_erase = erase_block_jedec,
4715 }, {
4716 .eraseblocks = { {512 * 1024, 1} },
4717 .block_erase = NULL,
4718 }
4719 },
Sean Nelson35727f72010-01-28 23:55:12 +00004720 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004721 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004722 },
4723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004724 {
4725 .vendor = "SST",
4726 .name = "SST49LF080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00004727 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004728 .manufacture_id = SST_ID,
Urja Rannikko038a3122009-06-28 19:19:25 +00004729 .model_id = SST_49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004730 .total_size = 1024,
4731 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004732 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00004733 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004734 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004735 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004736 .block_erasers =
4737 {
4738 {
4739 .eraseblocks = { {4 * 1024, 256} },
4740 .block_erase = erase_sector_jedec,
4741 }, {
4742 .eraseblocks = { {64 * 1024, 16} },
4743 .block_erase = erase_block_jedec,
4744 }, {
4745 .eraseblocks = { {1024 * 1024, 1} },
4746 .block_erase = NULL,
4747 }
4748 },
Sean Nelson35727f72010-01-28 23:55:12 +00004749 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004750 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004751 },
4752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004753 {
4754 .vendor = "SST",
4755 .name = "SST49LF160C",
Urja Rannikko038a3122009-06-28 19:19:25 +00004756 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004757 .manufacture_id = SST_ID,
4758 .model_id = SST_49LF160C,
4759 .total_size = 2048,
4760 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004761 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004762 .tested = TEST_OK_PRW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004763 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00004764 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00004765 .block_erasers =
4766 {
4767 {
4768 .eraseblocks = { {4 * 1024, 512} },
4769 .block_erase = erase_sector_49lfxxxc,
4770 }, {
4771 .eraseblocks = {
4772 {64 * 1024, 31},
4773 {32 * 1024, 1},
4774 {8 * 1024, 2},
4775 {16 * 1024, 1},
4776 },
Sean Nelson69e58112010-03-23 17:10:28 +00004777 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00004778 }
4779 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00004780 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004781 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004782 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004783 },
4784
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004785 {
4786 .vendor = "ST",
4787 .name = "M25P05-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004788 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004789 .manufacture_id = ST_ID,
4790 .model_id = ST_M25P05A,
4791 .total_size = 64,
4792 .page_size = 256,
4793 .tested = TEST_UNTESTED,
4794 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004795 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004796 .block_erasers =
4797 {
4798 {
4799 .eraseblocks = { {32 * 1024, 2} },
4800 .block_erase = spi_block_erase_d8,
4801 }, {
4802 .eraseblocks = { {64 * 1024, 1} },
4803 .block_erase = spi_block_erase_c7,
4804 }
4805 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004806 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004807 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004808 },
4809
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004810 /* The ST M25P05 is a bit of a problem. It has the same ID as the
4811 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00004812 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004813 * only is successful if RDID does not work.
4814 */
4815 {
4816 .vendor = "ST",
4817 .name = "M25P05.RES",
4818 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00004819 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004820 .model_id = ST_M25P05_RES,
4821 .total_size = 64,
4822 .page_size = 256,
4823 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00004824 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004825 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004826 .block_erasers =
4827 {
4828 {
4829 .eraseblocks = { {32 * 1024, 2} },
4830 .block_erase = spi_block_erase_d8,
4831 }, {
4832 .eraseblocks = { {64 * 1024, 1} },
4833 .block_erase = spi_block_erase_c7,
4834 }
4835 },
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004836 .write = spi_chip_write_1, /* 128 */
4837 .read = spi_chip_read,
4838 },
4839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004840 {
4841 .vendor = "ST",
4842 .name = "M25P10-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004843 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004844 .manufacture_id = ST_ID,
4845 .model_id = ST_M25P10A,
4846 .total_size = 128,
4847 .page_size = 256,
4848 .tested = TEST_UNTESTED,
4849 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004850 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004851 .block_erasers =
4852 {
4853 {
4854 .eraseblocks = { {32 * 1024, 4} },
4855 .block_erase = spi_block_erase_d8,
4856 }, {
4857 .eraseblocks = { {128 * 1024, 1} },
4858 .block_erase = spi_block_erase_c7,
4859 }
4860 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004861 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004862 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004863 },
4864
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004865 /* The ST M25P10 has the same problem as the M25P05. */
4866 {
4867 .vendor = "ST",
4868 .name = "M25P10.RES",
4869 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00004870 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004871 .model_id = ST_M25P10_RES,
4872 .total_size = 128,
4873 .page_size = 256,
4874 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00004875 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004876 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004877 .block_erasers =
4878 {
4879 {
4880 .eraseblocks = { {32 * 1024, 4} },
4881 .block_erase = spi_block_erase_d8,
4882 }, {
4883 .eraseblocks = { {128 * 1024, 1} },
4884 .block_erase = spi_block_erase_c7,
4885 }
4886 },
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00004887 .write = spi_chip_write_1, /* 128 */
4888 .read = spi_chip_read,
4889 },
4890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004891 {
4892 .vendor = "ST",
4893 .name = "M25P20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004894 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004895 .manufacture_id = ST_ID,
4896 .model_id = ST_M25P20,
4897 .total_size = 256,
4898 .page_size = 256,
4899 .tested = TEST_UNTESTED,
4900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004901 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004902 .block_erasers =
4903 {
4904 {
4905 .eraseblocks = { {64 * 1024, 4} },
4906 .block_erase = spi_block_erase_d8,
4907 }, {
4908 .eraseblocks = { {256 * 1024, 1} },
4909 .block_erase = spi_block_erase_c7,
4910 }
4911 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004912 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004913 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004914 },
4915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004916 {
4917 .vendor = "ST",
4918 .name = "M25P40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004919 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004920 .manufacture_id = ST_ID,
4921 .model_id = ST_M25P40,
4922 .total_size = 512,
4923 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00004924 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004925 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004926 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004927 .block_erasers =
4928 {
4929 {
4930 .eraseblocks = { {64 * 1024, 8} },
4931 .block_erase = spi_block_erase_d8,
4932 }, {
4933 .eraseblocks = { {512 * 1024, 1} },
4934 .block_erase = spi_block_erase_c7,
4935 }
4936 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004937 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004938 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004939 },
4940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004941 {
4942 .vendor = "ST",
4943 .name = "M25P40-old",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004944 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00004945 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004946 .model_id = ST_M25P40_RES,
4947 .total_size = 512,
4948 .page_size = 256,
4949 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00004950 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004951 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004952 .block_erasers =
4953 {
4954 {
4955 .eraseblocks = { {64 * 1024, 8} },
4956 .block_erase = spi_block_erase_d8,
4957 }, {
4958 .eraseblocks = { {512 * 1024, 1} },
4959 .block_erase = spi_block_erase_c7,
4960 }
4961 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004962 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004963 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004964 },
4965
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004966 {
4967 .vendor = "ST",
4968 .name = "M25P80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004969 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004970 .manufacture_id = ST_ID,
4971 .model_id = ST_M25P80,
4972 .total_size = 1024,
4973 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00004974 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004975 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004976 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00004977 .block_erasers =
4978 {
4979 {
4980 .eraseblocks = { {64 * 1024, 16} },
4981 .block_erase = spi_block_erase_d8,
4982 }, {
4983 .eraseblocks = { {1024 * 1024, 1} },
4984 .block_erase = spi_block_erase_c7,
4985 }
4986 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004987 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004988 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004989 },
4990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004991 {
4992 .vendor = "ST",
4993 .name = "M25P16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004994 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004995 .manufacture_id = ST_ID,
4996 .model_id = ST_M25P16,
4997 .total_size = 2048,
4998 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00004999 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005000 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005001 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005002 .block_erasers =
5003 {
5004 {
5005 .eraseblocks = { {64 * 1024, 32} },
5006 .block_erase = spi_block_erase_d8,
5007 }, {
5008 .eraseblocks = { {2 * 1024 * 1024, 1} },
5009 .block_erase = spi_block_erase_c7,
5010 }
5011 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005012 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005013 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005014 },
5015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005016 {
5017 .vendor = "ST",
5018 .name = "M25P32",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005019 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005020 .manufacture_id = ST_ID,
5021 .model_id = ST_M25P32,
5022 .total_size = 4096,
5023 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00005024 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005025 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005026 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005027 .block_erasers =
5028 {
5029 {
5030 .eraseblocks = { {64 * 1024, 64} },
5031 .block_erase = spi_block_erase_d8,
5032 }, {
5033 .eraseblocks = { {4 * 1024 * 1024, 1} },
5034 .block_erase = spi_block_erase_c7,
5035 }
5036 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005037 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005038 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005039 },
5040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005041 {
5042 .vendor = "ST",
5043 .name = "M25P64",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005044 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005045 .manufacture_id = ST_ID,
5046 .model_id = ST_M25P64,
5047 .total_size = 8192,
5048 .page_size = 256,
5049 .tested = TEST_UNTESTED,
5050 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005051 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005052 .block_erasers =
5053 {
5054 {
5055 .eraseblocks = { {64 * 1024, 128} },
5056 .block_erase = spi_block_erase_d8,
5057 }, {
5058 .eraseblocks = { {8 * 1024 * 1024, 1} },
5059 .block_erase = spi_block_erase_c7,
5060 }
5061 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005062 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005063 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005064 },
5065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005066 {
5067 .vendor = "ST",
5068 .name = "M25P128",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005069 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005070 .manufacture_id = ST_ID,
5071 .model_id = ST_M25P128,
5072 .total_size = 16384,
5073 .page_size = 256,
5074 .tested = TEST_UNTESTED,
5075 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005076 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005077 .block_erasers =
5078 {
5079 {
5080 .eraseblocks = { {256 * 1024, 64} },
5081 .block_erase = spi_block_erase_d8,
5082 }, {
5083 .eraseblocks = { {16 * 1024 * 1024, 1} },
5084 .block_erase = spi_block_erase_c7,
5085 }
5086 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005087 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005088 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005089 },
5090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005091 {
5092 .vendor = "ST",
5093 .name = "M29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005094 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005095 .manufacture_id = ST_ID,
5096 .model_id = ST_M29F002B,
5097 .total_size = 256,
5098 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005099 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005100 .tested = TEST_UNTESTED,
5101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005102 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005103 .block_erasers =
5104 {
5105 {
5106 .eraseblocks = {
5107 {16 * 1024, 1},
5108 {8 * 1024, 2},
5109 {32 * 1024, 1},
5110 {64 * 1024, 3},
5111 },
5112 .block_erase = erase_sector_jedec,
5113 }, {
5114 .eraseblocks = { {256 * 1024, 1} },
5115 .block_erase = erase_chip_block_jedec,
5116 }
5117 },
Sean Nelson35727f72010-01-28 23:55:12 +00005118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005119 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005120 },
5121
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005122 {
5123 .vendor = "ST",
5124 .name = "M29F002T/NT",
Urja Rannikko038a3122009-06-28 19:19:25 +00005125 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005126 .manufacture_id = ST_ID,
5127 .model_id = ST_M29F002T,
5128 .total_size = 256,
5129 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005130 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
5131 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005132 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005133 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005134 .block_erasers =
5135 {
5136 {
5137 .eraseblocks = {
5138 {64 * 1024, 3},
5139 {32 * 1024, 1},
5140 {8 * 1024, 2},
5141 {16 * 1024, 1},
5142 },
5143 .block_erase = erase_sector_jedec,
5144 }, {
5145 .eraseblocks = { {256 * 1024, 1} },
5146 .block_erase = erase_chip_block_jedec,
5147 }
5148 },
Sean Nelson35727f72010-01-28 23:55:12 +00005149 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005150 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005151 },
5152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005153 {
5154 .vendor = "ST",
5155 .name = "M29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005156 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005157 .manufacture_id = ST_ID,
5158 .model_id = ST_M29F040B,
5159 .total_size = 512,
5160 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005161 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5162 .tested = TEST_UNTESTED,
5163 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005164 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00005165 .block_erasers =
5166 {
5167 {
5168 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005169 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00005170 }, {
5171 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005172 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00005173 }
5174 },
Sean Nelson35727f72010-01-28 23:55:12 +00005175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005176 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005177 },
5178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005179 {
Sean Nelson35727f72010-01-28 23:55:12 +00005180 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005181 .vendor = "ST",
5182 .name = "M29F400BT",
Urja Rannikko038a3122009-06-28 19:19:25 +00005183 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005184 .manufacture_id = ST_ID,
5185 .model_id = ST_M29F400BT,
5186 .total_size = 512,
5187 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005188 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005189 .tested = TEST_UNTESTED,
5190 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005191 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00005192 .block_erasers =
5193 {
5194 {
5195 .eraseblocks = {
5196 {64 * 1024, 7},
5197 {32 * 1024, 1},
5198 {8 * 1024, 2},
5199 {16 * 1024, 1},
5200 },
5201 .block_erase = block_erase_m29f400bt,
5202 }, {
5203 .eraseblocks = { {512 * 1024, 1} },
5204 .block_erase = block_erase_chip_m29f400bt,
5205 }
5206 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005207 .write = write_coreboot_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005208 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005209 },
5210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005211 {
5212 .vendor = "ST",
5213 .name = "M29W010B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005214 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005215 .manufacture_id = ST_ID,
5216 .model_id = ST_M29W010B,
5217 .total_size = 128,
5218 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005219 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005220 .tested = TEST_UNTESTED,
5221 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005222 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005223 .block_erasers =
5224 {
5225 {
5226 .eraseblocks = { {16 * 1024, 8}, },
5227 .block_erase = erase_sector_jedec,
5228 }, {
5229 .eraseblocks = { {128 * 1024, 1} },
5230 .block_erase = erase_chip_block_jedec,
5231 }
5232 },
Sean Nelson35727f72010-01-28 23:55:12 +00005233 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005234 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005235 },
5236
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005237 {
5238 .vendor = "ST",
5239 .name = "M29W040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005240 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005241 .manufacture_id = ST_ID,
5242 .model_id = ST_M29W040B,
5243 .total_size = 512,
5244 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005245 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005246 .tested = TEST_UNTESTED,
5247 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005248 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005249 .block_erasers =
5250 {
5251 {
5252 .eraseblocks = { {64 * 1024, 8}, },
5253 .block_erase = erase_sector_jedec,
5254 }, {
5255 .eraseblocks = { {512 * 1024, 1} },
5256 .block_erase = erase_chip_block_jedec,
5257 }
5258 },
Sean Nelson35727f72010-01-28 23:55:12 +00005259 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005260 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005261 },
5262
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00005263 {
5264 .vendor = "ST",
5265 .name = "M29W512B",
5266 .bustype = CHIP_BUSTYPE_PARALLEL,
5267 .manufacture_id = ST_ID,
5268 .model_id = ST_M29W512B,
5269 .total_size = 64,
5270 .page_size = 64 * 1024,
5271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5272 .tested = TEST_OK_PREW,
5273 .probe = probe_jedec,
5274 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00005275 .block_erasers =
5276 {
5277 {
5278 .eraseblocks = { {64 * 1024, 1} },
5279 .block_erase = erase_chip_block_jedec,
5280 }
5281 },
5282 .write = write_jedec_1,
5283 .read = read_memmapped,
5284 },
5285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005286 {
5287 .vendor = "ST",
5288 .name = "M50FLW040A",
Sean Nelson35727f72010-01-28 23:55:12 +00005289 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005290 .manufacture_id = ST_ID,
5291 .model_id = ST_M50FLW040A,
5292 .total_size = 512,
5293 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005294 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005295 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005296 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00005297 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00005298 .block_erasers =
5299 {
5300 {
Sean Nelson329bde72010-01-19 16:39:19 +00005301 .eraseblocks = {
5302 {4 * 1024, 16}, /* sector */
5303 {64 * 1024, 5}, /* block */
5304 {4 * 1024, 16}, /* sector */
5305 {4 * 1024, 16}, /* sector */
5306 },
5307 .block_erase = NULL,
5308 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00005309 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00005310 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005311 }, {
5312 .eraseblocks = { {512 * 1024, 1} },
5313 .block_erase = erase_chip_stm50flw0x0x,
5314 }
5315 },
Sean Nelson28accc22010-03-19 18:47:06 +00005316 .unlock = unlock_stm50flw0x0x,
5317 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005318 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005319 },
5320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005321 {
5322 .vendor = "ST",
5323 .name = "M50FLW040B",
Sean Nelson35727f72010-01-28 23:55:12 +00005324 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005325 .manufacture_id = ST_ID,
5326 .model_id = ST_M50FLW040B,
5327 .total_size = 512,
5328 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005329 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005330 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005331 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00005332 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00005333 .block_erasers =
5334 {
5335 {
Sean Nelson329bde72010-01-19 16:39:19 +00005336 .eraseblocks = {
5337 {4 * 1024, 16}, /* sector */
5338 {4 * 1024, 16}, /* sector */
5339 {64 * 1024, 5}, /* block */
5340 {4 * 1024, 16}, /* sector */
5341 },
5342 .block_erase = NULL,
5343 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00005344 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00005345 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005346 }, {
5347 .eraseblocks = { {512 * 1024, 1} },
5348 .block_erase = erase_chip_stm50flw0x0x,
5349 }
5350 },
Sean Nelson28accc22010-03-19 18:47:06 +00005351 .unlock = unlock_stm50flw0x0x,
5352 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005353 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005354 },
5355
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005356 {
5357 .vendor = "ST",
5358 .name = "M50FLW080A",
Sean Nelson35727f72010-01-28 23:55:12 +00005359 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005360 .manufacture_id = ST_ID,
5361 .model_id = ST_M50FLW080A,
5362 .total_size = 1024,
5363 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005364 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson35727f72010-01-28 23:55:12 +00005365 .tested = TEST_UNTESTED,
5366 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00005367 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00005368 .block_erasers =
5369 {
5370 {
Sean Nelson329bde72010-01-19 16:39:19 +00005371 .eraseblocks = {
5372 {4 * 1024, 16}, /* sector */
5373 {64 * 1024, 13}, /* block */
5374 {4 * 1024, 16}, /* sector */
5375 {4 * 1024, 16}, /* sector */
5376 },
5377 .block_erase = NULL,
5378 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00005379 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00005380 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005381 }, {
5382 .eraseblocks = { {1024 * 1024, 1} },
5383 .block_erase = erase_chip_stm50flw0x0x,
5384 }
5385 },
Sean Nelson28accc22010-03-19 18:47:06 +00005386 .unlock = unlock_stm50flw0x0x,
5387 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005388 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005389 },
5390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005391 {
5392 .vendor = "ST",
5393 .name = "M50FLW080B",
Sean Nelson35727f72010-01-28 23:55:12 +00005394 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005395 .manufacture_id = ST_ID,
5396 .model_id = ST_M50FLW080B,
5397 .total_size = 1024,
5398 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005399 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005400 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005401 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00005402 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00005403 .block_erasers =
5404 {
5405 {
Sean Nelson329bde72010-01-19 16:39:19 +00005406 .eraseblocks = {
5407 {4 * 1024, 16}, /* sector */
5408 {4 * 1024, 16}, /* sector */
5409 {64 * 1024, 13}, /* block */
5410 {4 * 1024, 16}, /* sector */
5411 },
5412 .block_erase = NULL,
5413 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00005414 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00005415 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005416 }, {
5417 .eraseblocks = { {1024 * 1024, 1} },
5418 .block_erase = erase_chip_stm50flw0x0x,
5419 }
5420 },
Sean Nelson28accc22010-03-19 18:47:06 +00005421 .unlock = unlock_stm50flw0x0x,
5422 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005423 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005424 },
5425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005426 {
5427 .vendor = "ST",
5428 .name = "M50FW002",
Urja Rannikko038a3122009-06-28 19:19:25 +00005429 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005430 .manufacture_id = ST_ID,
5431 .model_id = ST_M50FW002,
5432 .total_size = 256,
5433 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005434 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005435 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005436 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005437 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00005438 .block_erasers =
5439 {
5440 {
5441 .eraseblocks = {
5442 {64 * 1024, 3},
5443 {32 * 1024, 1},
5444 {8 * 1024, 2},
5445 {16 * 1024, 1},
5446 },
Sean Nelson28accc22010-03-19 18:47:06 +00005447 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005448 }, {
5449 .eraseblocks = { {256 * 1024, 1} },
5450 .block_erase = erase_chip_stm50flw0x0x,
5451 }
5452 },
Sean Nelson28accc22010-03-19 18:47:06 +00005453 .unlock = unlock_stm50flw0x0x,
5454 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005455 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005456 },
5457
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005458 {
5459 .vendor = "ST",
5460 .name = "M50FW016",
Urja Rannikko038a3122009-06-28 19:19:25 +00005461 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005462 .manufacture_id = ST_ID,
5463 .model_id = ST_M50FW016,
5464 .total_size = 2048,
5465 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005466 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005467 .tested = TEST_UNTESTED,
5468 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005469 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00005470 .block_erasers =
5471 {
5472 {
5473 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00005474 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005475 }, {
5476 .eraseblocks = { {2 * 1024 * 1024, 1} },
5477 .block_erase = erase_chip_stm50flw0x0x,
5478 }
5479 },
Sean Nelson28accc22010-03-19 18:47:06 +00005480 .unlock = unlock_stm50flw0x0x,
5481 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005482 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005483 },
5484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005485 {
5486 .vendor = "ST",
5487 .name = "M50FW040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005488 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005489 .manufacture_id = ST_ID,
5490 .model_id = ST_M50FW040,
5491 .total_size = 512,
5492 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005493 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005494 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005495 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005496 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00005497 .block_erasers =
5498 {
5499 {
5500 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00005501 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005502 }, {
5503 .eraseblocks = { {512 * 1024, 1} },
5504 .block_erase = erase_chip_stm50flw0x0x,
5505 }
5506 },
Sean Nelson28accc22010-03-19 18:47:06 +00005507 .unlock = unlock_stm50flw0x0x,
5508 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005509 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005510 },
5511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 {
5513 .vendor = "ST",
5514 .name = "M50FW080",
Urja Rannikko038a3122009-06-28 19:19:25 +00005515 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005516 .manufacture_id = ST_ID,
5517 .model_id = ST_M50FW080,
5518 .total_size = 1024,
5519 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005520 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005521 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005522 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005523 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00005524 .block_erasers =
5525 {
5526 {
5527 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00005528 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005529 }, {
5530 .eraseblocks = { {1024 * 1024, 1} },
5531 .block_erase = erase_chip_stm50flw0x0x,
5532 }
5533 },
Sean Nelson28accc22010-03-19 18:47:06 +00005534 .unlock = unlock_stm50flw0x0x,
5535 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005536 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005537 },
5538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005539 {
5540 .vendor = "ST",
5541 .name = "M50LPW116",
Urja Rannikko038a3122009-06-28 19:19:25 +00005542 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005543 .manufacture_id = ST_ID,
5544 .model_id = ST_M50LPW116,
5545 .total_size = 2048,
5546 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005547 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005548 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005549 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00005550 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005551 .block_erasers =
5552 {
5553 {
5554 .eraseblocks = {
5555 {4 * 1024, 16},
5556 {64 * 1024, 30},
5557 {32 * 1024, 1},
5558 {8 * 1024, 2},
5559 {16 * 1024, 1},
5560 },
Sean Nelson28accc22010-03-19 18:47:06 +00005561 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00005562 }, {
5563 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005564 .block_erase = erase_chip_stm50flw0x0x,
Sean Nelson56358aa2010-01-19 16:08:51 +00005565 }
5566 },
Sean Nelson28accc22010-03-19 18:47:06 +00005567 .unlock = unlock_stm50flw0x0x,
5568 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005569 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005570 },
5571
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005572 {
5573 .vendor = "SyncMOS",
5574 .name = "S29C31004T",
Urja Rannikko038a3122009-06-28 19:19:25 +00005575 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005576 .manufacture_id = SYNCMOS_ID,
5577 .model_id = S29C31004T,
5578 .total_size = 512,
5579 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005580 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005581 .tested = TEST_UNTESTED,
5582 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005583 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005584 .block_erasers =
5585 {
5586 {
5587 .eraseblocks = { {1 * 1024, 512} },
5588 .block_erase = erase_sector_jedec,
5589 }, {
5590 .eraseblocks = { {512 * 1024, 1} },
5591 .block_erase = erase_chip_block_jedec,
5592 },
5593 },
Sean Nelson35727f72010-01-28 23:55:12 +00005594 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005595 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005596 },
5597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005598 {
5599 .vendor = "SyncMOS",
5600 .name = "S29C51001T",
Urja Rannikko038a3122009-06-28 19:19:25 +00005601 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005602 .manufacture_id = SYNCMOS_ID,
5603 .model_id = S29C51001T,
5604 .total_size = 128,
5605 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005606 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005607 .tested = TEST_UNTESTED,
5608 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005609 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005610 .block_erasers =
5611 {
5612 {
5613 .eraseblocks = { {512, 256} },
5614 .block_erase = erase_sector_jedec,
5615 }, {
5616 .eraseblocks = { {128 * 1024, 1} },
5617 .block_erase = erase_chip_block_jedec,
5618 },
5619 },
Sean Nelson35727f72010-01-28 23:55:12 +00005620 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005621 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005622 },
5623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005624 {
5625 .vendor = "SyncMOS",
5626 .name = "S29C51002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00005627 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005628 .manufacture_id = SYNCMOS_ID,
5629 .model_id = S29C51002T,
5630 .total_size = 256,
5631 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005632 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00005633 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005634 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005635 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005636 .block_erasers =
5637 {
5638 {
5639 .eraseblocks = { {512, 512} },
5640 .block_erase = erase_sector_jedec,
5641 }, {
5642 .eraseblocks = { {256 * 1024, 1} },
5643 .block_erase = erase_chip_block_jedec,
5644 },
5645 },
Sean Nelson35727f72010-01-28 23:55:12 +00005646 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005647 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005648 },
5649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005650 {
5651 .vendor = "SyncMOS",
5652 .name = "S29C51004T",
Urja Rannikko038a3122009-06-28 19:19:25 +00005653 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005654 .manufacture_id = SYNCMOS_ID,
5655 .model_id = S29C51004T,
5656 .total_size = 512,
5657 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005658 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005659 .tested = TEST_UNTESTED,
5660 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005661 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005662 .block_erasers =
5663 {
5664 {
Sean Nelson012a31e2010-01-19 20:23:26 +00005665 .eraseblocks = { {1 * 1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00005666 .block_erase = erase_sector_jedec,
5667 }, {
5668 .eraseblocks = { {512 * 1024, 1} },
5669 .block_erase = erase_chip_block_jedec,
5670 },
5671 },
Sean Nelson35727f72010-01-28 23:55:12 +00005672 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005673 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005674 },
5675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005676 {
Uwe Hermanna106d152009-05-27 23:17:40 +00005677 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005678 .name = "TMS29F002RB",
Urja Rannikko038a3122009-06-28 19:19:25 +00005679 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005680 .manufacture_id = TI_OLD_ID,
5681 .model_id = TI_TMS29F002RB,
5682 .total_size = 256,
5683 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00005684 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005685 .tested = TEST_UNTESTED,
5686 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005687 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005688 .block_erasers =
5689 {
5690 {
5691 .eraseblocks = {
5692 {16 * 1024, 1},
5693 {8 * 1024, 2},
5694 {32 * 1024, 1},
5695 {64 * 1024, 3},
5696 },
5697 .block_erase = erase_sector_jedec,
5698 }, {
5699 .eraseblocks = { {256 * 1024, 1} },
5700 .block_erase = erase_chip_block_jedec,
5701 },
5702 },
Sean Nelson35727f72010-01-28 23:55:12 +00005703 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005704 .read = read_memmapped,
5705 },
5706
5707 {
Uwe Hermanna106d152009-05-27 23:17:40 +00005708 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005709 .name = "TMS29F002RT",
Urja Rannikko038a3122009-06-28 19:19:25 +00005710 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005711 .manufacture_id = TI_OLD_ID,
5712 .model_id = TI_TMS29F002RT,
5713 .total_size = 256,
5714 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00005715 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005716 .tested = TEST_UNTESTED,
5717 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005718 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00005719 .block_erasers =
5720 {
5721 {
5722 .eraseblocks = {
5723 {64 * 1024, 3},
5724 {32 * 1024, 1},
5725 {8 * 1024, 2},
5726 {16 * 1024, 1},
5727 },
5728 .block_erase = erase_sector_jedec,
5729 }, {
5730 .eraseblocks = { {256 * 1024, 1} },
5731 .block_erase = erase_chip_block_jedec,
5732 },
5733 },
Sean Nelson35727f72010-01-28 23:55:12 +00005734 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00005735 .read = read_memmapped,
5736 },
5737
5738 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005739 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00005740 .name = "W25Q80",
5741 .bustype = CHIP_BUSTYPE_SPI,
5742 .manufacture_id = WINBOND_NEX_ID,
5743 .model_id = W_25Q80,
5744 .total_size = 1024,
5745 .page_size = 256,
5746 .tested = TEST_UNTESTED,
5747 .probe = probe_spi_rdid,
5748 .probe_timing = TIMING_ZERO,
5749 .block_erasers =
5750 {
5751 {
5752 .eraseblocks = { {4 * 1024, 256} },
5753 .block_erase = spi_block_erase_20,
5754 }, {
5755 .eraseblocks = { {32 * 1024, 32} },
5756 .block_erase = spi_block_erase_52,
5757 }, {
5758 .eraseblocks = { {64 * 1024, 16} },
5759 .block_erase = spi_block_erase_d8,
5760 }, {
5761 .eraseblocks = { {1024 * 1024, 1} },
5762 .block_erase = spi_block_erase_60,
5763 }, {
5764 .eraseblocks = { {1024 * 1024, 1} },
5765 .block_erase = spi_block_erase_c7,
5766 }
5767 },
5768 .write = spi_chip_write_256,
5769 .read = spi_chip_read,
5770 },
5771
5772 {
5773 .vendor = "Winbond",
5774 .name = "W25Q16",
5775 .bustype = CHIP_BUSTYPE_SPI,
5776 .manufacture_id = WINBOND_NEX_ID,
5777 .model_id = W_25Q16,
5778 .total_size = 2048,
5779 .page_size = 256,
5780 .tested = TEST_UNTESTED,
5781 .probe = probe_spi_rdid,
5782 .probe_timing = TIMING_ZERO,
5783 .block_erasers =
5784 {
5785 {
5786 .eraseblocks = { {4 * 1024, 512} },
5787 .block_erase = spi_block_erase_20,
5788 }, {
5789 .eraseblocks = { {32 * 1024, 64} },
5790 .block_erase = spi_block_erase_52,
5791 }, {
5792 .eraseblocks = { {64 * 1024, 32} },
5793 .block_erase = spi_block_erase_d8,
5794 }, {
5795 .eraseblocks = { {2 * 1024 * 1024, 1} },
5796 .block_erase = spi_block_erase_60,
5797 }, {
5798 .eraseblocks = { {2 * 1024 * 1024, 1} },
5799 .block_erase = spi_block_erase_c7,
5800 }
5801 },
5802 .write = spi_chip_write_256,
5803 .read = spi_chip_read,
5804 },
5805
5806 {
5807 .vendor = "Winbond",
5808 .name = "W25Q32",
5809 .bustype = CHIP_BUSTYPE_SPI,
5810 .manufacture_id = WINBOND_NEX_ID,
5811 .model_id = W_25Q32,
5812 .total_size = 4096,
5813 .page_size = 256,
5814 .tested = TEST_UNTESTED,
5815 .probe = probe_spi_rdid,
5816 .probe_timing = TIMING_ZERO,
5817 .block_erasers =
5818 {
5819 {
5820 .eraseblocks = { {4 * 1024, 1024} },
5821 .block_erase = spi_block_erase_20,
5822 }, {
5823 .eraseblocks = { {32 * 1024, 128} },
5824 .block_erase = spi_block_erase_52,
5825 }, {
5826 .eraseblocks = { {64 * 1024, 64} },
5827 .block_erase = spi_block_erase_d8,
5828 }, {
5829 .eraseblocks = { {4 * 1024 * 1024, 1} },
5830 .block_erase = spi_block_erase_60,
5831 }, {
5832 .eraseblocks = { {4 * 1024 * 1024, 1} },
5833 .block_erase = spi_block_erase_c7,
5834 }
5835 },
5836 .write = spi_chip_write_256,
5837 .read = spi_chip_read,
5838 },
5839
5840 {
5841 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005842 .name = "W25x10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005843 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005844 .manufacture_id = WINBOND_NEX_ID,
5845 .model_id = W_25X10,
5846 .total_size = 128,
5847 .page_size = 256,
5848 .tested = TEST_UNTESTED,
5849 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005850 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005851 .block_erasers =
5852 {
5853 {
5854 .eraseblocks = { {4 * 1024, 32} },
5855 .block_erase = spi_block_erase_20,
5856 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005857 .eraseblocks = { {64 * 1024, 2} },
5858 .block_erase = spi_block_erase_d8,
5859 }, {
5860 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005861 .block_erase = spi_block_erase_c7,
5862 }
5863 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005864 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005865 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005866 },
5867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005868 {
5869 .vendor = "Winbond",
5870 .name = "W25x20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005871 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005872 .manufacture_id = WINBOND_NEX_ID,
5873 .model_id = W_25X20,
5874 .total_size = 256,
5875 .page_size = 256,
5876 .tested = TEST_UNTESTED,
5877 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005878 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005879 .block_erasers =
5880 {
5881 {
5882 .eraseblocks = { {4 * 1024, 64} },
5883 .block_erase = spi_block_erase_20,
5884 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005885 .eraseblocks = { {64 * 1024, 4} },
5886 .block_erase = spi_block_erase_d8,
5887 }, {
5888 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005889 .block_erase = spi_block_erase_c7,
5890 }
5891 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005892 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005893 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005894 },
5895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005896 {
5897 .vendor = "Winbond",
5898 .name = "W25x40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005899 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005900 .manufacture_id = WINBOND_NEX_ID,
5901 .model_id = W_25X40,
5902 .total_size = 512,
5903 .page_size = 256,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005904 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005905 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005906 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005907 .block_erasers =
5908 {
5909 {
5910 .eraseblocks = { {4 * 1024, 128} },
5911 .block_erase = spi_block_erase_20,
5912 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005913 .eraseblocks = { {64 * 1024, 8} },
5914 .block_erase = spi_block_erase_d8,
5915 }, {
5916 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005917 .block_erase = spi_block_erase_c7,
5918 }
5919 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005920 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005921 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005922 },
5923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005924 {
5925 .vendor = "Winbond",
5926 .name = "W25x80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005927 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005928 .manufacture_id = WINBOND_NEX_ID,
5929 .model_id = W_25X80,
5930 .total_size = 1024,
5931 .page_size = 256,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005932 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005933 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005934 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005935 .block_erasers =
5936 {
5937 {
5938 .eraseblocks = { {4 * 1024, 256} },
5939 .block_erase = spi_block_erase_20,
5940 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005941 .eraseblocks = { {64 * 1024, 16} },
5942 .block_erase = spi_block_erase_d8,
5943 }, {
5944 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005945 .block_erase = spi_block_erase_c7,
5946 }
5947 },
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005948 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005949 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005950 },
5951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005952 {
5953 .vendor = "Winbond",
Hector Martina721ae22009-07-11 19:39:11 +00005954 .name = "W25x16",
5955 .bustype = CHIP_BUSTYPE_SPI,
5956 .manufacture_id = WINBOND_NEX_ID,
5957 .model_id = W_25X16,
5958 .total_size = 2048,
5959 .page_size = 256,
5960 .tested = TEST_OK_PR,
5961 .probe = probe_spi_rdid,
5962 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005963 .block_erasers =
5964 {
5965 {
5966 .eraseblocks = { {4 * 1024, 512} },
5967 .block_erase = spi_block_erase_20,
5968 }, {
5969 .eraseblocks = { {32 * 1024, 64} },
5970 .block_erase = spi_block_erase_52,
5971 }, {
5972 .eraseblocks = { {64 * 1024, 32} },
5973 .block_erase = spi_block_erase_d8,
5974 }, {
5975 .eraseblocks = { {2 * 1024 * 1024, 1} },
5976 .block_erase = spi_block_erase_60,
5977 }, {
5978 .eraseblocks = { {2 * 1024 * 1024, 1} },
5979 .block_erase = spi_block_erase_c7,
5980 }
5981 },
Hector Martina721ae22009-07-11 19:39:11 +00005982 .write = spi_chip_write_256,
5983 .read = spi_chip_read,
5984 },
5985
5986 {
5987 .vendor = "Winbond",
Zheng Bao1db2b752009-11-26 11:05:01 +00005988 .name = "W25x32",
5989 .bustype = CHIP_BUSTYPE_SPI,
5990 .manufacture_id = WINBOND_NEX_ID,
5991 .model_id = W_25X32,
5992 .total_size = 4096,
5993 .page_size = 256,
5994 .tested = TEST_OK_PROBE,
5995 .probe = probe_spi_rdid,
5996 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00005997 .block_erasers =
5998 {
5999 {
6000 .eraseblocks = { {4 * 1024, 1024} },
6001 .block_erase = spi_block_erase_20,
6002 }, {
6003 .eraseblocks = { {32 * 1024, 128} },
6004 .block_erase = spi_block_erase_52,
6005 }, {
6006 .eraseblocks = { {64 * 1024, 64} },
6007 .block_erase = spi_block_erase_d8,
6008 }, {
6009 .eraseblocks = { {4 * 1024 * 1024, 1} },
6010 .block_erase = spi_block_erase_60,
6011 }, {
6012 .eraseblocks = { {4 * 1024 * 1024, 1} },
6013 .block_erase = spi_block_erase_c7,
6014 }
6015 },
Zheng Bao1db2b752009-11-26 11:05:01 +00006016 .write = spi_chip_write_256,
6017 .read = spi_chip_read,
6018 },
6019
6020 {
6021 .vendor = "Winbond",
6022 .name = "W25x64",
6023 .bustype = CHIP_BUSTYPE_SPI,
6024 .manufacture_id = WINBOND_NEX_ID,
6025 .model_id = W_25X64,
6026 .total_size = 8192,
6027 .page_size = 256,
6028 .tested = TEST_UNTESTED,
6029 .probe = probe_spi_rdid,
6030 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006031 .block_erasers =
6032 {
6033 {
6034 .eraseblocks = { {4 * 1024, 2048} },
6035 .block_erase = spi_block_erase_20,
6036 }, {
6037 .eraseblocks = { {32 * 1024, 256} },
6038 .block_erase = spi_block_erase_52,
6039 }, {
6040 .eraseblocks = { {64 * 1024, 128} },
6041 .block_erase = spi_block_erase_d8,
6042 }, {
6043 .eraseblocks = { {8 * 1024 * 1024, 1} },
6044 .block_erase = spi_block_erase_60,
6045 }, {
6046 .eraseblocks = { {8 * 1024 * 1024, 1} },
6047 .block_erase = spi_block_erase_c7,
6048 }
6049 },
Zheng Bao1db2b752009-11-26 11:05:01 +00006050 .write = spi_chip_write_256,
6051 .read = spi_chip_read,
6052 },
6053
6054 {
6055 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006056 .name = "W29C011",
Urja Rannikko038a3122009-06-28 19:19:25 +00006057 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006058 .manufacture_id = WINBOND_ID,
6059 .model_id = W_29C011,
6060 .total_size = 128,
6061 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006062 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00006063 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006064 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006065 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006066 .block_erasers =
6067 {
6068 {
6069 .eraseblocks = { {128 * 1024, 1} },
6070 .block_erase = erase_chip_block_jedec,
6071 }
6072 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006073 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006074 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006075 },
6076
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 {
6078 .vendor = "Winbond",
6079 .name = "W29C020C",
Urja Rannikko161b8852009-06-05 08:47:37 +00006080 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006081 .manufacture_id = WINBOND_ID,
6082 .model_id = W_29C020C,
6083 .total_size = 256,
6084 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006085 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00006086 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006087 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006088 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006089 .block_erasers =
6090 {
6091 {
6092 .eraseblocks = { {256 * 1024, 1} },
6093 .block_erase = erase_chip_block_jedec,
6094 }
6095 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006096 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006097 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006098 },
6099
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006100 {
6101 .vendor = "Winbond",
6102 .name = "W29C040P",
Urja Rannikko161b8852009-06-05 08:47:37 +00006103 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006104 .manufacture_id = WINBOND_ID,
6105 .model_id = W_29C040P,
6106 .total_size = 512,
6107 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006108 .feature_bits = FEATURE_LONG_RESET,
6109 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006110 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006111 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006112 .block_erasers =
6113 {
6114 {
6115 .eraseblocks = { {512 * 1024, 1} },
6116 .block_erase = erase_chip_block_jedec,
6117 }
6118 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006119 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006120 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006121 },
6122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006123 {
6124 .vendor = "Winbond",
6125 .name = "W29EE011",
Urja Rannikko038a3122009-06-28 19:19:25 +00006126 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006127 .manufacture_id = WINBOND_ID,
6128 .model_id = W_29C011,
6129 .total_size = 128,
6130 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006131 .feature_bits = FEATURE_LONG_RESET,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006132 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006133 .probe = probe_w29ee011,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006134 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006135 .block_erasers =
6136 {
6137 {
6138 .eraseblocks = { {128 * 1024, 1} },
6139 .block_erase = erase_chip_block_jedec,
6140 }
6141 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006142 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006143 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006144 },
6145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006146 {
6147 .vendor = "Winbond",
6148 .name = "W39V040A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006149 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 .manufacture_id = WINBOND_ID,
6151 .model_id = W_39V040A,
6152 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00006153 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006154 .feature_bits = FEATURE_EITHER_RESET,
Michael Karcher3355f062010-03-24 22:56:23 +00006155 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006156 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006157 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006158 .block_erasers =
6159 {
6160 {
6161 .eraseblocks = { {64 * 1024, 8} },
6162 .block_erase = erase_sector_jedec,
6163 }, {
6164 .eraseblocks = { {512 * 1024, 1} },
6165 .block_erase = erase_chip_block_jedec,
6166 }
6167 },
Sean Nelson35727f72010-01-28 23:55:12 +00006168 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006169 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006170 },
6171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006172 {
6173 .vendor = "Winbond",
6174 .name = "W39V040B",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006175 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006176 .manufacture_id = WINBOND_ID,
6177 .model_id = W_39V040B,
6178 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00006179 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006180 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00006181 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006182 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006183 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006184 .block_erasers =
6185 {
6186 {
6187 .eraseblocks = { {64 * 1024, 8} },
6188 .block_erase = erase_sector_jedec,
6189 }, {
6190 .eraseblocks = { {512 * 1024, 1} },
6191 .block_erase = erase_chip_block_jedec,
6192 }
6193 },
Sean Nelson35727f72010-01-28 23:55:12 +00006194 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006195 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006196 },
6197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006198 {
6199 .vendor = "Winbond",
6200 .name = "W39V040C",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006201 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006202 .manufacture_id = WINBOND_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006203 .model_id = W_39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006204 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00006205 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006206 .feature_bits = FEATURE_EITHER_RESET,
6207 .tested = TEST_UNTESTED,
6208 .probe = probe_jedec,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006209 .probe_timing = TIMING_FIXME,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006210 .block_erasers =
6211 {
6212 {
6213 .eraseblocks = { {64 * 1024, 8} },
6214 .block_erase = erase_sector_jedec,
6215 }, {
6216 .eraseblocks = { {512 * 1024, 1} },
6217 .block_erase = erase_chip_block_jedec,
6218 }
6219 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006220 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00006221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006222 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006223 },
6224
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006225 {
6226 .vendor = "Winbond",
6227 .name = "W39V040FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006228 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006229 .manufacture_id = WINBOND_ID,
6230 .model_id = W_39V040FA,
6231 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00006232 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00006233 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermann41787602010-05-30 17:50:16 +00006234 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006235 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006236 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006237 .block_erasers =
6238 {
6239 {
6240 .eraseblocks = { {4 * 1024, 128} },
6241 .block_erase = erase_block_jedec,
6242 }, {
6243 .eraseblocks = { {64 * 1024, 8} },
6244 .block_erase = erase_sector_jedec,
6245 }, {
6246 .eraseblocks = { {512 * 1024, 1} },
6247 .block_erase = erase_chip_block_jedec,
6248 }
6249 },
Michael Karcherc9b63412010-05-30 16:55:18 +00006250 .printlock = printlock_sst_fwhub,
6251 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00006252 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006253 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006254 },
6255
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006256 {
6257 .vendor = "Winbond",
6258 .name = "W39V080A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006259 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 .manufacture_id = WINBOND_ID,
6261 .model_id = W_39V080A,
6262 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00006263 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006264 .feature_bits = FEATURE_EITHER_RESET,
6265 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006266 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006267 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006268 .block_erasers =
6269 {
6270 {
6271 .eraseblocks = { {64 * 1024, 16} },
6272 .block_erase = erase_sector_jedec,
6273 }, {
6274 .eraseblocks = { {1024 * 1024, 1} },
6275 .block_erase = erase_chip_block_jedec,
6276 }
6277 },
Sean Nelson35727f72010-01-28 23:55:12 +00006278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006279 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006280 },
6281
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006282 {
6283 .vendor = "Winbond",
6284 .name = "W49F002U",
Urja Rannikko038a3122009-06-28 19:19:25 +00006285 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006286 .manufacture_id = WINBOND_ID,
6287 .model_id = W_49F002U,
6288 .total_size = 256,
6289 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006290 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00006291 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006292 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006293 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006294 .block_erasers =
6295 {
6296 {
6297 .eraseblocks = {
6298 {128 * 1024, 1},
6299 {96 * 1024, 1},
6300 {8 * 1024, 2},
6301 {16 * 1024, 1},
6302 },
6303 .block_erase = erase_sector_jedec,
6304 }, {
6305 .eraseblocks = { {256 * 1024, 1} },
6306 .block_erase = erase_chip_block_jedec,
6307 }
6308 },
Sean Nelson35727f72010-01-28 23:55:12 +00006309 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006310 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006311 },
6312
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006313 {
6314 .vendor = "Winbond",
6315 .name = "W49V002A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006316 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006317 .manufacture_id = WINBOND_ID,
6318 .model_id = W_49V002A,
6319 .total_size = 256,
6320 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006321 .feature_bits = FEATURE_EITHER_RESET,
6322 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006323 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006324 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006325 .block_erasers =
6326 {
6327 {
6328 .eraseblocks = {
6329 {64 * 1024, 3},
6330 {32 * 1024, 1},
6331 {8 * 1024, 2},
6332 {16 * 1024, 1},
6333 },
6334 .block_erase = erase_sector_jedec,
6335 }, {
6336 .eraseblocks = { {256 * 1024, 1} },
6337 .block_erase = erase_chip_block_jedec,
6338 }
6339 },
Sean Nelson35727f72010-01-28 23:55:12 +00006340 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006341 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006342 },
6343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006344 {
6345 .vendor = "Winbond",
6346 .name = "W49V002FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006347 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006348 .manufacture_id = WINBOND_ID,
6349 .model_id = W_49V002FA,
6350 .total_size = 256,
6351 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006352 .feature_bits = FEATURE_EITHER_RESET,
Michael Karcherb90c2212010-03-24 22:56:14 +00006353 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006354 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006355 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006356 .block_erasers =
6357 {
6358 {
6359 .eraseblocks = {
6360 {64 * 1024, 3},
6361 {32 * 1024, 1},
6362 {8 * 1024, 2},
6363 {16 * 1024, 1},
6364 },
6365 .block_erase = erase_sector_jedec,
6366 }, {
6367 .eraseblocks = { {256 * 1024, 1} },
6368 .block_erase = erase_chip_block_jedec,
6369 }
6370 },
Sean Nelson35727f72010-01-28 23:55:12 +00006371 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006372 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006373 },
6374
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006375 {
6376 .vendor = "Winbond",
6377 .name = "W39V080FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006378 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006379 .manufacture_id = WINBOND_ID,
6380 .model_id = W_39V080FA,
6381 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00006382 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006383 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00006384 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006385 .probe = probe_jedec,
6386 .probe_timing = TIMING_FIXME,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006387 .block_erasers =
6388 {
6389 {
6390 .eraseblocks = { {64 * 1024, 16}, },
6391 .block_erase = erase_sector_jedec,
6392 }, {
6393 .eraseblocks = { {1024 * 1024, 1} },
6394 .block_erase = erase_chip_block_jedec,
6395 }
6396 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006397 .unlock = unlock_winbond_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00006398 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006399 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006400 },
6401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006402 {
6403 .vendor = "Winbond",
6404 .name = "W39V080FA (dual mode)",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00006405 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006406 .manufacture_id = WINBOND_ID,
6407 .model_id = W_39V080FA_DM,
6408 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00006409 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006410 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006411 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006412 .probe = probe_jedec,
6413 .probe_timing = TIMING_FIXME,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00006414 .block_erasers =
6415 {
6416 {
6417 .eraseblocks = { {64 * 1024, 8}, },
6418 .block_erase = erase_sector_jedec,
6419 }, {
6420 .eraseblocks = { {512 * 1024, 1} },
6421 .block_erase = erase_chip_block_jedec,
6422 }
6423 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006424 .unlock = unlock_winbond_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00006425 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006426 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006427 },
6428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006429 {
6430 .vendor = "Atmel",
6431 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006432 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006433 .manufacture_id = ATMEL_ID,
6434 .model_id = GENERIC_DEVICE_ID,
6435 .total_size = 0,
6436 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00006437 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006438 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006439 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006440 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006441 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00006442 },
6443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006444 {
6445 .vendor = "EON",
6446 .name = "unknown EON SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006447 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006448 .manufacture_id = EON_ID_NOPREFIX,
6449 .model_id = GENERIC_DEVICE_ID,
6450 .total_size = 0,
6451 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00006452 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006454 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006455 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006456 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00006457 },
6458
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006459 {
6460 .vendor = "Macronix",
6461 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006462 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006463 .manufacture_id = MX_ID,
6464 .model_id = GENERIC_DEVICE_ID,
6465 .total_size = 0,
6466 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00006467 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006468 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006469 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006470 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006471 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00006472 },
6473
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006474 {
6475 .vendor = "PMC",
6476 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006477 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006478 .manufacture_id = PMC_ID,
6479 .model_id = GENERIC_DEVICE_ID,
6480 .total_size = 0,
6481 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00006482 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006483 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006484 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006485 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006486 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00006487 },
6488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 {
6490 .vendor = "SST",
6491 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006492 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006493 .manufacture_id = SST_ID,
6494 .model_id = GENERIC_DEVICE_ID,
6495 .total_size = 0,
6496 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00006497 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006498 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006499 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006500 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006501 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00006502 },
6503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006504 {
6505 .vendor = "ST",
6506 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006507 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006508 .manufacture_id = ST_ID,
6509 .model_id = GENERIC_DEVICE_ID,
6510 .total_size = 0,
6511 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00006512 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006513 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006514 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006515 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006516 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00006517 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00006518
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00006519 {
Sean Nelson118e1d62009-11-24 02:08:11 +00006520 .vendor = "Sanyo",
6521 .name = "unknown Sanyo SPI chip",
6522 .bustype = CHIP_BUSTYPE_SPI,
6523 .manufacture_id = SANYO_ID,
6524 .model_id = GENERIC_DEVICE_ID,
6525 .total_size = 0,
6526 .page_size = 256,
6527 .tested = TEST_BAD_PREW,
6528 .probe = probe_spi_rdid,
6529 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00006530 .write = NULL,
6531 .read = NULL,
6532 },
6533
6534 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00006535 .vendor = "Generic",
6536 .name = "unknown SPI chip (RDID)",
6537 .bustype = CHIP_BUSTYPE_SPI,
6538 .manufacture_id = GENERIC_MANUF_ID,
6539 .model_id = GENERIC_DEVICE_ID,
6540 .total_size = 0,
6541 .page_size = 256,
6542 .tested = TEST_BAD_PREW,
6543 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00006544 .write = NULL,
6545 },
6546 {
6547 .vendor = "Generic",
6548 .name = "unknown SPI chip (REMS)",
6549 .bustype = CHIP_BUSTYPE_SPI,
6550 .manufacture_id = GENERIC_MANUF_ID,
6551 .model_id = GENERIC_DEVICE_ID,
6552 .total_size = 0,
6553 .page_size = 256,
6554 .tested = TEST_BAD_PREW,
6555 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00006556 .write = NULL,
6557 },
6558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006559 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00006560};