Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * 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 Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * 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 Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 20 | * 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 Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 26 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 27 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 28 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 29 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 30 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 31 | * |
| 32 | * Please keep the list sorted by vendor name and chip name, so that |
| 33 | * the output of 'flashrom -L' is alphabetically sorted. |
| 34 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 35 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 36 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 37 | /* |
| 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 Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 48 | * .block_erasers[] = Array of erase layouts and erase functions |
| 49 | * { |
| 50 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 51 | * .block_erase = Block erase function |
| 52 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 53 | * .printlock = Chip lock status function |
| 54 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 55 | * .write = Chip write function |
| 56 | * .read = Chip read function |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 57 | */ |
| 58 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 59 | { |
| 60 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 61 | .name = "Am29F010A/B", |
| 62 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 63 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 64 | .model_id = AMD_AM29F010B, /* Same as Am29F010A */ |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 65 | .total_size = 128, |
| 66 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 67 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 68 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 69 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 70 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 71 | .block_erasers = |
| 72 | { |
| 73 | { |
| 74 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 75 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 76 | }, { |
| 77 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 78 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 79 | }, |
| 80 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 81 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 82 | .read = read_memmapped, |
| 83 | }, |
| 84 | |
| 85 | { |
| 86 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 87 | .name = "Am29F002(N)BB", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 88 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 89 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 90 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | .total_size = 256, |
| 92 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 93 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 94 | .tested = TEST_UNTESTED, |
| 95 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 96 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 97 | .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 Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 112 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 113 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 114 | }, |
| 115 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 116 | { |
| 117 | .vendor = "AMD", |
| 118 | .name = "Am29F002(N)BT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 119 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 120 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 121 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 122 | .total_size = 256, |
| 123 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 124 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 125 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 126 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 127 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 128 | .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 Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 143 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 144 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 145 | }, |
| 146 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 147 | { |
| 148 | .vendor = "AMD", |
| 149 | .name = "Am29F016D", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 150 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 151 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 152 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 153 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 154 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 155 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 156 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 157 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 158 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 159 | .block_erasers = |
| 160 | { |
| 161 | { |
| 162 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 163 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 164 | }, { |
| 165 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 166 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 167 | }, |
| 168 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 169 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 170 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 171 | }, |
| 172 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 173 | { |
| 174 | .vendor = "AMD", |
| 175 | .name = "Am29F040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 176 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 177 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 178 | .model_id = AMD_AM29F040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 179 | .total_size = 512, |
| 180 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 181 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 182 | .tested = TEST_UNTESTED, |
| 183 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 184 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 185 | .block_erasers = |
| 186 | { |
| 187 | { |
| 188 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 189 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | }, { |
| 191 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 192 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 193 | }, |
| 194 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 195 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 196 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 197 | }, |
| 198 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 199 | { |
| 200 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 201 | .name = "Am29F080B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 202 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 203 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 204 | .model_id = AMD_AM29F080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 205 | .total_size = 1024, |
| 206 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 207 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 208 | .tested = TEST_UNTESTED, |
| 209 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 210 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 211 | .block_erasers = |
| 212 | { |
| 213 | { |
| 214 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 215 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 216 | }, { |
| 217 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 218 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 219 | }, |
| 220 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 221 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 222 | .read = read_memmapped, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 223 | }, |
| 224 | |
| 225 | { |
| 226 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 227 | .name = "Am29LV001BB", |
| 228 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 229 | .manufacture_id = AMD_ID, |
| 230 | .model_id = AMD_AM29LV001BB, |
| 231 | .total_size = 128, |
| 232 | .page_size = 64 * 1024, /* unused */ |
| 233 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 234 | .tested = TEST_OK_PREW, |
| 235 | .probe = probe_jedec, |
| 236 | .probe_timing = TIMING_ZERO, |
| 237 | .block_erasers = |
| 238 | { |
| 239 | { |
| 240 | .eraseblocks = { |
| 241 | {8 * 1024, 1}, |
| 242 | {4 * 1024, 2}, |
| 243 | {16 * 1024, 7}, |
| 244 | }, |
| 245 | .block_erase = erase_sector_jedec, |
| 246 | }, { |
| 247 | .eraseblocks = { {128 * 1024, 1} }, |
| 248 | .block_erase = erase_chip_block_jedec, |
| 249 | }, |
| 250 | }, |
| 251 | .write = write_jedec_1, |
| 252 | .read = read_memmapped, |
| 253 | }, |
| 254 | |
| 255 | { |
| 256 | .vendor = "AMD", |
| 257 | .name = "Am29LV001BT", |
| 258 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 259 | .manufacture_id = AMD_ID, |
| 260 | .model_id = AMD_AM29LV001BT, |
| 261 | .total_size = 128, |
| 262 | .page_size = 64 * 1024, /* unused */ |
| 263 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 264 | .tested = TEST_UNTESTED, |
| 265 | .probe = probe_jedec, |
| 266 | .probe_timing = TIMING_ZERO, |
| 267 | .block_erasers = |
| 268 | { |
| 269 | { |
| 270 | .eraseblocks = { |
| 271 | {16 * 1024, 7}, |
| 272 | {4 * 1024, 2}, |
| 273 | {8 * 1024, 1}, |
| 274 | }, |
| 275 | .block_erase = erase_sector_jedec, |
| 276 | }, { |
| 277 | .eraseblocks = { {128 * 1024, 1} }, |
| 278 | .block_erase = erase_chip_block_jedec, |
| 279 | }, |
| 280 | }, |
| 281 | .write = write_jedec_1, |
| 282 | .read = read_memmapped, |
| 283 | }, |
| 284 | |
| 285 | { |
| 286 | .vendor = "AMD", |
| 287 | .name = "Am29LV002BB", |
| 288 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 289 | .manufacture_id = AMD_ID, |
| 290 | .model_id = AMD_AM29LV002BB, |
| 291 | .total_size = 256, |
| 292 | .page_size = 64 * 1024, /* unused */ |
| 293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 294 | .tested = TEST_UNTESTED, |
| 295 | .probe = probe_jedec, |
| 296 | .probe_timing = TIMING_ZERO, |
| 297 | .block_erasers = |
| 298 | { |
| 299 | { |
| 300 | .eraseblocks = { |
| 301 | {16 * 1024, 1}, |
| 302 | {8 * 1024, 2}, |
| 303 | {32 * 1024, 1}, |
| 304 | {64 * 1024, 3}, |
| 305 | }, |
| 306 | .block_erase = erase_sector_jedec, |
| 307 | }, { |
| 308 | .eraseblocks = { {256 * 1024, 1} }, |
| 309 | .block_erase = erase_chip_block_jedec, |
| 310 | }, |
| 311 | }, |
| 312 | .write = write_jedec_1, |
| 313 | .read = read_memmapped, |
| 314 | }, |
| 315 | |
| 316 | { |
| 317 | .vendor = "AMD", |
| 318 | .name = "Am29LV002BT", |
| 319 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 320 | .manufacture_id = AMD_ID, |
| 321 | .model_id = AMD_AM29LV002BT, |
| 322 | .total_size = 256, |
| 323 | .page_size = 64 * 1024, /* unused */ |
| 324 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 325 | .tested = TEST_UNTESTED, |
| 326 | .probe = probe_jedec, |
| 327 | .probe_timing = TIMING_ZERO, |
| 328 | .block_erasers = |
| 329 | { |
| 330 | { |
| 331 | .eraseblocks = { |
| 332 | {64 * 1024, 3}, |
| 333 | {32 * 1024, 1}, |
| 334 | {8 * 1024, 2}, |
| 335 | {16 * 1024, 1}, |
| 336 | }, |
| 337 | .block_erase = erase_sector_jedec, |
| 338 | }, { |
| 339 | .eraseblocks = { {256 * 1024, 1} }, |
| 340 | .block_erase = erase_chip_block_jedec, |
| 341 | }, |
| 342 | }, |
| 343 | .write = write_jedec_1, |
| 344 | .read = read_memmapped, |
| 345 | }, |
| 346 | |
| 347 | { |
| 348 | .vendor = "AMD", |
| 349 | .name = "Am29LV004BB", |
| 350 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 351 | .manufacture_id = AMD_ID, |
| 352 | .model_id = AMD_AM29LV004BB, |
| 353 | .total_size = 512, |
| 354 | .page_size = 64 * 1024, /* unused */ |
| 355 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 356 | .tested = TEST_UNTESTED, |
| 357 | .probe = probe_jedec, |
| 358 | .probe_timing = TIMING_ZERO, |
| 359 | .block_erasers = |
| 360 | { |
| 361 | { |
| 362 | .eraseblocks = { |
| 363 | {16 * 1024, 1}, |
| 364 | {8 * 1024, 2}, |
| 365 | {32 * 1024, 1}, |
| 366 | {64 * 1024, 7}, |
| 367 | }, |
| 368 | .block_erase = erase_sector_jedec, |
| 369 | }, { |
| 370 | .eraseblocks = { {512 * 1024, 1} }, |
| 371 | .block_erase = erase_chip_block_jedec, |
| 372 | }, |
| 373 | }, |
| 374 | .write = write_jedec_1, |
| 375 | .read = read_memmapped, |
| 376 | }, |
| 377 | |
| 378 | { |
| 379 | .vendor = "AMD", |
| 380 | .name = "Am29LV004BT", |
| 381 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 382 | .manufacture_id = AMD_ID, |
| 383 | .model_id = AMD_AM29LV004BT, |
| 384 | .total_size = 512, |
| 385 | .page_size = 64 * 1024, /* unused */ |
| 386 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 387 | .tested = TEST_UNTESTED, |
| 388 | .probe = probe_jedec, |
| 389 | .probe_timing = TIMING_ZERO, |
| 390 | .block_erasers = |
| 391 | { |
| 392 | { |
| 393 | .eraseblocks = { |
| 394 | {64 * 1024, 7}, |
| 395 | {32 * 1024, 1}, |
| 396 | {8 * 1024, 2}, |
| 397 | {16 * 1024, 1}, |
| 398 | }, |
| 399 | .block_erase = erase_sector_jedec, |
| 400 | }, { |
| 401 | .eraseblocks = { {512 * 1024, 1} }, |
| 402 | .block_erase = erase_chip_block_jedec, |
| 403 | }, |
| 404 | }, |
| 405 | .write = write_jedec_1, |
| 406 | .read = read_memmapped, |
| 407 | }, |
| 408 | |
| 409 | { |
| 410 | .vendor = "AMD", |
| 411 | .name = "Am29LV008BB", |
| 412 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 413 | .manufacture_id = AMD_ID, |
| 414 | .model_id = AMD_AM29LV008BB, |
| 415 | .total_size = 1024, |
| 416 | .page_size = 64 * 1024, /* unused */ |
| 417 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 418 | .tested = TEST_UNTESTED, |
| 419 | .probe = probe_jedec, |
| 420 | .probe_timing = TIMING_ZERO, |
| 421 | .block_erasers = |
| 422 | { |
| 423 | { |
| 424 | .eraseblocks = { |
| 425 | {16 * 1024, 1}, |
| 426 | {8 * 1024, 2}, |
| 427 | {32 * 1024, 1}, |
| 428 | {64 * 1024, 15}, |
| 429 | }, |
| 430 | .block_erase = erase_sector_jedec, |
| 431 | }, { |
| 432 | .eraseblocks = { {1024 * 1024, 1} }, |
| 433 | .block_erase = erase_chip_block_jedec, |
| 434 | }, |
| 435 | }, |
| 436 | .write = write_jedec_1, |
| 437 | .read = read_memmapped, |
| 438 | }, |
| 439 | |
| 440 | { |
| 441 | .vendor = "AMD", |
| 442 | .name = "Am29LV008BT", |
| 443 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 444 | .manufacture_id = AMD_ID, |
| 445 | .model_id = AMD_AM29LV008BT, |
| 446 | .total_size = 1024, |
| 447 | .page_size = 64 * 1024, /* unused */ |
| 448 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 449 | .tested = TEST_UNTESTED, |
| 450 | .probe = probe_jedec, |
| 451 | .probe_timing = TIMING_ZERO, |
| 452 | .block_erasers = |
| 453 | { |
| 454 | { |
| 455 | .eraseblocks = { |
| 456 | {64 * 1024, 15}, |
| 457 | {32 * 1024, 1}, |
| 458 | {8 * 1024, 2}, |
| 459 | {16 * 1024, 1}, |
| 460 | }, |
| 461 | .block_erase = erase_sector_jedec, |
| 462 | }, { |
| 463 | .eraseblocks = { {1024 * 1024, 1} }, |
| 464 | .block_erase = erase_chip_block_jedec, |
| 465 | }, |
| 466 | }, |
| 467 | .write = write_jedec_1, |
| 468 | .read = read_memmapped, |
| 469 | }, |
| 470 | |
| 471 | { |
| 472 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 473 | .name = "Am29LV040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 474 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 475 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 476 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 477 | .total_size = 512, |
| 478 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 479 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 480 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 481 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 482 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 483 | .block_erasers = |
| 484 | { |
| 485 | { |
| 486 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 487 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 488 | }, { |
| 489 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 490 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 491 | }, |
| 492 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 493 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 494 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 495 | }, |
| 496 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 497 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 498 | .vendor = "AMD", |
| 499 | .name = "Am29LV081B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 500 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 501 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 502 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 503 | .total_size = 1024, |
| 504 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 505 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 506 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 507 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 508 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 509 | .block_erasers = |
| 510 | { |
| 511 | { |
| 512 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 513 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 514 | }, { |
| 515 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 516 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 517 | }, |
| 518 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 519 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 520 | .read = read_memmapped, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 521 | }, |
| 522 | |
| 523 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 524 | .vendor = "AMIC", |
| 525 | .name = "A25L05PT", |
| 526 | .bustype = CHIP_BUSTYPE_SPI, |
| 527 | .manufacture_id = AMIC_ID, |
| 528 | .model_id = AMIC_A25L05PT, |
| 529 | .total_size = 64, |
| 530 | .page_size = 256, |
| 531 | .tested = TEST_UNTESTED, |
| 532 | .probe = probe_spi_rdid4, |
| 533 | .probe_timing = TIMING_ZERO, |
| 534 | .block_erasers = |
| 535 | { |
| 536 | { |
| 537 | .eraseblocks = { |
| 538 | {32 * 1024, 1}, |
| 539 | {16 * 1024, 1}, |
| 540 | {8 * 1024, 1}, |
| 541 | {4 * 1024, 2}, |
| 542 | }, |
| 543 | .block_erase = spi_block_erase_d8, |
| 544 | }, { |
| 545 | .eraseblocks = { {64 * 1024, 1} }, |
| 546 | .block_erase = spi_block_erase_c7, |
| 547 | } |
| 548 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 549 | .printlock = spi_prettyprint_status_register_amic_a25l05p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 550 | .unlock = spi_disable_blockprotect, |
| 551 | .write = spi_chip_write_256, |
| 552 | .read = spi_chip_read, |
| 553 | }, |
| 554 | |
| 555 | { |
| 556 | .vendor = "AMIC", |
| 557 | .name = "A25L05PU", |
| 558 | .bustype = CHIP_BUSTYPE_SPI, |
| 559 | .manufacture_id = AMIC_ID, |
| 560 | .model_id = AMIC_A25L05PU, |
| 561 | .total_size = 64, |
| 562 | .page_size = 256, |
| 563 | .tested = TEST_UNTESTED, |
| 564 | .probe = probe_spi_rdid4, |
| 565 | .probe_timing = TIMING_ZERO, |
| 566 | .block_erasers = |
| 567 | { |
| 568 | { |
| 569 | .eraseblocks = { |
| 570 | {4 * 1024, 2}, |
| 571 | {8 * 1024, 1}, |
| 572 | {16 * 1024, 1}, |
| 573 | {32 * 1024, 1}, |
| 574 | }, |
| 575 | .block_erase = spi_block_erase_d8, |
| 576 | }, { |
| 577 | .eraseblocks = { {64 * 1024, 1} }, |
| 578 | .block_erase = spi_block_erase_c7, |
| 579 | } |
| 580 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 581 | .printlock = spi_prettyprint_status_register_amic_a25l05p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 582 | .unlock = spi_disable_blockprotect, |
| 583 | .write = spi_chip_write_256, |
| 584 | .read = spi_chip_read, |
| 585 | }, |
| 586 | |
| 587 | { |
| 588 | .vendor = "AMIC", |
| 589 | .name = "A25L10PT", |
| 590 | .bustype = CHIP_BUSTYPE_SPI, |
| 591 | .manufacture_id = AMIC_ID, |
| 592 | .model_id = AMIC_A25L10PT, |
| 593 | .total_size = 128, |
| 594 | .page_size = 256, |
| 595 | .tested = TEST_UNTESTED, |
| 596 | .probe = probe_spi_rdid4, |
| 597 | .probe_timing = TIMING_ZERO, |
| 598 | .block_erasers = |
| 599 | { |
| 600 | { |
| 601 | .eraseblocks = { |
| 602 | {64 * 1024, 1}, |
| 603 | {32 * 1024, 1}, |
| 604 | {16 * 1024, 1}, |
| 605 | {8 * 1024, 1}, |
| 606 | {4 * 1024, 2}, |
| 607 | }, |
| 608 | .block_erase = spi_block_erase_d8, |
| 609 | }, { |
| 610 | .eraseblocks = { {128 * 1024, 1} }, |
| 611 | .block_erase = spi_block_erase_c7, |
| 612 | } |
| 613 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 614 | .printlock = spi_prettyprint_status_register_amic_a25l05p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 615 | .unlock = spi_disable_blockprotect, |
| 616 | .write = spi_chip_write_256, |
| 617 | .read = spi_chip_read, |
| 618 | }, |
| 619 | |
| 620 | { |
| 621 | .vendor = "AMIC", |
| 622 | .name = "A25L10PU", |
| 623 | .bustype = CHIP_BUSTYPE_SPI, |
| 624 | .manufacture_id = AMIC_ID, |
| 625 | .model_id = AMIC_A25L10PU, |
| 626 | .total_size = 128, |
| 627 | .page_size = 256, |
| 628 | .tested = TEST_UNTESTED, |
| 629 | .probe = probe_spi_rdid4, |
| 630 | .probe_timing = TIMING_ZERO, |
| 631 | .block_erasers = |
| 632 | { |
| 633 | { |
| 634 | .eraseblocks = { |
| 635 | {4 * 1024, 2}, |
| 636 | {8 * 1024, 1}, |
| 637 | {16 * 1024, 1}, |
| 638 | {32 * 1024, 1}, |
| 639 | {64 * 1024, 1}, |
| 640 | }, |
| 641 | .block_erase = spi_block_erase_d8, |
| 642 | }, { |
| 643 | .eraseblocks = { {128 * 1024, 1} }, |
| 644 | .block_erase = spi_block_erase_c7, |
| 645 | } |
| 646 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 647 | .printlock = spi_prettyprint_status_register_amic_a25l05p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 648 | .unlock = spi_disable_blockprotect, |
| 649 | .write = spi_chip_write_256, |
| 650 | .read = spi_chip_read, |
| 651 | }, |
| 652 | |
| 653 | { |
| 654 | .vendor = "AMIC", |
| 655 | .name = "A25L20PT", |
| 656 | .bustype = CHIP_BUSTYPE_SPI, |
| 657 | .manufacture_id = AMIC_ID, |
| 658 | .model_id = AMIC_A25L20PT, |
| 659 | .total_size = 256, |
| 660 | .page_size = 256, |
| 661 | .tested = TEST_UNTESTED, |
| 662 | .probe = probe_spi_rdid4, |
| 663 | .probe_timing = TIMING_ZERO, |
| 664 | .block_erasers = |
| 665 | { |
| 666 | { |
| 667 | .eraseblocks = { |
| 668 | {64 * 1024, 3}, |
| 669 | {32 * 1024, 1}, |
| 670 | {16 * 1024, 1}, |
| 671 | {8 * 1024, 1}, |
| 672 | {4 * 1024, 2}, |
| 673 | }, |
| 674 | .block_erase = spi_block_erase_d8, |
| 675 | }, { |
| 676 | .eraseblocks = { {256 * 1024, 1} }, |
| 677 | .block_erase = spi_block_erase_c7, |
| 678 | } |
| 679 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 680 | .printlock = spi_prettyprint_status_register_amic_a25l05p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 681 | .unlock = spi_disable_blockprotect, |
| 682 | .write = spi_chip_write_256, |
| 683 | .read = spi_chip_read, |
| 684 | }, |
| 685 | |
| 686 | { |
| 687 | .vendor = "AMIC", |
| 688 | .name = "A25L20PU", |
| 689 | .bustype = CHIP_BUSTYPE_SPI, |
| 690 | .manufacture_id = AMIC_ID, |
| 691 | .model_id = AMIC_A25L20PU, |
| 692 | .total_size = 256, |
| 693 | .page_size = 256, |
| 694 | .tested = TEST_UNTESTED, |
| 695 | .probe = probe_spi_rdid4, |
| 696 | .probe_timing = TIMING_ZERO, |
| 697 | .block_erasers = |
| 698 | { |
| 699 | { |
| 700 | .eraseblocks = { |
| 701 | {4 * 1024, 2}, |
| 702 | {8 * 1024, 1}, |
| 703 | {16 * 1024, 1}, |
| 704 | {32 * 1024, 1}, |
| 705 | {64 * 1024, 3}, |
| 706 | }, |
| 707 | .block_erase = spi_block_erase_d8, |
| 708 | }, { |
| 709 | .eraseblocks = { {256 * 1024, 1} }, |
| 710 | .block_erase = spi_block_erase_c7, |
| 711 | } |
| 712 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 713 | .printlock = spi_prettyprint_status_register_amic_a25l05p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 714 | .unlock = spi_disable_blockprotect, |
| 715 | .write = spi_chip_write_256, |
| 716 | .read = spi_chip_read, |
| 717 | }, |
| 718 | |
| 719 | /* The A25L40P{T,U} chips are distinguished by their |
| 720 | * erase block layouts, but without any distinction in RDID. |
| 721 | * This inexplicable quirk was verified by Rudolf Marek |
| 722 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 723 | */ |
| 724 | { |
| 725 | .vendor = "AMIC", |
| 726 | .name = "A25L40PT", |
| 727 | .bustype = CHIP_BUSTYPE_SPI, |
| 728 | .manufacture_id = AMIC_ID, |
| 729 | .model_id = AMIC_A25L40PT, |
| 730 | .total_size = 512, |
| 731 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 732 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 733 | .probe = probe_spi_rdid4, |
| 734 | .probe_timing = TIMING_ZERO, |
| 735 | .block_erasers = |
| 736 | { |
| 737 | { |
| 738 | .eraseblocks = { |
| 739 | {64 * 1024, 7}, |
| 740 | {32 * 1024, 1}, |
| 741 | {16 * 1024, 1}, |
| 742 | {8 * 1024, 1}, |
| 743 | {4 * 1024, 2}, |
| 744 | }, |
| 745 | .block_erase = spi_block_erase_d8, |
| 746 | }, { |
| 747 | .eraseblocks = { {512 * 1024, 1} }, |
| 748 | .block_erase = spi_block_erase_c7, |
| 749 | } |
| 750 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 751 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 752 | .unlock = spi_disable_blockprotect, |
| 753 | .write = spi_chip_write_256, |
| 754 | .read = spi_chip_read, |
| 755 | }, |
| 756 | |
| 757 | { |
| 758 | .vendor = "AMIC", |
| 759 | .name = "A25L40PU", |
| 760 | .bustype = CHIP_BUSTYPE_SPI, |
| 761 | .manufacture_id = AMIC_ID, |
| 762 | .model_id = AMIC_A25L40PU, |
| 763 | .total_size = 512, |
| 764 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 765 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 766 | .probe = probe_spi_rdid4, |
| 767 | .probe_timing = TIMING_ZERO, |
| 768 | .block_erasers = |
| 769 | { |
| 770 | { |
| 771 | .eraseblocks = { |
| 772 | {4 * 1024, 2}, |
| 773 | {8 * 1024, 1}, |
| 774 | {16 * 1024, 1}, |
| 775 | {32 * 1024, 1}, |
| 776 | {64 * 1024, 7}, |
| 777 | }, |
| 778 | .block_erase = spi_block_erase_d8, |
| 779 | }, { |
| 780 | .eraseblocks = { {512 * 1024, 1} }, |
| 781 | .block_erase = spi_block_erase_c7, |
| 782 | } |
| 783 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 784 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 785 | .unlock = spi_disable_blockprotect, |
| 786 | .write = spi_chip_write_256, |
| 787 | .read = spi_chip_read, |
| 788 | }, |
| 789 | |
| 790 | { |
| 791 | .vendor = "AMIC", |
| 792 | .name = "A25L80P", |
| 793 | .bustype = CHIP_BUSTYPE_SPI, |
| 794 | .manufacture_id = AMIC_ID, |
| 795 | .model_id = AMIC_A25L80P, |
| 796 | .total_size = 1024, |
| 797 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 798 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 799 | .probe = probe_spi_rdid4, |
| 800 | .probe_timing = TIMING_ZERO, |
| 801 | .block_erasers = |
| 802 | { |
| 803 | { |
| 804 | .eraseblocks = { |
| 805 | {4 * 1024, 2}, |
| 806 | {8 * 1024, 1}, |
| 807 | {16 * 1024, 1}, |
| 808 | {32 * 1024, 1}, |
| 809 | {64 * 1024, 15}, |
| 810 | }, |
| 811 | .block_erase = spi_block_erase_d8, |
| 812 | }, { |
| 813 | .eraseblocks = { {1024 * 1024, 1} }, |
| 814 | .block_erase = spi_block_erase_c7, |
| 815 | } |
| 816 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 817 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 818 | .unlock = spi_disable_blockprotect, |
| 819 | .write = spi_chip_write_256, |
| 820 | .read = spi_chip_read, |
| 821 | }, |
| 822 | |
| 823 | { |
| 824 | .vendor = "AMIC", |
| 825 | .name = "A25L16PT", |
| 826 | .bustype = CHIP_BUSTYPE_SPI, |
| 827 | .manufacture_id = AMIC_ID, |
| 828 | .model_id = AMIC_A25L16PT, |
| 829 | .total_size = 2048, |
| 830 | .page_size = 256, |
| 831 | .tested = TEST_UNTESTED, |
| 832 | .probe = probe_spi_rdid4, |
| 833 | .probe_timing = TIMING_ZERO, |
| 834 | .block_erasers = |
| 835 | { |
| 836 | { |
| 837 | .eraseblocks = { |
| 838 | {64 * 1024, 31}, |
| 839 | {32 * 1024, 1}, |
| 840 | {16 * 1024, 1}, |
| 841 | {8 * 1024, 1}, |
| 842 | {4 * 1024, 2}, |
| 843 | }, |
| 844 | .block_erase = spi_block_erase_d8, |
| 845 | }, { |
| 846 | .eraseblocks = { {2048 * 1024, 1} }, |
| 847 | .block_erase = spi_block_erase_60, |
| 848 | }, { |
| 849 | .eraseblocks = { {2048 * 1024, 1} }, |
| 850 | .block_erase = spi_block_erase_c7, |
| 851 | } |
| 852 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 853 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 854 | .unlock = spi_disable_blockprotect, |
| 855 | .write = spi_chip_write_256, |
| 856 | .read = spi_chip_read, |
| 857 | }, |
| 858 | |
| 859 | { |
| 860 | .vendor = "AMIC", |
| 861 | .name = "A25L16PU", |
| 862 | .bustype = CHIP_BUSTYPE_SPI, |
| 863 | .manufacture_id = AMIC_ID, |
| 864 | .model_id = AMIC_A25L16PU, |
| 865 | .total_size = 2048, |
| 866 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 867 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 868 | .probe = probe_spi_rdid4, |
| 869 | .probe_timing = TIMING_ZERO, |
| 870 | .block_erasers = |
| 871 | { |
| 872 | { |
| 873 | .eraseblocks = { |
| 874 | {4 * 1024, 2}, |
| 875 | {8 * 1024, 1}, |
| 876 | {16 * 1024, 1}, |
| 877 | {32 * 1024, 1}, |
| 878 | {64 * 1024, 31}, |
| 879 | }, |
| 880 | .block_erase = spi_block_erase_d8, |
| 881 | }, { |
| 882 | .eraseblocks = { {2048 * 1024, 1} }, |
| 883 | .block_erase = spi_block_erase_60, |
| 884 | }, { |
| 885 | .eraseblocks = { {2048 * 1024, 1} }, |
| 886 | .block_erase = spi_block_erase_c7, |
| 887 | } |
| 888 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 889 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 890 | .unlock = spi_disable_blockprotect, |
| 891 | .write = spi_chip_write_256, |
| 892 | .read = spi_chip_read, |
| 893 | }, |
| 894 | |
| 895 | { |
| 896 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 897 | .name = "A25L512", |
| 898 | .bustype = CHIP_BUSTYPE_SPI, |
| 899 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 900 | .model_id = AMIC_A25L512, |
| 901 | .total_size = 64, |
| 902 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 903 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 904 | .tested = TEST_UNTESTED, |
| 905 | .probe = probe_spi_rdid, |
| 906 | .probe_timing = TIMING_ZERO, |
| 907 | .block_erasers = |
| 908 | { |
| 909 | { |
| 910 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 911 | .block_erase = spi_block_erase_20, |
| 912 | }, { |
| 913 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 914 | .block_erase = spi_block_erase_d8, |
| 915 | }, { |
| 916 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 917 | .block_erase = spi_block_erase_c7, |
| 918 | } |
| 919 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 920 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 921 | .unlock = spi_disable_blockprotect, |
| 922 | .write = spi_chip_write_256, |
| 923 | .read = spi_chip_read, |
| 924 | }, |
| 925 | |
| 926 | { |
| 927 | .vendor = "AMIC", |
| 928 | .name = "A25L010", |
| 929 | .bustype = CHIP_BUSTYPE_SPI, |
| 930 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 931 | .model_id = AMIC_A25L010, |
| 932 | .total_size = 128, |
| 933 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 934 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 935 | .tested = TEST_UNTESTED, |
| 936 | .probe = probe_spi_rdid, |
| 937 | .probe_timing = TIMING_ZERO, |
| 938 | .block_erasers = |
| 939 | { |
| 940 | { |
| 941 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 942 | .block_erase = spi_block_erase_20, |
| 943 | }, { |
| 944 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 945 | .block_erase = spi_block_erase_d8, |
| 946 | }, { |
| 947 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 948 | .block_erase = spi_block_erase_c7, |
| 949 | } |
| 950 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 951 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 952 | .unlock = spi_disable_blockprotect, |
| 953 | .write = spi_chip_write_256, |
| 954 | .read = spi_chip_read, |
| 955 | }, |
| 956 | |
| 957 | { |
| 958 | .vendor = "AMIC", |
| 959 | .name = "A25L020", |
| 960 | .bustype = CHIP_BUSTYPE_SPI, |
| 961 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 962 | .model_id = AMIC_A25L020, |
| 963 | .total_size = 256, |
| 964 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 965 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 966 | .tested = TEST_UNTESTED, |
| 967 | .probe = probe_spi_rdid, |
| 968 | .probe_timing = TIMING_ZERO, |
| 969 | .block_erasers = |
| 970 | { |
| 971 | { |
| 972 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 973 | .block_erase = spi_block_erase_20, |
| 974 | }, { |
| 975 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 976 | .block_erase = spi_block_erase_d8, |
| 977 | }, { |
| 978 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 979 | .block_erase = spi_block_erase_c7, |
| 980 | } |
| 981 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 982 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 983 | .unlock = spi_disable_blockprotect, |
| 984 | .write = spi_chip_write_256, |
| 985 | .read = spi_chip_read, |
| 986 | }, |
| 987 | |
| 988 | { |
| 989 | .vendor = "AMIC", |
| 990 | .name = "A25L040", |
| 991 | .bustype = CHIP_BUSTYPE_SPI, |
| 992 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 993 | .model_id = AMIC_A25L040, |
| 994 | .total_size = 512, |
| 995 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 996 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 997 | .tested = TEST_UNTESTED, |
| 998 | .probe = probe_spi_rdid, |
| 999 | .probe_timing = TIMING_ZERO, |
| 1000 | .block_erasers = |
| 1001 | { |
| 1002 | { |
| 1003 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1004 | .block_erase = spi_block_erase_20, |
| 1005 | }, { |
| 1006 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1007 | .block_erase = spi_block_erase_d8, |
| 1008 | }, { |
| 1009 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1010 | .block_erase = spi_block_erase_c7, |
| 1011 | } |
| 1012 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1013 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1014 | .unlock = spi_disable_blockprotect, |
| 1015 | .write = spi_chip_write_256, |
| 1016 | .read = spi_chip_read, |
| 1017 | }, |
| 1018 | |
| 1019 | { |
| 1020 | .vendor = "AMIC", |
| 1021 | .name = "A25L080", |
| 1022 | .bustype = CHIP_BUSTYPE_SPI, |
| 1023 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1024 | .model_id = AMIC_A25L080, |
| 1025 | .total_size = 1024, |
| 1026 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1027 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1028 | .tested = TEST_UNTESTED, |
| 1029 | .probe = probe_spi_rdid, |
| 1030 | .probe_timing = TIMING_ZERO, |
| 1031 | .block_erasers = |
| 1032 | { |
| 1033 | { |
| 1034 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1035 | .block_erase = spi_block_erase_20, |
| 1036 | }, { |
| 1037 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1038 | .block_erase = spi_block_erase_d8, |
| 1039 | }, { |
| 1040 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1041 | .block_erase = spi_block_erase_c7, |
| 1042 | } |
| 1043 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1044 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1045 | .unlock = spi_disable_blockprotect, |
| 1046 | .write = spi_chip_write_256, |
| 1047 | .read = spi_chip_read, |
| 1048 | }, |
| 1049 | |
| 1050 | { |
| 1051 | .vendor = "AMIC", |
| 1052 | .name = "A25L016", |
| 1053 | .bustype = CHIP_BUSTYPE_SPI, |
| 1054 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1055 | .model_id = AMIC_A25L016, |
| 1056 | .total_size = 2048, |
| 1057 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1058 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1059 | .tested = TEST_UNTESTED, |
| 1060 | .probe = probe_spi_rdid, |
| 1061 | .probe_timing = TIMING_ZERO, |
| 1062 | .block_erasers = |
| 1063 | { |
| 1064 | { |
| 1065 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1066 | .block_erase = spi_block_erase_20, |
| 1067 | }, { |
| 1068 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1069 | .block_erase = spi_block_erase_d8, |
| 1070 | }, { |
| 1071 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1072 | .block_erase = spi_block_erase_c7, |
| 1073 | } |
| 1074 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1075 | .printlock = spi_prettyprint_status_register_amic_a25l40p, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1076 | .unlock = spi_disable_blockprotect, |
| 1077 | .write = spi_chip_write_256, |
| 1078 | .read = spi_chip_read, |
| 1079 | }, |
| 1080 | |
| 1081 | { |
| 1082 | .vendor = "AMIC", |
| 1083 | .name = "A25L032", |
| 1084 | .bustype = CHIP_BUSTYPE_SPI, |
| 1085 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1086 | .model_id = AMIC_A25L032, |
| 1087 | .total_size = 4096, |
| 1088 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1089 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1090 | .tested = TEST_UNTESTED, |
| 1091 | .probe = probe_spi_rdid, |
| 1092 | .probe_timing = TIMING_ZERO, |
| 1093 | .block_erasers = |
| 1094 | { |
| 1095 | { |
| 1096 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1097 | .block_erase = spi_block_erase_20, |
| 1098 | }, { |
| 1099 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1100 | .block_erase = spi_block_erase_52, |
| 1101 | }, { |
| 1102 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1103 | .block_erase = spi_block_erase_d8, |
| 1104 | }, { |
| 1105 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1106 | .block_erase = spi_block_erase_60, |
| 1107 | }, { |
| 1108 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1109 | .block_erase = spi_block_erase_c7, |
| 1110 | } |
| 1111 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1112 | .printlock = spi_prettyprint_status_register_amic_a25l032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1113 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 1114 | .write = spi_chip_write_256, |
| 1115 | .read = spi_chip_read, |
| 1116 | }, |
| 1117 | |
| 1118 | { |
| 1119 | .vendor = "AMIC", |
| 1120 | .name = "A25LQ032", |
| 1121 | .bustype = CHIP_BUSTYPE_SPI, |
| 1122 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1123 | .model_id = AMIC_A25LQ032, |
| 1124 | .total_size = 4096, |
| 1125 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1126 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1127 | .tested = TEST_UNTESTED, |
| 1128 | .probe = probe_spi_rdid, |
| 1129 | .probe_timing = TIMING_ZERO, |
| 1130 | .block_erasers = |
| 1131 | { |
| 1132 | { |
| 1133 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1134 | .block_erase = spi_block_erase_20, |
| 1135 | }, { |
| 1136 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1137 | .block_erase = spi_block_erase_52, |
| 1138 | }, { |
| 1139 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1140 | .block_erase = spi_block_erase_d8, |
| 1141 | }, { |
| 1142 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1143 | .block_erase = spi_block_erase_60, |
| 1144 | }, { |
| 1145 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1146 | .block_erase = spi_block_erase_c7, |
| 1147 | } |
| 1148 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1149 | .printlock = spi_prettyprint_status_register_amic_a25lq032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1150 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 1151 | .write = spi_chip_write_256, |
| 1152 | .read = spi_chip_read, |
| 1153 | }, |
| 1154 | |
| 1155 | { |
| 1156 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1157 | .name = "A29002B", |
| 1158 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 1159 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1160 | .model_id = AMIC_A29002B, |
| 1161 | .total_size = 256, |
| 1162 | .page_size = 64 * 1024, |
| 1163 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1164 | .tested = TEST_UNTESTED, |
| 1165 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1166 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1167 | .block_erasers = |
| 1168 | { |
| 1169 | { |
| 1170 | .eraseblocks = { |
| 1171 | {16 * 1024, 1}, |
| 1172 | {8 * 1024, 2}, |
| 1173 | {32 * 1024, 1}, |
| 1174 | {64 * 1024, 3}, |
| 1175 | }, |
| 1176 | .block_erase = erase_sector_jedec, |
| 1177 | }, { |
| 1178 | .eraseblocks = { {256 * 1024, 1} }, |
| 1179 | .block_erase = erase_chip_block_jedec, |
| 1180 | }, |
| 1181 | }, |
| 1182 | .write = write_jedec_1, |
| 1183 | .read = read_memmapped, |
| 1184 | }, |
| 1185 | |
| 1186 | { |
| 1187 | .vendor = "AMIC", |
| 1188 | .name = "A29002T", |
| 1189 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 1190 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1191 | .model_id = AMIC_A29002T, |
| 1192 | .total_size = 256, |
| 1193 | .page_size = 64 * 1024, |
| 1194 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1195 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1196 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1197 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1198 | .block_erasers = |
| 1199 | { |
| 1200 | { |
| 1201 | .eraseblocks = { |
| 1202 | {64 * 1024, 3}, |
| 1203 | {32 * 1024, 1}, |
| 1204 | {8 * 1024, 2}, |
| 1205 | {16 * 1024, 1}, |
| 1206 | }, |
| 1207 | .block_erase = erase_sector_jedec, |
| 1208 | }, { |
| 1209 | .eraseblocks = { {256 * 1024, 1} }, |
| 1210 | .block_erase = erase_chip_block_jedec, |
| 1211 | }, |
| 1212 | }, |
| 1213 | .write = write_jedec_1, |
| 1214 | .read = read_memmapped, |
| 1215 | }, |
| 1216 | |
| 1217 | { |
| 1218 | .vendor = "AMIC", |
| 1219 | .name = "A29040B", |
| 1220 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 1221 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1222 | .model_id = AMIC_A29040B, |
| 1223 | .total_size = 512, |
| 1224 | .page_size = 64 * 1024, |
| 1225 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1226 | .tested = TEST_UNTESTED, |
| 1227 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1228 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1229 | .block_erasers = |
| 1230 | { |
| 1231 | { |
| 1232 | .eraseblocks = { {64 * 1024, 8} }, |
| 1233 | .block_erase = erase_sector_jedec, |
| 1234 | }, { |
| 1235 | .eraseblocks = { {512 * 1024, 1} }, |
| 1236 | .block_erase = erase_chip_block_jedec, |
| 1237 | }, |
| 1238 | }, |
| 1239 | .write = write_jedec_1, |
| 1240 | .read = read_memmapped, |
| 1241 | }, |
| 1242 | |
| 1243 | { |
| 1244 | .vendor = "AMIC", |
| 1245 | .name = "A49LF040A", |
| 1246 | .bustype = CHIP_BUSTYPE_LPC, |
| 1247 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1248 | .model_id = AMIC_A49LF040A, |
| 1249 | .total_size = 512, |
| 1250 | .page_size = 64 * 1024, |
| 1251 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1252 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1253 | .probe = probe_jedec, |
| 1254 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1255 | .block_erasers = |
| 1256 | { |
| 1257 | { |
| 1258 | .eraseblocks = { {64 * 1024, 8} }, |
| 1259 | .block_erase = erase_block_jedec, |
| 1260 | }, { |
| 1261 | .eraseblocks = { {512 * 1024, 1} }, |
| 1262 | .block_erase = erase_chip_block_jedec, |
| 1263 | } |
| 1264 | }, |
| 1265 | .unlock = unlock_49fl00x, |
| 1266 | .write = write_jedec_1, |
| 1267 | .read = read_memmapped, |
| 1268 | }, |
| 1269 | |
| 1270 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1271 | .vendor = "Atmel", |
| 1272 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1273 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1274 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1275 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1276 | .total_size = 256, |
| 1277 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1278 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1279 | .tested = TEST_UNTESTED, |
| 1280 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1281 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1282 | .block_erasers = |
| 1283 | { |
| 1284 | { |
| 1285 | .eraseblocks = { {4 * 1024, 64} }, |
| 1286 | .block_erase = spi_block_erase_20, |
| 1287 | }, { |
| 1288 | .eraseblocks = { {32 * 1024, 8} }, |
| 1289 | .block_erase = spi_block_erase_52, |
| 1290 | }, { |
| 1291 | .eraseblocks = { {64 * 1024, 4} }, |
| 1292 | .block_erase = spi_block_erase_d8, |
| 1293 | }, { |
| 1294 | .eraseblocks = { {256 * 1024, 1} }, |
| 1295 | .block_erase = spi_block_erase_60, |
| 1296 | }, { |
| 1297 | .eraseblocks = { {256 * 1024, 1} }, |
| 1298 | .block_erase = spi_block_erase_c7, |
| 1299 | } |
| 1300 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1301 | .printlock = spi_prettyprint_status_register_at25df, |
| 1302 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1303 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1304 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1305 | }, |
| 1306 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1307 | { |
| 1308 | .vendor = "Atmel", |
| 1309 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1310 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1311 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1312 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1313 | .total_size = 512, |
| 1314 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1315 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1316 | .tested = TEST_UNTESTED, |
| 1317 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1318 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1319 | .block_erasers = |
| 1320 | { |
| 1321 | { |
| 1322 | .eraseblocks = { {4 * 1024, 128} }, |
| 1323 | .block_erase = spi_block_erase_20, |
| 1324 | }, { |
| 1325 | .eraseblocks = { {32 * 1024, 16} }, |
| 1326 | .block_erase = spi_block_erase_52, |
| 1327 | }, { |
| 1328 | .eraseblocks = { {64 * 1024, 8} }, |
| 1329 | .block_erase = spi_block_erase_d8, |
| 1330 | }, { |
| 1331 | .eraseblocks = { {512 * 1024, 1} }, |
| 1332 | .block_erase = spi_block_erase_60, |
| 1333 | }, { |
| 1334 | .eraseblocks = { {512 * 1024, 1} }, |
| 1335 | .block_erase = spi_block_erase_c7, |
| 1336 | } |
| 1337 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1338 | .printlock = spi_prettyprint_status_register_at25df, |
| 1339 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1340 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1341 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1342 | }, |
| 1343 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1344 | { |
| 1345 | .vendor = "Atmel", |
| 1346 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1347 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1348 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1349 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1350 | .total_size = 1024, |
| 1351 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1352 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1353 | .tested = TEST_UNTESTED, |
| 1354 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1355 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1356 | .block_erasers = |
| 1357 | { |
| 1358 | { |
| 1359 | .eraseblocks = { {4 * 1024, 256} }, |
| 1360 | .block_erase = spi_block_erase_20, |
| 1361 | }, { |
| 1362 | .eraseblocks = { {32 * 1024, 32} }, |
| 1363 | .block_erase = spi_block_erase_52, |
| 1364 | }, { |
| 1365 | .eraseblocks = { {64 * 1024, 16} }, |
| 1366 | .block_erase = spi_block_erase_d8, |
| 1367 | }, { |
| 1368 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1369 | .block_erase = spi_block_erase_60, |
| 1370 | }, { |
| 1371 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1372 | .block_erase = spi_block_erase_c7, |
| 1373 | } |
| 1374 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1375 | .printlock = spi_prettyprint_status_register_at25df, |
| 1376 | .unlock = spi_disable_blockprotect_at25df, |
| 1377 | .write = spi_chip_write_256, |
| 1378 | .read = spi_chip_read, |
| 1379 | }, |
| 1380 | |
| 1381 | { |
| 1382 | .vendor = "Atmel", |
| 1383 | .name = "AT25DF081A", |
| 1384 | .bustype = CHIP_BUSTYPE_SPI, |
| 1385 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1386 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1387 | .total_size = 1024, |
| 1388 | .page_size = 256, |
| 1389 | .feature_bits = FEATURE_WRSR_WREN, |
| 1390 | .tested = TEST_UNTESTED, |
| 1391 | .probe = probe_spi_rdid, |
| 1392 | .probe_timing = TIMING_ZERO, |
| 1393 | .block_erasers = |
| 1394 | { |
| 1395 | { |
| 1396 | .eraseblocks = { {4 * 1024, 256} }, |
| 1397 | .block_erase = spi_block_erase_20, |
| 1398 | }, { |
| 1399 | .eraseblocks = { {32 * 1024, 32} }, |
| 1400 | .block_erase = spi_block_erase_52, |
| 1401 | }, { |
| 1402 | .eraseblocks = { {64 * 1024, 16} }, |
| 1403 | .block_erase = spi_block_erase_d8, |
| 1404 | }, { |
| 1405 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1406 | .block_erase = spi_block_erase_60, |
| 1407 | }, { |
| 1408 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1409 | .block_erase = spi_block_erase_c7, |
| 1410 | } |
| 1411 | }, |
| 1412 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1413 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1414 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1415 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1416 | }, |
| 1417 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1418 | { |
| 1419 | .vendor = "Atmel", |
| 1420 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1421 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1422 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1423 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1424 | .total_size = 2048, |
| 1425 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1426 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1427 | .tested = TEST_UNTESTED, |
| 1428 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1429 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1430 | .block_erasers = |
| 1431 | { |
| 1432 | { |
| 1433 | .eraseblocks = { {4 * 1024, 512} }, |
| 1434 | .block_erase = spi_block_erase_20, |
| 1435 | }, { |
| 1436 | .eraseblocks = { {32 * 1024, 64} }, |
| 1437 | .block_erase = spi_block_erase_52, |
| 1438 | }, { |
| 1439 | .eraseblocks = { {64 * 1024, 32} }, |
| 1440 | .block_erase = spi_block_erase_d8, |
| 1441 | }, { |
| 1442 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1443 | .block_erase = spi_block_erase_60, |
| 1444 | }, { |
| 1445 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1446 | .block_erase = spi_block_erase_c7, |
| 1447 | } |
| 1448 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1449 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1450 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1451 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1452 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1453 | }, |
| 1454 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1455 | { |
| 1456 | .vendor = "Atmel", |
| 1457 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1458 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1459 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1460 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1461 | .total_size = 4096, |
| 1462 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1463 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1464 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1465 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1466 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1467 | .block_erasers = |
| 1468 | { |
| 1469 | { |
| 1470 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1471 | .block_erase = spi_block_erase_20, |
| 1472 | }, { |
| 1473 | .eraseblocks = { {32 * 1024, 128} }, |
| 1474 | .block_erase = spi_block_erase_52, |
| 1475 | }, { |
| 1476 | .eraseblocks = { {64 * 1024, 64} }, |
| 1477 | .block_erase = spi_block_erase_d8, |
| 1478 | }, { |
| 1479 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1480 | .block_erase = spi_block_erase_60, |
| 1481 | }, { |
| 1482 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1483 | .block_erase = spi_block_erase_c7, |
| 1484 | } |
| 1485 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1486 | .printlock = spi_prettyprint_status_register_at25df, |
| 1487 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1488 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1489 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1490 | }, |
| 1491 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1492 | { |
| 1493 | .vendor = "Atmel", |
| 1494 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1495 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1496 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1497 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1498 | .total_size = 4096, |
| 1499 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1500 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1501 | .tested = TEST_UNTESTED, |
| 1502 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1503 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1504 | .block_erasers = |
| 1505 | { |
| 1506 | { |
| 1507 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1508 | .block_erase = spi_block_erase_20, |
| 1509 | }, { |
| 1510 | .eraseblocks = { {32 * 1024, 128} }, |
| 1511 | .block_erase = spi_block_erase_52, |
| 1512 | }, { |
| 1513 | .eraseblocks = { {64 * 1024, 64} }, |
| 1514 | .block_erase = spi_block_erase_d8, |
| 1515 | }, { |
| 1516 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1517 | .block_erase = spi_block_erase_60, |
| 1518 | }, { |
| 1519 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1520 | .block_erase = spi_block_erase_c7, |
| 1521 | } |
| 1522 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1523 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1524 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1525 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1526 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1527 | }, |
| 1528 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1529 | { |
| 1530 | .vendor = "Atmel", |
| 1531 | .name = "AT25DF641", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1532 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1533 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1534 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1535 | .total_size = 8192, |
| 1536 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1537 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1538 | .tested = TEST_UNTESTED, |
| 1539 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1540 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1541 | .block_erasers = |
| 1542 | { |
| 1543 | { |
| 1544 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1545 | .block_erase = spi_block_erase_20, |
| 1546 | }, { |
| 1547 | .eraseblocks = { {32 * 1024, 256} }, |
| 1548 | .block_erase = spi_block_erase_52, |
| 1549 | }, { |
| 1550 | .eraseblocks = { {64 * 1024, 128} }, |
| 1551 | .block_erase = spi_block_erase_d8, |
| 1552 | }, { |
| 1553 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1554 | .block_erase = spi_block_erase_60, |
| 1555 | }, { |
| 1556 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1557 | .block_erase = spi_block_erase_c7, |
| 1558 | } |
| 1559 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1560 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1561 | .unlock = spi_disable_blockprotect_at25df_sec, |
| 1562 | .write = spi_chip_write_256, |
| 1563 | .read = spi_chip_read, |
| 1564 | }, |
| 1565 | |
| 1566 | { |
| 1567 | .vendor = "Atmel", |
| 1568 | .name = "AT25DQ161", |
| 1569 | .bustype = CHIP_BUSTYPE_SPI, |
| 1570 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1571 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1572 | .total_size = 2048, |
| 1573 | .page_size = 256, |
| 1574 | .feature_bits = FEATURE_WRSR_WREN, |
| 1575 | .tested = TEST_UNTESTED, |
| 1576 | .probe = probe_spi_rdid, |
| 1577 | .probe_timing = TIMING_ZERO, |
| 1578 | .block_erasers = |
| 1579 | { |
| 1580 | { |
| 1581 | .eraseblocks = { {4 * 1024, 512} }, |
| 1582 | .block_erase = spi_block_erase_20, |
| 1583 | }, { |
| 1584 | .eraseblocks = { {32 * 1024, 64} }, |
| 1585 | .block_erase = spi_block_erase_52, |
| 1586 | }, { |
| 1587 | .eraseblocks = { {64 * 1024, 32} }, |
| 1588 | .block_erase = spi_block_erase_d8, |
| 1589 | }, { |
| 1590 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1591 | .block_erase = spi_block_erase_60, |
| 1592 | }, { |
| 1593 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1594 | .block_erase = spi_block_erase_c7, |
| 1595 | } |
| 1596 | }, |
| 1597 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1598 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1599 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1600 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1601 | }, |
| 1602 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1603 | { |
| 1604 | .vendor = "Atmel", |
| 1605 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1606 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1607 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1608 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1609 | .total_size = 64, |
| 1610 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1611 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1612 | .tested = TEST_UNTESTED, |
| 1613 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1614 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1615 | .block_erasers = |
| 1616 | { |
| 1617 | { |
| 1618 | .eraseblocks = { {4 * 1024, 16} }, |
| 1619 | .block_erase = spi_block_erase_20, |
| 1620 | }, { |
| 1621 | .eraseblocks = { {32 * 1024, 2} }, |
| 1622 | .block_erase = spi_block_erase_52, |
| 1623 | }, { |
| 1624 | .eraseblocks = { {32 * 1024, 2} }, |
| 1625 | .block_erase = spi_block_erase_d8, |
| 1626 | }, { |
| 1627 | .eraseblocks = { {64 * 1024, 1} }, |
| 1628 | .block_erase = spi_block_erase_60, |
| 1629 | }, { |
| 1630 | .eraseblocks = { {64 * 1024, 1} }, |
| 1631 | .block_erase = spi_block_erase_c7, |
| 1632 | } |
| 1633 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1634 | .printlock = spi_prettyprint_status_register_at25f, |
| 1635 | .unlock = spi_disable_blockprotect_at25f, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1636 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1637 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1638 | }, |
| 1639 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1640 | { |
| 1641 | .vendor = "Atmel", |
| 1642 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1643 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1644 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1645 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1646 | .total_size = 128, |
| 1647 | .page_size = 256, |
| 1648 | .tested = TEST_UNTESTED, |
| 1649 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1650 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1651 | .block_erasers = |
| 1652 | { |
| 1653 | { |
| 1654 | .eraseblocks = { {4 * 1024, 32} }, |
| 1655 | .block_erase = spi_block_erase_20, |
| 1656 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1657 | .eraseblocks = { {4 * 1024, 32} }, |
| 1658 | .block_erase = spi_block_erase_d7, |
| 1659 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1660 | .eraseblocks = { {32 * 1024, 4} }, |
| 1661 | .block_erase = spi_block_erase_52, |
| 1662 | }, { |
| 1663 | .eraseblocks = { {32 * 1024, 4} }, |
| 1664 | .block_erase = spi_block_erase_d8, |
| 1665 | }, { |
| 1666 | .eraseblocks = { {128 * 1024, 1} }, |
| 1667 | .block_erase = spi_block_erase_60, |
| 1668 | }, { |
| 1669 | .eraseblocks = { {128 * 1024, 1} }, |
| 1670 | .block_erase = spi_block_erase_c7, |
| 1671 | } |
| 1672 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1673 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 1674 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1675 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1676 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1677 | }, |
| 1678 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1679 | { |
| 1680 | .vendor = "Atmel", |
| 1681 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1682 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1683 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1684 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1685 | .total_size = 512, |
| 1686 | .page_size = 256, |
| 1687 | .tested = TEST_UNTESTED, |
| 1688 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1689 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1690 | .block_erasers = |
| 1691 | { |
| 1692 | { |
| 1693 | .eraseblocks = { {4 * 1024, 128} }, |
| 1694 | .block_erase = spi_block_erase_20, |
| 1695 | }, { |
| 1696 | .eraseblocks = { {64 * 1024, 8} }, |
| 1697 | .block_erase = spi_block_erase_52, |
| 1698 | }, { |
| 1699 | .eraseblocks = { {64 * 1024, 8} }, |
| 1700 | .block_erase = spi_block_erase_d8, |
| 1701 | }, { |
| 1702 | .eraseblocks = { {512 * 1024, 1} }, |
| 1703 | .block_erase = spi_block_erase_60, |
| 1704 | }, { |
| 1705 | .eraseblocks = { {512 * 1024, 1} }, |
| 1706 | .block_erase = spi_block_erase_c7, |
| 1707 | } |
| 1708 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1709 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 1710 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1711 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1712 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1713 | }, |
| 1714 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1715 | { |
| 1716 | .vendor = "Atmel", |
| 1717 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1718 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1719 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1720 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1721 | .total_size = 512, |
| 1722 | .page_size = 256, |
| 1723 | .tested = TEST_UNTESTED, |
| 1724 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1725 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1726 | .block_erasers = |
| 1727 | { |
| 1728 | { |
| 1729 | .eraseblocks = { {4 * 1024, 128} }, |
| 1730 | .block_erase = spi_block_erase_20, |
| 1731 | } |
| 1732 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1733 | .write = NULL /* Incompatible Page write */, |
| 1734 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1735 | }, |
| 1736 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1737 | { |
| 1738 | .vendor = "Atmel", |
| 1739 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1740 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1741 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1742 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1743 | .total_size = 1024, |
| 1744 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 1745 | .feature_bits = FEATURE_WRSR_WREN, |
| 1746 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1747 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1748 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1749 | .block_erasers = |
| 1750 | { |
| 1751 | { |
| 1752 | .eraseblocks = { {4 * 1024, 256} }, |
| 1753 | .block_erase = spi_block_erase_20, |
| 1754 | }, { |
| 1755 | .eraseblocks = { {32 * 1024, 32} }, |
| 1756 | .block_erase = spi_block_erase_52, |
| 1757 | }, { |
| 1758 | .eraseblocks = { {64 * 1024, 16} }, |
| 1759 | .block_erase = spi_block_erase_d8, |
| 1760 | }, { |
| 1761 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1762 | .block_erase = spi_block_erase_60, |
| 1763 | }, { |
| 1764 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1765 | .block_erase = spi_block_erase_c7, |
| 1766 | } |
| 1767 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1768 | .printlock = spi_prettyprint_status_register_atmel_at26df081a, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 1769 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1770 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1771 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1772 | }, |
| 1773 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1774 | { |
| 1775 | .vendor = "Atmel", |
| 1776 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1777 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1778 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1779 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1780 | .total_size = 2048, |
| 1781 | .page_size = 256, |
| 1782 | .tested = TEST_UNTESTED, |
| 1783 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1784 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1785 | .block_erasers = |
| 1786 | { |
| 1787 | { |
| 1788 | .eraseblocks = { {4 * 1024, 512} }, |
| 1789 | .block_erase = spi_block_erase_20, |
| 1790 | }, { |
| 1791 | .eraseblocks = { {32 * 1024, 64} }, |
| 1792 | .block_erase = spi_block_erase_52, |
| 1793 | }, { |
| 1794 | .eraseblocks = { {64 * 1024, 32} }, |
| 1795 | .block_erase = spi_block_erase_d8, |
| 1796 | }, { |
| 1797 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1798 | .block_erase = spi_block_erase_60, |
| 1799 | }, { |
| 1800 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1801 | .block_erase = spi_block_erase_c7, |
| 1802 | } |
| 1803 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1804 | .printlock = spi_prettyprint_status_register_at25df, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1805 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1806 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1807 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1808 | }, |
| 1809 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1810 | { |
| 1811 | .vendor = "Atmel", |
| 1812 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1813 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1814 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1815 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1816 | .total_size = 2048, |
| 1817 | .page_size = 256, |
| 1818 | .tested = TEST_UNTESTED, |
| 1819 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1820 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1821 | .block_erasers = |
| 1822 | { |
| 1823 | { |
| 1824 | .eraseblocks = { {4 * 1024, 512} }, |
| 1825 | .block_erase = spi_block_erase_20, |
| 1826 | }, { |
| 1827 | .eraseblocks = { {32 * 1024, 64} }, |
| 1828 | .block_erase = spi_block_erase_52, |
| 1829 | }, { |
| 1830 | .eraseblocks = { {64 * 1024, 32} }, |
| 1831 | .block_erase = spi_block_erase_d8, |
| 1832 | }, { |
| 1833 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1834 | .block_erase = spi_block_erase_60, |
| 1835 | }, { |
| 1836 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1837 | .block_erase = spi_block_erase_c7, |
| 1838 | } |
| 1839 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1840 | .printlock = spi_prettyprint_status_register_atmel_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1841 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1842 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1843 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1844 | }, |
| 1845 | |
| 1846 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1847 | /*{ |
| 1848 | .vendor = "Atmel", |
| 1849 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1850 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1851 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1852 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1853 | .total_size = 4096, |
| 1854 | .page_size = 256, |
| 1855 | .tested = TEST_UNTESTED, |
| 1856 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1857 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1858 | .printlock = spi_prettyprint_status_register_atmel_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1859 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1860 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1861 | .read = spi_chip_read, |
| 1862 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1863 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1864 | { |
| 1865 | .vendor = "Atmel", |
| 1866 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1867 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1868 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1869 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1870 | .total_size = 512, |
| 1871 | .page_size = 256, |
| 1872 | .tested = TEST_UNTESTED, |
| 1873 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1874 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1875 | .block_erasers = |
| 1876 | { |
| 1877 | { |
| 1878 | .eraseblocks = { {4 * 1024, 128} }, |
| 1879 | .block_erase = spi_block_erase_20, |
| 1880 | }, { |
| 1881 | .eraseblocks = { {32 * 1024, 16} }, |
| 1882 | .block_erase = spi_block_erase_52, |
| 1883 | }, { |
| 1884 | .eraseblocks = { {64 * 1024, 8} }, |
| 1885 | .block_erase = spi_block_erase_d8, |
| 1886 | }, { |
| 1887 | .eraseblocks = { {512 * 1024, 1} }, |
| 1888 | .block_erase = spi_block_erase_60, |
| 1889 | }, { |
| 1890 | .eraseblocks = { {512 * 1024, 1} }, |
| 1891 | .block_erase = spi_block_erase_c7, |
| 1892 | } |
| 1893 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1894 | .write = NULL /* Incompatible Page write */, |
| 1895 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1896 | }, |
| 1897 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1898 | { |
| 1899 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1900 | .name = "AT29C512", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 1901 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1902 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1903 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1904 | .total_size = 64, |
| 1905 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1906 | .feature_bits = FEATURE_LONG_RESET, |
| 1907 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 1908 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1909 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1910 | .block_erasers = |
| 1911 | { |
| 1912 | { |
| 1913 | .eraseblocks = { {64 * 1024, 1} }, |
| 1914 | .block_erase = erase_chip_block_jedec, |
| 1915 | } |
| 1916 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1917 | .write = write_jedec, |
| 1918 | .read = read_memmapped, |
| 1919 | |
| 1920 | }, |
| 1921 | |
| 1922 | { |
| 1923 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1924 | .name = "AT29C010A", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1925 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1926 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1927 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1928 | .total_size = 128, |
| 1929 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1930 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1931 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1932 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1933 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1934 | .block_erasers = |
| 1935 | { |
| 1936 | { |
| 1937 | .eraseblocks = { {128 * 1024, 1} }, |
| 1938 | .block_erase = erase_chip_block_jedec, |
| 1939 | } |
| 1940 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1941 | .write = write_jedec, /* FIXME */ |
| 1942 | .read = read_memmapped, |
| 1943 | }, |
| 1944 | |
| 1945 | { |
| 1946 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1947 | .name = "AT29C020", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1948 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1949 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1950 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1951 | .total_size = 256, |
| 1952 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1953 | .feature_bits = FEATURE_LONG_RESET, |
| 1954 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1955 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 1956 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1957 | .block_erasers = |
| 1958 | { |
| 1959 | { |
| 1960 | .eraseblocks = { {256 * 1024, 1} }, |
| 1961 | .block_erase = erase_chip_block_jedec, |
| 1962 | } |
| 1963 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1964 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1965 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1966 | }, |
| 1967 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1968 | { |
| 1969 | .vendor = "Atmel", |
| 1970 | .name = "AT29C040A", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1971 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1972 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1973 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1974 | .total_size = 512, |
| 1975 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1976 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1977 | .tested = TEST_UNTESTED, |
| 1978 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 1979 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1980 | .block_erasers = |
| 1981 | { |
| 1982 | { |
| 1983 | .eraseblocks = { {512 * 1024, 1} }, |
| 1984 | .block_erase = erase_chip_block_jedec, |
| 1985 | } |
| 1986 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1987 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1988 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1989 | }, |
| 1990 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1991 | { |
| 1992 | .vendor = "Atmel", |
| 1993 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1994 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1995 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1996 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1997 | .total_size = 16896 /* No power of two sizes */, |
| 1998 | .page_size = 1056 /* No power of two sizes */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1999 | .tested = TEST_BAD_READ, |
| 2000 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2001 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2002 | .write = NULL /* Incompatible Page write */, |
| 2003 | .read = NULL /* Incompatible read */, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2004 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2005 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2006 | { |
| 2007 | .vendor = "Atmel", |
| 2008 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2009 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2010 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2011 | .model_id = ATMEL_AT45DB011D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2012 | .total_size = 128 /* Size can only be determined from status register */, |
| 2013 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2014 | .tested = TEST_BAD_READ, |
| 2015 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2016 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2017 | .write = NULL, |
| 2018 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2019 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2020 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2021 | { |
| 2022 | .vendor = "Atmel", |
| 2023 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2024 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2025 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2026 | .model_id = ATMEL_AT45DB021D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2027 | .total_size = 256 /* Size can only be determined from status register */, |
| 2028 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2029 | .tested = TEST_BAD_READ, |
| 2030 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2031 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2032 | .write = NULL, |
| 2033 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2034 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2035 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2036 | { |
| 2037 | .vendor = "Atmel", |
| 2038 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2039 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2040 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2041 | .model_id = ATMEL_AT45DB041D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2042 | .total_size = 512 /* Size can only be determined from status register */, |
| 2043 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2044 | .tested = TEST_BAD_READ, |
| 2045 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2046 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2047 | .write = NULL, |
| 2048 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2049 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2050 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2051 | { |
| 2052 | .vendor = "Atmel", |
| 2053 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2054 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2055 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2056 | .model_id = ATMEL_AT45DB081D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2057 | .total_size = 1024 /* Size can only be determined from status register */, |
| 2058 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2059 | .tested = TEST_BAD_READ, |
| 2060 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2061 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2062 | .write = NULL, |
| 2063 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2064 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2065 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2066 | { |
| 2067 | .vendor = "Atmel", |
| 2068 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2069 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2070 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2071 | .model_id = ATMEL_AT45DB161D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2072 | .total_size = 2048 /* Size can only be determined from status register */, |
| 2073 | .page_size = 512 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2074 | .tested = TEST_BAD_READ, |
| 2075 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2076 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2077 | .write = NULL, |
| 2078 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2079 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2080 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2081 | { |
| 2082 | .vendor = "Atmel", |
| 2083 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2084 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2085 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2086 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2087 | .total_size = 4224 /* No power of two sizes */, |
| 2088 | .page_size = 528 /* No power of two sizes */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2089 | .tested = TEST_BAD_READ, |
| 2090 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2091 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2092 | .write = NULL, |
| 2093 | .read = NULL /* Incompatible read */, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2094 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2095 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2096 | { |
| 2097 | .vendor = "Atmel", |
| 2098 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2099 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2100 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2101 | .model_id = ATMEL_AT45DB321D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2102 | .total_size = 4096 /* Size can only be determined from status register */, |
| 2103 | .page_size = 512 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2104 | .tested = TEST_BAD_READ, |
| 2105 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2106 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2107 | .write = NULL, |
| 2108 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2109 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2110 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2111 | { |
| 2112 | .vendor = "Atmel", |
| 2113 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2114 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2115 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2116 | .model_id = ATMEL_AT45DB642D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2117 | .total_size = 8192 /* Size can only be determined from status register */, |
| 2118 | .page_size = 1024 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2119 | .tested = TEST_BAD_READ, |
| 2120 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2121 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2122 | .write = NULL, |
| 2123 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2124 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2125 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2126 | { |
| 2127 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2128 | .name = "AT49BV512", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2129 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2130 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2131 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2132 | .total_size = 64, |
| 2133 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2134 | .feature_bits = FEATURE_EITHER_RESET, |
| 2135 | .tested = TEST_UNTESTED, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2136 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2137 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2138 | .block_erasers = |
| 2139 | { |
| 2140 | { |
| 2141 | .eraseblocks = { {64 * 1024, 1} }, |
| 2142 | .block_erase = erase_chip_block_jedec, |
| 2143 | } |
| 2144 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2145 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2146 | .read = read_memmapped, |
| 2147 | }, |
| 2148 | |
| 2149 | { |
| 2150 | .vendor = "Atmel", |
Andrew Morgan | 1a5eaa1 | 2010-06-07 14:10:55 +0000 | [diff] [blame] | 2151 | .name = "AT49F020", |
| 2152 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2153 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2154 | .model_id = ATMEL_AT49F020, |
Andrew Morgan | 1a5eaa1 | 2010-06-07 14:10:55 +0000 | [diff] [blame] | 2155 | .total_size = 256, |
| 2156 | .page_size = 256, |
| 2157 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2158 | .tested = TEST_OK_PRE, |
Andrew Morgan | 1a5eaa1 | 2010-06-07 14:10:55 +0000 | [diff] [blame] | 2159 | .probe = probe_jedec, |
| 2160 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2161 | .block_erasers = |
| 2162 | { |
| 2163 | { |
| 2164 | .eraseblocks = { {256 * 1024, 1} }, |
| 2165 | .block_erase = erase_chip_block_jedec, |
| 2166 | } |
| 2167 | }, |
| 2168 | .write = write_jedec_1, |
| 2169 | .read = read_memmapped, |
| 2170 | }, |
| 2171 | |
| 2172 | { |
| 2173 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2174 | .name = "AT49F002(N)", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2175 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2176 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2177 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2178 | .total_size = 256, |
| 2179 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2180 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2181 | .tested = TEST_UNTESTED, |
| 2182 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2183 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2184 | .block_erasers = |
| 2185 | { |
| 2186 | { |
| 2187 | .eraseblocks = { |
| 2188 | {16 * 1024, 1}, |
| 2189 | {8 * 1024, 2}, |
| 2190 | {96 * 1024, 1}, |
| 2191 | {128 * 1024, 1}, |
| 2192 | }, |
| 2193 | .block_erase = erase_sector_jedec, |
| 2194 | }, { |
| 2195 | .eraseblocks = { {256 * 1024, 1} }, |
| 2196 | .block_erase = erase_chip_block_jedec, |
| 2197 | } |
| 2198 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2199 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2200 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2201 | }, |
| 2202 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2203 | { |
| 2204 | .vendor = "Atmel", |
| 2205 | .name = "AT49F002(N)T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2206 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2207 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2208 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2209 | .total_size = 256, |
| 2210 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2211 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2212 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2213 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2214 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2215 | .block_erasers = |
| 2216 | { |
| 2217 | { |
| 2218 | .eraseblocks = { |
| 2219 | {128 * 1024, 1}, |
| 2220 | {96 * 1024, 1}, |
| 2221 | {8 * 1024, 2}, |
| 2222 | {16 * 1024, 1}, |
| 2223 | }, |
| 2224 | .block_erase = erase_sector_jedec, |
| 2225 | }, { |
| 2226 | .eraseblocks = { {256 * 1024, 1} }, |
| 2227 | .block_erase = erase_chip_block_jedec, |
| 2228 | } |
| 2229 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2230 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2231 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2232 | }, |
| 2233 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2234 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2235 | .vendor = "Bright", |
| 2236 | .name = "BM29F040", |
| 2237 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2238 | .manufacture_id = BRIGHT_ID, |
| 2239 | .model_id = BRIGHT_BM29F040, |
| 2240 | .total_size = 512, |
| 2241 | .page_size = 64 * 1024, |
| 2242 | .feature_bits = FEATURE_EITHER_RESET, |
| 2243 | .tested = TEST_OK_PR, |
| 2244 | .probe = probe_jedec, |
| 2245 | .probe_timing = TIMING_ZERO, |
| 2246 | .block_erasers = |
| 2247 | { |
| 2248 | { |
| 2249 | .eraseblocks = { {64 * 1024, 8} }, |
| 2250 | .block_erase = erase_sector_jedec, |
| 2251 | }, { |
| 2252 | .eraseblocks = { {512 * 1024, 1} }, |
| 2253 | .block_erase = erase_chip_block_jedec, |
| 2254 | }, |
| 2255 | }, |
| 2256 | .write = write_jedec_1, |
| 2257 | .read = read_memmapped, |
| 2258 | }, |
| 2259 | |
| 2260 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2261 | .vendor = "EMST", |
| 2262 | .name = "F49B002UA", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2263 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2264 | .manufacture_id = EMST_ID, |
| 2265 | .model_id = EMST_F49B002UA, |
| 2266 | .total_size = 256, |
| 2267 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2268 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2269 | .tested = TEST_UNTESTED, |
| 2270 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2271 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2272 | .block_erasers = |
| 2273 | { |
| 2274 | { |
| 2275 | .eraseblocks = { |
| 2276 | {128 * 1024, 1}, |
| 2277 | {96 * 1024, 1}, |
| 2278 | {8 * 1024, 2}, |
| 2279 | {16 * 1024, 1}, |
| 2280 | }, |
| 2281 | .block_erase = erase_sector_jedec, |
| 2282 | }, { |
| 2283 | .eraseblocks = { {256 * 1024, 1} }, |
| 2284 | .block_erase = erase_chip_block_jedec, |
| 2285 | } |
| 2286 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2287 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2288 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2289 | }, |
| 2290 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2291 | { |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2292 | .vendor = "EMST", |
| 2293 | .name = "F25L008A", |
| 2294 | .bustype = CHIP_BUSTYPE_SPI, |
| 2295 | .manufacture_id = EMST_ID, |
| 2296 | .model_id = EMST_F25L008A, |
| 2297 | .total_size = 1024, |
| 2298 | .page_size = 256, |
| 2299 | .tested = TEST_UNTESTED, |
| 2300 | .probe = probe_spi_rdid, |
| 2301 | .probe_timing = TIMING_ZERO, |
| 2302 | .block_erasers = |
| 2303 | { |
| 2304 | { |
| 2305 | .eraseblocks = { {4 * 1024, 256} }, |
| 2306 | .block_erase = spi_block_erase_20, |
| 2307 | }, { |
| 2308 | .eraseblocks = { {64 * 1024, 16} }, |
| 2309 | .block_erase = spi_block_erase_d8, |
| 2310 | }, { |
| 2311 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2312 | .block_erase = spi_block_erase_60, |
| 2313 | }, { |
| 2314 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2315 | .block_erase = spi_block_erase_c7, |
| 2316 | } |
| 2317 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2318 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 2319 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 2320 | .read = spi_chip_read, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2321 | }, |
| 2322 | |
| 2323 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2324 | .vendor = "Eon", |
| 2325 | .name = "EN25B05", |
| 2326 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2327 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2328 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2329 | .total_size = 64, |
| 2330 | .page_size = 256, |
| 2331 | .tested = TEST_UNTESTED, |
| 2332 | .probe = probe_spi_rdid, |
| 2333 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2334 | .block_erasers = |
| 2335 | { |
| 2336 | { |
| 2337 | .eraseblocks = { |
| 2338 | {4 * 1024, 2}, |
| 2339 | {8 * 1024, 1}, |
| 2340 | {16 * 1024, 1}, |
| 2341 | {32 * 1024, 1}, |
| 2342 | }, |
| 2343 | .block_erase = spi_block_erase_d8, |
| 2344 | }, { |
| 2345 | .eraseblocks = { {64 * 1024, 1} }, |
| 2346 | .block_erase = spi_block_erase_c7, |
| 2347 | } |
| 2348 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2349 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2350 | .write = spi_chip_write_256, |
| 2351 | .read = spi_chip_read, |
| 2352 | }, |
| 2353 | |
| 2354 | { |
| 2355 | .vendor = "Eon", |
| 2356 | .name = "EN25B05T", |
| 2357 | .bustype = CHIP_BUSTYPE_SPI, |
| 2358 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2359 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2360 | .total_size = 64, |
| 2361 | .page_size = 256, |
| 2362 | .tested = TEST_UNTESTED, |
| 2363 | .probe = probe_spi_rdid, |
| 2364 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2365 | .block_erasers = |
| 2366 | { |
| 2367 | { |
| 2368 | .eraseblocks = { |
| 2369 | {32 * 1024, 1}, |
| 2370 | {16 * 1024, 1}, |
| 2371 | {8 * 1024, 1}, |
| 2372 | {4 * 1024, 2}, |
| 2373 | }, |
| 2374 | .block_erase = spi_block_erase_d8, |
| 2375 | }, { |
| 2376 | .eraseblocks = { {64 * 1024, 1} }, |
| 2377 | .block_erase = spi_block_erase_c7, |
| 2378 | } |
| 2379 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2380 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2381 | .write = spi_chip_write_256, |
| 2382 | .read = spi_chip_read, |
| 2383 | }, |
| 2384 | |
| 2385 | { |
| 2386 | .vendor = "Eon", |
| 2387 | .name = "EN25B10", |
| 2388 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2389 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2390 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2391 | .total_size = 128, |
| 2392 | .page_size = 256, |
| 2393 | .tested = TEST_UNTESTED, |
| 2394 | .probe = probe_spi_rdid, |
| 2395 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2396 | .block_erasers = |
| 2397 | { |
| 2398 | { |
| 2399 | .eraseblocks = { |
| 2400 | {4 * 1024, 2}, |
| 2401 | {8 * 1024, 1}, |
| 2402 | {16 * 1024, 1}, |
| 2403 | {32 * 1024, 3}, |
| 2404 | }, |
| 2405 | .block_erase = spi_block_erase_d8, |
| 2406 | }, { |
| 2407 | .eraseblocks = { {128 * 1024, 1} }, |
| 2408 | .block_erase = spi_block_erase_c7, |
| 2409 | } |
| 2410 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2411 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2412 | .write = spi_chip_write_256, |
| 2413 | .read = spi_chip_read, |
| 2414 | }, |
| 2415 | |
| 2416 | { |
| 2417 | .vendor = "Eon", |
| 2418 | .name = "EN25B10T", |
| 2419 | .bustype = CHIP_BUSTYPE_SPI, |
| 2420 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2421 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2422 | .total_size = 128, |
| 2423 | .page_size = 256, |
| 2424 | .tested = TEST_UNTESTED, |
| 2425 | .probe = probe_spi_rdid, |
| 2426 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2427 | .block_erasers = |
| 2428 | { |
| 2429 | { |
| 2430 | .eraseblocks = { |
| 2431 | {32 * 1024, 3}, |
| 2432 | {16 * 1024, 1}, |
| 2433 | {8 * 1024, 1}, |
| 2434 | {4 * 1024, 2}, |
| 2435 | }, |
| 2436 | .block_erase = spi_block_erase_d8, |
| 2437 | }, { |
| 2438 | .eraseblocks = { {128 * 1024, 1} }, |
| 2439 | .block_erase = spi_block_erase_c7, |
| 2440 | } |
| 2441 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2442 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2443 | .write = spi_chip_write_256, |
| 2444 | .read = spi_chip_read, |
| 2445 | }, |
| 2446 | |
| 2447 | { |
| 2448 | .vendor = "Eon", |
| 2449 | .name = "EN25B20", |
| 2450 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2451 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2452 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2453 | .total_size = 256, |
| 2454 | .page_size = 256, |
| 2455 | .tested = TEST_UNTESTED, |
| 2456 | .probe = probe_spi_rdid, |
| 2457 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2458 | .block_erasers = |
| 2459 | { |
| 2460 | { |
| 2461 | .eraseblocks = { |
| 2462 | {4 * 1024, 2}, |
| 2463 | {8 * 1024, 1}, |
| 2464 | {16 * 1024, 1}, |
| 2465 | {32 * 1024, 1}, |
| 2466 | {64 * 1024, 3} |
| 2467 | }, |
| 2468 | .block_erase = spi_block_erase_d8, |
| 2469 | }, { |
| 2470 | .eraseblocks = { {256 * 1024, 1} }, |
| 2471 | .block_erase = spi_block_erase_c7, |
| 2472 | } |
| 2473 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2474 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2475 | .write = spi_chip_write_256, |
| 2476 | .read = spi_chip_read, |
| 2477 | }, |
| 2478 | |
| 2479 | { |
| 2480 | .vendor = "Eon", |
| 2481 | .name = "EN25B20T", |
| 2482 | .bustype = CHIP_BUSTYPE_SPI, |
| 2483 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2484 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2485 | .total_size = 256, |
| 2486 | .page_size = 256, |
| 2487 | .tested = TEST_UNTESTED, |
| 2488 | .probe = probe_spi_rdid, |
| 2489 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2490 | .block_erasers = |
| 2491 | { |
| 2492 | { |
| 2493 | .eraseblocks = { |
| 2494 | {64 * 1024, 3}, |
| 2495 | {32 * 1024, 1}, |
| 2496 | {16 * 1024, 1}, |
| 2497 | {8 * 1024, 1}, |
| 2498 | {4 * 1024, 2}, |
| 2499 | }, |
| 2500 | .block_erase = spi_block_erase_d8, |
| 2501 | }, { |
| 2502 | .eraseblocks = { {256 * 1024, 1} }, |
| 2503 | .block_erase = spi_block_erase_c7, |
| 2504 | } |
| 2505 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2506 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2507 | .write = spi_chip_write_256, |
| 2508 | .read = spi_chip_read, |
| 2509 | }, |
| 2510 | |
| 2511 | { |
| 2512 | .vendor = "Eon", |
| 2513 | .name = "EN25B40", |
| 2514 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2515 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2516 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2517 | .total_size = 512, |
| 2518 | .page_size = 256, |
| 2519 | .tested = TEST_UNTESTED, |
| 2520 | .probe = probe_spi_rdid, |
| 2521 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2522 | .block_erasers = |
| 2523 | { |
| 2524 | { |
| 2525 | .eraseblocks = { |
| 2526 | {4 * 1024, 2}, |
| 2527 | {8 * 1024, 1}, |
| 2528 | {16 * 1024, 1}, |
| 2529 | {32 * 1024, 1}, |
| 2530 | {64 * 1024, 7} |
| 2531 | }, |
| 2532 | .block_erase = spi_block_erase_d8, |
| 2533 | }, { |
| 2534 | .eraseblocks = { {512 * 1024, 1} }, |
| 2535 | .block_erase = spi_block_erase_c7, |
| 2536 | } |
| 2537 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2538 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2539 | .write = spi_chip_write_256, |
| 2540 | .read = spi_chip_read, |
| 2541 | }, |
| 2542 | |
| 2543 | { |
| 2544 | .vendor = "Eon", |
| 2545 | .name = "EN25B40T", |
| 2546 | .bustype = CHIP_BUSTYPE_SPI, |
| 2547 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2548 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2549 | .total_size = 512, |
| 2550 | .page_size = 256, |
| 2551 | .tested = TEST_UNTESTED, |
| 2552 | .probe = probe_spi_rdid, |
| 2553 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2554 | .block_erasers = |
| 2555 | { |
| 2556 | { |
| 2557 | .eraseblocks = { |
| 2558 | {64 * 1024, 7}, |
| 2559 | {32 * 1024, 1}, |
| 2560 | {16 * 1024, 1}, |
| 2561 | {8 * 1024, 1}, |
| 2562 | {4 * 1024, 2}, |
| 2563 | }, |
| 2564 | .block_erase = spi_block_erase_d8, |
| 2565 | }, { |
| 2566 | .eraseblocks = { {512 * 1024, 1} }, |
| 2567 | .block_erase = spi_block_erase_c7, |
| 2568 | } |
| 2569 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2570 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2571 | .write = spi_chip_write_256, |
| 2572 | .read = spi_chip_read, |
| 2573 | }, |
| 2574 | |
| 2575 | { |
| 2576 | .vendor = "Eon", |
| 2577 | .name = "EN25B80", |
| 2578 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2579 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2580 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2581 | .total_size = 1024, |
| 2582 | .page_size = 256, |
| 2583 | .tested = TEST_UNTESTED, |
| 2584 | .probe = probe_spi_rdid, |
| 2585 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2586 | .block_erasers = |
| 2587 | { |
| 2588 | { |
| 2589 | .eraseblocks = { |
| 2590 | {4 * 1024, 2}, |
| 2591 | {8 * 1024, 1}, |
| 2592 | {16 * 1024, 1}, |
| 2593 | {32 * 1024, 1}, |
| 2594 | {64 * 1024, 15} |
| 2595 | }, |
| 2596 | .block_erase = spi_block_erase_d8, |
| 2597 | }, { |
| 2598 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2599 | .block_erase = spi_block_erase_c7, |
| 2600 | } |
| 2601 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2602 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2603 | .write = spi_chip_write_256, |
| 2604 | .read = spi_chip_read, |
| 2605 | }, |
| 2606 | |
| 2607 | { |
| 2608 | .vendor = "Eon", |
| 2609 | .name = "EN25B80T", |
| 2610 | .bustype = CHIP_BUSTYPE_SPI, |
| 2611 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2612 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2613 | .total_size = 1024, |
| 2614 | .page_size = 256, |
| 2615 | .tested = TEST_UNTESTED, |
| 2616 | .probe = probe_spi_rdid, |
| 2617 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2618 | .block_erasers = |
| 2619 | { |
| 2620 | { |
| 2621 | .eraseblocks = { |
| 2622 | {64 * 1024, 15}, |
| 2623 | {32 * 1024, 1}, |
| 2624 | {16 * 1024, 1}, |
| 2625 | {8 * 1024, 1}, |
| 2626 | {4 * 1024, 2}, |
| 2627 | }, |
| 2628 | .block_erase = spi_block_erase_d8, |
| 2629 | }, { |
| 2630 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2631 | .block_erase = spi_block_erase_c7, |
| 2632 | } |
| 2633 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2634 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2635 | .write = spi_chip_write_256, |
| 2636 | .read = spi_chip_read, |
| 2637 | }, |
| 2638 | |
| 2639 | { |
| 2640 | .vendor = "Eon", |
| 2641 | .name = "EN25B16", |
| 2642 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2643 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2644 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2645 | .total_size = 2048, |
| 2646 | .page_size = 256, |
| 2647 | .tested = TEST_UNTESTED, |
| 2648 | .probe = probe_spi_rdid, |
| 2649 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2650 | .block_erasers = |
| 2651 | { |
| 2652 | { |
| 2653 | .eraseblocks = { |
| 2654 | {4 * 1024, 2}, |
| 2655 | {8 * 1024, 1}, |
| 2656 | {16 * 1024, 1}, |
| 2657 | {32 * 1024, 1}, |
| 2658 | {64 * 1024, 31}, |
| 2659 | }, |
| 2660 | .block_erase = spi_block_erase_d8, |
| 2661 | }, { |
| 2662 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2663 | .block_erase = spi_block_erase_c7, |
| 2664 | } |
| 2665 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2666 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2667 | .write = spi_chip_write_256, |
| 2668 | .read = spi_chip_read, |
| 2669 | }, |
| 2670 | |
| 2671 | { |
| 2672 | .vendor = "Eon", |
| 2673 | .name = "EN25B16T", |
| 2674 | .bustype = CHIP_BUSTYPE_SPI, |
| 2675 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2676 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2677 | .total_size = 2048, |
| 2678 | .page_size = 256, |
| 2679 | .tested = TEST_UNTESTED, |
| 2680 | .probe = probe_spi_rdid, |
| 2681 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2682 | .block_erasers = |
| 2683 | { |
| 2684 | { |
| 2685 | .eraseblocks = { |
| 2686 | {64 * 1024, 31}, |
| 2687 | {32 * 1024, 1}, |
| 2688 | {16 * 1024, 1}, |
| 2689 | {8 * 1024, 1}, |
| 2690 | {4 * 1024, 2}, |
| 2691 | }, |
| 2692 | .block_erase = spi_block_erase_d8, |
| 2693 | }, { |
| 2694 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2695 | .block_erase = spi_block_erase_c7, |
| 2696 | } |
| 2697 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2698 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2699 | .write = spi_chip_write_256, |
| 2700 | .read = spi_chip_read, |
| 2701 | }, |
| 2702 | |
| 2703 | { |
| 2704 | .vendor = "Eon", |
| 2705 | .name = "EN25B32", |
| 2706 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2707 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2708 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2709 | .total_size = 4096, |
| 2710 | .page_size = 256, |
| 2711 | .tested = TEST_UNTESTED, |
| 2712 | .probe = probe_spi_rdid, |
| 2713 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2714 | .block_erasers = |
| 2715 | { |
| 2716 | { |
| 2717 | .eraseblocks = { |
| 2718 | {4 * 1024, 2}, |
| 2719 | {8 * 1024, 1}, |
| 2720 | {16 * 1024, 1}, |
| 2721 | {32 * 1024, 1}, |
| 2722 | {64 * 1024, 63}, |
| 2723 | }, |
| 2724 | .block_erase = spi_block_erase_d8, |
| 2725 | }, { |
| 2726 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2727 | .block_erase = spi_block_erase_c7, |
| 2728 | } |
| 2729 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2730 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2731 | .write = spi_chip_write_256, |
| 2732 | .read = spi_chip_read, |
| 2733 | }, |
| 2734 | |
| 2735 | { |
| 2736 | .vendor = "Eon", |
| 2737 | .name = "EN25B32T", |
| 2738 | .bustype = CHIP_BUSTYPE_SPI, |
| 2739 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2740 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2741 | .total_size = 4096, |
| 2742 | .page_size = 256, |
| 2743 | .tested = TEST_UNTESTED, |
| 2744 | .probe = probe_spi_rdid, |
| 2745 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2746 | .block_erasers = |
| 2747 | { |
| 2748 | { |
| 2749 | .eraseblocks = { |
| 2750 | {64 * 1024, 63}, |
| 2751 | {32 * 1024, 1}, |
| 2752 | {16 * 1024, 1}, |
| 2753 | {8 * 1024, 1}, |
| 2754 | {4 * 1024, 2}, |
| 2755 | }, |
| 2756 | .block_erase = spi_block_erase_d8, |
| 2757 | }, { |
| 2758 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2759 | .block_erase = spi_block_erase_c7, |
| 2760 | } |
| 2761 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2762 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2763 | .write = spi_chip_write_256, |
| 2764 | .read = spi_chip_read, |
| 2765 | }, |
| 2766 | |
| 2767 | { |
| 2768 | .vendor = "Eon", |
| 2769 | .name = "EN25B64", |
| 2770 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2771 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2772 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2773 | .total_size = 8192, |
| 2774 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 2775 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2776 | .tested = TEST_UNTESTED, |
| 2777 | .probe = probe_spi_rdid, |
| 2778 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2779 | .block_erasers = |
| 2780 | { |
| 2781 | { |
| 2782 | .eraseblocks = { |
| 2783 | {4 * 1024, 2}, |
| 2784 | {8 * 1024, 1}, |
| 2785 | {16 * 1024, 1}, |
| 2786 | {32 * 1024, 1}, |
| 2787 | {64 * 1024, 127}, |
| 2788 | }, |
| 2789 | .block_erase = spi_block_erase_d8, |
| 2790 | }, { |
| 2791 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 2792 | .block_erase = spi_block_erase_c7, |
| 2793 | } |
| 2794 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2795 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2796 | .write = spi_chip_write_256, |
| 2797 | .read = spi_chip_read, |
| 2798 | }, |
| 2799 | |
| 2800 | { |
| 2801 | .vendor = "Eon", |
| 2802 | .name = "EN25B64T", |
| 2803 | .bustype = CHIP_BUSTYPE_SPI, |
| 2804 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2805 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2806 | .total_size = 8192, |
| 2807 | .page_size = 256, |
| 2808 | .tested = TEST_UNTESTED, |
| 2809 | .probe = probe_spi_rdid, |
| 2810 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2811 | .block_erasers = |
| 2812 | { |
| 2813 | { |
| 2814 | .eraseblocks = { |
| 2815 | {64 * 1024, 127}, |
| 2816 | {32 * 1024, 1}, |
| 2817 | {16 * 1024, 1}, |
| 2818 | {8 * 1024, 1}, |
| 2819 | {4 * 1024, 2}, |
| 2820 | }, |
| 2821 | .block_erase = spi_block_erase_d8, |
| 2822 | }, { |
| 2823 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 2824 | .block_erase = spi_block_erase_c7, |
| 2825 | } |
| 2826 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2827 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2828 | .write = spi_chip_write_256, |
| 2829 | .read = spi_chip_read, |
| 2830 | }, |
| 2831 | |
| 2832 | { |
| 2833 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2834 | .name = "EN25D16", |
| 2835 | .bustype = CHIP_BUSTYPE_SPI, |
| 2836 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2837 | .model_id = EON_EN25D16, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2838 | .total_size = 2048, |
| 2839 | .page_size = 256, |
| 2840 | .tested = TEST_UNTESTED, |
| 2841 | .probe = probe_spi_rdid, |
| 2842 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2843 | .block_erasers = |
| 2844 | { |
| 2845 | { |
| 2846 | .eraseblocks = { {4 * 1024, 512} }, |
| 2847 | .block_erase = spi_block_erase_20, |
| 2848 | }, { |
| 2849 | .eraseblocks = { {64 * 1024, 32} }, |
| 2850 | .block_erase = spi_block_erase_d8, |
| 2851 | }, { |
| 2852 | .eraseblocks = { {64 * 1024, 32} }, |
| 2853 | .block_erase = spi_block_erase_52, |
| 2854 | }, { |
| 2855 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2856 | .block_erase = spi_block_erase_60, |
| 2857 | }, { |
| 2858 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2859 | .block_erase = spi_block_erase_c7, |
| 2860 | } |
| 2861 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2862 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2863 | .write = spi_chip_write_256, |
| 2864 | .read = spi_chip_read, |
| 2865 | }, |
| 2866 | |
| 2867 | { |
| 2868 | .vendor = "Eon", |
| 2869 | .name = "EN25F05", |
| 2870 | .bustype = CHIP_BUSTYPE_SPI, |
| 2871 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2872 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2873 | .total_size = 64, |
| 2874 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 2875 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2876 | .tested = TEST_UNTESTED, |
| 2877 | .probe = probe_spi_rdid, |
| 2878 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2879 | .block_erasers = |
| 2880 | { |
| 2881 | { |
| 2882 | .eraseblocks = { {4 * 1024, 16} }, |
| 2883 | .block_erase = spi_block_erase_20, |
| 2884 | }, { |
| 2885 | .eraseblocks = { {32 * 1024, 2} }, |
| 2886 | .block_erase = spi_block_erase_d8, |
| 2887 | }, { |
| 2888 | .eraseblocks = { {32 * 1024, 2} }, |
| 2889 | .block_erase = spi_block_erase_52, |
| 2890 | }, { |
| 2891 | .eraseblocks = { {64 * 1024, 1} }, |
| 2892 | .block_erase = spi_block_erase_60, |
| 2893 | }, { |
| 2894 | .eraseblocks = { {64 * 1024, 1} }, |
| 2895 | .block_erase = spi_block_erase_c7, |
| 2896 | } |
| 2897 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2898 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2899 | .write = spi_chip_write_256, |
| 2900 | .read = spi_chip_read, |
| 2901 | }, |
| 2902 | |
| 2903 | { |
| 2904 | .vendor = "Eon", |
| 2905 | .name = "EN25F10", |
| 2906 | .bustype = CHIP_BUSTYPE_SPI, |
| 2907 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2908 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2909 | .total_size = 128, |
| 2910 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 2911 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2912 | .tested = TEST_UNTESTED, |
| 2913 | .probe = probe_spi_rdid, |
| 2914 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2915 | .block_erasers = |
| 2916 | { |
| 2917 | { |
| 2918 | .eraseblocks = { {4 * 1024, 32} }, |
| 2919 | .block_erase = spi_block_erase_20, |
| 2920 | }, { |
| 2921 | .eraseblocks = { {32 * 1024, 4} }, |
| 2922 | .block_erase = spi_block_erase_d8, |
| 2923 | }, { |
| 2924 | .eraseblocks = { {32 * 1024, 4} }, |
| 2925 | .block_erase = spi_block_erase_52, |
| 2926 | }, { |
| 2927 | .eraseblocks = { {128 * 1024, 1} }, |
| 2928 | .block_erase = spi_block_erase_60, |
| 2929 | }, { |
| 2930 | .eraseblocks = { {128 * 1024, 1} }, |
| 2931 | .block_erase = spi_block_erase_c7, |
| 2932 | } |
| 2933 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2934 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2935 | .write = spi_chip_write_256, |
| 2936 | .read = spi_chip_read, |
| 2937 | }, |
| 2938 | |
| 2939 | { |
| 2940 | .vendor = "Eon", |
| 2941 | .name = "EN25F20", |
| 2942 | .bustype = CHIP_BUSTYPE_SPI, |
| 2943 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2944 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2945 | .total_size = 256, |
| 2946 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 2947 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2948 | .tested = TEST_UNTESTED, |
| 2949 | .probe = probe_spi_rdid, |
| 2950 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2951 | .block_erasers = |
| 2952 | { |
| 2953 | { |
| 2954 | .eraseblocks = { {4 * 1024, 64} }, |
| 2955 | .block_erase = spi_block_erase_20, |
| 2956 | }, { |
| 2957 | .eraseblocks = { {64 * 1024, 4} }, |
| 2958 | .block_erase = spi_block_erase_d8, |
| 2959 | }, { |
| 2960 | .eraseblocks = { {64 * 1024, 4} }, |
| 2961 | .block_erase = spi_block_erase_52, |
| 2962 | }, { |
| 2963 | .eraseblocks = { {256 * 1024, 1} }, |
| 2964 | .block_erase = spi_block_erase_60, |
| 2965 | }, { |
| 2966 | .eraseblocks = { {256 * 1024, 1} }, |
| 2967 | .block_erase = spi_block_erase_c7, |
| 2968 | } |
| 2969 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2970 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2971 | .write = spi_chip_write_256, |
| 2972 | .read = spi_chip_read, |
| 2973 | }, |
| 2974 | |
| 2975 | { |
| 2976 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2977 | .name = "EN25F40", |
| 2978 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2979 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2980 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2981 | .total_size = 512, |
| 2982 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 2983 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 2984 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2985 | .probe = probe_spi_rdid, |
| 2986 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2987 | .block_erasers = |
| 2988 | { |
| 2989 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2990 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2991 | .block_erase = spi_block_erase_20, |
| 2992 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2993 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2994 | .block_erase = spi_block_erase_d8, |
| 2995 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2996 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2997 | .block_erase = spi_block_erase_60, |
| 2998 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2999 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3000 | .block_erase = spi_block_erase_c7, |
| 3001 | }, |
| 3002 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3003 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3004 | .write = spi_chip_write_256, |
| 3005 | .read = spi_chip_read, |
| 3006 | }, |
| 3007 | |
| 3008 | { |
| 3009 | .vendor = "Eon", |
| 3010 | .name = "EN25F80", |
| 3011 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3012 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3013 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3014 | .total_size = 1024, |
| 3015 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3016 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3017 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3018 | .probe = probe_spi_rdid, |
| 3019 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3020 | .block_erasers = |
| 3021 | { |
| 3022 | { |
| 3023 | .eraseblocks = { {4 * 1024, 256} }, |
| 3024 | .block_erase = spi_block_erase_20, |
| 3025 | }, { |
| 3026 | .eraseblocks = { {64 * 1024, 16} }, |
| 3027 | .block_erase = spi_block_erase_d8, |
| 3028 | }, { |
| 3029 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3030 | .block_erase = spi_block_erase_60, |
| 3031 | }, { |
| 3032 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3033 | .block_erase = spi_block_erase_c7, |
| 3034 | } |
| 3035 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3036 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3037 | .write = spi_chip_write_256, |
| 3038 | .read = spi_chip_read, |
| 3039 | }, |
| 3040 | |
| 3041 | { |
| 3042 | .vendor = "Eon", |
| 3043 | .name = "EN25F16", |
| 3044 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3045 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3046 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3047 | .total_size = 2048, |
| 3048 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3049 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3050 | .tested = TEST_UNTESTED, |
| 3051 | .probe = probe_spi_rdid, |
| 3052 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3053 | .block_erasers = |
| 3054 | { |
| 3055 | { |
| 3056 | .eraseblocks = { {4 * 1024, 512} }, |
| 3057 | .block_erase = spi_block_erase_20, |
| 3058 | }, { |
| 3059 | .eraseblocks = { {64 * 1024, 32} }, |
| 3060 | .block_erase = spi_block_erase_d8, |
| 3061 | }, { |
| 3062 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3063 | .block_erase = spi_block_erase_60, |
| 3064 | }, { |
| 3065 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3066 | .block_erase = spi_block_erase_c7, |
| 3067 | } |
| 3068 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3069 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3070 | .write = spi_chip_write_256, |
| 3071 | .read = spi_chip_read, |
| 3072 | }, |
| 3073 | |
| 3074 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3075 | .vendor = "Eon", |
| 3076 | .name = "EN25F32", |
| 3077 | .bustype = CHIP_BUSTYPE_SPI, |
| 3078 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3079 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3080 | .total_size = 4096, |
| 3081 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3082 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3083 | .tested = TEST_UNTESTED, |
| 3084 | .probe = probe_spi_rdid, |
| 3085 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3086 | .block_erasers = |
| 3087 | { |
| 3088 | { |
| 3089 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3090 | .block_erase = spi_block_erase_20, |
| 3091 | }, { |
| 3092 | .eraseblocks = { {64 * 1024, 64} }, |
| 3093 | .block_erase = spi_block_erase_d8, |
| 3094 | }, { |
| 3095 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3096 | .block_erase = spi_block_erase_60, |
| 3097 | }, { |
| 3098 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3099 | .block_erase = spi_block_erase_c7, |
| 3100 | } |
| 3101 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3102 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3103 | .write = spi_chip_write_256, |
| 3104 | .read = spi_chip_read, |
| 3105 | }, |
| 3106 | |
| 3107 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3108 | .vendor = "Eon", |
| 3109 | .name = "EN29F010", |
| 3110 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3111 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3112 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3113 | .total_size = 128, |
| 3114 | .page_size = 128, |
| 3115 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3116 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3117 | .probe = probe_jedec, |
| 3118 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3119 | .block_erasers = |
| 3120 | { |
| 3121 | { |
| 3122 | .eraseblocks = { {16 * 1024, 8} }, |
| 3123 | .block_erase = erase_sector_jedec, |
| 3124 | }, |
| 3125 | { |
| 3126 | .eraseblocks = { {128 * 1024, 1} }, |
| 3127 | .block_erase = erase_chip_block_jedec, |
| 3128 | }, |
| 3129 | }, |
| 3130 | .write = write_jedec_1, |
| 3131 | .read = read_memmapped, |
| 3132 | }, |
| 3133 | |
| 3134 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 3135 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3136 | .name = "EN29F002(A)(N)B", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 3137 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3138 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3139 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3140 | .total_size = 256, |
| 3141 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3142 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3143 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3144 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3145 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3146 | .block_erasers = |
| 3147 | { |
| 3148 | { |
| 3149 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3150 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 3151 | {8 * 1024, 2}, |
| 3152 | {32 * 1024, 1}, |
| 3153 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3154 | }, |
| 3155 | .block_erase = erase_sector_jedec, |
| 3156 | }, { |
| 3157 | .eraseblocks = { {256 * 1024, 1} }, |
| 3158 | .block_erase = erase_chip_block_jedec, |
| 3159 | }, |
| 3160 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3161 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3162 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3163 | }, |
| 3164 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3165 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 3166 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3167 | .name = "EN29F002(A)(N)T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 3168 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3169 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3170 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3171 | .total_size = 256, |
| 3172 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3173 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3174 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3175 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3176 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3177 | .block_erasers = |
| 3178 | { |
| 3179 | { |
| 3180 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3181 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 3182 | {32 * 1024, 1}, |
| 3183 | {8 * 1024, 2}, |
| 3184 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3185 | }, |
| 3186 | .block_erase = erase_sector_jedec, |
| 3187 | }, { |
| 3188 | .eraseblocks = { {256 * 1024, 1} }, |
| 3189 | .block_erase = erase_chip_block_jedec, |
| 3190 | }, |
| 3191 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3192 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3193 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3194 | }, |
| 3195 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3196 | { |
| 3197 | .vendor = "Fujitsu", |
| 3198 | .name = "MBM29F004BC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3199 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3200 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3201 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3202 | .total_size = 512, |
| 3203 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3204 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3205 | .tested = TEST_UNTESTED, |
| 3206 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3207 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3208 | .block_erasers = |
| 3209 | { |
| 3210 | { |
| 3211 | .eraseblocks = { |
| 3212 | {16 * 1024, 1}, |
| 3213 | {8 * 1024, 2}, |
| 3214 | {32 * 1024, 1}, |
| 3215 | {64 * 1024, 7}, |
| 3216 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3217 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3218 | }, { |
| 3219 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3220 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3221 | }, |
| 3222 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3223 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3224 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3225 | }, |
| 3226 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3227 | { |
| 3228 | .vendor = "Fujitsu", |
| 3229 | .name = "MBM29F004TC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3230 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3231 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3232 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3233 | .total_size = 512, |
| 3234 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3235 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3236 | .tested = TEST_UNTESTED, |
| 3237 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3238 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3239 | .block_erasers = |
| 3240 | { |
| 3241 | { |
| 3242 | .eraseblocks = { |
| 3243 | {64 * 1024, 7}, |
| 3244 | {32 * 1024, 1}, |
| 3245 | {8 * 1024, 2}, |
| 3246 | {16 * 1024, 1}, |
| 3247 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3248 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3249 | }, { |
| 3250 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3251 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3252 | }, |
| 3253 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3254 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3255 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3256 | }, |
| 3257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3258 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3259 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3260 | .vendor = "Fujitsu", |
| 3261 | .name = "MBM29F400BC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3262 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3263 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3264 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3265 | .total_size = 512, |
| 3266 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3267 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 3268 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3269 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3270 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3271 | .block_erasers = |
| 3272 | { |
| 3273 | { |
| 3274 | .eraseblocks = { |
| 3275 | {16 * 1024, 1}, |
| 3276 | {8 * 1024, 2}, |
| 3277 | {32 * 1024, 1}, |
| 3278 | {64 * 1024, 7}, |
| 3279 | }, |
| 3280 | .block_erase = block_erase_m29f400bt, |
| 3281 | }, { |
| 3282 | .eraseblocks = { {512 * 1024, 1} }, |
| 3283 | .block_erase = block_erase_chip_m29f400bt, |
| 3284 | }, |
| 3285 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 3286 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3287 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3288 | }, |
| 3289 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3290 | { |
| 3291 | .vendor = "Fujitsu", |
| 3292 | .name = "MBM29F400TC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3293 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3294 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3295 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3296 | .total_size = 512, |
| 3297 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3298 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3299 | .tested = TEST_UNTESTED, |
| 3300 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3301 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3302 | .block_erasers = |
| 3303 | { |
| 3304 | { |
| 3305 | .eraseblocks = { |
| 3306 | {64 * 1024, 7}, |
| 3307 | {32 * 1024, 1}, |
| 3308 | {8 * 1024, 2}, |
| 3309 | {16 * 1024, 1}, |
| 3310 | }, |
| 3311 | .block_erase = block_erase_m29f400bt, |
| 3312 | }, { |
| 3313 | .eraseblocks = { {512 * 1024, 1} }, |
| 3314 | .block_erase = block_erase_chip_m29f400bt, |
| 3315 | }, |
| 3316 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 3317 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3318 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3319 | }, |
| 3320 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3321 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 3322 | .vendor = "Hyundai", |
| 3323 | .name = "HY29F002T", |
| 3324 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3325 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3326 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 3327 | .total_size = 256, |
| 3328 | .page_size = 256 * 1024, |
| 3329 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3330 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 3331 | .probe = probe_jedec, |
| 3332 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3333 | .block_erasers = |
| 3334 | { |
| 3335 | { |
| 3336 | .eraseblocks = { |
| 3337 | {64 * 1024, 3}, |
| 3338 | {32 * 1024, 1}, |
| 3339 | {8 * 1024, 2}, |
| 3340 | {16 * 1024, 1}, |
| 3341 | }, |
| 3342 | .block_erase = erase_sector_jedec, |
| 3343 | }, { |
| 3344 | .eraseblocks = { {256 * 1024, 1} }, |
| 3345 | .block_erase = erase_chip_block_jedec, |
| 3346 | }, |
| 3347 | }, |
| 3348 | .write = write_jedec_1, |
| 3349 | .read = read_memmapped, |
| 3350 | }, |
| 3351 | |
| 3352 | { |
| 3353 | .vendor = "Hyundai", |
| 3354 | .name = "HY29F002B", |
| 3355 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3356 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3357 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 3358 | .total_size = 256, |
| 3359 | .page_size = 256 * 1024, |
| 3360 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 3361 | .tested = TEST_UNTESTED, |
| 3362 | .probe = probe_jedec, |
| 3363 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3364 | .block_erasers = |
| 3365 | { |
| 3366 | { |
| 3367 | .eraseblocks = { |
| 3368 | {16 * 1024, 1}, |
| 3369 | {8 * 1024, 2}, |
| 3370 | {32 * 1024, 1}, |
| 3371 | {64 * 1024, 3}, |
| 3372 | }, |
| 3373 | .block_erase = erase_sector_jedec, |
| 3374 | }, { |
| 3375 | .eraseblocks = { {256 * 1024, 1} }, |
| 3376 | .block_erase = erase_chip_block_jedec, |
| 3377 | }, |
| 3378 | }, |
| 3379 | .write = write_jedec_1, |
| 3380 | .read = read_memmapped, |
| 3381 | }, |
| 3382 | |
| 3383 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3384 | .vendor = "Hyundai", |
| 3385 | .name = "HY29F040A", |
| 3386 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3387 | .manufacture_id = HYUNDAI_ID, |
| 3388 | .model_id = HYUNDAI_HY29F040A, |
| 3389 | .total_size = 512, |
| 3390 | .page_size = 64 * 1024, |
| 3391 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 3392 | .tested = TEST_UNTESTED, |
| 3393 | .probe = probe_jedec, |
| 3394 | .probe_timing = TIMING_ZERO, |
| 3395 | .block_erasers = |
| 3396 | { |
| 3397 | { |
| 3398 | .eraseblocks = { {64 * 1024, 8} }, |
| 3399 | .block_erase = erase_sector_jedec, |
| 3400 | }, { |
| 3401 | .eraseblocks = { {512 * 1024, 1} }, |
| 3402 | .block_erase = erase_chip_block_jedec, |
| 3403 | }, |
| 3404 | }, |
| 3405 | .write = write_jedec_1, |
| 3406 | .read = read_memmapped, |
| 3407 | }, |
| 3408 | |
| 3409 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3410 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3411 | .name = "28F001BN/BX-B", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 3412 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3413 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3414 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3415 | .total_size = 128, |
| 3416 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3417 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3418 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3419 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3420 | .block_erasers = |
| 3421 | { |
| 3422 | { |
| 3423 | .eraseblocks = { |
| 3424 | {8 * 1024, 1}, |
| 3425 | {4 * 1024, 2}, |
| 3426 | {112 * 1024, 1}, |
| 3427 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3428 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3429 | }, |
| 3430 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3431 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3432 | .read = read_memmapped, |
| 3433 | }, |
| 3434 | |
| 3435 | { |
| 3436 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3437 | .name = "28F001BN/BX-T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 3438 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3439 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3440 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3441 | .total_size = 128, |
| 3442 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3443 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3444 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3445 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3446 | .block_erasers = |
| 3447 | { |
| 3448 | { |
| 3449 | .eraseblocks = { |
| 3450 | {112 * 1024, 1}, |
| 3451 | {4 * 1024, 2}, |
| 3452 | {8 * 1024, 1}, |
| 3453 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3454 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3455 | }, |
| 3456 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3457 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3458 | .read = read_memmapped, |
| 3459 | }, |
| 3460 | |
| 3461 | { |
| 3462 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3463 | .name = "28F002BC/BL/BV/BX-T", |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 3464 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3465 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3466 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 3467 | .total_size = 256, |
| 3468 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3469 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 3470 | .probe = probe_82802ab, |
| 3471 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3472 | .block_erasers = |
| 3473 | { |
| 3474 | { |
| 3475 | .eraseblocks = { |
| 3476 | {128 * 1024, 1}, |
| 3477 | {96 * 1024, 1}, |
| 3478 | {8 * 1024, 2}, |
| 3479 | {16 * 1024, 1}, |
| 3480 | }, |
| 3481 | .block_erase = erase_block_82802ab, |
| 3482 | }, |
| 3483 | }, |
| 3484 | .write = write_82802ab, |
| 3485 | .read = read_memmapped, |
| 3486 | }, |
| 3487 | |
| 3488 | { |
| 3489 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3490 | .name = "28F008S3/S5/SC", |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3491 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3492 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3493 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3494 | .total_size = 512, |
| 3495 | .page_size = 256, |
| 3496 | .tested = TEST_UNTESTED, |
| 3497 | .probe = probe_82802ab, |
| 3498 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3499 | .block_erasers = |
| 3500 | { |
| 3501 | { |
| 3502 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3503 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3504 | }, |
| 3505 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3506 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3507 | .write = write_82802ab, |
| 3508 | .read = read_memmapped, |
| 3509 | }, |
| 3510 | |
| 3511 | { |
| 3512 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3513 | .name = "28F004B5/BE/BV/BX-B", |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3514 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3515 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3516 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3517 | .total_size = 512, |
| 3518 | .page_size = 128 * 1024, /* maximal block size */ |
| 3519 | .tested = TEST_UNTESTED, |
| 3520 | .probe = probe_82802ab, |
| 3521 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3522 | .block_erasers = |
| 3523 | { |
| 3524 | { |
| 3525 | .eraseblocks = { |
| 3526 | {16 * 1024, 1}, |
| 3527 | {8 * 1024, 2}, |
| 3528 | {96 * 1024, 1}, |
| 3529 | {128 * 1024, 3}, |
| 3530 | }, |
| 3531 | .block_erase = erase_block_82802ab, |
| 3532 | }, |
| 3533 | }, |
| 3534 | .write = write_82802ab, |
| 3535 | .read = read_memmapped, |
| 3536 | }, |
| 3537 | |
| 3538 | { |
| 3539 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3540 | .name = "28F004B5/BE/BV/BX-T", |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3541 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3542 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3543 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3544 | .total_size = 512, |
| 3545 | .page_size = 128 * 1024, /* maximal block size */ |
| 3546 | .tested = TEST_UNTESTED, |
| 3547 | .probe = probe_82802ab, |
| 3548 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3549 | .block_erasers = |
| 3550 | { |
| 3551 | { |
| 3552 | .eraseblocks = { |
| 3553 | {128 * 1024, 3}, |
| 3554 | {96 * 1024, 1}, |
| 3555 | {8 * 1024, 2}, |
| 3556 | {16 * 1024, 1}, |
| 3557 | }, |
| 3558 | .block_erase = erase_block_82802ab, |
| 3559 | }, |
| 3560 | }, |
| 3561 | .write = write_82802ab, |
| 3562 | .read = read_memmapped, |
| 3563 | }, |
| 3564 | |
| 3565 | { |
| 3566 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3567 | .name = "28F400BV/BX/CE/CV-B", |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3568 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3569 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3570 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3571 | .total_size = 512, |
| 3572 | .page_size = 128 * 1024, /* maximal block size */ |
| 3573 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 3574 | .tested = TEST_UNTESTED, |
| 3575 | .probe = probe_82802ab, |
| 3576 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3577 | .block_erasers = |
| 3578 | { |
| 3579 | { |
| 3580 | .eraseblocks = { |
| 3581 | {16 * 1024, 1}, |
| 3582 | {8 * 1024, 2}, |
| 3583 | {96 * 1024, 1}, |
| 3584 | {128 * 1024, 3}, |
| 3585 | }, |
| 3586 | .block_erase = erase_block_82802ab, |
| 3587 | }, |
| 3588 | }, |
| 3589 | .write = write_82802ab, |
| 3590 | .read = read_memmapped, |
| 3591 | }, |
| 3592 | |
| 3593 | { |
| 3594 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3595 | .name = "28F400BV/BX/CE/CV-T", |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3596 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3597 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3598 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3599 | .total_size = 512, |
| 3600 | .page_size = 128 * 1024, /* maximal block size */ |
| 3601 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 3602 | .tested = TEST_UNTESTED, |
| 3603 | .probe = probe_82802ab, |
| 3604 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3605 | .block_erasers = |
| 3606 | { |
| 3607 | { |
| 3608 | .eraseblocks = { |
| 3609 | {128 * 1024, 3}, |
| 3610 | {96 * 1024, 1}, |
| 3611 | {8 * 1024, 2}, |
| 3612 | {16 * 1024, 1}, |
| 3613 | }, |
| 3614 | .block_erase = erase_block_82802ab, |
| 3615 | }, |
| 3616 | }, |
| 3617 | .write = write_82802ab, |
| 3618 | .read = read_memmapped, |
| 3619 | }, |
| 3620 | |
| 3621 | { |
| 3622 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3623 | .name = "82802AB", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3624 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3625 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3626 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3627 | .total_size = 512, |
| 3628 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 3629 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3630 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3631 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3632 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3633 | .block_erasers = |
| 3634 | { |
| 3635 | { |
| 3636 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3637 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3638 | }, |
| 3639 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3640 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3641 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3642 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3643 | }, |
| 3644 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3645 | { |
| 3646 | .vendor = "Intel", |
| 3647 | .name = "82802AC", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3648 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3649 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 3650 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3651 | .total_size = 1024, |
| 3652 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 3653 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3654 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3655 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3656 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3657 | .block_erasers = |
| 3658 | { |
| 3659 | { |
| 3660 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3661 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3662 | }, |
| 3663 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3664 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3665 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3666 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3667 | }, |
| 3668 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3669 | { |
| 3670 | .vendor = "Macronix", |
| 3671 | .name = "MX25L512", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3672 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3673 | .manufacture_id = MACRONIX_ID, |
| 3674 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3675 | .total_size = 64, |
| 3676 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3677 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3678 | .tested = TEST_UNTESTED, |
| 3679 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3680 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3681 | .block_erasers = |
| 3682 | { |
| 3683 | { |
| 3684 | .eraseblocks = { {4 * 1024, 16} }, |
| 3685 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3686 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3687 | .eraseblocks = { {64 * 1024, 1} }, |
| 3688 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3689 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3690 | .eraseblocks = { {64 * 1024, 1} }, |
| 3691 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3692 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3693 | .eraseblocks = { {64 * 1024, 1} }, |
| 3694 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3695 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3696 | .eraseblocks = { {64 * 1024, 1} }, |
| 3697 | .block_erase = spi_block_erase_c7, |
| 3698 | }, |
| 3699 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3700 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3701 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3702 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3703 | }, |
| 3704 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3705 | { |
| 3706 | .vendor = "Macronix", |
| 3707 | .name = "MX25L1005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3708 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3709 | .manufacture_id = MACRONIX_ID, |
| 3710 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3711 | .total_size = 128, |
| 3712 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3713 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3714 | .tested = TEST_UNTESTED, |
| 3715 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3716 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3717 | .block_erasers = |
| 3718 | { |
| 3719 | { |
| 3720 | .eraseblocks = { {4 * 1024, 32} }, |
| 3721 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3722 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3723 | .eraseblocks = { {64 * 1024, 2} }, |
| 3724 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3725 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3726 | .eraseblocks = { {128 * 1024, 1} }, |
| 3727 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3728 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3729 | .eraseblocks = { {128 * 1024, 1} }, |
| 3730 | .block_erase = spi_block_erase_c7, |
| 3731 | }, |
| 3732 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3733 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3734 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3735 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3736 | }, |
| 3737 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3738 | { |
| 3739 | .vendor = "Macronix", |
| 3740 | .name = "MX25L2005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3741 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3742 | .manufacture_id = MACRONIX_ID, |
| 3743 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3744 | .total_size = 256, |
| 3745 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3746 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3747 | .tested = TEST_UNTESTED, |
| 3748 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3749 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3750 | .block_erasers = |
| 3751 | { |
| 3752 | { |
| 3753 | .eraseblocks = { {4 * 1024, 64} }, |
| 3754 | .block_erase = spi_block_erase_20, |
| 3755 | }, { |
| 3756 | .eraseblocks = { {64 * 1024, 4} }, |
| 3757 | .block_erase = spi_block_erase_52, |
| 3758 | }, { |
| 3759 | .eraseblocks = { {64 * 1024, 4} }, |
| 3760 | .block_erase = spi_block_erase_d8, |
| 3761 | }, { |
| 3762 | .eraseblocks = { {256 * 1024, 1} }, |
| 3763 | .block_erase = spi_block_erase_60, |
| 3764 | }, { |
| 3765 | .eraseblocks = { {256 * 1024, 1} }, |
| 3766 | .block_erase = spi_block_erase_c7, |
| 3767 | }, |
| 3768 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3769 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3770 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3771 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3772 | }, |
| 3773 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3774 | { |
| 3775 | .vendor = "Macronix", |
| 3776 | .name = "MX25L4005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3777 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3778 | .manufacture_id = MACRONIX_ID, |
| 3779 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3780 | .total_size = 512, |
| 3781 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3782 | .feature_bits = FEATURE_WRSR_WREN, |
Raúl Soriano | e7da467 | 2011-05-18 01:31:10 +0000 | [diff] [blame] | 3783 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3784 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3785 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3786 | .block_erasers = |
| 3787 | { |
| 3788 | { |
| 3789 | .eraseblocks = { {4 * 1024, 128} }, |
| 3790 | .block_erase = spi_block_erase_20, |
| 3791 | }, { |
| 3792 | .eraseblocks = { {64 * 1024, 8} }, |
| 3793 | .block_erase = spi_block_erase_52, |
| 3794 | }, { |
| 3795 | .eraseblocks = { {64 * 1024, 8} }, |
| 3796 | .block_erase = spi_block_erase_d8, |
| 3797 | }, { |
| 3798 | .eraseblocks = { {512 * 1024, 1} }, |
| 3799 | .block_erase = spi_block_erase_60, |
| 3800 | }, { |
| 3801 | .eraseblocks = { {512 * 1024, 1} }, |
| 3802 | .block_erase = spi_block_erase_c7, |
| 3803 | }, |
| 3804 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3805 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3806 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3807 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3808 | }, |
| 3809 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3810 | { |
| 3811 | .vendor = "Macronix", |
| 3812 | .name = "MX25L8005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3813 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3814 | .manufacture_id = MACRONIX_ID, |
| 3815 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3816 | .total_size = 1024, |
| 3817 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3818 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 3819 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3820 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3821 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3822 | .block_erasers = |
| 3823 | { |
| 3824 | { |
| 3825 | .eraseblocks = { {4 * 1024, 256} }, |
| 3826 | .block_erase = spi_block_erase_20, |
| 3827 | }, { |
| 3828 | .eraseblocks = { {64 * 1024, 16} }, |
| 3829 | .block_erase = spi_block_erase_52, |
| 3830 | }, { |
| 3831 | .eraseblocks = { {64 * 1024, 16} }, |
| 3832 | .block_erase = spi_block_erase_d8, |
| 3833 | }, { |
| 3834 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3835 | .block_erase = spi_block_erase_60, |
| 3836 | }, { |
| 3837 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3838 | .block_erase = spi_block_erase_c7, |
| 3839 | }, |
| 3840 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3841 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3842 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3843 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3844 | }, |
| 3845 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3846 | { |
| 3847 | .vendor = "Macronix", |
| 3848 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3849 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3850 | .manufacture_id = MACRONIX_ID, |
| 3851 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3852 | .total_size = 2048, |
| 3853 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3854 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 3855 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3856 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3857 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3858 | .block_erasers = |
| 3859 | { |
| 3860 | { |
| 3861 | .eraseblocks = { {4 * 1024, 512} }, |
| 3862 | .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */ |
| 3863 | }, { |
| 3864 | .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */ |
| 3865 | .block_erase = spi_block_erase_52, |
| 3866 | }, { |
| 3867 | .eraseblocks = { {64 * 1024, 32} }, |
| 3868 | .block_erase = spi_block_erase_d8, |
| 3869 | }, { |
| 3870 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3871 | .block_erase = spi_block_erase_60, |
| 3872 | }, { |
| 3873 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3874 | .block_erase = spi_block_erase_c7, |
| 3875 | }, |
| 3876 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3877 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3878 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3879 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3880 | }, |
| 3881 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3882 | { |
| 3883 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3884 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3885 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3886 | .manufacture_id = MACRONIX_ID, |
| 3887 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3888 | .total_size = 2048, |
| 3889 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3890 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3891 | .tested = TEST_UNTESTED, |
| 3892 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3893 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3894 | .block_erasers = |
| 3895 | { |
| 3896 | { |
| 3897 | .eraseblocks = { {4 * 1024, 512} }, |
| 3898 | .block_erase = spi_block_erase_20, |
| 3899 | }, { |
| 3900 | .eraseblocks = { {64 * 1024, 32} }, |
| 3901 | .block_erase = spi_block_erase_d8, |
| 3902 | }, { |
| 3903 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3904 | .block_erase = spi_block_erase_60, |
| 3905 | }, { |
| 3906 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3907 | .block_erase = spi_block_erase_c7, |
| 3908 | } |
| 3909 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3910 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3911 | .write = spi_chip_write_256, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3912 | .read = spi_chip_read, |
| 3913 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 3914 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3915 | { |
| 3916 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 3917 | .name = "MX25L1635E", |
| 3918 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3919 | .manufacture_id = MACRONIX_ID, |
| 3920 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 3921 | .total_size = 2048, |
| 3922 | .page_size = 256, |
| 3923 | .feature_bits = FEATURE_WRSR_WREN, |
| 3924 | .tested = TEST_UNTESTED, |
| 3925 | .probe = probe_spi_rdid, |
| 3926 | .probe_timing = TIMING_ZERO, |
| 3927 | .block_erasers = |
| 3928 | { |
| 3929 | { |
| 3930 | .eraseblocks = { {4 * 1024, 512} }, |
| 3931 | .block_erase = spi_block_erase_20, |
| 3932 | }, { |
| 3933 | .eraseblocks = { {64 * 1024, 32} }, |
| 3934 | .block_erase = spi_block_erase_d8, |
| 3935 | }, { |
| 3936 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3937 | .block_erase = spi_block_erase_60, |
| 3938 | }, { |
| 3939 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3940 | .block_erase = spi_block_erase_c7, |
| 3941 | } |
| 3942 | }, |
| 3943 | .unlock = spi_disable_blockprotect, |
| 3944 | .write = spi_chip_write_256, |
| 3945 | .read = spi_chip_read, |
| 3946 | }, |
| 3947 | |
| 3948 | { |
| 3949 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3950 | .name = "MX25L3205", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3951 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3952 | .manufacture_id = MACRONIX_ID, |
| 3953 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3954 | .total_size = 4096, |
| 3955 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3956 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 3957 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3958 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3959 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3960 | .block_erasers = |
| 3961 | { |
| 3962 | { |
| 3963 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3964 | .block_erase = spi_block_erase_20, |
| 3965 | }, { |
| 3966 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3967 | .block_erase = spi_block_erase_d8, |
| 3968 | }, { |
| 3969 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3970 | .block_erase = spi_block_erase_60, |
| 3971 | }, { |
| 3972 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3973 | .block_erase = spi_block_erase_c7, |
| 3974 | }, |
| 3975 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3976 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3977 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3978 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3979 | }, |
| 3980 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3981 | { |
| 3982 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3983 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3984 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3985 | .manufacture_id = MACRONIX_ID, |
| 3986 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3987 | .total_size = 4096, |
| 3988 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 3989 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3990 | .tested = TEST_UNTESTED, |
| 3991 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3992 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3993 | .block_erasers = |
| 3994 | { |
| 3995 | { |
| 3996 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3997 | .block_erase = spi_block_erase_20, |
| 3998 | }, { |
| 3999 | .eraseblocks = { {64 * 1024, 64} }, |
| 4000 | .block_erase = spi_block_erase_d8, |
| 4001 | }, { |
| 4002 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4003 | .block_erase = spi_block_erase_60, |
| 4004 | }, { |
| 4005 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4006 | .block_erase = spi_block_erase_c7, |
| 4007 | } |
| 4008 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4009 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4010 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 4011 | .read = spi_chip_read, |
| 4012 | }, |
| 4013 | |
| 4014 | { |
| 4015 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4016 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4017 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4018 | .manufacture_id = MACRONIX_ID, |
| 4019 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4020 | .total_size = 8192, |
| 4021 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4022 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 452b3e3 | 2009-06-22 11:14:43 +0000 | [diff] [blame] | 4023 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4024 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4025 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4026 | .block_erasers = |
| 4027 | { |
| 4028 | { |
| 4029 | .eraseblocks = { {64 * 1024, 128} }, |
| 4030 | .block_erase = spi_block_erase_20, |
| 4031 | }, { |
| 4032 | .eraseblocks = { {64 * 1024, 128} }, |
| 4033 | .block_erase = spi_block_erase_d8, |
| 4034 | }, { |
| 4035 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4036 | .block_erase = spi_block_erase_60, |
| 4037 | }, { |
| 4038 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4039 | .block_erase = spi_block_erase_c7, |
| 4040 | } |
| 4041 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4042 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4043 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4044 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4045 | }, |
| 4046 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4047 | { |
| 4048 | .vendor = "Macronix", |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 4049 | .name = "MX25L12805", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4050 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4051 | .manufacture_id = MACRONIX_ID, |
| 4052 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 4053 | .total_size = 16384, |
| 4054 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4055 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 4056 | .tested = TEST_UNTESTED, |
| 4057 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4058 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4059 | .block_erasers = |
| 4060 | { |
| 4061 | { |
| 4062 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4063 | .block_erase = spi_block_erase_20, |
| 4064 | }, { |
| 4065 | .eraseblocks = { {64 * 1024, 256} }, |
| 4066 | .block_erase = spi_block_erase_d8, |
| 4067 | }, { |
| 4068 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4069 | .block_erase = spi_block_erase_60, |
| 4070 | }, { |
| 4071 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4072 | .block_erase = spi_block_erase_c7, |
| 4073 | } |
| 4074 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4075 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4076 | .write = spi_chip_write_256, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 4077 | .read = spi_chip_read, |
| 4078 | }, |
| 4079 | |
| 4080 | { |
| 4081 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 4082 | .name = "MX29F001B", |
| 4083 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4084 | .manufacture_id = MACRONIX_ID, |
| 4085 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 4086 | .total_size = 128, |
| 4087 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4088 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 4089 | .tested = TEST_UNTESTED, |
| 4090 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 4091 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4092 | .block_erasers = |
| 4093 | { |
| 4094 | { |
| 4095 | .eraseblocks = { |
| 4096 | {8 * 1024, 1}, |
| 4097 | {4 * 1024, 2}, |
| 4098 | {8 * 1024, 2}, |
| 4099 | {32 * 1024, 1}, |
| 4100 | {64 * 1024, 1}, |
| 4101 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4102 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4103 | }, { |
| 4104 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4105 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4106 | } |
| 4107 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4108 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 4109 | .read = read_memmapped, |
| 4110 | }, |
| 4111 | |
| 4112 | { |
| 4113 | .vendor = "Macronix", |
| 4114 | .name = "MX29F001T", |
| 4115 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4116 | .manufacture_id = MACRONIX_ID, |
| 4117 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 4118 | .total_size = 128, |
| 4119 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4120 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 4121 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4122 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 4123 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4124 | .block_erasers = |
| 4125 | { |
| 4126 | { |
| 4127 | .eraseblocks = { |
| 4128 | {64 * 1024, 1}, |
| 4129 | {32 * 1024, 1}, |
| 4130 | {8 * 1024, 2}, |
| 4131 | {4 * 1024, 2}, |
| 4132 | {8 * 1024, 1}, |
| 4133 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4134 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4135 | }, { |
| 4136 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4137 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4138 | } |
| 4139 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4140 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 4141 | .read = read_memmapped, |
| 4142 | }, |
| 4143 | |
| 4144 | { |
| 4145 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4146 | .name = "MX29F002B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4147 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4148 | .manufacture_id = MACRONIX_ID, |
| 4149 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4150 | .total_size = 256, |
| 4151 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4152 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4153 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4154 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 4155 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4156 | .block_erasers = |
| 4157 | { |
| 4158 | { |
| 4159 | .eraseblocks = { |
| 4160 | {16 * 1024, 1}, |
| 4161 | {8 * 1024, 2}, |
| 4162 | {32 * 1024, 1}, |
| 4163 | {64 * 1024, 3}, |
| 4164 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4165 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4166 | }, { |
| 4167 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4168 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4169 | }, |
| 4170 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4171 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4172 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4173 | }, |
| 4174 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4175 | { |
| 4176 | .vendor = "Macronix", |
| 4177 | .name = "MX29F002T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4178 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4179 | .manufacture_id = MACRONIX_ID, |
| 4180 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4181 | .total_size = 256, |
| 4182 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4183 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4184 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4185 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 4186 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4187 | .block_erasers = |
| 4188 | { |
| 4189 | { |
| 4190 | .eraseblocks = { |
| 4191 | {64 * 1024, 3}, |
| 4192 | {32 * 1024, 1}, |
| 4193 | {8 * 1024, 2}, |
| 4194 | {16 * 1024, 1}, |
| 4195 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4196 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4197 | }, { |
| 4198 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4199 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4200 | }, |
| 4201 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4202 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4203 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4204 | }, |
| 4205 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4206 | { |
| 4207 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 4208 | .name = "MX29F040", |
| 4209 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4210 | .manufacture_id = MACRONIX_ID, |
| 4211 | .model_id = MACRONIX_MX29F040, |
| 4212 | .total_size = 512, |
| 4213 | .page_size = 64 * 1024, |
| 4214 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 4215 | .tested = TEST_UNTESTED, |
| 4216 | .probe = probe_jedec, |
| 4217 | .probe_timing = TIMING_ZERO, |
| 4218 | .block_erasers = |
| 4219 | { |
| 4220 | { |
| 4221 | .eraseblocks = { {64 * 1024, 8} }, |
| 4222 | .block_erase = erase_sector_jedec, |
| 4223 | }, { |
| 4224 | .eraseblocks = { {512 * 1024, 1} }, |
| 4225 | .block_erase = erase_chip_block_jedec, |
| 4226 | }, |
| 4227 | }, |
| 4228 | .write = write_jedec_1, |
| 4229 | .read = read_memmapped, |
| 4230 | }, |
| 4231 | |
| 4232 | { |
| 4233 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 4234 | .name = "MX29LV040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4235 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4236 | .manufacture_id = MACRONIX_ID, |
| 4237 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4238 | .total_size = 512, |
| 4239 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 4241 | .tested = TEST_UNTESTED, |
| 4242 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 4243 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4244 | .block_erasers = |
| 4245 | { |
| 4246 | { |
| 4247 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4248 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4249 | }, { |
| 4250 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4251 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4252 | }, |
| 4253 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4254 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4255 | .read = read_memmapped, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 4256 | }, |
| 4257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4258 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 4259 | .vendor = "MoselVitelic", |
| 4260 | .name = "V29C51000B", |
| 4261 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4262 | .manufacture_id = SYNCMOS_MVC_ID, |
| 4263 | .model_id = MVC_V29C51000B, |
| 4264 | .total_size = 64, |
| 4265 | .page_size = 512, |
| 4266 | .feature_bits = FEATURE_EITHER_RESET, |
| 4267 | .tested = TEST_UNTESTED, |
| 4268 | .probe = probe_jedec, |
| 4269 | .probe_timing = TIMING_ZERO, |
| 4270 | .block_erasers = |
| 4271 | { |
| 4272 | { |
| 4273 | .eraseblocks = { {512, 128} }, |
| 4274 | .block_erase = erase_sector_jedec, |
| 4275 | }, { |
| 4276 | .eraseblocks = { {64 * 1024, 1} }, |
| 4277 | .block_erase = erase_chip_block_jedec, |
| 4278 | }, |
| 4279 | }, |
| 4280 | .write = write_jedec_1, |
| 4281 | .read = read_memmapped, |
| 4282 | }, |
| 4283 | |
| 4284 | { |
| 4285 | .vendor = "MoselVitelic", |
| 4286 | .name = "V29C51000T", |
| 4287 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4288 | .manufacture_id = SYNCMOS_MVC_ID, |
| 4289 | .model_id = MVC_V29C51000T, |
| 4290 | .total_size = 64, |
| 4291 | .page_size = 512, |
| 4292 | .feature_bits = FEATURE_EITHER_RESET, |
| 4293 | .tested = TEST_UNTESTED, |
| 4294 | .probe = probe_jedec, |
| 4295 | .probe_timing = TIMING_ZERO, |
| 4296 | .block_erasers = |
| 4297 | { |
| 4298 | { |
| 4299 | .eraseblocks = { {512, 128} }, |
| 4300 | .block_erase = erase_sector_jedec, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {64 * 1024, 1} }, |
| 4303 | .block_erase = erase_chip_block_jedec, |
| 4304 | }, |
| 4305 | }, |
| 4306 | .write = write_jedec_1, |
| 4307 | .read = read_memmapped, |
| 4308 | }, |
| 4309 | |
| 4310 | { |
| 4311 | .vendor = "MoselVitelic", |
| 4312 | .name = "V29C51400B", |
| 4313 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4314 | .manufacture_id = SYNCMOS_MVC_ID, |
| 4315 | .model_id = MVC_V29C51400B, |
| 4316 | .total_size = 512, |
| 4317 | .page_size = 1024, |
| 4318 | .feature_bits = FEATURE_EITHER_RESET, |
| 4319 | .tested = TEST_UNTESTED, |
| 4320 | .probe = probe_jedec, |
| 4321 | .probe_timing = TIMING_ZERO, |
| 4322 | .block_erasers = |
| 4323 | { |
| 4324 | { |
| 4325 | .eraseblocks = { {1024, 512} }, |
| 4326 | .block_erase = erase_sector_jedec, |
| 4327 | }, { |
| 4328 | .eraseblocks = { {512 * 1024, 1} }, |
| 4329 | .block_erase = erase_chip_block_jedec, |
| 4330 | }, |
| 4331 | }, |
| 4332 | .write = write_jedec_1, |
| 4333 | .read = read_memmapped, |
| 4334 | }, |
| 4335 | |
| 4336 | { |
| 4337 | .vendor = "MoselVitelic", |
| 4338 | .name = "V29C51400T", |
| 4339 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4340 | .manufacture_id = SYNCMOS_MVC_ID, |
| 4341 | .model_id = MVC_V29C51400T, |
| 4342 | .total_size = 512, |
| 4343 | .page_size = 1024, |
| 4344 | .feature_bits = FEATURE_EITHER_RESET, |
| 4345 | .tested = TEST_UNTESTED, |
| 4346 | .probe = probe_jedec, |
| 4347 | .probe_timing = TIMING_ZERO, |
| 4348 | .block_erasers = |
| 4349 | { |
| 4350 | { |
| 4351 | .eraseblocks = { {1024, 512} }, |
| 4352 | .block_erase = erase_sector_jedec, |
| 4353 | }, { |
| 4354 | .eraseblocks = { {512 * 1024, 1} }, |
| 4355 | .block_erase = erase_chip_block_jedec, |
| 4356 | }, |
| 4357 | }, |
| 4358 | .write = write_jedec_1, |
| 4359 | .read = read_memmapped, |
| 4360 | }, |
| 4361 | |
| 4362 | { |
| 4363 | .vendor = "MoselVitelic", |
| 4364 | .name = "V29LC51000", |
| 4365 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4366 | .manufacture_id = SYNCMOS_MVC_ID, |
| 4367 | .model_id = MVC_V29LC51000, |
| 4368 | .total_size = 64, |
| 4369 | .page_size = 512, |
| 4370 | .feature_bits = FEATURE_EITHER_RESET, |
| 4371 | .tested = TEST_UNTESTED, |
| 4372 | .probe = probe_jedec, |
| 4373 | .probe_timing = TIMING_ZERO, |
| 4374 | .block_erasers = |
| 4375 | { |
| 4376 | { |
| 4377 | .eraseblocks = { {512, 128} }, |
| 4378 | .block_erase = erase_sector_jedec, |
| 4379 | }, { |
| 4380 | .eraseblocks = { {64 * 1024, 1} }, |
| 4381 | .block_erase = erase_chip_block_jedec, |
| 4382 | }, |
| 4383 | }, |
| 4384 | .write = write_jedec_1, |
| 4385 | .read = read_memmapped, |
| 4386 | }, |
| 4387 | |
| 4388 | { |
| 4389 | .vendor = "MoselVitelic", |
| 4390 | .name = "V29LC51001", |
| 4391 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4392 | .manufacture_id = SYNCMOS_MVC_ID, |
| 4393 | .model_id = MVC_V29LC51001, |
| 4394 | .total_size = 128, |
| 4395 | .page_size = 512, |
| 4396 | .feature_bits = FEATURE_EITHER_RESET, |
| 4397 | .tested = TEST_UNTESTED, |
| 4398 | .probe = probe_jedec, |
| 4399 | .probe_timing = TIMING_ZERO, |
| 4400 | .block_erasers = |
| 4401 | { |
| 4402 | { |
| 4403 | .eraseblocks = { {512, 256} }, |
| 4404 | .block_erase = erase_sector_jedec, |
| 4405 | }, { |
| 4406 | .eraseblocks = { {128 * 1024, 1} }, |
| 4407 | .block_erase = erase_chip_block_jedec, |
| 4408 | }, |
| 4409 | }, |
| 4410 | .write = write_jedec_1, |
| 4411 | .read = read_memmapped, |
| 4412 | }, |
| 4413 | |
| 4414 | { |
| 4415 | .vendor = "MoselVitelic", |
| 4416 | .name = "V29LC51002", |
| 4417 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4418 | .manufacture_id = SYNCMOS_MVC_ID, |
| 4419 | .model_id = MVC_V29LC51002, |
| 4420 | .total_size = 256, |
| 4421 | .page_size = 512, |
| 4422 | .feature_bits = FEATURE_EITHER_RESET, |
| 4423 | .tested = TEST_UNTESTED, |
| 4424 | .probe = probe_jedec, |
| 4425 | .probe_timing = TIMING_ZERO, |
| 4426 | .block_erasers = |
| 4427 | { |
| 4428 | { |
| 4429 | .eraseblocks = { {512, 512} }, |
| 4430 | .block_erase = erase_sector_jedec, |
| 4431 | }, { |
| 4432 | .eraseblocks = { {256 * 1024, 1} }, |
| 4433 | .block_erase = erase_chip_block_jedec, |
| 4434 | }, |
| 4435 | }, |
| 4436 | .write = write_jedec_1, |
| 4437 | .read = read_memmapped, |
| 4438 | }, |
| 4439 | |
| 4440 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4441 | .vendor = "Numonyx", |
| 4442 | .name = "M25PE10", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4443 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4444 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4445 | .model_id = ST_M25PE10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4446 | .total_size = 128, |
| 4447 | .page_size = 256, |
| 4448 | .tested = TEST_UNTESTED, |
| 4449 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4450 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4451 | .block_erasers = |
| 4452 | { |
| 4453 | { |
| 4454 | .eraseblocks = { {4 * 1024, 32} }, |
| 4455 | .block_erase = spi_block_erase_20, |
| 4456 | }, { |
| 4457 | .eraseblocks = { {64 * 1024, 2} }, |
| 4458 | .block_erase = spi_block_erase_d8, |
| 4459 | }, { |
| 4460 | .eraseblocks = { {128 * 1024, 1} }, |
| 4461 | .block_erase = spi_block_erase_c7, |
| 4462 | } |
| 4463 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4464 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4465 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4466 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4467 | }, |
| 4468 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4469 | { |
| 4470 | .vendor = "Numonyx", |
| 4471 | .name = "M25PE20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4472 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4473 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4474 | .model_id = ST_M25PE20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4475 | .total_size = 256, |
| 4476 | .page_size = 256, |
| 4477 | .tested = TEST_UNTESTED, |
| 4478 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4479 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4480 | .block_erasers = |
| 4481 | { |
| 4482 | { |
| 4483 | .eraseblocks = { {4 * 1024, 64} }, |
| 4484 | .block_erase = spi_block_erase_20, |
| 4485 | }, { |
| 4486 | .eraseblocks = { {64 * 1024, 4} }, |
| 4487 | .block_erase = spi_block_erase_d8, |
| 4488 | }, { |
| 4489 | .eraseblocks = { {256 * 1024, 1} }, |
| 4490 | .block_erase = spi_block_erase_c7, |
| 4491 | } |
| 4492 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4493 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4494 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4495 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4496 | }, |
| 4497 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4498 | { |
| 4499 | .vendor = "Numonyx", |
| 4500 | .name = "M25PE40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4501 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4502 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4503 | .model_id = ST_M25PE40, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4504 | .total_size = 512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4505 | .page_size = 256, |
| 4506 | .tested = TEST_UNTESTED, |
| 4507 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4508 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4509 | .block_erasers = |
| 4510 | { |
| 4511 | { |
| 4512 | .eraseblocks = { {4 * 1024, 128} }, |
| 4513 | .block_erase = spi_block_erase_20, |
| 4514 | }, { |
| 4515 | .eraseblocks = { {64 * 1024, 8} }, |
| 4516 | .block_erase = spi_block_erase_d8, |
| 4517 | }, { |
| 4518 | .eraseblocks = { {512 * 1024, 1} }, |
| 4519 | .block_erase = spi_block_erase_c7, |
| 4520 | } |
| 4521 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4522 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4523 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4524 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4525 | }, |
| 4526 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4527 | { |
| 4528 | .vendor = "Numonyx", |
| 4529 | .name = "M25PE80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4530 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4531 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4532 | .model_id = ST_M25PE80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4533 | .total_size = 1024, |
| 4534 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4535 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4536 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4537 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4538 | .block_erasers = |
| 4539 | { |
| 4540 | { |
| 4541 | .eraseblocks = { {4 * 1024, 256} }, |
| 4542 | .block_erase = spi_block_erase_20, |
| 4543 | }, { |
| 4544 | .eraseblocks = { {64 * 1024, 16} }, |
| 4545 | .block_erase = spi_block_erase_d8, |
| 4546 | }, { |
| 4547 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4548 | .block_erase = spi_block_erase_c7, |
| 4549 | } |
| 4550 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4551 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4552 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4553 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4554 | }, |
| 4555 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4556 | { |
| 4557 | .vendor = "Numonyx", |
| 4558 | .name = "M25PE16", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4559 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4560 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4561 | .model_id = ST_M25PE16, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4562 | .total_size = 2048, |
| 4563 | .page_size = 256, |
| 4564 | .tested = TEST_UNTESTED, |
| 4565 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4566 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4567 | .block_erasers = |
| 4568 | { |
| 4569 | { |
| 4570 | .eraseblocks = { {4 * 1024, 512} }, |
| 4571 | .block_erase = spi_block_erase_20, |
| 4572 | }, { |
| 4573 | .eraseblocks = { {64 * 1024, 32} }, |
| 4574 | .block_erase = spi_block_erase_d8, |
| 4575 | }, { |
| 4576 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4577 | .block_erase = spi_block_erase_c7, |
| 4578 | } |
| 4579 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4580 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4581 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4582 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4583 | }, |
| 4584 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4585 | { |
| 4586 | .vendor = "PMC", |
| 4587 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4588 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4589 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4590 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4591 | .total_size = 128, |
| 4592 | .page_size = 256, |
| 4593 | .tested = TEST_UNTESTED, |
| 4594 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4595 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4596 | .block_erasers = |
| 4597 | { |
| 4598 | { |
| 4599 | .eraseblocks = { {4 * 1024, 32} }, |
| 4600 | .block_erase = spi_block_erase_d7, |
| 4601 | }, { |
| 4602 | .eraseblocks = { {32 * 1024, 4} }, |
| 4603 | .block_erase = spi_block_erase_d8, |
| 4604 | }, { |
| 4605 | .eraseblocks = { {128 * 1024, 1} }, |
| 4606 | .block_erase = spi_block_erase_c7, |
| 4607 | } |
| 4608 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4609 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4610 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4611 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4612 | }, |
| 4613 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4614 | { |
| 4615 | .vendor = "PMC", |
| 4616 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4617 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4618 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4619 | .model_id = PMC_PM25LV016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4620 | .total_size = 2048, |
| 4621 | .page_size = 256, |
| 4622 | .tested = TEST_UNTESTED, |
| 4623 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4624 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4625 | .block_erasers = |
| 4626 | { |
| 4627 | { |
| 4628 | .eraseblocks = { {4 * 1024, 512} }, |
| 4629 | .block_erase = spi_block_erase_d7, |
| 4630 | }, { |
| 4631 | .eraseblocks = { {4 * 1024, 512} }, |
| 4632 | .block_erase = spi_block_erase_20, |
| 4633 | }, { |
| 4634 | .eraseblocks = { {64 * 1024, 32} }, |
| 4635 | .block_erase = spi_block_erase_d8, |
| 4636 | }, { |
| 4637 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4638 | .block_erase = spi_block_erase_60, |
| 4639 | }, { |
| 4640 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4641 | .block_erase = spi_block_erase_c7, |
| 4642 | } |
| 4643 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4644 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4645 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4646 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4647 | }, |
| 4648 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4649 | { |
| 4650 | .vendor = "PMC", |
| 4651 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4652 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4653 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4654 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4655 | .total_size = 256, |
| 4656 | .page_size = 256, |
| 4657 | .tested = TEST_UNTESTED, |
| 4658 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4659 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4660 | .block_erasers = |
| 4661 | { |
| 4662 | { |
| 4663 | .eraseblocks = { {4 * 1024, 64} }, |
| 4664 | .block_erase = spi_block_erase_d7, |
| 4665 | }, { |
| 4666 | .eraseblocks = { {64 * 1024, 4} }, |
| 4667 | .block_erase = spi_block_erase_d8, |
| 4668 | }, { |
| 4669 | .eraseblocks = { {256 * 1024, 1} }, |
| 4670 | .block_erase = spi_block_erase_c7, |
| 4671 | } |
| 4672 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4673 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4674 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4675 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4676 | }, |
| 4677 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4678 | { |
| 4679 | .vendor = "PMC", |
| 4680 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4681 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4682 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4683 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4684 | .total_size = 512, |
| 4685 | .page_size = 256, |
| 4686 | .tested = TEST_UNTESTED, |
| 4687 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4688 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4689 | .block_erasers = |
| 4690 | { |
| 4691 | { |
| 4692 | .eraseblocks = { {4 * 1024, 128} }, |
| 4693 | .block_erase = spi_block_erase_d7, |
| 4694 | }, { |
| 4695 | .eraseblocks = { {64 * 1024, 8} }, |
| 4696 | .block_erase = spi_block_erase_d8, |
| 4697 | }, { |
| 4698 | .eraseblocks = { {512 * 1024, 1} }, |
| 4699 | .block_erase = spi_block_erase_c7, |
| 4700 | } |
| 4701 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4702 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4703 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4704 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4705 | }, |
| 4706 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4707 | { |
| 4708 | .vendor = "PMC", |
| 4709 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4710 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4711 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4712 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4713 | .total_size = 1024, |
| 4714 | .page_size = 256, |
| 4715 | .tested = TEST_UNTESTED, |
| 4716 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4717 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4718 | .block_erasers = |
| 4719 | { |
| 4720 | { |
| 4721 | .eraseblocks = { {4 * 1024, 256} }, |
| 4722 | .block_erase = spi_block_erase_d7, |
| 4723 | }, { |
| 4724 | .eraseblocks = { {4 * 1024, 256} }, |
| 4725 | .block_erase = spi_block_erase_20, |
| 4726 | }, { |
| 4727 | .eraseblocks = { {64 * 1024, 16} }, |
| 4728 | .block_erase = spi_block_erase_d8, |
| 4729 | }, { |
| 4730 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4731 | .block_erase = spi_block_erase_60, |
| 4732 | }, { |
| 4733 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4734 | .block_erase = spi_block_erase_c7, |
| 4735 | } |
| 4736 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4737 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4738 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4739 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4740 | }, |
| 4741 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4742 | { |
| 4743 | .vendor = "PMC", |
| 4744 | .name = "Pm25LV512", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4745 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4746 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4747 | .model_id = PMC_PM25LV512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4748 | .total_size = 64, |
| 4749 | .page_size = 256, |
| 4750 | .tested = TEST_UNTESTED, |
| 4751 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4752 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4753 | .block_erasers = |
| 4754 | { |
| 4755 | { |
| 4756 | .eraseblocks = { {4 * 1024, 16} }, |
| 4757 | .block_erase = spi_block_erase_d7, |
| 4758 | }, { |
| 4759 | .eraseblocks = { {32 * 1024, 2} }, |
| 4760 | .block_erase = spi_block_erase_d8, |
| 4761 | }, { |
| 4762 | .eraseblocks = { {64 * 1024, 1} }, |
| 4763 | .block_erase = spi_block_erase_c7, |
| 4764 | } |
| 4765 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4766 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4767 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4768 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4769 | }, |
| 4770 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4771 | { |
| 4772 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4773 | .name = "Pm29F002T", |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4774 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4775 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4776 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4777 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4778 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4779 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4780 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4781 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4782 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4783 | .block_erasers = |
| 4784 | { |
| 4785 | { |
| 4786 | .eraseblocks = { |
| 4787 | {128 * 1024, 1}, |
| 4788 | {96 * 1024, 1}, |
| 4789 | {8 * 1024, 2}, |
| 4790 | {16 * 1024, 1}, |
| 4791 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4792 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4793 | }, { |
| 4794 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4795 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4796 | }, |
| 4797 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4798 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4799 | .read = read_memmapped, |
| 4800 | }, |
| 4801 | |
| 4802 | { |
| 4803 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4804 | .name = "Pm29F002B", |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4805 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4806 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4807 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4808 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4809 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4810 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4811 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4812 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4813 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4814 | .block_erasers = |
| 4815 | { |
| 4816 | { |
| 4817 | .eraseblocks = { |
| 4818 | {16 * 1024, 1}, |
| 4819 | {8 * 1024, 2}, |
| 4820 | {96 * 1024, 1}, |
| 4821 | {128 * 1024, 1}, |
| 4822 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4823 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4824 | }, { |
| 4825 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4826 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4827 | }, |
| 4828 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4829 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4830 | .read = read_memmapped, |
| 4831 | }, |
| 4832 | |
| 4833 | { |
| 4834 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4835 | .name = "Pm39LV010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4836 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4837 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4838 | .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */ |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4839 | .total_size = 128, |
| 4840 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4841 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4842 | .tested = TEST_OK_PRE, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4843 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4844 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4845 | .block_erasers = |
| 4846 | { |
| 4847 | { |
| 4848 | .eraseblocks = { {4 * 1024, 32} }, |
| 4849 | .block_erase = erase_sector_jedec, |
| 4850 | }, { |
| 4851 | .eraseblocks = { {64 * 1024, 2} }, |
| 4852 | .block_erase = erase_block_jedec, |
| 4853 | }, { |
| 4854 | .eraseblocks = { {128 * 1024, 1} }, |
| 4855 | .block_erase = erase_chip_block_jedec, |
| 4856 | } |
| 4857 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4858 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4859 | .read = read_memmapped, |
| 4860 | }, |
| 4861 | |
| 4862 | { |
| 4863 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 4864 | .name = "Pm39LV020", |
| 4865 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4866 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4867 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 4868 | .total_size = 256, |
| 4869 | .page_size = 4096, |
| 4870 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 4871 | .tested = TEST_UNTESTED, |
| 4872 | .probe = probe_jedec, |
| 4873 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4874 | .block_erasers = |
| 4875 | { |
| 4876 | { |
| 4877 | .eraseblocks = { {4 * 1024, 64} }, |
| 4878 | .block_erase = erase_sector_jedec, |
| 4879 | }, { |
| 4880 | .eraseblocks = { {64 * 1024, 4} }, |
| 4881 | .block_erase = erase_block_jedec, |
| 4882 | }, { |
| 4883 | .eraseblocks = { {256 * 1024, 1} }, |
| 4884 | .block_erase = erase_chip_block_jedec, |
| 4885 | } |
| 4886 | }, |
| 4887 | .write = write_jedec_1, |
| 4888 | .read = read_memmapped, |
| 4889 | }, |
| 4890 | |
| 4891 | { |
| 4892 | .vendor = "PMC", |
| 4893 | .name = "Pm39LV040", |
| 4894 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4895 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4896 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 4897 | .total_size = 512, |
| 4898 | .page_size = 4096, |
| 4899 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 4900 | .tested = TEST_UNTESTED, |
| 4901 | .probe = probe_jedec, |
| 4902 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4903 | .block_erasers = |
| 4904 | { |
| 4905 | { |
| 4906 | .eraseblocks = { {4 * 1024, 128} }, |
| 4907 | .block_erase = erase_sector_jedec, |
| 4908 | }, { |
| 4909 | .eraseblocks = { {64 * 1024, 8} }, |
| 4910 | .block_erase = erase_block_jedec, |
| 4911 | }, { |
| 4912 | .eraseblocks = { {512 * 1024, 1} }, |
| 4913 | .block_erase = erase_chip_block_jedec, |
| 4914 | } |
| 4915 | }, |
| 4916 | .write = write_jedec_1, |
| 4917 | .read = read_memmapped, |
| 4918 | }, |
| 4919 | |
| 4920 | { |
| 4921 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4922 | .name = "Pm49FL002", |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 4923 | .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4924 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4925 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4926 | .total_size = 256, |
| 4927 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4928 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4929 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 4930 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4931 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4932 | .block_erasers = |
| 4933 | { |
| 4934 | { |
| 4935 | .eraseblocks = { {4 * 1024, 64} }, |
| 4936 | .block_erase = erase_sector_jedec, |
| 4937 | }, { |
| 4938 | .eraseblocks = { {16 * 1024, 16} }, |
| 4939 | .block_erase = erase_block_jedec, |
| 4940 | }, { |
| 4941 | .eraseblocks = { {256 * 1024, 1} }, |
| 4942 | .block_erase = erase_chip_block_jedec, |
| 4943 | } |
| 4944 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 4945 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 4946 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4947 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4948 | }, |
| 4949 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4950 | { |
| 4951 | .vendor = "PMC", |
| 4952 | .name = "Pm49FL004", |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 4953 | .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4954 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4955 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4956 | .total_size = 512, |
| 4957 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4958 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 4959 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 4960 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4961 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4962 | .block_erasers = |
| 4963 | { |
| 4964 | { |
| 4965 | .eraseblocks = { {4 * 1024, 128} }, |
| 4966 | .block_erase = erase_sector_jedec, |
| 4967 | }, { |
| 4968 | .eraseblocks = { {64 * 1024, 8} }, |
| 4969 | .block_erase = erase_block_jedec, |
| 4970 | }, { |
| 4971 | .eraseblocks = { {512 * 1024, 1} }, |
| 4972 | .block_erase = erase_chip_block_jedec, |
| 4973 | } |
| 4974 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 4975 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 4976 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4977 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4978 | }, |
| 4979 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4980 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 4981 | .vendor = "Sanyo", |
| 4982 | .name = "LF25FW203A", |
| 4983 | .bustype = CHIP_BUSTYPE_SPI, |
| 4984 | .manufacture_id = SANYO_ID, |
| 4985 | .model_id = SANYO_LE25FW203A, |
| 4986 | .total_size = 2048, |
| 4987 | .page_size = 256, |
| 4988 | .tested = TEST_UNTESTED, |
| 4989 | .probe = probe_spi_rdid, |
| 4990 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4991 | .block_erasers = |
| 4992 | { |
| 4993 | { |
| 4994 | .eraseblocks = { {64 * 1024, 32} }, |
| 4995 | .block_erase = spi_block_erase_d8, |
| 4996 | }, { |
| 4997 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4998 | .block_erase = spi_block_erase_c7, |
| 4999 | } |
| 5000 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5001 | .unlock = spi_disable_blockprotect, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 5002 | .write = spi_chip_write_256, |
| 5003 | .read = spi_chip_read, |
| 5004 | }, |
| 5005 | |
| 5006 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5007 | .vendor = "Sharp", |
| 5008 | .name = "LHF00L04", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5009 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5010 | .manufacture_id = SHARP_ID, |
| 5011 | .model_id = SHARP_LHF00L04, |
| 5012 | .total_size = 1024, |
| 5013 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5014 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5015 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5016 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 5017 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 5018 | .block_erasers = |
| 5019 | { |
| 5020 | { |
| 5021 | .eraseblocks = { |
| 5022 | {64 * 1024, 15}, |
| 5023 | {8 * 1024, 8} |
| 5024 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5025 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 5026 | }, { |
| 5027 | .eraseblocks = { |
| 5028 | {1024 * 1024, 1} |
| 5029 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5030 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 5031 | }, |
| 5032 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5033 | .unlock = unlock_82802ab, |
| 5034 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5035 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5036 | }, |
| 5037 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5038 | { |
| 5039 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 5040 | .name = "S25FL004A", |
| 5041 | .bustype = CHIP_BUSTYPE_SPI, |
| 5042 | .manufacture_id = SPANSION_ID, |
| 5043 | .model_id = SPANSION_S25FL004A, |
| 5044 | .total_size = 512, |
| 5045 | .page_size = 256, |
| 5046 | .tested = TEST_UNTESTED, |
| 5047 | .probe = probe_spi_rdid, |
| 5048 | .probe_timing = TIMING_ZERO, |
| 5049 | .block_erasers = |
| 5050 | { |
| 5051 | { |
| 5052 | .eraseblocks = { {64 * 1024, 8} }, |
| 5053 | .block_erase = spi_block_erase_d8, |
| 5054 | }, { |
| 5055 | .eraseblocks = { {512 * 1024, 1} }, |
| 5056 | .block_erase = spi_block_erase_c7, |
| 5057 | } |
| 5058 | }, |
| 5059 | .unlock = spi_disable_blockprotect, |
| 5060 | .write = spi_chip_write_256, |
| 5061 | .read = spi_chip_read, |
| 5062 | }, |
| 5063 | |
| 5064 | { |
| 5065 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 5066 | .name = "S25FL008A", |
| 5067 | .bustype = CHIP_BUSTYPE_SPI, |
| 5068 | .manufacture_id = SPANSION_ID, |
| 5069 | .model_id = SPANSION_S25FL008A, |
| 5070 | .total_size = 1024, |
| 5071 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5072 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 5073 | .probe = probe_spi_rdid, |
| 5074 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 5075 | .block_erasers = |
| 5076 | { |
| 5077 | { |
| 5078 | .eraseblocks = { {64 * 1024, 16} }, |
| 5079 | .block_erase = spi_block_erase_d8, |
| 5080 | }, { |
| 5081 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5082 | .block_erase = spi_block_erase_c7, |
| 5083 | } |
| 5084 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5085 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 5086 | .write = spi_chip_write_256, |
| 5087 | .read = spi_chip_read, |
| 5088 | }, |
| 5089 | |
| 5090 | { |
| 5091 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5092 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5093 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5094 | .manufacture_id = SPANSION_ID, |
| 5095 | .model_id = SPANSION_S25FL016A, |
| 5096 | .total_size = 2048, |
| 5097 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5098 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5099 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5100 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5101 | .block_erasers = |
| 5102 | { |
| 5103 | { |
| 5104 | .eraseblocks = { {64 * 1024, 32} }, |
| 5105 | .block_erase = spi_block_erase_d8, |
| 5106 | }, { |
| 5107 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5108 | .block_erase = spi_block_erase_c7, |
| 5109 | } |
| 5110 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5111 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5112 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5113 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5114 | }, |
| 5115 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5116 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 5117 | .vendor = "Spansion", |
| 5118 | .name = "S25FL032A", |
| 5119 | .bustype = CHIP_BUSTYPE_SPI, |
| 5120 | .manufacture_id = SPANSION_ID, |
| 5121 | .model_id = SPANSION_S25FL032A, |
| 5122 | .total_size = 4096, |
| 5123 | .page_size = 256, |
| 5124 | .tested = TEST_UNTESTED, |
| 5125 | .probe = probe_spi_rdid, |
| 5126 | .probe_timing = TIMING_ZERO, |
| 5127 | .block_erasers = |
| 5128 | { |
| 5129 | { |
| 5130 | .eraseblocks = { {64 * 1024, 64} }, |
| 5131 | .block_erase = spi_block_erase_d8, |
| 5132 | }, { |
| 5133 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5134 | .block_erase = spi_block_erase_c7, |
| 5135 | } |
| 5136 | }, |
| 5137 | .unlock = spi_disable_blockprotect, |
| 5138 | .write = spi_chip_write_256, |
| 5139 | .read = spi_chip_read, |
| 5140 | }, |
| 5141 | |
| 5142 | { |
| 5143 | .vendor = "Spansion", |
| 5144 | .name = "S25FL064A", |
| 5145 | .bustype = CHIP_BUSTYPE_SPI, |
| 5146 | .manufacture_id = SPANSION_ID, |
| 5147 | .model_id = SPANSION_S25FL064A, |
| 5148 | .total_size = 8192, |
| 5149 | .page_size = 256, |
| 5150 | .tested = TEST_OK_PREW, |
| 5151 | .probe = probe_spi_rdid, |
| 5152 | .probe_timing = TIMING_ZERO, |
| 5153 | .block_erasers = |
| 5154 | { |
| 5155 | { |
| 5156 | .eraseblocks = { {64 * 1024, 128} }, |
| 5157 | .block_erase = spi_block_erase_d8, |
| 5158 | }, { |
| 5159 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5160 | .block_erase = spi_block_erase_c7, |
| 5161 | } |
| 5162 | }, |
| 5163 | .unlock = spi_disable_blockprotect, |
| 5164 | .write = spi_chip_write_256, |
| 5165 | .read = spi_chip_read, |
| 5166 | }, |
| 5167 | |
| 5168 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5169 | .vendor = "SST", |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 5170 | .name = "SST25VF010.REMS", |
| 5171 | .bustype = CHIP_BUSTYPE_SPI, |
| 5172 | .manufacture_id = SST_ID, |
| 5173 | .model_id = SST_SST25VF010_REMS, |
| 5174 | .total_size = 128, |
| 5175 | .page_size = 256, |
| 5176 | .tested = TEST_OK_PREW, |
| 5177 | .probe = probe_spi_rems, |
| 5178 | .probe_timing = TIMING_ZERO, |
| 5179 | .block_erasers = |
| 5180 | { |
| 5181 | { |
| 5182 | .eraseblocks = { {4 * 1024, 32} }, |
| 5183 | .block_erase = spi_block_erase_20, |
| 5184 | }, { |
| 5185 | .eraseblocks = { {32 * 1024, 4} }, |
| 5186 | .block_erase = spi_block_erase_52, |
| 5187 | }, { |
| 5188 | .eraseblocks = { {128 * 1024, 1} }, |
| 5189 | .block_erase = spi_block_erase_60, |
| 5190 | }, |
| 5191 | }, |
| 5192 | .unlock = spi_disable_blockprotect, |
| 5193 | .write = spi_chip_write_1, |
| 5194 | .read = spi_chip_read, |
| 5195 | }, |
| 5196 | |
| 5197 | { |
| 5198 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5199 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5200 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5201 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5202 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5203 | .total_size = 2048, |
| 5204 | .page_size = 256, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 5205 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5206 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5207 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5208 | .block_erasers = |
| 5209 | { |
| 5210 | { |
| 5211 | .eraseblocks = { {4 * 1024, 512} }, |
| 5212 | .block_erase = spi_block_erase_20, |
| 5213 | }, { |
| 5214 | .eraseblocks = { {32 * 1024, 64} }, |
| 5215 | .block_erase = spi_block_erase_52, |
| 5216 | }, { |
| 5217 | .eraseblocks = { {64 * 1024, 32} }, |
| 5218 | .block_erase = spi_block_erase_d8, |
| 5219 | }, { |
| 5220 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5221 | .block_erase = spi_block_erase_60, |
| 5222 | }, { |
| 5223 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5224 | .block_erase = spi_block_erase_c7, |
| 5225 | }, |
| 5226 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5227 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 5228 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5229 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5230 | }, |
| 5231 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5232 | { |
| 5233 | .vendor = "SST", |
| 5234 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5235 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5236 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5237 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5238 | .total_size = 4096, |
| 5239 | .page_size = 256, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 5240 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5241 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5242 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5243 | .block_erasers = |
| 5244 | { |
| 5245 | { |
| 5246 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5247 | .block_erase = spi_block_erase_20, |
| 5248 | }, { |
| 5249 | .eraseblocks = { {32 * 1024, 128} }, |
| 5250 | .block_erase = spi_block_erase_52, |
| 5251 | }, { |
| 5252 | .eraseblocks = { {64 * 1024, 64} }, |
| 5253 | .block_erase = spi_block_erase_d8, |
| 5254 | }, { |
| 5255 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5256 | .block_erase = spi_block_erase_60, |
| 5257 | }, { |
| 5258 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5259 | .block_erase = spi_block_erase_c7, |
| 5260 | }, |
| 5261 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5262 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 5263 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5264 | .read = spi_chip_read, |
| 5265 | }, |
| 5266 | |
| 5267 | { |
| 5268 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 5269 | .name = "SST25VF064C", |
| 5270 | .bustype = CHIP_BUSTYPE_SPI, |
| 5271 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5272 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 5273 | .total_size = 8192, |
| 5274 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5275 | .tested = TEST_OK_PRE, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 5276 | .probe = probe_spi_rdid, |
| 5277 | .probe_timing = TIMING_ZERO, |
| 5278 | .block_erasers = |
| 5279 | { |
| 5280 | { |
| 5281 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5282 | .block_erase = spi_block_erase_20, |
| 5283 | }, { |
| 5284 | .eraseblocks = { {32 * 1024, 256} }, |
| 5285 | .block_erase = spi_block_erase_52, |
| 5286 | }, { |
| 5287 | .eraseblocks = { {64 * 1024, 128} }, |
| 5288 | .block_erase = spi_block_erase_d8, |
| 5289 | }, { |
| 5290 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5291 | .block_erase = spi_block_erase_60, |
| 5292 | }, { |
| 5293 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5294 | .block_erase = spi_block_erase_c7, |
| 5295 | }, |
| 5296 | }, |
| 5297 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 5298 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 5299 | .read = spi_chip_read, |
| 5300 | }, |
| 5301 | |
| 5302 | { |
| 5303 | .vendor = "SST", |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5304 | .name = "SST25VF040.REMS", |
| 5305 | .bustype = CHIP_BUSTYPE_SPI, |
| 5306 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5307 | .model_id = SST_SST25VF040_REMS, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5308 | .total_size = 512, |
| 5309 | .page_size = 256, |
| 5310 | .tested = TEST_OK_PR, |
| 5311 | .probe = probe_spi_rems, |
| 5312 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5313 | .block_erasers = |
| 5314 | { |
| 5315 | { |
| 5316 | .eraseblocks = { {4 * 1024, 128} }, |
| 5317 | .block_erase = spi_block_erase_20, |
| 5318 | }, { |
| 5319 | .eraseblocks = { {32 * 1024, 16} }, |
| 5320 | .block_erase = spi_block_erase_52, |
| 5321 | }, { |
| 5322 | .eraseblocks = { {512 * 1024, 1} }, |
| 5323 | .block_erase = spi_block_erase_60, |
| 5324 | }, |
| 5325 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5326 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 5327 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5328 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5329 | }, |
| 5330 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5331 | { |
| 5332 | .vendor = "SST", |
| 5333 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5334 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5335 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5336 | .model_id = SST_SST25VF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5337 | .total_size = 512, |
| 5338 | .page_size = 256, |
| 5339 | .tested = TEST_UNTESTED, |
| 5340 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5341 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5342 | .block_erasers = |
| 5343 | { |
| 5344 | { |
| 5345 | .eraseblocks = { {4 * 1024, 128} }, |
| 5346 | .block_erase = spi_block_erase_20, |
| 5347 | }, { |
| 5348 | .eraseblocks = { {32 * 1024, 16} }, |
| 5349 | .block_erase = spi_block_erase_52, |
| 5350 | }, { |
| 5351 | .eraseblocks = { {64 * 1024, 8} }, |
| 5352 | .block_erase = spi_block_erase_d8, |
| 5353 | }, { |
| 5354 | .eraseblocks = { {512 * 1024, 1} }, |
| 5355 | .block_erase = spi_block_erase_60, |
| 5356 | }, { |
| 5357 | .eraseblocks = { {512 * 1024, 1} }, |
| 5358 | .block_erase = spi_block_erase_c7, |
| 5359 | }, |
| 5360 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5361 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 5362 | .write = spi_chip_write_1, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 5363 | .read = spi_chip_read, |
| 5364 | }, |
| 5365 | |
| 5366 | { |
| 5367 | .vendor = "SST", |
Stefan Reinauer | 5cacf8c | 2010-06-14 12:58:06 +0000 | [diff] [blame] | 5368 | .name = "SST25LF040A.RES", |
| 5369 | .bustype = CHIP_BUSTYPE_SPI, |
| 5370 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5371 | .model_id = SST_SST25VF040_REMS, |
Stefan Reinauer | 5cacf8c | 2010-06-14 12:58:06 +0000 | [diff] [blame] | 5372 | .total_size = 512, |
| 5373 | .page_size = 256, |
| 5374 | .tested = TEST_OK_PROBE, |
| 5375 | .probe = probe_spi_res2, |
| 5376 | .probe_timing = TIMING_ZERO, |
| 5377 | .block_erasers = |
| 5378 | { |
| 5379 | { |
| 5380 | .eraseblocks = { {4 * 1024, 128} }, |
| 5381 | .block_erase = spi_block_erase_20, |
| 5382 | }, { |
| 5383 | .eraseblocks = { {32 * 1024, 16} }, |
| 5384 | .block_erase = spi_block_erase_52, |
| 5385 | }, { |
| 5386 | .eraseblocks = { {512 * 1024, 1} }, |
| 5387 | .block_erase = spi_block_erase_60, |
| 5388 | }, |
| 5389 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5390 | .unlock = spi_disable_blockprotect, |
Stefan Reinauer | 5cacf8c | 2010-06-14 12:58:06 +0000 | [diff] [blame] | 5391 | .write = spi_chip_write_1, |
| 5392 | .read = spi_chip_read, |
| 5393 | }, |
| 5394 | |
| 5395 | { |
| 5396 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 5397 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5398 | .bustype = CHIP_BUSTYPE_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5399 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5400 | .model_id = SST_SST25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 5401 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5402 | .page_size = 256, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 5403 | .tested = TEST_OK_PR, |
| 5404 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5405 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5406 | .block_erasers = |
| 5407 | { |
| 5408 | { |
| 5409 | .eraseblocks = { {4 * 1024, 128} }, |
| 5410 | .block_erase = spi_block_erase_20, |
| 5411 | }, { |
| 5412 | .eraseblocks = { {32 * 1024, 16} }, |
| 5413 | .block_erase = spi_block_erase_52, |
| 5414 | }, { |
| 5415 | .eraseblocks = { {64 * 1024, 8} }, |
| 5416 | .block_erase = spi_block_erase_d8, |
| 5417 | }, { |
| 5418 | .eraseblocks = { {512 * 1024, 1} }, |
| 5419 | .block_erase = spi_block_erase_60, |
| 5420 | }, { |
| 5421 | .eraseblocks = { {512 * 1024, 1} }, |
| 5422 | .block_erase = spi_block_erase_c7, |
| 5423 | }, |
| 5424 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5425 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 5426 | .write = spi_chip_write_1, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 5427 | .read = spi_chip_read, |
| 5428 | }, |
| 5429 | |
| 5430 | { |
| 5431 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5432 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5433 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5434 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5435 | .model_id = SST_SST25VF080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5436 | .total_size = 1024, |
| 5437 | .page_size = 256, |
John Schmerge | c965c2d | 2011-05-18 11:28:47 +0000 | [diff] [blame] | 5438 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5439 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5440 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 5441 | .block_erasers = |
| 5442 | { |
| 5443 | { |
| 5444 | .eraseblocks = { {4 * 1024, 256} }, |
| 5445 | .block_erase = spi_block_erase_20, |
| 5446 | }, { |
| 5447 | .eraseblocks = { {32 * 1024, 32} }, |
| 5448 | .block_erase = spi_block_erase_52, |
| 5449 | }, { |
| 5450 | .eraseblocks = { {64 * 1024, 16} }, |
| 5451 | .block_erase = spi_block_erase_d8, |
| 5452 | }, { |
| 5453 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5454 | .block_erase = spi_block_erase_60, |
| 5455 | }, { |
| 5456 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5457 | .block_erase = spi_block_erase_c7, |
| 5458 | }, |
| 5459 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5460 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5461 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5462 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5463 | }, |
| 5464 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5465 | { |
| 5466 | .vendor = "SST", |
| 5467 | .name = "SST28SF040A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5468 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5469 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5470 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5471 | .total_size = 512, |
| 5472 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5473 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5474 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5475 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5476 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5477 | .block_erasers = |
| 5478 | { |
| 5479 | { |
| 5480 | .eraseblocks = { {128, 4096} }, |
| 5481 | .block_erase = erase_sector_28sf040, |
| 5482 | }, { |
| 5483 | .eraseblocks = { {512 * 1024, 1} }, |
| 5484 | .block_erase = erase_chip_28sf040, |
| 5485 | } |
| 5486 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5487 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5488 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5489 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5490 | }, |
| 5491 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5492 | { |
| 5493 | .vendor = "SST", |
| 5494 | .name = "SST29EE010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5495 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5496 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5497 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5498 | .total_size = 128, |
| 5499 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5500 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5501 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5502 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5503 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5504 | .block_erasers = |
| 5505 | { |
| 5506 | { |
| 5507 | .eraseblocks = { {128 * 1024, 1} }, |
| 5508 | .block_erase = erase_chip_block_jedec, |
| 5509 | } |
| 5510 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5511 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5512 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5513 | }, |
| 5514 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5515 | { |
| 5516 | .vendor = "SST", |
| 5517 | .name = "SST29LE010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5518 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5519 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5520 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5521 | .total_size = 128, |
| 5522 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5523 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5524 | .tested = TEST_UNTESTED, |
| 5525 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5526 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5527 | .block_erasers = |
| 5528 | { |
| 5529 | { |
| 5530 | .eraseblocks = { {128 * 1024, 1} }, |
| 5531 | .block_erase = erase_chip_block_jedec, |
| 5532 | } |
| 5533 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5534 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5535 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5536 | }, |
| 5537 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5538 | { |
| 5539 | .vendor = "SST", |
| 5540 | .name = "SST29EE020A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5541 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5542 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5543 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5544 | .total_size = 256, |
| 5545 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5546 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5547 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5548 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5549 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5550 | .block_erasers = |
| 5551 | { |
| 5552 | { |
| 5553 | .eraseblocks = { {256 * 1024, 1} }, |
| 5554 | .block_erase = erase_chip_block_jedec, |
| 5555 | } |
| 5556 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5557 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5558 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5559 | }, |
| 5560 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5561 | { |
| 5562 | .vendor = "SST", |
| 5563 | .name = "SST29LE020", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5564 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5565 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5566 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5567 | .total_size = 256, |
| 5568 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5569 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5570 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5571 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5572 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5573 | .block_erasers = |
| 5574 | { |
| 5575 | { |
| 5576 | .eraseblocks = { {256 * 1024, 1} }, |
| 5577 | .block_erase = erase_chip_block_jedec, |
| 5578 | } |
| 5579 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5580 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5581 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5582 | }, |
| 5583 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5584 | { |
| 5585 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 5586 | .name = "SST39SF512", |
| 5587 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 5588 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5589 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 5590 | .total_size = 64, |
| 5591 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5592 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 5593 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 5594 | .probe = probe_jedec, |
| 5595 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 5596 | .block_erasers = |
| 5597 | { |
| 5598 | { |
| 5599 | .eraseblocks = { {4 * 1024, 16} }, |
| 5600 | .block_erase = erase_sector_jedec, |
| 5601 | }, { |
| 5602 | .eraseblocks = { {64 * 1024, 1} }, |
| 5603 | .block_erase = erase_chip_block_jedec, |
| 5604 | } |
| 5605 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5606 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 5607 | .read = read_memmapped, |
| 5608 | }, |
| 5609 | |
| 5610 | { |
| 5611 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5612 | .name = "SST39SF010A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5613 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5614 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5615 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5616 | .total_size = 128, |
| 5617 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5618 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5619 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5620 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5621 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5622 | .block_erasers = |
| 5623 | { |
| 5624 | { |
| 5625 | .eraseblocks = { {4 * 1024, 32} }, |
| 5626 | .block_erase = erase_sector_jedec, |
| 5627 | }, { |
| 5628 | .eraseblocks = { {128 * 1024, 1} }, |
| 5629 | .block_erase = erase_chip_block_jedec, |
| 5630 | } |
| 5631 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5632 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5633 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5634 | }, |
| 5635 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5636 | { |
| 5637 | .vendor = "SST", |
| 5638 | .name = "SST39SF020A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5639 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5640 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5641 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5642 | .total_size = 256, |
| 5643 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5644 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5645 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5646 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 5647 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5648 | .block_erasers = |
| 5649 | { |
| 5650 | { |
| 5651 | .eraseblocks = { {4 * 1024, 64} }, |
| 5652 | .block_erase = erase_sector_jedec, |
| 5653 | }, { |
| 5654 | .eraseblocks = { {256 * 1024, 1} }, |
| 5655 | .block_erase = erase_chip_block_jedec, |
| 5656 | } |
| 5657 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5658 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5659 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5660 | }, |
| 5661 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5662 | { |
| 5663 | .vendor = "SST", |
| 5664 | .name = "SST39SF040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5665 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5666 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5667 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5668 | .total_size = 512, |
| 5669 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5670 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5671 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5672 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 5673 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5674 | .block_erasers = |
| 5675 | { |
| 5676 | { |
| 5677 | .eraseblocks = { {4 * 1024, 128} }, |
| 5678 | .block_erase = erase_sector_jedec, |
| 5679 | }, { |
| 5680 | .eraseblocks = { {512 * 1024, 1} }, |
| 5681 | .block_erase = erase_chip_block_jedec, |
| 5682 | } |
| 5683 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5684 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5685 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5686 | }, |
| 5687 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5688 | { |
| 5689 | .vendor = "SST", |
| 5690 | .name = "SST39VF512", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5691 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5692 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5693 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5694 | .total_size = 64, |
| 5695 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5696 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5697 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5698 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 5699 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5700 | .block_erasers = |
| 5701 | { |
| 5702 | { |
| 5703 | .eraseblocks = { {4 * 1024, 16} }, |
| 5704 | .block_erase = erase_sector_jedec, |
| 5705 | }, { |
| 5706 | .eraseblocks = { {64 * 1024, 1} }, |
| 5707 | .block_erase = erase_chip_block_jedec, |
| 5708 | } |
| 5709 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5710 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5711 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5712 | }, |
| 5713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5714 | { |
| 5715 | .vendor = "SST", |
| 5716 | .name = "SST39VF010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5717 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5718 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5719 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5720 | .total_size = 128, |
| 5721 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5722 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5723 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5724 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 5725 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5726 | .block_erasers = |
| 5727 | { |
| 5728 | { |
| 5729 | .eraseblocks = { {4 * 1024, 32} }, |
| 5730 | .block_erase = erase_sector_jedec, |
| 5731 | }, { |
| 5732 | .eraseblocks = { {128 * 1024, 1} }, |
| 5733 | .block_erase = erase_chip_block_jedec, |
| 5734 | } |
| 5735 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5736 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5737 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5738 | }, |
| 5739 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5740 | { |
| 5741 | .vendor = "SST", |
| 5742 | .name = "SST39VF020", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5743 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5744 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5745 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5746 | .total_size = 256, |
| 5747 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5748 | .feature_bits = FEATURE_EITHER_RESET, |
| 5749 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5750 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 5751 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5752 | .block_erasers = |
| 5753 | { |
| 5754 | { |
| 5755 | .eraseblocks = { {4 * 1024, 64} }, |
| 5756 | .block_erase = erase_sector_jedec, |
| 5757 | }, { |
| 5758 | .eraseblocks = { {256 * 1024, 1} }, |
| 5759 | .block_erase = erase_chip_block_jedec, |
| 5760 | } |
| 5761 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5762 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5763 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5764 | }, |
| 5765 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5766 | { |
| 5767 | .vendor = "SST", |
| 5768 | .name = "SST39VF040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5769 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5770 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5771 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5772 | .total_size = 512, |
| 5773 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5774 | .feature_bits = FEATURE_EITHER_RESET, |
| 5775 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5776 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 5777 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5778 | .block_erasers = |
| 5779 | { |
| 5780 | { |
| 5781 | .eraseblocks = { {4 * 1024, 128} }, |
| 5782 | .block_erase = erase_sector_jedec, |
| 5783 | }, { |
| 5784 | .eraseblocks = { {512 * 1024, 1} }, |
| 5785 | .block_erase = erase_chip_block_jedec, |
| 5786 | } |
| 5787 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5789 | .read = read_memmapped, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 5790 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5791 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5792 | { |
| 5793 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5794 | .name = "SST39VF080", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5795 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5796 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5797 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5798 | .total_size = 1024, |
| 5799 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5800 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5801 | .tested = TEST_UNTESTED, |
| 5802 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 5803 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5804 | .block_erasers = |
| 5805 | { |
| 5806 | { |
| 5807 | .eraseblocks = { {4 * 1024, 256} }, |
| 5808 | .block_erase = erase_sector_jedec, |
| 5809 | }, { |
| 5810 | .eraseblocks = { {64 * 1024, 16} }, |
| 5811 | .block_erase = erase_block_jedec, |
| 5812 | }, { |
| 5813 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5814 | .block_erase = erase_chip_block_jedec, |
| 5815 | } |
| 5816 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5817 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5818 | .read = read_memmapped, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5819 | }, |
| 5820 | |
| 5821 | { |
| 5822 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5823 | .name = "SST49LF002A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5824 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5825 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5826 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5827 | .total_size = 256, |
| 5828 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5829 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 5830 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5831 | .probe = probe_jedec, |
| 5832 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5833 | .block_erasers = |
| 5834 | { |
| 5835 | { |
| 5836 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5837 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5838 | }, { |
| 5839 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5840 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5841 | }, { |
| 5842 | .eraseblocks = { {256 * 1024, 1} }, |
| 5843 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 5844 | } |
| 5845 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5846 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5847 | .unlock = unlock_sst_fwhub, |
| 5848 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5849 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5850 | }, |
| 5851 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5852 | { |
| 5853 | .vendor = "SST", |
| 5854 | .name = "SST49LF003A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5855 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5856 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5857 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5858 | .total_size = 384, |
| 5859 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5860 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Peter Lemenkov | 45835c4 | 2009-09-25 01:09:18 +0000 | [diff] [blame] | 5861 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5862 | .probe = probe_jedec, |
| 5863 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5864 | .block_erasers = |
| 5865 | { |
| 5866 | { |
| 5867 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5868 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5869 | }, { |
| 5870 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5871 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5872 | }, { |
| 5873 | .eraseblocks = { {384 * 1024, 1} }, |
| 5874 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 5875 | } |
| 5876 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5877 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5878 | .unlock = unlock_sst_fwhub, |
| 5879 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5880 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5881 | }, |
| 5882 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5883 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5884 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 5885 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 5886 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5887 | .vendor = "SST", |
| 5888 | .name = "SST49LF004A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5889 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5890 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5891 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5892 | .total_size = 512, |
| 5893 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5894 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 5895 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5896 | .probe = probe_jedec, |
| 5897 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5898 | .block_erasers = |
| 5899 | { |
| 5900 | { |
| 5901 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5902 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5903 | }, { |
| 5904 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5905 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5906 | }, { |
| 5907 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5908 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5909 | }, |
| 5910 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5911 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5912 | .unlock = unlock_sst_fwhub, |
| 5913 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5914 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5915 | }, |
| 5916 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5917 | { |
| 5918 | .vendor = "SST", |
| 5919 | .name = "SST49LF004C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5920 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5921 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5922 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5923 | .total_size = 512, |
| 5924 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5925 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5926 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5927 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5928 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5929 | .block_erasers = |
| 5930 | { |
| 5931 | { |
| 5932 | .eraseblocks = { {4 * 1024, 128} }, |
| 5933 | .block_erase = erase_sector_49lfxxxc, |
| 5934 | }, { |
| 5935 | .eraseblocks = { |
| 5936 | {64 * 1024, 7}, |
| 5937 | {32 * 1024, 1}, |
| 5938 | {8 * 1024, 2}, |
| 5939 | {16 * 1024, 1}, |
| 5940 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5941 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5942 | } |
| 5943 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5944 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5945 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5946 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5947 | }, |
| 5948 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5949 | { |
| 5950 | .vendor = "SST", |
| 5951 | .name = "SST49LF008A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5952 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5953 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5954 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5955 | .total_size = 1024, |
| 5956 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5957 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5958 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5959 | .probe = probe_jedec, |
| 5960 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5961 | .block_erasers = |
| 5962 | { |
| 5963 | { |
| 5964 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5965 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5966 | }, { |
| 5967 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5968 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5969 | }, { |
| 5970 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5971 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 5972 | } |
| 5973 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5974 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5975 | .unlock = unlock_sst_fwhub, |
| 5976 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5977 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5978 | }, |
| 5979 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5980 | { |
| 5981 | .vendor = "SST", |
| 5982 | .name = "SST49LF008C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5983 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5984 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5985 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5986 | .total_size = 1024, |
| 5987 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5988 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5989 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5990 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5991 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5992 | .block_erasers = |
| 5993 | { |
| 5994 | { |
| 5995 | .eraseblocks = { {4 * 1024, 256} }, |
| 5996 | .block_erase = erase_sector_49lfxxxc, |
| 5997 | }, { |
| 5998 | .eraseblocks = { |
| 5999 | {64 * 1024, 15}, |
| 6000 | {32 * 1024, 1}, |
| 6001 | {8 * 1024, 2}, |
| 6002 | {16 * 1024, 1}, |
| 6003 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 6004 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6005 | } |
| 6006 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 6007 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6008 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6009 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6010 | }, |
| 6011 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6012 | { |
| 6013 | .vendor = "SST", |
| 6014 | .name = "SST49LF016C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6015 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6016 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6017 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6018 | .total_size = 2048, |
| 6019 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6020 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6021 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6022 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6023 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6024 | .block_erasers = |
| 6025 | { |
| 6026 | { |
| 6027 | .eraseblocks = { {4 * 1024, 512} }, |
| 6028 | .block_erase = erase_sector_49lfxxxc, |
| 6029 | }, { |
| 6030 | .eraseblocks = { |
| 6031 | {64 * 1024, 31}, |
| 6032 | {32 * 1024, 1}, |
| 6033 | {8 * 1024, 2}, |
| 6034 | {16 * 1024, 1}, |
| 6035 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 6036 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6037 | } |
| 6038 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 6039 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6040 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6041 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6042 | }, |
| 6043 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6044 | { |
| 6045 | .vendor = "SST", |
| 6046 | .name = "SST49LF020", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6047 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6048 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6049 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6050 | .total_size = 256, |
| 6051 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6052 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6053 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6054 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 6055 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6056 | .block_erasers = |
| 6057 | { |
| 6058 | { |
| 6059 | .eraseblocks = { {4 * 1024, 64} }, |
| 6060 | .block_erase = erase_sector_jedec, |
| 6061 | }, { |
| 6062 | .eraseblocks = { {16 * 1024, 16} }, |
| 6063 | .block_erase = erase_block_jedec, |
| 6064 | }, { |
| 6065 | .eraseblocks = { {256 * 1024, 1} }, |
| 6066 | .block_erase = NULL, |
| 6067 | } |
| 6068 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6069 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6070 | .read = read_memmapped, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 6071 | }, |
| 6072 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6073 | { |
| 6074 | .vendor = "SST", |
| 6075 | .name = "SST49LF020A", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6076 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6077 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6078 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6079 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 6080 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6081 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6082 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6083 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 6084 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6085 | .block_erasers = |
| 6086 | { |
| 6087 | { |
| 6088 | .eraseblocks = { {4 * 1024, 64} }, |
| 6089 | .block_erase = erase_sector_jedec, |
| 6090 | }, { |
| 6091 | .eraseblocks = { {16 * 1024, 16} }, |
| 6092 | .block_erase = erase_block_jedec, |
| 6093 | }, { |
| 6094 | .eraseblocks = { {256 * 1024, 1} }, |
| 6095 | .block_erase = NULL, |
| 6096 | } |
| 6097 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6098 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6099 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6100 | }, |
| 6101 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6102 | { |
| 6103 | .vendor = "SST", |
| 6104 | .name = "SST49LF040", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6105 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6106 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6107 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6108 | .total_size = 512, |
| 6109 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6110 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6111 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6112 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 6113 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6114 | .block_erasers = |
| 6115 | { |
| 6116 | { |
| 6117 | .eraseblocks = { {4 * 1024, 128} }, |
| 6118 | .block_erase = erase_sector_jedec, |
| 6119 | }, { |
| 6120 | .eraseblocks = { {64 * 1024, 8} }, |
| 6121 | .block_erase = erase_block_jedec, |
| 6122 | }, { |
| 6123 | .eraseblocks = { {512 * 1024, 1} }, |
| 6124 | .block_erase = NULL, |
| 6125 | } |
| 6126 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6127 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6128 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6129 | }, |
| 6130 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6131 | { |
| 6132 | .vendor = "SST", |
| 6133 | .name = "SST49LF040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6134 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6135 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6136 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6137 | .total_size = 512, |
| 6138 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 6139 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6140 | .tested = TEST_OK_PRE, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6141 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6142 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6143 | .block_erasers = |
| 6144 | { |
| 6145 | { |
| 6146 | .eraseblocks = { {4 * 1024, 128} }, |
| 6147 | .block_erase = erase_sector_jedec, |
| 6148 | }, { |
| 6149 | .eraseblocks = { {64 * 1024, 8} }, |
| 6150 | .block_erase = erase_block_jedec, |
| 6151 | }, { |
| 6152 | .eraseblocks = { {512 * 1024, 1} }, |
| 6153 | .block_erase = NULL, |
| 6154 | } |
| 6155 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 6156 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6157 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6158 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6159 | }, |
| 6160 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6161 | { |
| 6162 | .vendor = "SST", |
| 6163 | .name = "SST49LF080A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6164 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6165 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6166 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6167 | .total_size = 1024, |
| 6168 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6169 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 6170 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6171 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6172 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6173 | .block_erasers = |
| 6174 | { |
| 6175 | { |
| 6176 | .eraseblocks = { {4 * 1024, 256} }, |
| 6177 | .block_erase = erase_sector_jedec, |
| 6178 | }, { |
| 6179 | .eraseblocks = { {64 * 1024, 16} }, |
| 6180 | .block_erase = erase_block_jedec, |
| 6181 | }, { |
| 6182 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6183 | .block_erase = NULL, |
| 6184 | } |
| 6185 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6186 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6187 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6188 | }, |
| 6189 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6190 | { |
| 6191 | .vendor = "SST", |
| 6192 | .name = "SST49LF160C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6193 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6194 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6195 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6196 | .total_size = 2048, |
| 6197 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6198 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6199 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6200 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6201 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6202 | .block_erasers = |
| 6203 | { |
| 6204 | { |
| 6205 | .eraseblocks = { {4 * 1024, 512} }, |
| 6206 | .block_erase = erase_sector_49lfxxxc, |
| 6207 | }, { |
| 6208 | .eraseblocks = { |
| 6209 | {64 * 1024, 31}, |
| 6210 | {32 * 1024, 1}, |
| 6211 | {8 * 1024, 2}, |
| 6212 | {16 * 1024, 1}, |
| 6213 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 6214 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6215 | } |
| 6216 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 6217 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6218 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6219 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6220 | }, |
| 6221 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6222 | { |
| 6223 | .vendor = "ST", |
| 6224 | .name = "M25P05-A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6225 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6226 | .manufacture_id = ST_ID, |
| 6227 | .model_id = ST_M25P05A, |
| 6228 | .total_size = 64, |
| 6229 | .page_size = 256, |
| 6230 | .tested = TEST_UNTESTED, |
| 6231 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6232 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6233 | .block_erasers = |
| 6234 | { |
| 6235 | { |
| 6236 | .eraseblocks = { {32 * 1024, 2} }, |
| 6237 | .block_erase = spi_block_erase_d8, |
| 6238 | }, { |
| 6239 | .eraseblocks = { {64 * 1024, 1} }, |
| 6240 | .block_erase = spi_block_erase_c7, |
| 6241 | } |
| 6242 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6243 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6244 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6245 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6246 | }, |
| 6247 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6248 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 6249 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 6250 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6251 | * only is successful if RDID does not work. |
| 6252 | */ |
| 6253 | { |
| 6254 | .vendor = "ST", |
| 6255 | .name = "M25P05.RES", |
| 6256 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 6257 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6258 | .model_id = ST_M25P05_RES, |
| 6259 | .total_size = 64, |
| 6260 | .page_size = 256, |
| 6261 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 6262 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6263 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6264 | .block_erasers = |
| 6265 | { |
| 6266 | { |
| 6267 | .eraseblocks = { {32 * 1024, 2} }, |
| 6268 | .block_erase = spi_block_erase_d8, |
| 6269 | }, { |
| 6270 | .eraseblocks = { {64 * 1024, 1} }, |
| 6271 | .block_erase = spi_block_erase_c7, |
| 6272 | } |
| 6273 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6274 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6275 | .write = spi_chip_write_1, /* 128 */ |
| 6276 | .read = spi_chip_read, |
| 6277 | }, |
| 6278 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6279 | { |
| 6280 | .vendor = "ST", |
| 6281 | .name = "M25P10-A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6282 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6283 | .manufacture_id = ST_ID, |
| 6284 | .model_id = ST_M25P10A, |
| 6285 | .total_size = 128, |
| 6286 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6287 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6288 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6289 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6290 | .block_erasers = |
| 6291 | { |
| 6292 | { |
| 6293 | .eraseblocks = { {32 * 1024, 4} }, |
| 6294 | .block_erase = spi_block_erase_d8, |
| 6295 | }, { |
| 6296 | .eraseblocks = { {128 * 1024, 1} }, |
| 6297 | .block_erase = spi_block_erase_c7, |
| 6298 | } |
| 6299 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6300 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6301 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6302 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6303 | }, |
| 6304 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6305 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 6306 | { |
| 6307 | .vendor = "ST", |
| 6308 | .name = "M25P10.RES", |
| 6309 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 6310 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6311 | .model_id = ST_M25P10_RES, |
| 6312 | .total_size = 128, |
| 6313 | .page_size = 256, |
| 6314 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 6315 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6316 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6317 | .block_erasers = |
| 6318 | { |
| 6319 | { |
| 6320 | .eraseblocks = { {32 * 1024, 4} }, |
| 6321 | .block_erase = spi_block_erase_d8, |
| 6322 | }, { |
| 6323 | .eraseblocks = { {128 * 1024, 1} }, |
| 6324 | .block_erase = spi_block_erase_c7, |
| 6325 | } |
| 6326 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6327 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 6328 | .write = spi_chip_write_1, /* 128 */ |
| 6329 | .read = spi_chip_read, |
| 6330 | }, |
| 6331 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6332 | { |
| 6333 | .vendor = "ST", |
| 6334 | .name = "M25P20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6335 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6336 | .manufacture_id = ST_ID, |
| 6337 | .model_id = ST_M25P20, |
| 6338 | .total_size = 256, |
| 6339 | .page_size = 256, |
| 6340 | .tested = TEST_UNTESTED, |
| 6341 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6342 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6343 | .block_erasers = |
| 6344 | { |
| 6345 | { |
| 6346 | .eraseblocks = { {64 * 1024, 4} }, |
| 6347 | .block_erase = spi_block_erase_d8, |
| 6348 | }, { |
| 6349 | .eraseblocks = { {256 * 1024, 1} }, |
| 6350 | .block_erase = spi_block_erase_c7, |
| 6351 | } |
| 6352 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6353 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6354 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6355 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6356 | }, |
| 6357 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6358 | { |
| 6359 | .vendor = "ST", |
| 6360 | .name = "M25P40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6361 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6362 | .manufacture_id = ST_ID, |
| 6363 | .model_id = ST_M25P40, |
| 6364 | .total_size = 512, |
| 6365 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6366 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6367 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6368 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6369 | .block_erasers = |
| 6370 | { |
| 6371 | { |
| 6372 | .eraseblocks = { {64 * 1024, 8} }, |
| 6373 | .block_erase = spi_block_erase_d8, |
| 6374 | }, { |
| 6375 | .eraseblocks = { {512 * 1024, 1} }, |
| 6376 | .block_erase = spi_block_erase_c7, |
| 6377 | } |
| 6378 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6379 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6380 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6381 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6382 | }, |
| 6383 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6384 | { |
| 6385 | .vendor = "ST", |
| 6386 | .name = "M25P40-old", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6387 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 6388 | .manufacture_id = 0, /* Not used. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6389 | .model_id = ST_M25P40_RES, |
| 6390 | .total_size = 512, |
| 6391 | .page_size = 256, |
| 6392 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 6393 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6394 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6395 | .block_erasers = |
| 6396 | { |
| 6397 | { |
| 6398 | .eraseblocks = { {64 * 1024, 8} }, |
| 6399 | .block_erase = spi_block_erase_d8, |
| 6400 | }, { |
| 6401 | .eraseblocks = { {512 * 1024, 1} }, |
| 6402 | .block_erase = spi_block_erase_c7, |
| 6403 | } |
| 6404 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6405 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6406 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6407 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6408 | }, |
| 6409 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6410 | { |
| 6411 | .vendor = "ST", |
| 6412 | .name = "M25P80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6413 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6414 | .manufacture_id = ST_ID, |
| 6415 | .model_id = ST_M25P80, |
| 6416 | .total_size = 1024, |
| 6417 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6418 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6419 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6420 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6421 | .block_erasers = |
| 6422 | { |
| 6423 | { |
| 6424 | .eraseblocks = { {64 * 1024, 16} }, |
| 6425 | .block_erase = spi_block_erase_d8, |
| 6426 | }, { |
| 6427 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6428 | .block_erase = spi_block_erase_c7, |
| 6429 | } |
| 6430 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6431 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6432 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6433 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6434 | }, |
| 6435 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6436 | { |
| 6437 | .vendor = "ST", |
| 6438 | .name = "M25P16", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6439 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6440 | .manufacture_id = ST_ID, |
| 6441 | .model_id = ST_M25P16, |
| 6442 | .total_size = 2048, |
| 6443 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6444 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6445 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6446 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6447 | .block_erasers = |
| 6448 | { |
| 6449 | { |
| 6450 | .eraseblocks = { {64 * 1024, 32} }, |
| 6451 | .block_erase = spi_block_erase_d8, |
| 6452 | }, { |
| 6453 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6454 | .block_erase = spi_block_erase_c7, |
| 6455 | } |
| 6456 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6457 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6458 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6459 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6460 | }, |
| 6461 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6462 | { |
| 6463 | .vendor = "ST", |
| 6464 | .name = "M25P32", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6465 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6466 | .manufacture_id = ST_ID, |
| 6467 | .model_id = ST_M25P32, |
| 6468 | .total_size = 4096, |
| 6469 | .page_size = 256, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame^] | 6470 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6471 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6472 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6473 | .block_erasers = |
| 6474 | { |
| 6475 | { |
| 6476 | .eraseblocks = { {64 * 1024, 64} }, |
| 6477 | .block_erase = spi_block_erase_d8, |
| 6478 | }, { |
| 6479 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6480 | .block_erase = spi_block_erase_c7, |
| 6481 | } |
| 6482 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6483 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6484 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6485 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6486 | }, |
| 6487 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6488 | { |
| 6489 | .vendor = "ST", |
| 6490 | .name = "M25P64", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6491 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6492 | .manufacture_id = ST_ID, |
| 6493 | .model_id = ST_M25P64, |
| 6494 | .total_size = 8192, |
| 6495 | .page_size = 256, |
| 6496 | .tested = TEST_UNTESTED, |
| 6497 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6498 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6499 | .block_erasers = |
| 6500 | { |
| 6501 | { |
| 6502 | .eraseblocks = { {64 * 1024, 128} }, |
| 6503 | .block_erase = spi_block_erase_d8, |
| 6504 | }, { |
| 6505 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6506 | .block_erase = spi_block_erase_c7, |
| 6507 | } |
| 6508 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6509 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6510 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6511 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6512 | }, |
| 6513 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6514 | { |
| 6515 | .vendor = "ST", |
| 6516 | .name = "M25P128", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6517 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6518 | .manufacture_id = ST_ID, |
| 6519 | .model_id = ST_M25P128, |
| 6520 | .total_size = 16384, |
| 6521 | .page_size = 256, |
| 6522 | .tested = TEST_UNTESTED, |
| 6523 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6524 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6525 | .block_erasers = |
| 6526 | { |
| 6527 | { |
| 6528 | .eraseblocks = { {256 * 1024, 64} }, |
| 6529 | .block_erase = spi_block_erase_d8, |
| 6530 | }, { |
| 6531 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6532 | .block_erase = spi_block_erase_c7, |
| 6533 | } |
| 6534 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6535 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6536 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6537 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6538 | }, |
| 6539 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6540 | { |
| 6541 | .vendor = "ST", |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 6542 | .name = "M25PX16", |
| 6543 | .bustype = CHIP_BUSTYPE_SPI, |
| 6544 | .manufacture_id = ST_ID, |
| 6545 | .model_id = ST_M25PX16, |
| 6546 | .total_size = 2048, |
| 6547 | .page_size = 256, |
| 6548 | .tested = TEST_OK_PREW, |
| 6549 | .probe = probe_spi_rdid, |
| 6550 | .probe_timing = TIMING_ZERO, |
| 6551 | .block_erasers = |
| 6552 | { |
| 6553 | { |
| 6554 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 6555 | .block_erase = spi_block_erase_20, |
| 6556 | }, { |
| 6557 | .eraseblocks = { {64 * 1024, 32} }, |
| 6558 | .block_erase = spi_block_erase_d8, |
| 6559 | }, { |
| 6560 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6561 | .block_erase = spi_block_erase_c7, |
| 6562 | } |
| 6563 | }, |
| 6564 | .unlock = spi_disable_blockprotect, |
| 6565 | .write = spi_chip_write_256, |
| 6566 | .read = spi_chip_read, |
| 6567 | }, |
| 6568 | |
| 6569 | { |
| 6570 | .vendor = "ST", |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 6571 | .name = "M25PX32", |
| 6572 | .bustype = CHIP_BUSTYPE_SPI, |
| 6573 | .manufacture_id = ST_ID, |
| 6574 | .model_id = ST_M25PX32, |
| 6575 | .total_size = 4096, |
| 6576 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6577 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 6578 | .probe = probe_spi_rdid, |
| 6579 | .probe_timing = TIMING_ZERO, |
| 6580 | .block_erasers = |
| 6581 | { |
| 6582 | { |
| 6583 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 6584 | .block_erase = spi_block_erase_20, |
| 6585 | }, { |
| 6586 | .eraseblocks = { {64 * 1024, 64} }, |
| 6587 | .block_erase = spi_block_erase_d8, |
| 6588 | }, { |
| 6589 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6590 | .block_erase = spi_block_erase_c7, |
| 6591 | } |
| 6592 | }, |
| 6593 | .unlock = spi_disable_blockprotect, |
| 6594 | .write = spi_chip_write_256, |
| 6595 | .read = spi_chip_read, |
| 6596 | }, |
| 6597 | |
| 6598 | { |
| 6599 | .vendor = "ST", |
| 6600 | .name = "M25PX64", |
| 6601 | .bustype = CHIP_BUSTYPE_SPI, |
| 6602 | .manufacture_id = ST_ID, |
| 6603 | .model_id = ST_M25PX64, |
| 6604 | .total_size = 8192, |
| 6605 | .page_size = 256, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6606 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 6607 | .probe = probe_spi_rdid, |
| 6608 | .probe_timing = TIMING_ZERO, |
| 6609 | .block_erasers = |
| 6610 | { |
| 6611 | { |
| 6612 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 6613 | .block_erase = spi_block_erase_20, |
| 6614 | }, { |
| 6615 | .eraseblocks = { {64 * 1024, 128} }, |
| 6616 | .block_erase = spi_block_erase_d8, |
| 6617 | }, { |
| 6618 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6619 | .block_erase = spi_block_erase_c7, |
| 6620 | } |
| 6621 | }, |
| 6622 | .unlock = spi_disable_blockprotect, |
| 6623 | .write = spi_chip_write_256, |
| 6624 | .read = spi_chip_read, |
| 6625 | }, |
| 6626 | |
| 6627 | { |
| 6628 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6629 | .name = "M29F002B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6630 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6631 | .manufacture_id = ST_ID, |
| 6632 | .model_id = ST_M29F002B, |
| 6633 | .total_size = 256, |
| 6634 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6635 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6636 | .tested = TEST_UNTESTED, |
| 6637 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6638 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6639 | .block_erasers = |
| 6640 | { |
| 6641 | { |
| 6642 | .eraseblocks = { |
| 6643 | {16 * 1024, 1}, |
| 6644 | {8 * 1024, 2}, |
| 6645 | {32 * 1024, 1}, |
| 6646 | {64 * 1024, 3}, |
| 6647 | }, |
| 6648 | .block_erase = erase_sector_jedec, |
| 6649 | }, { |
| 6650 | .eraseblocks = { {256 * 1024, 1} }, |
| 6651 | .block_erase = erase_chip_block_jedec, |
| 6652 | } |
| 6653 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6654 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6655 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6656 | }, |
| 6657 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6658 | { |
| 6659 | .vendor = "ST", |
| 6660 | .name = "M29F002T/NT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6661 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6662 | .manufacture_id = ST_ID, |
| 6663 | .model_id = ST_M29F002T, |
| 6664 | .total_size = 256, |
| 6665 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6666 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
| 6667 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6668 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6669 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6670 | .block_erasers = |
| 6671 | { |
| 6672 | { |
| 6673 | .eraseblocks = { |
| 6674 | {64 * 1024, 3}, |
| 6675 | {32 * 1024, 1}, |
| 6676 | {8 * 1024, 2}, |
| 6677 | {16 * 1024, 1}, |
| 6678 | }, |
| 6679 | .block_erase = erase_sector_jedec, |
| 6680 | }, { |
| 6681 | .eraseblocks = { {256 * 1024, 1} }, |
| 6682 | .block_erase = erase_chip_block_jedec, |
| 6683 | } |
| 6684 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6685 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6686 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6687 | }, |
| 6688 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6689 | { |
| 6690 | .vendor = "ST", |
| 6691 | .name = "M29F040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6692 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6693 | .manufacture_id = ST_ID, |
| 6694 | .model_id = ST_M29F040B, |
| 6695 | .total_size = 512, |
| 6696 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6697 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6698 | .tested = TEST_UNTESTED, |
| 6699 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6700 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6701 | .block_erasers = |
| 6702 | { |
| 6703 | { |
| 6704 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6705 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6706 | }, { |
| 6707 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6708 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6709 | } |
| 6710 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6711 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6712 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6713 | }, |
| 6714 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6715 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6716 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6717 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 6718 | .name = "M29F400BB", |
| 6719 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 6720 | .manufacture_id = ST_ID, |
| 6721 | .model_id = ST_M29F400BB, |
| 6722 | .total_size = 512, |
| 6723 | .page_size = 64 * 1024, |
| 6724 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6725 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 6726 | .probe = probe_m29f400bt, |
| 6727 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 6728 | .block_erasers = |
| 6729 | { |
| 6730 | { |
| 6731 | .eraseblocks = { |
| 6732 | {16 * 1024, 1}, |
| 6733 | {8 * 1024, 2}, |
| 6734 | {32 * 1024, 1}, |
| 6735 | {64 * 1024, 7}, |
| 6736 | }, |
| 6737 | .block_erase = block_erase_m29f400bt, |
| 6738 | }, { |
| 6739 | .eraseblocks = { {512 * 1024, 1} }, |
| 6740 | .block_erase = block_erase_chip_m29f400bt, |
| 6741 | } |
| 6742 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6743 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 6744 | .read = read_memmapped, |
| 6745 | }, |
| 6746 | { |
| 6747 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 6748 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6749 | .name = "M29F400BT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6750 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6751 | .manufacture_id = ST_ID, |
| 6752 | .model_id = ST_M29F400BT, |
| 6753 | .total_size = 512, |
| 6754 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6755 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6756 | .tested = TEST_UNTESTED, |
| 6757 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6758 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6759 | .block_erasers = |
| 6760 | { |
| 6761 | { |
| 6762 | .eraseblocks = { |
| 6763 | {64 * 1024, 7}, |
| 6764 | {32 * 1024, 1}, |
| 6765 | {8 * 1024, 2}, |
| 6766 | {16 * 1024, 1}, |
| 6767 | }, |
| 6768 | .block_erase = block_erase_m29f400bt, |
| 6769 | }, { |
| 6770 | .eraseblocks = { {512 * 1024, 1} }, |
| 6771 | .block_erase = block_erase_chip_m29f400bt, |
| 6772 | } |
| 6773 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 6774 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6775 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6776 | }, |
| 6777 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6778 | { |
| 6779 | .vendor = "ST", |
| 6780 | .name = "M29W010B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6781 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6782 | .manufacture_id = ST_ID, |
| 6783 | .model_id = ST_M29W010B, |
| 6784 | .total_size = 128, |
| 6785 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6786 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6787 | .tested = TEST_UNTESTED, |
| 6788 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6789 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6790 | .block_erasers = |
| 6791 | { |
| 6792 | { |
| 6793 | .eraseblocks = { {16 * 1024, 8}, }, |
| 6794 | .block_erase = erase_sector_jedec, |
| 6795 | }, { |
| 6796 | .eraseblocks = { {128 * 1024, 1} }, |
| 6797 | .block_erase = erase_chip_block_jedec, |
| 6798 | } |
| 6799 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6800 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6801 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6802 | }, |
| 6803 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6804 | { |
| 6805 | .vendor = "ST", |
| 6806 | .name = "M29W040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6807 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6808 | .manufacture_id = ST_ID, |
| 6809 | .model_id = ST_M29W040B, |
| 6810 | .total_size = 512, |
| 6811 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6812 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6813 | .tested = TEST_UNTESTED, |
| 6814 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6815 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6816 | .block_erasers = |
| 6817 | { |
| 6818 | { |
| 6819 | .eraseblocks = { {64 * 1024, 8}, }, |
| 6820 | .block_erase = erase_sector_jedec, |
| 6821 | }, { |
| 6822 | .eraseblocks = { {512 * 1024, 1} }, |
| 6823 | .block_erase = erase_chip_block_jedec, |
| 6824 | } |
| 6825 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6826 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6827 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6828 | }, |
| 6829 | |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 6830 | { |
| 6831 | .vendor = "ST", |
| 6832 | .name = "M29W512B", |
| 6833 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 6834 | .manufacture_id = ST_ID, |
| 6835 | .model_id = ST_M29W512B, |
| 6836 | .total_size = 64, |
| 6837 | .page_size = 64 * 1024, |
| 6838 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6839 | .tested = TEST_OK_PRE, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 6840 | .probe = probe_jedec, |
| 6841 | .probe_timing = TIMING_ZERO, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 6842 | .block_erasers = |
| 6843 | { |
| 6844 | { |
| 6845 | .eraseblocks = { {64 * 1024, 1} }, |
| 6846 | .block_erase = erase_chip_block_jedec, |
| 6847 | } |
| 6848 | }, |
| 6849 | .write = write_jedec_1, |
| 6850 | .read = read_memmapped, |
| 6851 | }, |
| 6852 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6853 | { |
| 6854 | .vendor = "ST", |
| 6855 | .name = "M50FLW040A", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6856 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6857 | .manufacture_id = ST_ID, |
| 6858 | .model_id = ST_M50FLW040A, |
| 6859 | .total_size = 512, |
| 6860 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6861 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6862 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6863 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6864 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6865 | .block_erasers = |
| 6866 | { |
| 6867 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6868 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 6869 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6870 | {64 * 1024, 5}, /* block */ |
| 6871 | {4 * 1024, 16}, /* sector */ |
| 6872 | {4 * 1024, 16}, /* sector */ |
| 6873 | }, |
| 6874 | .block_erase = NULL, |
| 6875 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6876 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6877 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6878 | } |
| 6879 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6880 | .unlock = unlock_stm50flw0x0x, |
| 6881 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6882 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6883 | }, |
| 6884 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6885 | { |
| 6886 | .vendor = "ST", |
| 6887 | .name = "M50FLW040B", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6888 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6889 | .manufacture_id = ST_ID, |
| 6890 | .model_id = ST_M50FLW040B, |
| 6891 | .total_size = 512, |
| 6892 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6893 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6894 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6895 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6896 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6897 | .block_erasers = |
| 6898 | { |
| 6899 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6900 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 6901 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6902 | {4 * 1024, 16}, /* sector */ |
| 6903 | {64 * 1024, 5}, /* block */ |
| 6904 | {4 * 1024, 16}, /* sector */ |
| 6905 | }, |
| 6906 | .block_erase = NULL, |
| 6907 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6908 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6909 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6910 | } |
| 6911 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6912 | .unlock = unlock_stm50flw0x0x, |
| 6913 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6914 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6915 | }, |
| 6916 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6917 | { |
| 6918 | .vendor = "ST", |
| 6919 | .name = "M50FLW080A", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6920 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6921 | .manufacture_id = ST_ID, |
| 6922 | .model_id = ST_M50FLW080A, |
| 6923 | .total_size = 1024, |
| 6924 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6925 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6926 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6927 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6928 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6929 | .block_erasers = |
| 6930 | { |
| 6931 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6932 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 6933 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6934 | {64 * 1024, 13}, /* block */ |
| 6935 | {4 * 1024, 16}, /* sector */ |
| 6936 | {4 * 1024, 16}, /* sector */ |
| 6937 | }, |
| 6938 | .block_erase = NULL, |
| 6939 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6940 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6941 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6942 | } |
| 6943 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6944 | .unlock = unlock_stm50flw0x0x, |
| 6945 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6946 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6947 | }, |
| 6948 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6949 | { |
| 6950 | .vendor = "ST", |
| 6951 | .name = "M50FLW080B", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6952 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6953 | .manufacture_id = ST_ID, |
| 6954 | .model_id = ST_M50FLW080B, |
| 6955 | .total_size = 1024, |
| 6956 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6957 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6958 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6959 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6960 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6961 | .block_erasers = |
| 6962 | { |
| 6963 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6964 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 6965 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6966 | {4 * 1024, 16}, /* sector */ |
| 6967 | {64 * 1024, 13}, /* block */ |
| 6968 | {4 * 1024, 16}, /* sector */ |
| 6969 | }, |
| 6970 | .block_erase = NULL, |
| 6971 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6972 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6973 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6974 | } |
| 6975 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6976 | .unlock = unlock_stm50flw0x0x, |
| 6977 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6978 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6979 | }, |
| 6980 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6981 | { |
| 6982 | .vendor = "ST", |
| 6983 | .name = "M50FW002", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6984 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6985 | .manufacture_id = ST_ID, |
| 6986 | .model_id = ST_M50FW002, |
| 6987 | .total_size = 256, |
| 6988 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6989 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6990 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6991 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6992 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6993 | .block_erasers = |
| 6994 | { |
| 6995 | { |
| 6996 | .eraseblocks = { |
| 6997 | {64 * 1024, 3}, |
| 6998 | {32 * 1024, 1}, |
| 6999 | {8 * 1024, 2}, |
| 7000 | {16 * 1024, 1}, |
| 7001 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7002 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7003 | } |
| 7004 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7005 | .unlock = unlock_stm50flw0x0x, |
| 7006 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7007 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7008 | }, |
| 7009 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7010 | { |
| 7011 | .vendor = "ST", |
| 7012 | .name = "M50FW016", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7013 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7014 | .manufacture_id = ST_ID, |
| 7015 | .model_id = ST_M50FW016, |
| 7016 | .total_size = 2048, |
| 7017 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7018 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7019 | .tested = TEST_UNTESTED, |
| 7020 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 7021 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7022 | .block_erasers = |
| 7023 | { |
| 7024 | { |
| 7025 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7026 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7027 | } |
| 7028 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7029 | .unlock = unlock_stm50flw0x0x, |
| 7030 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7031 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7032 | }, |
| 7033 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7034 | { |
| 7035 | .vendor = "ST", |
| 7036 | .name = "M50FW040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7037 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7038 | .manufacture_id = ST_ID, |
| 7039 | .model_id = ST_M50FW040, |
| 7040 | .total_size = 512, |
| 7041 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7042 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7043 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7044 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 7045 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7046 | .block_erasers = |
| 7047 | { |
| 7048 | { |
| 7049 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7050 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7051 | } |
| 7052 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7053 | .unlock = unlock_stm50flw0x0x, |
| 7054 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7055 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7056 | }, |
| 7057 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7058 | { |
| 7059 | .vendor = "ST", |
| 7060 | .name = "M50FW080", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7061 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7062 | .manufacture_id = ST_ID, |
| 7063 | .model_id = ST_M50FW080, |
| 7064 | .total_size = 1024, |
| 7065 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7066 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame^] | 7067 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7068 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 7069 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7070 | .block_erasers = |
| 7071 | { |
| 7072 | { |
| 7073 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7074 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7075 | } |
| 7076 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7077 | .unlock = unlock_stm50flw0x0x, |
| 7078 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7079 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7080 | }, |
| 7081 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7082 | { |
| 7083 | .vendor = "ST", |
| 7084 | .name = "M50LPW116", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7085 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7086 | .manufacture_id = ST_ID, |
| 7087 | .model_id = ST_M50LPW116, |
| 7088 | .total_size = 2048, |
| 7089 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7090 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7091 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7092 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7093 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7094 | .block_erasers = |
| 7095 | { |
| 7096 | { |
| 7097 | .eraseblocks = { |
| 7098 | {4 * 1024, 16}, |
| 7099 | {64 * 1024, 30}, |
| 7100 | {32 * 1024, 1}, |
| 7101 | {8 * 1024, 2}, |
| 7102 | {16 * 1024, 1}, |
| 7103 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7104 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7105 | } |
| 7106 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7107 | .unlock = unlock_stm50flw0x0x, |
| 7108 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7109 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7110 | }, |
| 7111 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7112 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7113 | .vendor = "SyncMOS/MoselVitelic", |
| 7114 | .name = "{F,S,V}29C51001B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7115 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7116 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7117 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7118 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7119 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7120 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7121 | .tested = TEST_UNTESTED, |
| 7122 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7123 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7124 | .block_erasers = |
| 7125 | { |
| 7126 | { |
| 7127 | .eraseblocks = { {512, 256} }, |
| 7128 | .block_erase = erase_sector_jedec, |
| 7129 | }, { |
| 7130 | .eraseblocks = { {128 * 1024, 1} }, |
| 7131 | .block_erase = erase_chip_block_jedec, |
| 7132 | }, |
| 7133 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7134 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7135 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7136 | }, |
| 7137 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7138 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7139 | .vendor = "SyncMOS/MoselVitelic", |
| 7140 | .name = "{F,S,V}29C51001T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7141 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7142 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7143 | .model_id = SM_MVC_29C51001T, |
| 7144 | .total_size = 128, |
| 7145 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7146 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7147 | .tested = TEST_UNTESTED, |
| 7148 | .probe = probe_jedec, |
| 7149 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7150 | .block_erasers = |
| 7151 | { |
| 7152 | { |
| 7153 | .eraseblocks = { {512, 256} }, |
| 7154 | .block_erase = erase_sector_jedec, |
| 7155 | }, { |
| 7156 | .eraseblocks = { {128 * 1024, 1} }, |
| 7157 | .block_erase = erase_chip_block_jedec, |
| 7158 | }, |
| 7159 | }, |
| 7160 | .write = write_jedec_1, |
| 7161 | .read = read_memmapped, |
| 7162 | }, |
| 7163 | |
| 7164 | { |
| 7165 | .vendor = "SyncMOS/MoselVitelic", |
| 7166 | .name = "{F,S,V}29C51002B", |
| 7167 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 7168 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7169 | .model_id = SM_MVC_29C51002B, |
| 7170 | .total_size = 256, |
| 7171 | .page_size = 512, |
| 7172 | .feature_bits = FEATURE_EITHER_RESET, |
| 7173 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7174 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7175 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7176 | .block_erasers = |
| 7177 | { |
| 7178 | { |
| 7179 | .eraseblocks = { {512, 512} }, |
| 7180 | .block_erase = erase_sector_jedec, |
| 7181 | }, { |
| 7182 | .eraseblocks = { {256 * 1024, 1} }, |
| 7183 | .block_erase = erase_chip_block_jedec, |
| 7184 | }, |
| 7185 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7186 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7187 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7188 | }, |
| 7189 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7190 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7191 | .vendor = "SyncMOS/MoselVitelic", |
| 7192 | .name = "{F,S,V}29C51002T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7193 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7194 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7195 | .model_id = SM_MVC_29C51002T, |
| 7196 | .total_size = 256, |
| 7197 | .page_size = 512, |
| 7198 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7199 | .tested = TEST_OK_PRE, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7200 | .probe = probe_jedec, |
| 7201 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7202 | .block_erasers = |
| 7203 | { |
| 7204 | { |
| 7205 | .eraseblocks = { {512, 512} }, |
| 7206 | .block_erase = erase_sector_jedec, |
| 7207 | }, { |
| 7208 | .eraseblocks = { {256 * 1024, 1} }, |
| 7209 | .block_erase = erase_chip_block_jedec, |
| 7210 | }, |
| 7211 | }, |
| 7212 | .write = write_jedec_1, |
| 7213 | .read = read_memmapped, |
| 7214 | }, |
| 7215 | |
| 7216 | { |
| 7217 | .vendor = "SyncMOS/MoselVitelic", |
| 7218 | .name = "{F,S,V}29C51004B", |
| 7219 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 7220 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7221 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7222 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7223 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7224 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7225 | .tested = TEST_UNTESTED, |
| 7226 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7227 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7228 | .block_erasers = |
| 7229 | { |
| 7230 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7231 | .eraseblocks = { {1024, 512} }, |
| 7232 | .block_erase = erase_sector_jedec, |
| 7233 | }, { |
| 7234 | .eraseblocks = { {512 * 1024, 1} }, |
| 7235 | .block_erase = erase_chip_block_jedec, |
| 7236 | }, |
| 7237 | }, |
| 7238 | .write = write_jedec_1, |
| 7239 | .read = read_memmapped, |
| 7240 | }, |
| 7241 | |
| 7242 | { |
| 7243 | .vendor = "SyncMOS/MoselVitelic", |
| 7244 | .name = "{F,S,V}29C51004T", |
| 7245 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 7246 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7247 | .model_id = SM_MVC_29C51004T, |
| 7248 | .total_size = 512, |
| 7249 | .page_size = 1024, |
| 7250 | .feature_bits = FEATURE_EITHER_RESET, |
| 7251 | .tested = TEST_UNTESTED, |
| 7252 | .probe = probe_jedec, |
| 7253 | .probe_timing = TIMING_ZERO, |
| 7254 | .block_erasers = |
| 7255 | { |
| 7256 | { |
| 7257 | .eraseblocks = { {1024, 512} }, |
| 7258 | .block_erase = erase_sector_jedec, |
| 7259 | }, { |
| 7260 | .eraseblocks = { {512 * 1024, 1} }, |
| 7261 | .block_erase = erase_chip_block_jedec, |
| 7262 | }, |
| 7263 | }, |
| 7264 | .write = write_jedec_1, |
| 7265 | .read = read_memmapped, |
| 7266 | }, |
| 7267 | |
| 7268 | { |
| 7269 | .vendor = "SyncMOS/MoselVitelic", |
| 7270 | .name = "{S,V}29C31004B", |
| 7271 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 7272 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7273 | .model_id = SM_MVC_29C31004B, |
| 7274 | .total_size = 512, |
| 7275 | .page_size = 1024, |
| 7276 | .feature_bits = FEATURE_EITHER_RESET, |
| 7277 | .tested = TEST_UNTESTED, |
| 7278 | .probe = probe_jedec, |
| 7279 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7280 | .block_erasers = |
| 7281 | { |
| 7282 | { |
| 7283 | .eraseblocks = { {1024, 512} }, |
| 7284 | .block_erase = erase_sector_jedec, |
| 7285 | }, { |
| 7286 | .eraseblocks = { {512 * 1024, 1} }, |
| 7287 | .block_erase = erase_chip_block_jedec, |
| 7288 | }, |
| 7289 | }, |
| 7290 | .write = write_jedec_1, |
| 7291 | .read = read_memmapped, |
| 7292 | }, |
| 7293 | |
| 7294 | { |
| 7295 | .vendor = "SyncMOS/MoselVitelic", |
| 7296 | .name = "{S,V}29C31004T", |
| 7297 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 7298 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7299 | .model_id = SM_MVC_29C31004T, |
| 7300 | .total_size = 512, |
| 7301 | .page_size = 1024, |
| 7302 | .feature_bits = FEATURE_EITHER_RESET, |
| 7303 | .tested = TEST_UNTESTED, |
| 7304 | .probe = probe_jedec, |
| 7305 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7306 | .block_erasers = |
| 7307 | { |
| 7308 | { |
| 7309 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7310 | .block_erase = erase_sector_jedec, |
| 7311 | }, { |
| 7312 | .eraseblocks = { {512 * 1024, 1} }, |
| 7313 | .block_erase = erase_chip_block_jedec, |
| 7314 | }, |
| 7315 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7316 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7317 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7318 | }, |
| 7319 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7320 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 7321 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7322 | .name = "TMS29F002RB", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7323 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7324 | .manufacture_id = TI_OLD_ID, |
| 7325 | .model_id = TI_TMS29F002RB, |
| 7326 | .total_size = 256, |
| 7327 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7328 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7329 | .tested = TEST_UNTESTED, |
| 7330 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7331 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7332 | .block_erasers = |
| 7333 | { |
| 7334 | { |
| 7335 | .eraseblocks = { |
| 7336 | {16 * 1024, 1}, |
| 7337 | {8 * 1024, 2}, |
| 7338 | {32 * 1024, 1}, |
| 7339 | {64 * 1024, 3}, |
| 7340 | }, |
| 7341 | .block_erase = erase_sector_jedec, |
| 7342 | }, { |
| 7343 | .eraseblocks = { {256 * 1024, 1} }, |
| 7344 | .block_erase = erase_chip_block_jedec, |
| 7345 | }, |
| 7346 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7347 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7348 | .read = read_memmapped, |
| 7349 | }, |
| 7350 | |
| 7351 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 7352 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7353 | .name = "TMS29F002RT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7354 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7355 | .manufacture_id = TI_OLD_ID, |
| 7356 | .model_id = TI_TMS29F002RT, |
| 7357 | .total_size = 256, |
| 7358 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7359 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7360 | .tested = TEST_UNTESTED, |
| 7361 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7362 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7363 | .block_erasers = |
| 7364 | { |
| 7365 | { |
| 7366 | .eraseblocks = { |
| 7367 | {64 * 1024, 3}, |
| 7368 | {32 * 1024, 1}, |
| 7369 | {8 * 1024, 2}, |
| 7370 | {16 * 1024, 1}, |
| 7371 | }, |
| 7372 | .block_erase = erase_sector_jedec, |
| 7373 | }, { |
| 7374 | .eraseblocks = { {256 * 1024, 1} }, |
| 7375 | .block_erase = erase_chip_block_jedec, |
| 7376 | }, |
| 7377 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7378 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 7379 | .read = read_memmapped, |
| 7380 | }, |
| 7381 | |
| 7382 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7383 | .vendor = "Winbond", |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7384 | .name = "W25Q80", |
| 7385 | .bustype = CHIP_BUSTYPE_SPI, |
| 7386 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7387 | .model_id = WINBOND_NEX_W25Q80, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7388 | .total_size = 1024, |
| 7389 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7390 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7391 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7392 | .probe = probe_spi_rdid, |
| 7393 | .probe_timing = TIMING_ZERO, |
| 7394 | .block_erasers = |
| 7395 | { |
| 7396 | { |
| 7397 | .eraseblocks = { {4 * 1024, 256} }, |
| 7398 | .block_erase = spi_block_erase_20, |
| 7399 | }, { |
| 7400 | .eraseblocks = { {32 * 1024, 32} }, |
| 7401 | .block_erase = spi_block_erase_52, |
| 7402 | }, { |
| 7403 | .eraseblocks = { {64 * 1024, 16} }, |
| 7404 | .block_erase = spi_block_erase_d8, |
| 7405 | }, { |
| 7406 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7407 | .block_erase = spi_block_erase_60, |
| 7408 | }, { |
| 7409 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7410 | .block_erase = spi_block_erase_c7, |
| 7411 | } |
| 7412 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7413 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7414 | .write = spi_chip_write_256, |
| 7415 | .read = spi_chip_read, |
| 7416 | }, |
| 7417 | |
| 7418 | { |
| 7419 | .vendor = "Winbond", |
| 7420 | .name = "W25Q16", |
| 7421 | .bustype = CHIP_BUSTYPE_SPI, |
| 7422 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7423 | .model_id = WINBOND_NEX_W25Q16, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7424 | .total_size = 2048, |
| 7425 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7426 | .feature_bits = FEATURE_WRSR_WREN, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7427 | .tested = TEST_UNTESTED, |
| 7428 | .probe = probe_spi_rdid, |
| 7429 | .probe_timing = TIMING_ZERO, |
| 7430 | .block_erasers = |
| 7431 | { |
| 7432 | { |
| 7433 | .eraseblocks = { {4 * 1024, 512} }, |
| 7434 | .block_erase = spi_block_erase_20, |
| 7435 | }, { |
| 7436 | .eraseblocks = { {32 * 1024, 64} }, |
| 7437 | .block_erase = spi_block_erase_52, |
| 7438 | }, { |
| 7439 | .eraseblocks = { {64 * 1024, 32} }, |
| 7440 | .block_erase = spi_block_erase_d8, |
| 7441 | }, { |
| 7442 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7443 | .block_erase = spi_block_erase_60, |
| 7444 | }, { |
| 7445 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7446 | .block_erase = spi_block_erase_c7, |
| 7447 | } |
| 7448 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7449 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7450 | .write = spi_chip_write_256, |
| 7451 | .read = spi_chip_read, |
| 7452 | }, |
| 7453 | |
| 7454 | { |
| 7455 | .vendor = "Winbond", |
| 7456 | .name = "W25Q32", |
| 7457 | .bustype = CHIP_BUSTYPE_SPI, |
| 7458 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7459 | .model_id = WINBOND_NEX_W25Q32, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7460 | .total_size = 4096, |
| 7461 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7462 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7463 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7464 | .probe = probe_spi_rdid, |
| 7465 | .probe_timing = TIMING_ZERO, |
| 7466 | .block_erasers = |
| 7467 | { |
| 7468 | { |
| 7469 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7470 | .block_erase = spi_block_erase_20, |
| 7471 | }, { |
| 7472 | .eraseblocks = { {32 * 1024, 128} }, |
| 7473 | .block_erase = spi_block_erase_52, |
| 7474 | }, { |
| 7475 | .eraseblocks = { {64 * 1024, 64} }, |
| 7476 | .block_erase = spi_block_erase_d8, |
| 7477 | }, { |
| 7478 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7479 | .block_erase = spi_block_erase_60, |
| 7480 | }, { |
| 7481 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7482 | .block_erase = spi_block_erase_c7, |
| 7483 | } |
| 7484 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7485 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 7486 | .write = spi_chip_write_256, |
| 7487 | .read = spi_chip_read, |
| 7488 | }, |
| 7489 | |
| 7490 | { |
| 7491 | .vendor = "Winbond", |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 7492 | .name = "W25Q64", |
| 7493 | .bustype = CHIP_BUSTYPE_SPI, |
| 7494 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7495 | .model_id = WINBOND_NEX_W25Q64, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 7496 | .total_size = 8192, |
| 7497 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7498 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7499 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 7500 | .probe = probe_spi_rdid, |
| 7501 | .probe_timing = TIMING_ZERO, |
| 7502 | .block_erasers = |
| 7503 | { |
| 7504 | { |
| 7505 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7506 | .block_erase = spi_block_erase_20, |
| 7507 | }, { |
| 7508 | .eraseblocks = { {32 * 1024, 256} }, |
| 7509 | .block_erase = spi_block_erase_52, |
| 7510 | }, { |
| 7511 | .eraseblocks = { {64 * 1024, 128} }, |
| 7512 | .block_erase = spi_block_erase_d8, |
| 7513 | }, { |
| 7514 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7515 | .block_erase = spi_block_erase_60, |
| 7516 | }, { |
| 7517 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7518 | .block_erase = spi_block_erase_c7, |
| 7519 | } |
| 7520 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7521 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 7522 | .write = spi_chip_write_256, |
| 7523 | .read = spi_chip_read, |
| 7524 | }, |
| 7525 | |
| 7526 | { |
| 7527 | .vendor = "Winbond", |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame^] | 7528 | .name = "W25Q128", |
| 7529 | .bustype = CHIP_BUSTYPE_SPI, |
| 7530 | .manufacture_id = WINBOND_NEX_ID, |
| 7531 | .model_id = WINBOND_NEX_W25Q128, |
| 7532 | .total_size = 16384, |
| 7533 | .page_size = 256, |
| 7534 | .feature_bits = FEATURE_WRSR_WREN, |
| 7535 | .tested = TEST_OK_PROBE, |
| 7536 | .probe = probe_spi_rdid, |
| 7537 | .probe_timing = TIMING_ZERO, |
| 7538 | .block_erasers = |
| 7539 | { |
| 7540 | { |
| 7541 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7542 | .block_erase = spi_block_erase_20, |
| 7543 | }, { |
| 7544 | .eraseblocks = { {32 * 1024, 512} }, |
| 7545 | .block_erase = spi_block_erase_52, |
| 7546 | }, { |
| 7547 | .eraseblocks = { {64 * 1024, 256} }, |
| 7548 | .block_erase = spi_block_erase_d8, |
| 7549 | }, { |
| 7550 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7551 | .block_erase = spi_block_erase_60, |
| 7552 | }, { |
| 7553 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7554 | .block_erase = spi_block_erase_c7, |
| 7555 | } |
| 7556 | }, |
| 7557 | .unlock = spi_disable_blockprotect, |
| 7558 | .write = spi_chip_write_256, |
| 7559 | .read = spi_chip_read, |
| 7560 | }, |
| 7561 | |
| 7562 | { |
| 7563 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7564 | .name = "W25x10", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7565 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7566 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7567 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7568 | .total_size = 128, |
| 7569 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7570 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7571 | .tested = TEST_UNTESTED, |
| 7572 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7573 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7574 | .block_erasers = |
| 7575 | { |
| 7576 | { |
| 7577 | .eraseblocks = { {4 * 1024, 32} }, |
| 7578 | .block_erase = spi_block_erase_20, |
| 7579 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7580 | .eraseblocks = { {64 * 1024, 2} }, |
| 7581 | .block_erase = spi_block_erase_d8, |
| 7582 | }, { |
| 7583 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7584 | .block_erase = spi_block_erase_c7, |
| 7585 | } |
| 7586 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7587 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7588 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7589 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7590 | }, |
| 7591 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7592 | { |
| 7593 | .vendor = "Winbond", |
| 7594 | .name = "W25x20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7595 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7596 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7597 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7598 | .total_size = 256, |
| 7599 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7600 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7601 | .tested = TEST_UNTESTED, |
| 7602 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7603 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7604 | .block_erasers = |
| 7605 | { |
| 7606 | { |
| 7607 | .eraseblocks = { {4 * 1024, 64} }, |
| 7608 | .block_erase = spi_block_erase_20, |
| 7609 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7610 | .eraseblocks = { {64 * 1024, 4} }, |
| 7611 | .block_erase = spi_block_erase_d8, |
| 7612 | }, { |
| 7613 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7614 | .block_erase = spi_block_erase_c7, |
| 7615 | } |
| 7616 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7617 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7618 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7619 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7620 | }, |
| 7621 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7622 | { |
| 7623 | .vendor = "Winbond", |
| 7624 | .name = "W25x40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7625 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7626 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7627 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7628 | .total_size = 512, |
| 7629 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7630 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 7631 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7632 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7633 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7634 | .block_erasers = |
| 7635 | { |
| 7636 | { |
| 7637 | .eraseblocks = { {4 * 1024, 128} }, |
| 7638 | .block_erase = spi_block_erase_20, |
| 7639 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7640 | .eraseblocks = { {64 * 1024, 8} }, |
| 7641 | .block_erase = spi_block_erase_d8, |
| 7642 | }, { |
| 7643 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7644 | .block_erase = spi_block_erase_c7, |
| 7645 | } |
| 7646 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7647 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7648 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7649 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7650 | }, |
| 7651 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7652 | { |
| 7653 | .vendor = "Winbond", |
| 7654 | .name = "W25x80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7655 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7656 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7657 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7658 | .total_size = 1024, |
| 7659 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7660 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 7661 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7662 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7663 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7664 | .block_erasers = |
| 7665 | { |
| 7666 | { |
| 7667 | .eraseblocks = { {4 * 1024, 256} }, |
| 7668 | .block_erase = spi_block_erase_20, |
| 7669 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7670 | .eraseblocks = { {64 * 1024, 16} }, |
| 7671 | .block_erase = spi_block_erase_d8, |
| 7672 | }, { |
| 7673 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7674 | .block_erase = spi_block_erase_c7, |
| 7675 | } |
| 7676 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7677 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7678 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7679 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7680 | }, |
| 7681 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7682 | { |
| 7683 | .vendor = "Winbond", |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 7684 | .name = "W25x16", |
| 7685 | .bustype = CHIP_BUSTYPE_SPI, |
| 7686 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7687 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 7688 | .total_size = 2048, |
| 7689 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7690 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7691 | .tested = TEST_OK_PRE, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 7692 | .probe = probe_spi_rdid, |
| 7693 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7694 | .block_erasers = |
| 7695 | { |
| 7696 | { |
| 7697 | .eraseblocks = { {4 * 1024, 512} }, |
| 7698 | .block_erase = spi_block_erase_20, |
| 7699 | }, { |
| 7700 | .eraseblocks = { {32 * 1024, 64} }, |
| 7701 | .block_erase = spi_block_erase_52, |
| 7702 | }, { |
| 7703 | .eraseblocks = { {64 * 1024, 32} }, |
| 7704 | .block_erase = spi_block_erase_d8, |
| 7705 | }, { |
| 7706 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7707 | .block_erase = spi_block_erase_60, |
| 7708 | }, { |
| 7709 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7710 | .block_erase = spi_block_erase_c7, |
| 7711 | } |
| 7712 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7713 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 7714 | .write = spi_chip_write_256, |
| 7715 | .read = spi_chip_read, |
| 7716 | }, |
| 7717 | |
| 7718 | { |
| 7719 | .vendor = "Winbond", |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 7720 | .name = "W25x32", |
| 7721 | .bustype = CHIP_BUSTYPE_SPI, |
| 7722 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7723 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 7724 | .total_size = 4096, |
| 7725 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7726 | .feature_bits = FEATURE_WRSR_WREN, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 7727 | .tested = TEST_OK_PROBE, |
| 7728 | .probe = probe_spi_rdid, |
| 7729 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7730 | .block_erasers = |
| 7731 | { |
| 7732 | { |
| 7733 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7734 | .block_erase = spi_block_erase_20, |
| 7735 | }, { |
| 7736 | .eraseblocks = { {32 * 1024, 128} }, |
| 7737 | .block_erase = spi_block_erase_52, |
| 7738 | }, { |
| 7739 | .eraseblocks = { {64 * 1024, 64} }, |
| 7740 | .block_erase = spi_block_erase_d8, |
| 7741 | }, { |
| 7742 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7743 | .block_erase = spi_block_erase_60, |
| 7744 | }, { |
| 7745 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7746 | .block_erase = spi_block_erase_c7, |
| 7747 | } |
| 7748 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7749 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 7750 | .write = spi_chip_write_256, |
| 7751 | .read = spi_chip_read, |
| 7752 | }, |
| 7753 | |
| 7754 | { |
| 7755 | .vendor = "Winbond", |
| 7756 | .name = "W25x64", |
| 7757 | .bustype = CHIP_BUSTYPE_SPI, |
| 7758 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7759 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 7760 | .total_size = 8192, |
| 7761 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 7762 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame^] | 7763 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 7764 | .probe = probe_spi_rdid, |
| 7765 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7766 | .block_erasers = |
| 7767 | { |
| 7768 | { |
| 7769 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7770 | .block_erase = spi_block_erase_20, |
| 7771 | }, { |
| 7772 | .eraseblocks = { {32 * 1024, 256} }, |
| 7773 | .block_erase = spi_block_erase_52, |
| 7774 | }, { |
| 7775 | .eraseblocks = { {64 * 1024, 128} }, |
| 7776 | .block_erase = spi_block_erase_d8, |
| 7777 | }, { |
| 7778 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7779 | .block_erase = spi_block_erase_60, |
| 7780 | }, { |
| 7781 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7782 | .block_erase = spi_block_erase_c7, |
| 7783 | } |
| 7784 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7785 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 7786 | .write = spi_chip_write_256, |
| 7787 | .read = spi_chip_read, |
| 7788 | }, |
| 7789 | |
| 7790 | { |
| 7791 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7792 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7793 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7794 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7795 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7796 | .total_size = 128, |
| 7797 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7798 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 7799 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7800 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7801 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7802 | .block_erasers = |
| 7803 | { |
| 7804 | { |
| 7805 | .eraseblocks = { {128 * 1024, 1} }, |
| 7806 | .block_erase = erase_chip_block_jedec, |
| 7807 | } |
| 7808 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7809 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7810 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7811 | }, |
| 7812 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7813 | { |
| 7814 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7815 | .name = "W29C020(C)/W29C022", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 7816 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7817 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7818 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7819 | .total_size = 256, |
| 7820 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7821 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7822 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7823 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7824 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7825 | .block_erasers = |
| 7826 | { |
| 7827 | { |
| 7828 | .eraseblocks = { {256 * 1024, 1} }, |
| 7829 | .block_erase = erase_chip_block_jedec, |
| 7830 | } |
| 7831 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7832 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7833 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7834 | }, |
| 7835 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7836 | { |
| 7837 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7838 | .name = "W29C040/P", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 7839 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7840 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7841 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7842 | .total_size = 512, |
| 7843 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7844 | .feature_bits = FEATURE_LONG_RESET, |
| 7845 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7846 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7847 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7848 | .block_erasers = |
| 7849 | { |
| 7850 | { |
| 7851 | .eraseblocks = { {512 * 1024, 1} }, |
| 7852 | .block_erase = erase_chip_block_jedec, |
| 7853 | } |
| 7854 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7855 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7856 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7857 | }, |
| 7858 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7859 | { |
| 7860 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7861 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7862 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7863 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7864 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7865 | .total_size = 128, |
| 7866 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7867 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7868 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7869 | .probe = probe_w29ee011, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 7870 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7871 | .block_erasers = |
| 7872 | { |
| 7873 | { |
| 7874 | .eraseblocks = { {128 * 1024, 1} }, |
| 7875 | .block_erase = erase_chip_block_jedec, |
| 7876 | } |
| 7877 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7878 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7879 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7880 | }, |
| 7881 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7882 | { |
| 7883 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 7884 | .name = "W39L040", |
| 7885 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 7886 | .manufacture_id = WINBOND_ID, |
| 7887 | .model_id = WINBOND_W39L040, |
| 7888 | .total_size = 512, |
| 7889 | .page_size = 64 * 1024, |
| 7890 | .feature_bits = FEATURE_EITHER_RESET, |
| 7891 | .tested = TEST_OK_PR, |
| 7892 | .probe = probe_jedec, |
| 7893 | .probe_timing = 10, |
| 7894 | .block_erasers = |
| 7895 | { |
| 7896 | { |
| 7897 | .eraseblocks = { {4 * 1024, 128} }, |
| 7898 | .block_erase = erase_block_jedec, |
| 7899 | }, { |
| 7900 | .eraseblocks = { {64 * 1024, 8} }, |
| 7901 | .block_erase = erase_sector_jedec, |
| 7902 | }, { |
| 7903 | .eraseblocks = { {512 * 1024, 1} }, |
| 7904 | .block_erase = erase_chip_block_jedec, |
| 7905 | } |
| 7906 | }, |
| 7907 | .printlock = printlock_w39l040, |
| 7908 | .write = write_jedec_1, |
| 7909 | .read = read_memmapped, |
| 7910 | }, |
| 7911 | |
| 7912 | { |
| 7913 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7914 | .name = "W39V040A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7915 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7916 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7917 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7918 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7919 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7920 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7921 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7922 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7923 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7924 | .block_erasers = |
| 7925 | { |
| 7926 | { |
| 7927 | .eraseblocks = { {64 * 1024, 8} }, |
| 7928 | .block_erase = erase_sector_jedec, |
| 7929 | }, { |
| 7930 | .eraseblocks = { {512 * 1024, 1} }, |
| 7931 | .block_erase = erase_chip_block_jedec, |
| 7932 | } |
| 7933 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 7934 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7935 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7936 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7937 | }, |
| 7938 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7939 | { |
| 7940 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 7941 | .name = "W39V040B", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7942 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7943 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7944 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7945 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7946 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7947 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7948 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7949 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7950 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7951 | .block_erasers = |
| 7952 | { |
| 7953 | { |
| 7954 | .eraseblocks = { {64 * 1024, 8} }, |
| 7955 | .block_erase = erase_sector_jedec, |
| 7956 | }, { |
| 7957 | .eraseblocks = { {512 * 1024, 1} }, |
| 7958 | .block_erase = erase_chip_block_jedec, |
| 7959 | } |
| 7960 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 7961 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7962 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7963 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7964 | }, |
| 7965 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7966 | { |
| 7967 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 7968 | .name = "W39V040C", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7969 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7970 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7971 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7972 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7973 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7974 | .feature_bits = FEATURE_EITHER_RESET, |
| 7975 | .tested = TEST_UNTESTED, |
| 7976 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 7977 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7978 | .block_erasers = |
| 7979 | { |
| 7980 | { |
| 7981 | .eraseblocks = { {64 * 1024, 8} }, |
| 7982 | .block_erase = erase_sector_jedec, |
| 7983 | }, { |
| 7984 | .eraseblocks = { {512 * 1024, 1} }, |
| 7985 | .block_erase = erase_chip_block_jedec, |
| 7986 | } |
| 7987 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 7988 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7989 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7990 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7991 | }, |
| 7992 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7993 | { |
| 7994 | .vendor = "Winbond", |
| 7995 | .name = "W39V040FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7996 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7997 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 7998 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7999 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8000 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 8001 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame^] | 8002 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8003 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame^] | 8004 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 8005 | .block_erasers = |
| 8006 | { |
| 8007 | { |
| 8008 | .eraseblocks = { {4 * 1024, 128} }, |
| 8009 | .block_erase = erase_block_jedec, |
| 8010 | }, { |
| 8011 | .eraseblocks = { {64 * 1024, 8} }, |
| 8012 | .block_erase = erase_sector_jedec, |
| 8013 | }, { |
| 8014 | .eraseblocks = { {512 * 1024, 1} }, |
| 8015 | .block_erase = erase_chip_block_jedec, |
| 8016 | } |
| 8017 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8018 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 8019 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8020 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8021 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8022 | }, |
| 8023 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8024 | { |
| 8025 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8026 | .name = "W39V040FB", |
| 8027 | .bustype = CHIP_BUSTYPE_FWH, |
| 8028 | .manufacture_id = WINBOND_ID, |
| 8029 | .model_id = WINBOND_W39V040B, |
| 8030 | .total_size = 512, |
| 8031 | .page_size = 64 * 1024, |
| 8032 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 8033 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8034 | .probe = probe_jedec, |
| 8035 | .probe_timing = 10, |
| 8036 | .block_erasers = |
| 8037 | { |
| 8038 | { |
| 8039 | .eraseblocks = { {64 * 1024, 8} }, |
| 8040 | .block_erase = erase_sector_jedec, |
| 8041 | }, { |
| 8042 | .eraseblocks = { {512 * 1024, 1} }, |
| 8043 | .block_erase = erase_chip_block_jedec, |
| 8044 | } |
| 8045 | }, |
| 8046 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 8047 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8048 | .write = write_jedec_1, |
| 8049 | .read = read_memmapped, |
| 8050 | }, |
| 8051 | |
| 8052 | { |
| 8053 | .vendor = "Winbond", |
| 8054 | .name = "W39V040FC", |
| 8055 | .bustype = CHIP_BUSTYPE_FWH, |
| 8056 | .manufacture_id = WINBOND_ID, |
| 8057 | .model_id = WINBOND_W39V040C, |
| 8058 | .total_size = 512, |
| 8059 | .page_size = 64 * 1024, |
| 8060 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 8061 | .tested = TEST_UNTESTED, |
| 8062 | .probe = probe_jedec, |
| 8063 | .probe_timing = 10, |
| 8064 | .block_erasers = |
| 8065 | { |
| 8066 | { |
| 8067 | .eraseblocks = { {64 * 1024, 8} }, |
| 8068 | .block_erase = erase_sector_jedec, |
| 8069 | }, { |
| 8070 | .eraseblocks = { {512 * 1024, 1} }, |
| 8071 | .block_erase = erase_chip_block_jedec, |
| 8072 | } |
| 8073 | }, |
| 8074 | .printlock = printlock_w39v040fc, |
| 8075 | .write = write_jedec_1, |
| 8076 | .read = read_memmapped, |
| 8077 | }, |
| 8078 | |
| 8079 | { |
| 8080 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8081 | .name = "W39V080A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 8082 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8083 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8084 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8085 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8086 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8087 | .feature_bits = FEATURE_EITHER_RESET, |
| 8088 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8089 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 8090 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 8091 | .block_erasers = |
| 8092 | { |
| 8093 | { |
| 8094 | .eraseblocks = { {64 * 1024, 16} }, |
| 8095 | .block_erase = erase_sector_jedec, |
| 8096 | }, { |
| 8097 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8098 | .block_erase = erase_chip_block_jedec, |
| 8099 | } |
| 8100 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8101 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8102 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8103 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8104 | }, |
| 8105 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8106 | { |
| 8107 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8108 | .name = "W49F002U/N", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 8109 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8110 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8111 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8112 | .total_size = 256, |
| 8113 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8114 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8115 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8116 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8117 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 8118 | .block_erasers = |
| 8119 | { |
| 8120 | { |
| 8121 | .eraseblocks = { |
| 8122 | {128 * 1024, 1}, |
| 8123 | {96 * 1024, 1}, |
| 8124 | {8 * 1024, 2}, |
| 8125 | {16 * 1024, 1}, |
| 8126 | }, |
| 8127 | .block_erase = erase_sector_jedec, |
| 8128 | }, { |
| 8129 | .eraseblocks = { {256 * 1024, 1} }, |
| 8130 | .block_erase = erase_chip_block_jedec, |
| 8131 | } |
| 8132 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8133 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8134 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8135 | }, |
| 8136 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8137 | { |
| 8138 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 8139 | .name = "W49F020", |
| 8140 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 8141 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8142 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 8143 | .total_size = 256, |
| 8144 | .page_size = 128, |
| 8145 | .feature_bits = FEATURE_EITHER_RESET, |
| 8146 | .tested = TEST_OK_PROBE, |
| 8147 | .probe = probe_jedec, |
| 8148 | .probe_timing = 10, |
| 8149 | .block_erasers = |
| 8150 | { |
| 8151 | { |
| 8152 | .eraseblocks = { {256 * 1024, 1} }, |
| 8153 | .block_erase = erase_chip_block_jedec, |
| 8154 | } |
| 8155 | }, |
| 8156 | .write = write_jedec_1, |
| 8157 | .read = read_memmapped, |
| 8158 | }, |
| 8159 | |
| 8160 | { |
| 8161 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8162 | .name = "W49V002A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 8163 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8164 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8165 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8166 | .total_size = 256, |
| 8167 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8168 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8169 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8170 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 8171 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 8172 | .block_erasers = |
| 8173 | { |
| 8174 | { |
| 8175 | .eraseblocks = { |
| 8176 | {64 * 1024, 3}, |
| 8177 | {32 * 1024, 1}, |
| 8178 | {8 * 1024, 2}, |
| 8179 | {16 * 1024, 1}, |
| 8180 | }, |
| 8181 | .block_erase = erase_sector_jedec, |
| 8182 | }, { |
| 8183 | .eraseblocks = { {256 * 1024, 1} }, |
| 8184 | .block_erase = erase_chip_block_jedec, |
| 8185 | } |
| 8186 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8187 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8188 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8189 | }, |
| 8190 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8191 | { |
| 8192 | .vendor = "Winbond", |
| 8193 | .name = "W49V002FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 8194 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8195 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8196 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8197 | .total_size = 256, |
| 8198 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8199 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8200 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8201 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8202 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 8203 | .block_erasers = |
| 8204 | { |
| 8205 | { |
| 8206 | .eraseblocks = { |
| 8207 | {64 * 1024, 3}, |
| 8208 | {32 * 1024, 1}, |
| 8209 | {8 * 1024, 2}, |
| 8210 | {16 * 1024, 1}, |
| 8211 | }, |
| 8212 | .block_erase = erase_sector_jedec, |
| 8213 | }, { |
| 8214 | .eraseblocks = { {256 * 1024, 1} }, |
| 8215 | .block_erase = erase_chip_block_jedec, |
| 8216 | } |
| 8217 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8218 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8219 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8220 | }, |
| 8221 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8222 | { |
| 8223 | .vendor = "Winbond", |
| 8224 | .name = "W39V080FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 8225 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8226 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8227 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8228 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8229 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8230 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8231 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8232 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8233 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 8234 | .block_erasers = |
| 8235 | { |
| 8236 | { |
| 8237 | .eraseblocks = { {64 * 1024, 16}, }, |
| 8238 | .block_erase = erase_sector_jedec, |
| 8239 | }, { |
| 8240 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8241 | .block_erase = erase_chip_block_jedec, |
| 8242 | } |
| 8243 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8244 | .printlock = printlock_w39v080fa, |
| 8245 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8246 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8247 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8248 | }, |
| 8249 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8250 | { |
| 8251 | .vendor = "Winbond", |
| 8252 | .name = "W39V080FA (dual mode)", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 8253 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8254 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 8255 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8256 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8257 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8258 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8259 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8260 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8261 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 8262 | .block_erasers = |
| 8263 | { |
| 8264 | { |
| 8265 | .eraseblocks = { {64 * 1024, 8}, }, |
| 8266 | .block_erase = erase_sector_jedec, |
| 8267 | }, { |
| 8268 | .eraseblocks = { {512 * 1024, 1} }, |
| 8269 | .block_erase = erase_chip_block_jedec, |
| 8270 | } |
| 8271 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 8272 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8273 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8274 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8275 | }, |
| 8276 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8277 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 8278 | .vendor = "AMIC", |
| 8279 | .name = "unknown AMIC SPI chip", |
| 8280 | .bustype = CHIP_BUSTYPE_SPI, |
| 8281 | .manufacture_id = AMIC_ID, |
| 8282 | .model_id = GENERIC_DEVICE_ID, |
| 8283 | .total_size = 0, |
| 8284 | .page_size = 256, |
| 8285 | .tested = TEST_BAD_PREW, |
| 8286 | .probe = probe_spi_rdid4, |
| 8287 | .probe_timing = TIMING_ZERO, |
| 8288 | .write = NULL, |
| 8289 | .read = NULL, |
| 8290 | }, |
| 8291 | |
| 8292 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8293 | .vendor = "Atmel", |
| 8294 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 8295 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8296 | .manufacture_id = ATMEL_ID, |
| 8297 | .model_id = GENERIC_DEVICE_ID, |
| 8298 | .total_size = 0, |
| 8299 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 8300 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8301 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8302 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8303 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8304 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8305 | }, |
| 8306 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8307 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 8308 | .vendor = "Eon", |
| 8309 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 8310 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8311 | .manufacture_id = EON_ID_NOPREFIX, |
| 8312 | .model_id = GENERIC_DEVICE_ID, |
| 8313 | .total_size = 0, |
| 8314 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 8315 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8316 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8317 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8318 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8319 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8320 | }, |
| 8321 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8322 | { |
| 8323 | .vendor = "Macronix", |
| 8324 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 8325 | .bustype = CHIP_BUSTYPE_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8326 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8327 | .model_id = GENERIC_DEVICE_ID, |
| 8328 | .total_size = 0, |
| 8329 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 8330 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8331 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8332 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8333 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8334 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8335 | }, |
| 8336 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8337 | { |
| 8338 | .vendor = "PMC", |
| 8339 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 8340 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8341 | .manufacture_id = PMC_ID, |
| 8342 | .model_id = GENERIC_DEVICE_ID, |
| 8343 | .total_size = 0, |
| 8344 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 8345 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8346 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8347 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8348 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8349 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8350 | }, |
| 8351 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8352 | { |
| 8353 | .vendor = "SST", |
| 8354 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 8355 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8356 | .manufacture_id = SST_ID, |
| 8357 | .model_id = GENERIC_DEVICE_ID, |
| 8358 | .total_size = 0, |
| 8359 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 8360 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8361 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8362 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8363 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8364 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8365 | }, |
| 8366 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8367 | { |
| 8368 | .vendor = "ST", |
| 8369 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 8370 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8371 | .manufacture_id = ST_ID, |
| 8372 | .model_id = GENERIC_DEVICE_ID, |
| 8373 | .total_size = 0, |
| 8374 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 8375 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8376 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8377 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8378 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8379 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8380 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 8381 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 8382 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 8383 | .vendor = "Sanyo", |
| 8384 | .name = "unknown Sanyo SPI chip", |
| 8385 | .bustype = CHIP_BUSTYPE_SPI, |
| 8386 | .manufacture_id = SANYO_ID, |
| 8387 | .model_id = GENERIC_DEVICE_ID, |
| 8388 | .total_size = 0, |
| 8389 | .page_size = 256, |
| 8390 | .tested = TEST_BAD_PREW, |
| 8391 | .probe = probe_spi_rdid, |
| 8392 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 8393 | .write = NULL, |
| 8394 | .read = NULL, |
| 8395 | }, |
| 8396 | |
| 8397 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 8398 | .vendor = "Generic", |
| 8399 | .name = "unknown SPI chip (RDID)", |
| 8400 | .bustype = CHIP_BUSTYPE_SPI, |
| 8401 | .manufacture_id = GENERIC_MANUF_ID, |
| 8402 | .model_id = GENERIC_DEVICE_ID, |
| 8403 | .total_size = 0, |
| 8404 | .page_size = 256, |
| 8405 | .tested = TEST_BAD_PREW, |
| 8406 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 8407 | .write = NULL, |
| 8408 | }, |
| 8409 | { |
| 8410 | .vendor = "Generic", |
| 8411 | .name = "unknown SPI chip (REMS)", |
| 8412 | .bustype = CHIP_BUSTYPE_SPI, |
| 8413 | .manufacture_id = GENERIC_MANUF_ID, |
| 8414 | .model_id = GENERIC_DEVICE_ID, |
| 8415 | .total_size = 0, |
| 8416 | .page_size = 256, |
| 8417 | .tested = TEST_BAD_PREW, |
| 8418 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 8419 | .write = NULL, |
| 8420 | }, |
| 8421 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8422 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 8423 | }; |