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 | * |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 32 | * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly |
| 33 | * alphabetically sorted. Within families keep them in order of density. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 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 |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 57 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 58 | */ |
| 59 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 60 | { |
| 61 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 62 | .name = "Am29F010", |
| 63 | .bustype = BUS_PARALLEL, |
| 64 | .manufacture_id = AMD_ID, |
| 65 | .model_id = AMD_AM29F010, |
| 66 | .total_size = 128, |
| 67 | .page_size = 16 * 1024, |
| 68 | .feature_bits = FEATURE_SHORT_RESET, |
| 69 | .tested = TEST_UNTESTED, |
| 70 | .probe = probe_jedec, |
| 71 | .probe_timing = TIMING_ZERO, |
| 72 | .block_erasers = |
| 73 | { |
| 74 | { |
| 75 | .eraseblocks = { {16 * 1024, 8} }, |
| 76 | .block_erase = erase_sector_jedec, |
| 77 | }, { |
| 78 | .eraseblocks = { {128 * 1024, 1} }, |
| 79 | .block_erase = erase_chip_block_jedec, |
| 80 | }, |
| 81 | }, |
| 82 | .write = write_jedec_1, |
| 83 | .read = read_memmapped, |
| 84 | .voltage = {4500, 5500}, |
| 85 | }, |
| 86 | |
| 87 | { |
| 88 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 89 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 90 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 91 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 92 | .model_id = AMD_AM29F010, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 93 | .total_size = 128, |
| 94 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 95 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 96 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 97 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 98 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 99 | .block_erasers = |
| 100 | { |
| 101 | { |
| 102 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 103 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 104 | }, { |
| 105 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 106 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 107 | }, |
| 108 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 109 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 110 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 111 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 112 | }, |
| 113 | |
| 114 | { |
| 115 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 116 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 117 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 118 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 119 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 120 | .total_size = 256, |
| 121 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 122 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | .tested = TEST_UNTESTED, |
| 124 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 125 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 126 | .block_erasers = |
| 127 | { |
| 128 | { |
| 129 | .eraseblocks = { |
| 130 | {16 * 1024, 1}, |
| 131 | {8 * 1024, 2}, |
| 132 | {32 * 1024, 1}, |
| 133 | {64 * 1024, 3}, |
| 134 | }, |
| 135 | .block_erase = erase_sector_jedec, |
| 136 | }, { |
| 137 | .eraseblocks = { {256 * 1024, 1} }, |
| 138 | .block_erase = erase_chip_block_jedec, |
| 139 | }, |
| 140 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 141 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 142 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 143 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 144 | }, |
| 145 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 146 | { |
| 147 | .vendor = "AMD", |
| 148 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 149 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 150 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 151 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 152 | .total_size = 256, |
| 153 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 154 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 155 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 156 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 157 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 158 | .block_erasers = |
| 159 | { |
| 160 | { |
| 161 | .eraseblocks = { |
| 162 | {64 * 1024, 3}, |
| 163 | {32 * 1024, 1}, |
| 164 | {8 * 1024, 2}, |
| 165 | {16 * 1024, 1}, |
| 166 | }, |
| 167 | .block_erase = erase_sector_jedec, |
| 168 | }, { |
| 169 | .eraseblocks = { {256 * 1024, 1} }, |
| 170 | .block_erase = erase_chip_block_jedec, |
| 171 | }, |
| 172 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 174 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 175 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 176 | }, |
| 177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | { |
| 179 | .vendor = "AMD", |
| 180 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 182 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 183 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 184 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 185 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 187 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 188 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | .block_erasers = |
| 191 | { |
| 192 | { |
| 193 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 195 | }, { |
| 196 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 197 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | }, |
| 199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 202 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 203 | }, |
| 204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 205 | { |
| 206 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 207 | .name = "Am29F040", |
| 208 | .bustype = BUS_PARALLEL, |
| 209 | .manufacture_id = AMD_ID, |
| 210 | .model_id = AMD_AM29F040, |
| 211 | .total_size = 512, |
| 212 | .page_size = 64 * 1024, |
| 213 | .feature_bits = FEATURE_EITHER_RESET, |
| 214 | .tested = TEST_UNTESTED, |
| 215 | .probe = probe_jedec, |
| 216 | .probe_timing = TIMING_ZERO, |
| 217 | .block_erasers = |
| 218 | { |
| 219 | { |
| 220 | .eraseblocks = { {64 * 1024, 8} }, |
| 221 | .block_erase = erase_sector_jedec, |
| 222 | }, { |
| 223 | .eraseblocks = { {512 * 1024, 1} }, |
| 224 | .block_erase = erase_chip_block_jedec, |
| 225 | }, |
| 226 | }, |
| 227 | .write = write_jedec_1, |
| 228 | .read = read_memmapped, |
| 229 | .voltage = {4500, 5500}, |
| 230 | }, |
| 231 | |
| 232 | { |
| 233 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 234 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 235 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 236 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 237 | .model_id = AMD_AM29F040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 238 | .total_size = 512, |
| 239 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 241 | .tested = TEST_UNTESTED, |
| 242 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 243 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 244 | .block_erasers = |
| 245 | { |
| 246 | { |
| 247 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 248 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 249 | }, { |
| 250 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 251 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 252 | }, |
| 253 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 254 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 255 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 256 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 257 | }, |
| 258 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 259 | { |
| 260 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 261 | .name = "Am29F080", |
| 262 | .bustype = BUS_PARALLEL, |
| 263 | .manufacture_id = AMD_ID, |
| 264 | .model_id = AMD_AM29F080, |
| 265 | .total_size = 1024, |
| 266 | .page_size = 64 * 1024, |
| 267 | .feature_bits = FEATURE_EITHER_RESET, |
| 268 | .tested = TEST_UNTESTED, |
| 269 | .probe = probe_jedec, |
| 270 | .probe_timing = TIMING_ZERO, |
| 271 | .block_erasers = |
| 272 | { |
| 273 | { |
| 274 | .eraseblocks = { {64 * 1024, 16} }, |
| 275 | .block_erase = erase_sector_jedec, |
| 276 | }, { |
| 277 | .eraseblocks = { {1024 * 1024, 1} }, |
| 278 | .block_erase = erase_chip_block_jedec, |
| 279 | }, |
| 280 | }, |
| 281 | .write = write_jedec_1, |
| 282 | .read = read_memmapped, |
| 283 | .voltage = {4500, 5500}, |
| 284 | }, |
| 285 | |
| 286 | { |
| 287 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 288 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 289 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 290 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 291 | .model_id = AMD_AM29F080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 292 | .total_size = 1024, |
| 293 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 294 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 295 | .tested = TEST_UNTESTED, |
| 296 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 297 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 298 | .block_erasers = |
| 299 | { |
| 300 | { |
| 301 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 302 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 303 | }, { |
| 304 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 305 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 306 | }, |
| 307 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 308 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 309 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 310 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 311 | }, |
| 312 | |
| 313 | { |
| 314 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 315 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 316 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 317 | .manufacture_id = AMD_ID, |
| 318 | .model_id = AMD_AM29LV001BB, |
| 319 | .total_size = 128, |
| 320 | .page_size = 64 * 1024, /* unused */ |
| 321 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 322 | .tested = TEST_OK_PREW, |
| 323 | .probe = probe_jedec, |
| 324 | .probe_timing = TIMING_ZERO, |
| 325 | .block_erasers = |
| 326 | { |
| 327 | { |
| 328 | .eraseblocks = { |
| 329 | {8 * 1024, 1}, |
| 330 | {4 * 1024, 2}, |
| 331 | {16 * 1024, 7}, |
| 332 | }, |
| 333 | .block_erase = erase_sector_jedec, |
| 334 | }, { |
| 335 | .eraseblocks = { {128 * 1024, 1} }, |
| 336 | .block_erase = erase_chip_block_jedec, |
| 337 | }, |
| 338 | }, |
| 339 | .write = write_jedec_1, |
| 340 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 341 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 342 | }, |
| 343 | |
| 344 | { |
| 345 | .vendor = "AMD", |
| 346 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 347 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 348 | .manufacture_id = AMD_ID, |
| 349 | .model_id = AMD_AM29LV001BT, |
| 350 | .total_size = 128, |
| 351 | .page_size = 64 * 1024, /* unused */ |
| 352 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 353 | .tested = TEST_UNTESTED, |
| 354 | .probe = probe_jedec, |
| 355 | .probe_timing = TIMING_ZERO, |
| 356 | .block_erasers = |
| 357 | { |
| 358 | { |
| 359 | .eraseblocks = { |
| 360 | {16 * 1024, 7}, |
| 361 | {4 * 1024, 2}, |
| 362 | {8 * 1024, 1}, |
| 363 | }, |
| 364 | .block_erase = erase_sector_jedec, |
| 365 | }, { |
| 366 | .eraseblocks = { {128 * 1024, 1} }, |
| 367 | .block_erase = erase_chip_block_jedec, |
| 368 | }, |
| 369 | }, |
| 370 | .write = write_jedec_1, |
| 371 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 372 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 373 | }, |
| 374 | |
| 375 | { |
| 376 | .vendor = "AMD", |
| 377 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 378 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 379 | .manufacture_id = AMD_ID, |
| 380 | .model_id = AMD_AM29LV002BB, |
| 381 | .total_size = 256, |
| 382 | .page_size = 64 * 1024, /* unused */ |
| 383 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 384 | .tested = TEST_UNTESTED, |
| 385 | .probe = probe_jedec, |
| 386 | .probe_timing = TIMING_ZERO, |
| 387 | .block_erasers = |
| 388 | { |
| 389 | { |
| 390 | .eraseblocks = { |
| 391 | {16 * 1024, 1}, |
| 392 | {8 * 1024, 2}, |
| 393 | {32 * 1024, 1}, |
| 394 | {64 * 1024, 3}, |
| 395 | }, |
| 396 | .block_erase = erase_sector_jedec, |
| 397 | }, { |
| 398 | .eraseblocks = { {256 * 1024, 1} }, |
| 399 | .block_erase = erase_chip_block_jedec, |
| 400 | }, |
| 401 | }, |
| 402 | .write = write_jedec_1, |
| 403 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 404 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 405 | }, |
| 406 | |
| 407 | { |
| 408 | .vendor = "AMD", |
| 409 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 410 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 411 | .manufacture_id = AMD_ID, |
| 412 | .model_id = AMD_AM29LV002BT, |
| 413 | .total_size = 256, |
| 414 | .page_size = 64 * 1024, /* unused */ |
| 415 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 416 | .tested = TEST_UNTESTED, |
| 417 | .probe = probe_jedec, |
| 418 | .probe_timing = TIMING_ZERO, |
| 419 | .block_erasers = |
| 420 | { |
| 421 | { |
| 422 | .eraseblocks = { |
| 423 | {64 * 1024, 3}, |
| 424 | {32 * 1024, 1}, |
| 425 | {8 * 1024, 2}, |
| 426 | {16 * 1024, 1}, |
| 427 | }, |
| 428 | .block_erase = erase_sector_jedec, |
| 429 | }, { |
| 430 | .eraseblocks = { {256 * 1024, 1} }, |
| 431 | .block_erase = erase_chip_block_jedec, |
| 432 | }, |
| 433 | }, |
| 434 | .write = write_jedec_1, |
| 435 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 436 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 437 | }, |
| 438 | |
| 439 | { |
| 440 | .vendor = "AMD", |
| 441 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 442 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 443 | .manufacture_id = AMD_ID, |
| 444 | .model_id = AMD_AM29LV004BB, |
| 445 | .total_size = 512, |
| 446 | .page_size = 64 * 1024, /* unused */ |
| 447 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 448 | .tested = TEST_UNTESTED, |
| 449 | .probe = probe_jedec, |
| 450 | .probe_timing = TIMING_ZERO, |
| 451 | .block_erasers = |
| 452 | { |
| 453 | { |
| 454 | .eraseblocks = { |
| 455 | {16 * 1024, 1}, |
| 456 | {8 * 1024, 2}, |
| 457 | {32 * 1024, 1}, |
| 458 | {64 * 1024, 7}, |
| 459 | }, |
| 460 | .block_erase = erase_sector_jedec, |
| 461 | }, { |
| 462 | .eraseblocks = { {512 * 1024, 1} }, |
| 463 | .block_erase = erase_chip_block_jedec, |
| 464 | }, |
| 465 | }, |
| 466 | .write = write_jedec_1, |
| 467 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 468 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 469 | }, |
| 470 | |
| 471 | { |
| 472 | .vendor = "AMD", |
| 473 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 474 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 475 | .manufacture_id = AMD_ID, |
| 476 | .model_id = AMD_AM29LV004BT, |
| 477 | .total_size = 512, |
| 478 | .page_size = 64 * 1024, /* unused */ |
| 479 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 480 | .tested = TEST_UNTESTED, |
| 481 | .probe = probe_jedec, |
| 482 | .probe_timing = TIMING_ZERO, |
| 483 | .block_erasers = |
| 484 | { |
| 485 | { |
| 486 | .eraseblocks = { |
| 487 | {64 * 1024, 7}, |
| 488 | {32 * 1024, 1}, |
| 489 | {8 * 1024, 2}, |
| 490 | {16 * 1024, 1}, |
| 491 | }, |
| 492 | .block_erase = erase_sector_jedec, |
| 493 | }, { |
| 494 | .eraseblocks = { {512 * 1024, 1} }, |
| 495 | .block_erase = erase_chip_block_jedec, |
| 496 | }, |
| 497 | }, |
| 498 | .write = write_jedec_1, |
| 499 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 500 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 501 | }, |
| 502 | |
| 503 | { |
| 504 | .vendor = "AMD", |
| 505 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 506 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 507 | .manufacture_id = AMD_ID, |
| 508 | .model_id = AMD_AM29LV008BB, |
| 509 | .total_size = 1024, |
| 510 | .page_size = 64 * 1024, /* unused */ |
| 511 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 512 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 513 | .probe = probe_jedec, |
| 514 | .probe_timing = TIMING_ZERO, |
| 515 | .block_erasers = |
| 516 | { |
| 517 | { |
| 518 | .eraseblocks = { |
| 519 | {16 * 1024, 1}, |
| 520 | {8 * 1024, 2}, |
| 521 | {32 * 1024, 1}, |
| 522 | {64 * 1024, 15}, |
| 523 | }, |
| 524 | .block_erase = erase_sector_jedec, |
| 525 | }, { |
| 526 | .eraseblocks = { {1024 * 1024, 1} }, |
| 527 | .block_erase = erase_chip_block_jedec, |
| 528 | }, |
| 529 | }, |
| 530 | .write = write_jedec_1, |
| 531 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 532 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 533 | }, |
| 534 | |
| 535 | { |
| 536 | .vendor = "AMD", |
| 537 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 538 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 539 | .manufacture_id = AMD_ID, |
| 540 | .model_id = AMD_AM29LV008BT, |
| 541 | .total_size = 1024, |
| 542 | .page_size = 64 * 1024, /* unused */ |
| 543 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 544 | .tested = TEST_UNTESTED, |
| 545 | .probe = probe_jedec, |
| 546 | .probe_timing = TIMING_ZERO, |
| 547 | .block_erasers = |
| 548 | { |
| 549 | { |
| 550 | .eraseblocks = { |
| 551 | {64 * 1024, 15}, |
| 552 | {32 * 1024, 1}, |
| 553 | {8 * 1024, 2}, |
| 554 | {16 * 1024, 1}, |
| 555 | }, |
| 556 | .block_erase = erase_sector_jedec, |
| 557 | }, { |
| 558 | .eraseblocks = { {1024 * 1024, 1} }, |
| 559 | .block_erase = erase_chip_block_jedec, |
| 560 | }, |
| 561 | }, |
| 562 | .write = write_jedec_1, |
| 563 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 564 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 565 | }, |
| 566 | |
| 567 | { |
| 568 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 569 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 570 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 571 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 572 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 573 | .total_size = 512, |
| 574 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 575 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 576 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 577 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 578 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 579 | .block_erasers = |
| 580 | { |
| 581 | { |
| 582 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 583 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 584 | }, { |
| 585 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 586 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 587 | }, |
| 588 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 589 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 590 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 591 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 592 | }, |
| 593 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 594 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 595 | .vendor = "AMD", |
| 596 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 597 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 598 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 599 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 600 | .total_size = 1024, |
| 601 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 602 | .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] | 603 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 604 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 605 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 606 | .block_erasers = |
| 607 | { |
| 608 | { |
| 609 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 610 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 611 | }, { |
| 612 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 613 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 614 | }, |
| 615 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 616 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 617 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 618 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 619 | }, |
| 620 | |
| 621 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 622 | .vendor = "AMIC", |
| 623 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 624 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 625 | .manufacture_id = AMIC_ID, |
| 626 | .model_id = AMIC_A25L05PT, |
| 627 | .total_size = 64, |
| 628 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 629 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 630 | .tested = TEST_UNTESTED, |
| 631 | .probe = probe_spi_rdid4, |
| 632 | .probe_timing = TIMING_ZERO, |
| 633 | .block_erasers = |
| 634 | { |
| 635 | { |
| 636 | .eraseblocks = { |
| 637 | {32 * 1024, 1}, |
| 638 | {16 * 1024, 1}, |
| 639 | {8 * 1024, 1}, |
| 640 | {4 * 1024, 2}, |
| 641 | }, |
| 642 | .block_erase = spi_block_erase_d8, |
| 643 | }, { |
| 644 | .eraseblocks = { {64 * 1024, 1} }, |
| 645 | .block_erase = spi_block_erase_c7, |
| 646 | } |
| 647 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 648 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 649 | .unlock = spi_disable_blockprotect, |
| 650 | .write = spi_chip_write_256, |
| 651 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 652 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 653 | }, |
| 654 | |
| 655 | { |
| 656 | .vendor = "AMIC", |
| 657 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 658 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 659 | .manufacture_id = AMIC_ID, |
| 660 | .model_id = AMIC_A25L05PU, |
| 661 | .total_size = 64, |
| 662 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 663 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 664 | .tested = TEST_UNTESTED, |
| 665 | .probe = probe_spi_rdid4, |
| 666 | .probe_timing = TIMING_ZERO, |
| 667 | .block_erasers = |
| 668 | { |
| 669 | { |
| 670 | .eraseblocks = { |
| 671 | {4 * 1024, 2}, |
| 672 | {8 * 1024, 1}, |
| 673 | {16 * 1024, 1}, |
| 674 | {32 * 1024, 1}, |
| 675 | }, |
| 676 | .block_erase = spi_block_erase_d8, |
| 677 | }, { |
| 678 | .eraseblocks = { {64 * 1024, 1} }, |
| 679 | .block_erase = spi_block_erase_c7, |
| 680 | } |
| 681 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 682 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 683 | .unlock = spi_disable_blockprotect, |
| 684 | .write = spi_chip_write_256, |
| 685 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 686 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 687 | }, |
| 688 | |
| 689 | { |
| 690 | .vendor = "AMIC", |
| 691 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 692 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 693 | .manufacture_id = AMIC_ID, |
| 694 | .model_id = AMIC_A25L10PT, |
| 695 | .total_size = 128, |
| 696 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 697 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 698 | .tested = TEST_UNTESTED, |
| 699 | .probe = probe_spi_rdid4, |
| 700 | .probe_timing = TIMING_ZERO, |
| 701 | .block_erasers = |
| 702 | { |
| 703 | { |
| 704 | .eraseblocks = { |
| 705 | {64 * 1024, 1}, |
| 706 | {32 * 1024, 1}, |
| 707 | {16 * 1024, 1}, |
| 708 | {8 * 1024, 1}, |
| 709 | {4 * 1024, 2}, |
| 710 | }, |
| 711 | .block_erase = spi_block_erase_d8, |
| 712 | }, { |
| 713 | .eraseblocks = { {128 * 1024, 1} }, |
| 714 | .block_erase = spi_block_erase_c7, |
| 715 | } |
| 716 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 717 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 718 | .unlock = spi_disable_blockprotect, |
| 719 | .write = spi_chip_write_256, |
| 720 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 721 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 722 | }, |
| 723 | |
| 724 | { |
| 725 | .vendor = "AMIC", |
| 726 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 727 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 728 | .manufacture_id = AMIC_ID, |
| 729 | .model_id = AMIC_A25L10PU, |
| 730 | .total_size = 128, |
| 731 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 732 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 733 | .tested = TEST_UNTESTED, |
| 734 | .probe = probe_spi_rdid4, |
| 735 | .probe_timing = TIMING_ZERO, |
| 736 | .block_erasers = |
| 737 | { |
| 738 | { |
| 739 | .eraseblocks = { |
| 740 | {4 * 1024, 2}, |
| 741 | {8 * 1024, 1}, |
| 742 | {16 * 1024, 1}, |
| 743 | {32 * 1024, 1}, |
| 744 | {64 * 1024, 1}, |
| 745 | }, |
| 746 | .block_erase = spi_block_erase_d8, |
| 747 | }, { |
| 748 | .eraseblocks = { {128 * 1024, 1} }, |
| 749 | .block_erase = spi_block_erase_c7, |
| 750 | } |
| 751 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 752 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 753 | .unlock = spi_disable_blockprotect, |
| 754 | .write = spi_chip_write_256, |
| 755 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 756 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 757 | }, |
| 758 | |
| 759 | { |
| 760 | .vendor = "AMIC", |
| 761 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 762 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 763 | .manufacture_id = AMIC_ID, |
| 764 | .model_id = AMIC_A25L20PT, |
| 765 | .total_size = 256, |
| 766 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 767 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 768 | .tested = TEST_UNTESTED, |
| 769 | .probe = probe_spi_rdid4, |
| 770 | .probe_timing = TIMING_ZERO, |
| 771 | .block_erasers = |
| 772 | { |
| 773 | { |
| 774 | .eraseblocks = { |
| 775 | {64 * 1024, 3}, |
| 776 | {32 * 1024, 1}, |
| 777 | {16 * 1024, 1}, |
| 778 | {8 * 1024, 1}, |
| 779 | {4 * 1024, 2}, |
| 780 | }, |
| 781 | .block_erase = spi_block_erase_d8, |
| 782 | }, { |
| 783 | .eraseblocks = { {256 * 1024, 1} }, |
| 784 | .block_erase = spi_block_erase_c7, |
| 785 | } |
| 786 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 787 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 788 | .unlock = spi_disable_blockprotect, |
| 789 | .write = spi_chip_write_256, |
| 790 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 791 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 792 | }, |
| 793 | |
| 794 | { |
| 795 | .vendor = "AMIC", |
| 796 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 797 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 798 | .manufacture_id = AMIC_ID, |
| 799 | .model_id = AMIC_A25L20PU, |
| 800 | .total_size = 256, |
| 801 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 802 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 803 | .tested = TEST_UNTESTED, |
| 804 | .probe = probe_spi_rdid4, |
| 805 | .probe_timing = TIMING_ZERO, |
| 806 | .block_erasers = |
| 807 | { |
| 808 | { |
| 809 | .eraseblocks = { |
| 810 | {4 * 1024, 2}, |
| 811 | {8 * 1024, 1}, |
| 812 | {16 * 1024, 1}, |
| 813 | {32 * 1024, 1}, |
| 814 | {64 * 1024, 3}, |
| 815 | }, |
| 816 | .block_erase = spi_block_erase_d8, |
| 817 | }, { |
| 818 | .eraseblocks = { {256 * 1024, 1} }, |
| 819 | .block_erase = spi_block_erase_c7, |
| 820 | } |
| 821 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 822 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 823 | .unlock = spi_disable_blockprotect, |
| 824 | .write = spi_chip_write_256, |
| 825 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 826 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | }, |
| 828 | |
| 829 | /* The A25L40P{T,U} chips are distinguished by their |
| 830 | * erase block layouts, but without any distinction in RDID. |
| 831 | * This inexplicable quirk was verified by Rudolf Marek |
| 832 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 833 | */ |
| 834 | { |
| 835 | .vendor = "AMIC", |
| 836 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 837 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 838 | .manufacture_id = AMIC_ID, |
| 839 | .model_id = AMIC_A25L40PT, |
| 840 | .total_size = 512, |
| 841 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 842 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 843 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 844 | .probe = probe_spi_rdid4, |
| 845 | .probe_timing = TIMING_ZERO, |
| 846 | .block_erasers = |
| 847 | { |
| 848 | { |
| 849 | .eraseblocks = { |
| 850 | {64 * 1024, 7}, |
| 851 | {32 * 1024, 1}, |
| 852 | {16 * 1024, 1}, |
| 853 | {8 * 1024, 1}, |
| 854 | {4 * 1024, 2}, |
| 855 | }, |
| 856 | .block_erase = spi_block_erase_d8, |
| 857 | }, { |
| 858 | .eraseblocks = { {512 * 1024, 1} }, |
| 859 | .block_erase = spi_block_erase_c7, |
| 860 | } |
| 861 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 862 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 863 | .unlock = spi_disable_blockprotect, |
| 864 | .write = spi_chip_write_256, |
| 865 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 866 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 867 | }, |
| 868 | |
| 869 | { |
| 870 | .vendor = "AMIC", |
| 871 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 872 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 873 | .manufacture_id = AMIC_ID, |
| 874 | .model_id = AMIC_A25L40PU, |
| 875 | .total_size = 512, |
| 876 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 877 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 878 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 879 | .probe = probe_spi_rdid4, |
| 880 | .probe_timing = TIMING_ZERO, |
| 881 | .block_erasers = |
| 882 | { |
| 883 | { |
| 884 | .eraseblocks = { |
| 885 | {4 * 1024, 2}, |
| 886 | {8 * 1024, 1}, |
| 887 | {16 * 1024, 1}, |
| 888 | {32 * 1024, 1}, |
| 889 | {64 * 1024, 7}, |
| 890 | }, |
| 891 | .block_erase = spi_block_erase_d8, |
| 892 | }, { |
| 893 | .eraseblocks = { {512 * 1024, 1} }, |
| 894 | .block_erase = spi_block_erase_c7, |
| 895 | } |
| 896 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 897 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 898 | .unlock = spi_disable_blockprotect, |
| 899 | .write = spi_chip_write_256, |
| 900 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 901 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 902 | }, |
| 903 | |
| 904 | { |
| 905 | .vendor = "AMIC", |
| 906 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 907 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 908 | .manufacture_id = AMIC_ID, |
| 909 | .model_id = AMIC_A25L80P, |
| 910 | .total_size = 1024, |
| 911 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 912 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 913 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 914 | .probe = probe_spi_rdid4, |
| 915 | .probe_timing = TIMING_ZERO, |
| 916 | .block_erasers = |
| 917 | { |
| 918 | { |
| 919 | .eraseblocks = { |
| 920 | {4 * 1024, 2}, |
| 921 | {8 * 1024, 1}, |
| 922 | {16 * 1024, 1}, |
| 923 | {32 * 1024, 1}, |
| 924 | {64 * 1024, 15}, |
| 925 | }, |
| 926 | .block_erase = spi_block_erase_d8, |
| 927 | }, { |
| 928 | .eraseblocks = { {1024 * 1024, 1} }, |
| 929 | .block_erase = spi_block_erase_c7, |
| 930 | } |
| 931 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 932 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 933 | .unlock = spi_disable_blockprotect, |
| 934 | .write = spi_chip_write_256, |
| 935 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 936 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 937 | }, |
| 938 | |
| 939 | { |
| 940 | .vendor = "AMIC", |
| 941 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 942 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 943 | .manufacture_id = AMIC_ID, |
| 944 | .model_id = AMIC_A25L16PT, |
| 945 | .total_size = 2048, |
| 946 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 947 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 948 | .tested = TEST_UNTESTED, |
| 949 | .probe = probe_spi_rdid4, |
| 950 | .probe_timing = TIMING_ZERO, |
| 951 | .block_erasers = |
| 952 | { |
| 953 | { |
| 954 | .eraseblocks = { |
| 955 | {64 * 1024, 31}, |
| 956 | {32 * 1024, 1}, |
| 957 | {16 * 1024, 1}, |
| 958 | {8 * 1024, 1}, |
| 959 | {4 * 1024, 2}, |
| 960 | }, |
| 961 | .block_erase = spi_block_erase_d8, |
| 962 | }, { |
| 963 | .eraseblocks = { {2048 * 1024, 1} }, |
| 964 | .block_erase = spi_block_erase_60, |
| 965 | }, { |
| 966 | .eraseblocks = { {2048 * 1024, 1} }, |
| 967 | .block_erase = spi_block_erase_c7, |
| 968 | } |
| 969 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 970 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 971 | .unlock = spi_disable_blockprotect, |
| 972 | .write = spi_chip_write_256, |
| 973 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 974 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 975 | }, |
| 976 | |
| 977 | { |
| 978 | .vendor = "AMIC", |
| 979 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 980 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 981 | .manufacture_id = AMIC_ID, |
| 982 | .model_id = AMIC_A25L16PU, |
| 983 | .total_size = 2048, |
| 984 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 985 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 986 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 987 | .probe = probe_spi_rdid4, |
| 988 | .probe_timing = TIMING_ZERO, |
| 989 | .block_erasers = |
| 990 | { |
| 991 | { |
| 992 | .eraseblocks = { |
| 993 | {4 * 1024, 2}, |
| 994 | {8 * 1024, 1}, |
| 995 | {16 * 1024, 1}, |
| 996 | {32 * 1024, 1}, |
| 997 | {64 * 1024, 31}, |
| 998 | }, |
| 999 | .block_erase = spi_block_erase_d8, |
| 1000 | }, { |
| 1001 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1002 | .block_erase = spi_block_erase_60, |
| 1003 | }, { |
| 1004 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1005 | .block_erase = spi_block_erase_c7, |
| 1006 | } |
| 1007 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1008 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1009 | .unlock = spi_disable_blockprotect, |
| 1010 | .write = spi_chip_write_256, |
| 1011 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1012 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1013 | }, |
| 1014 | |
| 1015 | { |
| 1016 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1017 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1018 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1019 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1020 | .model_id = AMIC_A25L512, |
| 1021 | .total_size = 64, |
| 1022 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1023 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1024 | .tested = TEST_UNTESTED, |
| 1025 | .probe = probe_spi_rdid, |
| 1026 | .probe_timing = TIMING_ZERO, |
| 1027 | .block_erasers = |
| 1028 | { |
| 1029 | { |
| 1030 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1031 | .block_erase = spi_block_erase_20, |
| 1032 | }, { |
| 1033 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1034 | .block_erase = spi_block_erase_d8, |
| 1035 | }, { |
| 1036 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1037 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1038 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1039 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1040 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1041 | .unlock = spi_disable_blockprotect, |
| 1042 | .write = spi_chip_write_256, |
| 1043 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1044 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1045 | }, |
| 1046 | |
| 1047 | { |
| 1048 | .vendor = "AMIC", |
| 1049 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1050 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1051 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1052 | .model_id = AMIC_A25L010, |
| 1053 | .total_size = 128, |
| 1054 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1055 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1056 | .tested = TEST_UNTESTED, |
| 1057 | .probe = probe_spi_rdid, |
| 1058 | .probe_timing = TIMING_ZERO, |
| 1059 | .block_erasers = |
| 1060 | { |
| 1061 | { |
| 1062 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 1063 | .block_erase = spi_block_erase_20, |
| 1064 | }, { |
| 1065 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 1066 | .block_erase = spi_block_erase_d8, |
| 1067 | }, { |
| 1068 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 1069 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1070 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1071 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1072 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1073 | .unlock = spi_disable_blockprotect, |
| 1074 | .write = spi_chip_write_256, |
| 1075 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1076 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1077 | }, |
| 1078 | |
| 1079 | { |
| 1080 | .vendor = "AMIC", |
| 1081 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1082 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1083 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1084 | .model_id = AMIC_A25L020, |
| 1085 | .total_size = 256, |
| 1086 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1087 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1088 | .tested = TEST_UNTESTED, |
| 1089 | .probe = probe_spi_rdid, |
| 1090 | .probe_timing = TIMING_ZERO, |
| 1091 | .block_erasers = |
| 1092 | { |
| 1093 | { |
| 1094 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1095 | .block_erase = spi_block_erase_20, |
| 1096 | }, { |
| 1097 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1098 | .block_erase = spi_block_erase_d8, |
| 1099 | }, { |
| 1100 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1101 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1102 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1103 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1104 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1105 | .unlock = spi_disable_blockprotect, |
| 1106 | .write = spi_chip_write_256, |
| 1107 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1108 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1109 | }, |
| 1110 | |
| 1111 | { |
| 1112 | .vendor = "AMIC", |
| 1113 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1114 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1115 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1116 | .model_id = AMIC_A25L040, |
| 1117 | .total_size = 512, |
| 1118 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1119 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1120 | .tested = TEST_UNTESTED, |
| 1121 | .probe = probe_spi_rdid, |
| 1122 | .probe_timing = TIMING_ZERO, |
| 1123 | .block_erasers = |
| 1124 | { |
| 1125 | { |
| 1126 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1127 | .block_erase = spi_block_erase_20, |
| 1128 | }, { |
| 1129 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1130 | .block_erase = spi_block_erase_d8, |
| 1131 | }, { |
| 1132 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1133 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1134 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1135 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1136 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | .unlock = spi_disable_blockprotect, |
| 1138 | .write = spi_chip_write_256, |
| 1139 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1140 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1141 | }, |
| 1142 | |
| 1143 | { |
| 1144 | .vendor = "AMIC", |
| 1145 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1146 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1147 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1148 | .model_id = AMIC_A25L080, |
| 1149 | .total_size = 1024, |
| 1150 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1151 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1152 | .tested = TEST_UNTESTED, |
| 1153 | .probe = probe_spi_rdid, |
| 1154 | .probe_timing = TIMING_ZERO, |
| 1155 | .block_erasers = |
| 1156 | { |
| 1157 | { |
| 1158 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1159 | .block_erase = spi_block_erase_20, |
| 1160 | }, { |
| 1161 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1162 | .block_erase = spi_block_erase_d8, |
| 1163 | }, { |
| 1164 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1165 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1166 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1167 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1168 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1169 | .unlock = spi_disable_blockprotect, |
| 1170 | .write = spi_chip_write_256, |
| 1171 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1172 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1173 | }, |
| 1174 | |
| 1175 | { |
| 1176 | .vendor = "AMIC", |
| 1177 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1178 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1179 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1180 | .model_id = AMIC_A25L016, |
| 1181 | .total_size = 2048, |
| 1182 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1183 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1184 | .tested = TEST_UNTESTED, |
| 1185 | .probe = probe_spi_rdid, |
| 1186 | .probe_timing = TIMING_ZERO, |
| 1187 | .block_erasers = |
| 1188 | { |
| 1189 | { |
| 1190 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1191 | .block_erase = spi_block_erase_20, |
| 1192 | }, { |
| 1193 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1194 | .block_erase = spi_block_erase_d8, |
| 1195 | }, { |
| 1196 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1197 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1198 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1199 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1200 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1201 | .unlock = spi_disable_blockprotect, |
| 1202 | .write = spi_chip_write_256, |
| 1203 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1204 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1205 | }, |
| 1206 | |
| 1207 | { |
| 1208 | .vendor = "AMIC", |
| 1209 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1210 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1211 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1212 | .model_id = AMIC_A25L032, |
| 1213 | .total_size = 4096, |
| 1214 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1215 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1216 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1217 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1218 | .probe = probe_spi_rdid, |
| 1219 | .probe_timing = TIMING_ZERO, |
| 1220 | .block_erasers = |
| 1221 | { |
| 1222 | { |
| 1223 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1224 | .block_erase = spi_block_erase_20, |
| 1225 | }, { |
| 1226 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1227 | .block_erase = spi_block_erase_52, |
| 1228 | }, { |
| 1229 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1230 | .block_erase = spi_block_erase_d8, |
| 1231 | }, { |
| 1232 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1233 | .block_erase = spi_block_erase_60, |
| 1234 | }, { |
| 1235 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1236 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1237 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1238 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1239 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1240 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1241 | .write = spi_chip_write_256, |
| 1242 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1243 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1244 | }, |
| 1245 | |
| 1246 | { |
| 1247 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1248 | .name = "A25LQ16", |
| 1249 | .bustype = BUS_SPI, |
| 1250 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1251 | .model_id = AMIC_A25LQ16, |
| 1252 | .total_size = 2048, |
| 1253 | .page_size = 256, |
| 1254 | /* supports SFDP */ |
| 1255 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1256 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1257 | .tested = TEST_UNTESTED, |
| 1258 | .probe = probe_spi_rdid, |
| 1259 | .probe_timing = TIMING_ZERO, |
| 1260 | .block_erasers = { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
| 1276 | } |
| 1277 | }, |
| 1278 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1279 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
| 1282 | .voltage = {2700, 3600}, |
| 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
| 1287 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1288 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A25LQ032, |
| 1291 | .total_size = 4096, |
| 1292 | .page_size = 256, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1293 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1294 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1295 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1296 | .tested = TEST_UNTESTED, |
| 1297 | .probe = probe_spi_rdid, |
| 1298 | .probe_timing = TIMING_ZERO, |
| 1299 | .block_erasers = |
| 1300 | { |
| 1301 | { |
| 1302 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1303 | .block_erase = spi_block_erase_20, |
| 1304 | }, { |
| 1305 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1306 | .block_erase = spi_block_erase_52, |
| 1307 | }, { |
| 1308 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1309 | .block_erase = spi_block_erase_d8, |
| 1310 | }, { |
| 1311 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1312 | .block_erase = spi_block_erase_60, |
| 1313 | }, { |
| 1314 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1315 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1316 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1317 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1318 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1319 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1320 | .write = spi_chip_write_256, |
| 1321 | .read = spi_chip_read, |
| 1322 | .voltage = {2700, 3600}, |
| 1323 | }, |
| 1324 | |
| 1325 | { |
| 1326 | .vendor = "AMIC", |
| 1327 | .name = "A25LQ64", |
| 1328 | .bustype = BUS_SPI, |
| 1329 | .manufacture_id = AMIC_ID_NOPREFIX, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 1330 | .model_id = AMIC_A25LQ64, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1331 | .total_size = 8192, |
| 1332 | .page_size = 256, |
| 1333 | /* supports SFDP */ |
| 1334 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1335 | /* QPI enable 0x35, disable 0xF5 */ |
| 1336 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1337 | .tested = TEST_UNTESTED, |
| 1338 | .probe = probe_spi_rdid, |
| 1339 | .probe_timing = TIMING_ZERO, |
| 1340 | .block_erasers = |
| 1341 | { |
| 1342 | { |
| 1343 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1344 | .block_erase = spi_block_erase_20, |
| 1345 | }, { |
| 1346 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1347 | .block_erase = spi_block_erase_52, |
| 1348 | }, { |
| 1349 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1350 | .block_erase = spi_block_erase_d8, |
| 1351 | }, { |
| 1352 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1353 | .block_erase = spi_block_erase_60, |
| 1354 | }, { |
| 1355 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1356 | .block_erase = spi_block_erase_c7, |
| 1357 | } |
| 1358 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1359 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1360 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1361 | .write = spi_chip_write_256, |
| 1362 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1363 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1364 | }, |
| 1365 | |
| 1366 | { |
| 1367 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1368 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1369 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1370 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1371 | .model_id = AMIC_A29002B, |
| 1372 | .total_size = 256, |
| 1373 | .page_size = 64 * 1024, |
| 1374 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1375 | .tested = TEST_UNTESTED, |
| 1376 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1377 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1378 | .block_erasers = |
| 1379 | { |
| 1380 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1381 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1382 | {16 * 1024, 1}, |
| 1383 | {8 * 1024, 2}, |
| 1384 | {32 * 1024, 1}, |
| 1385 | {64 * 1024, 3}, |
| 1386 | }, |
| 1387 | .block_erase = erase_sector_jedec, |
| 1388 | }, { |
| 1389 | .eraseblocks = { {256 * 1024, 1} }, |
| 1390 | .block_erase = erase_chip_block_jedec, |
| 1391 | }, |
| 1392 | }, |
| 1393 | .write = write_jedec_1, |
| 1394 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1395 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1396 | }, |
| 1397 | |
| 1398 | { |
| 1399 | .vendor = "AMIC", |
| 1400 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1401 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1402 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1403 | .model_id = AMIC_A29002T, |
| 1404 | .total_size = 256, |
| 1405 | .page_size = 64 * 1024, |
| 1406 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1407 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1408 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1409 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1410 | .block_erasers = |
| 1411 | { |
| 1412 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1413 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1414 | {64 * 1024, 3}, |
| 1415 | {32 * 1024, 1}, |
| 1416 | {8 * 1024, 2}, |
| 1417 | {16 * 1024, 1}, |
| 1418 | }, |
| 1419 | .block_erase = erase_sector_jedec, |
| 1420 | }, { |
| 1421 | .eraseblocks = { {256 * 1024, 1} }, |
| 1422 | .block_erase = erase_chip_block_jedec, |
| 1423 | }, |
| 1424 | }, |
| 1425 | .write = write_jedec_1, |
| 1426 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1427 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1428 | }, |
| 1429 | |
| 1430 | { |
| 1431 | .vendor = "AMIC", |
| 1432 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1433 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1434 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1435 | .model_id = AMIC_A29040B, |
| 1436 | .total_size = 512, |
| 1437 | .page_size = 64 * 1024, |
| 1438 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1439 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1440 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1441 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1442 | .block_erasers = |
| 1443 | { |
| 1444 | { |
| 1445 | .eraseblocks = { {64 * 1024, 8} }, |
| 1446 | .block_erase = erase_sector_jedec, |
| 1447 | }, { |
| 1448 | .eraseblocks = { {512 * 1024, 1} }, |
| 1449 | .block_erase = erase_chip_block_jedec, |
| 1450 | }, |
| 1451 | }, |
| 1452 | .write = write_jedec_1, |
| 1453 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1454 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1455 | }, |
| 1456 | |
| 1457 | { |
| 1458 | .vendor = "AMIC", |
| 1459 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1460 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1461 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1462 | .model_id = AMIC_A49LF040A, |
| 1463 | .total_size = 512, |
| 1464 | .page_size = 64 * 1024, |
| 1465 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1466 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1467 | .probe = probe_jedec, |
| 1468 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1469 | .block_erasers = |
| 1470 | { |
| 1471 | { |
| 1472 | .eraseblocks = { {64 * 1024, 8} }, |
| 1473 | .block_erase = erase_block_jedec, |
| 1474 | }, { |
| 1475 | .eraseblocks = { {512 * 1024, 1} }, |
| 1476 | .block_erase = erase_chip_block_jedec, |
| 1477 | } |
| 1478 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1479 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1480 | .write = write_jedec_1, |
| 1481 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1482 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1483 | }, |
| 1484 | |
| 1485 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1486 | .vendor = "Atmel", |
| 1487 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1488 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1489 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1490 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1491 | .total_size = 256, |
| 1492 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1493 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1494 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1495 | .tested = TEST_UNTESTED, |
| 1496 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1498 | .block_erasers = |
| 1499 | { |
| 1500 | { |
| 1501 | .eraseblocks = { {4 * 1024, 64} }, |
| 1502 | .block_erase = spi_block_erase_20, |
| 1503 | }, { |
| 1504 | .eraseblocks = { {32 * 1024, 8} }, |
| 1505 | .block_erase = spi_block_erase_52, |
| 1506 | }, { |
| 1507 | .eraseblocks = { {64 * 1024, 4} }, |
| 1508 | .block_erase = spi_block_erase_d8, |
| 1509 | }, { |
| 1510 | .eraseblocks = { {256 * 1024, 1} }, |
| 1511 | .block_erase = spi_block_erase_60, |
| 1512 | }, { |
| 1513 | .eraseblocks = { {256 * 1024, 1} }, |
| 1514 | .block_erase = spi_block_erase_c7, |
| 1515 | } |
| 1516 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1517 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1518 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1519 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1520 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1521 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1522 | }, |
| 1523 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1524 | { |
| 1525 | .vendor = "Atmel", |
| 1526 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1527 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1528 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1529 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1530 | .total_size = 512, |
| 1531 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1532 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1533 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1534 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1535 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1536 | .block_erasers = |
| 1537 | { |
| 1538 | { |
| 1539 | .eraseblocks = { {4 * 1024, 128} }, |
| 1540 | .block_erase = spi_block_erase_20, |
| 1541 | }, { |
| 1542 | .eraseblocks = { {32 * 1024, 16} }, |
| 1543 | .block_erase = spi_block_erase_52, |
| 1544 | }, { |
| 1545 | .eraseblocks = { {64 * 1024, 8} }, |
| 1546 | .block_erase = spi_block_erase_d8, |
| 1547 | }, { |
| 1548 | .eraseblocks = { {512 * 1024, 1} }, |
| 1549 | .block_erase = spi_block_erase_60, |
| 1550 | }, { |
| 1551 | .eraseblocks = { {512 * 1024, 1} }, |
| 1552 | .block_erase = spi_block_erase_c7, |
| 1553 | } |
| 1554 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1555 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1556 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1557 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1558 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1559 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1560 | }, |
| 1561 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1562 | { |
| 1563 | .vendor = "Atmel", |
| 1564 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1565 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1566 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1567 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1568 | .total_size = 1024, |
| 1569 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1570 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1571 | .tested = TEST_UNTESTED, |
| 1572 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1573 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1574 | .block_erasers = |
| 1575 | { |
| 1576 | { |
| 1577 | .eraseblocks = { {4 * 1024, 256} }, |
| 1578 | .block_erase = spi_block_erase_20, |
| 1579 | }, { |
| 1580 | .eraseblocks = { {32 * 1024, 32} }, |
| 1581 | .block_erase = spi_block_erase_52, |
| 1582 | }, { |
| 1583 | .eraseblocks = { {64 * 1024, 16} }, |
| 1584 | .block_erase = spi_block_erase_d8, |
| 1585 | }, { |
| 1586 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1587 | .block_erase = spi_block_erase_60, |
| 1588 | }, { |
| 1589 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1590 | .block_erase = spi_block_erase_c7, |
| 1591 | } |
| 1592 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1593 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1594 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1595 | .write = spi_chip_write_256, |
| 1596 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1597 | .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */ |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1598 | }, |
| 1599 | |
| 1600 | { |
| 1601 | .vendor = "Atmel", |
| 1602 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1603 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1604 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1605 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1606 | .total_size = 1024, |
| 1607 | .page_size = 256, |
| 1608 | .feature_bits = FEATURE_WRSR_WREN, |
| 1609 | .tested = TEST_UNTESTED, |
| 1610 | .probe = probe_spi_rdid, |
| 1611 | .probe_timing = TIMING_ZERO, |
| 1612 | .block_erasers = |
| 1613 | { |
| 1614 | { |
| 1615 | .eraseblocks = { {4 * 1024, 256} }, |
| 1616 | .block_erase = spi_block_erase_20, |
| 1617 | }, { |
| 1618 | .eraseblocks = { {32 * 1024, 32} }, |
| 1619 | .block_erase = spi_block_erase_52, |
| 1620 | }, { |
| 1621 | .eraseblocks = { {64 * 1024, 16} }, |
| 1622 | .block_erase = spi_block_erase_d8, |
| 1623 | }, { |
| 1624 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1625 | .block_erase = spi_block_erase_60, |
| 1626 | }, { |
| 1627 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1628 | .block_erase = spi_block_erase_c7, |
| 1629 | } |
| 1630 | }, |
| 1631 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1632 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1633 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1634 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1635 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1636 | }, |
| 1637 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1638 | { |
| 1639 | .vendor = "Atmel", |
| 1640 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1641 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1642 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1643 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1644 | .total_size = 2048, |
| 1645 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1646 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 1647 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1648 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1649 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1650 | .block_erasers = |
| 1651 | { |
| 1652 | { |
| 1653 | .eraseblocks = { {4 * 1024, 512} }, |
| 1654 | .block_erase = spi_block_erase_20, |
| 1655 | }, { |
| 1656 | .eraseblocks = { {32 * 1024, 64} }, |
| 1657 | .block_erase = spi_block_erase_52, |
| 1658 | }, { |
| 1659 | .eraseblocks = { {64 * 1024, 32} }, |
| 1660 | .block_erase = spi_block_erase_d8, |
| 1661 | }, { |
| 1662 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1663 | .block_erase = spi_block_erase_60, |
| 1664 | }, { |
| 1665 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1666 | .block_erase = spi_block_erase_c7, |
| 1667 | } |
| 1668 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1669 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1670 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1671 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1672 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1673 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1674 | }, |
| 1675 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1676 | { |
| 1677 | .vendor = "Atmel", |
| 1678 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1679 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1680 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1681 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1682 | .total_size = 4096, |
| 1683 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1684 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1685 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1686 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1687 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1688 | .block_erasers = |
| 1689 | { |
| 1690 | { |
| 1691 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1692 | .block_erase = spi_block_erase_20, |
| 1693 | }, { |
| 1694 | .eraseblocks = { {32 * 1024, 128} }, |
| 1695 | .block_erase = spi_block_erase_52, |
| 1696 | }, { |
| 1697 | .eraseblocks = { {64 * 1024, 64} }, |
| 1698 | .block_erase = spi_block_erase_d8, |
| 1699 | }, { |
| 1700 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1701 | .block_erase = spi_block_erase_60, |
| 1702 | }, { |
| 1703 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1704 | .block_erase = spi_block_erase_c7, |
| 1705 | } |
| 1706 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1707 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1708 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1709 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1710 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1711 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1712 | }, |
| 1713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1714 | { |
| 1715 | .vendor = "Atmel", |
| 1716 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1717 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1718 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1719 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1720 | .total_size = 4096, |
| 1721 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1722 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1723 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1724 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1725 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1726 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1727 | .block_erasers = |
| 1728 | { |
| 1729 | { |
| 1730 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1731 | .block_erase = spi_block_erase_20, |
| 1732 | }, { |
| 1733 | .eraseblocks = { {32 * 1024, 128} }, |
| 1734 | .block_erase = spi_block_erase_52, |
| 1735 | }, { |
| 1736 | .eraseblocks = { {64 * 1024, 64} }, |
| 1737 | .block_erase = spi_block_erase_d8, |
| 1738 | }, { |
| 1739 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1740 | .block_erase = spi_block_erase_60, |
| 1741 | }, { |
| 1742 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1743 | .block_erase = spi_block_erase_c7, |
| 1744 | } |
| 1745 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1746 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1747 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1748 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1749 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1750 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1751 | }, |
| 1752 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1753 | { |
| 1754 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1755 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1756 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1757 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1758 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1759 | .total_size = 8192, |
| 1760 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1761 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1762 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1763 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1764 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1765 | .block_erasers = |
| 1766 | { |
| 1767 | { |
| 1768 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1769 | .block_erase = spi_block_erase_20, |
| 1770 | }, { |
| 1771 | .eraseblocks = { {32 * 1024, 256} }, |
| 1772 | .block_erase = spi_block_erase_52, |
| 1773 | }, { |
| 1774 | .eraseblocks = { {64 * 1024, 128} }, |
| 1775 | .block_erase = spi_block_erase_d8, |
| 1776 | }, { |
| 1777 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1778 | .block_erase = spi_block_erase_60, |
| 1779 | }, { |
| 1780 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1781 | .block_erase = spi_block_erase_c7, |
| 1782 | } |
| 1783 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1784 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1785 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1786 | .write = spi_chip_write_256, |
| 1787 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1788 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1789 | }, |
| 1790 | |
| 1791 | { |
| 1792 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1793 | .name = "AT25DL081", |
| 1794 | .bustype = BUS_SPI, |
| 1795 | .manufacture_id = ATMEL_ID, |
| 1796 | .model_id = ATMEL_AT25DF081, |
| 1797 | .total_size = 1024, |
| 1798 | .page_size = 256, |
| 1799 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1800 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1801 | .tested = TEST_UNTESTED, |
| 1802 | .probe = probe_spi_rdid, |
| 1803 | .probe_timing = TIMING_ZERO, |
| 1804 | .block_erasers = |
| 1805 | { |
| 1806 | { |
| 1807 | .eraseblocks = { {4 * 1024, 256} }, |
| 1808 | .block_erase = spi_block_erase_20, |
| 1809 | }, { |
| 1810 | .eraseblocks = { {32 * 1024, 32} }, |
| 1811 | .block_erase = spi_block_erase_52, |
| 1812 | }, { |
| 1813 | .eraseblocks = { {64 * 1024, 16} }, |
| 1814 | .block_erase = spi_block_erase_d8, |
| 1815 | }, { |
| 1816 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1817 | .block_erase = spi_block_erase_60, |
| 1818 | }, { |
| 1819 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1820 | .block_erase = spi_block_erase_c7, |
| 1821 | } |
| 1822 | }, |
| 1823 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1824 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1825 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1826 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1827 | .voltage = {1650, 1950}, |
| 1828 | }, |
| 1829 | |
| 1830 | { |
| 1831 | .vendor = "Atmel", |
| 1832 | .name = "AT25DL161", |
| 1833 | .bustype = BUS_SPI, |
| 1834 | .manufacture_id = ATMEL_ID, |
| 1835 | .model_id = ATMEL_AT25DL161, |
| 1836 | .total_size = 2048, |
| 1837 | .page_size = 256, |
| 1838 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1839 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1840 | .tested = TEST_UNTESTED, |
| 1841 | .probe = probe_spi_rdid, |
| 1842 | .probe_timing = TIMING_ZERO, |
| 1843 | .block_erasers = |
| 1844 | { |
| 1845 | { |
| 1846 | .eraseblocks = { {4 * 1024, 512} }, |
| 1847 | .block_erase = spi_block_erase_20, |
| 1848 | }, { |
| 1849 | .eraseblocks = { {32 * 1024, 64} }, |
| 1850 | .block_erase = spi_block_erase_52, |
| 1851 | }, { |
| 1852 | .eraseblocks = { {64 * 1024, 32} }, |
| 1853 | .block_erase = spi_block_erase_d8, |
| 1854 | }, { |
| 1855 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1856 | .block_erase = spi_block_erase_60, |
| 1857 | }, { |
| 1858 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1859 | .block_erase = spi_block_erase_c7, |
| 1860 | } |
| 1861 | }, |
| 1862 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1863 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1864 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1865 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1866 | .voltage = {1650, 1950}, |
| 1867 | }, |
| 1868 | |
| 1869 | { |
| 1870 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1871 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1872 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1873 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1874 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1875 | .total_size = 2048, |
| 1876 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1877 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1878 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1879 | .tested = TEST_UNTESTED, |
| 1880 | .probe = probe_spi_rdid, |
| 1881 | .probe_timing = TIMING_ZERO, |
| 1882 | .block_erasers = |
| 1883 | { |
| 1884 | { |
| 1885 | .eraseblocks = { {4 * 1024, 512} }, |
| 1886 | .block_erase = spi_block_erase_20, |
| 1887 | }, { |
| 1888 | .eraseblocks = { {32 * 1024, 64} }, |
| 1889 | .block_erase = spi_block_erase_52, |
| 1890 | }, { |
| 1891 | .eraseblocks = { {64 * 1024, 32} }, |
| 1892 | .block_erase = spi_block_erase_d8, |
| 1893 | }, { |
| 1894 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1895 | .block_erase = spi_block_erase_60, |
| 1896 | }, { |
| 1897 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1898 | .block_erase = spi_block_erase_c7, |
| 1899 | } |
| 1900 | }, |
| 1901 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1902 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1903 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1904 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1905 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1906 | }, |
| 1907 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1908 | { |
| 1909 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1910 | .name = "AT25F512", |
| 1911 | .bustype = BUS_SPI, |
| 1912 | .manufacture_id = ATMEL_ID, |
| 1913 | .model_id = ATMEL_AT25F512, |
| 1914 | .total_size = 64, |
| 1915 | .page_size = 256, |
| 1916 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1917 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1918 | .probe = probe_spi_at25f, |
| 1919 | .probe_timing = TIMING_ZERO, |
| 1920 | .block_erasers = |
| 1921 | { |
| 1922 | { |
| 1923 | .eraseblocks = { {32 * 1024, 2} }, |
| 1924 | .block_erase = spi_block_erase_52, |
| 1925 | }, { |
| 1926 | .eraseblocks = { {64 * 1024, 1} }, |
| 1927 | .block_erase = spi_block_erase_62, |
| 1928 | } |
| 1929 | }, |
| 1930 | .printlock = spi_prettyprint_status_register_at25f, |
| 1931 | .unlock = spi_disable_blockprotect_at25f, |
| 1932 | .write = spi_chip_write_256, |
| 1933 | .read = spi_chip_read, |
| 1934 | .voltage = {2700, 3600}, |
| 1935 | }, |
| 1936 | |
| 1937 | { |
| 1938 | .vendor = "Atmel", |
| 1939 | .name = "AT25F512A", |
| 1940 | .bustype = BUS_SPI, |
| 1941 | .manufacture_id = ATMEL_ID, |
| 1942 | .model_id = ATMEL_AT25F512A, |
| 1943 | .total_size = 64, |
| 1944 | .page_size = 128, |
| 1945 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1946 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1947 | .probe = probe_spi_at25f, |
| 1948 | .probe_timing = TIMING_ZERO, |
| 1949 | .block_erasers = |
| 1950 | { |
| 1951 | { |
| 1952 | .eraseblocks = { {32 * 1024, 2} }, |
| 1953 | .block_erase = spi_block_erase_52, |
| 1954 | }, { |
| 1955 | .eraseblocks = { {64 * 1024, 1} }, |
| 1956 | .block_erase = spi_block_erase_62, |
| 1957 | } |
| 1958 | }, |
| 1959 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1960 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1961 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1962 | .write = spi_chip_write_256, |
| 1963 | .read = spi_chip_read, |
| 1964 | .voltage = {2700, 3600}, |
| 1965 | }, |
| 1966 | |
| 1967 | { |
| 1968 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1969 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1970 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1971 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1972 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1973 | .total_size = 64, |
| 1974 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1975 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1976 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1977 | .tested = TEST_UNTESTED, |
| 1978 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1979 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1980 | .block_erasers = |
| 1981 | { |
| 1982 | { |
| 1983 | .eraseblocks = { {4 * 1024, 16} }, |
| 1984 | .block_erase = spi_block_erase_20, |
| 1985 | }, { |
| 1986 | .eraseblocks = { {32 * 1024, 2} }, |
| 1987 | .block_erase = spi_block_erase_52, |
| 1988 | }, { |
| 1989 | .eraseblocks = { {32 * 1024, 2} }, |
| 1990 | .block_erase = spi_block_erase_d8, |
| 1991 | }, { |
| 1992 | .eraseblocks = { {64 * 1024, 1} }, |
| 1993 | .block_erase = spi_block_erase_60, |
| 1994 | }, { |
| 1995 | .eraseblocks = { {64 * 1024, 1} }, |
| 1996 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1997 | }, { |
| 1998 | .eraseblocks = { {64 * 1024, 1} }, |
| 1999 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2000 | } |
| 2001 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2002 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2003 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2004 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2005 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2006 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2007 | }, |
| 2008 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2009 | { |
| 2010 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2011 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 2012 | * All other properties seem to be the same.*/ |
| 2013 | .name = "AT25F1024(A)", |
| 2014 | .bustype = BUS_SPI, |
| 2015 | .manufacture_id = ATMEL_ID, |
| 2016 | .model_id = ATMEL_AT25F1024, |
| 2017 | .total_size = 128, |
| 2018 | .page_size = 256, |
| 2019 | .feature_bits = FEATURE_WRSR_WREN, |
| 2020 | .tested = TEST_OK_PREW, |
| 2021 | .probe = probe_spi_at25f, |
| 2022 | .probe_timing = TIMING_ZERO, |
| 2023 | .block_erasers = |
| 2024 | { |
| 2025 | { |
| 2026 | .eraseblocks = { {32 * 1024, 4} }, |
| 2027 | .block_erase = spi_block_erase_52, |
| 2028 | }, { |
| 2029 | .eraseblocks = { {128 * 1024, 1} }, |
| 2030 | .block_erase = spi_block_erase_62, |
| 2031 | } |
| 2032 | }, |
| 2033 | .printlock = spi_prettyprint_status_register_at25f, |
| 2034 | .unlock = spi_disable_blockprotect_at25f, |
| 2035 | .write = spi_chip_write_256, |
| 2036 | .read = spi_chip_read, |
| 2037 | .voltage = {2700, 3600}, |
| 2038 | }, |
| 2039 | |
| 2040 | { |
| 2041 | .vendor = "Atmel", |
| 2042 | .name = "AT25F2048", |
| 2043 | .bustype = BUS_SPI, |
| 2044 | .manufacture_id = ATMEL_ID, |
| 2045 | .model_id = ATMEL_AT25F2048, |
| 2046 | .total_size = 256, |
| 2047 | .page_size = 256, |
| 2048 | .feature_bits = FEATURE_WRSR_WREN, |
| 2049 | .tested = TEST_UNTESTED, |
| 2050 | .probe = probe_spi_at25f, |
| 2051 | .probe_timing = TIMING_ZERO, |
| 2052 | .block_erasers = |
| 2053 | { |
| 2054 | { |
| 2055 | .eraseblocks = { {64 * 1024, 4} }, |
| 2056 | .block_erase = spi_block_erase_52, |
| 2057 | }, { |
| 2058 | .eraseblocks = { {256 * 1024, 1} }, |
| 2059 | .block_erase = spi_block_erase_62, |
| 2060 | } |
| 2061 | }, |
| 2062 | .printlock = spi_prettyprint_status_register_at25f, |
| 2063 | .unlock = spi_disable_blockprotect_at25f, |
| 2064 | .write = spi_chip_write_256, |
| 2065 | .read = spi_chip_read, |
| 2066 | .voltage = {2700, 3600}, |
| 2067 | }, |
| 2068 | |
| 2069 | { |
| 2070 | .vendor = "Atmel", |
| 2071 | .name = "AT25F4096", |
| 2072 | .bustype = BUS_SPI, |
| 2073 | .manufacture_id = ATMEL_ID, |
| 2074 | .model_id = ATMEL_AT25F4096, |
| 2075 | .total_size = 512, |
| 2076 | .page_size = 256, |
| 2077 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2078 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2079 | .probe = probe_spi_at25f, |
| 2080 | .probe_timing = TIMING_ZERO, |
| 2081 | .block_erasers = |
| 2082 | { |
| 2083 | { |
| 2084 | .eraseblocks = { {64 * 1024, 8} }, |
| 2085 | .block_erase = spi_block_erase_52, |
| 2086 | }, { |
| 2087 | .eraseblocks = { {512 * 1024, 1} }, |
| 2088 | .block_erase = spi_block_erase_62, |
| 2089 | } |
| 2090 | }, |
| 2091 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 2092 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2093 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2094 | .write = spi_chip_write_256, |
| 2095 | .read = spi_chip_read, |
| 2096 | .voltage = {2700, 3600}, |
| 2097 | }, |
| 2098 | |
| 2099 | { |
| 2100 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2101 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2102 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2104 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2105 | .total_size = 128, |
| 2106 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2107 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2108 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2109 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2110 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2111 | .block_erasers = |
| 2112 | { |
| 2113 | { |
| 2114 | .eraseblocks = { {4 * 1024, 32} }, |
| 2115 | .block_erase = spi_block_erase_20, |
| 2116 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2117 | .eraseblocks = { {4 * 1024, 32} }, |
| 2118 | .block_erase = spi_block_erase_d7, |
| 2119 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2120 | .eraseblocks = { {32 * 1024, 4} }, |
| 2121 | .block_erase = spi_block_erase_52, |
| 2122 | }, { |
| 2123 | .eraseblocks = { {32 * 1024, 4} }, |
| 2124 | .block_erase = spi_block_erase_d8, |
| 2125 | }, { |
| 2126 | .eraseblocks = { {128 * 1024, 1} }, |
| 2127 | .block_erase = spi_block_erase_60, |
| 2128 | }, { |
| 2129 | .eraseblocks = { {128 * 1024, 1} }, |
| 2130 | .block_erase = spi_block_erase_c7, |
| 2131 | } |
| 2132 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2133 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2134 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2135 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2136 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2137 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2138 | }, |
| 2139 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2140 | { |
| 2141 | .vendor = "Atmel", |
| 2142 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2143 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2144 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2145 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2146 | .total_size = 512, |
| 2147 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2148 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2149 | .tested = TEST_UNTESTED, |
| 2150 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2151 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2152 | .block_erasers = |
| 2153 | { |
| 2154 | { |
| 2155 | .eraseblocks = { {4 * 1024, 128} }, |
| 2156 | .block_erase = spi_block_erase_20, |
| 2157 | }, { |
| 2158 | .eraseblocks = { {64 * 1024, 8} }, |
| 2159 | .block_erase = spi_block_erase_52, |
| 2160 | }, { |
| 2161 | .eraseblocks = { {64 * 1024, 8} }, |
| 2162 | .block_erase = spi_block_erase_d8, |
| 2163 | }, { |
| 2164 | .eraseblocks = { {512 * 1024, 1} }, |
| 2165 | .block_erase = spi_block_erase_60, |
| 2166 | }, { |
| 2167 | .eraseblocks = { {512 * 1024, 1} }, |
| 2168 | .block_erase = spi_block_erase_c7, |
| 2169 | } |
| 2170 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2171 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2172 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2173 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2174 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2175 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2176 | }, |
| 2177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2178 | { |
| 2179 | .vendor = "Atmel", |
| 2180 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2181 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2182 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2183 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | .total_size = 512, |
| 2185 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2186 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2187 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2188 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2190 | .block_erasers = |
| 2191 | { |
| 2192 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2193 | .eraseblocks = { {256, 2048} }, |
| 2194 | .block_erase = spi_block_erase_81, |
| 2195 | }, { |
| 2196 | .eraseblocks = { {2 * 1024, 256} }, |
| 2197 | .block_erase = spi_block_erase_50, |
| 2198 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2199 | .eraseblocks = { {4 * 1024, 128} }, |
| 2200 | .block_erase = spi_block_erase_20, |
| 2201 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2202 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2203 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2204 | /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */ |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2205 | .write = spi_chip_write_1, |
| 2206 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2207 | .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2208 | }, |
| 2209 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2210 | { |
| 2211 | .vendor = "Atmel", |
| 2212 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2213 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2214 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2215 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2216 | .total_size = 1024, |
| 2217 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2218 | .feature_bits = FEATURE_WRSR_WREN, |
| 2219 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2220 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2221 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2222 | .block_erasers = |
| 2223 | { |
| 2224 | { |
| 2225 | .eraseblocks = { {4 * 1024, 256} }, |
| 2226 | .block_erase = spi_block_erase_20, |
| 2227 | }, { |
| 2228 | .eraseblocks = { {32 * 1024, 32} }, |
| 2229 | .block_erase = spi_block_erase_52, |
| 2230 | }, { |
| 2231 | .eraseblocks = { {64 * 1024, 16} }, |
| 2232 | .block_erase = spi_block_erase_d8, |
| 2233 | }, { |
| 2234 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2235 | .block_erase = spi_block_erase_60, |
| 2236 | }, { |
| 2237 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2238 | .block_erase = spi_block_erase_c7, |
| 2239 | } |
| 2240 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2241 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2242 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2243 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2244 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2245 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2246 | }, |
| 2247 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2248 | { |
| 2249 | .vendor = "Atmel", |
| 2250 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2251 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2252 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2253 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2254 | .total_size = 2048, |
| 2255 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2256 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2257 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2258 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2259 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2260 | .block_erasers = |
| 2261 | { |
| 2262 | { |
| 2263 | .eraseblocks = { {4 * 1024, 512} }, |
| 2264 | .block_erase = spi_block_erase_20, |
| 2265 | }, { |
| 2266 | .eraseblocks = { {32 * 1024, 64} }, |
| 2267 | .block_erase = spi_block_erase_52, |
| 2268 | }, { |
| 2269 | .eraseblocks = { {64 * 1024, 32} }, |
| 2270 | .block_erase = spi_block_erase_d8, |
| 2271 | }, { |
| 2272 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2273 | .block_erase = spi_block_erase_60, |
| 2274 | }, { |
| 2275 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2276 | .block_erase = spi_block_erase_c7, |
| 2277 | } |
| 2278 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2279 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2280 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2281 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2282 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2283 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2284 | }, |
| 2285 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2286 | { |
| 2287 | .vendor = "Atmel", |
| 2288 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2289 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2290 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2291 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2292 | .total_size = 2048, |
| 2293 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2294 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2295 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2296 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2297 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2298 | .block_erasers = |
| 2299 | { |
| 2300 | { |
| 2301 | .eraseblocks = { {4 * 1024, 512} }, |
| 2302 | .block_erase = spi_block_erase_20, |
| 2303 | }, { |
| 2304 | .eraseblocks = { {32 * 1024, 64} }, |
| 2305 | .block_erase = spi_block_erase_52, |
| 2306 | }, { |
| 2307 | .eraseblocks = { {64 * 1024, 32} }, |
| 2308 | .block_erase = spi_block_erase_d8, |
| 2309 | }, { |
| 2310 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2311 | .block_erase = spi_block_erase_60, |
| 2312 | }, { |
| 2313 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2314 | .block_erase = spi_block_erase_c7, |
| 2315 | } |
| 2316 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2317 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2318 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2319 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2320 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2321 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2322 | }, |
| 2323 | |
| 2324 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2325 | /*{ |
| 2326 | .vendor = "Atmel", |
| 2327 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2328 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2329 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2330 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2331 | .total_size = 4096, |
| 2332 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2333 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2334 | .tested = TEST_UNTESTED, |
| 2335 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2336 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2337 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2338 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2339 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2340 | .read = spi_chip_read, |
| 2341 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2342 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2343 | { |
| 2344 | .vendor = "Atmel", |
| 2345 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2346 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2347 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2348 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2349 | .total_size = 512, |
| 2350 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 2351 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD }, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2352 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2353 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2354 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2355 | .block_erasers = |
| 2356 | { |
| 2357 | { |
| 2358 | .eraseblocks = { {4 * 1024, 128} }, |
| 2359 | .block_erase = spi_block_erase_20, |
| 2360 | }, { |
| 2361 | .eraseblocks = { {32 * 1024, 16} }, |
| 2362 | .block_erase = spi_block_erase_52, |
| 2363 | }, { |
| 2364 | .eraseblocks = { {64 * 1024, 8} }, |
| 2365 | .block_erase = spi_block_erase_d8, |
| 2366 | }, { |
| 2367 | .eraseblocks = { {512 * 1024, 1} }, |
| 2368 | .block_erase = spi_block_erase_60, |
| 2369 | }, { |
| 2370 | .eraseblocks = { {512 * 1024, 1} }, |
| 2371 | .block_erase = spi_block_erase_c7, |
| 2372 | } |
| 2373 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2374 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2375 | .write = NULL /* Incompatible Page write */, |
| 2376 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2377 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2378 | }, |
| 2379 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2380 | { |
| 2381 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2382 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2383 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2384 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2385 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2386 | .total_size = 64, |
| 2387 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2388 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2389 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2390 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2391 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2392 | .block_erasers = |
| 2393 | { |
| 2394 | { |
| 2395 | .eraseblocks = { {64 * 1024, 1} }, |
| 2396 | .block_erase = erase_chip_block_jedec, |
| 2397 | } |
| 2398 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2399 | .write = write_jedec, |
| 2400 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2401 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2402 | }, |
| 2403 | |
| 2404 | { |
| 2405 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2406 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2407 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2408 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2409 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2410 | .total_size = 128, |
| 2411 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2412 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2413 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2414 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2415 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2416 | .block_erasers = |
| 2417 | { |
| 2418 | { |
| 2419 | .eraseblocks = { {128 * 1024, 1} }, |
| 2420 | .block_erase = erase_chip_block_jedec, |
| 2421 | } |
| 2422 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2423 | .write = write_jedec, /* FIXME */ |
| 2424 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2425 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2426 | }, |
| 2427 | |
| 2428 | { |
| 2429 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2430 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2431 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2432 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2433 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2434 | .total_size = 256, |
| 2435 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2436 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2437 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2438 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2439 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2440 | .block_erasers = |
| 2441 | { |
| 2442 | { |
| 2443 | .eraseblocks = { {256 * 1024, 1} }, |
| 2444 | .block_erase = erase_chip_block_jedec, |
| 2445 | } |
| 2446 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2447 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2448 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2449 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2450 | }, |
| 2451 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2452 | { |
| 2453 | .vendor = "Atmel", |
| 2454 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2455 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2456 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2457 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2458 | .total_size = 512, |
| 2459 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2460 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2461 | .tested = TEST_UNTESTED, |
| 2462 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2463 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2464 | .block_erasers = |
| 2465 | { |
| 2466 | { |
| 2467 | .eraseblocks = { {512 * 1024, 1} }, |
| 2468 | .block_erase = erase_chip_block_jedec, |
| 2469 | } |
| 2470 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2471 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2472 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2473 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2474 | }, |
| 2475 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2476 | { |
| 2477 | .vendor = "Atmel", |
| 2478 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2479 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2480 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2481 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2482 | .total_size = 16896 /* No power of two sizes */, |
| 2483 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2484 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2485 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2486 | .feature_bits = FEATURE_OTP, |
| 2487 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2488 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2489 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2490 | .block_erasers = |
| 2491 | { |
| 2492 | { |
| 2493 | .eraseblocks = { |
| 2494 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2495 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2496 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2497 | }, |
| 2498 | .block_erase = spi_erase_at45cs_sector, |
| 2499 | } |
| 2500 | }, |
| 2501 | .printlock = spi_prettyprint_status_register_plain, |
| 2502 | .gran = write_gran_1056bytes, |
| 2503 | .write = spi_write_at45db, |
| 2504 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2505 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2506 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2507 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2508 | { |
| 2509 | .vendor = "Atmel", |
| 2510 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2511 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2512 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2513 | .model_id = ATMEL_AT45DB011D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2514 | .total_size = 128 /* or 132, determined from status register */, |
| 2515 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2516 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2517 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2518 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2519 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2520 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2521 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2522 | .block_erasers = |
| 2523 | { |
| 2524 | { |
| 2525 | .eraseblocks = { {256, 512} }, |
| 2526 | .block_erase = spi_erase_at45db_page, |
| 2527 | }, { |
| 2528 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2529 | .block_erase = spi_erase_at45db_block, |
| 2530 | }, { |
| 2531 | .eraseblocks = { |
| 2532 | {8 * 256, 1}, |
| 2533 | {120 * 256, 1}, |
| 2534 | {128 * 256, 3}, |
| 2535 | }, |
| 2536 | .block_erase = spi_erase_at45db_sector |
| 2537 | }, { |
| 2538 | .eraseblocks = { {128 * 1024, 1} }, |
| 2539 | .block_erase = spi_erase_at45db_chip, |
| 2540 | } |
| 2541 | }, |
| 2542 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2543 | .printlock = spi_prettyprint_status_register_at45db, |
| 2544 | /* granularity will be set by the probing function. */ |
| 2545 | .write = spi_write_at45db, |
| 2546 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2547 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2548 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2549 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2550 | { |
| 2551 | .vendor = "Atmel", |
| 2552 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2553 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2554 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2555 | .model_id = ATMEL_AT45DB021D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2556 | .total_size = 256 /* or 264, determined from status register */, |
| 2557 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2558 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2559 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2560 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2561 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2562 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2563 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2564 | .block_erasers = |
| 2565 | { |
| 2566 | { |
| 2567 | .eraseblocks = { {256, 1024} }, |
| 2568 | .block_erase = spi_erase_at45db_page, |
| 2569 | }, { |
| 2570 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2571 | .block_erase = spi_erase_at45db_block, |
| 2572 | }, { |
| 2573 | .eraseblocks = { |
| 2574 | {8 * 256, 1}, |
| 2575 | {120 * 256, 1}, |
| 2576 | {128 * 256, 7}, |
| 2577 | }, |
| 2578 | .block_erase = spi_erase_at45db_sector |
| 2579 | }, { |
| 2580 | .eraseblocks = { {256 * 1024, 1} }, |
| 2581 | .block_erase = spi_erase_at45db_chip, |
| 2582 | } |
| 2583 | }, |
| 2584 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2585 | .printlock = spi_prettyprint_status_register_at45db, |
| 2586 | /* granularity will be set by the probing function. */ |
| 2587 | .write = spi_write_at45db, |
| 2588 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2589 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2590 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2591 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2592 | { |
| 2593 | .vendor = "Atmel", |
| 2594 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2595 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2596 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2597 | .model_id = ATMEL_AT45DB041D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2598 | .total_size = 512 /* or 528, determined from status register */, |
| 2599 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2600 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2601 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2602 | .feature_bits = FEATURE_OTP, |
| 2603 | .tested = TEST_OK_PREW, |
| 2604 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2605 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2606 | .block_erasers = |
| 2607 | { |
| 2608 | { |
| 2609 | .eraseblocks = { {256, 2048} }, |
| 2610 | .block_erase = spi_erase_at45db_page, |
| 2611 | }, { |
| 2612 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2613 | .block_erase = spi_erase_at45db_block, |
| 2614 | }, { |
| 2615 | .eraseblocks = { |
| 2616 | {8 * 256, 1}, |
| 2617 | {248 * 256, 1}, |
| 2618 | {256 * 256, 7}, |
| 2619 | }, |
| 2620 | .block_erase = spi_erase_at45db_sector |
| 2621 | }, { |
| 2622 | .eraseblocks = { {512 * 1024, 1} }, |
| 2623 | .block_erase = spi_erase_at45db_chip, |
| 2624 | } |
| 2625 | }, |
| 2626 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2627 | .printlock = spi_prettyprint_status_register_at45db, |
| 2628 | /* granularity will be set by the probing function. */ |
| 2629 | .write = spi_write_at45db, |
| 2630 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2631 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2632 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2633 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2634 | { |
| 2635 | .vendor = "Atmel", |
| 2636 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2637 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2638 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2639 | .model_id = ATMEL_AT45DB081D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2640 | .total_size = 1024 /* or 1056, determined from status register */, |
| 2641 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2642 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2643 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2644 | .feature_bits = FEATURE_OTP, |
| 2645 | .tested = TEST_UNTESTED, |
| 2646 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2647 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2648 | .block_erasers = |
| 2649 | { |
| 2650 | { |
| 2651 | .eraseblocks = { {256, 4096} }, |
| 2652 | .block_erase = spi_erase_at45db_page, |
| 2653 | }, { |
| 2654 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2655 | .block_erase = spi_erase_at45db_block, |
| 2656 | }, { |
| 2657 | .eraseblocks = { |
| 2658 | {8 * 256, 1}, |
| 2659 | {248 * 256, 1}, |
| 2660 | {256 * 256, 15}, |
| 2661 | }, |
| 2662 | .block_erase = spi_erase_at45db_sector |
| 2663 | }, { |
| 2664 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2665 | .block_erase = spi_erase_at45db_chip, |
| 2666 | } |
| 2667 | }, |
| 2668 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2669 | .printlock = spi_prettyprint_status_register_at45db, |
| 2670 | /* granularity will be set by the probing function. */ |
| 2671 | .write = spi_write_at45db, |
| 2672 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2673 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2674 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2675 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2676 | { |
| 2677 | .vendor = "Atmel", |
| 2678 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2679 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2680 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2681 | .model_id = ATMEL_AT45DB161D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2682 | .total_size = 2048 /* or 2112, determined from status register */, |
| 2683 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2684 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2685 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2686 | .feature_bits = FEATURE_OTP, |
| 2687 | .tested = TEST_OK_PREW, |
| 2688 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2689 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2690 | .block_erasers = |
| 2691 | { |
| 2692 | { |
| 2693 | .eraseblocks = { {512, 4096} }, |
| 2694 | .block_erase = spi_erase_at45db_page, |
| 2695 | }, { |
| 2696 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2697 | .block_erase = spi_erase_at45db_block, |
| 2698 | }, { |
| 2699 | .eraseblocks = { |
| 2700 | {8 * 512, 1}, |
| 2701 | {248 * 512, 1}, |
| 2702 | {256 * 512, 15}, |
| 2703 | }, |
| 2704 | .block_erase = spi_erase_at45db_sector |
| 2705 | }, { |
| 2706 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2707 | .block_erase = spi_erase_at45db_chip, |
| 2708 | } |
| 2709 | }, |
| 2710 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2711 | .printlock = spi_prettyprint_status_register_at45db, |
| 2712 | /* granularity will be set by the probing function. */ |
| 2713 | .write = spi_write_at45db, |
| 2714 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2715 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2716 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2717 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2718 | { |
| 2719 | .vendor = "Atmel", |
| 2720 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2721 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2722 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2723 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2724 | .total_size = 4224 /* No power of two sizes */, |
| 2725 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2726 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2727 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2728 | .feature_bits = FEATURE_OTP, |
| 2729 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2730 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2731 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2732 | .block_erasers = |
| 2733 | { |
| 2734 | { |
| 2735 | .eraseblocks = { {528, 8192} }, |
| 2736 | .block_erase = spi_erase_at45db_page, |
| 2737 | }, { |
| 2738 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2739 | .block_erase = spi_erase_at45db_block, |
| 2740 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2741 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2742 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2743 | .eraseblocks = { |
| 2744 | {8 * 528, 1}, |
| 2745 | {120 * 528, 1}, |
| 2746 | {128 * 528, 63}, |
| 2747 | }, |
| 2748 | .block_erase = spi_erase_at45db_sector |
| 2749 | }, */ { |
| 2750 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2751 | .block_erase = spi_erase_at45db_chip, |
| 2752 | } |
| 2753 | }, |
| 2754 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
| 2755 | .gran = write_gran_528bytes, |
| 2756 | .write = spi_write_at45db, |
| 2757 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2758 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2759 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2760 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2761 | { |
| 2762 | .vendor = "Atmel", |
| 2763 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2764 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2765 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2766 | .model_id = ATMEL_AT45DB321D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2767 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2768 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2769 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2770 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2771 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2772 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2773 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2774 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2775 | .block_erasers = |
| 2776 | { |
| 2777 | { |
| 2778 | .eraseblocks = { {512, 8192} }, |
| 2779 | .block_erase = spi_erase_at45db_page, |
| 2780 | }, { |
| 2781 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2782 | .block_erase = spi_erase_at45db_block, |
| 2783 | }, { |
| 2784 | .eraseblocks = { |
| 2785 | {8 * 512, 1}, |
| 2786 | {120 * 512, 1}, |
| 2787 | {128 * 512, 63}, |
| 2788 | }, |
| 2789 | .block_erase = spi_erase_at45db_sector |
| 2790 | }, { |
| 2791 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2792 | .block_erase = spi_erase_at45db_chip, |
| 2793 | } |
| 2794 | }, |
| 2795 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2796 | .printlock = spi_prettyprint_status_register_at45db, |
| 2797 | /* granularity will be set by the probing function. */ |
| 2798 | .write = spi_write_at45db, |
| 2799 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2800 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2801 | }, |
| 2802 | |
| 2803 | { |
| 2804 | .vendor = "Atmel", |
| 2805 | .name = "AT45DB321E", |
| 2806 | .bustype = BUS_SPI, |
| 2807 | .manufacture_id = ATMEL_ID, |
| 2808 | .model_id = ATMEL_AT45DB321C, |
| 2809 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2810 | .page_size = 512 /* or 528, determined from status register */, |
| 2811 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2812 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2813 | .feature_bits = FEATURE_OTP, |
| 2814 | .tested = TEST_UNTESTED, |
| 2815 | .probe = probe_spi_at45db, |
| 2816 | .probe_timing = TIMING_ZERO, |
| 2817 | .block_erasers = |
| 2818 | { |
| 2819 | { |
| 2820 | .eraseblocks = { {512, 8192} }, |
| 2821 | .block_erase = spi_erase_at45db_page, |
| 2822 | }, { |
| 2823 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2824 | .block_erase = spi_erase_at45db_block, |
| 2825 | }, { |
| 2826 | .eraseblocks = { |
| 2827 | {8 * 512, 1}, |
| 2828 | {120 * 512, 1}, |
| 2829 | {128 * 512, 63}, |
| 2830 | }, |
| 2831 | .block_erase = spi_erase_at45db_sector |
| 2832 | }, { |
| 2833 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2834 | .block_erase = spi_erase_at45db_chip, |
| 2835 | } |
| 2836 | }, |
| 2837 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2838 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
| 2839 | /* granularity will be set by the probing function. */ |
| 2840 | .write = spi_write_at45db, |
| 2841 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2842 | .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2843 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2844 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2845 | { |
| 2846 | .vendor = "Atmel", |
| 2847 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2848 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2849 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2850 | .model_id = ATMEL_AT45DB642D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2851 | .total_size = 8192 /* or 8448, determined from status register */, |
| 2852 | .page_size = 1024 /* or 1056, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2853 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2854 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2855 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2856 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2857 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2858 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2859 | .block_erasers = |
| 2860 | { |
| 2861 | { |
| 2862 | .eraseblocks = { {1024, 8192} }, |
| 2863 | .block_erase = spi_erase_at45db_page, |
| 2864 | }, { |
| 2865 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 2866 | .block_erase = spi_erase_at45db_block, |
| 2867 | }, { |
| 2868 | .eraseblocks = { |
| 2869 | {8 * 1024, 1}, |
| 2870 | {248 * 1024, 1}, |
| 2871 | {256 * 1024, 31}, |
| 2872 | }, |
| 2873 | .block_erase = spi_erase_at45db_sector |
| 2874 | }, { |
| 2875 | .eraseblocks = { {8192 * 1024, 1} }, |
| 2876 | .block_erase = spi_erase_at45db_chip, |
| 2877 | } |
| 2878 | }, |
| 2879 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2880 | .printlock = spi_prettyprint_status_register_at45db, |
| 2881 | /* granularity will be set by the probing function. */ |
| 2882 | .write = spi_write_at45db, |
| 2883 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2884 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2885 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2886 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2887 | { |
| 2888 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2889 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2890 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2891 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2892 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2893 | .total_size = 64, |
| 2894 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2895 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2896 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2897 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2898 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2899 | .block_erasers = |
| 2900 | { |
| 2901 | { |
| 2902 | .eraseblocks = { {64 * 1024, 1} }, |
| 2903 | .block_erase = erase_chip_block_jedec, |
| 2904 | } |
| 2905 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2906 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2907 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2908 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2909 | }, |
| 2910 | |
| 2911 | { |
| 2912 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2913 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2914 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2915 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2916 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2917 | .total_size = 256, |
| 2918 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2919 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2920 | .tested = TEST_UNTESTED, |
| 2921 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2922 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2923 | .block_erasers = |
| 2924 | { |
| 2925 | { |
| 2926 | .eraseblocks = { |
| 2927 | {16 * 1024, 1}, |
| 2928 | {8 * 1024, 2}, |
| 2929 | {96 * 1024, 1}, |
| 2930 | {128 * 1024, 1}, |
| 2931 | }, |
| 2932 | .block_erase = erase_sector_jedec, |
| 2933 | }, { |
| 2934 | .eraseblocks = { {256 * 1024, 1} }, |
| 2935 | .block_erase = erase_chip_block_jedec, |
| 2936 | } |
| 2937 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2938 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2939 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2940 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2941 | }, |
| 2942 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2943 | { |
| 2944 | .vendor = "Atmel", |
| 2945 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2946 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2947 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2948 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2949 | .total_size = 256, |
| 2950 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2951 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2952 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2953 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2954 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2955 | .block_erasers = |
| 2956 | { |
| 2957 | { |
| 2958 | .eraseblocks = { |
| 2959 | {128 * 1024, 1}, |
| 2960 | {96 * 1024, 1}, |
| 2961 | {8 * 1024, 2}, |
| 2962 | {16 * 1024, 1}, |
| 2963 | }, |
| 2964 | .block_erase = erase_sector_jedec, |
| 2965 | }, { |
| 2966 | .eraseblocks = { {256 * 1024, 1} }, |
| 2967 | .block_erase = erase_chip_block_jedec, |
| 2968 | } |
| 2969 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2970 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2971 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2972 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2973 | }, |
| 2974 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2975 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2976 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2977 | .name = "AT49(H)F010", |
| 2978 | .bustype = BUS_PARALLEL, |
| 2979 | .manufacture_id = ATMEL_ID, |
| 2980 | .model_id = ATMEL_AT49F010, |
| 2981 | .total_size = 128, |
| 2982 | .page_size = 0, /* unused */ |
| 2983 | .feature_bits = FEATURE_EITHER_RESET, |
| 2984 | .tested = TEST_OK_PREW, |
| 2985 | .probe = probe_jedec, |
| 2986 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2987 | .block_erasers = |
| 2988 | { |
| 2989 | { |
| 2990 | .eraseblocks = { {128 * 1024, 1} }, |
| 2991 | .block_erase = erase_chip_block_jedec, |
| 2992 | } |
| 2993 | }, |
| 2994 | .printlock = printlock_at49f, |
| 2995 | .write = write_jedec_1, |
| 2996 | .read = read_memmapped, |
| 2997 | .voltage = {4500, 5500}, |
| 2998 | }, |
| 2999 | |
| 3000 | { |
| 3001 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3002 | .name = "AT49F020", |
| 3003 | .bustype = BUS_PARALLEL, |
| 3004 | .manufacture_id = ATMEL_ID, |
| 3005 | .model_id = ATMEL_AT49F020, |
| 3006 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3007 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3008 | .feature_bits = FEATURE_EITHER_RESET, |
| 3009 | .tested = TEST_OK_PRE, |
| 3010 | .probe = probe_jedec, |
| 3011 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3012 | .block_erasers = |
| 3013 | { |
| 3014 | { |
| 3015 | .eraseblocks = { {256 * 1024, 1} }, |
| 3016 | .block_erase = erase_chip_block_jedec, |
| 3017 | } |
| 3018 | /* Chip features an optional permanent write protection |
| 3019 | * of the first 8 kB. The erase function is the same as |
| 3020 | * above, but 00000H to 01FFFH will not be erased. |
| 3021 | * FIXME: add another eraser when partial erasers are |
| 3022 | * supported. |
| 3023 | */ |
| 3024 | }, |
| 3025 | .printlock = printlock_at49f, |
| 3026 | .write = write_jedec_1, |
| 3027 | .read = read_memmapped, |
| 3028 | .voltage = {4500, 5500}, |
| 3029 | }, |
| 3030 | |
| 3031 | { |
| 3032 | .vendor = "Atmel", |
| 3033 | .name = "AT49F040", |
| 3034 | .bustype = BUS_PARALLEL, |
| 3035 | .manufacture_id = ATMEL_ID, |
| 3036 | .model_id = ATMEL_AT49F040, |
| 3037 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3038 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3039 | .feature_bits = FEATURE_EITHER_RESET, |
| 3040 | .tested = TEST_UNTESTED, |
| 3041 | .probe = probe_jedec, |
| 3042 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3043 | .block_erasers = |
| 3044 | { |
| 3045 | { |
| 3046 | .eraseblocks = { {512 * 1024, 1} }, |
| 3047 | .block_erase = erase_chip_block_jedec, |
| 3048 | } |
| 3049 | /* Chip features an optional permanent write protection |
| 3050 | * of the first 16 kB. The erase function is the same as |
| 3051 | * above, but 00000H to 03FFFH will not be erased. |
| 3052 | * FIXME: add another eraser when partial erasers are |
| 3053 | * supported. |
| 3054 | */ |
| 3055 | }, |
| 3056 | .printlock = printlock_at49f, |
| 3057 | .write = write_jedec_1, |
| 3058 | .read = read_memmapped, |
| 3059 | .voltage = {4500, 5500}, |
| 3060 | }, |
| 3061 | |
| 3062 | { |
| 3063 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3064 | .name = "AT49F080", |
| 3065 | .bustype = BUS_PARALLEL, |
| 3066 | .manufacture_id = ATMEL_ID, |
| 3067 | .model_id = ATMEL_AT49F080, |
| 3068 | .total_size = 1024, |
| 3069 | .page_size = 0, /* unused */ |
| 3070 | .feature_bits = FEATURE_EITHER_RESET, |
| 3071 | .tested = TEST_UNTESTED, |
| 3072 | .probe = probe_jedec, |
| 3073 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3074 | .block_erasers = |
| 3075 | { |
| 3076 | { |
| 3077 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3078 | .block_erase = erase_chip_block_jedec, |
| 3079 | } |
| 3080 | /* Chip features an optional permanent write protection |
| 3081 | * of the first 16 kB. The erase function is the same as |
| 3082 | * above, but 00000H to 03FFFH will not be erased. |
| 3083 | * FIXME: add another eraser when partial erasers are |
| 3084 | * supported. |
| 3085 | */ |
| 3086 | }, |
| 3087 | .printlock = printlock_at49f, |
| 3088 | .write = write_jedec_1, |
| 3089 | .read = read_memmapped, |
| 3090 | .voltage = {4500, 5500}, |
| 3091 | }, |
| 3092 | |
| 3093 | { |
| 3094 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3095 | .vendor = "Atmel", |
| 3096 | .name = "AT49F080T", |
| 3097 | .bustype = BUS_PARALLEL, |
| 3098 | .manufacture_id = ATMEL_ID, |
| 3099 | .model_id = ATMEL_AT49F080T, |
| 3100 | .total_size = 1024, |
| 3101 | .page_size = 0, /* unused */ |
| 3102 | .feature_bits = FEATURE_EITHER_RESET, |
| 3103 | .tested = TEST_UNTESTED, |
| 3104 | .probe = probe_jedec, |
| 3105 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3106 | .block_erasers = |
| 3107 | { |
| 3108 | { |
| 3109 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3110 | .block_erase = erase_chip_block_jedec, |
| 3111 | } |
| 3112 | /* Chip features an optional permanent write protection |
| 3113 | * of the first 16 kB. The erase function is the same as |
| 3114 | * above, but FC000H to FFFFFH will not be erased. |
| 3115 | * FIXME: add another eraser when partial erasers are |
| 3116 | * supported. |
| 3117 | */ |
| 3118 | }, |
| 3119 | .printlock = printlock_at49f, |
| 3120 | .write = write_jedec_1, |
| 3121 | .read = read_memmapped, |
| 3122 | .voltage = {4500, 5500}, |
| 3123 | }, |
| 3124 | |
| 3125 | { |
| 3126 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3127 | .name = "AT49LH002", |
| 3128 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3129 | .manufacture_id = ATMEL_ID, |
| 3130 | .model_id = ATMEL_AT49LH002, |
| 3131 | .total_size = 256, |
| 3132 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3133 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3134 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3135 | .probe = probe_82802ab, |
| 3136 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3137 | .block_erasers = |
| 3138 | { |
| 3139 | { |
| 3140 | .eraseblocks = { |
| 3141 | {64 * 1024, 3}, |
| 3142 | {32 * 1024, 1}, |
| 3143 | {8 * 1024, 2}, |
| 3144 | {16 * 1024, 1}, |
| 3145 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3146 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3147 | }, { |
| 3148 | .eraseblocks = { |
| 3149 | {64 * 1024, 4}, |
| 3150 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3151 | .block_erase = erase_block_82802ab, |
| 3152 | }, |
| 3153 | }, |
| 3154 | .printlock = printlock_regspace2_block_eraser_0, |
| 3155 | .unlock = unlock_regspace2_block_eraser_0, |
| 3156 | .write = write_82802ab, |
| 3157 | .read = read_memmapped, |
| 3158 | .voltage = {3000, 3600}, |
| 3159 | }, |
| 3160 | |
| 3161 | { |
| 3162 | .vendor = "Atmel", |
| 3163 | .name = "AT49LH00B4", |
| 3164 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3165 | .manufacture_id = ATMEL_ID, |
| 3166 | .model_id = ATMEL_AT49LH00B4, |
| 3167 | .total_size = 512, |
| 3168 | .page_size = 0, /* unused */ |
| 3169 | .feature_bits = FEATURE_REGISTERMAP, |
| 3170 | .tested = TEST_UNTESTED, |
| 3171 | .probe = probe_82802ab, |
| 3172 | .probe_timing = TIMING_ZERO, |
| 3173 | .block_erasers = |
| 3174 | { |
| 3175 | { |
| 3176 | .eraseblocks = { |
| 3177 | {8 * 1024, 2}, |
| 3178 | {16 * 1024, 1}, |
| 3179 | {32 * 1024, 1}, |
| 3180 | {64 * 1024, 7}, |
| 3181 | }, |
| 3182 | .block_erase = NULL, /* TODO: Implement. */ |
| 3183 | }, { |
| 3184 | .eraseblocks = { |
| 3185 | {64 * 1024, 8}, |
| 3186 | }, |
| 3187 | .block_erase = erase_block_82802ab, |
| 3188 | }, |
| 3189 | }, |
| 3190 | .printlock = printlock_regspace2_block_eraser_0, |
| 3191 | .unlock = unlock_regspace2_block_eraser_0, |
| 3192 | .write = write_82802ab, |
| 3193 | .read = read_memmapped, |
| 3194 | .voltage = {3000, 3600}, |
| 3195 | }, |
| 3196 | |
| 3197 | { |
| 3198 | .vendor = "Atmel", |
| 3199 | .name = "AT49LH004", |
| 3200 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3201 | .manufacture_id = ATMEL_ID, |
| 3202 | .model_id = ATMEL_AT49LH004, |
| 3203 | .total_size = 512, |
| 3204 | .page_size = 0, /* unused */ |
| 3205 | .feature_bits = FEATURE_REGISTERMAP, |
| 3206 | .tested = TEST_UNTESTED, |
| 3207 | .probe = probe_82802ab, |
| 3208 | .probe_timing = TIMING_ZERO, |
| 3209 | .block_erasers = |
| 3210 | { |
| 3211 | { |
| 3212 | .eraseblocks = { |
| 3213 | {64 * 1024, 7}, |
| 3214 | {32 * 1024, 1}, |
| 3215 | {8 * 1024, 2}, |
| 3216 | {16 * 1024, 1}, |
| 3217 | }, |
| 3218 | .block_erase = erase_block_82802ab, |
| 3219 | }, { |
| 3220 | .eraseblocks = { |
| 3221 | {64 * 1024, 8}, |
| 3222 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3223 | .block_erase = NULL, /* TODO: Implement. */ |
| 3224 | }, |
| 3225 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3226 | .printlock = printlock_regspace2_block_eraser_0, |
| 3227 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3228 | .write = write_82802ab, |
| 3229 | .read = read_memmapped, |
| 3230 | .voltage = {3000, 3600}, |
| 3231 | }, |
| 3232 | |
| 3233 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3234 | .vendor = "Catalyst", |
| 3235 | .name = "CAT28F512", |
| 3236 | .bustype = BUS_PARALLEL, |
| 3237 | .manufacture_id = CATALYST_ID, |
| 3238 | .model_id = CATALYST_CAT28F512, |
| 3239 | .total_size = 64, |
| 3240 | .page_size = 0, /* unused */ |
| 3241 | .feature_bits = 0, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 3242 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD }, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3243 | .probe = probe_jedec, /* FIXME! */ |
| 3244 | .probe_timing = TIMING_ZERO, |
| 3245 | .block_erasers = |
| 3246 | { |
| 3247 | { |
| 3248 | .eraseblocks = { {64 * 1024, 1} }, |
| 3249 | .block_erase = NULL, /* TODO */ |
| 3250 | }, |
| 3251 | }, |
| 3252 | .write = NULL, /* TODO */ |
| 3253 | .read = read_memmapped, |
| 3254 | .voltage = {4500, 5500}, |
| 3255 | }, |
| 3256 | |
| 3257 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3258 | .vendor = "Bright", |
| 3259 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3260 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3261 | .manufacture_id = BRIGHT_ID, |
| 3262 | .model_id = BRIGHT_BM29F040, |
| 3263 | .total_size = 512, |
| 3264 | .page_size = 64 * 1024, |
| 3265 | .feature_bits = FEATURE_EITHER_RESET, |
| 3266 | .tested = TEST_OK_PR, |
| 3267 | .probe = probe_jedec, |
| 3268 | .probe_timing = TIMING_ZERO, |
| 3269 | .block_erasers = |
| 3270 | { |
| 3271 | { |
| 3272 | .eraseblocks = { {64 * 1024, 8} }, |
| 3273 | .block_erase = erase_sector_jedec, |
| 3274 | }, { |
| 3275 | .eraseblocks = { {512 * 1024, 1} }, |
| 3276 | .block_erase = erase_chip_block_jedec, |
| 3277 | }, |
| 3278 | }, |
| 3279 | .write = write_jedec_1, |
| 3280 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3281 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3282 | }, |
| 3283 | |
| 3284 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3285 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3286 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3287 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3288 | .manufacture_id = ESMT_ID, |
| 3289 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3290 | .total_size = 256, |
| 3291 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3292 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3293 | .tested = TEST_UNTESTED, |
| 3294 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3295 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3296 | .block_erasers = |
| 3297 | { |
| 3298 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3299 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3300 | {128 * 1024, 1}, |
| 3301 | {96 * 1024, 1}, |
| 3302 | {8 * 1024, 2}, |
| 3303 | {16 * 1024, 1}, |
| 3304 | }, |
| 3305 | .block_erase = erase_sector_jedec, |
| 3306 | }, { |
| 3307 | .eraseblocks = { {256 * 1024, 1} }, |
| 3308 | .block_erase = erase_chip_block_jedec, |
| 3309 | } |
| 3310 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3311 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3312 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3313 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3314 | }, |
| 3315 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3316 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3317 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3318 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3319 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3320 | .manufacture_id = ESMT_ID, |
| 3321 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3322 | .total_size = 1024, |
| 3323 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3324 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3325 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3326 | .probe = probe_spi_rdid, |
| 3327 | .probe_timing = TIMING_ZERO, |
| 3328 | .block_erasers = |
| 3329 | { |
| 3330 | { |
| 3331 | .eraseblocks = { {4 * 1024, 256} }, |
| 3332 | .block_erase = spi_block_erase_20, |
| 3333 | }, { |
| 3334 | .eraseblocks = { {64 * 1024, 16} }, |
| 3335 | .block_erase = spi_block_erase_d8, |
| 3336 | }, { |
| 3337 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3338 | .block_erase = spi_block_erase_60, |
| 3339 | }, { |
| 3340 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3341 | .block_erase = spi_block_erase_c7, |
| 3342 | } |
| 3343 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3344 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3345 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3346 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3347 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3348 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3349 | }, |
| 3350 | |
| 3351 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3352 | .vendor = "ESMT", |
| 3353 | .name = "F25L32PA", |
| 3354 | .bustype = BUS_SPI, |
| 3355 | .manufacture_id = ESMT_ID, |
| 3356 | .model_id = ESMT_F25L32PA, |
| 3357 | .total_size = 4096, |
| 3358 | .page_size = 256, |
| 3359 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3360 | .tested = TEST_UNTESTED, |
| 3361 | .probe = probe_spi_rdid, |
| 3362 | .probe_timing = TIMING_ZERO, |
| 3363 | .block_erasers = |
| 3364 | { |
| 3365 | { |
| 3366 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3367 | .block_erase = spi_block_erase_20, |
| 3368 | }, { |
| 3369 | .eraseblocks = { {64 * 1024, 64} }, |
| 3370 | .block_erase = spi_block_erase_d8, |
| 3371 | }, { |
| 3372 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3373 | .block_erase = spi_block_erase_60, |
| 3374 | }, { |
| 3375 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3376 | .block_erase = spi_block_erase_c7, |
| 3377 | } |
| 3378 | }, |
| 3379 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3380 | .unlock = spi_disable_blockprotect, |
| 3381 | .write = spi_chip_write_256, |
| 3382 | .read = spi_chip_read, |
| 3383 | .voltage = {2700, 3600}, |
| 3384 | }, |
| 3385 | |
| 3386 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3387 | .vendor = "Eon", |
| 3388 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3389 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3390 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3391 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3392 | .total_size = 64, |
| 3393 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3394 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3395 | .tested = TEST_UNTESTED, |
| 3396 | .probe = probe_spi_rdid, |
| 3397 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3398 | .block_erasers = |
| 3399 | { |
| 3400 | { |
| 3401 | .eraseblocks = { |
| 3402 | {4 * 1024, 2}, |
| 3403 | {8 * 1024, 1}, |
| 3404 | {16 * 1024, 1}, |
| 3405 | {32 * 1024, 1}, |
| 3406 | }, |
| 3407 | .block_erase = spi_block_erase_d8, |
| 3408 | }, { |
| 3409 | .eraseblocks = { {64 * 1024, 1} }, |
| 3410 | .block_erase = spi_block_erase_c7, |
| 3411 | } |
| 3412 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3413 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3414 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3415 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3416 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3417 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3418 | }, |
| 3419 | |
| 3420 | { |
| 3421 | .vendor = "Eon", |
| 3422 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3423 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3424 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3425 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3426 | .total_size = 64, |
| 3427 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3428 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3429 | .tested = TEST_UNTESTED, |
| 3430 | .probe = probe_spi_rdid, |
| 3431 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3432 | .block_erasers = |
| 3433 | { |
| 3434 | { |
| 3435 | .eraseblocks = { |
| 3436 | {32 * 1024, 1}, |
| 3437 | {16 * 1024, 1}, |
| 3438 | {8 * 1024, 1}, |
| 3439 | {4 * 1024, 2}, |
| 3440 | }, |
| 3441 | .block_erase = spi_block_erase_d8, |
| 3442 | }, { |
| 3443 | .eraseblocks = { {64 * 1024, 1} }, |
| 3444 | .block_erase = spi_block_erase_c7, |
| 3445 | } |
| 3446 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3447 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3448 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3449 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3450 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3451 | .voltage = {2700, 3600}, |
| 3452 | }, |
| 3453 | |
| 3454 | { |
| 3455 | .vendor = "Eon", |
| 3456 | .name = "EN25P05", |
| 3457 | .bustype = BUS_SPI, |
| 3458 | .manufacture_id = EON_ID_NOPREFIX, |
| 3459 | .model_id = EON_EN25B05, |
| 3460 | .total_size = 64, |
| 3461 | .page_size = 256, |
| 3462 | .feature_bits = FEATURE_WRSR_WREN, |
| 3463 | .tested = TEST_UNTESTED, |
| 3464 | .probe = probe_spi_rdid, |
| 3465 | .probe_timing = TIMING_ZERO, |
| 3466 | .block_erasers = |
| 3467 | { |
| 3468 | { |
| 3469 | .eraseblocks = { |
| 3470 | {32 * 1024, 2} }, |
| 3471 | .block_erase = spi_block_erase_d8, |
| 3472 | }, { |
| 3473 | .eraseblocks = { {64 * 1024, 1} }, |
| 3474 | .block_erase = spi_block_erase_c7, |
| 3475 | } |
| 3476 | }, |
| 3477 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3478 | .unlock = spi_disable_blockprotect, |
| 3479 | .write = spi_chip_write_256, |
| 3480 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3481 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3482 | }, |
| 3483 | |
| 3484 | { |
| 3485 | .vendor = "Eon", |
| 3486 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3487 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3488 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3489 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3490 | .total_size = 128, |
| 3491 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3492 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3493 | .tested = TEST_UNTESTED, |
| 3494 | .probe = probe_spi_rdid, |
| 3495 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3496 | .block_erasers = |
| 3497 | { |
| 3498 | { |
| 3499 | .eraseblocks = { |
| 3500 | {4 * 1024, 2}, |
| 3501 | {8 * 1024, 1}, |
| 3502 | {16 * 1024, 1}, |
| 3503 | {32 * 1024, 3}, |
| 3504 | }, |
| 3505 | .block_erase = spi_block_erase_d8, |
| 3506 | }, { |
| 3507 | .eraseblocks = { {128 * 1024, 1} }, |
| 3508 | .block_erase = spi_block_erase_c7, |
| 3509 | } |
| 3510 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3511 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3512 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3513 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3514 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3515 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3516 | }, |
| 3517 | |
| 3518 | { |
| 3519 | .vendor = "Eon", |
| 3520 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3521 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3522 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3523 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3524 | .total_size = 128, |
| 3525 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3526 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3527 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3528 | .probe = probe_spi_rdid, |
| 3529 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3530 | .block_erasers = |
| 3531 | { |
| 3532 | { |
| 3533 | .eraseblocks = { |
| 3534 | {32 * 1024, 3}, |
| 3535 | {16 * 1024, 1}, |
| 3536 | {8 * 1024, 1}, |
| 3537 | {4 * 1024, 2}, |
| 3538 | }, |
| 3539 | .block_erase = spi_block_erase_d8, |
| 3540 | }, { |
| 3541 | .eraseblocks = { {128 * 1024, 1} }, |
| 3542 | .block_erase = spi_block_erase_c7, |
| 3543 | } |
| 3544 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3545 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3546 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3547 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3548 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3549 | .voltage = {2700, 3600}, |
| 3550 | }, |
| 3551 | |
| 3552 | { |
| 3553 | .vendor = "Eon", |
| 3554 | .name = "EN25P10", |
| 3555 | .bustype = BUS_SPI, |
| 3556 | .manufacture_id = EON_ID_NOPREFIX, |
| 3557 | .model_id = EON_EN25B10, |
| 3558 | .total_size = 128, |
| 3559 | .page_size = 256, |
| 3560 | .feature_bits = FEATURE_WRSR_WREN, |
| 3561 | .tested = TEST_UNTESTED, |
| 3562 | .probe = probe_spi_rdid, |
| 3563 | .probe_timing = TIMING_ZERO, |
| 3564 | .block_erasers = |
| 3565 | { |
| 3566 | { |
| 3567 | .eraseblocks = { {32 * 1024, 4} }, |
| 3568 | .block_erase = spi_block_erase_d8, |
| 3569 | }, { |
| 3570 | .eraseblocks = { {128 * 1024, 1} }, |
| 3571 | .block_erase = spi_block_erase_c7, |
| 3572 | } |
| 3573 | }, |
| 3574 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3575 | .unlock = spi_disable_blockprotect, |
| 3576 | .write = spi_chip_write_256, |
| 3577 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3578 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3579 | }, |
| 3580 | |
| 3581 | { |
| 3582 | .vendor = "Eon", |
| 3583 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3584 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3585 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3586 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3587 | .total_size = 256, |
| 3588 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3589 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3590 | .tested = TEST_UNTESTED, |
| 3591 | .probe = probe_spi_rdid, |
| 3592 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3593 | .block_erasers = |
| 3594 | { |
| 3595 | { |
| 3596 | .eraseblocks = { |
| 3597 | {4 * 1024, 2}, |
| 3598 | {8 * 1024, 1}, |
| 3599 | {16 * 1024, 1}, |
| 3600 | {32 * 1024, 1}, |
| 3601 | {64 * 1024, 3} |
| 3602 | }, |
| 3603 | .block_erase = spi_block_erase_d8, |
| 3604 | }, { |
| 3605 | .eraseblocks = { {256 * 1024, 1} }, |
| 3606 | .block_erase = spi_block_erase_c7, |
| 3607 | } |
| 3608 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3609 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3610 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3611 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3612 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3613 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3614 | }, |
| 3615 | |
| 3616 | { |
| 3617 | .vendor = "Eon", |
| 3618 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3619 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3620 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3621 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3622 | .total_size = 256, |
| 3623 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3624 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3625 | .tested = TEST_UNTESTED, |
| 3626 | .probe = probe_spi_rdid, |
| 3627 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3628 | .block_erasers = |
| 3629 | { |
| 3630 | { |
| 3631 | .eraseblocks = { |
| 3632 | {64 * 1024, 3}, |
| 3633 | {32 * 1024, 1}, |
| 3634 | {16 * 1024, 1}, |
| 3635 | {8 * 1024, 1}, |
| 3636 | {4 * 1024, 2}, |
| 3637 | }, |
| 3638 | .block_erase = spi_block_erase_d8, |
| 3639 | }, { |
| 3640 | .eraseblocks = { {256 * 1024, 1} }, |
| 3641 | .block_erase = spi_block_erase_c7, |
| 3642 | } |
| 3643 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3644 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3645 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3646 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3647 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3648 | .voltage = {2700, 3600}, |
| 3649 | }, |
| 3650 | |
| 3651 | { |
| 3652 | .vendor = "Eon", |
| 3653 | .name = "EN25P20", |
| 3654 | .bustype = BUS_SPI, |
| 3655 | .manufacture_id = EON_ID_NOPREFIX, |
| 3656 | .model_id = EON_EN25B20, |
| 3657 | .total_size = 256, |
| 3658 | .page_size = 256, |
| 3659 | .feature_bits = FEATURE_WRSR_WREN, |
| 3660 | .tested = TEST_UNTESTED, |
| 3661 | .probe = probe_spi_rdid, |
| 3662 | .probe_timing = TIMING_ZERO, |
| 3663 | .block_erasers = |
| 3664 | { |
| 3665 | { |
| 3666 | .eraseblocks = { {64 * 1024, 4} }, |
| 3667 | .block_erase = spi_block_erase_d8, |
| 3668 | }, { |
| 3669 | .eraseblocks = { {256 * 1024, 1} }, |
| 3670 | .block_erase = spi_block_erase_c7, |
| 3671 | } |
| 3672 | }, |
| 3673 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3674 | .unlock = spi_disable_blockprotect, |
| 3675 | .write = spi_chip_write_256, |
| 3676 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3677 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3678 | }, |
| 3679 | |
| 3680 | { |
| 3681 | .vendor = "Eon", |
| 3682 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3683 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3684 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3685 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3686 | .total_size = 512, |
| 3687 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3688 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3689 | .tested = TEST_UNTESTED, |
| 3690 | .probe = probe_spi_rdid, |
| 3691 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3692 | .block_erasers = |
| 3693 | { |
| 3694 | { |
| 3695 | .eraseblocks = { |
| 3696 | {4 * 1024, 2}, |
| 3697 | {8 * 1024, 1}, |
| 3698 | {16 * 1024, 1}, |
| 3699 | {32 * 1024, 1}, |
| 3700 | {64 * 1024, 7} |
| 3701 | }, |
| 3702 | .block_erase = spi_block_erase_d8, |
| 3703 | }, { |
| 3704 | .eraseblocks = { {512 * 1024, 1} }, |
| 3705 | .block_erase = spi_block_erase_c7, |
| 3706 | } |
| 3707 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3708 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3709 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3710 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3711 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3712 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3713 | }, |
| 3714 | |
| 3715 | { |
| 3716 | .vendor = "Eon", |
| 3717 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3718 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3719 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3720 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3721 | .total_size = 512, |
| 3722 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3723 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3724 | .tested = TEST_UNTESTED, |
| 3725 | .probe = probe_spi_rdid, |
| 3726 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3727 | .block_erasers = |
| 3728 | { |
| 3729 | { |
| 3730 | .eraseblocks = { |
| 3731 | {64 * 1024, 7}, |
| 3732 | {32 * 1024, 1}, |
| 3733 | {16 * 1024, 1}, |
| 3734 | {8 * 1024, 1}, |
| 3735 | {4 * 1024, 2}, |
| 3736 | }, |
| 3737 | .block_erase = spi_block_erase_d8, |
| 3738 | }, { |
| 3739 | .eraseblocks = { {512 * 1024, 1} }, |
| 3740 | .block_erase = spi_block_erase_c7, |
| 3741 | } |
| 3742 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3743 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3744 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3745 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3746 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3747 | .voltage = {2700, 3600}, |
| 3748 | }, |
| 3749 | |
| 3750 | { |
| 3751 | .vendor = "Eon", |
| 3752 | .name = "EN25P40", |
| 3753 | .bustype = BUS_SPI, |
| 3754 | .manufacture_id = EON_ID_NOPREFIX, |
| 3755 | .model_id = EON_EN25B40, |
| 3756 | .total_size = 512, |
| 3757 | .page_size = 256, |
| 3758 | .feature_bits = FEATURE_WRSR_WREN, |
| 3759 | .tested = TEST_UNTESTED, |
| 3760 | .probe = probe_spi_rdid, |
| 3761 | .probe_timing = TIMING_ZERO, |
| 3762 | .block_erasers = |
| 3763 | { |
| 3764 | { |
| 3765 | .eraseblocks = { {64 * 1024, 8} }, |
| 3766 | .block_erase = spi_block_erase_d8, |
| 3767 | }, { |
| 3768 | .eraseblocks = { {512 * 1024, 1} }, |
| 3769 | .block_erase = spi_block_erase_c7, |
| 3770 | } |
| 3771 | }, |
| 3772 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3773 | .unlock = spi_disable_blockprotect, |
| 3774 | .write = spi_chip_write_256, |
| 3775 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3776 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3777 | }, |
| 3778 | |
| 3779 | { |
| 3780 | .vendor = "Eon", |
| 3781 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3782 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3783 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3784 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3785 | .total_size = 1024, |
| 3786 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3787 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3788 | .tested = TEST_UNTESTED, |
| 3789 | .probe = probe_spi_rdid, |
| 3790 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3791 | .block_erasers = |
| 3792 | { |
| 3793 | { |
| 3794 | .eraseblocks = { |
| 3795 | {4 * 1024, 2}, |
| 3796 | {8 * 1024, 1}, |
| 3797 | {16 * 1024, 1}, |
| 3798 | {32 * 1024, 1}, |
| 3799 | {64 * 1024, 15} |
| 3800 | }, |
| 3801 | .block_erase = spi_block_erase_d8, |
| 3802 | }, { |
| 3803 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3804 | .block_erase = spi_block_erase_c7, |
| 3805 | } |
| 3806 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3807 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3808 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3809 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3810 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3811 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3812 | }, |
| 3813 | |
| 3814 | { |
| 3815 | .vendor = "Eon", |
| 3816 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3817 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3818 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3819 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3820 | .total_size = 1024, |
| 3821 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3822 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3823 | .tested = TEST_UNTESTED, |
| 3824 | .probe = probe_spi_rdid, |
| 3825 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3826 | .block_erasers = |
| 3827 | { |
| 3828 | { |
| 3829 | .eraseblocks = { |
| 3830 | {64 * 1024, 15}, |
| 3831 | {32 * 1024, 1}, |
| 3832 | {16 * 1024, 1}, |
| 3833 | {8 * 1024, 1}, |
| 3834 | {4 * 1024, 2}, |
| 3835 | }, |
| 3836 | .block_erase = spi_block_erase_d8, |
| 3837 | }, { |
| 3838 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3839 | .block_erase = spi_block_erase_c7, |
| 3840 | } |
| 3841 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3842 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3843 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3844 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3845 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3846 | .voltage = {2700, 3600}, |
| 3847 | }, |
| 3848 | |
| 3849 | { |
| 3850 | .vendor = "Eon", |
| 3851 | .name = "EN25P80", |
| 3852 | .bustype = BUS_SPI, |
| 3853 | .manufacture_id = EON_ID_NOPREFIX, |
| 3854 | .model_id = EON_EN25B80, |
| 3855 | .total_size = 1024, |
| 3856 | .page_size = 256, |
| 3857 | .feature_bits = FEATURE_WRSR_WREN, |
| 3858 | .tested = TEST_UNTESTED, |
| 3859 | .probe = probe_spi_rdid, |
| 3860 | .probe_timing = TIMING_ZERO, |
| 3861 | .block_erasers = |
| 3862 | { |
| 3863 | { |
| 3864 | .eraseblocks = { {64 * 1024, 16} }, |
| 3865 | .block_erase = spi_block_erase_d8, |
| 3866 | }, { |
| 3867 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3868 | .block_erase = spi_block_erase_c7, |
| 3869 | } |
| 3870 | }, |
| 3871 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3872 | .unlock = spi_disable_blockprotect, |
| 3873 | .write = spi_chip_write_256, |
| 3874 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3875 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3876 | }, |
| 3877 | |
| 3878 | { |
| 3879 | .vendor = "Eon", |
| 3880 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3881 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3882 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3883 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3884 | .total_size = 2048, |
| 3885 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3886 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3887 | .tested = TEST_UNTESTED, |
| 3888 | .probe = probe_spi_rdid, |
| 3889 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3890 | .block_erasers = |
| 3891 | { |
| 3892 | { |
| 3893 | .eraseblocks = { |
| 3894 | {4 * 1024, 2}, |
| 3895 | {8 * 1024, 1}, |
| 3896 | {16 * 1024, 1}, |
| 3897 | {32 * 1024, 1}, |
| 3898 | {64 * 1024, 31}, |
| 3899 | }, |
| 3900 | .block_erase = spi_block_erase_d8, |
| 3901 | }, { |
| 3902 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3903 | .block_erase = spi_block_erase_c7, |
| 3904 | } |
| 3905 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3906 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3907 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3908 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3909 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3910 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3911 | }, |
| 3912 | |
| 3913 | { |
| 3914 | .vendor = "Eon", |
| 3915 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3916 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3917 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3918 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3919 | .total_size = 2048, |
| 3920 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3921 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3922 | .tested = TEST_UNTESTED, |
| 3923 | .probe = probe_spi_rdid, |
| 3924 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3925 | .block_erasers = |
| 3926 | { |
| 3927 | { |
| 3928 | .eraseblocks = { |
| 3929 | {64 * 1024, 31}, |
| 3930 | {32 * 1024, 1}, |
| 3931 | {16 * 1024, 1}, |
| 3932 | {8 * 1024, 1}, |
| 3933 | {4 * 1024, 2}, |
| 3934 | }, |
| 3935 | .block_erase = spi_block_erase_d8, |
| 3936 | }, { |
| 3937 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3938 | .block_erase = spi_block_erase_c7, |
| 3939 | } |
| 3940 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3941 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3942 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3943 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3944 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3945 | .voltage = {2700, 3600}, |
| 3946 | }, |
| 3947 | |
| 3948 | { |
| 3949 | .vendor = "Eon", |
| 3950 | .name = "EN25P16", |
| 3951 | .bustype = BUS_SPI, |
| 3952 | .manufacture_id = EON_ID_NOPREFIX, |
| 3953 | .model_id = EON_EN25B16, |
| 3954 | .total_size = 2048, |
| 3955 | .page_size = 256, |
| 3956 | .feature_bits = FEATURE_WRSR_WREN, |
| 3957 | .tested = TEST_UNTESTED, |
| 3958 | .probe = probe_spi_rdid, |
| 3959 | .probe_timing = TIMING_ZERO, |
| 3960 | .block_erasers = |
| 3961 | { |
| 3962 | { |
| 3963 | .eraseblocks = { {64 * 1024, 32} }, |
| 3964 | .block_erase = spi_block_erase_d8, |
| 3965 | }, { |
| 3966 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3967 | .block_erase = spi_block_erase_c7, |
| 3968 | } |
| 3969 | }, |
| 3970 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3971 | .unlock = spi_disable_blockprotect, |
| 3972 | .write = spi_chip_write_256, |
| 3973 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3974 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3975 | }, |
| 3976 | |
| 3977 | { |
| 3978 | .vendor = "Eon", |
| 3979 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3980 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3981 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3982 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3983 | .total_size = 4096, |
| 3984 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3985 | /* OTP: 512B total; enter 0x3A */ |
| 3986 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3987 | .tested = TEST_UNTESTED, |
| 3988 | .probe = probe_spi_rdid, |
| 3989 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3990 | .block_erasers = |
| 3991 | { |
| 3992 | { |
| 3993 | .eraseblocks = { |
| 3994 | {4 * 1024, 2}, |
| 3995 | {8 * 1024, 1}, |
| 3996 | {16 * 1024, 1}, |
| 3997 | {32 * 1024, 1}, |
| 3998 | {64 * 1024, 63}, |
| 3999 | }, |
| 4000 | .block_erase = spi_block_erase_d8, |
| 4001 | }, { |
| 4002 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4003 | .block_erase = spi_block_erase_c7, |
| 4004 | } |
| 4005 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4006 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4007 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4008 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4009 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4010 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4011 | }, |
| 4012 | |
| 4013 | { |
| 4014 | .vendor = "Eon", |
| 4015 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4016 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4017 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4018 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4019 | .total_size = 4096, |
| 4020 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4021 | /* OTP: 512B total; enter 0x3A */ |
| 4022 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4023 | .tested = TEST_UNTESTED, |
| 4024 | .probe = probe_spi_rdid, |
| 4025 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4026 | .block_erasers = |
| 4027 | { |
| 4028 | { |
| 4029 | .eraseblocks = { |
| 4030 | {64 * 1024, 63}, |
| 4031 | {32 * 1024, 1}, |
| 4032 | {16 * 1024, 1}, |
| 4033 | {8 * 1024, 1}, |
| 4034 | {4 * 1024, 2}, |
| 4035 | }, |
| 4036 | .block_erase = spi_block_erase_d8, |
| 4037 | }, { |
| 4038 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4039 | .block_erase = spi_block_erase_c7, |
| 4040 | } |
| 4041 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4042 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4043 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4044 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4045 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4046 | .voltage = {2700, 3600}, |
| 4047 | }, |
| 4048 | |
| 4049 | { |
| 4050 | .vendor = "Eon", |
| 4051 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4052 | .bustype = BUS_SPI, |
| 4053 | .manufacture_id = EON_ID_NOPREFIX, |
| 4054 | .model_id = EON_EN25B32, |
| 4055 | .total_size = 4096, |
| 4056 | .page_size = 256, |
| 4057 | /* OTP: 512B total; enter 0x3A */ |
| 4058 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4059 | .tested = TEST_UNTESTED, |
| 4060 | .probe = probe_spi_rdid, |
| 4061 | .probe_timing = TIMING_ZERO, |
| 4062 | .block_erasers = |
| 4063 | { |
| 4064 | { |
| 4065 | .eraseblocks = { {64 * 1024, 64} }, |
| 4066 | .block_erase = spi_block_erase_d8, |
| 4067 | }, { |
| 4068 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4069 | .block_erase = spi_block_erase_c7, |
| 4070 | } |
| 4071 | }, |
| 4072 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4073 | .unlock = spi_disable_blockprotect, |
| 4074 | .write = spi_chip_write_256, |
| 4075 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4076 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4077 | }, |
| 4078 | |
| 4079 | { |
| 4080 | .vendor = "Eon", |
| 4081 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4082 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4083 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4084 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4085 | .total_size = 8192, |
| 4086 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4087 | /* OTP: 512B total; enter 0x3A */ |
| 4088 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4089 | .tested = TEST_UNTESTED, |
| 4090 | .probe = probe_spi_rdid, |
| 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 | {4 * 1024, 2}, |
| 4097 | {8 * 1024, 1}, |
| 4098 | {16 * 1024, 1}, |
| 4099 | {32 * 1024, 1}, |
| 4100 | {64 * 1024, 127}, |
| 4101 | }, |
| 4102 | .block_erase = spi_block_erase_d8, |
| 4103 | }, { |
| 4104 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4105 | .block_erase = spi_block_erase_c7, |
| 4106 | } |
| 4107 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4108 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4109 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4110 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4111 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4112 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4113 | }, |
| 4114 | |
| 4115 | { |
| 4116 | .vendor = "Eon", |
| 4117 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4118 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4119 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4120 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4121 | .total_size = 8192, |
| 4122 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4123 | /* OTP: 512B total; enter 0x3A */ |
| 4124 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4125 | .tested = TEST_UNTESTED, |
| 4126 | .probe = probe_spi_rdid, |
| 4127 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4128 | .block_erasers = |
| 4129 | { |
| 4130 | { |
| 4131 | .eraseblocks = { |
| 4132 | {64 * 1024, 127}, |
| 4133 | {32 * 1024, 1}, |
| 4134 | {16 * 1024, 1}, |
| 4135 | {8 * 1024, 1}, |
| 4136 | {4 * 1024, 2}, |
| 4137 | }, |
| 4138 | .block_erase = spi_block_erase_d8, |
| 4139 | }, { |
| 4140 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4141 | .block_erase = spi_block_erase_c7, |
| 4142 | } |
| 4143 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4144 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4145 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4146 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4147 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4148 | .voltage = {2700, 3600}, |
| 4149 | }, |
| 4150 | |
| 4151 | { |
| 4152 | .vendor = "Eon", |
| 4153 | .name = "EN25P64", |
| 4154 | .bustype = BUS_SPI, |
| 4155 | .manufacture_id = EON_ID_NOPREFIX, |
| 4156 | .model_id = EON_EN25B64, |
| 4157 | .total_size = 8192, |
| 4158 | .page_size = 256, |
| 4159 | /* OTP: 512B total; enter 0x3A */ |
| 4160 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4161 | .tested = TEST_UNTESTED, |
| 4162 | .probe = probe_spi_rdid, |
| 4163 | .probe_timing = TIMING_ZERO, |
| 4164 | .block_erasers = |
| 4165 | { |
| 4166 | { |
| 4167 | .eraseblocks = { {64 * 1024, 128} }, |
| 4168 | .block_erase = spi_block_erase_d8, |
| 4169 | }, { |
| 4170 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4171 | .block_erase = spi_block_erase_c7, |
| 4172 | } |
| 4173 | }, |
| 4174 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4175 | .unlock = spi_disable_blockprotect, |
| 4176 | .write = spi_chip_write_256, |
| 4177 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4178 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4179 | }, |
| 4180 | |
| 4181 | { |
| 4182 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4183 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4184 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4185 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4186 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4187 | .total_size = 64, |
| 4188 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4189 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4190 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4191 | .probe = probe_spi_rdid, |
| 4192 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4193 | .block_erasers = |
| 4194 | { |
| 4195 | { |
| 4196 | .eraseblocks = { {4 * 1024, 16} }, |
| 4197 | .block_erase = spi_block_erase_20, |
| 4198 | }, { |
| 4199 | .eraseblocks = { {32 * 1024, 2} }, |
| 4200 | .block_erase = spi_block_erase_d8, |
| 4201 | }, { |
| 4202 | .eraseblocks = { {32 * 1024, 2} }, |
| 4203 | .block_erase = spi_block_erase_52, |
| 4204 | }, { |
| 4205 | .eraseblocks = { {64 * 1024, 1} }, |
| 4206 | .block_erase = spi_block_erase_60, |
| 4207 | }, { |
| 4208 | .eraseblocks = { {64 * 1024, 1} }, |
| 4209 | .block_erase = spi_block_erase_c7, |
| 4210 | } |
| 4211 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4212 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4213 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4214 | .write = spi_chip_write_256, |
| 4215 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4216 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4217 | }, |
| 4218 | |
| 4219 | { |
| 4220 | .vendor = "Eon", |
| 4221 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4222 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4223 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4224 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4225 | .total_size = 128, |
| 4226 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4227 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4228 | .tested = TEST_UNTESTED, |
| 4229 | .probe = probe_spi_rdid, |
| 4230 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4231 | .block_erasers = |
| 4232 | { |
| 4233 | { |
| 4234 | .eraseblocks = { {4 * 1024, 32} }, |
| 4235 | .block_erase = spi_block_erase_20, |
| 4236 | }, { |
| 4237 | .eraseblocks = { {32 * 1024, 4} }, |
| 4238 | .block_erase = spi_block_erase_d8, |
| 4239 | }, { |
| 4240 | .eraseblocks = { {32 * 1024, 4} }, |
| 4241 | .block_erase = spi_block_erase_52, |
| 4242 | }, { |
| 4243 | .eraseblocks = { {128 * 1024, 1} }, |
| 4244 | .block_erase = spi_block_erase_60, |
| 4245 | }, { |
| 4246 | .eraseblocks = { {128 * 1024, 1} }, |
| 4247 | .block_erase = spi_block_erase_c7, |
| 4248 | } |
| 4249 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4250 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4251 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4252 | .write = spi_chip_write_256, |
| 4253 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4254 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4255 | }, |
| 4256 | |
| 4257 | { |
| 4258 | .vendor = "Eon", |
| 4259 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4260 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4261 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4262 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4263 | .total_size = 256, |
| 4264 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4265 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4266 | .tested = TEST_UNTESTED, |
| 4267 | .probe = probe_spi_rdid, |
| 4268 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4269 | .block_erasers = |
| 4270 | { |
| 4271 | { |
| 4272 | .eraseblocks = { {4 * 1024, 64} }, |
| 4273 | .block_erase = spi_block_erase_20, |
| 4274 | }, { |
| 4275 | .eraseblocks = { {64 * 1024, 4} }, |
| 4276 | .block_erase = spi_block_erase_d8, |
| 4277 | }, { |
| 4278 | .eraseblocks = { {64 * 1024, 4} }, |
| 4279 | .block_erase = spi_block_erase_52, |
| 4280 | }, { |
| 4281 | .eraseblocks = { {256 * 1024, 1} }, |
| 4282 | .block_erase = spi_block_erase_60, |
| 4283 | }, { |
| 4284 | .eraseblocks = { {256 * 1024, 1} }, |
| 4285 | .block_erase = spi_block_erase_c7, |
| 4286 | } |
| 4287 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4288 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4289 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4290 | .write = spi_chip_write_256, |
| 4291 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4292 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4293 | }, |
| 4294 | |
| 4295 | { |
| 4296 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4297 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4298 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4299 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4300 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4301 | .total_size = 512, |
| 4302 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4303 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4304 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4305 | .probe = probe_spi_rdid, |
| 4306 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4307 | .block_erasers = |
| 4308 | { |
| 4309 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4310 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4311 | .block_erase = spi_block_erase_20, |
| 4312 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4313 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4314 | .block_erase = spi_block_erase_d8, |
| 4315 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4316 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4317 | .block_erase = spi_block_erase_60, |
| 4318 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4319 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4320 | .block_erase = spi_block_erase_c7, |
| 4321 | }, |
| 4322 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4323 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4324 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4325 | .write = spi_chip_write_256, |
| 4326 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4327 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4328 | }, |
| 4329 | |
| 4330 | { |
| 4331 | .vendor = "Eon", |
| 4332 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4333 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4334 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4335 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4336 | .total_size = 1024, |
| 4337 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4338 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 4339 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4340 | .probe = probe_spi_rdid, |
| 4341 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4342 | .block_erasers = |
| 4343 | { |
| 4344 | { |
| 4345 | .eraseblocks = { {4 * 1024, 256} }, |
| 4346 | .block_erase = spi_block_erase_20, |
| 4347 | }, { |
| 4348 | .eraseblocks = { {64 * 1024, 16} }, |
| 4349 | .block_erase = spi_block_erase_d8, |
| 4350 | }, { |
| 4351 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4352 | .block_erase = spi_block_erase_60, |
| 4353 | }, { |
| 4354 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4355 | .block_erase = spi_block_erase_c7, |
| 4356 | } |
| 4357 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4358 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4359 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4360 | .write = spi_chip_write_256, |
| 4361 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4362 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4363 | }, |
| 4364 | |
| 4365 | { |
| 4366 | .vendor = "Eon", |
| 4367 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4368 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4369 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4370 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4371 | .total_size = 2048, |
| 4372 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4373 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4374 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4375 | .probe = probe_spi_rdid, |
| 4376 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4377 | .block_erasers = |
| 4378 | { |
| 4379 | { |
| 4380 | .eraseblocks = { {4 * 1024, 512} }, |
| 4381 | .block_erase = spi_block_erase_20, |
| 4382 | }, { |
| 4383 | .eraseblocks = { {64 * 1024, 32} }, |
| 4384 | .block_erase = spi_block_erase_d8, |
| 4385 | }, { |
| 4386 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4387 | .block_erase = spi_block_erase_60, |
| 4388 | }, { |
| 4389 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4390 | .block_erase = spi_block_erase_c7, |
| 4391 | } |
| 4392 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4393 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4394 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4395 | .write = spi_chip_write_256, |
| 4396 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4397 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4398 | }, |
| 4399 | |
| 4400 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4401 | .vendor = "Eon", |
| 4402 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4403 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4404 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4405 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4406 | .total_size = 4096, |
| 4407 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4408 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4409 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4410 | .probe = probe_spi_rdid, |
| 4411 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4412 | .block_erasers = |
| 4413 | { |
| 4414 | { |
| 4415 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4416 | .block_erase = spi_block_erase_20, |
| 4417 | }, { |
| 4418 | .eraseblocks = { {64 * 1024, 64} }, |
| 4419 | .block_erase = spi_block_erase_d8, |
| 4420 | }, { |
| 4421 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4422 | .block_erase = spi_block_erase_60, |
| 4423 | }, { |
| 4424 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4425 | .block_erase = spi_block_erase_c7, |
| 4426 | } |
| 4427 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4428 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4429 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4430 | .write = spi_chip_write_256, |
| 4431 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4432 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4433 | }, |
| 4434 | |
| 4435 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4436 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4437 | .name = "EN25F64", |
| 4438 | .bustype = BUS_SPI, |
| 4439 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4440 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4441 | .total_size = 8192, |
| 4442 | .page_size = 256, |
| 4443 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4444 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4445 | .probe = probe_spi_rdid, |
| 4446 | .probe_timing = TIMING_ZERO, |
| 4447 | .block_erasers = |
| 4448 | { |
| 4449 | { |
| 4450 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4451 | .block_erase = spi_block_erase_20, |
| 4452 | }, { |
| 4453 | .eraseblocks = { {64 * 1024, 128} }, |
| 4454 | .block_erase = spi_block_erase_d8, |
| 4455 | }, { |
| 4456 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4457 | .block_erase = spi_block_erase_60, |
| 4458 | }, { |
| 4459 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4460 | .block_erase = spi_block_erase_c7, |
| 4461 | } |
| 4462 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4463 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4464 | .unlock = spi_disable_blockprotect, |
| 4465 | .write = spi_chip_write_256, |
| 4466 | .read = spi_chip_read, |
| 4467 | .voltage = {2700, 3600}, |
| 4468 | }, |
| 4469 | |
| 4470 | { |
| 4471 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4472 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4473 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4474 | .manufacture_id = EON_ID_NOPREFIX, |
| 4475 | .model_id = EON_EN25Q40, |
| 4476 | .total_size = 512, |
| 4477 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4478 | /* OTP: 256B total; enter 0x3A */ |
| 4479 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4480 | .tested = TEST_UNTESTED, |
| 4481 | .probe = probe_spi_rdid, |
| 4482 | .probe_timing = TIMING_ZERO, |
| 4483 | .block_erasers = |
| 4484 | { |
| 4485 | { |
| 4486 | .eraseblocks = { {4 * 1024, 128} }, |
| 4487 | .block_erase = spi_block_erase_20, |
| 4488 | }, { |
| 4489 | .eraseblocks = { {64 * 1024, 8} }, |
| 4490 | .block_erase = spi_block_erase_d8, |
| 4491 | }, { |
| 4492 | .eraseblocks = { {512 * 1024, 1} }, |
| 4493 | .block_erase = spi_block_erase_60, |
| 4494 | }, { |
| 4495 | .eraseblocks = { {512 * 1024, 1} }, |
| 4496 | .block_erase = spi_block_erase_c7, |
| 4497 | } |
| 4498 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4499 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4500 | .unlock = spi_disable_blockprotect, |
| 4501 | .write = spi_chip_write_256, |
| 4502 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4503 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4504 | }, |
| 4505 | |
| 4506 | { |
| 4507 | .vendor = "Eon", |
| 4508 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4509 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4510 | .manufacture_id = EON_ID_NOPREFIX, |
| 4511 | .model_id = EON_EN25Q80, |
| 4512 | .total_size = 1024, |
| 4513 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4514 | /* OTP: 256B total; enter 0x3A */ |
| 4515 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4516 | .tested = TEST_UNTESTED, |
| 4517 | .probe = probe_spi_rdid, |
| 4518 | .probe_timing = TIMING_ZERO, |
| 4519 | .block_erasers = |
| 4520 | { |
| 4521 | { |
| 4522 | .eraseblocks = { {4 * 1024, 256} }, |
| 4523 | .block_erase = spi_block_erase_20, |
| 4524 | }, { |
| 4525 | .eraseblocks = { {64 * 1024, 16} }, |
| 4526 | .block_erase = spi_block_erase_d8, |
| 4527 | }, { |
| 4528 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4529 | .block_erase = spi_block_erase_60, |
| 4530 | }, { |
| 4531 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4532 | .block_erase = spi_block_erase_c7, |
| 4533 | } |
| 4534 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4535 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4536 | .unlock = spi_disable_blockprotect, |
| 4537 | .write = spi_chip_write_256, |
| 4538 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4539 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4540 | }, |
| 4541 | |
| 4542 | { |
| 4543 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4544 | but has different write protection capabilities */ |
| 4545 | .vendor = "Eon", |
| 4546 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4547 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4548 | .manufacture_id = EON_ID_NOPREFIX, |
| 4549 | .model_id = EON_EN25Q16, |
| 4550 | .total_size = 2048, |
| 4551 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4552 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4553 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4554 | .tested = TEST_UNTESTED, |
| 4555 | .probe = probe_spi_rdid, |
| 4556 | .probe_timing = TIMING_ZERO, |
| 4557 | .block_erasers = |
| 4558 | { |
| 4559 | { |
| 4560 | .eraseblocks = { {4 * 1024, 512} }, |
| 4561 | .block_erase = spi_block_erase_20, |
| 4562 | }, { |
| 4563 | .eraseblocks = { {64 * 1024, 32} }, |
| 4564 | .block_erase = spi_block_erase_d8, |
| 4565 | }, { |
| 4566 | /* not supported by Q16 version */ |
| 4567 | .eraseblocks = { {64 * 1024, 32} }, |
| 4568 | .block_erase = spi_block_erase_52, |
| 4569 | }, { |
| 4570 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4571 | .block_erase = spi_block_erase_60, |
| 4572 | }, { |
| 4573 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4574 | .block_erase = spi_block_erase_c7, |
| 4575 | } |
| 4576 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4577 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4578 | .unlock = spi_disable_blockprotect, |
| 4579 | .write = spi_chip_write_256, |
| 4580 | .read = spi_chip_read, |
| 4581 | .voltage = {2700, 3600}, |
| 4582 | }, |
| 4583 | |
| 4584 | { |
| 4585 | .vendor = "Eon", |
| 4586 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4587 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4588 | .manufacture_id = EON_ID_NOPREFIX, |
| 4589 | .model_id = EON_EN25Q32, |
| 4590 | .total_size = 4096, |
| 4591 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4592 | /* OTP: 512B total; enter 0x3A */ |
| 4593 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4594 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4595 | .probe = probe_spi_rdid, |
| 4596 | .probe_timing = TIMING_ZERO, |
| 4597 | .block_erasers = |
| 4598 | { |
| 4599 | { |
| 4600 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4601 | .block_erase = spi_block_erase_20, |
| 4602 | }, { |
| 4603 | .eraseblocks = { {64 * 1024, 64} }, |
| 4604 | .block_erase = spi_block_erase_d8, |
| 4605 | }, { |
| 4606 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4607 | .block_erase = spi_block_erase_60, |
| 4608 | }, { |
| 4609 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4610 | .block_erase = spi_block_erase_c7, |
| 4611 | } |
| 4612 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4613 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4614 | .unlock = spi_disable_blockprotect, |
| 4615 | .write = spi_chip_write_256, |
| 4616 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4617 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4618 | }, |
| 4619 | |
| 4620 | { |
| 4621 | .vendor = "Eon", |
| 4622 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4623 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4624 | .manufacture_id = EON_ID_NOPREFIX, |
| 4625 | .model_id = EON_EN25Q64, |
| 4626 | .total_size = 8192, |
| 4627 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4628 | /* OTP: 512B total; enter 0x3A */ |
| 4629 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4630 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4631 | .probe = probe_spi_rdid, |
| 4632 | .probe_timing = TIMING_ZERO, |
| 4633 | .block_erasers = |
| 4634 | { |
| 4635 | { |
| 4636 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4637 | .block_erase = spi_block_erase_20, |
| 4638 | }, { |
| 4639 | .eraseblocks = { {64 * 1024, 128} }, |
| 4640 | .block_erase = spi_block_erase_d8, |
| 4641 | }, { |
| 4642 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4643 | .block_erase = spi_block_erase_60, |
| 4644 | }, { |
| 4645 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4646 | .block_erase = spi_block_erase_c7, |
| 4647 | } |
| 4648 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4649 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4650 | .unlock = spi_disable_blockprotect, |
| 4651 | .write = spi_chip_write_256, |
| 4652 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4653 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4654 | }, |
| 4655 | |
| 4656 | { |
| 4657 | .vendor = "Eon", |
| 4658 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4659 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4660 | .manufacture_id = EON_ID_NOPREFIX, |
| 4661 | .model_id = EON_EN25Q128, |
| 4662 | .total_size = 16384, |
| 4663 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4664 | /* OTP: 512B total; enter 0x3A */ |
| 4665 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 4666 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4667 | .probe = probe_spi_rdid, |
| 4668 | .probe_timing = TIMING_ZERO, |
| 4669 | .block_erasers = |
| 4670 | { |
| 4671 | { |
| 4672 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4673 | .block_erase = spi_block_erase_20, |
| 4674 | }, { |
| 4675 | .eraseblocks = { {64 * 1024, 256} }, |
| 4676 | .block_erase = spi_block_erase_d8, |
| 4677 | }, { |
| 4678 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4679 | .block_erase = spi_block_erase_60, |
| 4680 | }, { |
| 4681 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4682 | .block_erase = spi_block_erase_c7, |
| 4683 | } |
| 4684 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4685 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4686 | .unlock = spi_disable_blockprotect, |
| 4687 | .write = spi_chip_write_256, |
| 4688 | .read = spi_chip_read, |
| 4689 | }, |
| 4690 | |
| 4691 | { |
| 4692 | .vendor = "Eon", |
| 4693 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4694 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4695 | .manufacture_id = EON_ID_NOPREFIX, |
| 4696 | .model_id = EON_EN25QH16, |
| 4697 | .total_size = 2048, |
| 4698 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4699 | /* supports SFDP */ |
| 4700 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4701 | /* QPI enable 0x38, disable 0xFF */ |
| 4702 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4703 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4704 | .probe = probe_spi_rdid, |
| 4705 | .probe_timing = TIMING_ZERO, |
| 4706 | .block_erasers = |
| 4707 | { |
| 4708 | { |
| 4709 | .eraseblocks = { {4 * 1024, 512} }, |
| 4710 | .block_erase = spi_block_erase_20, |
| 4711 | }, { |
| 4712 | .eraseblocks = { {64 * 1024, 32} }, |
| 4713 | .block_erase = spi_block_erase_d8, |
| 4714 | }, { |
| 4715 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4716 | .block_erase = spi_block_erase_60, |
| 4717 | }, { |
| 4718 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4719 | .block_erase = spi_block_erase_c7, |
| 4720 | } |
| 4721 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4722 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4723 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4724 | .write = spi_chip_write_256, |
| 4725 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4726 | .voltage = {2700, 3600}, |
| 4727 | }, |
| 4728 | |
| 4729 | { |
| 4730 | .vendor = "Eon", |
| 4731 | .name = "EN25QH32", |
| 4732 | .bustype = BUS_SPI, |
| 4733 | .manufacture_id = EON_ID_NOPREFIX, |
| 4734 | .model_id = EON_EN25QH32, |
| 4735 | .total_size = 4096, |
| 4736 | .page_size = 256, |
| 4737 | /* supports SFDP */ |
| 4738 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4739 | /* QPI enable 0x38, disable 0xFF */ |
| 4740 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 4741 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4742 | .probe = probe_spi_rdid, |
| 4743 | .probe_timing = TIMING_ZERO, |
| 4744 | .block_erasers = |
| 4745 | { |
| 4746 | { |
| 4747 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4748 | .block_erase = spi_block_erase_20, |
| 4749 | }, { |
| 4750 | .eraseblocks = { {64 * 1024, 64} }, |
| 4751 | .block_erase = spi_block_erase_d8, |
| 4752 | }, { |
| 4753 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4754 | .block_erase = spi_block_erase_60, |
| 4755 | }, { |
| 4756 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4757 | .block_erase = spi_block_erase_c7, |
| 4758 | } |
| 4759 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4760 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4761 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4762 | .write = spi_chip_write_256, |
| 4763 | .read = spi_chip_read, |
| 4764 | .voltage = {2700, 3600}, |
| 4765 | }, |
| 4766 | |
| 4767 | { |
| 4768 | .vendor = "Eon", |
| 4769 | .name = "EN25QH64", |
| 4770 | .bustype = BUS_SPI, |
| 4771 | .manufacture_id = EON_ID_NOPREFIX, |
| 4772 | .model_id = EON_EN25QH64, |
| 4773 | .total_size = 8192, |
| 4774 | .page_size = 256, |
| 4775 | /* supports SFDP */ |
| 4776 | /* OTP: 512B total; enter 0x3A */ |
| 4777 | /* QPI enable 0x38, disable 0xFF */ |
| 4778 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 4779 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4780 | .probe = probe_spi_rdid, |
| 4781 | .probe_timing = TIMING_ZERO, |
| 4782 | .block_erasers = { |
| 4783 | { |
| 4784 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4785 | .block_erase = spi_block_erase_20, |
| 4786 | }, { |
| 4787 | .eraseblocks = { {64 * 1024, 128} }, |
| 4788 | .block_erase = spi_block_erase_d8, |
| 4789 | }, { |
| 4790 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4791 | .block_erase = spi_block_erase_60, |
| 4792 | }, { |
| 4793 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4794 | .block_erase = spi_block_erase_c7, |
| 4795 | } |
| 4796 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4797 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4798 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4799 | .write = spi_chip_write_256, |
| 4800 | .read = spi_chip_read, |
| 4801 | .voltage = {2700, 3600}, |
| 4802 | }, |
| 4803 | |
| 4804 | { |
| 4805 | .vendor = "Eon", |
| 4806 | .name = "EN25QH128", |
| 4807 | .bustype = BUS_SPI, |
| 4808 | .manufacture_id = EON_ID_NOPREFIX, |
| 4809 | .model_id = EON_EN25QH128, |
| 4810 | .total_size = 16384, |
| 4811 | .page_size = 256, |
| 4812 | /* supports SFDP */ |
| 4813 | /* OTP: 512B total; enter 0x3A */ |
| 4814 | /* QPI enable 0x38, disable 0xFF */ |
| 4815 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4816 | .tested = TEST_UNTESTED, |
| 4817 | .probe = probe_spi_rdid, |
| 4818 | .probe_timing = TIMING_ZERO, |
| 4819 | .block_erasers = { |
| 4820 | { |
| 4821 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4822 | .block_erase = spi_block_erase_20, |
| 4823 | }, { |
| 4824 | .eraseblocks = { {64 * 1024, 256} }, |
| 4825 | .block_erase = spi_block_erase_d8, |
| 4826 | }, { |
| 4827 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4828 | .block_erase = spi_block_erase_60, |
| 4829 | }, { |
| 4830 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4831 | .block_erase = spi_block_erase_c7, |
| 4832 | } |
| 4833 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4834 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4835 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4836 | .write = spi_chip_write_256, |
| 4837 | .read = spi_chip_read, |
| 4838 | .voltage = {2700, 3600}, |
| 4839 | }, |
| 4840 | |
| 4841 | { |
| 4842 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4843 | .name = "EN25S10", |
| 4844 | .bustype = BUS_SPI, |
| 4845 | .manufacture_id = EON_ID_NOPREFIX, |
| 4846 | .model_id = EON_EN25S10, |
| 4847 | .total_size = 128, |
| 4848 | .page_size = 256, |
| 4849 | /* OTP: 256B total; enter 0x3A */ |
| 4850 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4851 | .tested = TEST_UNTESTED, |
| 4852 | .probe = probe_spi_rdid, |
| 4853 | .probe_timing = TIMING_ZERO, |
| 4854 | .block_erasers = { |
| 4855 | { |
| 4856 | .eraseblocks = { {4 * 1024, 32} }, |
| 4857 | .block_erase = spi_block_erase_20, |
| 4858 | }, { |
| 4859 | .eraseblocks = { {32 * 1024, 4} }, |
| 4860 | .block_erase = spi_block_erase_52, |
| 4861 | }, { |
| 4862 | .eraseblocks = { {128 * 1024, 1} }, |
| 4863 | .block_erase = spi_block_erase_60, |
| 4864 | }, { |
| 4865 | .eraseblocks = { {128 * 1024, 1} }, |
| 4866 | .block_erase = spi_block_erase_c7, |
| 4867 | } |
| 4868 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4869 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4870 | .unlock = spi_disable_blockprotect, |
| 4871 | .write = spi_chip_write_256, |
| 4872 | .read = spi_chip_read, |
| 4873 | .voltage = {1650, 1950}, |
| 4874 | }, |
| 4875 | |
| 4876 | { |
| 4877 | .vendor = "Eon", |
| 4878 | .name = "EN25S20", |
| 4879 | .bustype = BUS_SPI, |
| 4880 | .manufacture_id = EON_ID_NOPREFIX, |
| 4881 | .model_id = EON_EN25S20, |
| 4882 | .total_size = 256, |
| 4883 | .page_size = 256, |
| 4884 | /* OTP: 256B total; enter 0x3A */ |
| 4885 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4886 | .tested = TEST_UNTESTED, |
| 4887 | .probe = probe_spi_rdid, |
| 4888 | .probe_timing = TIMING_ZERO, |
| 4889 | .block_erasers = { |
| 4890 | { |
| 4891 | .eraseblocks = { {4 * 1024, 64} }, |
| 4892 | .block_erase = spi_block_erase_20, |
| 4893 | }, { |
| 4894 | .eraseblocks = { {64 * 1024, 4} }, |
| 4895 | .block_erase = spi_block_erase_d8, |
| 4896 | }, { |
| 4897 | .eraseblocks = { {256 * 1024, 1} }, |
| 4898 | .block_erase = spi_block_erase_60, |
| 4899 | }, { |
| 4900 | .eraseblocks = { {256 * 1024, 1} }, |
| 4901 | .block_erase = spi_block_erase_c7, |
| 4902 | } |
| 4903 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4904 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4905 | .unlock = spi_disable_blockprotect, |
| 4906 | .write = spi_chip_write_256, |
| 4907 | .read = spi_chip_read, |
| 4908 | .voltage = {1650, 1950}, |
| 4909 | }, |
| 4910 | |
| 4911 | { |
| 4912 | .vendor = "Eon", |
| 4913 | .name = "EN25S40", |
| 4914 | .bustype = BUS_SPI, |
| 4915 | .manufacture_id = EON_ID_NOPREFIX, |
| 4916 | .model_id = EON_EN25S40, |
| 4917 | .total_size = 512, |
| 4918 | .page_size = 256, |
| 4919 | /* OTP: 256B total; enter 0x3A */ |
| 4920 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4921 | .tested = TEST_UNTESTED, |
| 4922 | .probe = probe_spi_rdid, |
| 4923 | .probe_timing = TIMING_ZERO, |
| 4924 | .block_erasers = { |
| 4925 | { |
| 4926 | .eraseblocks = { {4 * 1024, 128} }, |
| 4927 | .block_erase = spi_block_erase_20, |
| 4928 | }, { |
| 4929 | .eraseblocks = { {64 * 1024, 8} }, |
| 4930 | .block_erase = spi_block_erase_d8, |
| 4931 | }, { |
| 4932 | .eraseblocks = { {512 * 1024, 1} }, |
| 4933 | .block_erase = spi_block_erase_60, |
| 4934 | }, { |
| 4935 | .eraseblocks = { {512 * 1024, 1} }, |
| 4936 | .block_erase = spi_block_erase_c7, |
| 4937 | } |
| 4938 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4939 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4940 | .unlock = spi_disable_blockprotect, |
| 4941 | .write = spi_chip_write_256, |
| 4942 | .read = spi_chip_read, |
| 4943 | .voltage = {1650, 1950}, |
| 4944 | }, |
| 4945 | |
| 4946 | { |
| 4947 | .vendor = "Eon", |
| 4948 | .name = "EN25S80", |
| 4949 | .bustype = BUS_SPI, |
| 4950 | .manufacture_id = EON_ID_NOPREFIX, |
| 4951 | .model_id = EON_EN25S80, |
| 4952 | .total_size = 1024, |
| 4953 | .page_size = 256, |
| 4954 | /* OTP: 256B total; enter 0x3A */ |
| 4955 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4956 | .tested = TEST_UNTESTED, |
| 4957 | .probe = probe_spi_rdid, |
| 4958 | .probe_timing = TIMING_ZERO, |
| 4959 | .block_erasers = { |
| 4960 | { |
| 4961 | .eraseblocks = { {4 * 1024, 256} }, |
| 4962 | .block_erase = spi_block_erase_20, |
| 4963 | }, { |
| 4964 | .eraseblocks = { {64 * 1024, 16} }, |
| 4965 | .block_erase = spi_block_erase_d8, |
| 4966 | }, { |
| 4967 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4968 | .block_erase = spi_block_erase_60, |
| 4969 | }, { |
| 4970 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4971 | .block_erase = spi_block_erase_c7, |
| 4972 | } |
| 4973 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4974 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4975 | .unlock = spi_disable_blockprotect, |
| 4976 | .write = spi_chip_write_256, |
| 4977 | .read = spi_chip_read, |
| 4978 | .voltage = {1650, 1950}, |
| 4979 | }, |
| 4980 | |
| 4981 | { |
| 4982 | .vendor = "Eon", |
| 4983 | .name = "EN25S16", |
| 4984 | .bustype = BUS_SPI, |
| 4985 | .manufacture_id = EON_ID_NOPREFIX, |
| 4986 | .model_id = EON_EN25S16, |
| 4987 | .total_size = 2048, |
| 4988 | .page_size = 256, |
| 4989 | /* OTP: 512B total; enter 0x3A */ |
| 4990 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4991 | .tested = TEST_UNTESTED, |
| 4992 | .probe = probe_spi_rdid, |
| 4993 | .probe_timing = TIMING_ZERO, |
| 4994 | .block_erasers = { |
| 4995 | { |
| 4996 | .eraseblocks = { {4 * 1024, 512} }, |
| 4997 | .block_erase = spi_block_erase_20, |
| 4998 | }, { |
| 4999 | .eraseblocks = { {64 * 1024, 32} }, |
| 5000 | .block_erase = spi_block_erase_52, |
| 5001 | }, { |
| 5002 | .eraseblocks = { {32 * 1024, 64} }, |
| 5003 | .block_erase = spi_block_erase_d8, |
| 5004 | }, { |
| 5005 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5006 | .block_erase = spi_block_erase_60, |
| 5007 | }, { |
| 5008 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5009 | .block_erase = spi_block_erase_c7, |
| 5010 | } |
| 5011 | }, |
| 5012 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5013 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5014 | .write = spi_chip_write_256, |
| 5015 | .read = spi_chip_read, |
| 5016 | .voltage = {1650, 1950}, |
| 5017 | }, |
| 5018 | |
| 5019 | { |
| 5020 | .vendor = "Eon", |
| 5021 | .name = "EN25S32", |
| 5022 | .bustype = BUS_SPI, |
| 5023 | .manufacture_id = EON_ID_NOPREFIX, |
| 5024 | .model_id = EON_EN25S32, |
| 5025 | .total_size = 4096, |
| 5026 | .page_size = 256, |
| 5027 | /* OTP: 512B total; enter 0x3A */ |
| 5028 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5029 | .tested = TEST_UNTESTED, |
| 5030 | .probe = probe_spi_rdid, |
| 5031 | .probe_timing = TIMING_ZERO, |
| 5032 | .block_erasers = { |
| 5033 | { |
| 5034 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5035 | .block_erase = spi_block_erase_20, |
| 5036 | }, { |
| 5037 | .eraseblocks = { {32 * 1024, 128} }, |
| 5038 | .block_erase = spi_block_erase_52, |
| 5039 | }, { |
| 5040 | .eraseblocks = { {64 * 1024, 64} }, |
| 5041 | .block_erase = spi_block_erase_d8, |
| 5042 | }, { |
| 5043 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5044 | .block_erase = spi_block_erase_60, |
| 5045 | }, { |
| 5046 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5047 | .block_erase = spi_block_erase_c7, |
| 5048 | } |
| 5049 | }, |
| 5050 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5051 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5052 | .write = spi_chip_write_256, |
| 5053 | .read = spi_chip_read, |
| 5054 | .voltage = {1650, 1950}, |
| 5055 | }, |
| 5056 | |
| 5057 | { |
| 5058 | .vendor = "Eon", |
| 5059 | .name = "EN25S64", |
| 5060 | .bustype = BUS_SPI, |
| 5061 | .manufacture_id = EON_ID_NOPREFIX, |
| 5062 | .model_id = EON_EN25S64, |
| 5063 | .total_size = 8192, |
| 5064 | .page_size = 256, |
| 5065 | /* OTP: 512B total; enter 0x3A */ |
| 5066 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5067 | .tested = TEST_UNTESTED, |
| 5068 | .probe = probe_spi_rdid, |
| 5069 | .probe_timing = TIMING_ZERO, |
| 5070 | .block_erasers = { |
| 5071 | { |
| 5072 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5073 | .block_erase = spi_block_erase_20, |
| 5074 | }, { |
| 5075 | .eraseblocks = { {64 * 1024, 128} }, |
| 5076 | .block_erase = spi_block_erase_d8, |
| 5077 | }, { |
| 5078 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5079 | .block_erase = spi_block_erase_60, |
| 5080 | }, { |
| 5081 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5082 | .block_erase = spi_block_erase_c7, |
| 5083 | } |
| 5084 | }, |
| 5085 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5086 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5087 | .write = spi_chip_write_256, |
| 5088 | .read = spi_chip_read, |
| 5089 | .voltage = {1650, 1950}, |
| 5090 | }, |
| 5091 | |
| 5092 | { |
| 5093 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5094 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5095 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5096 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5097 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5098 | .total_size = 128, |
| 5099 | .page_size = 128, |
| 5100 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5101 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5102 | .probe = probe_jedec, |
| 5103 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5104 | .block_erasers = |
| 5105 | { |
| 5106 | { |
| 5107 | .eraseblocks = { {16 * 1024, 8} }, |
| 5108 | .block_erase = erase_sector_jedec, |
| 5109 | }, |
| 5110 | { |
| 5111 | .eraseblocks = { {128 * 1024, 1} }, |
| 5112 | .block_erase = erase_chip_block_jedec, |
| 5113 | }, |
| 5114 | }, |
| 5115 | .write = write_jedec_1, |
| 5116 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5117 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5118 | }, |
| 5119 | |
| 5120 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5121 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5122 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5123 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5124 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5125 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5126 | .total_size = 256, |
| 5127 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5128 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5129 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5130 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5131 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5132 | .block_erasers = |
| 5133 | { |
| 5134 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5135 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5136 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5137 | {8 * 1024, 2}, |
| 5138 | {32 * 1024, 1}, |
| 5139 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5140 | }, |
| 5141 | .block_erase = erase_sector_jedec, |
| 5142 | }, { |
| 5143 | .eraseblocks = { {256 * 1024, 1} }, |
| 5144 | .block_erase = erase_chip_block_jedec, |
| 5145 | }, |
| 5146 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5147 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5148 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5149 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5150 | }, |
| 5151 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5152 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5153 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5154 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5155 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5156 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5157 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5158 | .total_size = 256, |
| 5159 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5160 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5161 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5162 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5163 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5164 | .block_erasers = |
| 5165 | { |
| 5166 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5167 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5168 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5169 | {32 * 1024, 1}, |
| 5170 | {8 * 1024, 2}, |
| 5171 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5172 | }, |
| 5173 | .block_erase = erase_sector_jedec, |
| 5174 | }, { |
| 5175 | .eraseblocks = { {256 * 1024, 1} }, |
| 5176 | .block_erase = erase_chip_block_jedec, |
| 5177 | }, |
| 5178 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5179 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5180 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5181 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5182 | }, |
| 5183 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5184 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5185 | .vendor = "Eon", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5186 | .name = "EN29LV040(A)", |
| 5187 | .bustype = BUS_PARALLEL, |
| 5188 | .manufacture_id = EON_ID, |
| 5189 | .model_id = EON_EN29LV040, |
| 5190 | .total_size = 512, |
| 5191 | .page_size = 4 * 1024, |
| 5192 | .tested = TEST_OK_PREW, |
| 5193 | .probe = probe_jedec, |
| 5194 | .probe_timing = TIMING_ZERO, |
| 5195 | .block_erasers = |
| 5196 | { |
| 5197 | { |
| 5198 | .eraseblocks = { {64 * 1024, 8} }, |
| 5199 | .block_erase = erase_sector_jedec, |
| 5200 | }, |
| 5201 | { |
| 5202 | .eraseblocks = { {512 * 1024, 1} }, |
| 5203 | .block_erase = erase_chip_block_jedec, |
| 5204 | }, |
| 5205 | }, |
| 5206 | .write = write_jedec_1, |
| 5207 | .read = read_memmapped, |
| 5208 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
| 5209 | }, |
| 5210 | |
| 5211 | { |
| 5212 | .vendor = "Eon", |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5213 | .name = "EN29LV640B", |
| 5214 | .bustype = BUS_PARALLEL, |
| 5215 | .manufacture_id = EON_ID, |
| 5216 | .model_id = EON_EN29LV640B, |
| 5217 | .total_size = 8192, |
| 5218 | .page_size = 8192, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5219 | .feature_bits = FEATURE_ADDR_SHIFTED, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5220 | .tested = TEST_OK_PREW, |
| 5221 | .probe = probe_en29lv640b, |
| 5222 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5223 | .block_erasers = |
| 5224 | { |
| 5225 | { |
| 5226 | .eraseblocks = { |
| 5227 | {8 * 1024, 8}, |
| 5228 | {64 * 1024, 127}, |
| 5229 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5230 | .block_erase = erase_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5231 | }, { |
| 5232 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5233 | .block_erase = erase_chip_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5234 | }, |
| 5235 | }, |
| 5236 | .write = write_en29lv640b, |
| 5237 | .read = read_memmapped, |
| 5238 | .voltage = {2700, 3600}, |
| 5239 | }, |
| 5240 | |
| 5241 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5242 | .vendor = "Eon", |
| 5243 | .name = "EN29GL064(A)B", |
| 5244 | .bustype = BUS_PARALLEL, |
| 5245 | .manufacture_id = EON_ID, |
| 5246 | .model_id = EON_EN29GL064B, |
| 5247 | .total_size = 8192, |
| 5248 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5249 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5250 | .tested = TEST_UNTESTED, |
| 5251 | .probe = probe_jedec_29gl, |
| 5252 | .probe_timing = TIMING_ZERO, |
| 5253 | .block_erasers = |
| 5254 | { |
| 5255 | { |
| 5256 | .eraseblocks = { |
| 5257 | {8 * 1024, 8}, |
| 5258 | {64 * 1024, 127}, |
| 5259 | }, |
| 5260 | .block_erase = erase_sector_jedec, |
| 5261 | }, { |
| 5262 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5263 | .block_erase = erase_chip_block_jedec, |
| 5264 | }, |
| 5265 | }, |
| 5266 | .write = write_jedec_1, |
| 5267 | .read = read_memmapped, |
| 5268 | .voltage = {2700, 3600}, |
| 5269 | }, |
| 5270 | |
| 5271 | { |
| 5272 | .vendor = "Eon", |
| 5273 | .name = "EN29GL064(A)T", |
| 5274 | .bustype = BUS_PARALLEL, |
| 5275 | .manufacture_id = EON_ID, |
| 5276 | .model_id = EON_EN29GL064T, |
| 5277 | .total_size = 8192, |
| 5278 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5279 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5280 | .tested = TEST_UNTESTED, |
| 5281 | .probe = probe_jedec_29gl, |
| 5282 | .probe_timing = TIMING_ZERO, |
| 5283 | .block_erasers = |
| 5284 | { |
| 5285 | { |
| 5286 | .eraseblocks = { |
| 5287 | {64 * 1024, 127}, |
| 5288 | {8 * 1024, 8}, |
| 5289 | }, |
| 5290 | .block_erase = erase_sector_jedec, |
| 5291 | }, { |
| 5292 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5293 | .block_erase = erase_chip_block_jedec, |
| 5294 | }, |
| 5295 | }, |
| 5296 | .write = write_jedec_1, |
| 5297 | .read = read_memmapped, |
| 5298 | .voltage = {2700, 3600}, |
| 5299 | }, |
| 5300 | |
| 5301 | { |
| 5302 | .vendor = "Eon", |
| 5303 | .name = "EN29GL064H/L", |
| 5304 | .bustype = BUS_PARALLEL, |
| 5305 | .manufacture_id = EON_ID, |
| 5306 | .model_id = EON_EN29GL064HL, |
| 5307 | .total_size = 8192, |
| 5308 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5309 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5310 | .tested = TEST_UNTESTED, |
| 5311 | .probe = probe_jedec_29gl, |
| 5312 | .probe_timing = TIMING_ZERO, |
| 5313 | .block_erasers = |
| 5314 | { |
| 5315 | { |
| 5316 | .eraseblocks = { {64 * 1024, 128} }, |
| 5317 | .block_erase = erase_sector_jedec, |
| 5318 | }, { |
| 5319 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5320 | .block_erase = erase_chip_block_jedec, |
| 5321 | }, |
| 5322 | }, |
| 5323 | .write = write_jedec_1, |
| 5324 | .read = read_memmapped, |
| 5325 | .voltage = {2700, 3600}, |
| 5326 | }, |
| 5327 | |
| 5328 | { |
| 5329 | .vendor = "Eon", |
| 5330 | .name = "EN29GL128", |
| 5331 | .bustype = BUS_PARALLEL, |
| 5332 | .manufacture_id = EON_ID, |
| 5333 | .model_id = EON_EN29GL128HL, |
| 5334 | .total_size = 16384, |
| 5335 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5336 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5337 | .tested = TEST_UNTESTED, |
| 5338 | .probe = probe_jedec_29gl, |
| 5339 | .probe_timing = TIMING_ZERO, |
| 5340 | .block_erasers = |
| 5341 | { |
| 5342 | { |
| 5343 | .eraseblocks = { {128 * 1024, 128} }, |
| 5344 | .block_erase = erase_sector_jedec, |
| 5345 | }, { |
| 5346 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5347 | .block_erase = erase_chip_block_jedec, |
| 5348 | }, |
| 5349 | }, |
| 5350 | .write = write_jedec_1, |
| 5351 | .read = read_memmapped, |
| 5352 | .voltage = {2700, 3600}, |
| 5353 | }, |
| 5354 | |
| 5355 | { |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5356 | .vendor = "ESI", |
| 5357 | .name = "ES25P40", |
| 5358 | .bustype = BUS_SPI, |
| 5359 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5360 | .model_id = EXCEL_ES25P40, |
| 5361 | .total_size = 512, |
| 5362 | .page_size = 256, |
| 5363 | /* 256-byte paramter page separate from memory array: |
| 5364 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5365 | .feature_bits = FEATURE_WRSR_WREN, |
| 5366 | .tested = TEST_UNTESTED, |
| 5367 | .probe = probe_spi_rdid, |
| 5368 | .probe_timing = TIMING_ZERO, |
| 5369 | .block_erasers = |
| 5370 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5371 | { |
| 5372 | .eraseblocks = { {64 * 1024, 8} }, |
| 5373 | .block_erase = spi_block_erase_d8, |
| 5374 | }, { |
| 5375 | .eraseblocks = { {512 * 1024, 1} }, |
| 5376 | .block_erase = spi_block_erase_c7, |
| 5377 | } |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5378 | }, |
| 5379 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5380 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5381 | .write = spi_chip_write_256, |
| 5382 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5383 | .voltage = {2700, 3600}, |
| 5384 | }, |
| 5385 | |
| 5386 | { |
| 5387 | .vendor = "ESI", |
| 5388 | .name = "ES25P80", |
| 5389 | .bustype = BUS_SPI, |
| 5390 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5391 | .model_id = EXCEL_ES25P80, |
| 5392 | .total_size = 1024, |
| 5393 | .page_size = 256, |
| 5394 | /* 256-byte paramter page separate from memory array: |
| 5395 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5396 | .feature_bits = FEATURE_WRSR_WREN, |
| 5397 | .tested = TEST_UNTESTED, |
| 5398 | .probe = probe_spi_rdid, |
| 5399 | .probe_timing = TIMING_ZERO, |
| 5400 | .block_erasers = |
| 5401 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5402 | { |
| 5403 | .eraseblocks = { {64 * 1024, 16} }, |
| 5404 | .block_erase = spi_block_erase_d8, |
| 5405 | }, { |
| 5406 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5407 | .block_erase = spi_block_erase_c7, |
| 5408 | } |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5409 | }, |
| 5410 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5411 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5412 | .write = spi_chip_write_256, |
| 5413 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5414 | .voltage = {2700, 3600}, |
| 5415 | }, |
| 5416 | |
| 5417 | { |
| 5418 | .vendor = "ESI", |
| 5419 | .name = "ES25P16", |
| 5420 | .bustype = BUS_SPI, |
| 5421 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5422 | .model_id = EXCEL_ES25P16, |
| 5423 | .total_size = 2 * 1024, |
| 5424 | .page_size = 256, |
| 5425 | /* 256-byte paramter page separate from memory array: |
| 5426 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5427 | .feature_bits = FEATURE_WRSR_WREN, |
| 5428 | .tested = TEST_UNTESTED, |
| 5429 | .probe = probe_spi_rdid, |
| 5430 | .probe_timing = TIMING_ZERO, |
| 5431 | .block_erasers = |
| 5432 | { |
| 5433 | { |
| 5434 | .eraseblocks = { {64 * 1024, 32} }, |
| 5435 | .block_erase = spi_block_erase_d8, |
| 5436 | }, { |
| 5437 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5438 | .block_erase = spi_block_erase_c7, |
| 5439 | } |
| 5440 | }, |
| 5441 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5442 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5443 | .write = spi_chip_write_256, |
| 5444 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5445 | .voltage = {2700, 3600}, |
| 5446 | }, |
| 5447 | |
| 5448 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5449 | .vendor = "Fujitsu", |
| 5450 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5451 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5452 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5453 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5454 | .total_size = 512, |
| 5455 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5456 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5457 | .tested = TEST_UNTESTED, |
| 5458 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5459 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5460 | .block_erasers = |
| 5461 | { |
| 5462 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5463 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5464 | {16 * 1024, 1}, |
| 5465 | {8 * 1024, 2}, |
| 5466 | {32 * 1024, 1}, |
| 5467 | {64 * 1024, 7}, |
| 5468 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5469 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5470 | }, { |
| 5471 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5472 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5473 | }, |
| 5474 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5475 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5476 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5477 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5478 | }, |
| 5479 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5480 | { |
| 5481 | .vendor = "Fujitsu", |
| 5482 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5483 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5484 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5485 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5486 | .total_size = 512, |
| 5487 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5488 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5489 | .tested = TEST_UNTESTED, |
| 5490 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5491 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5492 | .block_erasers = |
| 5493 | { |
| 5494 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5495 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5496 | {64 * 1024, 7}, |
| 5497 | {32 * 1024, 1}, |
| 5498 | {8 * 1024, 2}, |
| 5499 | {16 * 1024, 1}, |
| 5500 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5501 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5502 | }, { |
| 5503 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5504 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5505 | }, |
| 5506 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5507 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5508 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5509 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5510 | }, |
| 5511 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5512 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5513 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5514 | .vendor = "Fujitsu", |
| 5515 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5516 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5517 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5518 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5519 | .total_size = 512, |
| 5520 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5521 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5522 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5523 | .probe = probe_jedec, |
| 5524 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5525 | .block_erasers = |
| 5526 | { |
| 5527 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5528 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5529 | {16 * 1024, 1}, |
| 5530 | {8 * 1024, 2}, |
| 5531 | {32 * 1024, 1}, |
| 5532 | {64 * 1024, 7}, |
| 5533 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5534 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5535 | }, { |
| 5536 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5537 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5538 | }, |
| 5539 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5540 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5541 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5542 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5543 | }, |
| 5544 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5545 | { |
| 5546 | .vendor = "Fujitsu", |
| 5547 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5548 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5549 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5550 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5551 | .total_size = 512, |
| 5552 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5553 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5554 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5555 | .probe = probe_jedec, |
| 5556 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5557 | .block_erasers = |
| 5558 | { |
| 5559 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5560 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5561 | {64 * 1024, 7}, |
| 5562 | {32 * 1024, 1}, |
| 5563 | {8 * 1024, 2}, |
| 5564 | {16 * 1024, 1}, |
| 5565 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5566 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5567 | }, { |
| 5568 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5569 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5570 | }, |
| 5571 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5572 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5573 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5574 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5575 | }, |
| 5576 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5577 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5578 | .vendor = "Fujitsu", |
| 5579 | .name = "MBM29LV160BE", |
| 5580 | .bustype = BUS_PARALLEL, |
| 5581 | .manufacture_id = FUJITSU_ID, |
| 5582 | .model_id = FUJITSU_MBM29LV160BE, |
| 5583 | .total_size = 2 * 1024, |
| 5584 | .page_size = 0, |
| 5585 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5586 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5587 | .probe = probe_jedec, |
| 5588 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5589 | .block_erasers = |
| 5590 | { |
| 5591 | { |
| 5592 | .eraseblocks = { |
| 5593 | {16 * 1024, 1}, |
| 5594 | {8 * 1024, 2}, |
| 5595 | {32 * 1024, 1}, |
| 5596 | {64 * 1024, 31}, |
| 5597 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5598 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5599 | }, { |
| 5600 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5601 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5602 | }, |
| 5603 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5604 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5605 | .read = read_memmapped, |
| 5606 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5607 | }, |
| 5608 | |
| 5609 | { |
| 5610 | .vendor = "Fujitsu", |
| 5611 | .name = "MBM29LV160TE", |
| 5612 | .bustype = BUS_PARALLEL, |
| 5613 | .manufacture_id = FUJITSU_ID, |
| 5614 | .model_id = FUJITSU_MBM29LV160TE, |
| 5615 | .total_size = 2 * 1024, |
| 5616 | .page_size = 0, |
| 5617 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5618 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5619 | .probe = probe_jedec, |
| 5620 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5621 | .block_erasers = |
| 5622 | { |
| 5623 | { |
| 5624 | .eraseblocks = { |
| 5625 | {64 * 1024, 31}, |
| 5626 | {32 * 1024, 1}, |
| 5627 | {8 * 1024, 2}, |
| 5628 | {16 * 1024, 1}, |
| 5629 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5630 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5631 | }, { |
| 5632 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5633 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5634 | }, |
| 5635 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5636 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5637 | .read = read_memmapped, |
| 5638 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5639 | }, |
| 5640 | |
| 5641 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5642 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5643 | .name = "GD25LQ40", |
| 5644 | .bustype = BUS_SPI, |
| 5645 | .manufacture_id = GIGADEVICE_ID, |
| 5646 | .model_id = GIGADEVICE_GD25LQ40, |
| 5647 | .total_size = 512, |
| 5648 | .page_size = 256, |
| 5649 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5650 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5651 | .tested = TEST_UNTESTED, |
| 5652 | .probe = probe_spi_rdid, |
| 5653 | .probe_timing = TIMING_ZERO, |
| 5654 | .block_erasers = |
| 5655 | { |
| 5656 | { |
| 5657 | .eraseblocks = { {4 * 1024, 128} }, |
| 5658 | .block_erase = spi_block_erase_20, |
| 5659 | }, { |
| 5660 | .eraseblocks = { {32 * 1024, 16} }, |
| 5661 | .block_erase = spi_block_erase_52, |
| 5662 | }, { |
| 5663 | .eraseblocks = { {64 * 1024, 8} }, |
| 5664 | .block_erase = spi_block_erase_d8, |
| 5665 | }, { |
| 5666 | .eraseblocks = { {512 * 1024, 1} }, |
| 5667 | .block_erase = spi_block_erase_60, |
| 5668 | }, { |
| 5669 | .eraseblocks = { {512 * 1024, 1} }, |
| 5670 | .block_erase = spi_block_erase_c7, |
| 5671 | } |
| 5672 | }, |
| 5673 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5674 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5675 | .write = spi_chip_write_256, |
| 5676 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5677 | .voltage = {1695, 1950}, |
| 5678 | }, |
| 5679 | |
| 5680 | { |
| 5681 | .vendor = "GigaDevice", |
| 5682 | .name = "GD25LQ80", |
| 5683 | .bustype = BUS_SPI, |
| 5684 | .manufacture_id = GIGADEVICE_ID, |
| 5685 | .model_id = GIGADEVICE_GD25LQ80, |
| 5686 | .total_size = 1024, |
| 5687 | .page_size = 256, |
| 5688 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5689 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5690 | .tested = TEST_UNTESTED, |
| 5691 | .probe = probe_spi_rdid, |
| 5692 | .probe_timing = TIMING_ZERO, |
| 5693 | .block_erasers = |
| 5694 | { |
| 5695 | { |
| 5696 | .eraseblocks = { {4 * 1024, 256} }, |
| 5697 | .block_erase = spi_block_erase_20, |
| 5698 | }, { |
| 5699 | .eraseblocks = { {32 * 1024, 32} }, |
| 5700 | .block_erase = spi_block_erase_52, |
| 5701 | }, { |
| 5702 | .eraseblocks = { {64 * 1024, 16} }, |
| 5703 | .block_erase = spi_block_erase_d8, |
| 5704 | }, { |
| 5705 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5706 | .block_erase = spi_block_erase_60, |
| 5707 | }, { |
| 5708 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5709 | .block_erase = spi_block_erase_c7, |
| 5710 | } |
| 5711 | }, |
| 5712 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5713 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5714 | .write = spi_chip_write_256, |
| 5715 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5716 | .voltage = {1695, 1950}, |
| 5717 | }, |
| 5718 | |
| 5719 | { |
| 5720 | .vendor = "GigaDevice", |
| 5721 | .name = "GD25LQ16", |
| 5722 | .bustype = BUS_SPI, |
| 5723 | .manufacture_id = GIGADEVICE_ID, |
| 5724 | .model_id = GIGADEVICE_GD25LQ16, |
| 5725 | .total_size = 2048, |
| 5726 | .page_size = 256, |
| 5727 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5728 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5729 | .tested = TEST_UNTESTED, |
| 5730 | .probe = probe_spi_rdid, |
| 5731 | .probe_timing = TIMING_ZERO, |
| 5732 | .block_erasers = |
| 5733 | { |
| 5734 | { |
| 5735 | .eraseblocks = { {4 * 1024, 512} }, |
| 5736 | .block_erase = spi_block_erase_20, |
| 5737 | }, { |
| 5738 | .eraseblocks = { {32 * 1024, 64} }, |
| 5739 | .block_erase = spi_block_erase_52, |
| 5740 | }, { |
| 5741 | .eraseblocks = { {64 * 1024, 32} }, |
| 5742 | .block_erase = spi_block_erase_d8, |
| 5743 | }, { |
| 5744 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5745 | .block_erase = spi_block_erase_60, |
| 5746 | }, { |
| 5747 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5748 | .block_erase = spi_block_erase_c7, |
| 5749 | } |
| 5750 | }, |
| 5751 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5752 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5753 | .write = spi_chip_write_256, |
| 5754 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5755 | .voltage = {1695, 1950}, |
| 5756 | }, |
| 5757 | |
| 5758 | { |
| 5759 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5760 | .name = "GD25LQ32", |
| 5761 | .bustype = BUS_SPI, |
| 5762 | .manufacture_id = GIGADEVICE_ID, |
| 5763 | .model_id = GIGADEVICE_GD25LQ32, |
| 5764 | .total_size = 4096, |
| 5765 | .page_size = 256, |
| 5766 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5767 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5768 | .tested = TEST_OK_PREW, |
| 5769 | .probe = probe_spi_rdid, |
| 5770 | .probe_timing = TIMING_ZERO, |
| 5771 | .block_erasers = |
| 5772 | { |
| 5773 | { |
| 5774 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5775 | .block_erase = spi_block_erase_20, |
| 5776 | }, { |
| 5777 | .eraseblocks = { {32 * 1024, 128} }, |
| 5778 | .block_erase = spi_block_erase_52, |
| 5779 | }, { |
| 5780 | .eraseblocks = { {64 * 1024, 64} }, |
| 5781 | .block_erase = spi_block_erase_d8, |
| 5782 | }, { |
| 5783 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5784 | .block_erase = spi_block_erase_60, |
| 5785 | }, { |
| 5786 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5787 | .block_erase = spi_block_erase_c7, |
| 5788 | } |
| 5789 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5790 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5791 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5792 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5793 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5794 | .voltage = {1695, 1950}, |
| 5795 | }, |
| 5796 | |
| 5797 | { |
| 5798 | .vendor = "GigaDevice", |
| 5799 | .name = "GD25LQ64(B)", |
| 5800 | .bustype = BUS_SPI, |
| 5801 | .manufacture_id = GIGADEVICE_ID, |
| 5802 | .model_id = GIGADEVICE_GD25LQ64, |
| 5803 | .total_size = 8192, |
| 5804 | .page_size = 256, |
| 5805 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5806 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5807 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5808 | .probe = probe_spi_rdid, |
| 5809 | .probe_timing = TIMING_ZERO, |
| 5810 | .block_erasers = |
| 5811 | { |
| 5812 | { |
| 5813 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5814 | .block_erase = spi_block_erase_20, |
| 5815 | }, { |
| 5816 | .eraseblocks = { {32 * 1024, 256} }, |
| 5817 | .block_erase = spi_block_erase_52, |
| 5818 | }, { |
| 5819 | .eraseblocks = { {64 * 1024, 128} }, |
| 5820 | .block_erase = spi_block_erase_d8, |
| 5821 | }, { |
| 5822 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5823 | .block_erase = spi_block_erase_60, |
| 5824 | }, { |
| 5825 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5826 | .block_erase = spi_block_erase_c7, |
| 5827 | } |
| 5828 | }, |
| 5829 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5830 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5831 | .write = spi_chip_write_256, |
| 5832 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5833 | .voltage = {1695, 1950}, |
| 5834 | }, |
| 5835 | |
| 5836 | { |
| 5837 | .vendor = "GigaDevice", |
| 5838 | .name = "GD25LQ128", |
| 5839 | .bustype = BUS_SPI, |
| 5840 | .manufacture_id = GIGADEVICE_ID, |
| 5841 | .model_id = GIGADEVICE_GD25LQ128, |
| 5842 | .total_size = 16384, |
| 5843 | .page_size = 256, |
| 5844 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5845 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5846 | .tested = TEST_UNTESTED, |
| 5847 | .probe = probe_spi_rdid, |
| 5848 | .probe_timing = TIMING_ZERO, |
| 5849 | .block_erasers = |
| 5850 | { |
| 5851 | { |
| 5852 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5853 | .block_erase = spi_block_erase_20, |
| 5854 | }, { |
| 5855 | .eraseblocks = { {32 * 1024, 512} }, |
| 5856 | .block_erase = spi_block_erase_52, |
| 5857 | }, { |
| 5858 | .eraseblocks = { {64 * 1024, 256} }, |
| 5859 | .block_erase = spi_block_erase_d8, |
| 5860 | }, { |
| 5861 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5862 | .block_erase = spi_block_erase_60, |
| 5863 | }, { |
| 5864 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5865 | .block_erase = spi_block_erase_c7, |
| 5866 | } |
| 5867 | }, |
| 5868 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5869 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5870 | .write = spi_chip_write_256, |
| 5871 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5872 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5873 | }, |
| 5874 | |
| 5875 | { |
| 5876 | .vendor = "GigaDevice", |
| 5877 | .name = "GD25Q512", |
| 5878 | .bustype = BUS_SPI, |
| 5879 | .manufacture_id = GIGADEVICE_ID, |
| 5880 | .model_id = GIGADEVICE_GD25Q512, |
| 5881 | .total_size = 64, |
| 5882 | .page_size = 256, |
| 5883 | .feature_bits = FEATURE_WRSR_WREN, |
| 5884 | .tested = TEST_UNTESTED, |
| 5885 | .probe = probe_spi_rdid, |
| 5886 | .probe_timing = TIMING_ZERO, |
| 5887 | .block_erasers = { |
| 5888 | { |
| 5889 | .eraseblocks = { {4 * 1024, 16} }, |
| 5890 | .block_erase = spi_block_erase_20, |
| 5891 | }, { |
| 5892 | .eraseblocks = { {32 * 1024, 2} }, |
| 5893 | .block_erase = spi_block_erase_52, |
| 5894 | }, { |
| 5895 | .eraseblocks = { {64 * 1024, 1} }, |
| 5896 | .block_erase = spi_block_erase_60, |
| 5897 | }, { |
| 5898 | .eraseblocks = { {64 * 1024, 1} }, |
| 5899 | .block_erase = spi_block_erase_c7, |
| 5900 | } |
| 5901 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5902 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5903 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5904 | .write = spi_chip_write_256, |
| 5905 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5906 | .voltage = {2700, 3600}, |
| 5907 | }, |
| 5908 | |
| 5909 | { |
| 5910 | .vendor = "GigaDevice", |
| 5911 | .name = "GD25Q10", |
| 5912 | .bustype = BUS_SPI, |
| 5913 | .manufacture_id = GIGADEVICE_ID, |
| 5914 | .model_id = GIGADEVICE_GD25Q10, |
| 5915 | .total_size = 128, |
| 5916 | .page_size = 256, |
| 5917 | .feature_bits = FEATURE_WRSR_WREN, |
| 5918 | .tested = TEST_UNTESTED, |
| 5919 | .probe = probe_spi_rdid, |
| 5920 | .probe_timing = TIMING_ZERO, |
| 5921 | .block_erasers = { |
| 5922 | { |
| 5923 | .eraseblocks = { {4 * 1024, 32} }, |
| 5924 | .block_erase = spi_block_erase_20, |
| 5925 | }, { |
| 5926 | .eraseblocks = { {32 * 1024, 4} }, |
| 5927 | .block_erase = spi_block_erase_52, |
| 5928 | }, { |
| 5929 | .eraseblocks = { {64 * 1024, 2} }, |
| 5930 | .block_erase = spi_block_erase_d8, |
| 5931 | }, { |
| 5932 | .eraseblocks = { {128 * 1024, 1} }, |
| 5933 | .block_erase = spi_block_erase_60, |
| 5934 | }, { |
| 5935 | .eraseblocks = { {128 * 1024, 1} }, |
| 5936 | .block_erase = spi_block_erase_c7, |
| 5937 | } |
| 5938 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5939 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5940 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5941 | .write = spi_chip_write_256, |
| 5942 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5943 | .voltage = {2700, 3600}, |
| 5944 | }, |
| 5945 | |
| 5946 | { |
| 5947 | .vendor = "GigaDevice", |
| 5948 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5949 | .bustype = BUS_SPI, |
| 5950 | .manufacture_id = GIGADEVICE_ID, |
| 5951 | .model_id = GIGADEVICE_GD25Q20, |
| 5952 | .total_size = 256, |
| 5953 | .page_size = 256, |
| 5954 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5955 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5956 | .probe = probe_spi_rdid, |
| 5957 | .probe_timing = TIMING_ZERO, |
| 5958 | .block_erasers = |
| 5959 | { |
| 5960 | { |
| 5961 | .eraseblocks = { {4 * 1024, 64} }, |
| 5962 | .block_erase = spi_block_erase_20, |
| 5963 | }, { |
| 5964 | .eraseblocks = { {32 * 1024, 8} }, |
| 5965 | .block_erase = spi_block_erase_52, |
| 5966 | }, { |
| 5967 | .eraseblocks = { {64 * 1024, 4} }, |
| 5968 | .block_erase = spi_block_erase_d8, |
| 5969 | }, { |
| 5970 | .eraseblocks = { {256 * 1024, 1} }, |
| 5971 | .block_erase = spi_block_erase_60, |
| 5972 | }, { |
| 5973 | .eraseblocks = { {256 * 1024, 1} }, |
| 5974 | .block_erase = spi_block_erase_c7, |
| 5975 | } |
| 5976 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5977 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5978 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5979 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5980 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5981 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5982 | }, |
| 5983 | |
| 5984 | { |
| 5985 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5986 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5987 | .bustype = BUS_SPI, |
| 5988 | .manufacture_id = GIGADEVICE_ID, |
| 5989 | .model_id = GIGADEVICE_GD25Q40, |
| 5990 | .total_size = 512, |
| 5991 | .page_size = 256, |
| 5992 | .feature_bits = FEATURE_WRSR_WREN, |
| 5993 | .tested = TEST_UNTESTED, |
| 5994 | .probe = probe_spi_rdid, |
| 5995 | .probe_timing = TIMING_ZERO, |
| 5996 | .block_erasers = |
| 5997 | { |
| 5998 | { |
| 5999 | .eraseblocks = { {4 * 1024, 128} }, |
| 6000 | .block_erase = spi_block_erase_20, |
| 6001 | }, { |
| 6002 | .eraseblocks = { {32 * 1024, 16} }, |
| 6003 | .block_erase = spi_block_erase_52, |
| 6004 | }, { |
| 6005 | .eraseblocks = { {64 * 1024, 8} }, |
| 6006 | .block_erase = spi_block_erase_d8, |
| 6007 | }, { |
| 6008 | .eraseblocks = { {512 * 1024, 1} }, |
| 6009 | .block_erase = spi_block_erase_60, |
| 6010 | }, { |
| 6011 | .eraseblocks = { {512 * 1024, 1} }, |
| 6012 | .block_erase = spi_block_erase_c7, |
| 6013 | } |
| 6014 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6015 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6016 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6017 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6018 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6019 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6020 | }, |
| 6021 | |
| 6022 | { |
| 6023 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6024 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6025 | .bustype = BUS_SPI, |
| 6026 | .manufacture_id = GIGADEVICE_ID, |
| 6027 | .model_id = GIGADEVICE_GD25Q80, |
| 6028 | .total_size = 1024, |
| 6029 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6030 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6031 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6032 | .tested = TEST_OK_PREW, |
| 6033 | .probe = probe_spi_rdid, |
| 6034 | .probe_timing = TIMING_ZERO, |
| 6035 | .block_erasers = |
| 6036 | { |
| 6037 | { |
| 6038 | .eraseblocks = { {4 * 1024, 256} }, |
| 6039 | .block_erase = spi_block_erase_20, |
| 6040 | }, { |
| 6041 | .eraseblocks = { {32 * 1024, 32} }, |
| 6042 | .block_erase = spi_block_erase_52, |
| 6043 | }, { |
| 6044 | .eraseblocks = { {64 * 1024, 16} }, |
| 6045 | .block_erase = spi_block_erase_d8, |
| 6046 | }, { |
| 6047 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6048 | .block_erase = spi_block_erase_60, |
| 6049 | }, { |
| 6050 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6051 | .block_erase = spi_block_erase_c7, |
| 6052 | } |
| 6053 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6054 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6055 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6056 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6057 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6058 | .voltage = {2700, 3600}, |
| 6059 | }, |
| 6060 | |
| 6061 | { |
| 6062 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6063 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6064 | .bustype = BUS_SPI, |
| 6065 | .manufacture_id = GIGADEVICE_ID, |
| 6066 | .model_id = GIGADEVICE_GD25Q16, |
| 6067 | .total_size = 2048, |
| 6068 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6069 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6070 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 6071 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6072 | .probe = probe_spi_rdid, |
| 6073 | .probe_timing = TIMING_ZERO, |
| 6074 | .block_erasers = |
| 6075 | { |
| 6076 | { |
| 6077 | .eraseblocks = { {4 * 1024, 512} }, |
| 6078 | .block_erase = spi_block_erase_20, |
| 6079 | }, { |
| 6080 | .eraseblocks = { {32 * 1024, 64} }, |
| 6081 | .block_erase = spi_block_erase_52, |
| 6082 | }, { |
| 6083 | .eraseblocks = { {64 * 1024, 32} }, |
| 6084 | .block_erase = spi_block_erase_d8, |
| 6085 | }, { |
| 6086 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6087 | .block_erase = spi_block_erase_60, |
| 6088 | }, { |
| 6089 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6090 | .block_erase = spi_block_erase_c7, |
| 6091 | } |
| 6092 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6093 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6094 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6095 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6096 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6097 | .voltage = {2700, 3600}, |
| 6098 | }, |
| 6099 | |
| 6100 | { |
| 6101 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6102 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6103 | .bustype = BUS_SPI, |
| 6104 | .manufacture_id = GIGADEVICE_ID, |
| 6105 | .model_id = GIGADEVICE_GD25Q32, |
| 6106 | .total_size = 4096, |
| 6107 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6108 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6109 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6110 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6111 | .probe = probe_spi_rdid, |
| 6112 | .probe_timing = TIMING_ZERO, |
| 6113 | .block_erasers = |
| 6114 | { |
| 6115 | { |
| 6116 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6117 | .block_erase = spi_block_erase_20, |
| 6118 | }, { |
| 6119 | .eraseblocks = { {32 * 1024, 128} }, |
| 6120 | .block_erase = spi_block_erase_52, |
| 6121 | }, { |
| 6122 | .eraseblocks = { {64 * 1024, 64} }, |
| 6123 | .block_erase = spi_block_erase_d8, |
| 6124 | }, { |
| 6125 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6126 | .block_erase = spi_block_erase_60, |
| 6127 | }, { |
| 6128 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6129 | .block_erase = spi_block_erase_c7, |
| 6130 | } |
| 6131 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6132 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6133 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6134 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6135 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6136 | .voltage = {2700, 3600}, |
| 6137 | }, |
| 6138 | |
| 6139 | { |
| 6140 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6141 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6142 | .bustype = BUS_SPI, |
| 6143 | .manufacture_id = GIGADEVICE_ID, |
| 6144 | .model_id = GIGADEVICE_GD25Q64, |
| 6145 | .total_size = 8192, |
| 6146 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6147 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6148 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6149 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6150 | .probe = probe_spi_rdid, |
| 6151 | .probe_timing = TIMING_ZERO, |
| 6152 | .block_erasers = |
| 6153 | { |
| 6154 | { |
| 6155 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6156 | .block_erase = spi_block_erase_20, |
| 6157 | }, { |
| 6158 | .eraseblocks = { {32 * 1024, 256} }, |
| 6159 | .block_erase = spi_block_erase_52, |
| 6160 | }, { |
| 6161 | .eraseblocks = { {64 * 1024, 128} }, |
| 6162 | .block_erase = spi_block_erase_d8, |
| 6163 | }, { |
| 6164 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6165 | .block_erase = spi_block_erase_60, |
| 6166 | }, { |
| 6167 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6168 | .block_erase = spi_block_erase_c7, |
| 6169 | } |
| 6170 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6171 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6172 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6173 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6174 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6175 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6176 | }, |
| 6177 | |
| 6178 | { |
| 6179 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6180 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6181 | .bustype = BUS_SPI, |
| 6182 | .manufacture_id = GIGADEVICE_ID, |
| 6183 | .model_id = GIGADEVICE_GD25Q128, |
| 6184 | .total_size = 16384, |
| 6185 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6186 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6187 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6188 | .tested = TEST_UNTESTED, |
| 6189 | .probe = probe_spi_rdid, |
| 6190 | .probe_timing = TIMING_ZERO, |
| 6191 | .block_erasers = |
| 6192 | { |
| 6193 | { |
| 6194 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6195 | .block_erase = spi_block_erase_20, |
| 6196 | }, { |
| 6197 | .eraseblocks = { {32 * 1024, 512} }, |
| 6198 | .block_erase = spi_block_erase_52, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {64 * 1024, 256} }, |
| 6201 | .block_erase = spi_block_erase_d8, |
| 6202 | }, { |
| 6203 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6204 | .block_erase = spi_block_erase_60, |
| 6205 | }, { |
| 6206 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6207 | .block_erase = spi_block_erase_c7, |
| 6208 | } |
| 6209 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6210 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6211 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6212 | .write = spi_chip_write_256, |
| 6213 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6214 | .voltage = {2700, 3600}, |
| 6215 | }, |
| 6216 | |
| 6217 | { |
| 6218 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6219 | .name = "GD25Q128C", |
| 6220 | .bustype = BUS_SPI, |
| 6221 | .manufacture_id = GIGADEVICE_ID, |
| 6222 | .model_id = GIGADEVICE_GD25Q128, |
| 6223 | .total_size = 16384, |
| 6224 | .page_size = 256, |
| 6225 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6226 | /* QPI: enable 0x38, disable 0xFF */ |
| 6227 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6228 | .tested = TEST_UNTESTED, |
| 6229 | .probe = probe_spi_rdid, |
| 6230 | .probe_timing = TIMING_ZERO, |
| 6231 | .block_erasers = |
| 6232 | { |
| 6233 | { |
| 6234 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6235 | .block_erase = spi_block_erase_20, |
| 6236 | }, { |
| 6237 | .eraseblocks = { {32 * 1024, 512} }, |
| 6238 | .block_erase = spi_block_erase_52, |
| 6239 | }, { |
| 6240 | .eraseblocks = { {64 * 1024, 256} }, |
| 6241 | .block_erase = spi_block_erase_d8, |
| 6242 | }, { |
| 6243 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6244 | .block_erase = spi_block_erase_60, |
| 6245 | }, { |
| 6246 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6247 | .block_erase = spi_block_erase_c7, |
| 6248 | } |
| 6249 | }, |
| 6250 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6251 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6252 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6253 | .write = spi_chip_write_256, |
| 6254 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6255 | .voltage = {2700, 3600}, |
| 6256 | }, |
| 6257 | |
| 6258 | { |
| 6259 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6260 | .name = "GD25T80", |
| 6261 | .bustype = BUS_SPI, |
| 6262 | .manufacture_id = GIGADEVICE_ID, |
| 6263 | .model_id = GIGADEVICE_GD25T80, |
| 6264 | .total_size = 1024, |
| 6265 | .page_size = 256, |
| 6266 | /* OTP: 256B total; enter 0x3A */ |
| 6267 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6268 | .tested = TEST_UNTESTED, |
| 6269 | .probe = probe_spi_rdid, |
| 6270 | .probe_timing = TIMING_ZERO, |
| 6271 | .block_erasers = { |
| 6272 | { |
| 6273 | .eraseblocks = { {4 * 1024, 256} }, |
| 6274 | .block_erase = spi_block_erase_20, |
| 6275 | }, { |
| 6276 | .eraseblocks = { {64 * 1024, 16} }, |
| 6277 | .block_erase = spi_block_erase_52, |
| 6278 | }, { |
| 6279 | .eraseblocks = { {64 * 1024, 16} }, |
| 6280 | .block_erase = spi_block_erase_d8, |
| 6281 | }, { |
| 6282 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6283 | .block_erase = spi_block_erase_60, |
| 6284 | }, { |
| 6285 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6286 | .block_erase = spi_block_erase_c7, |
| 6287 | } |
| 6288 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6289 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6290 | .unlock = spi_disable_blockprotect, |
| 6291 | .write = spi_chip_write_256, |
| 6292 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6293 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6294 | }, |
| 6295 | |
| 6296 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6297 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6298 | .name = "GD25VQ21B", |
| 6299 | .bustype = BUS_SPI, |
| 6300 | .manufacture_id = GIGADEVICE_ID, |
| 6301 | .model_id = GIGADEVICE_GD25VQ21B, |
| 6302 | .total_size = 256, |
| 6303 | .page_size = 256, |
| 6304 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6305 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6306 | .tested = TEST_UNTESTED, |
| 6307 | .probe = probe_spi_rdid, |
| 6308 | .probe_timing = TIMING_ZERO, |
| 6309 | .block_erasers = |
| 6310 | { |
| 6311 | { |
| 6312 | .eraseblocks = { { 4 * 1024, 64} }, |
| 6313 | .block_erase = spi_block_erase_20, |
| 6314 | }, { |
| 6315 | .eraseblocks = { { 32 * 1024, 8} }, |
| 6316 | .block_erase = spi_block_erase_52, |
| 6317 | }, { |
| 6318 | .eraseblocks = { { 64 * 1024, 4} }, |
| 6319 | .block_erase = spi_block_erase_d8, |
| 6320 | }, { |
| 6321 | .eraseblocks = { {256 * 1024, 1} }, |
| 6322 | .block_erase = spi_block_erase_60, |
| 6323 | }, { |
| 6324 | .eraseblocks = { {256 * 1024, 1} }, |
| 6325 | .block_erase = spi_block_erase_c7, |
| 6326 | } |
| 6327 | }, |
| 6328 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6329 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6330 | .write = spi_chip_write_256, |
| 6331 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6332 | .voltage = {2300, 3600}, |
| 6333 | }, |
| 6334 | |
| 6335 | { |
| 6336 | .vendor = "GigaDevice", |
| 6337 | .name = "GD25VQ40C", |
| 6338 | .bustype = BUS_SPI, |
| 6339 | .manufacture_id = GIGADEVICE_ID, |
| 6340 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6341 | .total_size = 512, |
| 6342 | .page_size = 256, |
| 6343 | /* Supports SFDP */ |
| 6344 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6345 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6346 | .tested = TEST_UNTESTED, |
| 6347 | .probe = probe_spi_rdid, |
| 6348 | .probe_timing = TIMING_ZERO, |
| 6349 | .block_erasers = |
| 6350 | { |
| 6351 | { |
| 6352 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6353 | .block_erase = spi_block_erase_20, |
| 6354 | }, { |
| 6355 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6356 | .block_erase = spi_block_erase_52, |
| 6357 | }, { |
| 6358 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6359 | .block_erase = spi_block_erase_d8, |
| 6360 | }, { |
| 6361 | .eraseblocks = { {512 * 1024, 1} }, |
| 6362 | .block_erase = spi_block_erase_60, |
| 6363 | }, { |
| 6364 | .eraseblocks = { {512 * 1024, 1} }, |
| 6365 | .block_erase = spi_block_erase_c7, |
| 6366 | } |
| 6367 | }, |
| 6368 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6369 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6370 | .write = spi_chip_write_256, |
| 6371 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6372 | .voltage = {2300, 3600}, |
| 6373 | }, |
| 6374 | |
| 6375 | { |
| 6376 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6377 | .name = "GD25VQ41B", |
| 6378 | .bustype = BUS_SPI, |
| 6379 | .manufacture_id = GIGADEVICE_ID, |
| 6380 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6381 | .total_size = 512, |
| 6382 | .page_size = 256, |
| 6383 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6384 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6385 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6386 | .probe = probe_spi_rdid, |
| 6387 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6388 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6389 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6390 | { |
| 6391 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6392 | .block_erase = spi_block_erase_20, |
| 6393 | }, { |
| 6394 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6395 | .block_erase = spi_block_erase_52, |
| 6396 | }, { |
| 6397 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6398 | .block_erase = spi_block_erase_d8, |
| 6399 | }, { |
| 6400 | .eraseblocks = { {512 * 1024, 1} }, |
| 6401 | .block_erase = spi_block_erase_60, |
| 6402 | }, { |
| 6403 | .eraseblocks = { {512 * 1024, 1} }, |
| 6404 | .block_erase = spi_block_erase_c7, |
| 6405 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6406 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6407 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6408 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6409 | .write = spi_chip_write_256, |
| 6410 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6411 | .voltage = {2300, 3600}, |
| 6412 | }, |
| 6413 | |
| 6414 | { |
| 6415 | .vendor = "GigaDevice", |
| 6416 | .name = "GD25VQ80C", |
| 6417 | .bustype = BUS_SPI, |
| 6418 | .manufacture_id = GIGADEVICE_ID, |
| 6419 | .model_id = GIGADEVICE_GD25VQ80C, |
| 6420 | .total_size = 1024, |
| 6421 | .page_size = 256, |
| 6422 | /* Supports SFDP */ |
| 6423 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6424 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6425 | .tested = TEST_UNTESTED, |
| 6426 | .probe = probe_spi_rdid, |
| 6427 | .probe_timing = TIMING_ZERO, |
| 6428 | .block_erasers = |
| 6429 | { |
| 6430 | { |
| 6431 | .eraseblocks = { { 4 * 1024, 256} }, |
| 6432 | .block_erase = spi_block_erase_20, |
| 6433 | }, { |
| 6434 | .eraseblocks = { { 32 * 1024, 32} }, |
| 6435 | .block_erase = spi_block_erase_52, |
| 6436 | }, { |
| 6437 | .eraseblocks = { { 64 * 1024, 16} }, |
| 6438 | .block_erase = spi_block_erase_d8, |
| 6439 | }, { |
| 6440 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6441 | .block_erase = spi_block_erase_60, |
| 6442 | }, { |
| 6443 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6444 | .block_erase = spi_block_erase_c7, |
| 6445 | } |
| 6446 | }, |
| 6447 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6448 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6449 | .write = spi_chip_write_256, |
| 6450 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6451 | .voltage = {2300, 3600}, |
| 6452 | }, |
| 6453 | |
| 6454 | { |
| 6455 | .vendor = "GigaDevice", |
| 6456 | .name = "GD25VQ16C", |
| 6457 | .bustype = BUS_SPI, |
| 6458 | .manufacture_id = GIGADEVICE_ID, |
| 6459 | .model_id = GIGADEVICE_GD25VQ16C, |
| 6460 | .total_size = 2 * 1024, |
| 6461 | .page_size = 256, |
| 6462 | /* Supports SFDP */ |
| 6463 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6464 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6465 | .tested = TEST_UNTESTED, |
| 6466 | .probe = probe_spi_rdid, |
| 6467 | .probe_timing = TIMING_ZERO, |
| 6468 | .block_erasers = |
| 6469 | { |
| 6470 | { |
| 6471 | .eraseblocks = { { 4 * 1024, 512} }, |
| 6472 | .block_erase = spi_block_erase_20, |
| 6473 | }, { |
| 6474 | .eraseblocks = { { 32 * 1024, 64} }, |
| 6475 | .block_erase = spi_block_erase_52, |
| 6476 | }, { |
| 6477 | .eraseblocks = { { 64 * 1024, 32} }, |
| 6478 | .block_erase = spi_block_erase_d8, |
| 6479 | }, { |
| 6480 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6481 | .block_erase = spi_block_erase_60, |
| 6482 | }, { |
| 6483 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6484 | .block_erase = spi_block_erase_c7, |
| 6485 | } |
| 6486 | }, |
| 6487 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6488 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6489 | .write = spi_chip_write_256, |
| 6490 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6491 | .voltage = {2300, 3600}, |
| 6492 | }, |
| 6493 | |
| 6494 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6495 | .vendor = "Hyundai", |
| 6496 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6497 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6498 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6499 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6500 | .total_size = 256, |
| 6501 | .page_size = 256 * 1024, |
| 6502 | .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] | 6503 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6504 | .probe = probe_jedec, |
| 6505 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6506 | .block_erasers = |
| 6507 | { |
| 6508 | { |
| 6509 | .eraseblocks = { |
| 6510 | {64 * 1024, 3}, |
| 6511 | {32 * 1024, 1}, |
| 6512 | {8 * 1024, 2}, |
| 6513 | {16 * 1024, 1}, |
| 6514 | }, |
| 6515 | .block_erase = erase_sector_jedec, |
| 6516 | }, { |
| 6517 | .eraseblocks = { {256 * 1024, 1} }, |
| 6518 | .block_erase = erase_chip_block_jedec, |
| 6519 | }, |
| 6520 | }, |
| 6521 | .write = write_jedec_1, |
| 6522 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6523 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6524 | }, |
| 6525 | |
| 6526 | { |
| 6527 | .vendor = "Hyundai", |
| 6528 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6529 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6530 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6531 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6532 | .total_size = 256, |
| 6533 | .page_size = 256 * 1024, |
| 6534 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 6535 | .tested = TEST_UNTESTED, |
| 6536 | .probe = probe_jedec, |
| 6537 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6538 | .block_erasers = |
| 6539 | { |
| 6540 | { |
| 6541 | .eraseblocks = { |
| 6542 | {16 * 1024, 1}, |
| 6543 | {8 * 1024, 2}, |
| 6544 | {32 * 1024, 1}, |
| 6545 | {64 * 1024, 3}, |
| 6546 | }, |
| 6547 | .block_erase = erase_sector_jedec, |
| 6548 | }, { |
| 6549 | .eraseblocks = { {256 * 1024, 1} }, |
| 6550 | .block_erase = erase_chip_block_jedec, |
| 6551 | }, |
| 6552 | }, |
| 6553 | .write = write_jedec_1, |
| 6554 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6555 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6556 | }, |
| 6557 | |
| 6558 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6559 | .vendor = "Hyundai", |
| 6560 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6561 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6562 | .manufacture_id = HYUNDAI_ID, |
| 6563 | .model_id = HYUNDAI_HY29F040A, |
| 6564 | .total_size = 512, |
| 6565 | .page_size = 64 * 1024, |
| 6566 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6567 | .tested = TEST_UNTESTED, |
| 6568 | .probe = probe_jedec, |
| 6569 | .probe_timing = TIMING_ZERO, |
| 6570 | .block_erasers = |
| 6571 | { |
| 6572 | { |
| 6573 | .eraseblocks = { {64 * 1024, 8} }, |
| 6574 | .block_erase = erase_sector_jedec, |
| 6575 | }, { |
| 6576 | .eraseblocks = { {512 * 1024, 1} }, |
| 6577 | .block_erase = erase_chip_block_jedec, |
| 6578 | }, |
| 6579 | }, |
| 6580 | .write = write_jedec_1, |
| 6581 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6582 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6583 | }, |
| 6584 | |
| 6585 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6586 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6587 | .name = "25F160S33B8", |
| 6588 | .bustype = BUS_SPI, |
| 6589 | .manufacture_id = INTEL_ID, |
| 6590 | .model_id = INTEL_25F160S33B8, |
| 6591 | .total_size = 2048, |
| 6592 | .page_size = 256, |
| 6593 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6594 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6595 | .tested = TEST_UNTESTED, |
| 6596 | .probe = probe_spi_rdid, |
| 6597 | .probe_timing = TIMING_ZERO, |
| 6598 | .block_erasers = |
| 6599 | { |
| 6600 | { |
| 6601 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6602 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6603 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6604 | .eraseblocks = { |
| 6605 | {8 * 1024, 8}, |
| 6606 | {64 * 1024, 31} // inaccessible |
| 6607 | }, |
| 6608 | .block_erase = spi_block_erase_40, |
| 6609 | }, { */ |
| 6610 | .eraseblocks = { {64 * 1024, 32} }, |
| 6611 | .block_erase = spi_block_erase_d8, |
| 6612 | }, { |
| 6613 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6614 | .block_erase = spi_block_erase_c7, |
| 6615 | } |
| 6616 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6617 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6618 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6619 | .write = spi_chip_write_256, |
| 6620 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6621 | .voltage = {2700, 3600}, |
| 6622 | }, |
| 6623 | |
| 6624 | { |
| 6625 | .vendor = "Intel", |
| 6626 | .name = "25F160S33T8", |
| 6627 | .bustype = BUS_SPI, |
| 6628 | .manufacture_id = INTEL_ID, |
| 6629 | .model_id = INTEL_25F160S33T8, |
| 6630 | .total_size = 2048, |
| 6631 | .page_size = 256, |
| 6632 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6633 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6634 | .tested = TEST_UNTESTED, |
| 6635 | .probe = probe_spi_rdid, |
| 6636 | .probe_timing = TIMING_ZERO, |
| 6637 | .block_erasers = |
| 6638 | { |
| 6639 | { |
| 6640 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6641 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6642 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6643 | .eraseblocks = { |
| 6644 | {64 * 1024, 31}, // inaccessible |
| 6645 | {8 * 1024, 8} |
| 6646 | }, |
| 6647 | .block_erase = spi_block_erase_40, |
| 6648 | }, { */ |
| 6649 | .eraseblocks = { {64 * 1024, 32} }, |
| 6650 | .block_erase = spi_block_erase_d8, |
| 6651 | }, { |
| 6652 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6653 | .block_erase = spi_block_erase_c7, |
| 6654 | } |
| 6655 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6656 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6657 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6658 | .write = spi_chip_write_256, |
| 6659 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6660 | .voltage = {2700, 3600}, |
| 6661 | }, |
| 6662 | |
| 6663 | { |
| 6664 | .vendor = "Intel", |
| 6665 | .name = "25F320S33B8", |
| 6666 | .bustype = BUS_SPI, |
| 6667 | .manufacture_id = INTEL_ID, |
| 6668 | .model_id = INTEL_25F320S33B8, |
| 6669 | .total_size = 4096, |
| 6670 | .page_size = 256, |
| 6671 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6672 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6673 | .tested = TEST_UNTESTED, |
| 6674 | .probe = probe_spi_rdid, |
| 6675 | .probe_timing = TIMING_ZERO, |
| 6676 | .block_erasers = |
| 6677 | { |
| 6678 | { |
| 6679 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6680 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6681 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6682 | .eraseblocks = { |
| 6683 | {8 * 1024, 8}, |
| 6684 | {64 * 1024, 63} // inaccessible |
| 6685 | }, |
| 6686 | .block_erase = spi_block_erase_40, |
| 6687 | }, { */ |
| 6688 | .eraseblocks = { {64 * 1024, 64} }, |
| 6689 | .block_erase = spi_block_erase_d8, |
| 6690 | }, { |
| 6691 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6692 | .block_erase = spi_block_erase_c7, |
| 6693 | } |
| 6694 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6695 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6696 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6697 | .write = spi_chip_write_256, |
| 6698 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6699 | .voltage = {2700, 3600}, |
| 6700 | }, |
| 6701 | |
| 6702 | { |
| 6703 | .vendor = "Intel", |
| 6704 | .name = "25F320S33T8", |
| 6705 | .bustype = BUS_SPI, |
| 6706 | .manufacture_id = INTEL_ID, |
| 6707 | .model_id = INTEL_25F320S33T8, |
| 6708 | .total_size = 4096, |
| 6709 | .page_size = 256, |
| 6710 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6711 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6712 | .tested = TEST_UNTESTED, |
| 6713 | .probe = probe_spi_rdid, |
| 6714 | .probe_timing = TIMING_ZERO, |
| 6715 | .block_erasers = |
| 6716 | { |
| 6717 | { |
| 6718 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6719 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6720 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6721 | .eraseblocks = { |
| 6722 | {64 * 1024, 63}, // inaccessible |
| 6723 | {8 * 1024, 8} |
| 6724 | }, |
| 6725 | .block_erase = spi_block_erase_40, |
| 6726 | }, { */ |
| 6727 | .eraseblocks = { {64 * 1024, 64} }, |
| 6728 | .block_erase = spi_block_erase_d8, |
| 6729 | }, { |
| 6730 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6731 | .block_erase = spi_block_erase_c7, |
| 6732 | } |
| 6733 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6734 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6735 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6736 | .write = spi_chip_write_256, |
| 6737 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6738 | .voltage = {2700, 3600}, |
| 6739 | }, |
| 6740 | |
| 6741 | { |
| 6742 | .vendor = "Intel", |
| 6743 | .name = "25F640S33B8", |
| 6744 | .bustype = BUS_SPI, |
| 6745 | .manufacture_id = INTEL_ID, |
| 6746 | .model_id = INTEL_25F640S33B8, |
| 6747 | .total_size = 8192, |
| 6748 | .page_size = 256, |
| 6749 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6750 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6751 | .tested = TEST_UNTESTED, |
| 6752 | .probe = probe_spi_rdid, |
| 6753 | .probe_timing = TIMING_ZERO, |
| 6754 | .block_erasers = |
| 6755 | { |
| 6756 | { |
| 6757 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6758 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6759 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6760 | .eraseblocks = { |
| 6761 | {8 * 1024, 8}, |
| 6762 | {64 * 1024, 127} // inaccessible |
| 6763 | }, |
| 6764 | .block_erase = spi_block_erase_40, |
| 6765 | }, { */ |
| 6766 | .eraseblocks = { {64 * 1024, 128} }, |
| 6767 | .block_erase = spi_block_erase_d8, |
| 6768 | }, { |
| 6769 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6770 | .block_erase = spi_block_erase_c7, |
| 6771 | } |
| 6772 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6773 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6774 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6775 | .write = spi_chip_write_256, |
| 6776 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6777 | .voltage = {2700, 3600}, |
| 6778 | }, |
| 6779 | |
| 6780 | { |
| 6781 | .vendor = "Intel", |
| 6782 | .name = "25F640S33T8", |
| 6783 | .bustype = BUS_SPI, |
| 6784 | .manufacture_id = INTEL_ID, |
| 6785 | .model_id = INTEL_25F640S33T8, |
| 6786 | .total_size = 8192, |
| 6787 | .page_size = 256, |
| 6788 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6789 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6790 | .tested = TEST_UNTESTED, |
| 6791 | .probe = probe_spi_rdid, |
| 6792 | .probe_timing = TIMING_ZERO, |
| 6793 | .block_erasers = |
| 6794 | { |
| 6795 | { |
| 6796 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6797 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6798 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6799 | .eraseblocks = { |
| 6800 | {64 * 1024, 127}, // inaccessible |
| 6801 | {8 * 1024, 8} |
| 6802 | }, |
| 6803 | .block_erase = spi_block_erase_40, |
| 6804 | }, { */ |
| 6805 | .eraseblocks = { {64 * 1024, 128} }, |
| 6806 | .block_erase = spi_block_erase_d8, |
| 6807 | }, { |
| 6808 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6809 | .block_erase = spi_block_erase_c7, |
| 6810 | } |
| 6811 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6812 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6813 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6814 | .write = spi_chip_write_256, |
| 6815 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6816 | .voltage = {2700, 3600}, |
| 6817 | }, |
| 6818 | |
| 6819 | { |
| 6820 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6821 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6822 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6823 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6824 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6825 | .total_size = 128, |
| 6826 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6827 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6828 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6829 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6830 | .block_erasers = |
| 6831 | { |
| 6832 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6833 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6834 | {8 * 1024, 1}, |
| 6835 | {4 * 1024, 2}, |
| 6836 | {112 * 1024, 1}, |
| 6837 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6838 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6839 | }, |
| 6840 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6841 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6842 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6843 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6844 | }, |
| 6845 | |
| 6846 | { |
| 6847 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6848 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6849 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6850 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6851 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6852 | .total_size = 128, |
| 6853 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 6854 | .tested = TEST_OK_PREW, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6855 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6856 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6857 | .block_erasers = |
| 6858 | { |
| 6859 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6860 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6861 | {112 * 1024, 1}, |
| 6862 | {4 * 1024, 2}, |
| 6863 | {8 * 1024, 1}, |
| 6864 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6865 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6866 | }, |
| 6867 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6868 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6869 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6870 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6871 | }, |
| 6872 | |
| 6873 | { |
| 6874 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6875 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6876 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6877 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6878 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6879 | .total_size = 256, |
| 6880 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6881 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6882 | .probe = probe_82802ab, |
| 6883 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6884 | .block_erasers = |
| 6885 | { |
| 6886 | { |
| 6887 | .eraseblocks = { |
| 6888 | {128 * 1024, 1}, |
| 6889 | {96 * 1024, 1}, |
| 6890 | {8 * 1024, 2}, |
| 6891 | {16 * 1024, 1}, |
| 6892 | }, |
| 6893 | .block_erase = erase_block_82802ab, |
| 6894 | }, |
| 6895 | }, |
| 6896 | .write = write_82802ab, |
| 6897 | .read = read_memmapped, |
| 6898 | }, |
| 6899 | |
| 6900 | { |
| 6901 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6902 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6903 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6904 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6905 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6906 | .total_size = 512, |
| 6907 | .page_size = 256, |
| 6908 | .tested = TEST_UNTESTED, |
| 6909 | .probe = probe_82802ab, |
| 6910 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6911 | .block_erasers = |
| 6912 | { |
| 6913 | { |
| 6914 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6915 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6916 | }, |
| 6917 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6918 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6919 | .write = write_82802ab, |
| 6920 | .read = read_memmapped, |
| 6921 | }, |
| 6922 | |
| 6923 | { |
| 6924 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6925 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6926 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6927 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6928 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6929 | .total_size = 512, |
| 6930 | .page_size = 128 * 1024, /* maximal block size */ |
| 6931 | .tested = TEST_UNTESTED, |
| 6932 | .probe = probe_82802ab, |
| 6933 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6934 | .block_erasers = |
| 6935 | { |
| 6936 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6937 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6938 | {16 * 1024, 1}, |
| 6939 | {8 * 1024, 2}, |
| 6940 | {96 * 1024, 1}, |
| 6941 | {128 * 1024, 3}, |
| 6942 | }, |
| 6943 | .block_erase = erase_block_82802ab, |
| 6944 | }, |
| 6945 | }, |
| 6946 | .write = write_82802ab, |
| 6947 | .read = read_memmapped, |
| 6948 | }, |
| 6949 | |
| 6950 | { |
| 6951 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6952 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6953 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6954 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6955 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6956 | .total_size = 512, |
| 6957 | .page_size = 128 * 1024, /* maximal block size */ |
| 6958 | .tested = TEST_UNTESTED, |
| 6959 | .probe = probe_82802ab, |
| 6960 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6961 | .block_erasers = |
| 6962 | { |
| 6963 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6964 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6965 | {128 * 1024, 3}, |
| 6966 | {96 * 1024, 1}, |
| 6967 | {8 * 1024, 2}, |
| 6968 | {16 * 1024, 1}, |
| 6969 | }, |
| 6970 | .block_erase = erase_block_82802ab, |
| 6971 | }, |
| 6972 | }, |
| 6973 | .write = write_82802ab, |
| 6974 | .read = read_memmapped, |
| 6975 | }, |
| 6976 | |
| 6977 | { |
| 6978 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6979 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6980 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6981 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6982 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6983 | .total_size = 512, |
| 6984 | .page_size = 128 * 1024, /* maximal block size */ |
| 6985 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 6986 | .tested = TEST_UNTESTED, |
| 6987 | .probe = probe_82802ab, |
| 6988 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6989 | .block_erasers = |
| 6990 | { |
| 6991 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6992 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6993 | {16 * 1024, 1}, |
| 6994 | {8 * 1024, 2}, |
| 6995 | {96 * 1024, 1}, |
| 6996 | {128 * 1024, 3}, |
| 6997 | }, |
| 6998 | .block_erase = erase_block_82802ab, |
| 6999 | }, |
| 7000 | }, |
| 7001 | .write = write_82802ab, |
| 7002 | .read = read_memmapped, |
| 7003 | }, |
| 7004 | |
| 7005 | { |
| 7006 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7007 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7008 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7009 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7010 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7011 | .total_size = 512, |
| 7012 | .page_size = 128 * 1024, /* maximal block size */ |
| 7013 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7014 | .tested = TEST_UNTESTED, |
| 7015 | .probe = probe_82802ab, |
| 7016 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7017 | .block_erasers = |
| 7018 | { |
| 7019 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7020 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7021 | {128 * 1024, 3}, |
| 7022 | {96 * 1024, 1}, |
| 7023 | {8 * 1024, 2}, |
| 7024 | {16 * 1024, 1}, |
| 7025 | }, |
| 7026 | .block_erase = erase_block_82802ab, |
| 7027 | }, |
| 7028 | }, |
| 7029 | .write = write_82802ab, |
| 7030 | .read = read_memmapped, |
| 7031 | }, |
| 7032 | |
| 7033 | { |
| 7034 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7035 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7036 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7037 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7038 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7039 | .total_size = 512, |
| 7040 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7041 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7042 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7043 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7044 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7045 | .block_erasers = |
| 7046 | { |
| 7047 | { |
| 7048 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7049 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7050 | }, |
| 7051 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7052 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7053 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7054 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7055 | .voltage = {3000, 3600}, |
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 = "Intel", |
| 7060 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7061 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7062 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7063 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 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, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7067 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7068 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7069 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +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 | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7075 | }, |
| 7076 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7077 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7078 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7079 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7080 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7081 | }, |
| 7082 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7083 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7084 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7085 | .name = "IS25LP128", |
| 7086 | .bustype = BUS_SPI, |
| 7087 | .manufacture_id = ISSI_ID_SPI, |
| 7088 | .model_id = ISSI_IS25LP128, |
| 7089 | .total_size = 16384, |
| 7090 | .page_size = 256, |
| 7091 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7092 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7093 | .tested = TEST_OK_PREW, |
| 7094 | .probe = probe_spi_rdid, |
| 7095 | .probe_timing = TIMING_ZERO, |
| 7096 | .block_erasers = |
| 7097 | { |
| 7098 | { |
| 7099 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7100 | .block_erase = spi_block_erase_20, |
| 7101 | }, { |
| 7102 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7103 | .block_erase = spi_block_erase_d7, |
| 7104 | }, { |
| 7105 | .eraseblocks = { {32 * 1024, 512} }, |
| 7106 | .block_erase = spi_block_erase_52, |
| 7107 | }, { |
| 7108 | .eraseblocks = { {64 * 1024, 256} }, |
| 7109 | .block_erase = spi_block_erase_d8, |
| 7110 | }, { |
| 7111 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7112 | .block_erase = spi_block_erase_60, |
| 7113 | }, { |
| 7114 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7115 | .block_erase = spi_block_erase_c7, |
| 7116 | } |
| 7117 | }, |
| 7118 | .unlock = spi_disable_blockprotect, |
| 7119 | .write = spi_chip_write_256, |
| 7120 | .read = spi_chip_read, |
| 7121 | .voltage = {2300, 3600}, |
| 7122 | }, |
| 7123 | |
| 7124 | { |
| 7125 | .vendor = "ISSI", |
| 7126 | .name = "IS25WP128", |
| 7127 | .bustype = BUS_SPI, |
| 7128 | .manufacture_id = ISSI_ID_SPI, |
| 7129 | .model_id = ISSI_IS25WP128, |
| 7130 | .total_size = 16384, |
| 7131 | .page_size = 256, |
| 7132 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7133 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7134 | .tested = TEST_OK_PREW, |
| 7135 | .probe = probe_spi_rdid, |
| 7136 | .probe_timing = TIMING_ZERO, |
| 7137 | .block_erasers = |
| 7138 | { |
| 7139 | { |
| 7140 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7141 | .block_erase = spi_block_erase_20, |
| 7142 | }, { |
| 7143 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7144 | .block_erase = spi_block_erase_d7, |
| 7145 | }, { |
| 7146 | .eraseblocks = { {32 * 1024, 512} }, |
| 7147 | .block_erase = spi_block_erase_52, |
| 7148 | }, { |
| 7149 | .eraseblocks = { {64 * 1024, 256} }, |
| 7150 | .block_erase = spi_block_erase_d8, |
| 7151 | }, { |
| 7152 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7153 | .block_erase = spi_block_erase_60, |
| 7154 | }, { |
| 7155 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7156 | .block_erase = spi_block_erase_c7, |
| 7157 | } |
| 7158 | }, |
| 7159 | .unlock = spi_disable_blockprotect, |
| 7160 | .write = spi_chip_write_256, |
| 7161 | .read = spi_chip_read, |
| 7162 | .voltage = {1650, 1950}, |
| 7163 | }, |
| 7164 | |
| 7165 | { |
| 7166 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7167 | .name = "IS29GL064B", |
| 7168 | .bustype = BUS_PARALLEL, |
| 7169 | .manufacture_id = ISSI_ID, |
| 7170 | .model_id = ISSI_PMC_IS29GL064B, |
| 7171 | .total_size = 8192, |
| 7172 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7173 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7174 | .tested = TEST_UNTESTED, |
| 7175 | .probe = probe_jedec_29gl, |
| 7176 | .probe_timing = TIMING_ZERO, |
| 7177 | .block_erasers = |
| 7178 | { |
| 7179 | { |
| 7180 | .eraseblocks = { |
| 7181 | {8 * 1024, 8}, |
| 7182 | {64 * 1024, 127}, |
| 7183 | }, |
| 7184 | .block_erase = erase_sector_jedec, |
| 7185 | }, { |
| 7186 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7187 | .block_erase = erase_chip_block_jedec, |
| 7188 | }, |
| 7189 | }, |
| 7190 | .write = write_jedec_1, |
| 7191 | .read = read_memmapped, |
| 7192 | .voltage = {2700, 3600}, |
| 7193 | }, |
| 7194 | |
| 7195 | { |
| 7196 | .vendor = "ISSI", |
| 7197 | .name = "IS29GL064T", |
| 7198 | .bustype = BUS_PARALLEL, |
| 7199 | .manufacture_id = ISSI_ID, |
| 7200 | .model_id = ISSI_PMC_IS29GL064T, |
| 7201 | .total_size = 8192, |
| 7202 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7203 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7204 | .tested = TEST_UNTESTED, |
| 7205 | .probe = probe_jedec_29gl, |
| 7206 | .probe_timing = TIMING_ZERO, |
| 7207 | .block_erasers = |
| 7208 | { |
| 7209 | { |
| 7210 | .eraseblocks = { |
| 7211 | {64 * 1024, 127}, |
| 7212 | {8 * 1024, 8}, |
| 7213 | }, |
| 7214 | .block_erase = erase_sector_jedec, |
| 7215 | }, { |
| 7216 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7217 | .block_erase = erase_chip_block_jedec, |
| 7218 | }, |
| 7219 | }, |
| 7220 | .write = write_jedec_1, |
| 7221 | .read = read_memmapped, |
| 7222 | .voltage = {2700, 3600}, |
| 7223 | }, |
| 7224 | |
| 7225 | { |
| 7226 | .vendor = "ISSI", |
| 7227 | .name = "IS29GL064H/L", |
| 7228 | .bustype = BUS_PARALLEL, |
| 7229 | .manufacture_id = ISSI_ID, |
| 7230 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7231 | .total_size = 8192, |
| 7232 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7233 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7234 | .tested = TEST_UNTESTED, |
| 7235 | .probe = probe_jedec_29gl, |
| 7236 | .probe_timing = TIMING_ZERO, |
| 7237 | .block_erasers = |
| 7238 | { |
| 7239 | { |
| 7240 | .eraseblocks = { {64 * 1024, 128} }, |
| 7241 | .block_erase = erase_sector_jedec, |
| 7242 | }, { |
| 7243 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7244 | .block_erase = erase_chip_block_jedec, |
| 7245 | }, |
| 7246 | }, |
| 7247 | .write = write_jedec_1, |
| 7248 | .read = read_memmapped, |
| 7249 | .voltage = {2700, 3600}, |
| 7250 | }, |
| 7251 | |
| 7252 | { |
| 7253 | .vendor = "ISSI", |
| 7254 | .name = "IS29GL128H/L", |
| 7255 | .bustype = BUS_PARALLEL, |
| 7256 | .manufacture_id = ISSI_ID, |
| 7257 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7258 | .total_size = 16384, |
| 7259 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7260 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7261 | .tested = TEST_UNTESTED, |
| 7262 | .probe = probe_jedec_29gl, |
| 7263 | .probe_timing = TIMING_ZERO, |
| 7264 | .block_erasers = |
| 7265 | { |
| 7266 | { |
| 7267 | .eraseblocks = { {128 * 1024, 128} }, |
| 7268 | .block_erase = erase_sector_jedec, |
| 7269 | }, { |
| 7270 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7271 | .block_erase = erase_chip_block_jedec, |
| 7272 | }, |
| 7273 | }, |
| 7274 | .write = write_jedec_1, |
| 7275 | .read = read_memmapped, |
| 7276 | .voltage = {2700, 3600}, |
| 7277 | }, |
| 7278 | |
| 7279 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7280 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7281 | .name = "MX23L1654", |
| 7282 | .bustype = BUS_SPI, |
| 7283 | .manufacture_id = MACRONIX_ID, |
| 7284 | .model_id = MACRONIX_MX23L1654, |
| 7285 | .total_size = 2048, |
| 7286 | .page_size = 256, |
| 7287 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7288 | .probe = probe_spi_rdid, |
| 7289 | .probe_timing = TIMING_ZERO, |
| 7290 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 7291 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7292 | .voltage = {3000, 3600}, |
| 7293 | }, |
| 7294 | |
| 7295 | { |
| 7296 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7297 | .name = "MX23L3254", |
| 7298 | .bustype = BUS_SPI, |
| 7299 | .manufacture_id = MACRONIX_ID, |
| 7300 | .model_id = MACRONIX_MX23L3254, |
| 7301 | .total_size = 4096, |
| 7302 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 7303 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7304 | .probe = probe_spi_rdid, |
| 7305 | .probe_timing = TIMING_ZERO, |
| 7306 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 7307 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7308 | .voltage = {3000, 3600}, |
| 7309 | }, |
| 7310 | |
| 7311 | { |
| 7312 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7313 | .name = "MX23L6454", |
| 7314 | .bustype = BUS_SPI, |
| 7315 | .manufacture_id = MACRONIX_ID, |
| 7316 | .model_id = MACRONIX_MX23L6454, |
| 7317 | .total_size = 8192, |
| 7318 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7319 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7320 | .probe = probe_spi_rdid, |
| 7321 | .probe_timing = TIMING_ZERO, |
| 7322 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 7323 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7324 | .voltage = {3000, 3600}, |
| 7325 | }, |
| 7326 | |
| 7327 | { |
| 7328 | .vendor = "Macronix", |
| 7329 | .name = "MX23L12854", |
| 7330 | .bustype = BUS_SPI, |
| 7331 | .manufacture_id = MACRONIX_ID, |
| 7332 | .model_id = MACRONIX_MX23L12854, |
| 7333 | .total_size = 16384, |
| 7334 | .page_size = 256, |
| 7335 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7336 | .probe = probe_spi_rdid, |
| 7337 | .probe_timing = TIMING_ZERO, |
| 7338 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 7339 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7340 | .voltage = {3000, 3600}, |
| 7341 | }, |
| 7342 | |
| 7343 | { |
| 7344 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7345 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7346 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7347 | .manufacture_id = MACRONIX_ID, |
| 7348 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7349 | .total_size = 64, |
| 7350 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7351 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7352 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7353 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7354 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7355 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7356 | .block_erasers = |
| 7357 | { |
| 7358 | { |
| 7359 | .eraseblocks = { {4 * 1024, 16} }, |
| 7360 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7361 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7362 | .eraseblocks = { {64 * 1024, 1} }, |
| 7363 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7364 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7365 | .eraseblocks = { {64 * 1024, 1} }, |
| 7366 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7367 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7368 | .eraseblocks = { {64 * 1024, 1} }, |
| 7369 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7370 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7371 | .eraseblocks = { {64 * 1024, 1} }, |
| 7372 | .block_erase = spi_block_erase_c7, |
| 7373 | }, |
| 7374 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7375 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7376 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7377 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7378 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 7379 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7380 | }, |
| 7381 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7382 | { |
| 7383 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7384 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7385 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7386 | .manufacture_id = MACRONIX_ID, |
| 7387 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7388 | .total_size = 128, |
| 7389 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7390 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7391 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7392 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7393 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7394 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7395 | .block_erasers = |
| 7396 | { |
| 7397 | { |
| 7398 | .eraseblocks = { {4 * 1024, 32} }, |
| 7399 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7400 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7401 | .eraseblocks = { {64 * 1024, 2} }, |
| 7402 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7403 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7404 | .eraseblocks = { {128 * 1024, 1} }, |
| 7405 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7406 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7407 | .eraseblocks = { {128 * 1024, 1} }, |
| 7408 | .block_erase = spi_block_erase_c7, |
| 7409 | }, |
| 7410 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7411 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7412 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7413 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7414 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7415 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7416 | }, |
| 7417 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7418 | { |
| 7419 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7420 | .name = "MX25L2005(C)/MX25L2006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7421 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7422 | .manufacture_id = MACRONIX_ID, |
| 7423 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7424 | .total_size = 256, |
| 7425 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7426 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7427 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7428 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7429 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7430 | .block_erasers = |
| 7431 | { |
| 7432 | { |
| 7433 | .eraseblocks = { {4 * 1024, 64} }, |
| 7434 | .block_erase = spi_block_erase_20, |
| 7435 | }, { |
| 7436 | .eraseblocks = { {64 * 1024, 4} }, |
| 7437 | .block_erase = spi_block_erase_52, |
| 7438 | }, { |
| 7439 | .eraseblocks = { {64 * 1024, 4} }, |
| 7440 | .block_erase = spi_block_erase_d8, |
| 7441 | }, { |
| 7442 | .eraseblocks = { {256 * 1024, 1} }, |
| 7443 | .block_erase = spi_block_erase_60, |
| 7444 | }, { |
| 7445 | .eraseblocks = { {256 * 1024, 1} }, |
| 7446 | .block_erase = spi_block_erase_c7, |
| 7447 | }, |
| 7448 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7449 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7450 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7451 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7452 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7453 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7454 | }, |
| 7455 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7456 | { |
| 7457 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7458 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7459 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7460 | .manufacture_id = MACRONIX_ID, |
| 7461 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7462 | .total_size = 512, |
| 7463 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7464 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7465 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7466 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7467 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7468 | .block_erasers = |
| 7469 | { |
| 7470 | { |
| 7471 | .eraseblocks = { {4 * 1024, 128} }, |
| 7472 | .block_erase = spi_block_erase_20, |
| 7473 | }, { |
| 7474 | .eraseblocks = { {64 * 1024, 8} }, |
| 7475 | .block_erase = spi_block_erase_52, |
| 7476 | }, { |
| 7477 | .eraseblocks = { {64 * 1024, 8} }, |
| 7478 | .block_erase = spi_block_erase_d8, |
| 7479 | }, { |
| 7480 | .eraseblocks = { {512 * 1024, 1} }, |
| 7481 | .block_erase = spi_block_erase_60, |
| 7482 | }, { |
| 7483 | .eraseblocks = { {512 * 1024, 1} }, |
| 7484 | .block_erase = spi_block_erase_c7, |
| 7485 | }, |
| 7486 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7487 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7488 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7489 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7490 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7491 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7492 | }, |
| 7493 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7494 | { |
| 7495 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7496 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7497 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7498 | .manufacture_id = MACRONIX_ID, |
| 7499 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7500 | .total_size = 1024, |
| 7501 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7502 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 7503 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7504 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 7505 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7506 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7507 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7508 | .block_erasers = |
| 7509 | { |
| 7510 | { |
| 7511 | .eraseblocks = { {4 * 1024, 256} }, |
| 7512 | .block_erase = spi_block_erase_20, |
| 7513 | }, { |
| 7514 | .eraseblocks = { {64 * 1024, 16} }, |
| 7515 | .block_erase = spi_block_erase_52, |
| 7516 | }, { |
| 7517 | .eraseblocks = { {64 * 1024, 16} }, |
| 7518 | .block_erase = spi_block_erase_d8, |
| 7519 | }, { |
| 7520 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7521 | .block_erase = spi_block_erase_60, |
| 7522 | }, { |
| 7523 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7524 | .block_erase = spi_block_erase_c7, |
| 7525 | }, |
| 7526 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7527 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7528 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7529 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7530 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7531 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7532 | }, |
| 7533 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7534 | { |
| 7535 | .vendor = "Macronix", |
| 7536 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7537 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7538 | .manufacture_id = MACRONIX_ID, |
| 7539 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7540 | .total_size = 2048, |
| 7541 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7542 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 7543 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7544 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7545 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7546 | .block_erasers = |
| 7547 | { |
| 7548 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7549 | .eraseblocks = { {64 * 1024, 32} }, |
| 7550 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7551 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7552 | .eraseblocks = { {64 * 1024, 32} }, |
| 7553 | .block_erase = spi_block_erase_d8, |
| 7554 | }, { |
| 7555 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7556 | .block_erase = spi_block_erase_60, |
| 7557 | }, { |
| 7558 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7559 | .block_erase = spi_block_erase_c7, |
| 7560 | }, |
| 7561 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7562 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7563 | .unlock = spi_disable_blockprotect, |
| 7564 | .write = spi_chip_write_256, |
| 7565 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7566 | .voltage = {2700, 3600}, |
| 7567 | }, |
| 7568 | |
| 7569 | { |
| 7570 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7571 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7572 | .bustype = BUS_SPI, |
| 7573 | .manufacture_id = MACRONIX_ID, |
| 7574 | .model_id = MACRONIX_MX25L1605, |
| 7575 | .total_size = 2048, |
| 7576 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7577 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7578 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7579 | .tested = TEST_OK_PREW, |
| 7580 | .probe = probe_spi_rdid, |
| 7581 | .probe_timing = TIMING_ZERO, |
| 7582 | .block_erasers = |
| 7583 | { |
| 7584 | { |
| 7585 | .eraseblocks = { {4 * 1024, 512} }, |
| 7586 | .block_erase = spi_block_erase_20, |
| 7587 | }, { |
| 7588 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7589 | .block_erase = spi_block_erase_52, |
| 7590 | }, { |
| 7591 | .eraseblocks = { {64 * 1024, 32} }, |
| 7592 | .block_erase = spi_block_erase_d8, |
| 7593 | }, { |
| 7594 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7595 | .block_erase = spi_block_erase_60, |
| 7596 | }, { |
| 7597 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7598 | .block_erase = spi_block_erase_c7, |
| 7599 | }, |
| 7600 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7601 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7602 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7603 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7604 | .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7605 | .voltage = {2700, 3600}, |
| 7606 | }, |
| 7607 | |
| 7608 | { |
| 7609 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7610 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7611 | .bustype = BUS_SPI, |
| 7612 | .manufacture_id = MACRONIX_ID, |
| 7613 | .model_id = MACRONIX_MX25L1605, |
| 7614 | .total_size = 2048, |
| 7615 | .page_size = 256, |
| 7616 | .feature_bits = FEATURE_WRSR_WREN, |
| 7617 | .tested = TEST_OK_PREW, |
| 7618 | .probe = probe_spi_rdid, |
| 7619 | .probe_timing = TIMING_ZERO, |
| 7620 | .block_erasers = |
| 7621 | { |
| 7622 | { |
| 7623 | .eraseblocks = { {4 * 1024, 512} }, |
| 7624 | .block_erase = spi_block_erase_20, |
| 7625 | }, { |
| 7626 | .eraseblocks = { {64 * 1024, 32} }, |
| 7627 | .block_erase = spi_block_erase_d8, |
| 7628 | }, { |
| 7629 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7630 | .block_erase = spi_block_erase_60, |
| 7631 | }, { |
| 7632 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7633 | .block_erase = spi_block_erase_c7, |
| 7634 | }, |
| 7635 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7636 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7637 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7638 | .write = spi_chip_write_256, |
| 7639 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7640 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7641 | }, |
| 7642 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7643 | { |
| 7644 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7645 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7646 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7647 | .manufacture_id = MACRONIX_ID, |
| 7648 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7649 | .total_size = 2048, |
| 7650 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7651 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7652 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7653 | .tested = TEST_UNTESTED, |
| 7654 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7655 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7656 | .block_erasers = |
| 7657 | { |
| 7658 | { |
| 7659 | .eraseblocks = { {4 * 1024, 512} }, |
| 7660 | .block_erase = spi_block_erase_20, |
| 7661 | }, { |
| 7662 | .eraseblocks = { {64 * 1024, 32} }, |
| 7663 | .block_erase = spi_block_erase_d8, |
| 7664 | }, { |
| 7665 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7666 | .block_erase = spi_block_erase_60, |
| 7667 | }, { |
| 7668 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7669 | .block_erase = spi_block_erase_c7, |
| 7670 | } |
| 7671 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7672 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7673 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7674 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7675 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7676 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7677 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 7678 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7679 | { |
| 7680 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7681 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7682 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7683 | .manufacture_id = MACRONIX_ID, |
| 7684 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7685 | .total_size = 2048, |
| 7686 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7687 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7688 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7689 | .tested = TEST_UNTESTED, |
| 7690 | .probe = probe_spi_rdid, |
| 7691 | .probe_timing = TIMING_ZERO, |
| 7692 | .block_erasers = |
| 7693 | { |
| 7694 | { |
| 7695 | .eraseblocks = { {4 * 1024, 512} }, |
| 7696 | .block_erase = spi_block_erase_20, |
| 7697 | }, { |
| 7698 | .eraseblocks = { {64 * 1024, 32} }, |
| 7699 | .block_erase = spi_block_erase_d8, |
| 7700 | }, { |
| 7701 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7702 | .block_erase = spi_block_erase_60, |
| 7703 | }, { |
| 7704 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7705 | .block_erase = spi_block_erase_c7, |
| 7706 | } |
| 7707 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7708 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7709 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7710 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7711 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7712 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7713 | }, |
| 7714 | |
| 7715 | { |
| 7716 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7717 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7718 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7719 | .manufacture_id = MACRONIX_ID, |
| 7720 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7721 | .total_size = 4096, |
| 7722 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7723 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7724 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7725 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7726 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7727 | .block_erasers = |
| 7728 | { |
| 7729 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7730 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7731 | .block_erase = spi_block_erase_20, |
| 7732 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7733 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7734 | .block_erase = spi_block_erase_d8, |
| 7735 | }, { |
| 7736 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7737 | .block_erase = spi_block_erase_60, |
| 7738 | }, { |
| 7739 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7740 | .block_erase = spi_block_erase_c7, |
| 7741 | }, |
| 7742 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7743 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7744 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7745 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7746 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7747 | .voltage = {2700, 3600}, |
| 7748 | }, |
| 7749 | |
| 7750 | { |
| 7751 | .vendor = "Macronix", |
| 7752 | .name = "MX25L3205D/MX25L3208D", |
| 7753 | .bustype = BUS_SPI, |
| 7754 | .manufacture_id = MACRONIX_ID, |
| 7755 | .model_id = MACRONIX_MX25L3205, |
| 7756 | .total_size = 4096, |
| 7757 | .page_size = 256, |
| 7758 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7759 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7760 | .tested = TEST_OK_PREW, |
| 7761 | .probe = probe_spi_rdid, |
| 7762 | .probe_timing = TIMING_ZERO, |
| 7763 | .block_erasers = |
| 7764 | { |
| 7765 | { |
| 7766 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7767 | .block_erase = spi_block_erase_20, |
| 7768 | }, { |
| 7769 | .eraseblocks = { {64 * 1024, 64} }, |
| 7770 | .block_erase = spi_block_erase_d8, |
| 7771 | }, { |
| 7772 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7773 | .block_erase = spi_block_erase_60, |
| 7774 | }, { |
| 7775 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7776 | .block_erase = spi_block_erase_c7, |
| 7777 | }, |
| 7778 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7779 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7780 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7781 | .write = spi_chip_write_256, |
| 7782 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7783 | .voltage = {2700, 3600}, |
| 7784 | }, |
| 7785 | |
| 7786 | { |
| 7787 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7788 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7789 | .bustype = BUS_SPI, |
| 7790 | .manufacture_id = MACRONIX_ID, |
| 7791 | .model_id = MACRONIX_MX25L3205, |
| 7792 | .total_size = 4096, |
| 7793 | .page_size = 256, |
| 7794 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7795 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7796 | .tested = TEST_OK_PREW, |
| 7797 | .probe = probe_spi_rdid, |
| 7798 | .probe_timing = TIMING_ZERO, |
| 7799 | .block_erasers = |
| 7800 | { |
| 7801 | { |
| 7802 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7803 | .block_erase = spi_block_erase_20, |
| 7804 | }, { |
| 7805 | .eraseblocks = { {64 * 1024, 64} }, |
| 7806 | .block_erase = spi_block_erase_d8, |
| 7807 | }, { |
| 7808 | .eraseblocks = { {64 * 1024, 64} }, |
| 7809 | .block_erase = spi_block_erase_52, |
| 7810 | }, { |
| 7811 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7812 | .block_erase = spi_block_erase_60, |
| 7813 | }, { |
| 7814 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7815 | .block_erase = spi_block_erase_c7, |
| 7816 | }, |
| 7817 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7818 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7819 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7820 | .write = spi_chip_write_256, |
| 7821 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7822 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7823 | }, |
| 7824 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7825 | { |
| 7826 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7827 | .name = "MX25L3273E", |
| 7828 | .bustype = BUS_SPI, |
| 7829 | .manufacture_id = MACRONIX_ID, |
| 7830 | .model_id = MACRONIX_MX25L3205, |
| 7831 | .total_size = 4096, |
| 7832 | .page_size = 256, |
| 7833 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7834 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7835 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7836 | .probe = probe_spi_rdid, |
| 7837 | .probe_timing = TIMING_ZERO, |
| 7838 | .block_erasers = |
| 7839 | { |
| 7840 | { |
| 7841 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7842 | .block_erase = spi_block_erase_20, |
| 7843 | }, { |
| 7844 | .eraseblocks = { {32 * 1024, 128} }, |
| 7845 | .block_erase = spi_block_erase_52, |
| 7846 | }, { |
| 7847 | .eraseblocks = { {64 * 1024, 64} }, |
| 7848 | .block_erase = spi_block_erase_d8, |
| 7849 | }, { |
| 7850 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7851 | .block_erase = spi_block_erase_60, |
| 7852 | }, { |
| 7853 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7854 | .block_erase = spi_block_erase_c7, |
| 7855 | }, |
| 7856 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7857 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7858 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7859 | .write = spi_chip_write_256, |
| 7860 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7861 | .voltage = {2700, 3600}, |
| 7862 | }, |
| 7863 | |
| 7864 | { |
| 7865 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7866 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7867 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7868 | .manufacture_id = MACRONIX_ID, |
| 7869 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7870 | .total_size = 4096, |
| 7871 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7872 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 7873 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7874 | .tested = TEST_UNTESTED, |
| 7875 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7876 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7877 | .block_erasers = |
| 7878 | { |
| 7879 | { |
| 7880 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7881 | .block_erase = spi_block_erase_20, |
| 7882 | }, { |
| 7883 | .eraseblocks = { {64 * 1024, 64} }, |
| 7884 | .block_erase = spi_block_erase_d8, |
| 7885 | }, { |
| 7886 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7887 | .block_erase = spi_block_erase_60, |
| 7888 | }, { |
| 7889 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7890 | .block_erase = spi_block_erase_c7, |
| 7891 | } |
| 7892 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7893 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7894 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7895 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7896 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7897 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7898 | }, |
| 7899 | |
| 7900 | { |
| 7901 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7902 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7903 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7904 | .manufacture_id = MACRONIX_ID, |
| 7905 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7906 | .total_size = 8192, |
| 7907 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7908 | /* Has an additional 512B EEPROM sector */ |
| 7909 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 7910 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7911 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7912 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7913 | .block_erasers = |
| 7914 | { |
| 7915 | { |
| 7916 | .eraseblocks = { {64 * 1024, 128} }, |
| 7917 | .block_erase = spi_block_erase_20, |
| 7918 | }, { |
| 7919 | .eraseblocks = { {64 * 1024, 128} }, |
| 7920 | .block_erase = spi_block_erase_d8, |
| 7921 | }, { |
| 7922 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7923 | .block_erase = spi_block_erase_60, |
| 7924 | }, { |
| 7925 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7926 | .block_erase = spi_block_erase_c7, |
| 7927 | } |
| 7928 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7929 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7930 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7931 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7932 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7933 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7934 | }, |
| 7935 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7936 | { |
| 7937 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7938 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7939 | .bustype = BUS_SPI, |
| 7940 | .manufacture_id = MACRONIX_ID, |
| 7941 | .model_id = MACRONIX_MX25L6405, |
| 7942 | .total_size = 8192, |
| 7943 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7944 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7945 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7946 | .tested = TEST_OK_PREW, |
| 7947 | .probe = probe_spi_rdid, |
| 7948 | .probe_timing = TIMING_ZERO, |
| 7949 | .block_erasers = |
| 7950 | { |
| 7951 | { |
| 7952 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7953 | .block_erase = spi_block_erase_20, |
| 7954 | }, { |
| 7955 | .eraseblocks = { {64 * 1024, 128} }, |
| 7956 | .block_erase = spi_block_erase_d8, |
| 7957 | }, { |
| 7958 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7959 | .block_erase = spi_block_erase_60, |
| 7960 | }, { |
| 7961 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7962 | .block_erase = spi_block_erase_c7, |
| 7963 | } |
| 7964 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7965 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7966 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7967 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7968 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7969 | .voltage = {2700, 3600}, |
| 7970 | }, |
| 7971 | |
| 7972 | { |
| 7973 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7974 | .name = "MX25L6406E/MX25L6408E", |
| 7975 | .bustype = BUS_SPI, |
| 7976 | .manufacture_id = MACRONIX_ID, |
| 7977 | .model_id = MACRONIX_MX25L6405, |
| 7978 | .total_size = 8192, |
| 7979 | .page_size = 256, |
| 7980 | /* MX25L6406E supports SFDP */ |
| 7981 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 7982 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7983 | .tested = TEST_OK_PREW, |
| 7984 | .probe = probe_spi_rdid, |
| 7985 | .probe_timing = TIMING_ZERO, |
| 7986 | .block_erasers = |
| 7987 | { |
| 7988 | { |
| 7989 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7990 | .block_erase = spi_block_erase_20, |
| 7991 | }, { |
| 7992 | .eraseblocks = { {64 * 1024, 128} }, |
| 7993 | .block_erase = spi_block_erase_52, |
| 7994 | }, { |
| 7995 | .eraseblocks = { {64 * 1024, 128} }, |
| 7996 | .block_erase = spi_block_erase_d8, |
| 7997 | }, { |
| 7998 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7999 | .block_erase = spi_block_erase_60, |
| 8000 | }, { |
| 8001 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8002 | .block_erase = spi_block_erase_c7, |
| 8003 | } |
| 8004 | }, |
| 8005 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8006 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8007 | .write = spi_chip_write_256, |
| 8008 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 8009 | .voltage = {2700, 3600}, |
| 8010 | }, |
| 8011 | |
| 8012 | { |
| 8013 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 8014 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8015 | .bustype = BUS_SPI, |
| 8016 | .manufacture_id = MACRONIX_ID, |
| 8017 | .model_id = MACRONIX_MX25L6405, |
| 8018 | .total_size = 8192, |
| 8019 | .page_size = 256, |
| 8020 | /* supports SFDP */ |
| 8021 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8022 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8023 | .tested = TEST_OK_PREW, |
| 8024 | .probe = probe_spi_rdid, |
| 8025 | .probe_timing = TIMING_ZERO, |
| 8026 | .block_erasers = |
| 8027 | { |
| 8028 | { |
| 8029 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8030 | .block_erase = spi_block_erase_20, |
| 8031 | }, { |
| 8032 | .eraseblocks = { {32 * 1024, 256} }, |
| 8033 | .block_erase = spi_block_erase_52, |
| 8034 | }, { |
| 8035 | .eraseblocks = { {64 * 1024, 128} }, |
| 8036 | .block_erase = spi_block_erase_d8, |
| 8037 | }, { |
| 8038 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8039 | .block_erase = spi_block_erase_60, |
| 8040 | }, { |
| 8041 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8042 | .block_erase = spi_block_erase_c7, |
| 8043 | } |
| 8044 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8045 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8046 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8047 | .write = spi_chip_write_256, |
| 8048 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8049 | .voltage = {2700, 3600}, |
| 8050 | }, |
| 8051 | |
| 8052 | { |
| 8053 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8054 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8055 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8056 | .manufacture_id = MACRONIX_ID, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8057 | .model_id = MACRONIX_MX25L12805D, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8058 | .total_size = 16384, |
| 8059 | .page_size = 256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8060 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8061 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8062 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8063 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8064 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8065 | .block_erasers = |
| 8066 | { |
| 8067 | { |
| 8068 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8069 | .block_erase = spi_block_erase_20, |
| 8070 | }, { |
| 8071 | .eraseblocks = { {64 * 1024, 256} }, |
| 8072 | .block_erase = spi_block_erase_d8, |
| 8073 | }, { |
| 8074 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8075 | .block_erase = spi_block_erase_60, |
| 8076 | }, { |
| 8077 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8078 | .block_erase = spi_block_erase_c7, |
| 8079 | } |
| 8080 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8081 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8082 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8083 | .write = spi_chip_write_256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8084 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8085 | .voltage = {2700, 3600}, |
| 8086 | }, |
| 8087 | |
| 8088 | { |
| 8089 | .vendor = "Macronix", |
| 8090 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
| 8091 | .bustype = BUS_SPI, |
| 8092 | .manufacture_id = MACRONIX_ID, |
| 8093 | .model_id = MACRONIX_MX25L12805D, |
| 8094 | .total_size = 16384, |
| 8095 | .page_size = 256, |
| 8096 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8097 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8098 | .tested = TEST_OK_PREW, |
| 8099 | .probe = probe_spi_rdid, |
| 8100 | .probe_timing = TIMING_ZERO, |
| 8101 | .block_erasers = |
| 8102 | { |
| 8103 | { |
| 8104 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8105 | .block_erase = spi_block_erase_20, |
| 8106 | }, { |
| 8107 | .eraseblocks = { {32 * 1024, 512} }, |
| 8108 | .block_erase = spi_block_erase_52, |
| 8109 | }, { |
| 8110 | .eraseblocks = { {64 * 1024, 256} }, |
| 8111 | .block_erase = spi_block_erase_d8, |
| 8112 | }, { |
| 8113 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8114 | .block_erase = spi_block_erase_60, |
| 8115 | }, { |
| 8116 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8117 | .block_erase = spi_block_erase_c7, |
| 8118 | } |
| 8119 | }, |
| 8120 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8121 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8122 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8123 | .write = spi_chip_write_256, |
| 8124 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8125 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8126 | }, |
| 8127 | |
| 8128 | { |
| 8129 | .vendor = "Macronix", |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8130 | .name = "MX25L25635F/MX25L25645E/MX25L25665E", |
| 8131 | .bustype = BUS_SPI, |
| 8132 | .manufacture_id = MACRONIX_ID, |
| 8133 | .model_id = MACRONIX_MX25L25635F, |
| 8134 | .total_size = 32768, |
| 8135 | .page_size = 256, |
| 8136 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8137 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT, |
| 8138 | .four_bytes_addr_funcs = |
| 8139 | { |
| 8140 | .set_4ba = spi_enter_4ba_b7, /* enter 4-bytes addressing mode by CMD B7 */ |
| 8141 | .read_nbyte = spi_nbyte_read_4ba, /* read from 4-bytes addressing mode */ |
| 8142 | .program_byte = spi_byte_program_4ba, /* write from 4-bytes addressing mode */ |
| 8143 | .program_nbyte = spi_nbyte_program_4ba /* write from 4-bytes addressing mode */ |
| 8144 | }, |
| 8145 | .tested = TEST_OK_PREW, |
| 8146 | .probe = probe_spi_rdid, |
| 8147 | .probe_timing = TIMING_ZERO, |
| 8148 | .block_erasers = |
| 8149 | { |
| 8150 | { |
| 8151 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8152 | .block_erase = spi_block_erase_20_4ba, |
| 8153 | }, { |
| 8154 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8155 | .block_erase = spi_block_erase_52_4ba, |
| 8156 | }, { |
| 8157 | .eraseblocks = { {64 * 1024, 512} }, |
| 8158 | .block_erase = spi_block_erase_d8_4ba, |
| 8159 | }, { |
| 8160 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8161 | .block_erase = spi_block_erase_60, |
| 8162 | }, { |
| 8163 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8164 | .block_erase = spi_block_erase_c7, |
| 8165 | } |
| 8166 | }, |
| 8167 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8168 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8169 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8170 | .write = spi_chip_write_256, |
| 8171 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8172 | .voltage = {2700, 3600}, |
| 8173 | }, |
| 8174 | |
| 8175 | { |
| 8176 | .vendor = "Macronix", |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8177 | .name = "MX66L51235F", |
| 8178 | .bustype = BUS_SPI, |
| 8179 | .manufacture_id = MACRONIX_ID, |
| 8180 | .model_id = MACRONIX_MX66L51235F, |
| 8181 | .total_size = 65536, |
| 8182 | .page_size = 256, |
| 8183 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8184 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT, |
| 8185 | .four_bytes_addr_funcs = |
| 8186 | { |
| 8187 | .set_4ba = spi_enter_4ba_b7, /* enter 4-bytes addressing mode by CMD B7 */ |
| 8188 | .read_nbyte = spi_nbyte_read_4ba, /* read from 4-bytes addressing mode */ |
| 8189 | .program_byte = spi_byte_program_4ba, /* write from 4-bytes addressing mode */ |
| 8190 | .program_nbyte = spi_nbyte_program_4ba /* write from 4-bytes addressing mode */ |
| 8191 | }, |
| 8192 | .tested = TEST_OK_PREW, |
| 8193 | .probe = probe_spi_rdid, |
| 8194 | .probe_timing = TIMING_ZERO, |
| 8195 | .block_erasers = |
| 8196 | { |
| 8197 | { |
| 8198 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8199 | .block_erase = spi_block_erase_20_4ba, |
| 8200 | }, { |
| 8201 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8202 | .block_erase = spi_block_erase_52_4ba, |
| 8203 | }, { |
| 8204 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8205 | .block_erase = spi_block_erase_d8_4ba, |
| 8206 | }, { |
| 8207 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8208 | .block_erase = spi_block_erase_60, |
| 8209 | }, { |
| 8210 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8211 | .block_erase = spi_block_erase_c7, |
| 8212 | } |
| 8213 | }, |
| 8214 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8215 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8216 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8217 | .write = spi_chip_write_256, |
| 8218 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8219 | .voltage = {2700, 3600}, |
| 8220 | }, |
| 8221 | |
| 8222 | { |
| 8223 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8224 | .name = "MX25U1635E", |
| 8225 | .bustype = BUS_SPI, |
| 8226 | .manufacture_id = MACRONIX_ID, |
| 8227 | .model_id = MACRONIX_MX25U1635E, |
| 8228 | .total_size = 2048, |
| 8229 | .page_size = 256, |
| 8230 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8231 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8232 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8233 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8234 | .probe = probe_spi_rdid, |
| 8235 | .probe_timing = TIMING_ZERO, |
| 8236 | .block_erasers = |
| 8237 | { |
| 8238 | { |
| 8239 | .eraseblocks = { {4 * 1024, 512} }, |
| 8240 | .block_erase = spi_block_erase_20, |
| 8241 | }, { |
| 8242 | .eraseblocks = { {32 * 1024, 64} }, |
| 8243 | .block_erase = spi_block_erase_52, |
| 8244 | }, { |
| 8245 | .eraseblocks = { {64 * 1024, 32} }, |
| 8246 | .block_erase = spi_block_erase_d8, |
| 8247 | }, { |
| 8248 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8249 | .block_erase = spi_block_erase_60, |
| 8250 | }, { |
| 8251 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8252 | .block_erase = spi_block_erase_c7, |
| 8253 | } |
| 8254 | }, |
| 8255 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8256 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8257 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8258 | .write = spi_chip_write_256, |
| 8259 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8260 | .voltage = {1650, 2000}, |
| 8261 | }, |
| 8262 | |
| 8263 | { |
| 8264 | .vendor = "Macronix", |
| 8265 | .name = "MX25U3235E/F", |
| 8266 | .bustype = BUS_SPI, |
| 8267 | .manufacture_id = MACRONIX_ID, |
| 8268 | .model_id = MACRONIX_MX25U3235E, |
| 8269 | .total_size = 4096, |
| 8270 | .page_size = 256, |
| 8271 | /* F model supports SFDP */ |
| 8272 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8273 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8274 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8275 | .tested = TEST_OK_PREW, |
| 8276 | .probe = probe_spi_rdid, |
| 8277 | .probe_timing = TIMING_ZERO, |
| 8278 | .block_erasers = |
| 8279 | { |
| 8280 | { |
| 8281 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8282 | .block_erase = spi_block_erase_20, |
| 8283 | }, { |
| 8284 | .eraseblocks = { {32 * 1024, 128} }, |
| 8285 | .block_erase = spi_block_erase_52, |
| 8286 | }, { |
| 8287 | .eraseblocks = { {64 * 1024, 64} }, |
| 8288 | .block_erase = spi_block_erase_d8, |
| 8289 | }, { |
| 8290 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8291 | .block_erase = spi_block_erase_60, |
| 8292 | }, { |
| 8293 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8294 | .block_erase = spi_block_erase_c7, |
| 8295 | } |
| 8296 | }, |
| 8297 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8298 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8299 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8300 | .write = spi_chip_write_256, |
| 8301 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8302 | .voltage = {1650, 2000}, |
| 8303 | }, |
| 8304 | |
| 8305 | { |
| 8306 | .vendor = "Macronix", |
| 8307 | .name = "MX25U6435E/F", |
| 8308 | .bustype = BUS_SPI, |
| 8309 | .manufacture_id = MACRONIX_ID, |
| 8310 | .model_id = MACRONIX_MX25U6435E, |
| 8311 | .total_size = 8192, |
| 8312 | .page_size = 256, |
| 8313 | /* F model supports SFDP */ |
| 8314 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8315 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8316 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8317 | .tested = TEST_OK_PREW, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8318 | .probe = probe_spi_rdid, |
| 8319 | .probe_timing = TIMING_ZERO, |
| 8320 | .block_erasers = |
| 8321 | { |
| 8322 | { |
| 8323 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8324 | .block_erase = spi_block_erase_20, |
| 8325 | }, { |
| 8326 | .eraseblocks = { {32 * 1024, 256} }, |
| 8327 | .block_erase = spi_block_erase_52, |
| 8328 | }, { |
| 8329 | .eraseblocks = { {64 * 1024, 128} }, |
| 8330 | .block_erase = spi_block_erase_d8, |
| 8331 | }, { |
| 8332 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8333 | .block_erase = spi_block_erase_60, |
| 8334 | }, { |
| 8335 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8336 | .block_erase = spi_block_erase_c7, |
| 8337 | } |
| 8338 | }, |
| 8339 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8340 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8341 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8342 | .write = spi_chip_write_256, |
| 8343 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8344 | .voltage = {1650, 2000}, |
| 8345 | }, |
| 8346 | |
| 8347 | { |
| 8348 | .vendor = "Macronix", |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 8349 | .name = "MX25U12835F", |
| 8350 | .bustype = BUS_SPI, |
| 8351 | .manufacture_id = MACRONIX_ID, |
| 8352 | .model_id = MACRONIX_MX25U12835E, |
| 8353 | .total_size = 16384, |
| 8354 | .page_size = 256, |
| 8355 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8356 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8357 | .tested = TEST_UNTESTED, |
| 8358 | .probe = probe_spi_rdid, |
| 8359 | .probe_timing = TIMING_ZERO, |
| 8360 | .block_erasers = |
| 8361 | { |
| 8362 | { |
| 8363 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8364 | .block_erase = spi_block_erase_20, |
| 8365 | }, { |
| 8366 | .eraseblocks = { {32 * 1024, 512} }, |
| 8367 | .block_erase = spi_block_erase_52, |
| 8368 | }, { |
| 8369 | .eraseblocks = { {64 * 1024, 256} }, |
| 8370 | .block_erase = spi_block_erase_d8, |
| 8371 | }, { |
| 8372 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8373 | .block_erase = spi_block_erase_60, |
| 8374 | }, { |
| 8375 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8376 | .block_erase = spi_block_erase_c7, |
| 8377 | } |
| 8378 | }, |
| 8379 | /* TODO: security register */ |
| 8380 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8381 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8382 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8383 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8384 | .voltage = {1650, 2000}, |
| 8385 | }, |
| 8386 | |
| 8387 | { |
Stefan Tauner | a4617f7 | 2015-01-10 15:59:54 +0000 | [diff] [blame] | 8388 | .vendor = "Macronix", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8389 | .name = "MX25L6495F", |
| 8390 | .bustype = BUS_SPI, |
| 8391 | .manufacture_id = MACRONIX_ID, |
| 8392 | .model_id = MACRONIX_MX25L6495F, |
| 8393 | .total_size = 8192, |
| 8394 | .page_size = 256, |
| 8395 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8396 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8397 | .tested = TEST_OK_PREW, |
| 8398 | .probe = probe_spi_rdid, |
| 8399 | .probe_timing = TIMING_ZERO, |
| 8400 | .block_erasers = |
| 8401 | { |
| 8402 | { |
| 8403 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8404 | .block_erase = spi_block_erase_20, |
| 8405 | }, { |
| 8406 | .eraseblocks = { {64 * 1024, 128} }, |
| 8407 | .block_erase = spi_block_erase_d8, |
| 8408 | }, { |
| 8409 | .eraseblocks = { {32 * 1024, 256} }, |
| 8410 | .block_erase = spi_block_erase_52, |
| 8411 | }, { |
| 8412 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8413 | .block_erase = spi_block_erase_60, |
| 8414 | }, { |
| 8415 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8416 | .block_erase = spi_block_erase_c7, |
| 8417 | } |
| 8418 | }, |
| 8419 | .unlock = spi_disable_blockprotect, |
| 8420 | .write = spi_chip_write_256, |
| 8421 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8422 | .voltage = {2700, 3600}, |
| 8423 | }, |
| 8424 | |
| 8425 | { |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 8426 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8427 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8428 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8429 | .manufacture_id = MACRONIX_ID, |
| 8430 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8431 | .total_size = 128, |
| 8432 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8433 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8434 | .tested = TEST_UNTESTED, |
| 8435 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8436 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8437 | .block_erasers = |
| 8438 | { |
| 8439 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8440 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8441 | {8 * 1024, 1}, |
| 8442 | {4 * 1024, 2}, |
| 8443 | {8 * 1024, 2}, |
| 8444 | {32 * 1024, 1}, |
| 8445 | {64 * 1024, 1}, |
| 8446 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8447 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8448 | }, { |
| 8449 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8450 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8451 | } |
| 8452 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8453 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8454 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8455 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8456 | }, |
| 8457 | |
| 8458 | { |
| 8459 | .vendor = "Macronix", |
| 8460 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8461 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8462 | .manufacture_id = MACRONIX_ID, |
| 8463 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8464 | .total_size = 128, |
| 8465 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8466 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 8467 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8468 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8469 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8470 | .block_erasers = |
| 8471 | { |
| 8472 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8473 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8474 | {64 * 1024, 1}, |
| 8475 | {32 * 1024, 1}, |
| 8476 | {8 * 1024, 2}, |
| 8477 | {4 * 1024, 2}, |
| 8478 | {8 * 1024, 1}, |
| 8479 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8480 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8481 | }, { |
| 8482 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8483 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8484 | } |
| 8485 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8486 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8487 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8488 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8489 | }, |
| 8490 | |
| 8491 | { |
| 8492 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8493 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8494 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8495 | .manufacture_id = MACRONIX_ID, |
| 8496 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8497 | .total_size = 256, |
| 8498 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8499 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8500 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8501 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8502 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8503 | .block_erasers = |
| 8504 | { |
| 8505 | { |
| 8506 | .eraseblocks = { |
| 8507 | {16 * 1024, 1}, |
| 8508 | {8 * 1024, 2}, |
| 8509 | {32 * 1024, 1}, |
| 8510 | {64 * 1024, 3}, |
| 8511 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8512 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8513 | }, { |
| 8514 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8515 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8516 | }, |
| 8517 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8518 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8519 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8520 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8521 | }, |
| 8522 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8523 | { |
| 8524 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8525 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8526 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8527 | .manufacture_id = MACRONIX_ID, |
| 8528 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8529 | .total_size = 256, |
| 8530 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8531 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8532 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8533 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8534 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8535 | .block_erasers = |
| 8536 | { |
| 8537 | { |
| 8538 | .eraseblocks = { |
| 8539 | {64 * 1024, 3}, |
| 8540 | {32 * 1024, 1}, |
| 8541 | {8 * 1024, 2}, |
| 8542 | {16 * 1024, 1}, |
| 8543 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8544 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8545 | }, { |
| 8546 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8547 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8548 | }, |
| 8549 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8550 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8551 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8552 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8553 | }, |
| 8554 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8555 | { |
| 8556 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 8557 | .name = "MX29F022(N)B", |
| 8558 | .bustype = BUS_PARALLEL, |
| 8559 | .manufacture_id = MACRONIX_ID, |
| 8560 | .model_id = MACRONIX_MX29F022B, |
| 8561 | .total_size = 256, |
| 8562 | .page_size = 0, /* unused */ |
| 8563 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8564 | .tested = TEST_UNTESTED, |
| 8565 | .probe = probe_jedec, |
| 8566 | .probe_timing = TIMING_ZERO, |
| 8567 | .block_erasers = |
| 8568 | { |
| 8569 | { |
| 8570 | .eraseblocks = { |
| 8571 | {16 * 1024, 1}, |
| 8572 | {8 * 1024, 2}, |
| 8573 | {32 * 1024, 1}, |
| 8574 | {64 * 1024, 3}, |
| 8575 | }, |
| 8576 | .block_erase = erase_sector_jedec, |
| 8577 | }, { |
| 8578 | .eraseblocks = { {256 * 1024, 1} }, |
| 8579 | .block_erase = erase_chip_block_jedec, |
| 8580 | } |
| 8581 | }, |
| 8582 | .write = write_jedec_1, |
| 8583 | .read = read_memmapped, |
| 8584 | .voltage = {4500, 5500}, |
| 8585 | }, |
| 8586 | |
| 8587 | { |
| 8588 | .vendor = "Macronix", |
| 8589 | .name = "MX29F022(N)T", |
| 8590 | .bustype = BUS_PARALLEL, |
| 8591 | .manufacture_id = MACRONIX_ID, |
| 8592 | .model_id = MACRONIX_MX29F022T, |
| 8593 | .total_size = 256, |
| 8594 | .page_size = 0, /* unused */ |
| 8595 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8596 | .tested = TEST_OK_PREW, |
| 8597 | .probe = probe_jedec, |
| 8598 | .probe_timing = TIMING_ZERO, |
| 8599 | .block_erasers = |
| 8600 | { |
| 8601 | { |
| 8602 | .eraseblocks = { |
| 8603 | {64 * 1024, 3}, |
| 8604 | {32 * 1024, 1}, |
| 8605 | {8 * 1024, 2}, |
| 8606 | {16 * 1024, 1}, |
| 8607 | }, |
| 8608 | .block_erase = erase_sector_jedec, |
| 8609 | }, { |
| 8610 | .eraseblocks = { {256 * 1024, 1} }, |
| 8611 | .block_erase = erase_chip_block_jedec, |
| 8612 | } |
| 8613 | }, |
| 8614 | .write = write_jedec_1, |
| 8615 | .read = read_memmapped, |
| 8616 | .voltage = {4500, 5500}, |
| 8617 | }, |
| 8618 | |
| 8619 | { |
| 8620 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8621 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8622 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8623 | .manufacture_id = MACRONIX_ID, |
| 8624 | .model_id = MACRONIX_MX29F040, |
| 8625 | .total_size = 512, |
| 8626 | .page_size = 64 * 1024, |
| 8627 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8628 | .tested = TEST_UNTESTED, |
| 8629 | .probe = probe_jedec, |
| 8630 | .probe_timing = TIMING_ZERO, |
| 8631 | .block_erasers = |
| 8632 | { |
| 8633 | { |
| 8634 | .eraseblocks = { {64 * 1024, 8} }, |
| 8635 | .block_erase = erase_sector_jedec, |
| 8636 | }, { |
| 8637 | .eraseblocks = { {512 * 1024, 1} }, |
| 8638 | .block_erase = erase_chip_block_jedec, |
| 8639 | }, |
| 8640 | }, |
| 8641 | .write = write_jedec_1, |
| 8642 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8643 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8644 | }, |
| 8645 | |
| 8646 | { |
| 8647 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8648 | .name = "MX29GL320EB", |
| 8649 | .bustype = BUS_PARALLEL, |
| 8650 | .manufacture_id = MACRONIX_ID, |
| 8651 | .model_id = MACRONIX_MX29GL320EB, |
| 8652 | .total_size = 4096, |
| 8653 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8654 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8655 | .tested = TEST_UNTESTED, |
| 8656 | .probe = probe_jedec_29gl, |
| 8657 | .probe_timing = TIMING_ZERO, |
| 8658 | .block_erasers = |
| 8659 | { |
| 8660 | { |
| 8661 | .eraseblocks = { |
| 8662 | {8 * 1024, 8}, |
| 8663 | {64 * 1024, 63}, |
| 8664 | }, |
| 8665 | .block_erase = erase_sector_jedec, |
| 8666 | }, { |
| 8667 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8668 | .block_erase = erase_chip_block_jedec, |
| 8669 | }, |
| 8670 | }, |
| 8671 | .write = write_jedec_1, |
| 8672 | .read = read_memmapped, |
| 8673 | .voltage = {2700, 3600}, |
| 8674 | }, |
| 8675 | |
| 8676 | { |
| 8677 | .vendor = "Macronix", |
| 8678 | .name = "MX29GL320ET", |
| 8679 | .bustype = BUS_PARALLEL, |
| 8680 | .manufacture_id = MACRONIX_ID, |
| 8681 | .model_id = MACRONIX_MX29GL320ET, |
| 8682 | .total_size = 4096, |
| 8683 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8684 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8685 | .tested = TEST_UNTESTED, |
| 8686 | .probe = probe_jedec_29gl, |
| 8687 | .probe_timing = TIMING_ZERO, |
| 8688 | .block_erasers = |
| 8689 | { |
| 8690 | { |
| 8691 | .eraseblocks = { |
| 8692 | {64 * 1024, 63}, |
| 8693 | {8 * 1024, 8}, |
| 8694 | }, |
| 8695 | .block_erase = erase_sector_jedec, |
| 8696 | }, { |
| 8697 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8698 | .block_erase = erase_chip_block_jedec, |
| 8699 | }, |
| 8700 | }, |
| 8701 | .write = write_jedec_1, |
| 8702 | .read = read_memmapped, |
| 8703 | .voltage = {2700, 3600}, |
| 8704 | }, |
| 8705 | |
| 8706 | { |
| 8707 | .vendor = "Macronix", |
| 8708 | .name = "MX29GL320EH/L", |
| 8709 | .bustype = BUS_PARALLEL, |
| 8710 | .manufacture_id = MACRONIX_ID, |
| 8711 | .model_id = MACRONIX_MX29GL320EHL, |
| 8712 | .total_size = 4096, |
| 8713 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8714 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8715 | .tested = TEST_UNTESTED, |
| 8716 | .probe = probe_jedec_29gl, |
| 8717 | .probe_timing = TIMING_ZERO, |
| 8718 | .block_erasers = |
| 8719 | { |
| 8720 | { |
| 8721 | .eraseblocks = { {64 * 1024, 64} }, |
| 8722 | .block_erase = erase_sector_jedec, |
| 8723 | }, { |
| 8724 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8725 | .block_erase = erase_chip_block_jedec, |
| 8726 | }, |
| 8727 | }, |
| 8728 | .write = write_jedec_1, |
| 8729 | .read = read_memmapped, |
| 8730 | .voltage = {2700, 3600}, |
| 8731 | }, |
| 8732 | |
| 8733 | { |
| 8734 | .vendor = "Macronix", |
| 8735 | .name = "MX29GL640EB", |
| 8736 | .bustype = BUS_PARALLEL, |
| 8737 | .manufacture_id = MACRONIX_ID, |
| 8738 | .model_id = MACRONIX_MX29GL640EB, |
| 8739 | .total_size = 8192, |
| 8740 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8741 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8742 | .tested = TEST_UNTESTED, |
| 8743 | .probe = probe_jedec_29gl, |
| 8744 | .probe_timing = TIMING_ZERO, |
| 8745 | .block_erasers = |
| 8746 | { |
| 8747 | { |
| 8748 | .eraseblocks = { |
| 8749 | {8 * 1024, 8}, |
| 8750 | {64 * 1024, 127}, |
| 8751 | }, |
| 8752 | .block_erase = erase_sector_jedec, |
| 8753 | }, { |
| 8754 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8755 | .block_erase = erase_chip_block_jedec, |
| 8756 | }, |
| 8757 | }, |
| 8758 | .write = write_jedec_1, |
| 8759 | .read = read_memmapped, |
| 8760 | .voltage = {2700, 3600}, |
| 8761 | }, |
| 8762 | |
| 8763 | { |
| 8764 | .vendor = "Macronix", |
| 8765 | .name = "MX29GL640ET", |
| 8766 | .bustype = BUS_PARALLEL, |
| 8767 | .manufacture_id = MACRONIX_ID, |
| 8768 | .model_id = MACRONIX_MX29GL640ET, |
| 8769 | .total_size = 8192, |
| 8770 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8771 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8772 | .tested = TEST_UNTESTED, |
| 8773 | .probe = probe_jedec_29gl, |
| 8774 | .probe_timing = TIMING_ZERO, |
| 8775 | .block_erasers = |
| 8776 | { |
| 8777 | { |
| 8778 | .eraseblocks = { |
| 8779 | {64 * 1024, 127}, |
| 8780 | {8 * 1024, 8}, |
| 8781 | }, |
| 8782 | .block_erase = erase_sector_jedec, |
| 8783 | }, { |
| 8784 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8785 | .block_erase = erase_chip_block_jedec, |
| 8786 | }, |
| 8787 | }, |
| 8788 | .write = write_jedec_1, |
| 8789 | .read = read_memmapped, |
| 8790 | .voltage = {2700, 3600}, |
| 8791 | }, |
| 8792 | |
| 8793 | { |
| 8794 | .vendor = "Macronix", |
| 8795 | .name = "MX29GL640EH/L", |
| 8796 | .bustype = BUS_PARALLEL, |
| 8797 | .manufacture_id = MACRONIX_ID, |
| 8798 | .model_id = MACRONIX_MX29GL640EHL, |
| 8799 | .total_size = 8192, |
| 8800 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8801 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8802 | .tested = TEST_UNTESTED, |
| 8803 | .probe = probe_jedec_29gl, |
| 8804 | .probe_timing = TIMING_ZERO, |
| 8805 | .block_erasers = |
| 8806 | { |
| 8807 | { |
| 8808 | .eraseblocks = { {64 * 1024, 128} }, |
| 8809 | .block_erase = erase_sector_jedec, |
| 8810 | }, { |
| 8811 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8812 | .block_erase = erase_chip_block_jedec, |
| 8813 | }, |
| 8814 | }, |
| 8815 | .write = write_jedec_1, |
| 8816 | .read = read_memmapped, |
| 8817 | .voltage = {2700, 3600}, |
| 8818 | }, |
| 8819 | |
| 8820 | { |
| 8821 | .vendor = "Macronix", |
| 8822 | .name = "MX29GL128F", |
| 8823 | .bustype = BUS_PARALLEL, |
| 8824 | .manufacture_id = MACRONIX_ID, |
| 8825 | .model_id = MACRONIX_MX29GL128F, |
| 8826 | .total_size = 16384, |
| 8827 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8828 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8829 | .tested = TEST_UNTESTED, |
| 8830 | .probe = probe_jedec_29gl, |
| 8831 | .probe_timing = TIMING_ZERO, |
| 8832 | .block_erasers = |
| 8833 | { |
| 8834 | { |
| 8835 | .eraseblocks = { {128 * 1024, 128} }, |
| 8836 | .block_erase = erase_sector_jedec, |
| 8837 | }, { |
| 8838 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8839 | .block_erase = erase_chip_block_jedec, |
| 8840 | }, |
| 8841 | }, |
| 8842 | .write = write_jedec_1, |
| 8843 | .read = read_memmapped, |
| 8844 | .voltage = {2700, 3600}, |
| 8845 | }, |
| 8846 | |
| 8847 | { |
| 8848 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 8849 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8850 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8851 | .manufacture_id = MACRONIX_ID, |
| 8852 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8853 | .total_size = 512, |
| 8854 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8855 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8856 | .tested = TEST_UNTESTED, |
| 8857 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8858 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8859 | .block_erasers = |
| 8860 | { |
| 8861 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 8862 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8863 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8864 | }, { |
| 8865 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8866 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8867 | }, |
| 8868 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8869 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8870 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8871 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 8872 | }, |
| 8873 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8874 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8875 | .vendor = "Micron/Numonyx/ST", |
| 8876 | .name = "M25P05-A", |
| 8877 | .bustype = BUS_SPI, |
| 8878 | .manufacture_id = ST_ID, |
| 8879 | .model_id = ST_M25P05A, |
| 8880 | .total_size = 64, |
| 8881 | .page_size = 256, |
| 8882 | .feature_bits = FEATURE_WRSR_WREN, |
| 8883 | .tested = TEST_OK_PREW, |
| 8884 | .probe = probe_spi_rdid, |
| 8885 | .probe_timing = TIMING_ZERO, |
| 8886 | .block_erasers = |
| 8887 | { |
| 8888 | { |
| 8889 | .eraseblocks = { {32 * 1024, 2} }, |
| 8890 | .block_erase = spi_block_erase_d8, |
| 8891 | }, { |
| 8892 | .eraseblocks = { {64 * 1024, 1} }, |
| 8893 | .block_erase = spi_block_erase_c7, |
| 8894 | } |
| 8895 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8896 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8897 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8898 | .write = spi_chip_write_256, |
| 8899 | .read = spi_chip_read, |
| 8900 | .voltage = {2700, 3600}, |
| 8901 | }, |
| 8902 | |
| 8903 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 8904 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 8905 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 8906 | * only is successful if RDID does not work. |
| 8907 | */ |
| 8908 | { |
| 8909 | .vendor = "Micron/Numonyx/ST", |
| 8910 | .name = "M25P05", |
| 8911 | .bustype = BUS_SPI, |
| 8912 | .manufacture_id = 0, /* Not used. */ |
| 8913 | .model_id = ST_M25P05_RES, |
| 8914 | .total_size = 64, |
| 8915 | .page_size = 256, |
| 8916 | .feature_bits = FEATURE_WRSR_WREN, |
| 8917 | .tested = TEST_UNTESTED, |
| 8918 | .probe = probe_spi_res1, |
| 8919 | .probe_timing = TIMING_ZERO, |
| 8920 | .block_erasers = |
| 8921 | { |
| 8922 | { |
| 8923 | .eraseblocks = { {32 * 1024, 2} }, |
| 8924 | .block_erase = spi_block_erase_d8, |
| 8925 | }, { |
| 8926 | .eraseblocks = { {64 * 1024, 1} }, |
| 8927 | .block_erase = spi_block_erase_c7, |
| 8928 | } |
| 8929 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8930 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8931 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8932 | .write = spi_chip_write_1, /* 128 */ |
| 8933 | .read = spi_chip_read, |
| 8934 | .voltage = {2700, 3600}, |
| 8935 | }, |
| 8936 | |
| 8937 | { |
| 8938 | .vendor = "Micron/Numonyx/ST", |
| 8939 | .name = "M25P10-A", |
| 8940 | .bustype = BUS_SPI, |
| 8941 | .manufacture_id = ST_ID, |
| 8942 | .model_id = ST_M25P10A, |
| 8943 | .total_size = 128, |
| 8944 | .page_size = 256, |
| 8945 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8946 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8947 | .probe = probe_spi_rdid, |
| 8948 | .probe_timing = TIMING_ZERO, |
| 8949 | .block_erasers = |
| 8950 | { |
| 8951 | { |
| 8952 | .eraseblocks = { {32 * 1024, 4} }, |
| 8953 | .block_erase = spi_block_erase_d8, |
| 8954 | }, { |
| 8955 | .eraseblocks = { {128 * 1024, 1} }, |
| 8956 | .block_erase = spi_block_erase_c7, |
| 8957 | } |
| 8958 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8959 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8960 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8961 | .write = spi_chip_write_256, |
| 8962 | .read = spi_chip_read, |
| 8963 | .voltage = {2700, 3600}, |
| 8964 | }, |
| 8965 | |
| 8966 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 8967 | { |
| 8968 | .vendor = "Micron/Numonyx/ST", |
| 8969 | .name = "M25P10", |
| 8970 | .bustype = BUS_SPI, |
| 8971 | .manufacture_id = 0, /* Not used. */ |
| 8972 | .model_id = ST_M25P10_RES, |
| 8973 | .total_size = 128, |
| 8974 | .page_size = 256, |
| 8975 | .feature_bits = FEATURE_WRSR_WREN, |
| 8976 | .tested = TEST_UNTESTED, |
| 8977 | .probe = probe_spi_res1, |
| 8978 | .probe_timing = TIMING_ZERO, |
| 8979 | .block_erasers = |
| 8980 | { |
| 8981 | { |
| 8982 | .eraseblocks = { {32 * 1024, 4} }, |
| 8983 | .block_erase = spi_block_erase_d8, |
| 8984 | }, { |
| 8985 | .eraseblocks = { {128 * 1024, 1} }, |
| 8986 | .block_erase = spi_block_erase_c7, |
| 8987 | } |
| 8988 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8989 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8990 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8991 | .write = spi_chip_write_1, /* 128 */ |
| 8992 | .read = spi_chip_read, |
| 8993 | .voltage = {2700, 3600}, |
| 8994 | }, |
| 8995 | |
| 8996 | { |
| 8997 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 8998 | .name = "M25P20", |
| 8999 | .bustype = BUS_SPI, |
| 9000 | .manufacture_id = ST_ID, |
| 9001 | .model_id = ST_M25P20, |
| 9002 | .total_size = 256, |
| 9003 | .page_size = 256, |
| 9004 | .feature_bits = FEATURE_WRSR_WREN, |
| 9005 | .tested = TEST_UNTESTED, |
| 9006 | .probe = probe_spi_rdid, |
| 9007 | .probe_timing = TIMING_ZERO, |
| 9008 | .block_erasers = |
| 9009 | { |
| 9010 | { |
| 9011 | .eraseblocks = { {64 * 1024, 4} }, |
| 9012 | .block_erase = spi_block_erase_d8, |
| 9013 | }, { |
| 9014 | .eraseblocks = { {256 * 1024, 1} }, |
| 9015 | .block_erase = spi_block_erase_c7, |
| 9016 | } |
| 9017 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9018 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9019 | .unlock = spi_disable_blockprotect, |
| 9020 | .write = spi_chip_write_256, |
| 9021 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9022 | .voltage = {2700, 3600}, |
| 9023 | }, |
| 9024 | |
| 9025 | { |
| 9026 | .vendor = "Micron/Numonyx/ST", |
| 9027 | .name = "M25P20-old", |
| 9028 | .bustype = BUS_SPI, |
| 9029 | .manufacture_id = 0, /* Not used. */ |
| 9030 | .model_id = ST_M25P20_RES, |
| 9031 | .total_size = 256, |
| 9032 | .page_size = 256, |
| 9033 | .feature_bits = FEATURE_WRSR_WREN, |
| 9034 | .tested = TEST_OK_PREW, |
| 9035 | .probe = probe_spi_res1, |
| 9036 | .probe_timing = TIMING_ZERO, |
| 9037 | .block_erasers = |
| 9038 | { |
| 9039 | { |
| 9040 | .eraseblocks = { {64 * 1024, 4} }, |
| 9041 | .block_erase = spi_block_erase_d8, |
| 9042 | }, { |
| 9043 | .eraseblocks = { {256 * 1024, 1} }, |
| 9044 | .block_erase = spi_block_erase_c7, |
| 9045 | } |
| 9046 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9047 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9048 | .unlock = spi_disable_blockprotect, |
| 9049 | .write = spi_chip_write_256, |
| 9050 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9051 | .voltage = {2700, 3600}, |
| 9052 | }, |
| 9053 | |
| 9054 | { |
| 9055 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9056 | .name = "M25P40", |
| 9057 | .bustype = BUS_SPI, |
| 9058 | .manufacture_id = ST_ID, |
| 9059 | .model_id = ST_M25P40, |
| 9060 | .total_size = 512, |
| 9061 | .page_size = 256, |
| 9062 | .feature_bits = FEATURE_WRSR_WREN, |
| 9063 | .tested = TEST_OK_PREW, |
| 9064 | .probe = probe_spi_rdid, |
| 9065 | .probe_timing = TIMING_ZERO, |
| 9066 | .block_erasers = |
| 9067 | { |
| 9068 | { |
| 9069 | .eraseblocks = { {64 * 1024, 8} }, |
| 9070 | .block_erase = spi_block_erase_d8, |
| 9071 | }, { |
| 9072 | .eraseblocks = { {512 * 1024, 1} }, |
| 9073 | .block_erase = spi_block_erase_c7, |
| 9074 | } |
| 9075 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9076 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9077 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9078 | .write = spi_chip_write_256, |
| 9079 | .read = spi_chip_read, |
| 9080 | .voltage = {2700, 3600}, |
| 9081 | }, |
| 9082 | |
| 9083 | { |
| 9084 | .vendor = "Micron/Numonyx/ST", |
| 9085 | .name = "M25P40-old", |
| 9086 | .bustype = BUS_SPI, |
| 9087 | .manufacture_id = 0, /* Not used. */ |
| 9088 | .model_id = ST_M25P40_RES, |
| 9089 | .total_size = 512, |
| 9090 | .page_size = 256, |
| 9091 | .feature_bits = FEATURE_WRSR_WREN, |
| 9092 | .tested = TEST_UNTESTED, |
| 9093 | .probe = probe_spi_res1, |
| 9094 | .probe_timing = TIMING_ZERO, |
| 9095 | .block_erasers = |
| 9096 | { |
| 9097 | { |
| 9098 | .eraseblocks = { {64 * 1024, 8} }, |
| 9099 | .block_erase = spi_block_erase_d8, |
| 9100 | }, { |
| 9101 | .eraseblocks = { {512 * 1024, 1} }, |
| 9102 | .block_erase = spi_block_erase_c7, |
| 9103 | } |
| 9104 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9105 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9106 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9107 | .write = spi_chip_write_256, |
| 9108 | .read = spi_chip_read, |
| 9109 | }, |
| 9110 | |
| 9111 | { |
| 9112 | .vendor = "Micron/Numonyx/ST", |
| 9113 | .name = "M25P80", |
| 9114 | .bustype = BUS_SPI, |
| 9115 | .manufacture_id = ST_ID, |
| 9116 | .model_id = ST_M25P80, |
| 9117 | .total_size = 1024, |
| 9118 | .page_size = 256, |
| 9119 | .feature_bits = FEATURE_WRSR_WREN, |
| 9120 | .tested = TEST_OK_PREW, |
| 9121 | .probe = probe_spi_rdid, |
| 9122 | .probe_timing = TIMING_ZERO, |
| 9123 | .block_erasers = |
| 9124 | { |
| 9125 | { |
| 9126 | .eraseblocks = { {64 * 1024, 16} }, |
| 9127 | .block_erase = spi_block_erase_d8, |
| 9128 | }, { |
| 9129 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9130 | .block_erase = spi_block_erase_c7, |
| 9131 | } |
| 9132 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9133 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9134 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9135 | .write = spi_chip_write_256, |
| 9136 | .read = spi_chip_read, |
| 9137 | .voltage = {2700, 3600}, |
| 9138 | }, |
| 9139 | |
| 9140 | { |
| 9141 | .vendor = "Micron/Numonyx/ST", |
| 9142 | .name = "M25P16", |
| 9143 | .bustype = BUS_SPI, |
| 9144 | .manufacture_id = ST_ID, |
| 9145 | .model_id = ST_M25P16, |
| 9146 | .total_size = 2048, |
| 9147 | .page_size = 256, |
| 9148 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9149 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9150 | .probe = probe_spi_rdid, |
| 9151 | .probe_timing = TIMING_ZERO, |
| 9152 | .block_erasers = |
| 9153 | { |
| 9154 | { |
| 9155 | .eraseblocks = { {64 * 1024, 32} }, |
| 9156 | .block_erase = spi_block_erase_d8, |
| 9157 | }, { |
| 9158 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9159 | .block_erase = spi_block_erase_c7, |
| 9160 | } |
| 9161 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9162 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9163 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9164 | .write = spi_chip_write_256, |
| 9165 | .read = spi_chip_read, |
| 9166 | .voltage = {2700, 3600}, |
| 9167 | }, |
| 9168 | |
| 9169 | { |
| 9170 | .vendor = "Micron/Numonyx/ST", |
| 9171 | .name = "M25P32", |
| 9172 | .bustype = BUS_SPI, |
| 9173 | .manufacture_id = ST_ID, |
| 9174 | .model_id = ST_M25P32, |
| 9175 | .total_size = 4096, |
| 9176 | .page_size = 256, |
| 9177 | .feature_bits = FEATURE_WRSR_WREN, |
| 9178 | .tested = TEST_OK_PREW, |
| 9179 | .probe = probe_spi_rdid, |
| 9180 | .probe_timing = TIMING_ZERO, |
| 9181 | .block_erasers = |
| 9182 | { |
| 9183 | { |
| 9184 | .eraseblocks = { {64 * 1024, 64} }, |
| 9185 | .block_erase = spi_block_erase_d8, |
| 9186 | }, { |
| 9187 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9188 | .block_erase = spi_block_erase_c7, |
| 9189 | } |
| 9190 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9191 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9192 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9193 | .write = spi_chip_write_256, |
| 9194 | .read = spi_chip_read, |
| 9195 | .voltage = {2700, 3600}, |
| 9196 | }, |
| 9197 | |
| 9198 | { |
| 9199 | .vendor = "Micron/Numonyx/ST", |
| 9200 | .name = "M25P64", |
| 9201 | .bustype = BUS_SPI, |
| 9202 | .manufacture_id = ST_ID, |
| 9203 | .model_id = ST_M25P64, |
| 9204 | .total_size = 8192, |
| 9205 | .page_size = 256, |
| 9206 | .feature_bits = FEATURE_WRSR_WREN, |
| 9207 | .tested = TEST_OK_PREW, |
| 9208 | .probe = probe_spi_rdid, |
| 9209 | .probe_timing = TIMING_ZERO, |
| 9210 | .block_erasers = |
| 9211 | { |
| 9212 | { |
| 9213 | .eraseblocks = { {64 * 1024, 128} }, |
| 9214 | .block_erase = spi_block_erase_d8, |
| 9215 | }, { |
| 9216 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9217 | .block_erase = spi_block_erase_c7, |
| 9218 | } |
| 9219 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9220 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9221 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9222 | .write = spi_chip_write_256, |
| 9223 | .read = spi_chip_read, |
| 9224 | .voltage = {2700, 3600}, |
| 9225 | }, |
| 9226 | |
| 9227 | { |
| 9228 | .vendor = "Micron/Numonyx/ST", |
| 9229 | .name = "M25P128", |
| 9230 | .bustype = BUS_SPI, |
| 9231 | .manufacture_id = ST_ID, |
| 9232 | .model_id = ST_M25P128, |
| 9233 | .total_size = 16384, |
| 9234 | .page_size = 256, |
| 9235 | .feature_bits = FEATURE_WRSR_WREN, |
| 9236 | .tested = TEST_OK_PREW, |
| 9237 | .probe = probe_spi_rdid, |
| 9238 | .probe_timing = TIMING_ZERO, |
| 9239 | .block_erasers = |
| 9240 | { |
| 9241 | { |
| 9242 | .eraseblocks = { {256 * 1024, 64} }, |
| 9243 | .block_erase = spi_block_erase_d8, |
| 9244 | }, { |
| 9245 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9246 | .block_erase = spi_block_erase_c7, |
| 9247 | } |
| 9248 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9249 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9250 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9251 | .write = spi_chip_write_256, |
| 9252 | .read = spi_chip_read, |
| 9253 | .voltage = {2700, 3600}, |
| 9254 | }, |
| 9255 | |
| 9256 | { |
| 9257 | .vendor = "Micron/Numonyx/ST", |
| 9258 | .name = "M25PE10", |
| 9259 | .bustype = BUS_SPI, |
| 9260 | .manufacture_id = ST_ID, |
| 9261 | .model_id = ST_M25PE10, |
| 9262 | .total_size = 128, |
| 9263 | .page_size = 256, |
| 9264 | .feature_bits = FEATURE_WRSR_WREN, |
| 9265 | .tested = TEST_UNTESTED, |
| 9266 | .probe = probe_spi_rdid, |
| 9267 | .probe_timing = TIMING_ZERO, |
| 9268 | .block_erasers = |
| 9269 | { |
| 9270 | { |
| 9271 | .eraseblocks = { {4 * 1024, 32} }, |
| 9272 | .block_erase = spi_block_erase_20, |
| 9273 | }, { |
| 9274 | .eraseblocks = { {64 * 1024, 2} }, |
| 9275 | .block_erase = spi_block_erase_d8, |
| 9276 | }, { |
| 9277 | .eraseblocks = { {128 * 1024, 1} }, |
| 9278 | .block_erase = spi_block_erase_c7, |
| 9279 | } |
| 9280 | }, |
| 9281 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9282 | .unlock = spi_disable_blockprotect, |
| 9283 | .write = spi_chip_write_256, |
| 9284 | .read = spi_chip_read, |
| 9285 | .voltage = {2700, 3600}, |
| 9286 | }, |
| 9287 | |
| 9288 | { |
| 9289 | .vendor = "Micron/Numonyx/ST", |
| 9290 | .name = "M25PE20", |
| 9291 | .bustype = BUS_SPI, |
| 9292 | .manufacture_id = ST_ID, |
| 9293 | .model_id = ST_M25PE20, |
| 9294 | .total_size = 256, |
| 9295 | .page_size = 256, |
| 9296 | .feature_bits = FEATURE_WRSR_WREN, |
| 9297 | .tested = TEST_UNTESTED, |
| 9298 | .probe = probe_spi_rdid, |
| 9299 | .probe_timing = TIMING_ZERO, |
| 9300 | .block_erasers = |
| 9301 | { |
| 9302 | { |
| 9303 | .eraseblocks = { {4 * 1024, 64} }, |
| 9304 | .block_erase = spi_block_erase_20, |
| 9305 | }, { |
| 9306 | .eraseblocks = { {64 * 1024, 4} }, |
| 9307 | .block_erase = spi_block_erase_d8, |
| 9308 | }, { |
| 9309 | .eraseblocks = { {256 * 1024, 1} }, |
| 9310 | .block_erase = spi_block_erase_c7, |
| 9311 | } |
| 9312 | }, |
| 9313 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9314 | .unlock = spi_disable_blockprotect, |
| 9315 | .write = spi_chip_write_256, |
| 9316 | .read = spi_chip_read, |
| 9317 | .voltage = {2700, 3600}, |
| 9318 | }, |
| 9319 | |
| 9320 | { |
| 9321 | .vendor = "Micron/Numonyx/ST", |
| 9322 | .name = "M25PE40", |
| 9323 | .bustype = BUS_SPI, |
| 9324 | .manufacture_id = ST_ID, |
| 9325 | .model_id = ST_M25PE40, |
| 9326 | .total_size = 512, |
| 9327 | .page_size = 256, |
| 9328 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9329 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9330 | .probe = probe_spi_rdid, |
| 9331 | .probe_timing = TIMING_ZERO, |
| 9332 | .block_erasers = |
| 9333 | { |
| 9334 | { |
| 9335 | .eraseblocks = { {4 * 1024, 128} }, |
| 9336 | .block_erase = spi_block_erase_20, |
| 9337 | }, { |
| 9338 | .eraseblocks = { {64 * 1024, 8} }, |
| 9339 | .block_erase = spi_block_erase_d8, |
| 9340 | }, { |
| 9341 | .eraseblocks = { {512 * 1024, 1} }, |
| 9342 | .block_erase = spi_block_erase_c7, |
| 9343 | } |
| 9344 | }, |
| 9345 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9346 | .unlock = spi_disable_blockprotect, |
| 9347 | .write = spi_chip_write_256, |
| 9348 | .read = spi_chip_read, |
| 9349 | .voltage = {2700, 3600}, |
| 9350 | }, |
| 9351 | |
| 9352 | { |
| 9353 | .vendor = "Micron/Numonyx/ST", |
| 9354 | .name = "M25PE80", |
| 9355 | .bustype = BUS_SPI, |
| 9356 | .manufacture_id = ST_ID, |
| 9357 | .model_id = ST_M25PE80, |
| 9358 | .total_size = 1024, |
| 9359 | .page_size = 256, |
| 9360 | .feature_bits = FEATURE_WRSR_WREN, |
| 9361 | .tested = TEST_OK_PREW, |
| 9362 | .probe = probe_spi_rdid, |
| 9363 | .probe_timing = TIMING_ZERO, |
| 9364 | .block_erasers = |
| 9365 | { |
| 9366 | { |
| 9367 | .eraseblocks = { {4 * 1024, 256} }, |
| 9368 | .block_erase = spi_block_erase_20, |
| 9369 | }, { |
| 9370 | .eraseblocks = { {64 * 1024, 16} }, |
| 9371 | .block_erase = spi_block_erase_d8, |
| 9372 | }, { |
| 9373 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9374 | .block_erase = spi_block_erase_c7, |
| 9375 | } |
| 9376 | }, |
| 9377 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9378 | .unlock = spi_disable_blockprotect, |
| 9379 | .write = spi_chip_write_256, |
| 9380 | .read = spi_chip_read, |
| 9381 | .voltage = {2700, 3600}, |
| 9382 | }, |
| 9383 | |
| 9384 | { |
| 9385 | .vendor = "Micron/Numonyx/ST", |
| 9386 | .name = "M25PE16", |
| 9387 | .bustype = BUS_SPI, |
| 9388 | .manufacture_id = ST_ID, |
| 9389 | .model_id = ST_M25PE16, |
| 9390 | .total_size = 2048, |
| 9391 | .page_size = 256, |
| 9392 | .feature_bits = FEATURE_WRSR_WREN, |
| 9393 | .tested = TEST_UNTESTED, |
| 9394 | .probe = probe_spi_rdid, |
| 9395 | .probe_timing = TIMING_ZERO, |
| 9396 | .block_erasers = |
| 9397 | { |
| 9398 | { |
| 9399 | .eraseblocks = { {4 * 1024, 512} }, |
| 9400 | .block_erase = spi_block_erase_20, |
| 9401 | }, { |
| 9402 | .eraseblocks = { {64 * 1024, 32} }, |
| 9403 | .block_erase = spi_block_erase_d8, |
| 9404 | }, { |
| 9405 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9406 | .block_erase = spi_block_erase_c7, |
| 9407 | } |
| 9408 | }, |
| 9409 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9410 | .unlock = spi_disable_blockprotect, |
| 9411 | .write = spi_chip_write_256, |
| 9412 | .read = spi_chip_read, |
| 9413 | .voltage = {2700, 3600}, |
| 9414 | }, |
| 9415 | |
| 9416 | { |
| 9417 | .vendor = "Micron/Numonyx/ST", |
| 9418 | .name = "M25PX80", |
| 9419 | .bustype = BUS_SPI, |
| 9420 | .manufacture_id = ST_ID, |
| 9421 | .model_id = ST_M25PX80, |
| 9422 | .total_size = 1024, |
| 9423 | .page_size = 256, |
| 9424 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9425 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9426 | .tested = TEST_OK_PREW, |
| 9427 | .probe = probe_spi_rdid, |
| 9428 | .probe_timing = TIMING_ZERO, |
| 9429 | .block_erasers = { |
| 9430 | { |
| 9431 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 9432 | .block_erase = spi_block_erase_20, |
| 9433 | }, { |
| 9434 | .eraseblocks = { {64 * 1024, 16} }, |
| 9435 | .block_erase = spi_block_erase_d8, |
| 9436 | }, { |
| 9437 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9438 | .block_erase = spi_block_erase_c7, |
| 9439 | } |
| 9440 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9441 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9442 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9443 | .write = spi_chip_write_256, |
| 9444 | .read = spi_chip_read, |
| 9445 | .voltage = {2700, 3600}, |
| 9446 | }, |
| 9447 | |
| 9448 | { |
| 9449 | .vendor = "Micron/Numonyx/ST", |
| 9450 | .name = "M25PX16", |
| 9451 | .bustype = BUS_SPI, |
| 9452 | .manufacture_id = ST_ID, |
| 9453 | .model_id = ST_M25PX16, |
| 9454 | .total_size = 2048, |
| 9455 | .page_size = 256, |
| 9456 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9457 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9458 | .tested = TEST_OK_PREW, |
| 9459 | .probe = probe_spi_rdid, |
| 9460 | .probe_timing = TIMING_ZERO, |
| 9461 | .block_erasers = |
| 9462 | { |
| 9463 | { |
| 9464 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 9465 | .block_erase = spi_block_erase_20, |
| 9466 | }, { |
| 9467 | .eraseblocks = { {64 * 1024, 32} }, |
| 9468 | .block_erase = spi_block_erase_d8, |
| 9469 | }, { |
| 9470 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9471 | .block_erase = spi_block_erase_c7, |
| 9472 | } |
| 9473 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9474 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9475 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9476 | .write = spi_chip_write_256, |
| 9477 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9478 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9479 | }, |
| 9480 | |
| 9481 | { |
| 9482 | .vendor = "Micron/Numonyx/ST", |
| 9483 | .name = "M25PX32", |
| 9484 | .bustype = BUS_SPI, |
| 9485 | .manufacture_id = ST_ID, |
| 9486 | .model_id = ST_M25PX32, |
| 9487 | .total_size = 4096, |
| 9488 | .page_size = 256, |
| 9489 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9490 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9491 | .tested = TEST_OK_PRE, |
| 9492 | .probe = probe_spi_rdid, |
| 9493 | .probe_timing = TIMING_ZERO, |
| 9494 | .block_erasers = |
| 9495 | { |
| 9496 | { |
| 9497 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 9498 | .block_erase = spi_block_erase_20, |
| 9499 | }, { |
| 9500 | .eraseblocks = { {64 * 1024, 64} }, |
| 9501 | .block_erase = spi_block_erase_d8, |
| 9502 | }, { |
| 9503 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9504 | .block_erase = spi_block_erase_c7, |
| 9505 | } |
| 9506 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9507 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9508 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9509 | .write = spi_chip_write_256, |
| 9510 | .read = spi_chip_read, |
| 9511 | .voltage = {2700, 3600}, |
| 9512 | }, |
| 9513 | |
| 9514 | { |
| 9515 | .vendor = "Micron/Numonyx/ST", |
| 9516 | .name = "M25PX64", |
| 9517 | .bustype = BUS_SPI, |
| 9518 | .manufacture_id = ST_ID, |
| 9519 | .model_id = ST_M25PX64, |
| 9520 | .total_size = 8192, |
| 9521 | .page_size = 256, |
| 9522 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9523 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9524 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9525 | .probe = probe_spi_rdid, |
| 9526 | .probe_timing = TIMING_ZERO, |
| 9527 | .block_erasers = |
| 9528 | { |
| 9529 | { |
| 9530 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 9531 | .block_erase = spi_block_erase_20, |
| 9532 | }, { |
| 9533 | .eraseblocks = { {64 * 1024, 128} }, |
| 9534 | .block_erase = spi_block_erase_d8, |
| 9535 | }, { |
| 9536 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9537 | .block_erase = spi_block_erase_c7, |
| 9538 | } |
| 9539 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9540 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9541 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9542 | .write = spi_chip_write_256, |
| 9543 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9544 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9545 | }, |
| 9546 | |
| 9547 | { |
| 9548 | .vendor = "Micron/Numonyx/ST", |
| 9549 | .name = "M45PE10", |
| 9550 | .bustype = BUS_SPI, |
| 9551 | .manufacture_id = ST_ID, |
| 9552 | .model_id = ST_M45PE10, |
| 9553 | .total_size = 128, |
| 9554 | .page_size = 256, |
| 9555 | .tested = TEST_UNTESTED, |
| 9556 | .probe = probe_spi_rdid, |
| 9557 | .probe_timing = TIMING_ZERO, |
| 9558 | .block_erasers = { |
| 9559 | { |
| 9560 | .eraseblocks = { {256, 512} }, |
| 9561 | .block_erase = spi_block_erase_db, |
| 9562 | }, { |
| 9563 | .eraseblocks = { {64 * 1024, 2} }, |
| 9564 | .block_erase = spi_block_erase_d8, |
| 9565 | } |
| 9566 | }, |
| 9567 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9568 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9569 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9570 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9571 | .voltage = {2700, 3600}, |
| 9572 | }, |
| 9573 | |
| 9574 | { |
| 9575 | .vendor = "Micron/Numonyx/ST", |
| 9576 | .name = "M45PE20", |
| 9577 | .bustype = BUS_SPI, |
| 9578 | .manufacture_id = ST_ID, |
| 9579 | .model_id = ST_M45PE20, |
| 9580 | .total_size = 256, |
| 9581 | .page_size = 256, |
| 9582 | .tested = TEST_UNTESTED, |
| 9583 | .probe = probe_spi_rdid, |
| 9584 | .probe_timing = TIMING_ZERO, |
| 9585 | .block_erasers = { |
| 9586 | { |
| 9587 | .eraseblocks = { {256, 1024} }, |
| 9588 | .block_erase = spi_block_erase_db, |
| 9589 | }, { |
| 9590 | .eraseblocks = { {64 * 1024, 4} }, |
| 9591 | .block_erase = spi_block_erase_d8, |
| 9592 | } |
| 9593 | }, |
| 9594 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9595 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9596 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9597 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9598 | .voltage = {2700, 3600}, |
| 9599 | }, |
| 9600 | |
| 9601 | { |
| 9602 | .vendor = "Micron/Numonyx/ST", |
| 9603 | .name = "M45PE40", |
| 9604 | .bustype = BUS_SPI, |
| 9605 | .manufacture_id = ST_ID, |
| 9606 | .model_id = ST_M45PE40, |
| 9607 | .total_size = 512, |
| 9608 | .page_size = 256, |
| 9609 | .tested = TEST_UNTESTED, |
| 9610 | .probe = probe_spi_rdid, |
| 9611 | .probe_timing = TIMING_ZERO, |
| 9612 | .block_erasers = { |
| 9613 | { |
| 9614 | .eraseblocks = { {256, 2048} }, |
| 9615 | .block_erase = spi_block_erase_db, |
| 9616 | }, { |
| 9617 | .eraseblocks = { {64 * 1024, 8} }, |
| 9618 | .block_erase = spi_block_erase_d8, |
| 9619 | } |
| 9620 | }, |
| 9621 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9622 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9623 | .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9624 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9625 | .voltage = {2700, 3600}, |
| 9626 | }, |
| 9627 | |
| 9628 | { |
| 9629 | .vendor = "Micron/Numonyx/ST", |
| 9630 | .name = "M45PE80", |
| 9631 | .bustype = BUS_SPI, |
| 9632 | .manufacture_id = ST_ID, |
| 9633 | .model_id = ST_M45PE80, |
| 9634 | .total_size = 1024, |
| 9635 | .page_size = 256, |
| 9636 | .tested = TEST_UNTESTED, |
| 9637 | .probe = probe_spi_rdid, |
| 9638 | .probe_timing = TIMING_ZERO, |
| 9639 | .block_erasers = { |
| 9640 | { |
| 9641 | .eraseblocks = { {256, 4096} }, |
| 9642 | .block_erase = spi_block_erase_db, |
| 9643 | }, { |
| 9644 | .eraseblocks = { {64 * 1024, 16} }, |
| 9645 | .block_erase = spi_block_erase_d8, |
| 9646 | } |
| 9647 | }, |
| 9648 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9649 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9650 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9651 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9652 | .voltage = {2700, 3600}, |
| 9653 | }, |
| 9654 | |
| 9655 | { |
| 9656 | .vendor = "Micron/Numonyx/ST", |
| 9657 | .name = "M45PE16", |
| 9658 | .bustype = BUS_SPI, |
| 9659 | .manufacture_id = ST_ID, |
| 9660 | .model_id = ST_M45PE16, |
| 9661 | .total_size = 2048, |
| 9662 | .page_size = 256, |
| 9663 | .tested = TEST_UNTESTED, |
| 9664 | .probe = probe_spi_rdid, |
| 9665 | .probe_timing = TIMING_ZERO, |
| 9666 | .block_erasers = { |
| 9667 | { |
| 9668 | .eraseblocks = { {256, 8192} }, |
| 9669 | .block_erase = spi_block_erase_db, |
| 9670 | }, { |
| 9671 | .eraseblocks = { {64 * 1024, 32} }, |
| 9672 | .block_erase = spi_block_erase_d8, |
| 9673 | } |
| 9674 | }, |
| 9675 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9676 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9677 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9678 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9679 | .voltage = {2700, 3600}, |
| 9680 | }, |
| 9681 | |
| 9682 | { |
| 9683 | .vendor = "Micron/Numonyx/ST", |
| 9684 | .name = "N25Q016", |
| 9685 | .bustype = BUS_SPI, |
| 9686 | .manufacture_id = ST_ID, |
| 9687 | .model_id = ST_N25Q016__1E, |
| 9688 | .total_size = 2048, |
| 9689 | .page_size = 256, |
| 9690 | /* supports SFDP */ |
| 9691 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9692 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9693 | .tested = TEST_UNTESTED, |
| 9694 | .probe = probe_spi_rdid, |
| 9695 | .probe_timing = TIMING_ZERO, |
| 9696 | .block_erasers = |
| 9697 | { |
| 9698 | { |
| 9699 | .eraseblocks = { {4 * 1024, 512} }, |
| 9700 | .block_erase = spi_block_erase_20, |
| 9701 | }, { |
| 9702 | .eraseblocks = { {32 * 1024, 64} }, |
| 9703 | .block_erase = spi_block_erase_52, |
| 9704 | }, { |
| 9705 | .eraseblocks = { {64 * 1024, 32} }, |
| 9706 | .block_erase = spi_block_erase_d8, |
| 9707 | }, { |
| 9708 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9709 | .block_erase = spi_block_erase_c7, |
| 9710 | } |
| 9711 | }, |
| 9712 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9713 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9714 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9715 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9716 | .voltage = {1700, 2000}, |
| 9717 | }, |
| 9718 | |
| 9719 | { |
| 9720 | .vendor = "Micron/Numonyx/ST", |
| 9721 | .name = "N25Q032..1E", |
| 9722 | .bustype = BUS_SPI, |
| 9723 | .manufacture_id = ST_ID, |
| 9724 | .model_id = ST_N25Q032__1E, |
| 9725 | .total_size = 4096, |
| 9726 | .page_size = 256, |
| 9727 | /* supports SFDP */ |
| 9728 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9729 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9730 | .tested = TEST_UNTESTED, |
| 9731 | .probe = probe_spi_rdid, |
| 9732 | .probe_timing = TIMING_ZERO, |
| 9733 | .block_erasers = |
| 9734 | { |
| 9735 | { |
| 9736 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9737 | .block_erase = spi_block_erase_20, |
| 9738 | }, { |
| 9739 | .eraseblocks = { {64 * 1024, 64} }, |
| 9740 | .block_erase = spi_block_erase_d8, |
| 9741 | }, { |
| 9742 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9743 | .block_erase = spi_block_erase_c7, |
| 9744 | } |
| 9745 | }, |
| 9746 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9747 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9748 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9749 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9750 | .voltage = {1700, 2000}, |
| 9751 | }, |
| 9752 | |
| 9753 | { |
| 9754 | .vendor = "Micron/Numonyx/ST", |
| 9755 | .name = "N25Q032..3E", |
| 9756 | .bustype = BUS_SPI, |
| 9757 | .manufacture_id = ST_ID, |
| 9758 | .model_id = ST_N25Q032__3E, |
| 9759 | .total_size = 4096, |
| 9760 | .page_size = 256, |
| 9761 | /* supports SFDP */ |
| 9762 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9763 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9764 | .tested = TEST_OK_PREW, |
| 9765 | .probe = probe_spi_rdid, |
| 9766 | .probe_timing = TIMING_ZERO, |
| 9767 | .block_erasers = |
| 9768 | { |
| 9769 | { |
| 9770 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9771 | .block_erase = spi_block_erase_20, |
| 9772 | }, { |
| 9773 | .eraseblocks = { {64 * 1024, 64} }, |
| 9774 | .block_erase = spi_block_erase_d8, |
| 9775 | }, { |
| 9776 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9777 | .block_erase = spi_block_erase_c7, |
| 9778 | } |
| 9779 | }, |
| 9780 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9781 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9782 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9783 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9784 | .voltage = {2700, 3600}, |
| 9785 | }, |
| 9786 | |
| 9787 | { |
| 9788 | .vendor = "Micron/Numonyx/ST", |
| 9789 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 9790 | .bustype = BUS_SPI, |
| 9791 | .manufacture_id = ST_ID, |
| 9792 | .model_id = ST_N25Q064__1E, |
| 9793 | .total_size = 8192, |
| 9794 | .page_size = 256, |
| 9795 | /* supports SFDP */ |
| 9796 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9797 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9798 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9799 | .probe = probe_spi_rdid, |
| 9800 | .probe_timing = TIMING_ZERO, |
| 9801 | .block_erasers = |
| 9802 | { |
| 9803 | { |
| 9804 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 9805 | .block_erase = spi_block_erase_20, |
| 9806 | }, { |
| 9807 | .eraseblocks = { {64 * 1024, 128} }, |
| 9808 | .block_erase = spi_block_erase_d8, |
| 9809 | }, { |
| 9810 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9811 | .block_erase = spi_block_erase_c7, |
| 9812 | } |
| 9813 | }, |
| 9814 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9815 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9816 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9817 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9818 | .voltage = {1700, 2000}, |
| 9819 | }, |
| 9820 | |
| 9821 | { |
| 9822 | .vendor = "Micron/Numonyx/ST", |
| 9823 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9824 | .bustype = BUS_SPI, |
| 9825 | .manufacture_id = ST_ID, |
| 9826 | .model_id = ST_N25Q064__3E, |
| 9827 | .total_size = 8192, |
| 9828 | .page_size = 256, |
| 9829 | /* supports SFDP */ |
| 9830 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9831 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9832 | .tested = TEST_OK_PREW, |
| 9833 | .probe = probe_spi_rdid, |
| 9834 | .probe_timing = TIMING_ZERO, |
| 9835 | .block_erasers = |
| 9836 | { |
| 9837 | { |
| 9838 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 9839 | .block_erase = spi_block_erase_20, |
| 9840 | }, { |
| 9841 | .eraseblocks = { {64 * 1024, 128} }, |
| 9842 | .block_erase = spi_block_erase_d8, |
| 9843 | }, { |
| 9844 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9845 | .block_erase = spi_block_erase_c7, |
| 9846 | } |
| 9847 | }, |
| 9848 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9849 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9850 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9851 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9852 | .voltage = {2700, 3600}, |
| 9853 | }, |
| 9854 | |
| 9855 | { |
| 9856 | .vendor = "Micron/Numonyx/ST", |
| 9857 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 9858 | .bustype = BUS_SPI, |
| 9859 | .manufacture_id = ST_ID, |
| 9860 | .model_id = ST_N25Q128__1E, |
| 9861 | .total_size = 16384, |
| 9862 | .page_size = 256, |
| 9863 | /* supports SFDP */ |
| 9864 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9865 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9866 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9867 | .probe = probe_spi_rdid, |
| 9868 | .probe_timing = TIMING_ZERO, |
| 9869 | .block_erasers = { |
| 9870 | { |
| 9871 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9872 | .block_erase = spi_block_erase_20, |
| 9873 | }, { |
| 9874 | .eraseblocks = { {64 * 1024, 256} }, |
| 9875 | .block_erase = spi_block_erase_d8, |
| 9876 | }, { |
| 9877 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9878 | .block_erase = spi_block_erase_c7, |
| 9879 | } |
| 9880 | }, |
| 9881 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9882 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9883 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9884 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9885 | .voltage = {1700, 2000}, |
| 9886 | }, |
| 9887 | |
| 9888 | { |
| 9889 | .vendor = "Micron/Numonyx/ST", |
| 9890 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9891 | .bustype = BUS_SPI, |
| 9892 | .manufacture_id = ST_ID, |
| 9893 | .model_id = ST_N25Q128__3E, |
| 9894 | .total_size = 16384, |
| 9895 | .page_size = 256, |
| 9896 | /* supports SFDP */ |
| 9897 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9898 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9899 | .tested = TEST_OK_PREW, |
| 9900 | .probe = probe_spi_rdid, |
| 9901 | .probe_timing = TIMING_ZERO, |
| 9902 | .block_erasers = { |
| 9903 | { |
| 9904 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9905 | .block_erase = spi_block_erase_20, |
| 9906 | }, { |
| 9907 | .eraseblocks = { {64 * 1024, 256} }, |
| 9908 | .block_erase = spi_block_erase_d8, |
| 9909 | }, { |
| 9910 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9911 | .block_erase = spi_block_erase_c7, |
| 9912 | } |
| 9913 | }, |
| 9914 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9915 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9916 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9917 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9918 | .voltage = {2700, 3600}, |
| 9919 | }, |
| 9920 | |
| 9921 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 9922 | .vendor = "Micron", |
| 9923 | .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9924 | .bustype = BUS_SPI, |
| 9925 | .manufacture_id = ST_ID, |
| 9926 | .model_id = ST_N25Q256__3E, |
| 9927 | .total_size = 32768, |
| 9928 | .page_size = 256, |
| 9929 | /* supports SFDP */ |
| 9930 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9931 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT, |
| 9932 | .four_bytes_addr_funcs = |
| 9933 | { |
| 9934 | .read_nbyte = spi_nbyte_read_4ba_direct, |
| 9935 | .program_byte = spi_byte_program_4ba_direct, |
| 9936 | .program_nbyte = spi_nbyte_program_4ba_direct |
| 9937 | }, |
| 9938 | .tested = TEST_OK_PREW, |
| 9939 | .probe = probe_spi_rdid, |
| 9940 | .probe_timing = TIMING_ZERO, |
| 9941 | .block_erasers = { |
| 9942 | { |
| 9943 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9944 | .block_erase = spi_block_erase_21_4ba_direct, |
| 9945 | }, { |
| 9946 | .eraseblocks = { {64 * 1024, 512} }, |
| 9947 | .block_erase = spi_block_erase_dc_4ba_direct, |
| 9948 | }, { |
| 9949 | .eraseblocks = { {32768 * 1024, 1} }, |
| 9950 | .block_erase = spi_block_erase_c7, |
| 9951 | } |
| 9952 | }, |
| 9953 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9954 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9955 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9956 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9957 | .voltage = {2700, 3600}, |
| 9958 | }, |
| 9959 | |
| 9960 | { |
| 9961 | .vendor = "Micron", |
| 9962 | .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9963 | .bustype = BUS_SPI, |
| 9964 | .manufacture_id = ST_ID, |
| 9965 | .model_id = ST_N25Q512__3E, |
| 9966 | .total_size = 65536, |
| 9967 | .page_size = 256, |
| 9968 | /* supports SFDP */ |
| 9969 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9970 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT, |
| 9971 | .four_bytes_addr_funcs = |
| 9972 | { |
| 9973 | .read_nbyte = spi_nbyte_read_4ba_direct, |
| 9974 | .program_byte = spi_byte_program_4ba_direct, |
| 9975 | .program_nbyte = spi_nbyte_program_4ba_direct |
| 9976 | }, |
| 9977 | .tested = TEST_OK_PREW, |
| 9978 | .probe = probe_spi_rdid, |
| 9979 | .probe_timing = TIMING_ZERO, |
| 9980 | .block_erasers = { |
| 9981 | { |
| 9982 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9983 | .block_erase = spi_block_erase_21_4ba_direct, |
| 9984 | }, { |
| 9985 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9986 | .block_erase = spi_block_erase_dc_4ba_direct, |
| 9987 | }, { |
| 9988 | .eraseblocks = { {65536 * 1024, 1} }, |
| 9989 | .block_erase = spi_block_erase_c7, |
| 9990 | } |
| 9991 | }, |
| 9992 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9993 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9994 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9995 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9996 | .voltage = {2700, 3600}, |
| 9997 | }, |
| 9998 | |
| 9999 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10000 | .vendor = "MoselVitelic", |
| 10001 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10002 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10003 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10004 | .model_id = MVC_V29C51000B, |
| 10005 | .total_size = 64, |
| 10006 | .page_size = 512, |
| 10007 | .feature_bits = FEATURE_EITHER_RESET, |
| 10008 | .tested = TEST_UNTESTED, |
| 10009 | .probe = probe_jedec, |
| 10010 | .probe_timing = TIMING_ZERO, |
| 10011 | .block_erasers = |
| 10012 | { |
| 10013 | { |
| 10014 | .eraseblocks = { {512, 128} }, |
| 10015 | .block_erase = erase_sector_jedec, |
| 10016 | }, { |
| 10017 | .eraseblocks = { {64 * 1024, 1} }, |
| 10018 | .block_erase = erase_chip_block_jedec, |
| 10019 | }, |
| 10020 | }, |
| 10021 | .write = write_jedec_1, |
| 10022 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10023 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10024 | }, |
| 10025 | |
| 10026 | { |
| 10027 | .vendor = "MoselVitelic", |
| 10028 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10029 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10030 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10031 | .model_id = MVC_V29C51000T, |
| 10032 | .total_size = 64, |
| 10033 | .page_size = 512, |
| 10034 | .feature_bits = FEATURE_EITHER_RESET, |
| 10035 | .tested = TEST_UNTESTED, |
| 10036 | .probe = probe_jedec, |
| 10037 | .probe_timing = TIMING_ZERO, |
| 10038 | .block_erasers = |
| 10039 | { |
| 10040 | { |
| 10041 | .eraseblocks = { {512, 128} }, |
| 10042 | .block_erase = erase_sector_jedec, |
| 10043 | }, { |
| 10044 | .eraseblocks = { {64 * 1024, 1} }, |
| 10045 | .block_erase = erase_chip_block_jedec, |
| 10046 | }, |
| 10047 | }, |
| 10048 | .write = write_jedec_1, |
| 10049 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10050 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10051 | }, |
| 10052 | |
| 10053 | { |
| 10054 | .vendor = "MoselVitelic", |
| 10055 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10056 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10057 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10058 | .model_id = MVC_V29C51400B, |
| 10059 | .total_size = 512, |
| 10060 | .page_size = 1024, |
| 10061 | .feature_bits = FEATURE_EITHER_RESET, |
| 10062 | .tested = TEST_UNTESTED, |
| 10063 | .probe = probe_jedec, |
| 10064 | .probe_timing = TIMING_ZERO, |
| 10065 | .block_erasers = |
| 10066 | { |
| 10067 | { |
| 10068 | .eraseblocks = { {1024, 512} }, |
| 10069 | .block_erase = erase_sector_jedec, |
| 10070 | }, { |
| 10071 | .eraseblocks = { {512 * 1024, 1} }, |
| 10072 | .block_erase = erase_chip_block_jedec, |
| 10073 | }, |
| 10074 | }, |
| 10075 | .write = write_jedec_1, |
| 10076 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10077 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10078 | }, |
| 10079 | |
| 10080 | { |
| 10081 | .vendor = "MoselVitelic", |
| 10082 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10083 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10084 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10085 | .model_id = MVC_V29C51400T, |
| 10086 | .total_size = 512, |
| 10087 | .page_size = 1024, |
| 10088 | .feature_bits = FEATURE_EITHER_RESET, |
| 10089 | .tested = TEST_UNTESTED, |
| 10090 | .probe = probe_jedec, |
| 10091 | .probe_timing = TIMING_ZERO, |
| 10092 | .block_erasers = |
| 10093 | { |
| 10094 | { |
| 10095 | .eraseblocks = { {1024, 512} }, |
| 10096 | .block_erase = erase_sector_jedec, |
| 10097 | }, { |
| 10098 | .eraseblocks = { {512 * 1024, 1} }, |
| 10099 | .block_erase = erase_chip_block_jedec, |
| 10100 | }, |
| 10101 | }, |
| 10102 | .write = write_jedec_1, |
| 10103 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10104 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10105 | }, |
| 10106 | |
| 10107 | { |
| 10108 | .vendor = "MoselVitelic", |
| 10109 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10110 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10111 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10112 | .model_id = MVC_V29LC51000, |
| 10113 | .total_size = 64, |
| 10114 | .page_size = 512, |
| 10115 | .feature_bits = FEATURE_EITHER_RESET, |
| 10116 | .tested = TEST_UNTESTED, |
| 10117 | .probe = probe_jedec, |
| 10118 | .probe_timing = TIMING_ZERO, |
| 10119 | .block_erasers = |
| 10120 | { |
| 10121 | { |
| 10122 | .eraseblocks = { {512, 128} }, |
| 10123 | .block_erase = erase_sector_jedec, |
| 10124 | }, { |
| 10125 | .eraseblocks = { {64 * 1024, 1} }, |
| 10126 | .block_erase = erase_chip_block_jedec, |
| 10127 | }, |
| 10128 | }, |
| 10129 | .write = write_jedec_1, |
| 10130 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10131 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10132 | }, |
| 10133 | |
| 10134 | { |
| 10135 | .vendor = "MoselVitelic", |
| 10136 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10137 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10138 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10139 | .model_id = MVC_V29LC51001, |
| 10140 | .total_size = 128, |
| 10141 | .page_size = 512, |
| 10142 | .feature_bits = FEATURE_EITHER_RESET, |
| 10143 | .tested = TEST_UNTESTED, |
| 10144 | .probe = probe_jedec, |
| 10145 | .probe_timing = TIMING_ZERO, |
| 10146 | .block_erasers = |
| 10147 | { |
| 10148 | { |
| 10149 | .eraseblocks = { {512, 256} }, |
| 10150 | .block_erase = erase_sector_jedec, |
| 10151 | }, { |
| 10152 | .eraseblocks = { {128 * 1024, 1} }, |
| 10153 | .block_erase = erase_chip_block_jedec, |
| 10154 | }, |
| 10155 | }, |
| 10156 | .write = write_jedec_1, |
| 10157 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10158 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10159 | }, |
| 10160 | |
| 10161 | { |
| 10162 | .vendor = "MoselVitelic", |
| 10163 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10164 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10165 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10166 | .model_id = MVC_V29LC51002, |
| 10167 | .total_size = 256, |
| 10168 | .page_size = 512, |
| 10169 | .feature_bits = FEATURE_EITHER_RESET, |
| 10170 | .tested = TEST_UNTESTED, |
| 10171 | .probe = probe_jedec, |
| 10172 | .probe_timing = TIMING_ZERO, |
| 10173 | .block_erasers = |
| 10174 | { |
| 10175 | { |
| 10176 | .eraseblocks = { {512, 512} }, |
| 10177 | .block_erase = erase_sector_jedec, |
| 10178 | }, { |
| 10179 | .eraseblocks = { {256 * 1024, 1} }, |
| 10180 | .block_erase = erase_chip_block_jedec, |
| 10181 | }, |
| 10182 | }, |
| 10183 | .write = write_jedec_1, |
| 10184 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10185 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10186 | }, |
| 10187 | |
| 10188 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10189 | .vendor = "Nantronics", |
| 10190 | .name = "N25S10", |
| 10191 | .bustype = BUS_SPI, |
| 10192 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10193 | .model_id = NANTRONICS_N25S10, |
| 10194 | .total_size = 128, |
| 10195 | .page_size = 256, |
| 10196 | .feature_bits = FEATURE_WRSR_WREN, |
| 10197 | .tested = TEST_UNTESTED, |
| 10198 | .probe = probe_spi_rdid, |
| 10199 | .probe_timing = TIMING_ZERO, |
| 10200 | .block_erasers = |
| 10201 | { |
| 10202 | { |
| 10203 | .eraseblocks = { {4 * 1024, 32} }, |
| 10204 | .block_erase = spi_block_erase_20, |
| 10205 | }, { |
| 10206 | .eraseblocks = { {4 * 1024, 32} }, |
| 10207 | .block_erase = spi_block_erase_d7, |
| 10208 | }, { |
| 10209 | .eraseblocks = { {32 * 1024, 4} }, |
| 10210 | .block_erase = spi_block_erase_52, |
| 10211 | }, { |
| 10212 | .eraseblocks = { {64 * 1024, 2} }, |
| 10213 | .block_erase = spi_block_erase_d8, |
| 10214 | }, { |
| 10215 | .eraseblocks = { {128 * 1024, 1} }, |
| 10216 | .block_erase = spi_block_erase_60, |
| 10217 | }, { |
| 10218 | .eraseblocks = { {128 * 1024, 1} }, |
| 10219 | .block_erase = spi_block_erase_c7, |
| 10220 | } |
| 10221 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10222 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10223 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10224 | .write = spi_chip_write_256, |
| 10225 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10226 | .voltage = {2700, 3600}, |
| 10227 | }, |
| 10228 | |
| 10229 | { |
| 10230 | .vendor = "Nantronics", |
| 10231 | .name = "N25S20", |
| 10232 | .bustype = BUS_SPI, |
| 10233 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10234 | .model_id = NANTRONICS_N25S20, |
| 10235 | .total_size = 256, |
| 10236 | .page_size = 256, |
| 10237 | .feature_bits = FEATURE_WRSR_WREN, |
| 10238 | .tested = TEST_UNTESTED, |
| 10239 | .probe = probe_spi_rdid, |
| 10240 | .probe_timing = TIMING_ZERO, |
| 10241 | .block_erasers = |
| 10242 | { |
| 10243 | { |
| 10244 | .eraseblocks = { {4 * 1024, 64} }, |
| 10245 | .block_erase = spi_block_erase_20, |
| 10246 | }, { |
| 10247 | .eraseblocks = { {4 * 1024, 64} }, |
| 10248 | .block_erase = spi_block_erase_d7, |
| 10249 | }, { |
| 10250 | .eraseblocks = { {32 * 1024, 8} }, |
| 10251 | .block_erase = spi_block_erase_52, |
| 10252 | }, { |
| 10253 | .eraseblocks = { {64 * 1024, 4} }, |
| 10254 | .block_erase = spi_block_erase_d8, |
| 10255 | }, { |
| 10256 | .eraseblocks = { {256 * 1024, 1} }, |
| 10257 | .block_erase = spi_block_erase_60, |
| 10258 | }, { |
| 10259 | .eraseblocks = { {256 * 1024, 1} }, |
| 10260 | .block_erase = spi_block_erase_c7, |
| 10261 | } |
| 10262 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10263 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10264 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10265 | .write = spi_chip_write_256, |
| 10266 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10267 | .voltage = {2700, 3600}, |
| 10268 | }, |
| 10269 | |
| 10270 | { |
| 10271 | .vendor = "Nantronics", |
| 10272 | .name = "N25S40", |
| 10273 | .bustype = BUS_SPI, |
| 10274 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10275 | .model_id = NANTRONICS_N25S40, |
| 10276 | .total_size = 512, |
| 10277 | .page_size = 256, |
| 10278 | .feature_bits = FEATURE_WRSR_WREN, |
| 10279 | .tested = TEST_UNTESTED, |
| 10280 | .probe = probe_spi_rdid, |
| 10281 | .probe_timing = TIMING_ZERO, |
| 10282 | .block_erasers = |
| 10283 | { |
| 10284 | { |
| 10285 | .eraseblocks = { {4 * 1024, 128} }, |
| 10286 | .block_erase = spi_block_erase_20, |
| 10287 | }, { |
| 10288 | .eraseblocks = { {4 * 1024, 128} }, |
| 10289 | .block_erase = spi_block_erase_d7, |
| 10290 | }, { |
| 10291 | .eraseblocks = { {32 * 1024, 16} }, |
| 10292 | .block_erase = spi_block_erase_52, |
| 10293 | }, { |
| 10294 | .eraseblocks = { {64 * 1024, 8} }, |
| 10295 | .block_erase = spi_block_erase_d8, |
| 10296 | }, { |
| 10297 | .eraseblocks = { {512 * 1024, 1} }, |
| 10298 | .block_erase = spi_block_erase_60, |
| 10299 | }, { |
| 10300 | .eraseblocks = { {512 * 1024, 1} }, |
| 10301 | .block_erase = spi_block_erase_c7, |
| 10302 | } |
| 10303 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10304 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10305 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10306 | .write = spi_chip_write_256, |
| 10307 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10308 | .voltage = {2700, 3600}, |
| 10309 | }, |
| 10310 | |
| 10311 | { |
| 10312 | .vendor = "Nantronics", |
| 10313 | .name = "N25S80", |
| 10314 | .bustype = BUS_SPI, |
| 10315 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10316 | .model_id = NANTRONICS_N25S80, |
| 10317 | .total_size = 1024, |
| 10318 | .page_size = 256, |
| 10319 | .feature_bits = FEATURE_WRSR_WREN, |
| 10320 | .tested = TEST_UNTESTED, |
| 10321 | .probe = probe_spi_rdid, |
| 10322 | .probe_timing = TIMING_ZERO, |
| 10323 | .block_erasers = |
| 10324 | { |
| 10325 | { |
| 10326 | .eraseblocks = { {4 * 1024, 256} }, |
| 10327 | .block_erase = spi_block_erase_20, |
| 10328 | }, { |
| 10329 | .eraseblocks = { {32 * 1024, 32} }, |
| 10330 | .block_erase = spi_block_erase_52, |
| 10331 | }, { |
| 10332 | .eraseblocks = { {64 * 1024, 16} }, |
| 10333 | .block_erase = spi_block_erase_d8, |
| 10334 | }, { |
| 10335 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10336 | .block_erase = spi_block_erase_60, |
| 10337 | }, { |
| 10338 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10339 | .block_erase = spi_block_erase_c7, |
| 10340 | } |
| 10341 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10342 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10343 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10344 | .write = spi_chip_write_256, |
| 10345 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10346 | .voltage = {2700, 3600}, |
| 10347 | }, |
| 10348 | |
| 10349 | { |
| 10350 | .vendor = "Nantronics", |
| 10351 | .name = "N25S16", |
| 10352 | .bustype = BUS_SPI, |
| 10353 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10354 | .model_id = NANTRONICS_N25S16, |
| 10355 | .total_size = 2048, |
| 10356 | .page_size = 256, |
| 10357 | .feature_bits = FEATURE_WRSR_WREN, |
| 10358 | .tested = TEST_UNTESTED, |
| 10359 | .probe = probe_spi_rdid, |
| 10360 | .probe_timing = TIMING_ZERO, |
| 10361 | .block_erasers = |
| 10362 | { |
| 10363 | { |
| 10364 | .eraseblocks = { {4 * 1024, 512} }, |
| 10365 | .block_erase = spi_block_erase_20, |
| 10366 | }, { |
| 10367 | .eraseblocks = { {64 * 1024, 32} }, |
| 10368 | .block_erase = spi_block_erase_d8, |
| 10369 | }, { |
| 10370 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10371 | .block_erase = spi_block_erase_60, |
| 10372 | }, { |
| 10373 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10374 | .block_erase = spi_block_erase_c7, |
| 10375 | } |
| 10376 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10377 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10378 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10379 | .write = spi_chip_write_256, |
| 10380 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10381 | .voltage = {2700, 3600}, |
| 10382 | }, |
| 10383 | |
| 10384 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10385 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10386 | .name = "Pm25LD256C", |
| 10387 | .bustype = BUS_SPI, |
| 10388 | .manufacture_id = PMC_ID, |
| 10389 | .model_id = PMC_PM25LD256C, |
| 10390 | .total_size = 32, |
| 10391 | .page_size = 256, |
| 10392 | .feature_bits = FEATURE_WRSR_WREN, |
| 10393 | .tested = TEST_UNTESTED, |
| 10394 | .probe = probe_spi_rdid, |
| 10395 | .probe_timing = TIMING_ZERO, |
| 10396 | .block_erasers = |
| 10397 | { |
| 10398 | { |
| 10399 | .eraseblocks = { {4 * 1024, 8} }, |
| 10400 | .block_erase = spi_block_erase_20, |
| 10401 | }, { |
| 10402 | .eraseblocks = { {4 * 1024, 8} }, |
| 10403 | .block_erase = spi_block_erase_d7, |
| 10404 | }, { |
| 10405 | .eraseblocks = { {32 * 1024, 1} }, |
| 10406 | .block_erase = spi_block_erase_d8, |
| 10407 | }, { |
| 10408 | .eraseblocks = { {32 * 1024, 1} }, |
| 10409 | .block_erase = spi_block_erase_60, |
| 10410 | }, { |
| 10411 | .eraseblocks = { {32 * 1024, 1} }, |
| 10412 | .block_erase = spi_block_erase_c7, |
| 10413 | } |
| 10414 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10415 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10416 | .unlock = spi_disable_blockprotect, |
| 10417 | .write = spi_chip_write_256, |
| 10418 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10419 | .voltage = {2700, 3600}, |
| 10420 | }, |
| 10421 | { |
| 10422 | .vendor = "PMC", |
| 10423 | .name = "Pm25LD512(C)", |
| 10424 | .bustype = BUS_SPI, |
| 10425 | .manufacture_id = PMC_ID, |
| 10426 | .model_id = PMC_PM25LD512, |
| 10427 | .total_size = 64, |
| 10428 | .page_size = 256, |
| 10429 | .feature_bits = FEATURE_WRSR_WREN, |
| 10430 | .tested = TEST_OK_PREW, |
| 10431 | .probe = probe_spi_rdid, |
| 10432 | .probe_timing = TIMING_ZERO, |
| 10433 | .block_erasers = |
| 10434 | { |
| 10435 | { |
| 10436 | .eraseblocks = { {4 * 1024, 16} }, |
| 10437 | .block_erase = spi_block_erase_20, |
| 10438 | }, { |
| 10439 | .eraseblocks = { {4 * 1024, 16} }, |
| 10440 | .block_erase = spi_block_erase_d7, |
| 10441 | }, { |
| 10442 | .eraseblocks = { {32 * 1024, 2} }, |
| 10443 | .block_erase = spi_block_erase_d8, |
| 10444 | }, { |
| 10445 | .eraseblocks = { {64 * 1024, 1} }, |
| 10446 | .block_erase = spi_block_erase_60, |
| 10447 | }, { |
| 10448 | .eraseblocks = { {64 * 1024, 1} }, |
| 10449 | .block_erase = spi_block_erase_c7, |
| 10450 | } |
| 10451 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10452 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10453 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10454 | .write = spi_chip_write_256, |
| 10455 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10456 | .voltage = {2300, 3600}, |
| 10457 | }, |
| 10458 | |
| 10459 | { |
| 10460 | .vendor = "PMC", |
| 10461 | .name = "Pm25LD010(C)", |
| 10462 | .bustype = BUS_SPI, |
| 10463 | .manufacture_id = PMC_ID, |
| 10464 | .model_id = PMC_PM25LD010, |
| 10465 | .total_size = 128, |
| 10466 | .page_size = 256, |
| 10467 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10468 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10469 | .probe = probe_spi_rdid, |
| 10470 | .probe_timing = TIMING_ZERO, |
| 10471 | .block_erasers = |
| 10472 | { |
| 10473 | { |
| 10474 | .eraseblocks = { {4 * 1024, 32} }, |
| 10475 | .block_erase = spi_block_erase_20, |
| 10476 | }, { |
| 10477 | .eraseblocks = { {4 * 1024, 32} }, |
| 10478 | .block_erase = spi_block_erase_d7, |
| 10479 | }, { |
| 10480 | .eraseblocks = { {32 * 1024, 4} }, |
| 10481 | .block_erase = spi_block_erase_d8, |
| 10482 | }, { |
| 10483 | .eraseblocks = { {128 * 1024, 1} }, |
| 10484 | .block_erase = spi_block_erase_60, |
| 10485 | }, { |
| 10486 | .eraseblocks = { {128 * 1024, 1} }, |
| 10487 | .block_erase = spi_block_erase_c7, |
| 10488 | } |
| 10489 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10490 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10491 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10492 | .write = spi_chip_write_256, |
| 10493 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10494 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 10495 | }, |
| 10496 | |
| 10497 | { |
| 10498 | .vendor = "PMC", |
| 10499 | .name = "Pm25LD020(C)", |
| 10500 | .bustype = BUS_SPI, |
| 10501 | .manufacture_id = PMC_ID, |
| 10502 | .model_id = PMC_PM25LD020, |
| 10503 | .total_size = 256, |
| 10504 | .page_size = 256, |
| 10505 | .feature_bits = FEATURE_WRSR_WREN, |
| 10506 | .tested = TEST_UNTESTED, |
| 10507 | .probe = probe_spi_rdid, |
| 10508 | .probe_timing = TIMING_ZERO, |
| 10509 | .block_erasers = |
| 10510 | { |
| 10511 | { |
| 10512 | .eraseblocks = { {4 * 1024, 64} }, |
| 10513 | .block_erase = spi_block_erase_20, |
| 10514 | }, { |
| 10515 | .eraseblocks = { {4 * 1024, 64} }, |
| 10516 | .block_erase = spi_block_erase_d7, |
| 10517 | }, { |
| 10518 | .eraseblocks = { {64 * 1024, 4} }, |
| 10519 | .block_erase = spi_block_erase_d8, |
| 10520 | }, { |
| 10521 | .eraseblocks = { {256 * 1024, 1} }, |
| 10522 | .block_erase = spi_block_erase_60, |
| 10523 | }, { |
| 10524 | .eraseblocks = { {256 * 1024, 1} }, |
| 10525 | .block_erase = spi_block_erase_c7, |
| 10526 | } |
| 10527 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10528 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10529 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10530 | .write = spi_chip_write_256, |
| 10531 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10532 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 10533 | }, |
| 10534 | |
| 10535 | { |
| 10536 | .vendor = "PMC", |
| 10537 | .name = "Pm25LD040(C)", |
| 10538 | .bustype = BUS_SPI, |
| 10539 | .manufacture_id = PMC_ID, |
| 10540 | .model_id = PMC_PM25LV040, |
| 10541 | .total_size = 512, |
| 10542 | .page_size = 256, |
| 10543 | .feature_bits = FEATURE_WRSR_WREN, |
| 10544 | .tested = TEST_UNTESTED, |
| 10545 | .probe = probe_spi_rdid, |
| 10546 | .probe_timing = TIMING_ZERO, |
| 10547 | .block_erasers = |
| 10548 | { |
| 10549 | { |
| 10550 | .eraseblocks = { {4 * 1024, 128} }, |
| 10551 | .block_erase = spi_block_erase_20, |
| 10552 | }, { |
| 10553 | .eraseblocks = { {4 * 1024, 128} }, |
| 10554 | .block_erase = spi_block_erase_d7, |
| 10555 | }, { |
| 10556 | .eraseblocks = { {64 * 1024, 8} }, |
| 10557 | .block_erase = spi_block_erase_d8, |
| 10558 | }, { |
| 10559 | .eraseblocks = { {512 * 1024, 1} }, |
| 10560 | .block_erase = spi_block_erase_60, |
| 10561 | }, { |
| 10562 | .eraseblocks = { {512 * 1024, 1} }, |
| 10563 | .block_erase = spi_block_erase_c7, |
| 10564 | } |
| 10565 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10566 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10567 | .unlock = spi_disable_blockprotect, |
| 10568 | .write = spi_chip_write_256, |
| 10569 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10570 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 10571 | }, |
| 10572 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 10573 | { |
| 10574 | .vendor = "PMC", |
| 10575 | .name = "Pm25LQ020", |
| 10576 | .bustype = BUS_SPI, |
| 10577 | .manufacture_id = PMC_ID, |
| 10578 | .model_id = PMC_PM25LQ020, |
| 10579 | .total_size = 256, |
| 10580 | .page_size = 256, |
| 10581 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10582 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10583 | .tested = TEST_UNTESTED, |
| 10584 | .probe = probe_spi_rdid, |
| 10585 | .probe_timing = TIMING_ZERO, |
| 10586 | .block_erasers = |
| 10587 | { |
| 10588 | { |
| 10589 | .eraseblocks = { {4 * 1024, 64} }, |
| 10590 | .block_erase = spi_block_erase_20, |
| 10591 | }, { |
| 10592 | .eraseblocks = { {4 * 1024, 64} }, |
| 10593 | .block_erase = spi_block_erase_d7, |
| 10594 | }, { |
| 10595 | .eraseblocks = { {64 * 1024, 4} }, |
| 10596 | .block_erase = spi_block_erase_d8, |
| 10597 | }, { |
| 10598 | .eraseblocks = { {256 * 1024, 1} }, |
| 10599 | .block_erase = spi_block_erase_60, |
| 10600 | }, { |
| 10601 | .eraseblocks = { {256 * 1024, 1} }, |
| 10602 | .block_erase = spi_block_erase_c7, |
| 10603 | } |
| 10604 | }, |
| 10605 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10606 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10607 | .write = spi_chip_write_256, |
| 10608 | .read = spi_chip_read, |
| 10609 | .voltage = {2300, 3600}, |
| 10610 | }, |
| 10611 | |
| 10612 | { |
| 10613 | .vendor = "PMC", |
| 10614 | .name = "Pm25LQ040", |
| 10615 | .bustype = BUS_SPI, |
| 10616 | .manufacture_id = PMC_ID, |
| 10617 | .model_id = PMC_PM25LQ040, |
| 10618 | .total_size = 512, |
| 10619 | .page_size = 256, |
| 10620 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10621 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10622 | .tested = TEST_UNTESTED, |
| 10623 | .probe = probe_spi_rdid, |
| 10624 | .probe_timing = TIMING_ZERO, |
| 10625 | .block_erasers = |
| 10626 | { |
| 10627 | { |
| 10628 | .eraseblocks = { {4 * 1024, 128} }, |
| 10629 | .block_erase = spi_block_erase_20, |
| 10630 | }, { |
| 10631 | .eraseblocks = { {4 * 1024, 128} }, |
| 10632 | .block_erase = spi_block_erase_d7, |
| 10633 | }, { |
| 10634 | .eraseblocks = { {64 * 1024, 8} }, |
| 10635 | .block_erase = spi_block_erase_d8, |
| 10636 | }, { |
| 10637 | .eraseblocks = { {512 * 1024, 1} }, |
| 10638 | .block_erase = spi_block_erase_60, |
| 10639 | }, { |
| 10640 | .eraseblocks = { {512 * 1024, 1} }, |
| 10641 | .block_erase = spi_block_erase_c7, |
| 10642 | } |
| 10643 | }, |
| 10644 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10645 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10646 | .write = spi_chip_write_256, |
| 10647 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10648 | .voltage = {2300, 3600}, |
| 10649 | }, |
| 10650 | |
| 10651 | { |
| 10652 | .vendor = "PMC", |
| 10653 | .name = "Pm25LQ080", |
| 10654 | .bustype = BUS_SPI, |
| 10655 | .manufacture_id = PMC_ID, |
| 10656 | .model_id = PMC_PM25LQ080, |
| 10657 | .total_size = 1024, |
| 10658 | .page_size = 256, |
| 10659 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 10660 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10661 | .tested = TEST_UNTESTED, |
| 10662 | .probe = probe_spi_rdid, |
| 10663 | .probe_timing = TIMING_ZERO, |
| 10664 | .block_erasers = |
| 10665 | { |
| 10666 | { |
| 10667 | .eraseblocks = { {4 * 1024, 256} }, |
| 10668 | .block_erase = spi_block_erase_20, |
| 10669 | }, { |
| 10670 | .eraseblocks = { {4 * 1024, 256} }, |
| 10671 | .block_erase = spi_block_erase_d7, |
| 10672 | }, { |
| 10673 | .eraseblocks = { {64 * 1024, 16} }, |
| 10674 | .block_erase = spi_block_erase_d8, |
| 10675 | }, { |
| 10676 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10677 | .block_erase = spi_block_erase_60, |
| 10678 | }, { |
| 10679 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10680 | .block_erase = spi_block_erase_c7, |
| 10681 | } |
| 10682 | }, |
| 10683 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10684 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10685 | .write = spi_chip_write_256, |
| 10686 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10687 | .voltage = {2300, 3600}, |
| 10688 | }, |
| 10689 | |
| 10690 | { |
| 10691 | .vendor = "PMC", |
| 10692 | .name = "Pm25LQ016", |
| 10693 | .bustype = BUS_SPI, |
| 10694 | .manufacture_id = PMC_ID, |
| 10695 | .model_id = PMC_PM25LQ016, |
| 10696 | .total_size = 2048, |
| 10697 | .page_size = 256, |
| 10698 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10699 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10700 | .tested = TEST_UNTESTED, |
| 10701 | .probe = probe_spi_rdid, |
| 10702 | .probe_timing = TIMING_ZERO, |
| 10703 | .block_erasers = |
| 10704 | { |
| 10705 | { |
| 10706 | .eraseblocks = { {4 * 1024, 512} }, |
| 10707 | .block_erase = spi_block_erase_20, |
| 10708 | }, { |
| 10709 | .eraseblocks = { {4 * 1024, 512} }, |
| 10710 | .block_erase = spi_block_erase_d7, |
| 10711 | }, { |
| 10712 | .eraseblocks = { {64 * 1024, 32} }, |
| 10713 | .block_erase = spi_block_erase_d8, |
| 10714 | }, { |
| 10715 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10716 | .block_erase = spi_block_erase_60, |
| 10717 | }, { |
| 10718 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10719 | .block_erase = spi_block_erase_c7, |
| 10720 | } |
| 10721 | }, |
| 10722 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10723 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10724 | .write = spi_chip_write_256, |
| 10725 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10726 | .voltage = {2300, 3600}, |
| 10727 | }, |
| 10728 | |
| 10729 | { |
| 10730 | .vendor = "PMC", |
| 10731 | .name = "Pm25LQ032C", |
| 10732 | .bustype = BUS_SPI, |
| 10733 | .manufacture_id = PMC_ID, |
| 10734 | .model_id = PMC_PM25LQ032C, |
| 10735 | .total_size = 4096, |
| 10736 | .page_size = 256, |
| 10737 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 10738 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10739 | .tested = TEST_OK_PREW, |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 10740 | .probe = probe_spi_rdid, |
| 10741 | .probe_timing = TIMING_ZERO, |
| 10742 | .block_erasers = |
| 10743 | { |
| 10744 | { |
| 10745 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10746 | .block_erase = spi_block_erase_20, |
| 10747 | }, { |
| 10748 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10749 | .block_erase = spi_block_erase_d7, |
| 10750 | }, { |
| 10751 | .eraseblocks = { {64 * 1024, 64} }, |
| 10752 | .block_erase = spi_block_erase_d8, |
| 10753 | }, { |
| 10754 | .eraseblocks = { {4096 * 1024, 1} }, |
| 10755 | .block_erase = spi_block_erase_60, |
| 10756 | }, { |
| 10757 | .eraseblocks = { {4096 * 1024, 1} }, |
| 10758 | .block_erase = spi_block_erase_c7, |
| 10759 | } |
| 10760 | }, |
| 10761 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10762 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10763 | .write = spi_chip_write_256, |
| 10764 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10765 | .voltage = {2700, 3600}, |
| 10766 | }, |
| 10767 | |
| 10768 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10769 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10770 | .name = "Pm25LV512(A)", |
| 10771 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10772 | .manufacture_id = PMC_ID_NOPREFIX, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10773 | .model_id = PMC_PM25LV512, |
| 10774 | .total_size = 64, |
| 10775 | .page_size = 256, |
| 10776 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10777 | .tested = TEST_OK_PREW, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10778 | .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */ |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10779 | .probe_timing = TIMING_ZERO, |
| 10780 | .block_erasers = |
| 10781 | { |
| 10782 | { |
| 10783 | .eraseblocks = { {4 * 1024, 16} }, |
| 10784 | .block_erase = spi_block_erase_d7, |
| 10785 | }, { |
| 10786 | .eraseblocks = { {32 * 1024, 2} }, |
| 10787 | .block_erase = spi_block_erase_d8, |
| 10788 | }, { |
| 10789 | .eraseblocks = { {64 * 1024, 1} }, |
| 10790 | .block_erase = spi_block_erase_c7, |
| 10791 | } |
| 10792 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10793 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10794 | .unlock = spi_disable_blockprotect, |
| 10795 | .write = spi_chip_write_256, |
| 10796 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10797 | .voltage = {2700, 3600}, |
| 10798 | }, |
| 10799 | |
| 10800 | { |
| 10801 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10802 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10803 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10804 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10805 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10806 | .total_size = 128, |
| 10807 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10808 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10809 | .tested = TEST_OK_PREW, |
| 10810 | .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */ |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10811 | .probe_timing = TIMING_ZERO, |
| 10812 | .block_erasers = |
| 10813 | { |
| 10814 | { |
| 10815 | .eraseblocks = { {4 * 1024, 32} }, |
| 10816 | .block_erase = spi_block_erase_d7, |
| 10817 | }, { |
| 10818 | .eraseblocks = { {32 * 1024, 4} }, |
| 10819 | .block_erase = spi_block_erase_d8, |
| 10820 | }, { |
| 10821 | .eraseblocks = { {128 * 1024, 1} }, |
| 10822 | .block_erase = spi_block_erase_c7, |
| 10823 | } |
| 10824 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10825 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10826 | .unlock = spi_disable_blockprotect, |
| 10827 | .write = spi_chip_write_256, |
| 10828 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10829 | .voltage = {2700, 3600}, |
| 10830 | }, |
| 10831 | |
| 10832 | { |
| 10833 | .vendor = "PMC", |
| 10834 | .name = "Pm25LV010A", |
| 10835 | .bustype = BUS_SPI, |
| 10836 | .manufacture_id = PMC_ID, |
| 10837 | .model_id = PMC_PM25LV010, |
| 10838 | .total_size = 128, |
| 10839 | .page_size = 256, |
| 10840 | .feature_bits = FEATURE_WRSR_WREN, |
| 10841 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10842 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10843 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10844 | .block_erasers = |
| 10845 | { |
| 10846 | { |
| 10847 | .eraseblocks = { {4 * 1024, 32} }, |
| 10848 | .block_erase = spi_block_erase_d7, |
| 10849 | }, { |
| 10850 | .eraseblocks = { {32 * 1024, 4} }, |
| 10851 | .block_erase = spi_block_erase_d8, |
| 10852 | }, { |
| 10853 | .eraseblocks = { {128 * 1024, 1} }, |
| 10854 | .block_erase = spi_block_erase_c7, |
| 10855 | } |
| 10856 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10857 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10858 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10859 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10860 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10861 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10862 | }, |
| 10863 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10864 | { |
| 10865 | .vendor = "PMC", |
| 10866 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10867 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10868 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10869 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10870 | .total_size = 256, |
| 10871 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10872 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10873 | .tested = TEST_UNTESTED, |
| 10874 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10875 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10876 | .block_erasers = |
| 10877 | { |
| 10878 | { |
| 10879 | .eraseblocks = { {4 * 1024, 64} }, |
| 10880 | .block_erase = spi_block_erase_d7, |
| 10881 | }, { |
| 10882 | .eraseblocks = { {64 * 1024, 4} }, |
| 10883 | .block_erase = spi_block_erase_d8, |
| 10884 | }, { |
| 10885 | .eraseblocks = { {256 * 1024, 1} }, |
| 10886 | .block_erase = spi_block_erase_c7, |
| 10887 | } |
| 10888 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10889 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10890 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10891 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10892 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10893 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10894 | }, |
| 10895 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10896 | { |
| 10897 | .vendor = "PMC", |
| 10898 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10899 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10900 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10901 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10902 | .total_size = 512, |
| 10903 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10904 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 10905 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10906 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10907 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10908 | .block_erasers = |
| 10909 | { |
| 10910 | { |
| 10911 | .eraseblocks = { {4 * 1024, 128} }, |
| 10912 | .block_erase = spi_block_erase_d7, |
| 10913 | }, { |
| 10914 | .eraseblocks = { {64 * 1024, 8} }, |
| 10915 | .block_erase = spi_block_erase_d8, |
| 10916 | }, { |
| 10917 | .eraseblocks = { {512 * 1024, 1} }, |
| 10918 | .block_erase = spi_block_erase_c7, |
| 10919 | } |
| 10920 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10921 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10922 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10923 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10924 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10925 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10926 | }, |
| 10927 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10928 | { |
| 10929 | .vendor = "PMC", |
| 10930 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10931 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10932 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10933 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10934 | .total_size = 1024, |
| 10935 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10936 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10937 | .tested = TEST_UNTESTED, |
| 10938 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10939 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10940 | .block_erasers = |
| 10941 | { |
| 10942 | { |
| 10943 | .eraseblocks = { {4 * 1024, 256} }, |
| 10944 | .block_erase = spi_block_erase_d7, |
| 10945 | }, { |
| 10946 | .eraseblocks = { {4 * 1024, 256} }, |
| 10947 | .block_erase = spi_block_erase_20, |
| 10948 | }, { |
| 10949 | .eraseblocks = { {64 * 1024, 16} }, |
| 10950 | .block_erase = spi_block_erase_d8, |
| 10951 | }, { |
| 10952 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10953 | .block_erase = spi_block_erase_60, |
| 10954 | }, { |
| 10955 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10956 | .block_erase = spi_block_erase_c7, |
| 10957 | } |
| 10958 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10959 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10960 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10961 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10962 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10963 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10964 | }, |
| 10965 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10966 | { |
| 10967 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10968 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10969 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10970 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10971 | .model_id = PMC_PM25LV016B, |
| 10972 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10973 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10974 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10975 | .tested = TEST_UNTESTED, |
| 10976 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10977 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10978 | .block_erasers = |
| 10979 | { |
| 10980 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10981 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10982 | .block_erase = spi_block_erase_d7, |
| 10983 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10984 | .eraseblocks = { {4 * 1024, 512} }, |
| 10985 | .block_erase = spi_block_erase_20, |
| 10986 | }, { |
| 10987 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10988 | .block_erase = spi_block_erase_d8, |
| 10989 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10990 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10991 | .block_erase = spi_block_erase_60, |
| 10992 | }, { |
| 10993 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10994 | .block_erase = spi_block_erase_c7, |
| 10995 | } |
| 10996 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10997 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10998 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10999 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11000 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11001 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11002 | }, |
| 11003 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11004 | { |
| 11005 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11006 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11007 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11008 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11009 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11010 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11011 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11012 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11013 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11014 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11015 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11016 | .block_erasers = |
| 11017 | { |
| 11018 | { |
| 11019 | .eraseblocks = { |
| 11020 | {128 * 1024, 1}, |
| 11021 | {96 * 1024, 1}, |
| 11022 | {8 * 1024, 2}, |
| 11023 | {16 * 1024, 1}, |
| 11024 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11025 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11026 | }, { |
| 11027 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11028 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11029 | }, |
| 11030 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11031 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11032 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11033 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11034 | }, |
| 11035 | |
| 11036 | { |
| 11037 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11038 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11039 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11040 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11041 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11042 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11043 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11044 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11045 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11046 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11047 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11048 | .block_erasers = |
| 11049 | { |
| 11050 | { |
| 11051 | .eraseblocks = { |
| 11052 | {16 * 1024, 1}, |
| 11053 | {8 * 1024, 2}, |
| 11054 | {96 * 1024, 1}, |
| 11055 | {128 * 1024, 1}, |
| 11056 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11057 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11058 | }, { |
| 11059 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11060 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11061 | }, |
| 11062 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11063 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11064 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11065 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11066 | }, |
| 11067 | |
| 11068 | { |
| 11069 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11070 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11071 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11072 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11073 | .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] | 11074 | .total_size = 128, |
| 11075 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11076 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11077 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11078 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11079 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11080 | .block_erasers = |
| 11081 | { |
| 11082 | { |
| 11083 | .eraseblocks = { {4 * 1024, 32} }, |
| 11084 | .block_erase = erase_sector_jedec, |
| 11085 | }, { |
| 11086 | .eraseblocks = { {64 * 1024, 2} }, |
| 11087 | .block_erase = erase_block_jedec, |
| 11088 | }, { |
| 11089 | .eraseblocks = { {128 * 1024, 1} }, |
| 11090 | .block_erase = erase_chip_block_jedec, |
| 11091 | } |
| 11092 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11093 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11094 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11095 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11096 | }, |
| 11097 | |
| 11098 | { |
| 11099 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11100 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11101 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11102 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11103 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11104 | .total_size = 256, |
| 11105 | .page_size = 4096, |
| 11106 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11107 | .tested = TEST_UNTESTED, |
| 11108 | .probe = probe_jedec, |
| 11109 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11110 | .block_erasers = |
| 11111 | { |
| 11112 | { |
| 11113 | .eraseblocks = { {4 * 1024, 64} }, |
| 11114 | .block_erase = erase_sector_jedec, |
| 11115 | }, { |
| 11116 | .eraseblocks = { {64 * 1024, 4} }, |
| 11117 | .block_erase = erase_block_jedec, |
| 11118 | }, { |
| 11119 | .eraseblocks = { {256 * 1024, 1} }, |
| 11120 | .block_erase = erase_chip_block_jedec, |
| 11121 | } |
| 11122 | }, |
| 11123 | .write = write_jedec_1, |
| 11124 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11125 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11126 | }, |
| 11127 | |
| 11128 | { |
| 11129 | .vendor = "PMC", |
| 11130 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11131 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11132 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11133 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11134 | .total_size = 512, |
| 11135 | .page_size = 4096, |
| 11136 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11137 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11138 | .probe = probe_jedec, |
| 11139 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11140 | .block_erasers = |
| 11141 | { |
| 11142 | { |
| 11143 | .eraseblocks = { {4 * 1024, 128} }, |
| 11144 | .block_erase = erase_sector_jedec, |
| 11145 | }, { |
| 11146 | .eraseblocks = { {64 * 1024, 8} }, |
| 11147 | .block_erase = erase_block_jedec, |
| 11148 | }, { |
| 11149 | .eraseblocks = { {512 * 1024, 1} }, |
| 11150 | .block_erase = erase_chip_block_jedec, |
| 11151 | } |
| 11152 | }, |
| 11153 | .write = write_jedec_1, |
| 11154 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11155 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11156 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 11157 | |
| 11158 | { |
| 11159 | .vendor = "PMC", |
| 11160 | .name = "Pm39LV512", |
| 11161 | .bustype = BUS_PARALLEL, |
| 11162 | .manufacture_id = PMC_ID_NOPREFIX, |
| 11163 | .model_id = PMC_PM39LV512, |
| 11164 | .total_size = 64, |
| 11165 | .page_size = 4096, |
| 11166 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11167 | .tested = TEST_OK_PREW, |
| 11168 | .probe = probe_jedec, |
| 11169 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11170 | .block_erasers = |
| 11171 | { |
| 11172 | { |
| 11173 | .eraseblocks = { {4 * 1024, 16} }, |
| 11174 | .block_erase = erase_sector_jedec, |
| 11175 | }, { |
| 11176 | .eraseblocks = { {64 * 1024, 1} }, |
| 11177 | .block_erase = erase_block_jedec, |
| 11178 | }, { |
| 11179 | .eraseblocks = { {64 * 1024, 1} }, |
| 11180 | .block_erase = erase_chip_block_jedec, |
| 11181 | } |
| 11182 | }, |
| 11183 | .write = write_jedec_1, |
| 11184 | .read = read_memmapped, |
| 11185 | .voltage = {2700, 3600}, |
| 11186 | }, |
| 11187 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11188 | { |
| 11189 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11190 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11191 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11192 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11193 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11194 | .total_size = 256, |
| 11195 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11196 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11197 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11198 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11199 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11200 | .block_erasers = |
| 11201 | { |
| 11202 | { |
| 11203 | .eraseblocks = { {4 * 1024, 64} }, |
| 11204 | .block_erase = erase_sector_jedec, |
| 11205 | }, { |
| 11206 | .eraseblocks = { {16 * 1024, 16} }, |
| 11207 | .block_erase = erase_block_jedec, |
| 11208 | }, { |
| 11209 | .eraseblocks = { {256 * 1024, 1} }, |
| 11210 | .block_erase = erase_chip_block_jedec, |
| 11211 | } |
| 11212 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11213 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 11214 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11215 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11216 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11217 | }, |
| 11218 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11219 | { |
| 11220 | .vendor = "PMC", |
| 11221 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11222 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11223 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11224 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11225 | .total_size = 512, |
| 11226 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11227 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11228 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11229 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11230 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11231 | .block_erasers = |
| 11232 | { |
| 11233 | { |
| 11234 | .eraseblocks = { {4 * 1024, 128} }, |
| 11235 | .block_erase = erase_sector_jedec, |
| 11236 | }, { |
| 11237 | .eraseblocks = { {64 * 1024, 8} }, |
| 11238 | .block_erase = erase_block_jedec, |
| 11239 | }, { |
| 11240 | .eraseblocks = { {512 * 1024, 1} }, |
| 11241 | .block_erase = erase_chip_block_jedec, |
| 11242 | } |
| 11243 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11244 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 11245 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11246 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11247 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11248 | }, |
| 11249 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11250 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11251 | .vendor = "Sanyo", |
Stefan Tauner | a60d408 | 2014-06-04 16:17:03 +0000 | [diff] [blame] | 11252 | .name = "LE25FW106", |
| 11253 | .bustype = BUS_SPI, |
| 11254 | .manufacture_id = SANYO_ID, |
| 11255 | .model_id = SANYO_LE25FW106, |
| 11256 | .total_size = 128, |
| 11257 | .page_size = 256, |
| 11258 | .feature_bits = FEATURE_WRSR_WREN, |
| 11259 | .tested = TEST_OK_PREW, |
| 11260 | .probe = probe_spi_res2, |
| 11261 | .probe_timing = TIMING_ZERO, |
| 11262 | .block_erasers = { |
| 11263 | { |
| 11264 | .eraseblocks = { {2 * 1024, 64} }, |
| 11265 | .block_erase = spi_block_erase_d7, |
| 11266 | }, { |
| 11267 | .eraseblocks = { {32 * 1024, 4} }, |
| 11268 | .block_erase = spi_block_erase_d8, |
| 11269 | }, { |
| 11270 | .eraseblocks = { {128 * 1024, 1} }, |
| 11271 | .block_erase = spi_block_erase_c7, |
| 11272 | } |
| 11273 | }, |
| 11274 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 11275 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 11276 | .write = spi_chip_write_256, |
| 11277 | .read = spi_chip_read, |
| 11278 | .voltage = {2700, 3600}, |
| 11279 | }, |
| 11280 | |
| 11281 | { |
| 11282 | .vendor = "Sanyo", |
Stefan Tauner | 33491b8 | 2014-05-18 21:36:04 +0000 | [diff] [blame] | 11283 | .name = "LE25FW406A", |
| 11284 | .bustype = BUS_SPI, |
| 11285 | .manufacture_id = SANYO_ID, |
| 11286 | .model_id = SANYO_LE25FW406A, |
| 11287 | .total_size = 512, |
| 11288 | .page_size = 256, |
| 11289 | .feature_bits = FEATURE_WRSR_WREN, |
| 11290 | .tested = TEST_OK_PREW, |
| 11291 | .probe = probe_spi_res2, |
| 11292 | .probe_timing = TIMING_ZERO, |
| 11293 | .block_erasers = { |
| 11294 | { |
| 11295 | .eraseblocks = { {4 * 1024, 128} }, |
| 11296 | .block_erase = spi_block_erase_d7, |
| 11297 | }, { |
| 11298 | .eraseblocks = { {64 * 1024, 8} }, |
| 11299 | .block_erase = spi_block_erase_d8, |
| 11300 | }, { |
| 11301 | .eraseblocks = { {512 * 1024, 1} }, |
| 11302 | .block_erase = spi_block_erase_c7, |
| 11303 | } |
| 11304 | }, |
| 11305 | .printlock = spi_prettyprint_status_register_plain, |
| 11306 | .unlock = spi_disable_blockprotect, |
| 11307 | .write = spi_chip_write_256, |
| 11308 | .read = spi_chip_read, |
| 11309 | .voltage = {2700, 3600}, |
| 11310 | }, |
| 11311 | |
| 11312 | { |
| 11313 | .vendor = "Sanyo", |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11314 | .name = "LE25FU406B", |
| 11315 | .bustype = BUS_SPI, |
| 11316 | .manufacture_id = SANYO_ID, |
| 11317 | .model_id = SANYO_LE25FU406B, |
| 11318 | .total_size = 512, |
| 11319 | .page_size = 256, |
| 11320 | .feature_bits = FEATURE_WRSR_WREN, |
| 11321 | .tested = TEST_OK_PREW, |
| 11322 | .probe = probe_spi_res2, |
| 11323 | .probe_timing = TIMING_ZERO, |
| 11324 | .block_erasers = { |
| 11325 | { |
| 11326 | .eraseblocks = { {4 * 1024, 128} }, |
| 11327 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11328 | }, { |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11329 | .eraseblocks = { {64 * 1024, 8} }, |
| 11330 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11331 | }, { |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11332 | .eraseblocks = { {512 * 1024, 1} }, |
| 11333 | .block_erase = spi_block_erase_c7, |
| 11334 | } |
| 11335 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11336 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11337 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11338 | .write = spi_chip_write_256, |
| 11339 | .read = spi_chip_read, |
| 11340 | .voltage = {2300, 3600}, |
| 11341 | }, |
| 11342 | |
| 11343 | { |
| 11344 | .vendor = "Sanyo", |
Stefan Tauner | 2f055df | 2015-12-25 22:13:15 +0000 | [diff] [blame] | 11345 | .name = "LE25FU406C/LE25U40CMC", |
| 11346 | .bustype = BUS_SPI, |
| 11347 | .manufacture_id = SANYO_ID, |
| 11348 | .model_id = SANYO_LE25FU406C, |
| 11349 | .total_size = 512, |
| 11350 | .page_size = 256, |
| 11351 | .feature_bits = FEATURE_WRSR_WREN, |
| 11352 | .tested = TEST_OK_PR, |
| 11353 | .probe = probe_spi_rdid, |
| 11354 | .probe_timing = TIMING_ZERO, |
| 11355 | .block_erasers = { |
| 11356 | { |
| 11357 | .eraseblocks = { {4 * 1024, 128} }, |
| 11358 | .block_erase = spi_block_erase_20, |
| 11359 | }, { |
| 11360 | .eraseblocks = { {4 * 1024, 128} }, |
| 11361 | .block_erase = spi_block_erase_d7, |
| 11362 | }, { |
| 11363 | .eraseblocks = { {64 * 1024, 8} }, |
| 11364 | .block_erase = spi_block_erase_d8, |
| 11365 | }, { |
| 11366 | .eraseblocks = { {512 * 1024, 1} }, |
| 11367 | .block_erase = spi_block_erase_60, |
| 11368 | }, { |
| 11369 | .eraseblocks = { {512 * 1024, 1} }, |
| 11370 | .block_erase = spi_block_erase_c7, |
| 11371 | } |
| 11372 | }, |
| 11373 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11374 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11375 | .write = spi_chip_write_256, |
| 11376 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 11377 | .voltage = {2300, 3600}, |
| 11378 | }, |
| 11379 | |
| 11380 | { |
| 11381 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11382 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11383 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11384 | .manufacture_id = SANYO_ID, |
| 11385 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11386 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11387 | .page_size = 256, |
| 11388 | .tested = TEST_UNTESTED, |
| 11389 | .probe = probe_spi_rdid, |
| 11390 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11391 | .block_erasers = |
| 11392 | { |
| 11393 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11394 | .eraseblocks = { {256, 1024} }, |
| 11395 | .block_erase = spi_block_erase_db, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11396 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11397 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11398 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11399 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11400 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11401 | .block_erase = spi_block_erase_c7, |
| 11402 | } |
| 11403 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11404 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11405 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11406 | .write = spi_chip_write_256, |
| 11407 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11408 | .voltage = {2700, 3600}, |
| 11409 | }, |
| 11410 | |
| 11411 | { |
| 11412 | .vendor = "Sanyo", |
| 11413 | .name = "LE25FW403A", |
| 11414 | .bustype = BUS_SPI, |
| 11415 | .manufacture_id = SANYO_ID, |
| 11416 | .model_id = SANYO_LE25FW403A, |
| 11417 | .total_size = 512, |
| 11418 | .page_size = 256, |
| 11419 | .tested = TEST_UNTESTED, |
| 11420 | .probe = probe_spi_rdid, |
| 11421 | .probe_timing = TIMING_ZERO, |
| 11422 | .block_erasers = { |
| 11423 | { |
| 11424 | .eraseblocks = { {256, 2 * 1024} }, |
| 11425 | .block_erase = spi_block_erase_db, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11426 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11427 | .eraseblocks = { {64 * 1024, 8} }, |
| 11428 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11429 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11430 | .eraseblocks = { {512 * 1024, 1} }, |
| 11431 | .block_erase = spi_block_erase_c7, |
| 11432 | } |
| 11433 | }, |
| 11434 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11435 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11436 | .write = spi_chip_write_256, |
| 11437 | .read = spi_chip_read, |
| 11438 | .voltage = {2700, 3600}, |
| 11439 | }, |
| 11440 | |
| 11441 | { |
| 11442 | .vendor = "Sanyo", |
| 11443 | .name = "LE25FW418A", |
| 11444 | .bustype = BUS_SPI, |
| 11445 | .manufacture_id = SANYO_ID, |
| 11446 | .model_id = SANYO_LE25FW418A, |
| 11447 | .total_size = 512, |
| 11448 | .page_size = 256, |
| 11449 | .feature_bits = FEATURE_WRSR_WREN, |
| 11450 | .tested = TEST_UNTESTED, |
| 11451 | .probe = probe_spi_res2, |
| 11452 | .probe_timing = TIMING_ZERO, |
| 11453 | .block_erasers = { |
| 11454 | { |
| 11455 | .eraseblocks = { {4 * 1024, 128} }, |
| 11456 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11457 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11458 | .eraseblocks = { {64 * 1024, 8} }, |
| 11459 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11460 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11461 | .eraseblocks = { {512 * 1024, 1} }, |
| 11462 | .block_erase = spi_block_erase_c7, |
| 11463 | } |
| 11464 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11465 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11466 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11467 | .write = spi_chip_write_256, |
| 11468 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 11469 | .voltage = {2700, 3600}, |
| 11470 | }, |
| 11471 | |
| 11472 | { |
| 11473 | .vendor = "Sanyo", |
| 11474 | .name = "LE25FW806", |
| 11475 | .bustype = BUS_SPI, |
| 11476 | .manufacture_id = SANYO_ID, |
| 11477 | .model_id = SANYO_LE25FW806, |
| 11478 | .total_size = 1024, |
| 11479 | .page_size = 256, |
| 11480 | .feature_bits = FEATURE_WRSR_WREN, |
| 11481 | .tested = TEST_UNTESTED, |
| 11482 | .probe = probe_spi_res2, |
| 11483 | .probe_timing = TIMING_ZERO, |
| 11484 | .block_erasers = { |
| 11485 | { |
| 11486 | .eraseblocks = { {4 * 1024, 256} }, |
| 11487 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11488 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11489 | .eraseblocks = { {4 * 1024, 256} }, |
| 11490 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11491 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11492 | .eraseblocks = { {64 * 1024, 16} }, |
| 11493 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11494 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11495 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11496 | .block_erase = spi_block_erase_c7, |
| 11497 | } |
| 11498 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11499 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11500 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11501 | .write = spi_chip_write_256, |
| 11502 | .read = spi_chip_read, |
| 11503 | .voltage = {2700, 3600}, |
| 11504 | }, |
| 11505 | |
| 11506 | { |
| 11507 | .vendor = "Sanyo", |
| 11508 | .name = "LE25FW808", |
| 11509 | .bustype = BUS_SPI, |
| 11510 | .manufacture_id = SANYO_ID, |
| 11511 | .model_id = SANYO_LE25FW808, |
| 11512 | .total_size = 1024, |
| 11513 | .page_size = 256, |
| 11514 | .feature_bits = FEATURE_WRSR_WREN, |
| 11515 | .tested = TEST_UNTESTED, |
| 11516 | .probe = probe_spi_res2, |
| 11517 | .probe_timing = TIMING_ZERO, |
| 11518 | .block_erasers = { |
| 11519 | { |
| 11520 | .eraseblocks = { {8 * 1024, 128} }, |
| 11521 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11522 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11523 | .eraseblocks = { {64 * 1024, 16} }, |
| 11524 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11525 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11526 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11527 | .block_erase = spi_block_erase_c7, |
| 11528 | } |
| 11529 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11530 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11531 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11532 | .write = spi_chip_write_256, |
| 11533 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 11534 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11535 | }, |
| 11536 | |
| 11537 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11538 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 11539 | .name = "LH28F008BJT-BTLZ1", |
| 11540 | .bustype = BUS_PARALLEL, |
| 11541 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 11542 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 11543 | .total_size = 1024, |
| 11544 | .page_size = 64 * 1024, |
| 11545 | .tested = TEST_OK_PREW, |
| 11546 | .probe = probe_82802ab, |
| 11547 | .probe_timing = TIMING_ZERO, |
| 11548 | .block_erasers = |
| 11549 | { |
| 11550 | { |
| 11551 | .eraseblocks = { |
| 11552 | {8 * 1024, 8}, |
| 11553 | {64 * 1024, 15} |
| 11554 | }, |
| 11555 | .block_erase = erase_block_82802ab, |
| 11556 | }, { |
| 11557 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11558 | .block_erase = erase_sector_49lfxxxc, |
| 11559 | } |
| 11560 | }, |
| 11561 | .unlock = unlock_lh28f008bjt, |
| 11562 | .write = write_82802ab, |
| 11563 | .read = read_memmapped, |
| 11564 | .voltage = {2700, 3600}, |
| 11565 | }, |
| 11566 | |
| 11567 | { |
| 11568 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11569 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11570 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11571 | .manufacture_id = SHARP_ID, |
| 11572 | .model_id = SHARP_LHF00L04, |
| 11573 | .total_size = 1024, |
| 11574 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11575 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11576 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11577 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11578 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11579 | .block_erasers = |
| 11580 | { |
| 11581 | { |
| 11582 | .eraseblocks = { |
| 11583 | {64 * 1024, 15}, |
| 11584 | {8 * 1024, 8} |
| 11585 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11586 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11587 | }, { |
| 11588 | .eraseblocks = { |
| 11589 | {1024 * 1024, 1} |
| 11590 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11591 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11592 | }, |
| 11593 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11594 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11595 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11596 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11597 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11598 | }, |
| 11599 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11600 | { |
| 11601 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11602 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11603 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11604 | .manufacture_id = SPANSION_ID, |
| 11605 | .model_id = SPANSION_S25FL004A, |
| 11606 | .total_size = 512, |
| 11607 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11608 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11609 | .tested = TEST_UNTESTED, |
| 11610 | .probe = probe_spi_rdid, |
| 11611 | .probe_timing = TIMING_ZERO, |
| 11612 | .block_erasers = |
| 11613 | { |
| 11614 | { |
| 11615 | .eraseblocks = { {64 * 1024, 8} }, |
| 11616 | .block_erase = spi_block_erase_d8, |
| 11617 | }, { |
| 11618 | .eraseblocks = { {512 * 1024, 1} }, |
| 11619 | .block_erase = spi_block_erase_c7, |
| 11620 | } |
| 11621 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11622 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11623 | .unlock = spi_disable_blockprotect, |
| 11624 | .write = spi_chip_write_256, |
| 11625 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11626 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11627 | }, |
| 11628 | |
| 11629 | { |
| 11630 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11631 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11632 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11633 | .manufacture_id = SPANSION_ID, |
| 11634 | .model_id = SPANSION_S25FL008A, |
| 11635 | .total_size = 1024, |
| 11636 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11637 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11638 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11639 | .probe = probe_spi_rdid, |
| 11640 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11641 | .block_erasers = |
| 11642 | { |
| 11643 | { |
| 11644 | .eraseblocks = { {64 * 1024, 16} }, |
| 11645 | .block_erase = spi_block_erase_d8, |
| 11646 | }, { |
| 11647 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11648 | .block_erase = spi_block_erase_c7, |
| 11649 | } |
| 11650 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11651 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11652 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11653 | .write = spi_chip_write_256, |
| 11654 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11655 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11656 | }, |
| 11657 | |
| 11658 | { |
| 11659 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11660 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11661 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11662 | .manufacture_id = SPANSION_ID, |
| 11663 | .model_id = SPANSION_S25FL016A, |
| 11664 | .total_size = 2048, |
| 11665 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11666 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11667 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11668 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11669 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11670 | .block_erasers = |
| 11671 | { |
| 11672 | { |
| 11673 | .eraseblocks = { {64 * 1024, 32} }, |
| 11674 | .block_erase = spi_block_erase_d8, |
| 11675 | }, { |
| 11676 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11677 | .block_erase = spi_block_erase_c7, |
| 11678 | } |
| 11679 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11680 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11681 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11682 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11683 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11684 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11685 | }, |
| 11686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11687 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11688 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11689 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11690 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11691 | .manufacture_id = SPANSION_ID, |
| 11692 | .model_id = SPANSION_S25FL032A, |
| 11693 | .total_size = 4096, |
| 11694 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11695 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11696 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11697 | .probe = probe_spi_rdid, |
| 11698 | .probe_timing = TIMING_ZERO, |
| 11699 | .block_erasers = |
| 11700 | { |
| 11701 | { |
| 11702 | .eraseblocks = { {64 * 1024, 64} }, |
| 11703 | .block_erase = spi_block_erase_d8, |
| 11704 | }, { |
| 11705 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11706 | .block_erase = spi_block_erase_c7, |
| 11707 | } |
| 11708 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11709 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11710 | .unlock = spi_disable_blockprotect, |
| 11711 | .write = spi_chip_write_256, |
| 11712 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11713 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11714 | }, |
| 11715 | |
| 11716 | { |
| 11717 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11718 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11719 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11720 | .manufacture_id = SPANSION_ID, |
| 11721 | .model_id = SPANSION_S25FL064A, |
| 11722 | .total_size = 8192, |
| 11723 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11724 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11725 | .tested = TEST_OK_PREW, |
| 11726 | .probe = probe_spi_rdid, |
| 11727 | .probe_timing = TIMING_ZERO, |
| 11728 | .block_erasers = |
| 11729 | { |
| 11730 | { |
| 11731 | .eraseblocks = { {64 * 1024, 128} }, |
| 11732 | .block_erase = spi_block_erase_d8, |
| 11733 | }, { |
| 11734 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11735 | .block_erase = spi_block_erase_c7, |
| 11736 | } |
| 11737 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11738 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11739 | .unlock = spi_disable_blockprotect, |
| 11740 | .write = spi_chip_write_256, |
| 11741 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11742 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11743 | }, |
| 11744 | |
| 11745 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11746 | .vendor = "Spansion", |
| 11747 | .name = "S25FL204K", |
| 11748 | .bustype = BUS_SPI, |
| 11749 | .manufacture_id = SPANSION_ID, |
| 11750 | .model_id = SPANSION_S25FL204, |
| 11751 | .total_size = 512, |
| 11752 | .page_size = 256, |
| 11753 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11754 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11755 | .probe = probe_spi_rdid, |
| 11756 | .probe_timing = TIMING_ZERO, |
| 11757 | .block_erasers = { |
| 11758 | { |
| 11759 | .eraseblocks = { {4 * 1024, 128} }, |
| 11760 | .block_erase = spi_block_erase_20, |
| 11761 | }, { |
| 11762 | .eraseblocks = { {64 * 1024, 8} }, |
| 11763 | .block_erase = spi_block_erase_d8, |
| 11764 | }, { |
| 11765 | .eraseblocks = { { 512 * 1024, 1} }, |
| 11766 | .block_erase = spi_block_erase_60, |
| 11767 | }, { |
| 11768 | .eraseblocks = { { 512 * 1024, 1} }, |
| 11769 | .block_erase = spi_block_erase_c7, |
| 11770 | } |
| 11771 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11772 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11773 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11774 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11775 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11776 | .voltage = {2700, 3600}, |
| 11777 | }, |
| 11778 | |
| 11779 | { |
| 11780 | .vendor = "Spansion", |
| 11781 | .name = "S25FL208K", |
| 11782 | .bustype = BUS_SPI, |
| 11783 | .manufacture_id = SPANSION_ID, |
| 11784 | .model_id = SPANSION_S25FL208, |
| 11785 | .total_size = 1024, |
| 11786 | .page_size = 256, |
| 11787 | .feature_bits = FEATURE_WRSR_WREN, |
| 11788 | .tested = TEST_UNTESTED, |
| 11789 | .probe = probe_spi_rdid, |
| 11790 | .probe_timing = TIMING_ZERO, |
| 11791 | .block_erasers = { |
| 11792 | { |
| 11793 | .eraseblocks = { {4 * 1024, 256} }, |
| 11794 | .block_erase = spi_block_erase_20, |
| 11795 | }, { |
| 11796 | .eraseblocks = { {64 * 1024, 16} }, |
| 11797 | .block_erase = spi_block_erase_d8, |
| 11798 | }, { |
| 11799 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 11800 | .block_erase = spi_block_erase_60, |
| 11801 | }, { |
| 11802 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 11803 | .block_erase = spi_block_erase_c7, |
| 11804 | } |
| 11805 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11806 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11807 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11808 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11809 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11810 | .voltage = {2700, 3600}, |
| 11811 | }, |
| 11812 | |
| 11813 | { |
| 11814 | .vendor = "Spansion", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11815 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11816 | .bustype = BUS_SPI, |
| 11817 | .manufacture_id = SPANSION_ID, |
| 11818 | .model_id = SPANSION_S25FL216, |
| 11819 | .total_size = 2048, |
| 11820 | .page_size = 256, |
| 11821 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 11822 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11823 | .tested = TEST_UNTESTED, |
| 11824 | .probe = probe_spi_rdid, |
| 11825 | .probe_timing = TIMING_ZERO, |
| 11826 | .block_erasers = { |
| 11827 | { |
| 11828 | .eraseblocks = { {4 * 1024, 512} }, |
| 11829 | .block_erase = spi_block_erase_20, |
| 11830 | }, { |
| 11831 | .eraseblocks = { {64 * 1024, 32} }, |
| 11832 | .block_erase = spi_block_erase_d8, |
| 11833 | }, { |
| 11834 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 11835 | .block_erase = spi_block_erase_60, |
| 11836 | }, { |
| 11837 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 11838 | .block_erase = spi_block_erase_c7, |
| 11839 | } |
| 11840 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11841 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11842 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11843 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11844 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11845 | .voltage = {2700, 3600}, |
| 11846 | }, |
| 11847 | |
| 11848 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 11849 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11850 | .name = "S25FL132K", |
| 11851 | .bustype = BUS_SPI, |
| 11852 | .manufacture_id = SPANSION_ID, |
| 11853 | .model_id = SPANSION_S25FL132K, |
| 11854 | .total_size = 4096, |
| 11855 | .page_size = 256, |
| 11856 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 11857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11858 | .tested = TEST_UNTESTED, |
| 11859 | .probe = probe_spi_rdid, |
| 11860 | .probe_timing = TIMING_ZERO, |
| 11861 | .block_erasers = { |
| 11862 | { |
| 11863 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11864 | .block_erase = spi_block_erase_20, |
| 11865 | }, { |
| 11866 | .eraseblocks = { {64 * 1024, 64} }, |
| 11867 | .block_erase = spi_block_erase_d8, |
| 11868 | }, { |
| 11869 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 11870 | .block_erase = spi_block_erase_60, |
| 11871 | }, { |
| 11872 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 11873 | .block_erase = spi_block_erase_c7, |
| 11874 | } |
| 11875 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11876 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11877 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11878 | .write = spi_chip_write_256, |
| 11879 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11880 | .voltage = {2700, 3600}, |
| 11881 | }, |
| 11882 | |
| 11883 | { |
| 11884 | .vendor = "Spansion", |
| 11885 | .name = "S25FL164K", |
| 11886 | .bustype = BUS_SPI, |
| 11887 | .manufacture_id = SPANSION_ID, |
| 11888 | .model_id = SPANSION_S25FL164K, |
| 11889 | .total_size = 8192, |
| 11890 | .page_size = 256, |
| 11891 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 11892 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11893 | .tested = TEST_OK_PREW, |
| 11894 | .probe = probe_spi_rdid, |
| 11895 | .probe_timing = TIMING_ZERO, |
| 11896 | .block_erasers = { |
| 11897 | { |
| 11898 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11899 | .block_erase = spi_block_erase_20, |
| 11900 | }, { |
| 11901 | .eraseblocks = { {64 * 1024, 128} }, |
| 11902 | .block_erase = spi_block_erase_d8, |
| 11903 | }, { |
| 11904 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 11905 | .block_erase = spi_block_erase_60, |
| 11906 | }, { |
| 11907 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 11908 | .block_erase = spi_block_erase_c7, |
| 11909 | } |
| 11910 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11911 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11912 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11913 | .write = spi_chip_write_256, |
| 11914 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11915 | .voltage = {2700, 3600}, |
| 11916 | }, |
| 11917 | |
| 11918 | { |
| 11919 | .vendor = "Spansion", |
Jernej Å krabec | e814a9b | 2014-12-12 00:32:03 +0000 | [diff] [blame] | 11920 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 11921 | .bustype = BUS_SPI, |
| 11922 | .manufacture_id = SPANSION_ID, |
| 11923 | .model_id = SPANSION_S25FL128, |
| 11924 | .total_size = 16384, |
| 11925 | .page_size = 256, |
| 11926 | /* supports 4B addressing */ |
| 11927 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 11928 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11929 | .tested = TEST_OK_PREW, |
| 11930 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 11931 | .probe = probe_spi_rdid, |
| 11932 | .probe_timing = TIMING_ZERO, |
| 11933 | .block_erasers = { |
| 11934 | { |
| 11935 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 11936 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 11937 | * space. Trying to access an address outside these 4kB blocks does have no |
| 11938 | * effect on the memory contents, e.g. |
| 11939 | .eraseblocks = { |
| 11940 | {4 * 1024, 32}, |
| 11941 | {64 * 1024, 254} // inaccessible |
| 11942 | }, |
| 11943 | .block_erase = spi_block_erase_20, |
| 11944 | }, { */ |
| 11945 | .eraseblocks = { { 64 * 1024, 256} }, |
| 11946 | .block_erase = spi_block_erase_d8, |
| 11947 | }, { |
| 11948 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11949 | .block_erase = spi_block_erase_60, |
| 11950 | }, { |
| 11951 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11952 | .block_erase = spi_block_erase_c7, |
| 11953 | } |
| 11954 | }, |
| 11955 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11956 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11957 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11958 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11959 | .voltage = {2700, 3600}, |
| 11960 | }, |
| 11961 | |
| 11962 | { |
| 11963 | .vendor = "Spansion", |
| 11964 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 11965 | .bustype = BUS_SPI, |
| 11966 | .manufacture_id = SPANSION_ID, |
| 11967 | .model_id = SPANSION_S25FL128, |
| 11968 | .total_size = 16384, |
| 11969 | .page_size = 512, |
| 11970 | /* supports 4B addressing */ |
| 11971 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 11972 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11973 | .tested = TEST_UNTESTED, |
| 11974 | .probe = probe_spi_rdid, |
| 11975 | .probe_timing = TIMING_ZERO, |
| 11976 | .block_erasers = { |
| 11977 | { |
| 11978 | .eraseblocks = { {256 * 1024, 64} }, |
| 11979 | .block_erase = spi_block_erase_d8, |
| 11980 | }, { |
| 11981 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11982 | .block_erase = spi_block_erase_60, |
| 11983 | }, { |
| 11984 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11985 | .block_erase = spi_block_erase_c7, |
| 11986 | } |
| 11987 | }, |
| 11988 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11989 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11990 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11991 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11992 | .voltage = {2700, 3600}, |
| 11993 | }, |
| 11994 | |
| 11995 | { |
| 11996 | .vendor = "Spansion", |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 11997 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 11998 | .bustype = BUS_SPI, |
| 11999 | .manufacture_id = SPANSION_ID, |
| 12000 | .model_id = SPANSION_S25FL128, |
| 12001 | .total_size = 16384, |
| 12002 | .page_size = 256, |
| 12003 | .feature_bits = FEATURE_WRSR_WREN, |
| 12004 | .tested = TEST_UNTESTED, |
| 12005 | .probe = probe_spi_rdid, |
| 12006 | .probe_timing = TIMING_ZERO, |
| 12007 | .block_erasers = { |
| 12008 | { |
| 12009 | .eraseblocks = { {64 * 1024, 256} }, |
| 12010 | .block_erase = spi_block_erase_20, |
| 12011 | }, { |
| 12012 | .eraseblocks = { {64 * 1024, 256} }, |
| 12013 | .block_erase = spi_block_erase_d8, |
| 12014 | }, { |
| 12015 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12016 | .block_erase = spi_block_erase_60, |
| 12017 | }, { |
| 12018 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12019 | .block_erase = spi_block_erase_c7, |
| 12020 | } |
| 12021 | }, |
| 12022 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 12023 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12024 | .write = spi_chip_write_256, |
| 12025 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12026 | .voltage = {2700, 3600}, |
| 12027 | }, |
| 12028 | |
| 12029 | { |
| 12030 | .vendor = "Spansion", |
| 12031 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 12032 | .bustype = BUS_SPI, |
| 12033 | .manufacture_id = SPANSION_ID, |
| 12034 | .model_id = SPANSION_S25FL128, |
| 12035 | .total_size = 16384, |
| 12036 | .page_size = 256, |
| 12037 | .feature_bits = FEATURE_WRSR_WREN, |
| 12038 | .tested = TEST_UNTESTED, |
| 12039 | .probe = probe_spi_rdid, |
| 12040 | .probe_timing = TIMING_ZERO, |
| 12041 | .block_erasers = { |
| 12042 | { |
| 12043 | .eraseblocks = { {256 * 1024, 64} }, |
| 12044 | .block_erase = spi_block_erase_d8, |
| 12045 | }, { |
| 12046 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12047 | .block_erase = spi_block_erase_c7, |
| 12048 | } |
| 12049 | }, |
| 12050 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12051 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12052 | .write = spi_chip_write_256, |
| 12053 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12054 | .voltage = {2700, 3600}, |
| 12055 | }, |
| 12056 | |
| 12057 | { |
| 12058 | .vendor = "Spansion", |
| 12059 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12060 | .bustype = BUS_SPI, |
| 12061 | .manufacture_id = SPANSION_ID, |
| 12062 | .model_id = SPANSION_S25FL128, |
| 12063 | .total_size = 16384, |
| 12064 | .page_size = 256, |
| 12065 | /* supports 4B addressing */ |
| 12066 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12067 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12068 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12069 | .probe = probe_spi_rdid, |
| 12070 | .probe_timing = TIMING_ZERO, |
| 12071 | .block_erasers = { |
| 12072 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12073 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 12074 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 12075 | * have no effect on the memory contents, but sets a flag in the SR. |
| 12076 | .eraseblocks = { |
| 12077 | {4 * 1024, 32}, |
| 12078 | {64 * 1024, 254} // inaccessible |
| 12079 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12080 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12081 | }, { */ |
| 12082 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12083 | .block_erase = spi_block_erase_d8, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12084 | }, { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12085 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12086 | .block_erase = spi_block_erase_60, |
| 12087 | }, { |
| 12088 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12089 | .block_erase = spi_block_erase_c7, |
| 12090 | } |
| 12091 | }, |
| 12092 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 12093 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 12094 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12095 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12096 | .voltage = {2700, 3600}, |
| 12097 | }, |
| 12098 | |
| 12099 | { |
| 12100 | .vendor = "Spansion", |
| 12101 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 12102 | .bustype = BUS_SPI, |
| 12103 | .manufacture_id = SPANSION_ID, |
| 12104 | .model_id = SPANSION_S25FL128, |
| 12105 | .total_size = 16384, |
| 12106 | .page_size = 512, |
| 12107 | /* supports 4B addressing */ |
| 12108 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12109 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12110 | .tested = TEST_UNTESTED, |
| 12111 | .probe = probe_spi_rdid, |
| 12112 | .probe_timing = TIMING_ZERO, |
| 12113 | .block_erasers = { |
| 12114 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12115 | .eraseblocks = { {256 * 1024, 64} }, |
| 12116 | .block_erase = spi_block_erase_d8, |
| 12117 | }, { |
| 12118 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12119 | .block_erase = spi_block_erase_60, |
| 12120 | }, { |
| 12121 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12122 | .block_erase = spi_block_erase_c7, |
| 12123 | } |
| 12124 | }, |
| 12125 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 12126 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 12127 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12128 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12129 | .voltage = {2700, 3600}, |
| 12130 | }, |
| 12131 | |
| 12132 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12133 | .vendor = "Spansion", |
| 12134 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 12135 | .bustype = BUS_SPI, |
| 12136 | .manufacture_id = SPANSION_ID, |
| 12137 | .model_id = SPANSION_S25FL128, |
| 12138 | .total_size = 16384, |
| 12139 | .page_size = 256, |
| 12140 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 12141 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12142 | .tested = TEST_OK_PREW, |
| 12143 | .probe = probe_spi_rdid, |
| 12144 | .probe_timing = TIMING_ZERO, |
| 12145 | .block_erasers = { |
| 12146 | { |
| 12147 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 12148 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 12149 | * effect on the memory contents, but sets a flag in the SR. |
| 12150 | .eraseblocks = { |
| 12151 | {4 * 1024, 32}, |
| 12152 | {64 * 1024, 254} // inaccessible |
| 12153 | }, |
| 12154 | .block_erase = spi_block_erase_20, |
| 12155 | }, { */ |
| 12156 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 12157 | .eraseblocks = { |
| 12158 | {8 * 1024, 16}, |
| 12159 | {64 * 1024, 254} // inaccessible |
| 12160 | }, |
| 12161 | .block_erase = spi_block_erase_40, |
| 12162 | }, { */ |
| 12163 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12164 | .block_erase = spi_block_erase_d8, |
| 12165 | }, { |
| 12166 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12167 | .block_erase = spi_block_erase_60, |
| 12168 | }, { |
| 12169 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12170 | .block_erase = spi_block_erase_c7, |
| 12171 | } |
| 12172 | }, |
| 12173 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 12174 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12175 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12176 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12177 | .voltage = {2700, 3600}, |
| 12178 | }, |
| 12179 | |
| 12180 | { |
| 12181 | .vendor = "Spansion", |
| 12182 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 12183 | .bustype = BUS_SPI, |
| 12184 | .manufacture_id = SPANSION_ID, |
| 12185 | .model_id = SPANSION_S25FL128, |
| 12186 | .total_size = 16384, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12187 | .page_size = 256, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12188 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 12189 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12190 | .tested = TEST_UNTESTED, |
| 12191 | .probe = probe_spi_rdid, |
| 12192 | .probe_timing = TIMING_ZERO, |
| 12193 | .block_erasers = { |
| 12194 | { |
| 12195 | .eraseblocks = { {256 * 1024, 64} }, |
| 12196 | .block_erase = spi_block_erase_d8, |
| 12197 | }, { |
| 12198 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12199 | .block_erase = spi_block_erase_60, |
| 12200 | }, { |
| 12201 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12202 | .block_erase = spi_block_erase_c7, |
| 12203 | } |
| 12204 | }, |
| 12205 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 12206 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12207 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12208 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12209 | .voltage = {2700, 3600}, |
| 12210 | }, |
| 12211 | |
| 12212 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12213 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 12214 | .name = "SST25LF020A", |
| 12215 | .bustype = BUS_SPI, |
| 12216 | .manufacture_id = SST_ID, |
| 12217 | .model_id = SST_SST25VF020_REMS, |
| 12218 | .total_size = 256, |
| 12219 | .page_size = 256, |
| 12220 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12221 | .tested = TEST_OK_PREW, |
| 12222 | .probe = probe_spi_rems, |
| 12223 | .probe_timing = TIMING_ZERO, |
| 12224 | .block_erasers = |
| 12225 | { |
| 12226 | { |
| 12227 | .eraseblocks = { {4 * 1024, 64} }, |
| 12228 | .block_erase = spi_block_erase_20, |
| 12229 | }, { |
| 12230 | .eraseblocks = { {32 * 1024, 8} }, |
| 12231 | .block_erase = spi_block_erase_52, |
| 12232 | }, { |
| 12233 | .eraseblocks = { {256 * 1024, 1} }, |
| 12234 | .block_erase = spi_block_erase_60, |
| 12235 | }, |
| 12236 | }, |
| 12237 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12238 | .unlock = spi_disable_blockprotect, |
| 12239 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12240 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12241 | .voltage = {2700, 3600}, |
| 12242 | }, |
| 12243 | |
| 12244 | { |
| 12245 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12246 | .name = "SST25LF040A", |
| 12247 | .bustype = BUS_SPI, |
| 12248 | .manufacture_id = SST_ID, |
| 12249 | .model_id = SST_SST25VF040_REMS, |
| 12250 | .total_size = 512, |
| 12251 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12252 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 12253 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12254 | .probe = probe_spi_res2, |
| 12255 | .probe_timing = TIMING_ZERO, |
| 12256 | .block_erasers = |
| 12257 | { |
| 12258 | { |
| 12259 | .eraseblocks = { {4 * 1024, 128} }, |
| 12260 | .block_erase = spi_block_erase_20, |
| 12261 | }, { |
| 12262 | .eraseblocks = { {32 * 1024, 16} }, |
| 12263 | .block_erase = spi_block_erase_52, |
| 12264 | }, { |
| 12265 | .eraseblocks = { {512 * 1024, 1} }, |
| 12266 | .block_erase = spi_block_erase_60, |
| 12267 | }, |
| 12268 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12269 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12270 | .unlock = spi_disable_blockprotect, |
| 12271 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12272 | .read = spi_chip_read, |
| 12273 | .voltage = {3000, 3600}, |
| 12274 | }, |
| 12275 | |
| 12276 | { |
| 12277 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12278 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12279 | .bustype = BUS_SPI, |
| 12280 | .manufacture_id = SST_ID, |
| 12281 | .model_id = SST_SST25VF080_REMS, |
| 12282 | .total_size = 1024, |
| 12283 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12284 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12285 | .tested = TEST_UNTESTED, |
| 12286 | .probe = probe_spi_res2, |
| 12287 | .probe_timing = TIMING_ZERO, |
| 12288 | .block_erasers = |
| 12289 | { |
| 12290 | { |
| 12291 | .eraseblocks = { {4 * 1024, 256} }, |
| 12292 | .block_erase = spi_block_erase_20, |
| 12293 | }, { |
| 12294 | .eraseblocks = { {32 * 1024, 32} }, |
| 12295 | .block_erase = spi_block_erase_52, |
| 12296 | }, { |
| 12297 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12298 | .block_erase = spi_block_erase_60, |
| 12299 | }, |
| 12300 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12301 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12302 | .unlock = spi_disable_blockprotect, |
| 12303 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12304 | .read = spi_chip_read, |
| 12305 | .voltage = {3000, 3600}, |
| 12306 | }, |
| 12307 | |
| 12308 | { |
| 12309 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12310 | .name = "SST25VF512(A)", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12311 | .bustype = BUS_SPI, |
| 12312 | .manufacture_id = SST_ID, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12313 | .model_id = SST_SST25VF512_REMS, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12314 | .total_size = 64, |
| 12315 | .page_size = 256, |
| 12316 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12317 | .tested = TEST_OK_PREW, |
| 12318 | .probe = probe_spi_rems, |
| 12319 | .probe_timing = TIMING_ZERO, |
| 12320 | .block_erasers = |
| 12321 | { |
| 12322 | { |
| 12323 | .eraseblocks = { {4 * 1024, 16} }, |
| 12324 | .block_erase = spi_block_erase_20, |
| 12325 | }, { |
| 12326 | .eraseblocks = { {32 * 1024, 2} }, |
| 12327 | .block_erase = spi_block_erase_52, |
| 12328 | }, { |
| 12329 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12330 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12331 | }, { |
| 12332 | .eraseblocks = { {64 * 1024, 1} }, |
| 12333 | .block_erase = spi_block_erase_60, |
| 12334 | }, { |
| 12335 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12336 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12337 | }, |
| 12338 | }, |
| 12339 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12340 | .unlock = spi_disable_blockprotect, |
| 12341 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12342 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12343 | .voltage = {2700, 3600}, |
| 12344 | }, |
| 12345 | |
| 12346 | { |
| 12347 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12348 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12349 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12350 | .manufacture_id = SST_ID, |
| 12351 | .model_id = SST_SST25VF010_REMS, |
| 12352 | .total_size = 128, |
| 12353 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12354 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12355 | .tested = TEST_OK_PREW, |
| 12356 | .probe = probe_spi_rems, |
| 12357 | .probe_timing = TIMING_ZERO, |
| 12358 | .block_erasers = |
| 12359 | { |
| 12360 | { |
| 12361 | .eraseblocks = { {4 * 1024, 32} }, |
| 12362 | .block_erase = spi_block_erase_20, |
| 12363 | }, { |
| 12364 | .eraseblocks = { {32 * 1024, 4} }, |
| 12365 | .block_erase = spi_block_erase_52, |
| 12366 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12367 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12368 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12369 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12370 | .eraseblocks = { {128 * 1024, 1} }, |
| 12371 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12372 | }, { |
| 12373 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12374 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12375 | }, |
| 12376 | }, |
| 12377 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12378 | .unlock = spi_disable_blockprotect, |
| 12379 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12380 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12381 | .voltage = {2700, 3600}, |
| 12382 | }, |
| 12383 | |
| 12384 | { |
| 12385 | .vendor = "SST", |
| 12386 | .name = "SST25VF020", |
| 12387 | .bustype = BUS_SPI, |
| 12388 | .manufacture_id = SST_ID, |
| 12389 | .model_id = SST_SST25VF020_REMS, |
| 12390 | .total_size = 256, |
| 12391 | .page_size = 256, |
| 12392 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12393 | .tested = TEST_UNTESTED, |
| 12394 | .probe = probe_spi_rems, |
| 12395 | .probe_timing = TIMING_ZERO, |
| 12396 | .block_erasers = |
| 12397 | { |
| 12398 | { |
| 12399 | .eraseblocks = { {4 * 1024, 64} }, |
| 12400 | .block_erase = spi_block_erase_20, |
| 12401 | }, { |
| 12402 | .eraseblocks = { {32 * 1024, 8} }, |
| 12403 | .block_erase = spi_block_erase_52, |
| 12404 | }, { |
| 12405 | .eraseblocks = { {256 * 1024, 1} }, |
| 12406 | .block_erase = spi_block_erase_60, |
| 12407 | }, |
| 12408 | }, |
| 12409 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12410 | .unlock = spi_disable_blockprotect, |
| 12411 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12412 | .read = spi_chip_read, /* only */ |
| 12413 | .voltage = {2700, 3600}, |
| 12414 | }, |
| 12415 | |
| 12416 | { |
| 12417 | .vendor = "SST", |
| 12418 | .name = "SST25VF020B", |
| 12419 | .bustype = BUS_SPI, |
| 12420 | .manufacture_id = SST_ID, |
| 12421 | .model_id = SST_SST25VF020B, |
| 12422 | .total_size = 256, |
| 12423 | .page_size = 256, |
| 12424 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12425 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12426 | .probe = probe_spi_rdid, |
| 12427 | .probe_timing = TIMING_ZERO, |
| 12428 | .block_erasers = |
| 12429 | { |
| 12430 | { |
| 12431 | .eraseblocks = { {4 * 1024, 64} }, |
| 12432 | .block_erase = spi_block_erase_20, |
| 12433 | }, { |
| 12434 | .eraseblocks = { {32 * 1024, 8} }, |
| 12435 | .block_erase = spi_block_erase_52, |
| 12436 | }, { |
| 12437 | .eraseblocks = { {64 * 1024, 4} }, |
| 12438 | .block_erase = spi_block_erase_d8, |
| 12439 | }, { |
| 12440 | .eraseblocks = { {256 * 1024, 1} }, |
| 12441 | .block_erase = spi_block_erase_60, |
| 12442 | }, { |
| 12443 | .eraseblocks = { {256 * 1024, 1} }, |
| 12444 | .block_erase = spi_block_erase_c7, |
| 12445 | }, |
| 12446 | }, |
| 12447 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 12448 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 12449 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12450 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12451 | .voltage = {2700, 3600}, |
| 12452 | }, |
| 12453 | |
| 12454 | { |
| 12455 | .vendor = "SST", |
| 12456 | .name = "SST25VF040", |
| 12457 | .bustype = BUS_SPI, |
| 12458 | .manufacture_id = SST_ID, |
| 12459 | .model_id = SST_SST25VF040_REMS, |
| 12460 | .total_size = 512, |
| 12461 | .page_size = 256, |
| 12462 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12463 | .tested = TEST_OK_PR, |
| 12464 | .probe = probe_spi_rems, |
| 12465 | .probe_timing = TIMING_ZERO, |
| 12466 | .block_erasers = |
| 12467 | { |
| 12468 | { |
| 12469 | .eraseblocks = { {4 * 1024, 128} }, |
| 12470 | .block_erase = spi_block_erase_20, |
| 12471 | }, { |
| 12472 | .eraseblocks = { {32 * 1024, 16} }, |
| 12473 | .block_erase = spi_block_erase_52, |
| 12474 | }, { |
| 12475 | .eraseblocks = { {512 * 1024, 1} }, |
| 12476 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12477 | }, |
| 12478 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12479 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12480 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12481 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12482 | .read = spi_chip_read, |
| 12483 | .voltage = {2700, 3600}, |
| 12484 | }, |
| 12485 | |
| 12486 | { |
| 12487 | .vendor = "SST", |
| 12488 | .name = "SST25VF040B", |
| 12489 | .bustype = BUS_SPI, |
| 12490 | .manufacture_id = SST_ID, |
| 12491 | .model_id = SST_SST25VF040B, |
| 12492 | .total_size = 512, |
| 12493 | .page_size = 256, |
| 12494 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12495 | .tested = TEST_OK_PREW, |
| 12496 | .probe = probe_spi_rdid, |
| 12497 | .probe_timing = TIMING_ZERO, |
| 12498 | .block_erasers = |
| 12499 | { |
| 12500 | { |
| 12501 | .eraseblocks = { {4 * 1024, 128} }, |
| 12502 | .block_erase = spi_block_erase_20, |
| 12503 | }, { |
| 12504 | .eraseblocks = { {32 * 1024, 16} }, |
| 12505 | .block_erase = spi_block_erase_52, |
| 12506 | }, { |
| 12507 | .eraseblocks = { {64 * 1024, 8} }, |
| 12508 | .block_erase = spi_block_erase_d8, |
| 12509 | }, { |
| 12510 | .eraseblocks = { {512 * 1024, 1} }, |
| 12511 | .block_erase = spi_block_erase_60, |
| 12512 | }, { |
| 12513 | .eraseblocks = { {512 * 1024, 1} }, |
| 12514 | .block_erase = spi_block_erase_c7, |
| 12515 | }, |
| 12516 | }, |
| 12517 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12518 | .unlock = spi_disable_blockprotect, |
| 12519 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12520 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12521 | .voltage = {2700, 3600}, |
| 12522 | }, |
| 12523 | |
| 12524 | { |
| 12525 | .vendor = "SST", |
| 12526 | .name = "SST25VF040B.REMS", |
| 12527 | .bustype = BUS_SPI, |
| 12528 | .manufacture_id = SST_ID, |
| 12529 | .model_id = SST_SST25VF040B_REMS, |
| 12530 | .total_size = 512, |
| 12531 | .page_size = 256, |
| 12532 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12533 | .tested = TEST_OK_PREW, |
| 12534 | .probe = probe_spi_rems, |
| 12535 | .probe_timing = TIMING_ZERO, |
| 12536 | .block_erasers = |
| 12537 | { |
| 12538 | { |
| 12539 | .eraseblocks = { {4 * 1024, 128} }, |
| 12540 | .block_erase = spi_block_erase_20, |
| 12541 | }, { |
| 12542 | .eraseblocks = { {32 * 1024, 16} }, |
| 12543 | .block_erase = spi_block_erase_52, |
| 12544 | }, { |
| 12545 | .eraseblocks = { {64 * 1024, 8} }, |
| 12546 | .block_erase = spi_block_erase_d8, |
| 12547 | }, { |
| 12548 | .eraseblocks = { {512 * 1024, 1} }, |
| 12549 | .block_erase = spi_block_erase_60, |
| 12550 | }, { |
| 12551 | .eraseblocks = { {512 * 1024, 1} }, |
| 12552 | .block_erase = spi_block_erase_c7, |
| 12553 | }, |
| 12554 | }, |
| 12555 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12556 | .unlock = spi_disable_blockprotect, |
| 12557 | .write = spi_aai_write, |
| 12558 | .read = spi_chip_read, |
| 12559 | .voltage = {2700, 3600}, |
| 12560 | }, |
| 12561 | |
| 12562 | { |
| 12563 | .vendor = "SST", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12564 | .name = "SST25WF020A", |
| 12565 | .bustype = BUS_SPI, |
| 12566 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12567 | .model_id = SST_SST25WF020A, |
| 12568 | .total_size = 256, |
| 12569 | .page_size = 256, |
| 12570 | .feature_bits = FEATURE_WRSR_WREN, |
| 12571 | .tested = TEST_UNTESTED, |
| 12572 | .probe = probe_spi_rdid, |
| 12573 | .probe_timing = TIMING_ZERO, |
| 12574 | .block_erasers = |
| 12575 | { |
| 12576 | { |
| 12577 | .eraseblocks = { {4 * 1024, 64} }, |
| 12578 | .block_erase = spi_block_erase_20, |
| 12579 | }, { |
| 12580 | .eraseblocks = { {64 * 1024, 4} }, |
| 12581 | .block_erase = spi_block_erase_d8, |
| 12582 | }, { |
| 12583 | .eraseblocks = { {256 * 1024, 1} }, |
| 12584 | .block_erase = spi_block_erase_60, |
| 12585 | }, { |
| 12586 | .eraseblocks = { {256 * 1024, 1} }, |
| 12587 | .block_erase = spi_block_erase_c7, |
| 12588 | }, |
| 12589 | }, |
| 12590 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12591 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12592 | .write = spi_chip_write_256, |
| 12593 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12594 | .voltage = {1650, 1950}, |
| 12595 | }, |
| 12596 | |
| 12597 | { |
| 12598 | .vendor = "SST", |
| 12599 | .name = "SST25WF040B", |
| 12600 | .bustype = BUS_SPI, |
| 12601 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12602 | .model_id = SST_SST25WF040B, |
| 12603 | .total_size = 512, |
| 12604 | .page_size = 256, |
| 12605 | .feature_bits = FEATURE_WRSR_WREN, |
| 12606 | .tested = TEST_UNTESTED, |
| 12607 | .probe = probe_spi_rdid, |
| 12608 | .probe_timing = TIMING_ZERO, |
| 12609 | .block_erasers = |
| 12610 | { |
| 12611 | { |
| 12612 | .eraseblocks = { {4 * 1024, 128} }, |
| 12613 | .block_erase = spi_block_erase_20, |
| 12614 | }, { |
| 12615 | .eraseblocks = { {64 * 1024, 8} }, |
| 12616 | .block_erase = spi_block_erase_d8, |
| 12617 | }, { |
| 12618 | .eraseblocks = { {512 * 1024, 1} }, |
| 12619 | .block_erase = spi_block_erase_60, |
| 12620 | }, { |
| 12621 | .eraseblocks = { {512 * 1024, 1} }, |
| 12622 | .block_erase = spi_block_erase_c7, |
| 12623 | }, |
| 12624 | }, |
| 12625 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12626 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12627 | .write = spi_chip_write_256, |
| 12628 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12629 | .voltage = {1650, 1950}, |
| 12630 | }, |
| 12631 | |
| 12632 | { |
| 12633 | .vendor = "SST", |
| 12634 | .name = "SST25WF080B", |
| 12635 | .bustype = BUS_SPI, |
| 12636 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12637 | .model_id = SST_SST25WF080B, |
| 12638 | .total_size = 1024, |
| 12639 | .page_size = 256, |
| 12640 | .feature_bits = FEATURE_WRSR_WREN, |
| 12641 | .tested = TEST_OK_PREW, |
| 12642 | .probe = probe_spi_rdid, |
| 12643 | .probe_timing = TIMING_ZERO, |
| 12644 | .block_erasers = |
| 12645 | { |
| 12646 | { |
| 12647 | .eraseblocks = { {4 * 1024, 256} }, |
| 12648 | .block_erase = spi_block_erase_20, |
| 12649 | }, { |
| 12650 | .eraseblocks = { {64 * 1024, 16} }, |
| 12651 | .block_erase = spi_block_erase_d8, |
| 12652 | }, { |
| 12653 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12654 | .block_erase = spi_block_erase_60, |
| 12655 | }, { |
| 12656 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12657 | .block_erase = spi_block_erase_c7, |
| 12658 | }, |
| 12659 | }, |
| 12660 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12661 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12662 | .write = spi_chip_write_256, |
| 12663 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12664 | .voltage = {1650, 1950}, |
| 12665 | }, |
| 12666 | |
| 12667 | { |
| 12668 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12669 | .name = "SST25VF080B", |
| 12670 | .bustype = BUS_SPI, |
| 12671 | .manufacture_id = SST_ID, |
| 12672 | .model_id = SST_SST25VF080B, |
| 12673 | .total_size = 1024, |
| 12674 | .page_size = 256, |
| 12675 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12676 | .tested = TEST_OK_PREW, |
| 12677 | .probe = probe_spi_rdid, |
| 12678 | .probe_timing = TIMING_ZERO, |
| 12679 | .block_erasers = |
| 12680 | { |
| 12681 | { |
| 12682 | .eraseblocks = { {4 * 1024, 256} }, |
| 12683 | .block_erase = spi_block_erase_20, |
| 12684 | }, { |
| 12685 | .eraseblocks = { {32 * 1024, 32} }, |
| 12686 | .block_erase = spi_block_erase_52, |
| 12687 | }, { |
| 12688 | .eraseblocks = { {64 * 1024, 16} }, |
| 12689 | .block_erase = spi_block_erase_d8, |
| 12690 | }, { |
| 12691 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12692 | .block_erase = spi_block_erase_60, |
| 12693 | }, { |
| 12694 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12695 | .block_erase = spi_block_erase_c7, |
| 12696 | }, |
| 12697 | }, |
| 12698 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12699 | .unlock = spi_disable_blockprotect, |
| 12700 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12701 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12702 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12703 | }, |
| 12704 | |
| 12705 | { |
| 12706 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12707 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12708 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12709 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12710 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12711 | .total_size = 2048, |
| 12712 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12713 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12714 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12715 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12716 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12717 | .block_erasers = |
| 12718 | { |
| 12719 | { |
| 12720 | .eraseblocks = { {4 * 1024, 512} }, |
| 12721 | .block_erase = spi_block_erase_20, |
| 12722 | }, { |
| 12723 | .eraseblocks = { {32 * 1024, 64} }, |
| 12724 | .block_erase = spi_block_erase_52, |
| 12725 | }, { |
| 12726 | .eraseblocks = { {64 * 1024, 32} }, |
| 12727 | .block_erase = spi_block_erase_d8, |
| 12728 | }, { |
| 12729 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12730 | .block_erase = spi_block_erase_60, |
| 12731 | }, { |
| 12732 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12733 | .block_erase = spi_block_erase_c7, |
| 12734 | }, |
| 12735 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12736 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12737 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 12738 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12739 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12740 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12741 | }, |
| 12742 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12743 | { |
| 12744 | .vendor = "SST", |
| 12745 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12746 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12747 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12748 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12749 | .total_size = 4096, |
| 12750 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12751 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 12752 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12753 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12754 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12755 | .block_erasers = |
| 12756 | { |
| 12757 | { |
| 12758 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12759 | .block_erase = spi_block_erase_20, |
| 12760 | }, { |
| 12761 | .eraseblocks = { {32 * 1024, 128} }, |
| 12762 | .block_erase = spi_block_erase_52, |
| 12763 | }, { |
| 12764 | .eraseblocks = { {64 * 1024, 64} }, |
| 12765 | .block_erase = spi_block_erase_d8, |
| 12766 | }, { |
| 12767 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12768 | .block_erase = spi_block_erase_60, |
| 12769 | }, { |
| 12770 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12771 | .block_erase = spi_block_erase_c7, |
| 12772 | }, |
| 12773 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12774 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12775 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 12776 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12777 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12778 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12779 | }, |
| 12780 | |
| 12781 | { |
| 12782 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12783 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12784 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12785 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12786 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12787 | .total_size = 8192, |
| 12788 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12789 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12790 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12791 | .probe = probe_spi_rdid, |
| 12792 | .probe_timing = TIMING_ZERO, |
| 12793 | .block_erasers = |
| 12794 | { |
| 12795 | { |
| 12796 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12797 | .block_erase = spi_block_erase_20, |
| 12798 | }, { |
| 12799 | .eraseblocks = { {32 * 1024, 256} }, |
| 12800 | .block_erase = spi_block_erase_52, |
| 12801 | }, { |
| 12802 | .eraseblocks = { {64 * 1024, 128} }, |
| 12803 | .block_erase = spi_block_erase_d8, |
| 12804 | }, { |
| 12805 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12806 | .block_erase = spi_block_erase_60, |
| 12807 | }, { |
| 12808 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12809 | .block_erase = spi_block_erase_c7, |
| 12810 | }, |
| 12811 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12812 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12813 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 12814 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12815 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12816 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12817 | }, |
| 12818 | |
| 12819 | { |
| 12820 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12821 | .name = "SST25WF512", |
| 12822 | .bustype = BUS_SPI, |
| 12823 | .manufacture_id = SST_ID, |
| 12824 | .model_id = SST_SST25WF512, |
| 12825 | .total_size = 64, |
| 12826 | .page_size = 256, |
| 12827 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12828 | .tested = TEST_UNTESTED, |
| 12829 | .probe = probe_spi_rdid, |
| 12830 | .probe_timing = TIMING_ZERO, |
| 12831 | .block_erasers = |
| 12832 | { |
| 12833 | { |
| 12834 | .eraseblocks = { {4 * 1024, 16} }, |
| 12835 | .block_erase = spi_block_erase_20, |
| 12836 | }, { |
| 12837 | .eraseblocks = { {32 * 1024, 2} }, |
| 12838 | .block_erase = spi_block_erase_52, |
| 12839 | }, { |
| 12840 | .eraseblocks = { {1024 * 64, 1} }, |
| 12841 | .block_erase = spi_block_erase_60, |
| 12842 | }, { |
| 12843 | .eraseblocks = { {1024 * 64, 1} }, |
| 12844 | .block_erase = spi_block_erase_c7, |
| 12845 | }, |
| 12846 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12847 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12848 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12849 | .write = spi_aai_write, |
| 12850 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12851 | .voltage = {1650, 1950}, |
| 12852 | }, |
| 12853 | |
| 12854 | { |
| 12855 | .vendor = "SST", |
| 12856 | .name = "SST25WF010", |
| 12857 | .bustype = BUS_SPI, |
| 12858 | .manufacture_id = SST_ID, |
| 12859 | .model_id = SST_SST25WF010, |
| 12860 | .total_size = 128, |
| 12861 | .page_size = 256, |
| 12862 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12863 | .tested = TEST_UNTESTED, |
| 12864 | .probe = probe_spi_rdid, |
| 12865 | .probe_timing = TIMING_ZERO, |
| 12866 | .block_erasers = |
| 12867 | { |
| 12868 | { |
| 12869 | .eraseblocks = { {4 * 1024, 32} }, |
| 12870 | .block_erase = spi_block_erase_20, |
| 12871 | }, { |
| 12872 | .eraseblocks = { {32 * 1024, 4} }, |
| 12873 | .block_erase = spi_block_erase_52, |
| 12874 | }, { |
| 12875 | .eraseblocks = { {1024 * 128, 1} }, |
| 12876 | .block_erase = spi_block_erase_60, |
| 12877 | }, { |
| 12878 | .eraseblocks = { {1024 * 128, 1} }, |
| 12879 | .block_erase = spi_block_erase_c7, |
| 12880 | }, |
| 12881 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12882 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12883 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12884 | .write = spi_aai_write, |
| 12885 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12886 | .voltage = {1650, 1950}, |
| 12887 | }, |
| 12888 | |
| 12889 | { |
| 12890 | .vendor = "SST", |
| 12891 | .name = "SST25WF020", |
| 12892 | .bustype = BUS_SPI, |
| 12893 | .manufacture_id = SST_ID, |
| 12894 | .model_id = SST_SST25WF020, |
| 12895 | .total_size = 256, |
| 12896 | .page_size = 256, |
| 12897 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12898 | .tested = TEST_UNTESTED, |
| 12899 | .probe = probe_spi_rdid, |
| 12900 | .probe_timing = TIMING_ZERO, |
| 12901 | .block_erasers = |
| 12902 | { |
| 12903 | { |
| 12904 | .eraseblocks = { {4 * 1024, 64} }, |
| 12905 | .block_erase = spi_block_erase_20, |
| 12906 | }, { |
| 12907 | .eraseblocks = { {32 * 1024, 8} }, |
| 12908 | .block_erase = spi_block_erase_52, |
| 12909 | }, { |
| 12910 | .eraseblocks = { {64 * 1024, 4} }, |
| 12911 | .block_erase = spi_block_erase_d8, |
| 12912 | }, { |
| 12913 | .eraseblocks = { {1024 * 256, 1} }, |
| 12914 | .block_erase = spi_block_erase_60, |
| 12915 | }, { |
| 12916 | .eraseblocks = { {1024 * 256, 1} }, |
| 12917 | .block_erase = spi_block_erase_c7, |
| 12918 | }, |
| 12919 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12920 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12921 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12922 | .write = spi_aai_write, |
| 12923 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12924 | .voltage = {1650, 1950}, |
| 12925 | }, |
| 12926 | |
| 12927 | { |
| 12928 | .vendor = "SST", |
| 12929 | .name = "SST25WF040", |
| 12930 | .bustype = BUS_SPI, |
| 12931 | .manufacture_id = SST_ID, |
| 12932 | .model_id = SST_SST25WF040, |
| 12933 | .total_size = 512, |
| 12934 | .page_size = 256, |
| 12935 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12936 | .tested = TEST_UNTESTED, |
| 12937 | .probe = probe_spi_rdid, |
| 12938 | .probe_timing = TIMING_ZERO, |
| 12939 | .block_erasers = |
| 12940 | { |
| 12941 | { |
| 12942 | .eraseblocks = { {4 * 1024, 128} }, |
| 12943 | .block_erase = spi_block_erase_20, |
| 12944 | }, { |
| 12945 | .eraseblocks = { {32 * 1024, 16} }, |
| 12946 | .block_erase = spi_block_erase_52, |
| 12947 | }, { |
| 12948 | .eraseblocks = { {64 * 1024, 8} }, |
| 12949 | .block_erase = spi_block_erase_d8, |
| 12950 | }, { |
| 12951 | .eraseblocks = { {1024 * 512, 1} }, |
| 12952 | .block_erase = spi_block_erase_60, |
| 12953 | }, { |
| 12954 | .eraseblocks = { {1024 * 512, 1} }, |
| 12955 | .block_erase = spi_block_erase_c7, |
| 12956 | }, |
| 12957 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12958 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12959 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12960 | .write = spi_aai_write, |
| 12961 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12962 | .voltage = {1650, 1950}, |
| 12963 | }, |
| 12964 | |
| 12965 | { |
| 12966 | .vendor = "SST", |
| 12967 | .name = "SST25WF080", |
| 12968 | .bustype = BUS_SPI, |
| 12969 | .manufacture_id = SST_ID, |
| 12970 | .model_id = SST_SST25WF080, |
| 12971 | .total_size = 1024, |
| 12972 | .page_size = 256, |
| 12973 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12974 | .tested = TEST_OK_PREW, |
| 12975 | .probe = probe_spi_rdid, |
| 12976 | .probe_timing = TIMING_ZERO, |
| 12977 | .block_erasers = |
| 12978 | { |
| 12979 | { |
| 12980 | .eraseblocks = { {4 * 1024, 256} }, |
| 12981 | .block_erase = spi_block_erase_20, |
| 12982 | }, { |
| 12983 | .eraseblocks = { {32 * 1024, 32} }, |
| 12984 | .block_erase = spi_block_erase_52, |
| 12985 | }, { |
| 12986 | .eraseblocks = { {64 * 1024, 16} }, |
| 12987 | .block_erase = spi_block_erase_d8, |
| 12988 | }, { |
| 12989 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12990 | .block_erase = spi_block_erase_60, |
| 12991 | }, { |
| 12992 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12993 | .block_erase = spi_block_erase_c7, |
| 12994 | }, |
| 12995 | }, |
| 12996 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 12997 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12998 | .write = spi_aai_write, |
| 12999 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13000 | .voltage = {1650, 1950}, |
| 13001 | }, |
| 13002 | |
| 13003 | { |
| 13004 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13005 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13006 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13007 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13008 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13009 | .total_size = 512, |
| 13010 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13011 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13012 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13013 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13014 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13015 | .block_erasers = |
| 13016 | { |
| 13017 | { |
| 13018 | .eraseblocks = { {128, 4096} }, |
| 13019 | .block_erase = erase_sector_28sf040, |
| 13020 | }, { |
| 13021 | .eraseblocks = { {512 * 1024, 1} }, |
| 13022 | .block_erase = erase_chip_28sf040, |
| 13023 | } |
| 13024 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13025 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13026 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13027 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13028 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13029 | }, |
| 13030 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13031 | { |
| 13032 | .vendor = "SST", |
| 13033 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13034 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13035 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13036 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13037 | .total_size = 128, |
| 13038 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13039 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13040 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13041 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13042 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13043 | .block_erasers = |
| 13044 | { |
| 13045 | { |
| 13046 | .eraseblocks = { {128 * 1024, 1} }, |
| 13047 | .block_erase = erase_chip_block_jedec, |
| 13048 | } |
| 13049 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13050 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13051 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13052 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13053 | }, |
| 13054 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13055 | { |
| 13056 | .vendor = "SST", |
| 13057 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13058 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13059 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13060 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13061 | .total_size = 128, |
| 13062 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13063 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13064 | .tested = TEST_UNTESTED, |
| 13065 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13066 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13067 | .block_erasers = |
| 13068 | { |
| 13069 | { |
| 13070 | .eraseblocks = { {128 * 1024, 1} }, |
| 13071 | .block_erase = erase_chip_block_jedec, |
| 13072 | } |
| 13073 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13074 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13075 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13076 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13077 | }, |
| 13078 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13079 | { |
| 13080 | .vendor = "SST", |
| 13081 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13082 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13083 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13084 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13085 | .total_size = 256, |
| 13086 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13087 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13088 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13089 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13090 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13091 | .block_erasers = |
| 13092 | { |
| 13093 | { |
| 13094 | .eraseblocks = { {256 * 1024, 1} }, |
| 13095 | .block_erase = erase_chip_block_jedec, |
| 13096 | } |
| 13097 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13098 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13099 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13100 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13101 | }, |
| 13102 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13103 | { |
| 13104 | .vendor = "SST", |
| 13105 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13106 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13107 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13108 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13109 | .total_size = 256, |
| 13110 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13111 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13112 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13113 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13114 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13115 | .block_erasers = |
| 13116 | { |
| 13117 | { |
| 13118 | .eraseblocks = { {256 * 1024, 1} }, |
| 13119 | .block_erase = erase_chip_block_jedec, |
| 13120 | } |
| 13121 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13122 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13123 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13124 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13125 | }, |
| 13126 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13127 | { |
| 13128 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13129 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13130 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13131 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13132 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13133 | .total_size = 64, |
| 13134 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13135 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 13136 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13137 | .probe = probe_jedec, |
| 13138 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13139 | .block_erasers = |
| 13140 | { |
| 13141 | { |
| 13142 | .eraseblocks = { {4 * 1024, 16} }, |
| 13143 | .block_erase = erase_sector_jedec, |
| 13144 | }, { |
| 13145 | .eraseblocks = { {64 * 1024, 1} }, |
| 13146 | .block_erase = erase_chip_block_jedec, |
| 13147 | } |
| 13148 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13149 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13150 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13151 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13152 | }, |
| 13153 | |
| 13154 | { |
| 13155 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13156 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13157 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13158 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13159 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13160 | .total_size = 128, |
| 13161 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13162 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13163 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13164 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13165 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13166 | .block_erasers = |
| 13167 | { |
| 13168 | { |
| 13169 | .eraseblocks = { {4 * 1024, 32} }, |
| 13170 | .block_erase = erase_sector_jedec, |
| 13171 | }, { |
| 13172 | .eraseblocks = { {128 * 1024, 1} }, |
| 13173 | .block_erase = erase_chip_block_jedec, |
| 13174 | } |
| 13175 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13176 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13177 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13178 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13179 | }, |
| 13180 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13181 | { |
| 13182 | .vendor = "SST", |
| 13183 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13184 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13185 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13186 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13187 | .total_size = 256, |
| 13188 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13189 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 13190 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13191 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13192 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13193 | .block_erasers = |
| 13194 | { |
| 13195 | { |
| 13196 | .eraseblocks = { {4 * 1024, 64} }, |
| 13197 | .block_erase = erase_sector_jedec, |
| 13198 | }, { |
| 13199 | .eraseblocks = { {256 * 1024, 1} }, |
| 13200 | .block_erase = erase_chip_block_jedec, |
| 13201 | } |
| 13202 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13203 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13204 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13205 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13206 | }, |
| 13207 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13208 | { |
| 13209 | .vendor = "SST", |
| 13210 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13211 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13212 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13213 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13214 | .total_size = 512, |
| 13215 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13216 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 13217 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13218 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13219 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13220 | .block_erasers = |
| 13221 | { |
| 13222 | { |
| 13223 | .eraseblocks = { {4 * 1024, 128} }, |
| 13224 | .block_erase = erase_sector_jedec, |
| 13225 | }, { |
| 13226 | .eraseblocks = { {512 * 1024, 1} }, |
| 13227 | .block_erase = erase_chip_block_jedec, |
| 13228 | } |
| 13229 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13230 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13231 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13232 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13233 | }, |
| 13234 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13235 | { |
| 13236 | .vendor = "SST", |
| 13237 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13238 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13239 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13240 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13241 | .total_size = 64, |
| 13242 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13243 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 13244 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13245 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13246 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13247 | .block_erasers = |
| 13248 | { |
| 13249 | { |
| 13250 | .eraseblocks = { {4 * 1024, 16} }, |
| 13251 | .block_erase = erase_sector_jedec, |
| 13252 | }, { |
| 13253 | .eraseblocks = { {64 * 1024, 1} }, |
| 13254 | .block_erase = erase_chip_block_jedec, |
| 13255 | } |
| 13256 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13257 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13258 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13259 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13260 | }, |
| 13261 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13262 | { |
| 13263 | .vendor = "SST", |
| 13264 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13265 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13266 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13267 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13268 | .total_size = 128, |
| 13269 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13270 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 13271 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13272 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13273 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13274 | .block_erasers = |
| 13275 | { |
| 13276 | { |
| 13277 | .eraseblocks = { {4 * 1024, 32} }, |
| 13278 | .block_erase = erase_sector_jedec, |
| 13279 | }, { |
| 13280 | .eraseblocks = { {128 * 1024, 1} }, |
| 13281 | .block_erase = erase_chip_block_jedec, |
| 13282 | } |
| 13283 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13284 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13285 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13286 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13287 | }, |
| 13288 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13289 | { |
| 13290 | .vendor = "SST", |
| 13291 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13292 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13293 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13294 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13295 | .total_size = 256, |
| 13296 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13297 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13298 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13299 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13300 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13301 | .block_erasers = |
| 13302 | { |
| 13303 | { |
| 13304 | .eraseblocks = { {4 * 1024, 64} }, |
| 13305 | .block_erase = erase_sector_jedec, |
| 13306 | }, { |
| 13307 | .eraseblocks = { {256 * 1024, 1} }, |
| 13308 | .block_erase = erase_chip_block_jedec, |
| 13309 | } |
| 13310 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13311 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13312 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13313 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13314 | }, |
| 13315 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13316 | { |
| 13317 | .vendor = "SST", |
| 13318 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13319 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13320 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13321 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13322 | .total_size = 512, |
| 13323 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13324 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13325 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13326 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13327 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13328 | .block_erasers = |
| 13329 | { |
| 13330 | { |
| 13331 | .eraseblocks = { {4 * 1024, 128} }, |
| 13332 | .block_erase = erase_sector_jedec, |
| 13333 | }, { |
| 13334 | .eraseblocks = { {512 * 1024, 1} }, |
| 13335 | .block_erase = erase_chip_block_jedec, |
| 13336 | } |
| 13337 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13338 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13339 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13340 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 13341 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13342 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13343 | { |
| 13344 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13345 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13346 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13347 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13348 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13349 | .total_size = 1024, |
| 13350 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13351 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13352 | .tested = TEST_UNTESTED, |
| 13353 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13354 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13355 | .block_erasers = |
| 13356 | { |
| 13357 | { |
| 13358 | .eraseblocks = { {4 * 1024, 256} }, |
| 13359 | .block_erase = erase_sector_jedec, |
| 13360 | }, { |
| 13361 | .eraseblocks = { {64 * 1024, 16} }, |
| 13362 | .block_erase = erase_block_jedec, |
| 13363 | }, { |
| 13364 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13365 | .block_erase = erase_chip_block_jedec, |
| 13366 | } |
| 13367 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13368 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13369 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13370 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13371 | }, |
| 13372 | |
| 13373 | { |
| 13374 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13375 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13376 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13377 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13378 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13379 | .total_size = 256, |
| 13380 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13381 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13382 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13383 | .probe = probe_jedec, |
| 13384 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13385 | .block_erasers = |
| 13386 | { |
| 13387 | { |
| 13388 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13389 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13390 | }, { |
| 13391 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13392 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13393 | }, { |
| 13394 | .eraseblocks = { {256 * 1024, 1} }, |
| 13395 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13396 | } |
| 13397 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13398 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13399 | .unlock = unlock_sst_fwhub, |
| 13400 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13401 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13402 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13403 | }, |
| 13404 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13405 | { |
| 13406 | .vendor = "SST", |
| 13407 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13408 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13409 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13410 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13411 | .total_size = 384, |
| 13412 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13413 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13414 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13415 | .probe = probe_jedec, |
| 13416 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13417 | .block_erasers = |
| 13418 | { |
| 13419 | { |
| 13420 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13421 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13422 | }, { |
| 13423 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13424 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13425 | }, { |
| 13426 | .eraseblocks = { {384 * 1024, 1} }, |
| 13427 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13428 | } |
| 13429 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13430 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13431 | .unlock = unlock_sst_fwhub, |
| 13432 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13433 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13434 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13435 | }, |
| 13436 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13437 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13438 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 13439 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 13440 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13441 | .vendor = "SST", |
| 13442 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13443 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13444 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13445 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13446 | .total_size = 512, |
| 13447 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13448 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13449 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13450 | .probe = probe_jedec, |
| 13451 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13452 | .block_erasers = |
| 13453 | { |
| 13454 | { |
| 13455 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13456 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13457 | }, { |
| 13458 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13459 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13460 | }, { |
| 13461 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13462 | .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] | 13463 | }, |
| 13464 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13465 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13466 | .unlock = unlock_sst_fwhub, |
| 13467 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13468 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13469 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13470 | }, |
| 13471 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13472 | { |
| 13473 | .vendor = "SST", |
| 13474 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13475 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13476 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13477 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13478 | .total_size = 512, |
| 13479 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13480 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13481 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13482 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13483 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13484 | .block_erasers = |
| 13485 | { |
| 13486 | { |
| 13487 | .eraseblocks = { {4 * 1024, 128} }, |
| 13488 | .block_erase = erase_sector_49lfxxxc, |
| 13489 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13490 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13491 | {64 * 1024, 7}, |
| 13492 | {32 * 1024, 1}, |
| 13493 | {8 * 1024, 2}, |
| 13494 | {16 * 1024, 1}, |
| 13495 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13496 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13497 | } |
| 13498 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13499 | .printlock = printlock_regspace2_block_eraser_1, |
| 13500 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13501 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13502 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13503 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13504 | }, |
| 13505 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13506 | { |
| 13507 | .vendor = "SST", |
| 13508 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13509 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13510 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13511 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13512 | .total_size = 1024, |
| 13513 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13514 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13515 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13516 | .probe = probe_jedec, |
| 13517 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13518 | .block_erasers = |
| 13519 | { |
| 13520 | { |
| 13521 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13522 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13523 | }, { |
| 13524 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13525 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13526 | }, { |
| 13527 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13528 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13529 | } |
| 13530 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13531 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13532 | .unlock = unlock_sst_fwhub, |
| 13533 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13534 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13535 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13536 | }, |
| 13537 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13538 | { |
| 13539 | .vendor = "SST", |
| 13540 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13541 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13542 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13543 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13544 | .total_size = 1024, |
| 13545 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13546 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13547 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13548 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13549 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13550 | .block_erasers = |
| 13551 | { |
| 13552 | { |
| 13553 | .eraseblocks = { {4 * 1024, 256} }, |
| 13554 | .block_erase = erase_sector_49lfxxxc, |
| 13555 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13556 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13557 | {64 * 1024, 15}, |
| 13558 | {32 * 1024, 1}, |
| 13559 | {8 * 1024, 2}, |
| 13560 | {16 * 1024, 1}, |
| 13561 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13562 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13563 | } |
| 13564 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13565 | .printlock = printlock_regspace2_block_eraser_1, |
| 13566 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13567 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13568 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13569 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13570 | }, |
| 13571 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13572 | { |
| 13573 | .vendor = "SST", |
| 13574 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13575 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13576 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13577 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13578 | .total_size = 2048, |
| 13579 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13580 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13581 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13582 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13583 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13584 | .block_erasers = |
| 13585 | { |
| 13586 | { |
| 13587 | .eraseblocks = { {4 * 1024, 512} }, |
| 13588 | .block_erase = erase_sector_49lfxxxc, |
| 13589 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13590 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13591 | {64 * 1024, 31}, |
| 13592 | {32 * 1024, 1}, |
| 13593 | {8 * 1024, 2}, |
| 13594 | {16 * 1024, 1}, |
| 13595 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13596 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13597 | } |
| 13598 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13599 | .printlock = printlock_regspace2_block_eraser_1, |
| 13600 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13601 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13602 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13603 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13604 | }, |
| 13605 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13606 | { |
| 13607 | .vendor = "SST", |
| 13608 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13609 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13610 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13611 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13612 | .total_size = 256, |
| 13613 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13614 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 13615 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13616 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13617 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13618 | .block_erasers = |
| 13619 | { |
| 13620 | { |
| 13621 | .eraseblocks = { {4 * 1024, 64} }, |
| 13622 | .block_erase = erase_sector_jedec, |
| 13623 | }, { |
| 13624 | .eraseblocks = { {16 * 1024, 16} }, |
| 13625 | .block_erase = erase_block_jedec, |
| 13626 | }, { |
| 13627 | .eraseblocks = { {256 * 1024, 1} }, |
| 13628 | .block_erase = NULL, |
| 13629 | } |
| 13630 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13631 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13632 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13633 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 13634 | }, |
| 13635 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13636 | { |
| 13637 | .vendor = "SST", |
| 13638 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13639 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13640 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13641 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13642 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 13643 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13644 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13645 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13646 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13647 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13648 | .block_erasers = |
| 13649 | { |
| 13650 | { |
| 13651 | .eraseblocks = { {4 * 1024, 64} }, |
| 13652 | .block_erase = erase_sector_jedec, |
| 13653 | }, { |
| 13654 | .eraseblocks = { {16 * 1024, 16} }, |
| 13655 | .block_erase = erase_block_jedec, |
| 13656 | }, { |
| 13657 | .eraseblocks = { {256 * 1024, 1} }, |
| 13658 | .block_erase = NULL, |
| 13659 | } |
| 13660 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13661 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13663 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13664 | }, |
| 13665 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13666 | { |
| 13667 | .vendor = "SST", |
| 13668 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13669 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13670 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13671 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13672 | .total_size = 512, |
| 13673 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13674 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13675 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13676 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13677 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13678 | .block_erasers = |
| 13679 | { |
| 13680 | { |
| 13681 | .eraseblocks = { {4 * 1024, 128} }, |
| 13682 | .block_erase = erase_sector_jedec, |
| 13683 | }, { |
| 13684 | .eraseblocks = { {64 * 1024, 8} }, |
| 13685 | .block_erase = erase_block_jedec, |
| 13686 | }, { |
| 13687 | .eraseblocks = { {512 * 1024, 1} }, |
| 13688 | .block_erase = NULL, |
| 13689 | } |
| 13690 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13691 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13692 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13693 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13694 | }, |
| 13695 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13696 | { |
| 13697 | .vendor = "SST", |
| 13698 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13699 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13700 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13701 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13702 | .total_size = 512, |
| 13703 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 13704 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13705 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13706 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13707 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13708 | .block_erasers = |
| 13709 | { |
| 13710 | { |
| 13711 | .eraseblocks = { {4 * 1024, 128} }, |
| 13712 | .block_erase = erase_sector_jedec, |
| 13713 | }, { |
| 13714 | .eraseblocks = { {64 * 1024, 8} }, |
| 13715 | .block_erase = erase_block_jedec, |
| 13716 | }, { |
| 13717 | .eraseblocks = { {512 * 1024, 1} }, |
| 13718 | .block_erase = NULL, |
| 13719 | } |
| 13720 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13721 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13722 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13723 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13724 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13725 | }, |
| 13726 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13727 | { |
| 13728 | .vendor = "SST", |
| 13729 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13730 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13731 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13732 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13733 | .total_size = 1024, |
| 13734 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13735 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 13736 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13737 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13738 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13739 | .block_erasers = |
| 13740 | { |
| 13741 | { |
| 13742 | .eraseblocks = { {4 * 1024, 256} }, |
| 13743 | .block_erase = erase_sector_jedec, |
| 13744 | }, { |
| 13745 | .eraseblocks = { {64 * 1024, 16} }, |
| 13746 | .block_erase = erase_block_jedec, |
| 13747 | }, { |
| 13748 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13749 | .block_erase = NULL, |
| 13750 | } |
| 13751 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13752 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13753 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13754 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13755 | }, |
| 13756 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13757 | { |
| 13758 | .vendor = "SST", |
| 13759 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13760 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13761 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13762 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13763 | .total_size = 2048, |
| 13764 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13765 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13766 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13767 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13768 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13769 | .block_erasers = |
| 13770 | { |
| 13771 | { |
| 13772 | .eraseblocks = { {4 * 1024, 512} }, |
| 13773 | .block_erase = erase_sector_49lfxxxc, |
| 13774 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13775 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13776 | {64 * 1024, 31}, |
| 13777 | {32 * 1024, 1}, |
| 13778 | {8 * 1024, 2}, |
| 13779 | {16 * 1024, 1}, |
| 13780 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13781 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13782 | } |
| 13783 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13784 | .printlock = printlock_regspace2_block_eraser_1, |
| 13785 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13786 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13787 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13788 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13789 | }, |
| 13790 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13791 | { |
| 13792 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13793 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13794 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13795 | .manufacture_id = ST_ID, |
| 13796 | .model_id = ST_M29F002B, |
| 13797 | .total_size = 256, |
| 13798 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13799 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13800 | .tested = TEST_UNTESTED, |
| 13801 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13802 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13803 | .block_erasers = |
| 13804 | { |
| 13805 | { |
| 13806 | .eraseblocks = { |
| 13807 | {16 * 1024, 1}, |
| 13808 | {8 * 1024, 2}, |
| 13809 | {32 * 1024, 1}, |
| 13810 | {64 * 1024, 3}, |
| 13811 | }, |
| 13812 | .block_erase = erase_sector_jedec, |
| 13813 | }, { |
| 13814 | .eraseblocks = { {256 * 1024, 1} }, |
| 13815 | .block_erase = erase_chip_block_jedec, |
| 13816 | } |
| 13817 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13818 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13819 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13820 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13821 | }, |
| 13822 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13823 | { |
| 13824 | .vendor = "ST", |
| 13825 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13826 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13827 | .manufacture_id = ST_ID, |
| 13828 | .model_id = ST_M29F002T, |
| 13829 | .total_size = 256, |
| 13830 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13831 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13832 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13833 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13834 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13835 | .block_erasers = |
| 13836 | { |
| 13837 | { |
| 13838 | .eraseblocks = { |
| 13839 | {64 * 1024, 3}, |
| 13840 | {32 * 1024, 1}, |
| 13841 | {8 * 1024, 2}, |
| 13842 | {16 * 1024, 1}, |
| 13843 | }, |
| 13844 | .block_erase = erase_sector_jedec, |
| 13845 | }, { |
| 13846 | .eraseblocks = { {256 * 1024, 1} }, |
| 13847 | .block_erase = erase_chip_block_jedec, |
| 13848 | } |
| 13849 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13850 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13851 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13852 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13853 | }, |
| 13854 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13855 | { |
| 13856 | .vendor = "ST", |
| 13857 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13858 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13859 | .manufacture_id = ST_ID, |
| 13860 | .model_id = ST_M29F040B, |
| 13861 | .total_size = 512, |
| 13862 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13863 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13864 | .tested = TEST_UNTESTED, |
| 13865 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 13866 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13867 | .block_erasers = |
| 13868 | { |
| 13869 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13870 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13871 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13872 | }, { |
| 13873 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13874 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13875 | } |
| 13876 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13877 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13878 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13879 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13880 | }, |
| 13881 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13882 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13883 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13884 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13885 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13886 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13887 | .manufacture_id = ST_ID, |
| 13888 | .model_id = ST_M29F400BB, |
| 13889 | .total_size = 512, |
| 13890 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13891 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13892 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13893 | .probe = probe_jedec, |
| 13894 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13895 | .block_erasers = |
| 13896 | { |
| 13897 | { |
| 13898 | .eraseblocks = { |
| 13899 | {16 * 1024, 1}, |
| 13900 | {8 * 1024, 2}, |
| 13901 | {32 * 1024, 1}, |
| 13902 | {64 * 1024, 7}, |
| 13903 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13904 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13905 | }, { |
| 13906 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13907 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13908 | } |
| 13909 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13910 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13911 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13912 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13913 | }, |
| 13914 | { |
| 13915 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 13916 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13917 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13918 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13919 | .manufacture_id = ST_ID, |
| 13920 | .model_id = ST_M29F400BT, |
| 13921 | .total_size = 512, |
| 13922 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13923 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13924 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13925 | .probe = probe_jedec, |
| 13926 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13927 | .block_erasers = |
| 13928 | { |
| 13929 | { |
| 13930 | .eraseblocks = { |
| 13931 | {64 * 1024, 7}, |
| 13932 | {32 * 1024, 1}, |
| 13933 | {8 * 1024, 2}, |
| 13934 | {16 * 1024, 1}, |
| 13935 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13936 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13937 | }, { |
| 13938 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13939 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13940 | } |
| 13941 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13942 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13943 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13944 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13945 | }, |
| 13946 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13947 | { |
| 13948 | .vendor = "ST", |
| 13949 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13950 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13951 | .manufacture_id = ST_ID, |
| 13952 | .model_id = ST_M29W010B, |
| 13953 | .total_size = 128, |
| 13954 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13955 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13956 | .tested = TEST_UNTESTED, |
| 13957 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13958 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13959 | .block_erasers = |
| 13960 | { |
| 13961 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13962 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13963 | .block_erase = erase_sector_jedec, |
| 13964 | }, { |
| 13965 | .eraseblocks = { {128 * 1024, 1} }, |
| 13966 | .block_erase = erase_chip_block_jedec, |
| 13967 | } |
| 13968 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13969 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13970 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13971 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13972 | }, |
| 13973 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13974 | { |
| 13975 | .vendor = "ST", |
| 13976 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13977 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13978 | .manufacture_id = ST_ID, |
| 13979 | .model_id = ST_M29W040B, |
| 13980 | .total_size = 512, |
| 13981 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13982 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13983 | .tested = TEST_UNTESTED, |
| 13984 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13985 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13986 | .block_erasers = |
| 13987 | { |
| 13988 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13989 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13990 | .block_erase = erase_sector_jedec, |
| 13991 | }, { |
| 13992 | .eraseblocks = { {512 * 1024, 1} }, |
| 13993 | .block_erase = erase_chip_block_jedec, |
| 13994 | } |
| 13995 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13996 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13997 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13998 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13999 | }, |
| 14000 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14001 | { |
| 14002 | .vendor = "ST", |
| 14003 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14004 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14005 | .manufacture_id = ST_ID, |
| 14006 | .model_id = ST_M29W512B, |
| 14007 | .total_size = 64, |
| 14008 | .page_size = 64 * 1024, |
| 14009 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14010 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14011 | .probe = probe_jedec, |
| 14012 | .probe_timing = TIMING_ZERO, |
| 14013 | .block_erasers = |
| 14014 | { |
| 14015 | { |
| 14016 | .eraseblocks = { {64 * 1024, 1} }, |
| 14017 | .block_erase = erase_chip_block_jedec, |
| 14018 | } |
| 14019 | }, |
| 14020 | .write = write_jedec_1, |
| 14021 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14022 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14023 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 14024 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14025 | { |
| 14026 | .vendor = "ST", |
| 14027 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14028 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14029 | .manufacture_id = ST_ID, |
| 14030 | .model_id = ST_M50FLW040A, |
| 14031 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14032 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14033 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14034 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14035 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14036 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14037 | .block_erasers = |
| 14038 | { |
| 14039 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14040 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14041 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14042 | {64 * 1024, 5}, /* block */ |
| 14043 | {4 * 1024, 16}, /* sector */ |
| 14044 | {4 * 1024, 16}, /* sector */ |
| 14045 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14046 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14047 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14048 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14049 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14050 | } |
| 14051 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14052 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14053 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14054 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14055 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14056 | }, |
| 14057 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14058 | { |
| 14059 | .vendor = "ST", |
| 14060 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14061 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14062 | .manufacture_id = ST_ID, |
| 14063 | .model_id = ST_M50FLW040B, |
| 14064 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14065 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14066 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14067 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14068 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14069 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14070 | .block_erasers = |
| 14071 | { |
| 14072 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14073 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14074 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14075 | {4 * 1024, 16}, /* sector */ |
| 14076 | {64 * 1024, 5}, /* block */ |
| 14077 | {4 * 1024, 16}, /* sector */ |
| 14078 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14079 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14080 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14081 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14082 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14083 | } |
| 14084 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14085 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14086 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14087 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14088 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14089 | }, |
| 14090 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14091 | { |
| 14092 | .vendor = "ST", |
| 14093 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14094 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14095 | .manufacture_id = ST_ID, |
| 14096 | .model_id = ST_M50FLW080A, |
| 14097 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14098 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14099 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14100 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14101 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14102 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14103 | .block_erasers = |
| 14104 | { |
| 14105 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14106 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14107 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14108 | {64 * 1024, 13}, /* block */ |
| 14109 | {4 * 1024, 16}, /* sector */ |
| 14110 | {4 * 1024, 16}, /* sector */ |
| 14111 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14112 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14113 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14114 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14115 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14116 | } |
| 14117 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14118 | .printlock = printlock_regspace2_block_eraser_0, |
| 14119 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14120 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14121 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14122 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14123 | }, |
| 14124 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14125 | { |
| 14126 | .vendor = "ST", |
| 14127 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14128 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14129 | .manufacture_id = ST_ID, |
| 14130 | .model_id = ST_M50FLW080B, |
| 14131 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14132 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14133 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14134 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14135 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14136 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14137 | .block_erasers = |
| 14138 | { |
| 14139 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14140 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14141 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14142 | {4 * 1024, 16}, /* sector */ |
| 14143 | {64 * 1024, 13}, /* block */ |
| 14144 | {4 * 1024, 16}, /* sector */ |
| 14145 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14146 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14147 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14148 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14149 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14150 | } |
| 14151 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14152 | .printlock = printlock_regspace2_block_eraser_0, |
| 14153 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14154 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14155 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14156 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14157 | }, |
| 14158 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14159 | { |
| 14160 | .vendor = "ST", |
| 14161 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14162 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14163 | .manufacture_id = ST_ID, |
| 14164 | .model_id = ST_M50FW002, |
| 14165 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14166 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14167 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14168 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14169 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14170 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14171 | .block_erasers = |
| 14172 | { |
| 14173 | { |
| 14174 | .eraseblocks = { |
| 14175 | {64 * 1024, 3}, |
| 14176 | {32 * 1024, 1}, |
| 14177 | {8 * 1024, 2}, |
| 14178 | {16 * 1024, 1}, |
| 14179 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14180 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14181 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14182 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14183 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14184 | } |
| 14185 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14186 | .printlock = printlock_regspace2_block_eraser_0, |
| 14187 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14188 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14189 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14190 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14191 | }, |
| 14192 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14193 | { |
| 14194 | .vendor = "ST", |
| 14195 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14196 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14197 | .manufacture_id = ST_ID, |
| 14198 | .model_id = ST_M50FW016, |
| 14199 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14200 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14201 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14202 | .tested = TEST_UNTESTED, |
| 14203 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14204 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14205 | .block_erasers = |
| 14206 | { |
| 14207 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14208 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14209 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14210 | } |
| 14211 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14212 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14213 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14214 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14215 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14216 | }, |
| 14217 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14218 | { |
| 14219 | .vendor = "ST", |
| 14220 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14221 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14222 | .manufacture_id = ST_ID, |
| 14223 | .model_id = ST_M50FW040, |
| 14224 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14225 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14226 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14227 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14228 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14229 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14230 | .block_erasers = |
| 14231 | { |
| 14232 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14233 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14234 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14235 | } |
| 14236 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14237 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14238 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14239 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14240 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14241 | }, |
| 14242 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14243 | { |
| 14244 | .vendor = "ST", |
| 14245 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14246 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14247 | .manufacture_id = ST_ID, |
| 14248 | .model_id = ST_M50FW080, |
| 14249 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14250 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14251 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14252 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14253 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14254 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14255 | .block_erasers = |
| 14256 | { |
| 14257 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14258 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14259 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14260 | } |
| 14261 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14262 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14263 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14264 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14265 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14266 | }, |
| 14267 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14268 | { |
| 14269 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14270 | .name = "M50LPW080", |
| 14271 | .bustype = BUS_LPC, /* A/A Mux */ |
| 14272 | .manufacture_id = ST_ID, |
| 14273 | .model_id = ST_M50LPW080, |
| 14274 | .total_size = 1024, |
| 14275 | .page_size = 0, |
| 14276 | .feature_bits = FEATURE_REGISTERMAP, |
| 14277 | .tested = TEST_UNTESTED, |
| 14278 | .probe = probe_82802ab, |
| 14279 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14280 | .block_erasers = |
| 14281 | { |
| 14282 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14283 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14284 | .block_erase = erase_block_82802ab, |
| 14285 | } |
| 14286 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14287 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14288 | .write = write_82802ab, |
| 14289 | .read = read_memmapped, |
| 14290 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 14291 | }, |
| 14292 | |
| 14293 | { |
| 14294 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14295 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14296 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14297 | .manufacture_id = ST_ID, |
| 14298 | .model_id = ST_M50LPW116, |
| 14299 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14300 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14301 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14302 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14303 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14304 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14305 | .block_erasers = |
| 14306 | { |
| 14307 | { |
| 14308 | .eraseblocks = { |
| 14309 | {4 * 1024, 16}, |
| 14310 | {64 * 1024, 30}, |
| 14311 | {32 * 1024, 1}, |
| 14312 | {8 * 1024, 2}, |
| 14313 | {16 * 1024, 1}, |
| 14314 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14315 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14316 | } |
| 14317 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14318 | .printlock = printlock_regspace2_block_eraser_0, |
| 14319 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14320 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14321 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14322 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14323 | }, |
| 14324 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14325 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14326 | .vendor = "SyncMOS/MoselVitelic", |
| 14327 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14328 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14329 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14330 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14331 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14332 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14333 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14334 | .tested = TEST_UNTESTED, |
| 14335 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14336 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14337 | .block_erasers = |
| 14338 | { |
| 14339 | { |
| 14340 | .eraseblocks = { {512, 256} }, |
| 14341 | .block_erase = erase_sector_jedec, |
| 14342 | }, { |
| 14343 | .eraseblocks = { {128 * 1024, 1} }, |
| 14344 | .block_erase = erase_chip_block_jedec, |
| 14345 | }, |
| 14346 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14347 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14348 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14349 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14350 | }, |
| 14351 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14352 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14353 | .vendor = "SyncMOS/MoselVitelic", |
| 14354 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14355 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14356 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14357 | .model_id = SM_MVC_29C51001T, |
| 14358 | .total_size = 128, |
| 14359 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14360 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14361 | .tested = TEST_UNTESTED, |
| 14362 | .probe = probe_jedec, |
| 14363 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14364 | .block_erasers = |
| 14365 | { |
| 14366 | { |
| 14367 | .eraseblocks = { {512, 256} }, |
| 14368 | .block_erase = erase_sector_jedec, |
| 14369 | }, { |
| 14370 | .eraseblocks = { {128 * 1024, 1} }, |
| 14371 | .block_erase = erase_chip_block_jedec, |
| 14372 | }, |
| 14373 | }, |
| 14374 | .write = write_jedec_1, |
| 14375 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14376 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14377 | }, |
| 14378 | |
| 14379 | { |
| 14380 | .vendor = "SyncMOS/MoselVitelic", |
| 14381 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14382 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14383 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14384 | .model_id = SM_MVC_29C51002B, |
| 14385 | .total_size = 256, |
| 14386 | .page_size = 512, |
| 14387 | .feature_bits = FEATURE_EITHER_RESET, |
| 14388 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14389 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14390 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14391 | .block_erasers = |
| 14392 | { |
| 14393 | { |
| 14394 | .eraseblocks = { {512, 512} }, |
| 14395 | .block_erase = erase_sector_jedec, |
| 14396 | }, { |
| 14397 | .eraseblocks = { {256 * 1024, 1} }, |
| 14398 | .block_erase = erase_chip_block_jedec, |
| 14399 | }, |
| 14400 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14401 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14402 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14403 | }, |
| 14404 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14405 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14406 | .vendor = "SyncMOS/MoselVitelic", |
| 14407 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14408 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14409 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14410 | .model_id = SM_MVC_29C51002T, |
| 14411 | .total_size = 256, |
| 14412 | .page_size = 512, |
| 14413 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14414 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14415 | .probe = probe_jedec, |
| 14416 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14417 | .block_erasers = |
| 14418 | { |
| 14419 | { |
| 14420 | .eraseblocks = { {512, 512} }, |
| 14421 | .block_erase = erase_sector_jedec, |
| 14422 | }, { |
| 14423 | .eraseblocks = { {256 * 1024, 1} }, |
| 14424 | .block_erase = erase_chip_block_jedec, |
| 14425 | }, |
| 14426 | }, |
| 14427 | .write = write_jedec_1, |
| 14428 | .read = read_memmapped, |
| 14429 | }, |
| 14430 | |
| 14431 | { |
| 14432 | .vendor = "SyncMOS/MoselVitelic", |
| 14433 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14434 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14435 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14436 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14437 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14438 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14439 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14440 | .tested = TEST_UNTESTED, |
| 14441 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14442 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14443 | .block_erasers = |
| 14444 | { |
| 14445 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14446 | .eraseblocks = { {1024, 512} }, |
| 14447 | .block_erase = erase_sector_jedec, |
| 14448 | }, { |
| 14449 | .eraseblocks = { {512 * 1024, 1} }, |
| 14450 | .block_erase = erase_chip_block_jedec, |
| 14451 | }, |
| 14452 | }, |
| 14453 | .write = write_jedec_1, |
| 14454 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14455 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14456 | }, |
| 14457 | |
| 14458 | { |
| 14459 | .vendor = "SyncMOS/MoselVitelic", |
| 14460 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14461 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14462 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14463 | .model_id = SM_MVC_29C51004T, |
| 14464 | .total_size = 512, |
| 14465 | .page_size = 1024, |
| 14466 | .feature_bits = FEATURE_EITHER_RESET, |
| 14467 | .tested = TEST_UNTESTED, |
| 14468 | .probe = probe_jedec, |
| 14469 | .probe_timing = TIMING_ZERO, |
| 14470 | .block_erasers = |
| 14471 | { |
| 14472 | { |
| 14473 | .eraseblocks = { {1024, 512} }, |
| 14474 | .block_erase = erase_sector_jedec, |
| 14475 | }, { |
| 14476 | .eraseblocks = { {512 * 1024, 1} }, |
| 14477 | .block_erase = erase_chip_block_jedec, |
| 14478 | }, |
| 14479 | }, |
| 14480 | .write = write_jedec_1, |
| 14481 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14482 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14483 | }, |
| 14484 | |
| 14485 | { |
| 14486 | .vendor = "SyncMOS/MoselVitelic", |
| 14487 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14488 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14489 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14490 | .model_id = SM_MVC_29C31004B, |
| 14491 | .total_size = 512, |
| 14492 | .page_size = 1024, |
| 14493 | .feature_bits = FEATURE_EITHER_RESET, |
| 14494 | .tested = TEST_UNTESTED, |
| 14495 | .probe = probe_jedec, |
| 14496 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14497 | .block_erasers = |
| 14498 | { |
| 14499 | { |
| 14500 | .eraseblocks = { {1024, 512} }, |
| 14501 | .block_erase = erase_sector_jedec, |
| 14502 | }, { |
| 14503 | .eraseblocks = { {512 * 1024, 1} }, |
| 14504 | .block_erase = erase_chip_block_jedec, |
| 14505 | }, |
| 14506 | }, |
| 14507 | .write = write_jedec_1, |
| 14508 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14509 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14510 | }, |
| 14511 | |
| 14512 | { |
| 14513 | .vendor = "SyncMOS/MoselVitelic", |
| 14514 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14515 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14516 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14517 | .model_id = SM_MVC_29C31004T, |
| 14518 | .total_size = 512, |
| 14519 | .page_size = 1024, |
| 14520 | .feature_bits = FEATURE_EITHER_RESET, |
| 14521 | .tested = TEST_UNTESTED, |
| 14522 | .probe = probe_jedec, |
| 14523 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14524 | .block_erasers = |
| 14525 | { |
| 14526 | { |
| 14527 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14528 | .block_erase = erase_sector_jedec, |
| 14529 | }, { |
| 14530 | .eraseblocks = { {512 * 1024, 1} }, |
| 14531 | .block_erase = erase_chip_block_jedec, |
| 14532 | }, |
| 14533 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14534 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14535 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14536 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14537 | }, |
| 14538 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14539 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 14540 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14541 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14542 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14543 | .manufacture_id = TI_OLD_ID, |
| 14544 | .model_id = TI_TMS29F002RB, |
| 14545 | .total_size = 256, |
| 14546 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14547 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14548 | .tested = TEST_UNTESTED, |
| 14549 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14550 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14551 | .block_erasers = |
| 14552 | { |
| 14553 | { |
| 14554 | .eraseblocks = { |
| 14555 | {16 * 1024, 1}, |
| 14556 | {8 * 1024, 2}, |
| 14557 | {32 * 1024, 1}, |
| 14558 | {64 * 1024, 3}, |
| 14559 | }, |
| 14560 | .block_erase = erase_sector_jedec, |
| 14561 | }, { |
| 14562 | .eraseblocks = { {256 * 1024, 1} }, |
| 14563 | .block_erase = erase_chip_block_jedec, |
| 14564 | }, |
| 14565 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14566 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14567 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14568 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14569 | }, |
| 14570 | |
| 14571 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 14572 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14573 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14574 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14575 | .manufacture_id = TI_OLD_ID, |
| 14576 | .model_id = TI_TMS29F002RT, |
| 14577 | .total_size = 256, |
| 14578 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14579 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14580 | .tested = TEST_UNTESTED, |
| 14581 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14582 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14583 | .block_erasers = |
| 14584 | { |
| 14585 | { |
| 14586 | .eraseblocks = { |
| 14587 | {64 * 1024, 3}, |
| 14588 | {32 * 1024, 1}, |
| 14589 | {8 * 1024, 2}, |
| 14590 | {16 * 1024, 1}, |
| 14591 | }, |
| 14592 | .block_erase = erase_sector_jedec, |
| 14593 | }, { |
| 14594 | .eraseblocks = { {256 * 1024, 1} }, |
| 14595 | .block_erase = erase_chip_block_jedec, |
| 14596 | }, |
| 14597 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14598 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14599 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14600 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14601 | }, |
| 14602 | |
| 14603 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14604 | .vendor = "Winbond", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 14605 | .name = "W25Q40.V", |
| 14606 | .bustype = BUS_SPI, |
| 14607 | .manufacture_id = WINBOND_NEX_ID, |
| 14608 | .model_id = WINBOND_NEX_W25Q40_V, |
| 14609 | .total_size = 512, |
| 14610 | .page_size = 256, |
| 14611 | /* supports SFDP */ |
| 14612 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14613 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14614 | .tested = TEST_OK_PREW, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 14615 | .probe = probe_spi_rdid, |
| 14616 | .probe_timing = TIMING_ZERO, |
| 14617 | .block_erasers = |
| 14618 | { |
| 14619 | { |
| 14620 | .eraseblocks = { {4 * 1024, 128} }, |
| 14621 | .block_erase = spi_block_erase_20, |
| 14622 | }, { |
| 14623 | .eraseblocks = { {32 * 1024, 16} }, |
| 14624 | .block_erase = spi_block_erase_52, |
| 14625 | }, { |
| 14626 | .eraseblocks = { {64 * 1024, 8} }, |
| 14627 | .block_erase = spi_block_erase_d8, |
| 14628 | }, { |
| 14629 | .eraseblocks = { {512 * 1024, 1} }, |
| 14630 | .block_erase = spi_block_erase_60, |
| 14631 | }, { |
| 14632 | .eraseblocks = { {512 * 1024, 1} }, |
| 14633 | .block_erase = spi_block_erase_c7, |
| 14634 | } |
| 14635 | }, |
| 14636 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14637 | .unlock = spi_disable_blockprotect, |
| 14638 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14639 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14640 | .voltage = {2700, 3600}, |
| 14641 | }, |
| 14642 | |
| 14643 | { |
| 14644 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14645 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14646 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14647 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14648 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14649 | .total_size = 1024, |
| 14650 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14651 | /* supports SFDP */ |
| 14652 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 14653 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14654 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14655 | .probe = probe_spi_rdid, |
| 14656 | .probe_timing = TIMING_ZERO, |
| 14657 | .block_erasers = |
| 14658 | { |
| 14659 | { |
| 14660 | .eraseblocks = { {4 * 1024, 256} }, |
| 14661 | .block_erase = spi_block_erase_20, |
| 14662 | }, { |
| 14663 | .eraseblocks = { {32 * 1024, 32} }, |
| 14664 | .block_erase = spi_block_erase_52, |
| 14665 | }, { |
| 14666 | .eraseblocks = { {64 * 1024, 16} }, |
| 14667 | .block_erase = spi_block_erase_d8, |
| 14668 | }, { |
| 14669 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14670 | .block_erase = spi_block_erase_60, |
| 14671 | }, { |
| 14672 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14673 | .block_erase = spi_block_erase_c7, |
| 14674 | } |
| 14675 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14676 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14677 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14678 | .write = spi_chip_write_256, |
| 14679 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14680 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14681 | }, |
| 14682 | |
| 14683 | { |
| 14684 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14685 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14686 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14687 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14688 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14689 | .total_size = 2048, |
| 14690 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14691 | /* supports SFDP */ |
| 14692 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 14693 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 14694 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14695 | .probe = probe_spi_rdid, |
| 14696 | .probe_timing = TIMING_ZERO, |
| 14697 | .block_erasers = |
| 14698 | { |
| 14699 | { |
| 14700 | .eraseblocks = { {4 * 1024, 512} }, |
| 14701 | .block_erase = spi_block_erase_20, |
| 14702 | }, { |
| 14703 | .eraseblocks = { {32 * 1024, 64} }, |
| 14704 | .block_erase = spi_block_erase_52, |
| 14705 | }, { |
| 14706 | .eraseblocks = { {64 * 1024, 32} }, |
| 14707 | .block_erase = spi_block_erase_d8, |
| 14708 | }, { |
| 14709 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14710 | .block_erase = spi_block_erase_60, |
| 14711 | }, { |
| 14712 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14713 | .block_erase = spi_block_erase_c7, |
| 14714 | } |
| 14715 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14716 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14717 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14718 | .write = spi_chip_write_256, |
| 14719 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14720 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14721 | }, |
| 14722 | |
| 14723 | { |
| 14724 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14725 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14726 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14727 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14728 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14729 | .total_size = 4096, |
| 14730 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14731 | /* supports SFDP */ |
| 14732 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 14733 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14734 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14735 | .probe = probe_spi_rdid, |
| 14736 | .probe_timing = TIMING_ZERO, |
| 14737 | .block_erasers = |
| 14738 | { |
| 14739 | { |
| 14740 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14741 | .block_erase = spi_block_erase_20, |
| 14742 | }, { |
| 14743 | .eraseblocks = { {32 * 1024, 128} }, |
| 14744 | .block_erase = spi_block_erase_52, |
| 14745 | }, { |
| 14746 | .eraseblocks = { {64 * 1024, 64} }, |
| 14747 | .block_erase = spi_block_erase_d8, |
| 14748 | }, { |
| 14749 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14750 | .block_erase = spi_block_erase_60, |
| 14751 | }, { |
| 14752 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14753 | .block_erase = spi_block_erase_c7, |
| 14754 | } |
| 14755 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14756 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14757 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14758 | .write = spi_chip_write_256, |
| 14759 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14760 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14761 | }, |
| 14762 | |
| 14763 | { |
| 14764 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14765 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14766 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14767 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14768 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14769 | .total_size = 8192, |
| 14770 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14771 | /* supports SFDP */ |
| 14772 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 14773 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14774 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14775 | .probe = probe_spi_rdid, |
| 14776 | .probe_timing = TIMING_ZERO, |
| 14777 | .block_erasers = |
| 14778 | { |
| 14779 | { |
| 14780 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14781 | .block_erase = spi_block_erase_20, |
| 14782 | }, { |
| 14783 | .eraseblocks = { {32 * 1024, 256} }, |
| 14784 | .block_erase = spi_block_erase_52, |
| 14785 | }, { |
| 14786 | .eraseblocks = { {64 * 1024, 128} }, |
| 14787 | .block_erase = spi_block_erase_d8, |
| 14788 | }, { |
| 14789 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14790 | .block_erase = spi_block_erase_60, |
| 14791 | }, { |
| 14792 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14793 | .block_erase = spi_block_erase_c7, |
| 14794 | } |
| 14795 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14796 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14797 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14798 | .write = spi_chip_write_256, |
| 14799 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14800 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14801 | }, |
| 14802 | |
| 14803 | { |
| 14804 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14805 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14806 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14807 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14808 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14809 | .total_size = 16384, |
| 14810 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14811 | /* supports SFDP */ |
| 14812 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 14813 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14814 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14815 | .probe = probe_spi_rdid, |
| 14816 | .probe_timing = TIMING_ZERO, |
| 14817 | .block_erasers = |
| 14818 | { |
| 14819 | { |
| 14820 | .eraseblocks = { {4 * 1024, 4096} }, |
| 14821 | .block_erase = spi_block_erase_20, |
| 14822 | }, { |
| 14823 | .eraseblocks = { {32 * 1024, 512} }, |
| 14824 | .block_erase = spi_block_erase_52, |
| 14825 | }, { |
| 14826 | .eraseblocks = { {64 * 1024, 256} }, |
| 14827 | .block_erase = spi_block_erase_d8, |
| 14828 | }, { |
| 14829 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14830 | .block_erase = spi_block_erase_60, |
| 14831 | }, { |
| 14832 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14833 | .block_erase = spi_block_erase_c7, |
| 14834 | } |
| 14835 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14836 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14837 | .unlock = spi_disable_blockprotect, |
| 14838 | .write = spi_chip_write_256, |
| 14839 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14840 | .voltage = {2700, 3600}, |
| 14841 | }, |
| 14842 | |
| 14843 | { |
| 14844 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14845 | .name = "W25Q256.V", |
| 14846 | .bustype = BUS_SPI, |
| 14847 | .manufacture_id = WINBOND_NEX_ID, |
| 14848 | .model_id = WINBOND_NEX_W25Q256_V, |
| 14849 | .total_size = 32768, |
| 14850 | .page_size = 256, |
| 14851 | /* supports SFDP */ |
| 14852 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14853 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Ed Swierk | cc20a9b | 2017-07-03 13:17:18 -0700 | [diff] [blame] | 14854 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14855 | .four_bytes_addr_funcs = |
| 14856 | { |
Ed Swierk | cc20a9b | 2017-07-03 13:17:18 -0700 | [diff] [blame] | 14857 | .set_4ba = spi_enter_4ba_b7_we, /* enter 4-bytes addressing mode by CMD B7 + WREN */ |
Boris Baykov | 7fe8569 | 2016-06-11 18:29:03 +0200 | [diff] [blame] | 14858 | .read_nbyte = spi_nbyte_read_4ba_direct, /* read directly from any mode, no need to enter 4ba */ |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14859 | .program_byte = spi_byte_program_4ba, /* write from 4-bytes addressing mode */ |
| 14860 | .program_nbyte = spi_nbyte_program_4ba /* write from 4-bytes addressing mode */ |
| 14861 | }, |
| 14862 | .tested = TEST_OK_PREW, |
| 14863 | .probe = probe_spi_rdid, |
| 14864 | .probe_timing = TIMING_ZERO, |
| 14865 | .block_erasers = |
| 14866 | { |
| 14867 | { |
| 14868 | .eraseblocks = { {4 * 1024, 8192} }, |
| 14869 | .block_erase = spi_block_erase_20_4ba, /* erases 4k from 4-bytes addressing mode */ |
| 14870 | }, { |
| 14871 | .eraseblocks = { {32 * 1024, 1024} }, |
| 14872 | .block_erase = spi_block_erase_52_4ba, /* erases 32k from 4-bytes addressing mode */ |
| 14873 | }, { |
| 14874 | .eraseblocks = { {64 * 1024, 512} }, |
| 14875 | .block_erase = spi_block_erase_d8_4ba, /* erases 64k from 4-bytes addressing mode */ |
| 14876 | }, { |
| 14877 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 14878 | .block_erase = spi_block_erase_60, |
| 14879 | }, { |
| 14880 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 14881 | .block_erase = spi_block_erase_c7, |
| 14882 | } |
| 14883 | }, |
| 14884 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14885 | .unlock = spi_disable_blockprotect, |
| 14886 | .write = spi_chip_write_256, |
| 14887 | .read = spi_chip_read, |
| 14888 | .voltage = {2700, 3600}, |
| 14889 | }, |
| 14890 | |
| 14891 | { |
| 14892 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14893 | .name = "W25Q20.W", |
| 14894 | .bustype = BUS_SPI, |
| 14895 | .manufacture_id = WINBOND_NEX_ID, |
| 14896 | .model_id = WINBOND_NEX_W25Q20_W, |
| 14897 | .total_size = 256, |
| 14898 | .page_size = 256, |
| 14899 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14900 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14901 | .tested = TEST_UNTESTED, |
| 14902 | .probe = probe_spi_rdid, |
| 14903 | .probe_timing = TIMING_ZERO, |
| 14904 | .block_erasers = |
| 14905 | { |
| 14906 | { |
| 14907 | .eraseblocks = { {4 * 1024, 64} }, |
| 14908 | .block_erase = spi_block_erase_20, |
| 14909 | }, { |
| 14910 | .eraseblocks = { {32 * 1024, 8} }, |
| 14911 | .block_erase = spi_block_erase_52, |
| 14912 | }, { |
| 14913 | .eraseblocks = { {64 * 1024, 4} }, |
| 14914 | .block_erase = spi_block_erase_d8, |
| 14915 | }, { |
| 14916 | .eraseblocks = { {256 * 1024, 1} }, |
| 14917 | .block_erase = spi_block_erase_60, |
| 14918 | }, { |
| 14919 | .eraseblocks = { {256 * 1024, 1} }, |
| 14920 | .block_erase = spi_block_erase_c7, |
| 14921 | } |
| 14922 | }, |
| 14923 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14924 | .unlock = spi_disable_blockprotect, |
| 14925 | .write = spi_chip_write_256, |
| 14926 | .read = spi_chip_read, |
| 14927 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14928 | }, |
| 14929 | |
| 14930 | { |
| 14931 | .vendor = "Winbond", |
| 14932 | .name = "W25Q40.W", |
| 14933 | .bustype = BUS_SPI, |
| 14934 | .manufacture_id = WINBOND_NEX_ID, |
| 14935 | .model_id = WINBOND_NEX_W25Q40_W, |
| 14936 | .total_size = 512, |
| 14937 | .page_size = 256, |
| 14938 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14939 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14940 | .tested = TEST_UNTESTED, |
| 14941 | .probe = probe_spi_rdid, |
| 14942 | .probe_timing = TIMING_ZERO, |
| 14943 | .block_erasers = |
| 14944 | { |
| 14945 | { |
| 14946 | .eraseblocks = { {4 * 1024, 128} }, |
| 14947 | .block_erase = spi_block_erase_20, |
| 14948 | }, { |
| 14949 | .eraseblocks = { {32 * 1024, 16} }, |
| 14950 | .block_erase = spi_block_erase_52, |
| 14951 | }, { |
| 14952 | .eraseblocks = { {64 * 1024, 8} }, |
| 14953 | .block_erase = spi_block_erase_d8, |
| 14954 | }, { |
| 14955 | .eraseblocks = { {512 * 1024, 1} }, |
| 14956 | .block_erase = spi_block_erase_60, |
| 14957 | }, { |
| 14958 | .eraseblocks = { {512 * 1024, 1} }, |
| 14959 | .block_erase = spi_block_erase_c7, |
| 14960 | } |
| 14961 | }, |
| 14962 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14963 | .unlock = spi_disable_blockprotect, |
| 14964 | .write = spi_chip_write_256, |
| 14965 | .read = spi_chip_read, |
| 14966 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14967 | }, |
| 14968 | |
| 14969 | { |
| 14970 | .vendor = "Winbond", |
| 14971 | .name = "W25Q80.W", |
| 14972 | .bustype = BUS_SPI, |
| 14973 | .manufacture_id = WINBOND_NEX_ID, |
| 14974 | .model_id = WINBOND_NEX_W25Q80_W, |
| 14975 | .total_size = 1024, |
| 14976 | .page_size = 256, |
| 14977 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14978 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14979 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14980 | .probe = probe_spi_rdid, |
| 14981 | .probe_timing = TIMING_ZERO, |
| 14982 | .block_erasers = |
| 14983 | { |
| 14984 | { |
| 14985 | .eraseblocks = { {4 * 1024, 256} }, |
| 14986 | .block_erase = spi_block_erase_20, |
| 14987 | }, { |
| 14988 | .eraseblocks = { {32 * 1024, 32} }, |
| 14989 | .block_erase = spi_block_erase_52, |
| 14990 | }, { |
| 14991 | .eraseblocks = { {64 * 1024, 16} }, |
| 14992 | .block_erase = spi_block_erase_d8, |
| 14993 | }, { |
| 14994 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 14995 | .block_erase = spi_block_erase_60, |
| 14996 | }, { |
| 14997 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 14998 | .block_erase = spi_block_erase_c7, |
| 14999 | } |
| 15000 | }, |
| 15001 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15002 | .unlock = spi_disable_blockprotect, |
| 15003 | .write = spi_chip_write_256, |
| 15004 | .read = spi_chip_read, |
| 15005 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15006 | }, |
| 15007 | |
| 15008 | { |
| 15009 | .vendor = "Winbond", |
| 15010 | .name = "W25Q16.W", |
| 15011 | .bustype = BUS_SPI, |
| 15012 | .manufacture_id = WINBOND_NEX_ID, |
| 15013 | .model_id = WINBOND_NEX_W25Q16_W, |
| 15014 | .total_size = 2048, |
| 15015 | .page_size = 256, |
| 15016 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15017 | /* QPI enable 0x38, disable 0xFF */ |
| 15018 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15019 | .tested = TEST_UNTESTED, |
| 15020 | .probe = probe_spi_rdid, |
| 15021 | .probe_timing = TIMING_ZERO, |
| 15022 | .block_erasers = |
| 15023 | { |
| 15024 | { |
| 15025 | .eraseblocks = { {4 * 1024, 512} }, |
| 15026 | .block_erase = spi_block_erase_20, |
| 15027 | }, { |
| 15028 | .eraseblocks = { {32 * 1024, 64} }, |
| 15029 | .block_erase = spi_block_erase_52, |
| 15030 | }, { |
| 15031 | .eraseblocks = { {64 * 1024, 32} }, |
| 15032 | .block_erase = spi_block_erase_d8, |
| 15033 | }, { |
| 15034 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15035 | .block_erase = spi_block_erase_60, |
| 15036 | }, { |
| 15037 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15038 | .block_erase = spi_block_erase_c7, |
| 15039 | } |
| 15040 | }, |
| 15041 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15042 | .unlock = spi_disable_blockprotect, |
| 15043 | .write = spi_chip_write_256, |
| 15044 | .read = spi_chip_read, |
| 15045 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15046 | }, |
| 15047 | |
| 15048 | { |
| 15049 | .vendor = "Winbond", |
| 15050 | .name = "W25Q32.W", |
| 15051 | .bustype = BUS_SPI, |
| 15052 | .manufacture_id = WINBOND_NEX_ID, |
| 15053 | .model_id = WINBOND_NEX_W25Q32_W, |
| 15054 | .total_size = 4096, |
| 15055 | .page_size = 256, |
| 15056 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15057 | /* QPI enable 0x38, disable 0xFF */ |
| 15058 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15059 | .tested = TEST_OK_PREW, |
| 15060 | .probe = probe_spi_rdid, |
| 15061 | .probe_timing = TIMING_ZERO, |
| 15062 | .block_erasers = |
| 15063 | { |
| 15064 | { |
| 15065 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15066 | .block_erase = spi_block_erase_20, |
| 15067 | }, { |
| 15068 | .eraseblocks = { {32 * 1024, 128} }, |
| 15069 | .block_erase = spi_block_erase_52, |
| 15070 | }, { |
| 15071 | .eraseblocks = { {64 * 1024, 64} }, |
| 15072 | .block_erase = spi_block_erase_d8, |
| 15073 | }, { |
| 15074 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15075 | .block_erase = spi_block_erase_60, |
| 15076 | }, { |
| 15077 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15078 | .block_erase = spi_block_erase_c7, |
| 15079 | } |
| 15080 | }, |
| 15081 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15082 | .unlock = spi_disable_blockprotect, |
| 15083 | .write = spi_chip_write_256, |
| 15084 | .read = spi_chip_read, |
| 15085 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15086 | }, |
| 15087 | |
| 15088 | { |
| 15089 | .vendor = "Winbond", |
| 15090 | .name = "W25Q64.W", |
| 15091 | .bustype = BUS_SPI, |
| 15092 | .manufacture_id = WINBOND_NEX_ID, |
| 15093 | .model_id = WINBOND_NEX_W25Q64_W, |
| 15094 | .total_size = 8192, |
| 15095 | .page_size = 256, |
| 15096 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15097 | /* QPI enable 0x38, disable 0xFF */ |
| 15098 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15099 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15100 | .probe = probe_spi_rdid, |
| 15101 | .probe_timing = TIMING_ZERO, |
| 15102 | .block_erasers = |
| 15103 | { |
| 15104 | { |
| 15105 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15106 | .block_erase = spi_block_erase_20, |
| 15107 | }, { |
| 15108 | .eraseblocks = { {32 * 1024, 256} }, |
| 15109 | .block_erase = spi_block_erase_52, |
| 15110 | }, { |
| 15111 | .eraseblocks = { {64 * 1024, 128} }, |
| 15112 | .block_erase = spi_block_erase_d8, |
| 15113 | }, { |
| 15114 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15115 | .block_erase = spi_block_erase_60, |
| 15116 | }, { |
| 15117 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15118 | .block_erase = spi_block_erase_c7, |
| 15119 | } |
| 15120 | }, |
| 15121 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15122 | .unlock = spi_disable_blockprotect, |
| 15123 | .write = spi_chip_write_256, |
| 15124 | .read = spi_chip_read, |
| 15125 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15126 | }, |
| 15127 | |
| 15128 | { |
| 15129 | .vendor = "Winbond", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 15130 | .name = "W25Q128.W", |
| 15131 | .bustype = BUS_SPI, |
| 15132 | .manufacture_id = WINBOND_NEX_ID, |
| 15133 | .model_id = WINBOND_NEX_W25Q128_W, |
| 15134 | .total_size = 16384, |
| 15135 | .page_size = 256, |
| 15136 | /* supports SFDP */ |
| 15137 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15138 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 15139 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 15140 | .probe = probe_spi_rdid, |
| 15141 | .probe_timing = TIMING_ZERO, |
| 15142 | .block_erasers = |
| 15143 | { |
| 15144 | { |
| 15145 | .eraseblocks = { {4 * 1024, 4096} }, |
| 15146 | .block_erase = spi_block_erase_20, |
| 15147 | }, { |
| 15148 | .eraseblocks = { {32 * 1024, 512} }, |
| 15149 | .block_erase = spi_block_erase_52, |
| 15150 | }, { |
| 15151 | .eraseblocks = { {64 * 1024, 256} }, |
| 15152 | .block_erase = spi_block_erase_d8, |
| 15153 | }, { |
| 15154 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15155 | .block_erase = spi_block_erase_60, |
| 15156 | }, { |
| 15157 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15158 | .block_erase = spi_block_erase_c7, |
| 15159 | } |
| 15160 | }, |
| 15161 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15162 | .unlock = spi_disable_blockprotect, |
| 15163 | .write = spi_chip_write_256, |
| 15164 | .read = spi_chip_read, |
| 15165 | .voltage = {1650, 1950}, |
| 15166 | }, |
| 15167 | |
| 15168 | { |
| 15169 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15170 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15171 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15172 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15173 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15174 | .total_size = 128, |
| 15175 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15176 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 15177 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15178 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15179 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15180 | .block_erasers = |
| 15181 | { |
| 15182 | { |
| 15183 | .eraseblocks = { {4 * 1024, 32} }, |
| 15184 | .block_erase = spi_block_erase_20, |
| 15185 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15186 | .eraseblocks = { {64 * 1024, 2} }, |
| 15187 | .block_erase = spi_block_erase_d8, |
| 15188 | }, { |
| 15189 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15190 | .block_erase = spi_block_erase_c7, |
| 15191 | } |
| 15192 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15193 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15194 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15195 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15196 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15197 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15198 | }, |
| 15199 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15200 | { |
| 15201 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15202 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15203 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15204 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15205 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15206 | .total_size = 256, |
| 15207 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15208 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15209 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15210 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15211 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15212 | .block_erasers = |
| 15213 | { |
| 15214 | { |
| 15215 | .eraseblocks = { {4 * 1024, 64} }, |
| 15216 | .block_erase = spi_block_erase_20, |
| 15217 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15218 | .eraseblocks = { {64 * 1024, 4} }, |
| 15219 | .block_erase = spi_block_erase_d8, |
| 15220 | }, { |
| 15221 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15222 | .block_erase = spi_block_erase_c7, |
| 15223 | } |
| 15224 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15225 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15226 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15227 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15228 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15229 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15230 | }, |
| 15231 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15232 | { |
| 15233 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15234 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15235 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15236 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15237 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15238 | .total_size = 512, |
| 15239 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15240 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 15241 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15242 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15243 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15244 | .block_erasers = |
| 15245 | { |
| 15246 | { |
| 15247 | .eraseblocks = { {4 * 1024, 128} }, |
| 15248 | .block_erase = spi_block_erase_20, |
| 15249 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15250 | .eraseblocks = { {64 * 1024, 8} }, |
| 15251 | .block_erase = spi_block_erase_d8, |
| 15252 | }, { |
| 15253 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15254 | .block_erase = spi_block_erase_c7, |
| 15255 | } |
| 15256 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15257 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15258 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15259 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15260 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15261 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15262 | }, |
| 15263 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15264 | { |
| 15265 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15266 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15267 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15268 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15269 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15270 | .total_size = 1024, |
| 15271 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15272 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 15273 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15274 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15275 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15276 | .block_erasers = |
| 15277 | { |
| 15278 | { |
| 15279 | .eraseblocks = { {4 * 1024, 256} }, |
| 15280 | .block_erase = spi_block_erase_20, |
| 15281 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15282 | .eraseblocks = { {64 * 1024, 16} }, |
| 15283 | .block_erase = spi_block_erase_d8, |
| 15284 | }, { |
| 15285 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15286 | .block_erase = spi_block_erase_c7, |
| 15287 | } |
| 15288 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15289 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15290 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15291 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15292 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15293 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15294 | }, |
| 15295 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15296 | { |
| 15297 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15298 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15299 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15300 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15301 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15302 | .total_size = 2048, |
| 15303 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15304 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 15305 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15306 | .probe = probe_spi_rdid, |
| 15307 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15308 | .block_erasers = |
| 15309 | { |
| 15310 | { |
| 15311 | .eraseblocks = { {4 * 1024, 512} }, |
| 15312 | .block_erase = spi_block_erase_20, |
| 15313 | }, { |
| 15314 | .eraseblocks = { {32 * 1024, 64} }, |
| 15315 | .block_erase = spi_block_erase_52, |
| 15316 | }, { |
| 15317 | .eraseblocks = { {64 * 1024, 32} }, |
| 15318 | .block_erase = spi_block_erase_d8, |
| 15319 | }, { |
| 15320 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15321 | .block_erase = spi_block_erase_60, |
| 15322 | }, { |
| 15323 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15324 | .block_erase = spi_block_erase_c7, |
| 15325 | } |
| 15326 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15327 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15328 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15329 | .write = spi_chip_write_256, |
| 15330 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15331 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15332 | }, |
| 15333 | |
| 15334 | { |
| 15335 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15336 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15337 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15338 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15339 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15340 | .total_size = 4096, |
| 15341 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15342 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15343 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15344 | .probe = probe_spi_rdid, |
| 15345 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15346 | .block_erasers = |
| 15347 | { |
| 15348 | { |
| 15349 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15350 | .block_erase = spi_block_erase_20, |
| 15351 | }, { |
| 15352 | .eraseblocks = { {32 * 1024, 128} }, |
| 15353 | .block_erase = spi_block_erase_52, |
| 15354 | }, { |
| 15355 | .eraseblocks = { {64 * 1024, 64} }, |
| 15356 | .block_erase = spi_block_erase_d8, |
| 15357 | }, { |
| 15358 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15359 | .block_erase = spi_block_erase_60, |
| 15360 | }, { |
| 15361 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15362 | .block_erase = spi_block_erase_c7, |
| 15363 | } |
| 15364 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15365 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15366 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15367 | .write = spi_chip_write_256, |
| 15368 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15369 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15370 | }, |
| 15371 | |
| 15372 | { |
| 15373 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15374 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15375 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15376 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15377 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15378 | .total_size = 8192, |
| 15379 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15380 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15381 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15382 | .probe = probe_spi_rdid, |
| 15383 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15384 | .block_erasers = |
| 15385 | { |
| 15386 | { |
| 15387 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15388 | .block_erase = spi_block_erase_20, |
| 15389 | }, { |
| 15390 | .eraseblocks = { {32 * 1024, 256} }, |
| 15391 | .block_erase = spi_block_erase_52, |
| 15392 | }, { |
| 15393 | .eraseblocks = { {64 * 1024, 128} }, |
| 15394 | .block_erase = spi_block_erase_d8, |
| 15395 | }, { |
| 15396 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15397 | .block_erase = spi_block_erase_60, |
| 15398 | }, { |
| 15399 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15400 | .block_erase = spi_block_erase_c7, |
| 15401 | } |
| 15402 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15403 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15404 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15405 | .write = spi_chip_write_256, |
| 15406 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15407 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15408 | }, |
| 15409 | |
| 15410 | { |
| 15411 | .vendor = "Winbond", |
Urja Rannikko | 2a1aaba | 2015-06-20 11:53:10 +0000 | [diff] [blame] | 15412 | .name = "W29C512A/W29EE512", |
| 15413 | .bustype = BUS_PARALLEL, |
| 15414 | .manufacture_id = WINBOND_ID, |
| 15415 | .model_id = WINBOND_W29C512A, |
| 15416 | .total_size = 64, |
| 15417 | .page_size = 128, |
| 15418 | .feature_bits = FEATURE_LONG_RESET, |
| 15419 | .tested = TEST_OK_PREW, |
| 15420 | .probe = probe_jedec, |
| 15421 | .probe_timing = 10, |
| 15422 | .block_erasers = |
| 15423 | { |
| 15424 | { |
| 15425 | .eraseblocks = { {64 * 1024, 1} }, |
| 15426 | .block_erase = erase_chip_block_jedec, |
| 15427 | } |
| 15428 | }, |
| 15429 | .write = write_jedec, |
| 15430 | .read = read_memmapped, |
| 15431 | .voltage = {4500, 5500}, |
| 15432 | }, |
| 15433 | |
| 15434 | { |
| 15435 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 15436 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15437 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 15438 | .manufacture_id = WINBOND_ID, |
| 15439 | .model_id = WINBOND_W29C010, |
| 15440 | .total_size = 128, |
| 15441 | .page_size = 128, |
| 15442 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15443 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 15444 | .probe = probe_w29ee011, |
| 15445 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 15446 | .block_erasers = |
| 15447 | { |
| 15448 | { |
| 15449 | .eraseblocks = { {128 * 1024, 1} }, |
| 15450 | .block_erase = erase_chip_block_jedec, |
| 15451 | } |
| 15452 | }, |
| 15453 | .write = write_jedec, |
| 15454 | .read = read_memmapped, |
| 15455 | }, |
| 15456 | |
| 15457 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 15458 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15459 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15460 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15461 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15462 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15463 | .total_size = 128, |
| 15464 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15465 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 15466 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15467 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15468 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15469 | .block_erasers = |
| 15470 | { |
| 15471 | { |
| 15472 | .eraseblocks = { {128 * 1024, 1} }, |
| 15473 | .block_erase = erase_chip_block_jedec, |
| 15474 | } |
| 15475 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15476 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15477 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15478 | }, |
| 15479 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15480 | { |
| 15481 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15482 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15483 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15484 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15485 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15486 | .total_size = 256, |
| 15487 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15488 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15489 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15490 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15491 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15492 | .block_erasers = |
| 15493 | { |
| 15494 | { |
| 15495 | .eraseblocks = { {256 * 1024, 1} }, |
| 15496 | .block_erase = erase_chip_block_jedec, |
| 15497 | } |
| 15498 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15499 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15500 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15501 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15502 | }, |
| 15503 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15504 | { |
| 15505 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15506 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15507 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15508 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15509 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15510 | .total_size = 512, |
| 15511 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15512 | .feature_bits = FEATURE_LONG_RESET, |
| 15513 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15514 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15515 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15516 | .block_erasers = |
| 15517 | { |
| 15518 | { |
| 15519 | .eraseblocks = { {512 * 1024, 1} }, |
| 15520 | .block_erase = erase_chip_block_jedec, |
| 15521 | } |
| 15522 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15523 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15524 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15525 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15526 | }, |
| 15527 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15528 | { |
| 15529 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 15530 | .name = "W29GL032CB", |
| 15531 | .bustype = BUS_PARALLEL, |
| 15532 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15533 | .model_id = WINBOND_W29GL032CB, |
| 15534 | .total_size = 4096, |
| 15535 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15536 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15537 | .tested = TEST_UNTESTED, |
| 15538 | .probe = probe_jedec_29gl, |
| 15539 | .probe_timing = TIMING_ZERO, |
| 15540 | .block_erasers = |
| 15541 | { |
| 15542 | { |
| 15543 | .eraseblocks = { |
| 15544 | {8 * 1024, 8}, |
| 15545 | {64 * 1024, 63}, |
| 15546 | }, |
| 15547 | .block_erase = erase_sector_jedec, |
| 15548 | }, { |
| 15549 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15550 | .block_erase = erase_chip_block_jedec, |
| 15551 | }, |
| 15552 | }, |
| 15553 | .write = write_jedec_1, |
| 15554 | .read = read_memmapped, |
| 15555 | .voltage = {2700, 3600}, |
| 15556 | }, |
| 15557 | |
| 15558 | { |
| 15559 | .vendor = "Winbond", |
| 15560 | .name = "W29GL032CT", |
| 15561 | .bustype = BUS_PARALLEL, |
| 15562 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15563 | .model_id = WINBOND_W29GL032CT, |
| 15564 | .total_size = 4096, |
| 15565 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15566 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15567 | .tested = TEST_UNTESTED, |
| 15568 | .probe = probe_jedec_29gl, |
| 15569 | .probe_timing = TIMING_ZERO, |
| 15570 | .block_erasers = |
| 15571 | { |
| 15572 | { |
| 15573 | .eraseblocks = { |
| 15574 | {64 * 1024, 63}, |
| 15575 | {8 * 1024, 8}, |
| 15576 | }, |
| 15577 | .block_erase = erase_sector_jedec, |
| 15578 | }, { |
| 15579 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15580 | .block_erase = erase_chip_block_jedec, |
| 15581 | }, |
| 15582 | }, |
| 15583 | .write = write_jedec_1, |
| 15584 | .read = read_memmapped, |
| 15585 | .voltage = {2700, 3600}, |
| 15586 | }, |
| 15587 | |
| 15588 | { |
| 15589 | .vendor = "Winbond", |
| 15590 | .name = "W29GL032CH/L", |
| 15591 | .bustype = BUS_PARALLEL, |
| 15592 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15593 | .model_id = WINBOND_W29GL032CHL, |
| 15594 | .total_size = 4096, |
| 15595 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15596 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15597 | .tested = TEST_UNTESTED, |
| 15598 | .probe = probe_jedec_29gl, |
| 15599 | .probe_timing = TIMING_ZERO, |
| 15600 | .block_erasers = |
| 15601 | { |
| 15602 | { |
| 15603 | .eraseblocks = { {64 * 1024, 64} }, |
| 15604 | .block_erase = erase_sector_jedec, |
| 15605 | }, { |
| 15606 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15607 | .block_erase = erase_chip_block_jedec, |
| 15608 | }, |
| 15609 | }, |
| 15610 | .write = write_jedec_1, |
| 15611 | .read = read_memmapped, |
| 15612 | .voltage = {2700, 3600}, |
| 15613 | }, |
| 15614 | |
| 15615 | { |
| 15616 | .vendor = "Winbond", |
| 15617 | .name = "W29GL064CB", |
| 15618 | .bustype = BUS_PARALLEL, |
| 15619 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15620 | .model_id = WINBOND_W29GL064CB, |
| 15621 | .total_size = 8192, |
| 15622 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15623 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15624 | .tested = TEST_UNTESTED, |
| 15625 | .probe = probe_jedec_29gl, |
| 15626 | .probe_timing = TIMING_ZERO, |
| 15627 | .block_erasers = |
| 15628 | { |
| 15629 | { |
| 15630 | .eraseblocks = { |
| 15631 | {8 * 1024, 8}, |
| 15632 | {64 * 1024, 127}, |
| 15633 | }, |
| 15634 | .block_erase = erase_sector_jedec, |
| 15635 | }, { |
| 15636 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15637 | .block_erase = erase_chip_block_jedec, |
| 15638 | }, |
| 15639 | }, |
| 15640 | .write = write_jedec_1, |
| 15641 | .read = read_memmapped, |
| 15642 | .voltage = {2700, 3600}, |
| 15643 | }, |
| 15644 | |
| 15645 | { |
| 15646 | .vendor = "Winbond", |
| 15647 | .name = "W29GL064CT", |
| 15648 | .bustype = BUS_PARALLEL, |
| 15649 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15650 | .model_id = WINBOND_W29GL064CT, |
| 15651 | .total_size = 8192, |
| 15652 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15653 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15654 | .tested = TEST_UNTESTED, |
| 15655 | .probe = probe_jedec_29gl, |
| 15656 | .probe_timing = TIMING_ZERO, |
| 15657 | .block_erasers = |
| 15658 | { |
| 15659 | { |
| 15660 | .eraseblocks = { |
| 15661 | {64 * 1024, 127}, |
| 15662 | {8 * 1024, 8}, |
| 15663 | }, |
| 15664 | .block_erase = erase_sector_jedec, |
| 15665 | }, { |
| 15666 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15667 | .block_erase = erase_chip_block_jedec, |
| 15668 | }, |
| 15669 | }, |
| 15670 | .write = write_jedec_1, |
| 15671 | .read = read_memmapped, |
| 15672 | .voltage = {2700, 3600}, |
| 15673 | }, |
| 15674 | |
| 15675 | { |
| 15676 | .vendor = "Winbond", |
| 15677 | .name = "W29GL064CH/L", |
| 15678 | .bustype = BUS_PARALLEL, |
| 15679 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15680 | .model_id = WINBOND_W29GL064CHL, |
| 15681 | .total_size = 8192, |
| 15682 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15683 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15684 | .tested = TEST_UNTESTED, |
| 15685 | .probe = probe_jedec_29gl, |
| 15686 | .probe_timing = TIMING_ZERO, |
| 15687 | .block_erasers = |
| 15688 | { |
| 15689 | { |
| 15690 | .eraseblocks = { {64 * 1024, 128} }, |
| 15691 | .block_erase = erase_sector_jedec, |
| 15692 | }, { |
| 15693 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15694 | .block_erase = erase_chip_block_jedec, |
| 15695 | }, |
| 15696 | }, |
| 15697 | .write = write_jedec_1, |
| 15698 | .read = read_memmapped, |
| 15699 | .voltage = {2700, 3600}, |
| 15700 | }, |
| 15701 | |
| 15702 | { |
| 15703 | .vendor = "Winbond", |
| 15704 | .name = "W29GL128C", |
| 15705 | .bustype = BUS_PARALLEL, |
| 15706 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15707 | .model_id = WINBOND_W29GL128CHL, |
| 15708 | .total_size = 16384, |
| 15709 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15710 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15711 | .tested = TEST_UNTESTED, |
| 15712 | .probe = probe_jedec_29gl, |
| 15713 | .probe_timing = TIMING_ZERO, |
| 15714 | .block_erasers = |
| 15715 | { |
| 15716 | { |
| 15717 | .eraseblocks = { {128 * 1024, 128} }, |
| 15718 | .block_erase = erase_sector_jedec, |
| 15719 | }, { |
| 15720 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15721 | .block_erase = erase_chip_block_jedec, |
| 15722 | }, |
| 15723 | }, |
| 15724 | .write = write_jedec_1, |
| 15725 | .read = read_memmapped, |
| 15726 | .voltage = {2700, 3600}, |
| 15727 | }, |
| 15728 | |
| 15729 | { |
| 15730 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 15731 | .name = "W39F010", |
| 15732 | .bustype = BUS_PARALLEL, |
| 15733 | .manufacture_id = WINBOND_ID, |
| 15734 | .model_id = WINBOND_W39F010, |
| 15735 | .total_size = 128, |
| 15736 | .page_size = 4 * 1024, |
| 15737 | .feature_bits = FEATURE_EITHER_RESET, |
| 15738 | .tested = TEST_OK_PREW, |
| 15739 | .probe = probe_jedec, |
| 15740 | .probe_timing = 10, |
| 15741 | .block_erasers = |
| 15742 | { |
| 15743 | { |
| 15744 | .eraseblocks = { {4 * 1024, 32} }, |
| 15745 | .block_erase = erase_block_jedec, |
| 15746 | }, { |
| 15747 | .eraseblocks = { {128 * 1024, 1} }, |
| 15748 | .block_erase = erase_chip_block_jedec, |
| 15749 | } |
| 15750 | }, |
| 15751 | .printlock = printlock_w39f010, |
| 15752 | .write = write_jedec_1, |
| 15753 | .read = read_memmapped, |
| 15754 | .voltage = {4500, 5500}, |
| 15755 | }, |
| 15756 | |
| 15757 | { |
| 15758 | .vendor = "Winbond", |
| 15759 | .name = "W39L010", |
| 15760 | .bustype = BUS_PARALLEL, |
| 15761 | .manufacture_id = WINBOND_ID, |
| 15762 | .model_id = WINBOND_W39L010, |
| 15763 | .total_size = 128, |
| 15764 | .page_size = 4 * 1024, |
| 15765 | .feature_bits = FEATURE_EITHER_RESET, |
| 15766 | .tested = TEST_UNTESTED, |
| 15767 | .probe = probe_jedec, |
| 15768 | .probe_timing = 10, |
| 15769 | .block_erasers = |
| 15770 | { |
| 15771 | { |
| 15772 | .eraseblocks = { {4 * 1024, 32} }, |
| 15773 | .block_erase = erase_block_jedec, |
| 15774 | }, { |
| 15775 | .eraseblocks = { {128 * 1024, 1} }, |
| 15776 | .block_erase = erase_chip_block_jedec, |
| 15777 | } |
| 15778 | }, |
| 15779 | .printlock = printlock_w39l010, |
| 15780 | .write = write_jedec_1, |
| 15781 | .read = read_memmapped, |
| 15782 | .voltage = {3000, 3600}, |
| 15783 | }, |
| 15784 | |
| 15785 | { |
| 15786 | .vendor = "Winbond", |
| 15787 | .name = "W39L020", |
| 15788 | .bustype = BUS_PARALLEL, |
| 15789 | .manufacture_id = WINBOND_ID, |
| 15790 | .model_id = WINBOND_W39L020, |
| 15791 | .total_size = 256, |
| 15792 | .page_size = 4 * 1024, |
| 15793 | .feature_bits = FEATURE_EITHER_RESET, |
| 15794 | .tested = TEST_UNTESTED, |
| 15795 | .probe = probe_jedec, |
| 15796 | .probe_timing = 10, |
| 15797 | .block_erasers = |
| 15798 | { |
| 15799 | { |
| 15800 | .eraseblocks = { {4 * 1024, 64} }, |
| 15801 | .block_erase = erase_block_jedec, |
| 15802 | }, { |
| 15803 | .eraseblocks = { {64 * 1024, 4} }, |
| 15804 | .block_erase = erase_sector_jedec, |
| 15805 | }, { |
| 15806 | .eraseblocks = { {256 * 1024, 1} }, |
| 15807 | .block_erase = erase_chip_block_jedec, |
| 15808 | } |
| 15809 | }, |
| 15810 | .printlock = printlock_w39l020, |
| 15811 | .write = write_jedec_1, |
| 15812 | .read = read_memmapped, |
| 15813 | .voltage = {3000, 3600}, |
| 15814 | }, |
| 15815 | |
| 15816 | { |
| 15817 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15818 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15819 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15820 | .manufacture_id = WINBOND_ID, |
| 15821 | .model_id = WINBOND_W39L040, |
| 15822 | .total_size = 512, |
| 15823 | .page_size = 64 * 1024, |
| 15824 | .feature_bits = FEATURE_EITHER_RESET, |
| 15825 | .tested = TEST_OK_PR, |
| 15826 | .probe = probe_jedec, |
| 15827 | .probe_timing = 10, |
| 15828 | .block_erasers = |
| 15829 | { |
| 15830 | { |
| 15831 | .eraseblocks = { {4 * 1024, 128} }, |
| 15832 | .block_erase = erase_block_jedec, |
| 15833 | }, { |
| 15834 | .eraseblocks = { {64 * 1024, 8} }, |
| 15835 | .block_erase = erase_sector_jedec, |
| 15836 | }, { |
| 15837 | .eraseblocks = { {512 * 1024, 1} }, |
| 15838 | .block_erase = erase_chip_block_jedec, |
| 15839 | } |
| 15840 | }, |
| 15841 | .printlock = printlock_w39l040, |
| 15842 | .write = write_jedec_1, |
| 15843 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15844 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15845 | }, |
| 15846 | |
| 15847 | { |
| 15848 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15849 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15850 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15851 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15852 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15853 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15854 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15855 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 15856 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15857 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 15858 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15859 | .block_erasers = |
| 15860 | { |
| 15861 | { |
| 15862 | .eraseblocks = { {64 * 1024, 8} }, |
| 15863 | .block_erase = erase_sector_jedec, |
| 15864 | }, { |
| 15865 | .eraseblocks = { {512 * 1024, 1} }, |
| 15866 | .block_erase = erase_chip_block_jedec, |
| 15867 | } |
| 15868 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15869 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15870 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15871 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15872 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15873 | }, |
| 15874 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15875 | { |
| 15876 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15877 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15878 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15879 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15880 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15881 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15882 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15883 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15884 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15885 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15886 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15887 | .block_erasers = |
| 15888 | { |
| 15889 | { |
| 15890 | .eraseblocks = { {64 * 1024, 8} }, |
| 15891 | .block_erase = erase_sector_jedec, |
| 15892 | }, { |
| 15893 | .eraseblocks = { {512 * 1024, 1} }, |
| 15894 | .block_erase = erase_chip_block_jedec, |
| 15895 | } |
| 15896 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15897 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15898 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15899 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15900 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15901 | }, |
| 15902 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15903 | { |
| 15904 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15905 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15906 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15907 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15908 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15909 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15910 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15911 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15912 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15913 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15914 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15915 | .block_erasers = |
| 15916 | { |
| 15917 | { |
| 15918 | .eraseblocks = { {64 * 1024, 8} }, |
| 15919 | .block_erase = erase_sector_jedec, |
| 15920 | }, { |
| 15921 | .eraseblocks = { {512 * 1024, 1} }, |
| 15922 | .block_erase = erase_chip_block_jedec, |
| 15923 | } |
| 15924 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 15925 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15926 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15927 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15928 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15929 | }, |
| 15930 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15931 | { |
| 15932 | .vendor = "Winbond", |
| 15933 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15934 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15935 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15936 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15937 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15938 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 15939 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15940 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15941 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15942 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15943 | .block_erasers = |
| 15944 | { |
| 15945 | { |
| 15946 | .eraseblocks = { {4 * 1024, 128} }, |
| 15947 | .block_erase = erase_block_jedec, |
| 15948 | }, { |
| 15949 | .eraseblocks = { {64 * 1024, 8} }, |
| 15950 | .block_erase = erase_sector_jedec, |
| 15951 | }, { |
| 15952 | .eraseblocks = { {512 * 1024, 1} }, |
| 15953 | .block_erase = erase_chip_block_jedec, |
| 15954 | } |
| 15955 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15956 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15957 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15958 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15959 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15960 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15961 | }, |
| 15962 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15963 | { |
| 15964 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15965 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15966 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15967 | .manufacture_id = WINBOND_ID, |
| 15968 | .model_id = WINBOND_W39V040B, |
| 15969 | .total_size = 512, |
| 15970 | .page_size = 64 * 1024, |
| 15971 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 15972 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15973 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15974 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15975 | .block_erasers = |
| 15976 | { |
| 15977 | { |
| 15978 | .eraseblocks = { {64 * 1024, 8} }, |
| 15979 | .block_erase = erase_sector_jedec, |
| 15980 | }, { |
| 15981 | .eraseblocks = { {512 * 1024, 1} }, |
| 15982 | .block_erase = erase_chip_block_jedec, |
| 15983 | } |
| 15984 | }, |
| 15985 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15986 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15987 | .write = write_jedec_1, |
| 15988 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15989 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15990 | }, |
| 15991 | |
| 15992 | { |
| 15993 | .vendor = "Winbond", |
| 15994 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15995 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15996 | .manufacture_id = WINBOND_ID, |
| 15997 | .model_id = WINBOND_W39V040C, |
| 15998 | .total_size = 512, |
| 15999 | .page_size = 64 * 1024, |
| 16000 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 16001 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16002 | .probe = probe_jedec, |
| 16003 | .probe_timing = 10, |
| 16004 | .block_erasers = |
| 16005 | { |
| 16006 | { |
| 16007 | .eraseblocks = { {64 * 1024, 8} }, |
| 16008 | .block_erase = erase_sector_jedec, |
| 16009 | }, { |
| 16010 | .eraseblocks = { {512 * 1024, 1} }, |
| 16011 | .block_erase = erase_chip_block_jedec, |
| 16012 | } |
| 16013 | }, |
| 16014 | .printlock = printlock_w39v040fc, |
| 16015 | .write = write_jedec_1, |
| 16016 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16017 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16018 | }, |
| 16019 | |
| 16020 | { |
| 16021 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16022 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16023 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16024 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16025 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16026 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16027 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16028 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 16029 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16030 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 16031 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16032 | .block_erasers = |
| 16033 | { |
| 16034 | { |
| 16035 | .eraseblocks = { {64 * 1024, 16} }, |
| 16036 | .block_erase = erase_sector_jedec, |
| 16037 | }, { |
| 16038 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16039 | .block_erase = erase_chip_block_jedec, |
| 16040 | } |
| 16041 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16042 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16043 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16044 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16045 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16046 | }, |
| 16047 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16048 | { |
| 16049 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16050 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16051 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16052 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16053 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16054 | .total_size = 256, |
| 16055 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16056 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 16057 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16058 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16059 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16060 | .block_erasers = |
| 16061 | { |
| 16062 | { |
| 16063 | .eraseblocks = { |
| 16064 | {128 * 1024, 1}, |
| 16065 | {96 * 1024, 1}, |
| 16066 | {8 * 1024, 2}, |
| 16067 | {16 * 1024, 1}, |
| 16068 | }, |
| 16069 | .block_erase = erase_sector_jedec, |
| 16070 | }, { |
| 16071 | .eraseblocks = { {256 * 1024, 1} }, |
| 16072 | .block_erase = erase_chip_block_jedec, |
| 16073 | } |
| 16074 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16075 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16076 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16077 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16078 | }, |
| 16079 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16080 | { |
| 16081 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16082 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16083 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16084 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16085 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16086 | .total_size = 256, |
| 16087 | .page_size = 128, |
| 16088 | .feature_bits = FEATURE_EITHER_RESET, |
| 16089 | .tested = TEST_OK_PROBE, |
| 16090 | .probe = probe_jedec, |
| 16091 | .probe_timing = 10, |
| 16092 | .block_erasers = |
| 16093 | { |
| 16094 | { |
| 16095 | .eraseblocks = { {256 * 1024, 1} }, |
| 16096 | .block_erase = erase_chip_block_jedec, |
| 16097 | } |
| 16098 | }, |
| 16099 | .write = write_jedec_1, |
| 16100 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16101 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16102 | }, |
| 16103 | |
| 16104 | { |
| 16105 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16106 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16107 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16108 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16109 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16110 | .total_size = 256, |
| 16111 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16112 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16113 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16114 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16115 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16116 | .block_erasers = |
| 16117 | { |
| 16118 | { |
| 16119 | .eraseblocks = { |
| 16120 | {64 * 1024, 3}, |
| 16121 | {32 * 1024, 1}, |
| 16122 | {8 * 1024, 2}, |
| 16123 | {16 * 1024, 1}, |
| 16124 | }, |
| 16125 | .block_erase = erase_sector_jedec, |
| 16126 | }, { |
| 16127 | .eraseblocks = { {256 * 1024, 1} }, |
| 16128 | .block_erase = erase_chip_block_jedec, |
| 16129 | } |
| 16130 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16131 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16132 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16133 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16134 | }, |
| 16135 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16136 | { |
| 16137 | .vendor = "Winbond", |
| 16138 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16139 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16140 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16141 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16142 | .total_size = 256, |
| 16143 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16144 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16145 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16146 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16147 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16148 | .block_erasers = |
| 16149 | { |
| 16150 | { |
| 16151 | .eraseblocks = { |
| 16152 | {64 * 1024, 3}, |
| 16153 | {32 * 1024, 1}, |
| 16154 | {8 * 1024, 2}, |
| 16155 | {16 * 1024, 1}, |
| 16156 | }, |
| 16157 | .block_erase = erase_sector_jedec, |
| 16158 | }, { |
| 16159 | .eraseblocks = { {256 * 1024, 1} }, |
| 16160 | .block_erase = erase_chip_block_jedec, |
| 16161 | } |
| 16162 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16163 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16164 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16165 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16166 | }, |
| 16167 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16168 | { |
| 16169 | .vendor = "Winbond", |
| 16170 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16171 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16172 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16173 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16174 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16175 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16176 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 16177 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 16178 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16179 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16180 | .block_erasers = |
| 16181 | { |
| 16182 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16183 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16184 | .block_erase = erase_sector_jedec, |
| 16185 | }, { |
| 16186 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16187 | .block_erase = erase_chip_block_jedec, |
| 16188 | } |
| 16189 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16190 | .printlock = printlock_w39v080fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16191 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16192 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16193 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16194 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16195 | }, |
| 16196 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16197 | { |
| 16198 | .vendor = "Winbond", |
| 16199 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16200 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16201 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16202 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16203 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16204 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16205 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16206 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 16207 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16208 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16209 | .block_erasers = |
| 16210 | { |
| 16211 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16212 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16213 | .block_erase = erase_sector_jedec, |
| 16214 | }, { |
| 16215 | .eraseblocks = { {512 * 1024, 1} }, |
| 16216 | .block_erase = erase_chip_block_jedec, |
| 16217 | } |
| 16218 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16219 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16220 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16221 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16222 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16223 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 16224 | |
| 16225 | { |
| 16226 | .vendor = "Unknown", |
| 16227 | .name = "SFDP-capable chip", |
| 16228 | .bustype = BUS_SPI, |
| 16229 | .manufacture_id = GENERIC_MANUF_ID, |
| 16230 | .model_id = SFDP_DEVICE_ID, |
| 16231 | /* We present our own "report this" text hence we do not |
| 16232 | * want the default "This flash part has status UNTESTED..." |
| 16233 | * text to be printed. */ |
| 16234 | .tested = TEST_OK_PREW, |
| 16235 | .probe = probe_spi_sfdp, |
| 16236 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 16237 | .read = spi_chip_read, |
| 16238 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 16239 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 16240 | /* Everything below will be set by the probing function. */ |
| 16241 | .write = NULL, |
| 16242 | .total_size = 0, |
| 16243 | .page_size = 0, |
| 16244 | .feature_bits = 0, |
| 16245 | .block_erasers = {}, |
| 16246 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16247 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16248 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 16249 | .vendor = "Programmer", |
| 16250 | .name = "Opaque flash chip", |
| 16251 | .bustype = BUS_PROG, |
| 16252 | .manufacture_id = PROGMANUF_ID, |
| 16253 | .model_id = PROGDEV_ID, |
| 16254 | .total_size = 0, |
| 16255 | .page_size = 256, |
| 16256 | /* probe is assumed to work, rest will be filled in by probe */ |
| 16257 | .tested = TEST_OK_PROBE, |
| 16258 | .probe = probe_opaque, |
| 16259 | /* eraseblock sizes will be set by the probing function */ |
| 16260 | .block_erasers = |
| 16261 | { |
| 16262 | { |
| 16263 | .block_erase = erase_opaque, |
| 16264 | } |
| 16265 | }, |
| 16266 | .write = write_opaque, |
| 16267 | .read = read_opaque, |
| 16268 | }, |
| 16269 | |
| 16270 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 16271 | .vendor = "AMIC", |
| 16272 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16273 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 16274 | .manufacture_id = AMIC_ID, |
| 16275 | .model_id = GENERIC_DEVICE_ID, |
| 16276 | .total_size = 0, |
| 16277 | .page_size = 256, |
| 16278 | .tested = TEST_BAD_PREW, |
| 16279 | .probe = probe_spi_rdid4, |
| 16280 | .probe_timing = TIMING_ZERO, |
| 16281 | .write = NULL, |
| 16282 | .read = NULL, |
| 16283 | }, |
| 16284 | |
| 16285 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16286 | .vendor = "Atmel", |
| 16287 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16288 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16289 | .manufacture_id = ATMEL_ID, |
| 16290 | .model_id = GENERIC_DEVICE_ID, |
| 16291 | .total_size = 0, |
| 16292 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16293 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16294 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16295 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16296 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16297 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16298 | }, |
| 16299 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16300 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 16301 | .vendor = "Eon", |
| 16302 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16303 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16304 | .manufacture_id = EON_ID_NOPREFIX, |
| 16305 | .model_id = GENERIC_DEVICE_ID, |
| 16306 | .total_size = 0, |
| 16307 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16308 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16309 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16310 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16311 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16312 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16313 | }, |
| 16314 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16315 | { |
| 16316 | .vendor = "Macronix", |
| 16317 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16318 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 16319 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16320 | .model_id = GENERIC_DEVICE_ID, |
| 16321 | .total_size = 0, |
| 16322 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16323 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16324 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16325 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16326 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16327 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16328 | }, |
| 16329 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16330 | { |
| 16331 | .vendor = "PMC", |
| 16332 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16333 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16334 | .manufacture_id = PMC_ID, |
| 16335 | .model_id = GENERIC_DEVICE_ID, |
| 16336 | .total_size = 0, |
| 16337 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16338 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16339 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16340 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16341 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16342 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16343 | }, |
| 16344 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16345 | { |
| 16346 | .vendor = "SST", |
| 16347 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16348 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16349 | .manufacture_id = SST_ID, |
| 16350 | .model_id = GENERIC_DEVICE_ID, |
| 16351 | .total_size = 0, |
| 16352 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16353 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16354 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16355 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16356 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16357 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16358 | }, |
| 16359 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16360 | { |
| 16361 | .vendor = "ST", |
| 16362 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16363 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16364 | .manufacture_id = ST_ID, |
| 16365 | .model_id = GENERIC_DEVICE_ID, |
| 16366 | .total_size = 0, |
| 16367 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16368 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16369 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16370 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16371 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16372 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16373 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 16374 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16375 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 16376 | .vendor = "Sanyo", |
| 16377 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16378 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 16379 | .manufacture_id = SANYO_ID, |
| 16380 | .model_id = GENERIC_DEVICE_ID, |
| 16381 | .total_size = 0, |
| 16382 | .page_size = 256, |
| 16383 | .tested = TEST_BAD_PREW, |
| 16384 | .probe = probe_spi_rdid, |
| 16385 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 16386 | .write = NULL, |
| 16387 | .read = NULL, |
| 16388 | }, |
| 16389 | |
| 16390 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16391 | .vendor = "Winbond", |
| 16392 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 16393 | .bustype = BUS_SPI, |
| 16394 | .manufacture_id = WINBOND_NEX_ID, |
| 16395 | .model_id = GENERIC_DEVICE_ID, |
| 16396 | .total_size = 0, |
| 16397 | .page_size = 256, |
| 16398 | .tested = TEST_BAD_PREW, |
| 16399 | .probe = probe_spi_rdid, |
| 16400 | .probe_timing = TIMING_ZERO, |
| 16401 | .write = NULL, |
| 16402 | .read = NULL, |
| 16403 | }, |
| 16404 | |
| 16405 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16406 | .vendor = "Generic", |
| 16407 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16408 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16409 | .manufacture_id = GENERIC_MANUF_ID, |
| 16410 | .model_id = GENERIC_DEVICE_ID, |
| 16411 | .total_size = 0, |
| 16412 | .page_size = 256, |
| 16413 | .tested = TEST_BAD_PREW, |
| 16414 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16415 | .write = NULL, |
| 16416 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 16417 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16418 | { |
| 16419 | .vendor = "Generic", |
| 16420 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16421 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16422 | .manufacture_id = GENERIC_MANUF_ID, |
| 16423 | .model_id = GENERIC_DEVICE_ID, |
| 16424 | .total_size = 0, |
| 16425 | .page_size = 256, |
| 16426 | .tested = TEST_BAD_PREW, |
| 16427 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16428 | .write = NULL, |
| 16429 | }, |
| 16430 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 16431 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 16432 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 16433 | |
| 16434 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |